Skip to content

Latest commit

 

History

History
227 lines (154 loc) · 8.65 KB

File metadata and controls

227 lines (154 loc) · 8.65 KB

\SecureEmbeddedPremiumFinanceEndorsementsAPI

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

Method HTTP request Description
SecureEpfEndorsementsPost Post /secure/epf/endorsements This API will do a check of eligibility of account
SecureEpfQuoteEndorsementBookingPut Put /secure/epf/quote/endorsement/booking This API will update PFA to book a endorsement quote.
SecureEpfQuoteEndorsementPost Post /secure/epf/quote/endorsement This API will do return a quote for an existing policy or new policy for an existing account

SecureEpfEndorsementsPost

PFCheckEndorsementsResponse SecureEpfEndorsementsPost(ctx).XApiKey(xApiKey).XAppKey(xAppKey).XVersion(xVersion).Origin(origin).PFCheckEndorsementsRequest(pFCheckEndorsementsRequest).Execute()

This API will do a check of eligibility of account

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
	pFCheckEndorsementsRequest := *openapiclient.NewPFCheckEndorsementsRequest("AccountNumber_example") // PFCheckEndorsementsRequest | PF Check Endorsement Request details

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

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiSecureEpfEndorsementsPostRequest 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
pFCheckEndorsementsRequest PFCheckEndorsementsRequest PF Check Endorsement Request details

Return type

PFCheckEndorsementsResponse

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]

SecureEpfQuoteEndorsementBookingPut

PFUpdatePFAResponse SecureEpfQuoteEndorsementBookingPut(ctx).XApiKey(xApiKey).XAppKey(xAppKey).XVersion(xVersion).Origin(origin).SecurePFQuoteBookingRequest(securePFQuoteBookingRequest).Execute()

This API will update PFA to book a endorsement quote.

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
	securePFQuoteBookingRequest := *openapiclient.NewSecurePFQuoteBookingRequest(int32(123)) // SecurePFQuoteBookingRequest | PFQuoteBooking Request details

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

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiSecureEpfQuoteEndorsementBookingPutRequest 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
securePFQuoteBookingRequest SecurePFQuoteBookingRequest PFQuoteBooking Request details

Return type

PFUpdatePFAResponse

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]

SecureEpfQuoteEndorsementPost

PFEndorsementResponse SecureEpfQuoteEndorsementPost(ctx).XApiKey(xApiKey).XAppKey(xAppKey).XVersion(xVersion).Origin(origin).PFEndorsementRequest(pFEndorsementRequest).Execute()

This API will do return a quote for an existing policy or new policy for an existing account

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
	pFEndorsementRequest := *openapiclient.NewPFEndorsementRequest(*openapiclient.NewPFEndorsementRequestQuote(int32(123), "MerchantReference_example", []openapiclient.PFEndorsementRequestQuotePoliciesInner{*openapiclient.NewPFEndorsementRequestQuotePoliciesInner(float32(123), "EffectiveDate_example", "ExpirationDate_example")})) // PFEndorsementRequest | PF Endorsement Request details

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

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiSecureEpfQuoteEndorsementPostRequest 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
pFEndorsementRequest PFEndorsementRequest PF Endorsement Request details

Return type

PFEndorsementResponse

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]