# Packages
No description provided by the author
# README
splitit - 's Go SDK
Splitit's Web API
Installation
Add to your project:
go get github.com/konfig-dev/splitit-web-sdks/go
Getting Started
package main
import (
"fmt"
"os"
splitit "github.com/konfig-dev/splitit-web-sdks/go"
)
func main() {
configuration := splitit.NewConfiguration()
client := splitit.NewAPIClient(configuration)
planData := *splitit.NewPlanData()
cardDetails := *splitit.NewCardData()
billingAddress := *splitit.NewAddressData()
checkInstallmentsEligibilityRequest := *splitit.NewCheckInstallmentsEligibilityRequest()
checkInstallmentsEligibilityRequest.SetPlanData(planData)
checkInstallmentsEligibilityRequest.SetCardDetails(cardDetails)
checkInstallmentsEligibilityRequest.SetBillingAddress(billingAddress)
checkInstallmentsEligibilityRequest.SetShopperIdentifier("null")
request := client.InstallmentPlanApi.CheckEligibility(
"xSplititIdempotencyKey_example",
"""",
checkInstallmentsEligibilityRequest,
)
resp, httpRes, err := request.Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `InstallmentPlanApi.CheckEligibility``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", httpRes)
}
// response from `CheckEligibility`: InstallmentsEligibilityResponse
fmt.Fprintf(os.Stdout, "Response from `InstallmentPlanApi.CheckEligibility`: %v\n", resp)
fmt.Fprintf(os.Stdout, "Response from `InstallmentsEligibilityResponse.CheckEligibility.InstallmentProvider`: %v\n", *resp.InstallmentProvider)
fmt.Fprintf(os.Stdout, "Response from `InstallmentsEligibilityResponse.CheckEligibility.PaymentPlanOptions`: %v\n", *resp.PaymentPlanOptions)
}
Documentation for API Endpoints
All URIs are relative to https://web-api-v3.production.splitit.com
Class | Method | HTTP request | Description |
---|---|---|---|
InstallmentPlanApi | CheckEligibility | Post /api/installmentplans/check-eligibility | |
InstallmentPlanApi | Get | Get /api/installmentplans/{installmentPlanNumber} | |
InstallmentPlanApi | GetEligibilityTermsAndCondition | Get /api/installmentplans/{ipn}/legal | |
InstallmentPlanApi | Post | Post /api/installmentplans/initiate | |
InstallmentPlanApi | Post2 | Post /api/installmentplans | |
InstallmentPlanApi | Refund | Post /api/installmentplans/{installmentPlanNumber}/refund | |
InstallmentPlanApi | Search | Get /api/installmentplans/search | |
InstallmentPlanApi | UpdateOrder | Put /api/installmentplans/{installmentPlanNumber}/updateorder | |
InstallmentPlanApi | UpdateOrder2 | Put /api/installmentplans/updateorder | |
InstallmentPlanApi | VerifyAuthorization | Get /api/installmentplans/{installmentPlanNumber}/verifyauthorization |
Documentation For Models
- AddressData
- AddressDataModel
- AuthorizationModel
- BluesnapVaultedShopperToken
- CardBrand
- CardData
- CardType
- CheckInstallmentsEligibilityRequest
- EligibilityTermsAndConditionResponse
- Error
- ErrorExtended
- ErrorExtendedAllOf
- EventsEndpointsModel
- FailedResponse
- GatewayTokenData
- GwAuthorizationStatus
- IdentifierContract
- InitiatePlanResponse
- InitiateRedirectionEndpointsModel
- Installment
- InstallmentPlanCreateRequest
- InstallmentPlanCreateResponse
- InstallmentPlanGetResponse
- InstallmentPlanInitiateRequest
- InstallmentPlanRefundRequest
- InstallmentPlanRefundResponse
- InstallmentPlanSearchResponse
- InstallmentPlanUpdateRequest
- InstallmentPlanUpdateRequestByIdentifier
- InstallmentPlanUpdateRequestByIdentifierAllOf
- InstallmentPlanUpdateResponse
- InstallmentStatus
- InstallmentsEligibilityResponse
- LinksData
- LinksModel
- MockerShopperToken
- PaymentMethodModel
- PaymentMethodType
- PaymentPlanOptionModel
- PlanData
- PlanDataModel
- PlanErrorResponse
- PlanErrorResponseAllOf
- PlanStatus
- PlanStrategy
- ProcessingData
- ProcessingData2
- PurchaseMethod
- RedirectionEndpointsModel
- RefundModel
- RefundStatus
- RefundStrategy
- RefundSummary
- SearchInstallmentPlanResponseItem
- ShippingStatus
- ShopperData
- SpreedlyToken
- TestModes
- ThreeDSData
- ThreeDSData2
- ThreeDsRedirectDataV3
- UxSettingsModel
- VerifyAuthorizationResponse