Skip to content

Latest commit

 

History

History
227 lines (154 loc) · 9.32 KB

File metadata and controls

227 lines (154 loc) · 9.32 KB

\SecurePremiumFinanceLiteAPI

All URIs are relative to https://api.uat.anddone.com

Method HTTP request Description
SecureEpfliteQuotesGeneratePost Post /secure/epflite/quotes/generate This API is used to generate the quote from the provider.
SecureEpfliteQuotesLinkPost Post /secure/epflite/quotes/link This API will return quotes created againsts a payment link.
SecureEpfliteQuotesPaymentlinksPost Post /secure/epflite/quotes/paymentlinks This API is used to create Payment Links

SecureEpfliteQuotesGeneratePost

PFLiteGenerateQuoteResponse SecureEpfliteQuotesGeneratePost(ctx).XApiKey(xApiKey).XAppKey(xAppKey).XVersion(xVersion).Origin(origin).PFLiteSecureQuoteRequest(pFLiteSecureQuoteRequest).Execute()

This API is used to generate the quote from the provider.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	xApiKey := "xApiKey_example" // string | an authorization header
	xAppKey := "xAppKey_example" // string | an authorization header
	xVersion := float32(8.14) // float32 | x-version
	origin := "origin_example" // string | origin
	pFLiteSecureQuoteRequest := *openapiclient.NewPFLiteSecureQuoteRequest("MerchantId_example", *openapiclient.NewPFLiteSecureQuoteRequestMerchant(), *openapiclient.NewPFLiteSecureQuoteRequestInsured("FirstName_example", "LastName_example", "EmailAddress_example", *openapiclient.NewPFLiteSecureQuoteRequestInsuredAddress("Address1_example", "City_example", "State_example", "Zip_example")), *openapiclient.NewPFLiteSecureQuoteRequestProgram("LoanType_example"), []openapiclient.PFLiteSecureQuoteRequestPoliciesInner{*openapiclient.NewPFLiteSecureQuoteRequestPoliciesInner(float32(123), "CoverageType_example", "EffectiveDate_example", "CancelDays_example", *openapiclient.NewPFLiteSecureQuoteRequestPoliciesInnerCarrier("Name_example", "UniqueId_example"))}) // PFLiteSecureQuoteRequest | PFLite Quote Secure Request details (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.SecurePremiumFinanceLiteAPI.SecureEpfliteQuotesGeneratePost(context.Background()).XApiKey(xApiKey).XAppKey(xAppKey).XVersion(xVersion).Origin(origin).PFLiteSecureQuoteRequest(pFLiteSecureQuoteRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `SecurePremiumFinanceLiteAPI.SecureEpfliteQuotesGeneratePost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `SecureEpfliteQuotesGeneratePost`: PFLiteGenerateQuoteResponse
	fmt.Fprintf(os.Stdout, "Response from `SecurePremiumFinanceLiteAPI.SecureEpfliteQuotesGeneratePost`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiSecureEpfliteQuotesGeneratePostRequest struct via the builder pattern

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float32 x-version
origin string origin
pFLiteSecureQuoteRequest PFLiteSecureQuoteRequest PFLite Quote Secure Request details

Return type

PFLiteGenerateQuoteResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SecureEpfliteQuotesLinkPost

[]PFLiteQuoteByPaymentLinkResponse SecureEpfliteQuotesLinkPost(ctx).XApiKey(xApiKey).XAppKey(xAppKey).XVersion(xVersion).Origin(origin).PFLiteGetQuoteRequest(pFLiteGetQuoteRequest).Execute()

This API will return quotes created againsts a payment link.

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	xApiKey := "xApiKey_example" // string | an authorization header
	xAppKey := "xAppKey_example" // string | an authorization header
	xVersion := float32(8.14) // float32 | x-version
	origin := "origin_example" // string | origin
	pFLiteGetQuoteRequest := *openapiclient.NewPFLiteGetQuoteRequest("MerchantToken_example", "PaymentLinkId_example") // PFLiteGetQuoteRequest | Signature Request details (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.SecurePremiumFinanceLiteAPI.SecureEpfliteQuotesLinkPost(context.Background()).XApiKey(xApiKey).XAppKey(xAppKey).XVersion(xVersion).Origin(origin).PFLiteGetQuoteRequest(pFLiteGetQuoteRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `SecurePremiumFinanceLiteAPI.SecureEpfliteQuotesLinkPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `SecureEpfliteQuotesLinkPost`: []PFLiteQuoteByPaymentLinkResponse
	fmt.Fprintf(os.Stdout, "Response from `SecurePremiumFinanceLiteAPI.SecureEpfliteQuotesLinkPost`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiSecureEpfliteQuotesLinkPostRequest struct via the builder pattern

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float32 x-version
origin string origin
pFLiteGetQuoteRequest PFLiteGetQuoteRequest Signature Request details

Return type

[]PFLiteQuoteByPaymentLinkResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

SecureEpfliteQuotesPaymentlinksPost

PaymentLinkResponse SecureEpfliteQuotesPaymentlinksPost(ctx).XApiKey(xApiKey).XAppKey(xAppKey).XVersion(xVersion).Origin(origin).PFLitePaymentLinkRequest(pFLitePaymentLinkRequest).Execute()

This API is used to create Payment Links

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/GIT_USER_ID/GIT_REPO_ID"
)

func main() {
	xApiKey := "xApiKey_example" // string | an authorization header
	xAppKey := "xAppKey_example" // string | an authorization header
	xVersion := float32(8.14) // float32 | x-version
	origin := "origin_example" // string | origin
	pFLitePaymentLinkRequest := *openapiclient.NewPFLitePaymentLinkRequest("QuoteKey_example", "Title_example", "PaymentDescription_example", int32(123), "ExpireInUnit_example", []openapiclient.PFLitePaymentLinkRequestReferenceDataListInner{*openapiclient.NewPFLitePaymentLinkRequestReferenceDataListInner("ReferenceType_example", "ReferenceKey_example")}, *openapiclient.NewPFLitePaymentLinkRequestSettings("SelectedCustomerFields_example", "AdditionalDetailsPreference_example", *openapiclient.NewPaymentLinkRequestSettingsIntent([]string{"PaymentTypes_example"}))) // PFLitePaymentLinkRequest | Payment Link Request

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.SecurePremiumFinanceLiteAPI.SecureEpfliteQuotesPaymentlinksPost(context.Background()).XApiKey(xApiKey).XAppKey(xAppKey).XVersion(xVersion).Origin(origin).PFLitePaymentLinkRequest(pFLitePaymentLinkRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `SecurePremiumFinanceLiteAPI.SecureEpfliteQuotesPaymentlinksPost``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `SecureEpfliteQuotesPaymentlinksPost`: PaymentLinkResponse
	fmt.Fprintf(os.Stdout, "Response from `SecurePremiumFinanceLiteAPI.SecureEpfliteQuotesPaymentlinksPost`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiSecureEpfliteQuotesPaymentlinksPostRequest struct via the builder pattern

Name Type Description Notes
xApiKey string an authorization header
xAppKey string an authorization header
xVersion float32 x-version
origin string origin
pFLitePaymentLinkRequest PFLitePaymentLinkRequest Payment Link Request

Return type

PaymentLinkResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]