Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorFieldType ¶
type ErrorFieldType struct {
// The validation error code.
ErrorCode int32 `json:"errorCode,omitempty"`
// A description of the validation error.
ErrorDescription string `json:"errorDescription,omitempty"`
FieldType *FieldType `json:"fieldType,omitempty"`
}
ErrorFieldType struct for ErrorFieldType
type FieldType ¶
type FieldType struct {
// The full name of the property.
Field string `json:"field,omitempty"`
// The type of the field.
FieldName string `json:"fieldName,omitempty"`
ShareholderCode string `json:"shareholderCode,omitempty"`
}
FieldType struct for FieldType
type GetOnboardingUrlRequest ¶
type GetOnboardingUrlRequest struct {
// The account holder code you provided when you created the account holder.
AccountHolderCode string `json:"accountHolderCode"`
// The platform name which will show up in the welcome page.
PlatformName string `json:"platformName,omitempty"`
// The URL where the sub-merchant will be redirected back to after they complete the onboarding, or if their session times out. Maximum length of 500 characters. If you don't provide this, the sub-merchant will be redirected back to the default return URL configured in your platform account.
ReturnUrl string `json:"returnUrl,omitempty"`
}
GetOnboardingUrlRequest struct for GetOnboardingUrlRequest
type GetOnboardingUrlResponse ¶
type GetOnboardingUrlResponse struct {
// Contains field validation errors that would prevent requests from being processed.
InvalidFields *[]ErrorFieldType `json:"invalidFields,omitempty"`
// The reference of a request. Can be used to uniquely identify the request.
PspReference string `json:"pspReference"`
// The URL to the Hosted Onboarding Page where you should redirect your sub-merchant. This URL must be used within 15 seconds and can only be used once.
RedirectUrl string `json:"redirectUrl,omitempty"`
// The result code.
ResultCode string `json:"resultCode,omitempty"`
// Indicates whether the request is processed synchronously or asynchronously. Depending on the request's platform settings, the following scenarios may be applied: * **sync:** The processing of the request is immediately attempted; it may result in an error if the providing service is unavailable. * **async:** The request is queued and will be executed when the providing service is available in the order in which the requests are received. * **asyncOnError:** The processing of the request is immediately attempted, but if the providing service is unavailable, the request is scheduled in a queue.
SubmittedAsync bool `json:"submittedAsync"`
}
GetOnboardingUrlResponse struct for GetOnboardingUrlResponse
type PlatformsHostedOnboardingPage ¶
PlatformsHostedOnboardingPage PlatformsHostedOnboardingPage service
func (PlatformsHostedOnboardingPage) GetOnboardingUrlPost ¶
func (a PlatformsHostedOnboardingPage) GetOnboardingUrlPost(req *GetOnboardingUrlRequest, ctxs ..._context.Context) (GetOnboardingUrlResponse, *_nethttp.Response, error)
GetOnboardingUrlPost Get a new onboarding url for an account holder. This endpoint is used to get a new onboarding url for a specific account holder. Each account holder represents a single sub-merchant, and each sub-merchant must be represented by an account holder. A returnUrl can also be specified as part of this request.
- @param request GetOnboardingUrlRequest - reference of GetOnboardingUrlRequest).
- @param ctxs ..._context.Context - optional, for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return GetOnboardingUrlResponse
Click to show internal directories.
Click to hide internal directories.