operations

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2025 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SupportedOptionRetries              = "retries"
	SupportedOptionTimeout              = "timeout"
	SupportedOptionAcceptHeaderOverride = "acceptHeaderOverride"
	SupportedOptionURLOverride          = "urlOverride"
)

Variables

View Source
var ErrUnsupportedOption = errors.New("unsupported option")

Functions

This section is empty.

Types

type ApplicationFee

type ApplicationFee struct {
	// In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
	Amount components.Amount `json:"amount"`
	// The description of the application fee. This will appear on settlement reports towards both you and the
	// connected merchant.
	Description string `json:"description"`
}

ApplicationFee - With Mollie Connect you can charge fees on payment links that your app is processing on behalf of other Mollie merchants.

If you use OAuth to create payment links on a connected merchant's account, you can charge a fee using this `applicationFee` parameter. If a payment on the payment link succeeds, the fee will be deducted from the merchant's balance and sent to your own account balance.

func (*ApplicationFee) GetAmount

func (a *ApplicationFee) GetAmount() components.Amount

func (*ApplicationFee) GetDescription

func (a *ApplicationFee) GetDescription() string

type CancelPaymentRequest

type CancelPaymentRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                   `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *CancelPaymentRequestBody `request:"mediaType=application/json"`
}

func (*CancelPaymentRequest) GetIdempotencyKey

func (c *CancelPaymentRequest) GetIdempotencyKey() *string

func (*CancelPaymentRequest) GetPaymentID

func (c *CancelPaymentRequest) GetPaymentID() string

func (*CancelPaymentRequest) GetRequestBody

func (c *CancelPaymentRequest) GetRequestBody() *CancelPaymentRequestBody

type CancelPaymentRequestBody

type CancelPaymentRequestBody struct {
	// Whether to create the entity in test mode or live mode.
	//
	// Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
	// omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
	// `testmode` to `true`.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*CancelPaymentRequestBody) GetTestmode

func (c *CancelPaymentRequestBody) GetTestmode() *bool

type CancelPaymentResponse

type CancelPaymentResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The canceled payment object.
	PaymentResponse *components.PaymentResponse
}

func (*CancelPaymentResponse) GetHTTPMeta

func (*CancelPaymentResponse) GetPaymentResponse

func (c *CancelPaymentResponse) GetPaymentResponse() *components.PaymentResponse

type CancelRefundRequest

type CancelRefundRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// Provide the ID of the related refund.
	RefundID string `pathParam:"style=simple,explode=false,name=refundId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*CancelRefundRequest) GetIdempotencyKey

func (c *CancelRefundRequest) GetIdempotencyKey() *string

func (*CancelRefundRequest) GetPaymentID

func (c *CancelRefundRequest) GetPaymentID() string

func (*CancelRefundRequest) GetRefundID

func (c *CancelRefundRequest) GetRefundID() string

func (*CancelRefundRequest) GetTestmode

func (c *CancelRefundRequest) GetTestmode() *bool

type CancelRefundResponse

type CancelRefundResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// An empty response if the refund was successfully canceled.
	Any any
}

func (*CancelRefundResponse) GetAny

func (c *CancelRefundResponse) GetAny() any

func (*CancelRefundResponse) GetHTTPMeta

func (c *CancelRefundResponse) GetHTTPMeta() components.HTTPMetadata

type CancelSubscriptionRequest

type CancelSubscriptionRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// Provide the ID of the related subscription.
	SubscriptionID string `pathParam:"style=simple,explode=false,name=subscriptionId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                        `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *CancelSubscriptionRequestBody `request:"mediaType=application/json"`
}

func (*CancelSubscriptionRequest) GetCustomerID

func (c *CancelSubscriptionRequest) GetCustomerID() string

func (*CancelSubscriptionRequest) GetIdempotencyKey

func (c *CancelSubscriptionRequest) GetIdempotencyKey() *string

func (*CancelSubscriptionRequest) GetRequestBody

func (*CancelSubscriptionRequest) GetSubscriptionID

func (c *CancelSubscriptionRequest) GetSubscriptionID() string

type CancelSubscriptionRequestBody

type CancelSubscriptionRequestBody struct {
	// Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
	// such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*CancelSubscriptionRequestBody) GetTestmode

func (c *CancelSubscriptionRequestBody) GetTestmode() *bool

type CancelSubscriptionResponse

type CancelSubscriptionResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The updated subscription object with status `canceled`. For a complete reference of the subscription object,
	// refer to the [Get subscription endpoint](get-subscription) documentation.
	SubscriptionResponse *components.SubscriptionResponse
}

func (*CancelSubscriptionResponse) GetHTTPMeta

func (*CancelSubscriptionResponse) GetSubscriptionResponse

func (c *CancelSubscriptionResponse) GetSubscriptionResponse() *components.SubscriptionResponse

type Client

type Client struct {
	// Indicates the response contains a client object. Will always contain the string `client` for this resource type.
	Resource *string `json:"resource,omitempty"`
	// The identifier uniquely referring to this client. Example: `org_12345678`.
	ID *string `json:"id,omitempty"`
	// The commission object.
	Commission *ListClientsCommission `json:"commission,omitempty"`
	// The date and time the client organization was created, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
	// format.
	OrganizationCreatedAt *string `json:"organizationCreatedAt,omitempty"`
	// An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
	Links    *ListClientsLinks `json:"_links,omitempty"`
	Embedded *ClientEmbedded   `json:"_embedded,omitempty"`
}

func (*Client) GetCommission

func (c *Client) GetCommission() *ListClientsCommission

func (*Client) GetEmbedded

func (c *Client) GetEmbedded() *ClientEmbedded

func (*Client) GetID

func (c *Client) GetID() *string
func (c *Client) GetLinks() *ListClientsLinks

func (*Client) GetOrganizationCreatedAt

func (c *Client) GetOrganizationCreatedAt() *string

func (*Client) GetResource

func (c *Client) GetResource() *string

type ClientEmbedded

type ClientEmbedded struct {
	Organization *components.EntityOrganization     `json:"organization,omitempty"`
	Onboarding   *components.EntityOnboardingStatus `json:"onboarding,omitempty"`
	Capabilities *components.EntityCapability       `json:"capabilities,omitempty"`
}

func (*ClientEmbedded) GetCapabilities

func (c *ClientEmbedded) GetCapabilities() *components.EntityCapability

func (*ClientEmbedded) GetOnboarding

func (c *ClientEmbedded) GetOnboarding() *components.EntityOnboardingStatus

func (*ClientEmbedded) GetOrganization

func (c *ClientEmbedded) GetOrganization() *components.EntityOrganization

type CreateCaptureRequest

type CreateCaptureRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                   `header:"style=simple,explode=false,name=idempotency-key"`
	EntityCapture  *components.EntityCapture `request:"mediaType=application/json"`
}

func (*CreateCaptureRequest) GetEntityCapture

func (c *CreateCaptureRequest) GetEntityCapture() *components.EntityCapture

func (*CreateCaptureRequest) GetIdempotencyKey

func (c *CreateCaptureRequest) GetIdempotencyKey() *string

func (*CreateCaptureRequest) GetPaymentID

func (c *CreateCaptureRequest) GetPaymentID() string

type CreateCaptureResponse

type CreateCaptureResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The newly created capture object. For a complete reference of the
	// capture object, refer to the [Get capture endpoint](get-capture) documentation.
	CaptureResponse *components.CaptureResponse
}

func (*CreateCaptureResponse) GetCaptureResponse

func (c *CreateCaptureResponse) GetCaptureResponse() *components.CaptureResponse

func (*CreateCaptureResponse) GetHTTPMeta

type CreateClientLinkRequest

type CreateClientLinkRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey   *string                      `header:"style=simple,explode=false,name=idempotency-key"`
	EntityClientLink *components.EntityClientLink `request:"mediaType=application/json"`
}
func (c *CreateClientLinkRequest) GetEntityClientLink() *components.EntityClientLink

func (*CreateClientLinkRequest) GetIdempotencyKey

func (c *CreateClientLinkRequest) GetIdempotencyKey() *string

type CreateClientLinkResponse

type CreateClientLinkResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The newly created client link object.
	EntityClientLinkResponse *components.EntityClientLinkResponse
}

func (*CreateClientLinkResponse) GetEntityClientLinkResponse

func (c *CreateClientLinkResponse) GetEntityClientLinkResponse() *components.EntityClientLinkResponse

func (*CreateClientLinkResponse) GetHTTPMeta

type CreateConnectBalanceTransferRequest added in v0.5.1

type CreateConnectBalanceTransferRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey        *string                           `header:"style=simple,explode=false,name=idempotency-key"`
	EntityBalanceTransfer *components.EntityBalanceTransfer `request:"mediaType=application/json"`
}

func (*CreateConnectBalanceTransferRequest) GetEntityBalanceTransfer added in v0.5.1

func (*CreateConnectBalanceTransferRequest) GetIdempotencyKey added in v0.5.1

func (c *CreateConnectBalanceTransferRequest) GetIdempotencyKey() *string

type CreateConnectBalanceTransferResponse added in v0.5.1

type CreateConnectBalanceTransferResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The balance transfer object.
	EntityBalanceTransferResponse *components.EntityBalanceTransferResponse
}

func (*CreateConnectBalanceTransferResponse) GetEntityBalanceTransferResponse added in v0.5.1

func (c *CreateConnectBalanceTransferResponse) GetEntityBalanceTransferResponse() *components.EntityBalanceTransferResponse

func (*CreateConnectBalanceTransferResponse) GetHTTPMeta added in v0.5.1

type CreateCustomerPaymentRequest

type CreateCustomerPaymentRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                    `header:"style=simple,explode=false,name=idempotency-key"`
	PaymentRequest *components.PaymentRequest `request:"mediaType=application/json"`
}

func (*CreateCustomerPaymentRequest) GetCustomerID

func (c *CreateCustomerPaymentRequest) GetCustomerID() string

func (*CreateCustomerPaymentRequest) GetIdempotencyKey

func (c *CreateCustomerPaymentRequest) GetIdempotencyKey() *string

func (*CreateCustomerPaymentRequest) GetPaymentRequest

func (c *CreateCustomerPaymentRequest) GetPaymentRequest() *components.PaymentRequest

type CreateCustomerPaymentResponse

type CreateCustomerPaymentResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The newly created payment object.
	PaymentResponse *components.PaymentResponse
}

func (*CreateCustomerPaymentResponse) GetHTTPMeta

func (*CreateCustomerPaymentResponse) GetPaymentResponse

func (c *CreateCustomerPaymentResponse) GetPaymentResponse() *components.PaymentResponse

type CreateCustomerRequest

type CreateCustomerRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                    `header:"style=simple,explode=false,name=idempotency-key"`
	EntityCustomer *components.EntityCustomer `request:"mediaType=application/json"`
}

func (*CreateCustomerRequest) GetEntityCustomer

func (c *CreateCustomerRequest) GetEntityCustomer() *components.EntityCustomer

func (*CreateCustomerRequest) GetIdempotencyKey

func (c *CreateCustomerRequest) GetIdempotencyKey() *string

type CreateCustomerResponse

type CreateCustomerResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The newly created customer object.
	CustomerResponse *components.CustomerResponse
}

func (*CreateCustomerResponse) GetCustomerResponse

func (c *CreateCustomerResponse) GetCustomerResponse() *components.CustomerResponse

func (*CreateCustomerResponse) GetHTTPMeta

type CreateMandateRequest

type CreateMandateRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                   `header:"style=simple,explode=false,name=idempotency-key"`
	EntityMandate  *components.EntityMandate `request:"mediaType=application/json"`
}

func (*CreateMandateRequest) GetCustomerID

func (c *CreateMandateRequest) GetCustomerID() string

func (*CreateMandateRequest) GetEntityMandate

func (c *CreateMandateRequest) GetEntityMandate() *components.EntityMandate

func (*CreateMandateRequest) GetIdempotencyKey

func (c *CreateMandateRequest) GetIdempotencyKey() *string

type CreateMandateResponse

type CreateMandateResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The newly created mandate object.
	MandateResponse *components.MandateResponse
}

func (*CreateMandateResponse) GetHTTPMeta

func (*CreateMandateResponse) GetMandateResponse

func (c *CreateMandateResponse) GetMandateResponse() *components.MandateResponse

type CreatePaymentLinkRequest

type CreatePaymentLinkRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                       `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *CreatePaymentLinkRequestBody `request:"mediaType=application/json"`
}

func (*CreatePaymentLinkRequest) GetIdempotencyKey

func (c *CreatePaymentLinkRequest) GetIdempotencyKey() *string

func (*CreatePaymentLinkRequest) GetRequestBody

type CreatePaymentLinkRequestBody

type CreatePaymentLinkRequestBody struct {
	ID *string `json:"id,omitempty"`
	// A short description of the payment link. The description is visible in the Dashboard and will be shown on the
	// customer's bank or card statement when possible.
	Description string `json:"description"`
	// In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
	Amount *components.AmountNullable `json:"amount,omitempty"`
	// In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
	MinimumAmount *components.AmountNullable `json:"minimumAmount,omitempty"`
	// The URL your customer will be redirected to after completing the payment process. If no redirect URL is provided,
	// the customer will be shown a generic message after completing the payment.
	RedirectURL *string `json:"redirectUrl,omitempty"`
	// The webhook URL where we will send payment status updates to.
	//
	// The webhookUrl is optional, but without a webhook you will miss out on important status changes to any payments
	// resulting from the payment link.
	//
	// The webhookUrl must be reachable from Mollie's point of view, so you cannot use `localhost`. If you want to use
	// webhook during development on `localhost`, you must use a tool like ngrok to have the webhooks delivered to your
	// local machine.
	WebhookURL *string `json:"webhookUrl,omitempty"`
	// Optionally provide the order lines for the payment. Each line contains details such as a description of the item
	// ordered and its price.
	//
	// All lines must have the same currency as the payment.
	//
	// Required for payment methods `billie`, `in3`, `klarna`, `riverty` and `voucher`.
	Lines           []components.PaymentLineItem `json:"lines,omitempty"`
	BillingAddress  *components.PaymentAddress   `json:"billingAddress,omitempty"`
	ShippingAddress *components.PaymentAddress   `json:"shippingAddress,omitempty"`
	// The identifier referring to the [profile](get-profile) this entity belongs to.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted in the creation
	// request. For organization-level credentials such as OAuth access tokens however, the `profileId` parameter is
	// required.
	ProfileID *string `json:"profileId,omitempty"`
	// Indicates whether the payment link is reusable. If this field is set to `true`, customers can make multiple
	// payments using the same link.
	//
	// If no value is specified, the field defaults to `false`, allowing only a single payment per link.
	Reusable *bool `json:"reusable,omitempty"`
	// The date and time the payment link is set to expire, in ISO 8601 format. If no expiry date was provided up front,
	// the payment link will not expire automatically.
	ExpiresAt *string `json:"expiresAt,omitempty"`
	// An array of payment methods that are allowed to be used for this payment link. When this parameter is
	// not provided or is an empty array, all enabled payment methods will be available.
	//
	// Enum: 'applepay', 'bancomatpay', 'bancontact', 'banktransfer', 'belfius', 'blik', 'creditcard', 'eps', 'giftcard',
	// 'ideal', 'kbc', 'mybank', 'paybybank', 'paypal', 'paysafecard', 'pointofsale', 'przelewy24', 'satispay', 'trustly', 'twint',
	// 'in3', 'riverty', 'klarna', 'billie'.
	AllowedMethods []string `json:"allowedMethods,omitempty"`
	// With Mollie Connect you can charge fees on payment links that your app is processing on behalf of other Mollie
	// merchants.
	//
	// If you use OAuth to create payment links on a connected merchant's account, you can charge a fee using this
	// `applicationFee` parameter. If a payment on the payment link succeeds, the fee will be deducted from the merchant's balance and sent
	// to your own account balance.
	ApplicationFee *ApplicationFee                     `json:"applicationFee,omitempty"`
	SequenceType   *components.PaymentLinkSequenceType `json:"sequenceType,omitempty"`
	// **Only relevant when `sequenceType` is set to `first`**
	//
	// The ID of the [customer](get-customer) the payment link is being created for. If a value is not provided,
	// the customer will be required to input relevant information which will be used to establish a mandate after
	// the payment is made.
	CustomerID *string `json:"customerId,omitempty"`
	// Whether to create the entity in test mode or live mode.
	//
	// Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
	// omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
	// `testmode` to `true`.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*CreatePaymentLinkRequestBody) GetAllowedMethods

func (c *CreatePaymentLinkRequestBody) GetAllowedMethods() []string

func (*CreatePaymentLinkRequestBody) GetAmount

func (*CreatePaymentLinkRequestBody) GetApplicationFee

func (c *CreatePaymentLinkRequestBody) GetApplicationFee() *ApplicationFee

func (*CreatePaymentLinkRequestBody) GetBillingAddress

func (c *CreatePaymentLinkRequestBody) GetBillingAddress() *components.PaymentAddress

func (*CreatePaymentLinkRequestBody) GetCustomerID

func (c *CreatePaymentLinkRequestBody) GetCustomerID() *string

func (*CreatePaymentLinkRequestBody) GetDescription

func (c *CreatePaymentLinkRequestBody) GetDescription() string

func (*CreatePaymentLinkRequestBody) GetExpiresAt

func (c *CreatePaymentLinkRequestBody) GetExpiresAt() *string

func (*CreatePaymentLinkRequestBody) GetID

func (*CreatePaymentLinkRequestBody) GetLines

func (*CreatePaymentLinkRequestBody) GetMinimumAmount

func (*CreatePaymentLinkRequestBody) GetProfileID

func (c *CreatePaymentLinkRequestBody) GetProfileID() *string

func (*CreatePaymentLinkRequestBody) GetRedirectURL

func (c *CreatePaymentLinkRequestBody) GetRedirectURL() *string

func (*CreatePaymentLinkRequestBody) GetReusable

func (c *CreatePaymentLinkRequestBody) GetReusable() *bool

func (*CreatePaymentLinkRequestBody) GetSequenceType

func (*CreatePaymentLinkRequestBody) GetShippingAddress

func (c *CreatePaymentLinkRequestBody) GetShippingAddress() *components.PaymentAddress

func (*CreatePaymentLinkRequestBody) GetTestmode

func (c *CreatePaymentLinkRequestBody) GetTestmode() *bool

func (*CreatePaymentLinkRequestBody) GetWebhookURL

func (c *CreatePaymentLinkRequestBody) GetWebhookURL() *string

type CreatePaymentLinkResponse

type CreatePaymentLinkResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The newly created payment link object.
	PaymentLinkResponse *components.PaymentLinkResponse
}

func (*CreatePaymentLinkResponse) GetHTTPMeta

func (*CreatePaymentLinkResponse) GetPaymentLinkResponse

func (c *CreatePaymentLinkResponse) GetPaymentLinkResponse() *components.PaymentLinkResponse

type CreatePaymentRequest

type CreatePaymentRequest struct {
	// This endpoint allows you to include additional information via the `include` query string parameter.
	Include *string `queryParam:"style=form,explode=true,name=include"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                    `header:"style=simple,explode=false,name=idempotency-key"`
	PaymentRequest *components.PaymentRequest `request:"mediaType=application/json"`
}

func (*CreatePaymentRequest) GetIdempotencyKey

func (c *CreatePaymentRequest) GetIdempotencyKey() *string

func (*CreatePaymentRequest) GetInclude

func (c *CreatePaymentRequest) GetInclude() *string

func (*CreatePaymentRequest) GetPaymentRequest

func (c *CreatePaymentRequest) GetPaymentRequest() *components.PaymentRequest

type CreatePaymentResponse

type CreatePaymentResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The newly created payment object.
	PaymentResponse *components.PaymentResponse
}

func (*CreatePaymentResponse) GetHTTPMeta

func (*CreatePaymentResponse) GetPaymentResponse

func (c *CreatePaymentResponse) GetPaymentResponse() *components.PaymentResponse

type CreateProfileRequest

type CreateProfileRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                  `header:"style=simple,explode=false,name=idempotency-key"`
	EntityProfile  components.EntityProfile `request:"mediaType=application/json"`
}

func (*CreateProfileRequest) GetEntityProfile

func (c *CreateProfileRequest) GetEntityProfile() components.EntityProfile

func (*CreateProfileRequest) GetIdempotencyKey

func (c *CreateProfileRequest) GetIdempotencyKey() *string

type CreateProfileResponse

type CreateProfileResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The newly created profile object.
	EntityProfileResponse *components.EntityProfileResponse
}

func (*CreateProfileResponse) GetEntityProfileResponse

func (c *CreateProfileResponse) GetEntityProfileResponse() *components.EntityProfileResponse

func (*CreateProfileResponse) GetHTTPMeta

type CreateRefundRequest

type CreateRefundRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                  `header:"style=simple,explode=false,name=idempotency-key"`
	EntityRefund   *components.EntityRefund `request:"mediaType=application/json"`
}

func (*CreateRefundRequest) GetEntityRefund

func (c *CreateRefundRequest) GetEntityRefund() *components.EntityRefund

func (*CreateRefundRequest) GetIdempotencyKey

func (c *CreateRefundRequest) GetIdempotencyKey() *string

func (*CreateRefundRequest) GetPaymentID

func (c *CreateRefundRequest) GetPaymentID() string

type CreateRefundResponse

type CreateRefundResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The newly created refund object.
	EntityRefundResponse *components.EntityRefundResponse
}

func (*CreateRefundResponse) GetEntityRefundResponse

func (c *CreateRefundResponse) GetEntityRefundResponse() *components.EntityRefundResponse

func (*CreateRefundResponse) GetHTTPMeta

func (c *CreateRefundResponse) GetHTTPMeta() components.HTTPMetadata

type CreateSalesInvoiceRequest

type CreateSalesInvoiceRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey     *string                        `header:"style=simple,explode=false,name=idempotency-key"`
	EntitySalesInvoice *components.EntitySalesInvoice `request:"mediaType=application/json"`
}

func (*CreateSalesInvoiceRequest) GetEntitySalesInvoice

func (c *CreateSalesInvoiceRequest) GetEntitySalesInvoice() *components.EntitySalesInvoice

func (*CreateSalesInvoiceRequest) GetIdempotencyKey

func (c *CreateSalesInvoiceRequest) GetIdempotencyKey() *string

type CreateSalesInvoiceResponse

type CreateSalesInvoiceResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The newly created invoice object. For a complete reference of the invoice object, refer to the
	// [Get sales invoice endpoint](get-sales-invoice) documentation.
	EntitySalesInvoiceResponse *components.EntitySalesInvoiceResponse
}

func (*CreateSalesInvoiceResponse) GetEntitySalesInvoiceResponse

func (c *CreateSalesInvoiceResponse) GetEntitySalesInvoiceResponse() *components.EntitySalesInvoiceResponse

func (*CreateSalesInvoiceResponse) GetHTTPMeta

type CreateSubscriptionRequest

type CreateSubscriptionRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey      *string                         `header:"style=simple,explode=false,name=idempotency-key"`
	SubscriptionRequest *components.SubscriptionRequest `request:"mediaType=application/json"`
}

func (*CreateSubscriptionRequest) GetCustomerID

func (c *CreateSubscriptionRequest) GetCustomerID() string

func (*CreateSubscriptionRequest) GetIdempotencyKey

func (c *CreateSubscriptionRequest) GetIdempotencyKey() *string

func (*CreateSubscriptionRequest) GetSubscriptionRequest

func (c *CreateSubscriptionRequest) GetSubscriptionRequest() *components.SubscriptionRequest

type CreateSubscriptionResponse

type CreateSubscriptionResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The newly created subscription object.
	SubscriptionResponse *components.SubscriptionResponse
}

func (*CreateSubscriptionResponse) GetHTTPMeta

func (*CreateSubscriptionResponse) GetSubscriptionResponse

func (c *CreateSubscriptionResponse) GetSubscriptionResponse() *components.SubscriptionResponse

type CreateWebhookRequest

type CreateWebhookRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                   `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *CreateWebhookRequestBody `request:"mediaType=application/json"`
}

func (*CreateWebhookRequest) GetIdempotencyKey

func (c *CreateWebhookRequest) GetIdempotencyKey() *string

func (*CreateWebhookRequest) GetRequestBody

func (c *CreateWebhookRequest) GetRequestBody() *CreateWebhookRequestBody

type CreateWebhookRequestBody

type CreateWebhookRequestBody struct {
	// A name that identifies the webhook.
	Name string `json:"name"`
	// The URL Mollie will send the events to. This URL must be publicly accessible.
	URL string `json:"url"`
	// The event's type
	WebhookEventTypes components.WebhookEventTypes `json:"eventTypes"`
	// Whether to create the entity in test mode or live mode.
	//
	// Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
	// omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
	// `testmode` to `true`.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*CreateWebhookRequestBody) GetName

func (c *CreateWebhookRequestBody) GetName() string

func (*CreateWebhookRequestBody) GetTestmode

func (c *CreateWebhookRequestBody) GetTestmode() *bool

func (*CreateWebhookRequestBody) GetURL

func (c *CreateWebhookRequestBody) GetURL() string

func (*CreateWebhookRequestBody) GetWebhookEventTypes

func (c *CreateWebhookRequestBody) GetWebhookEventTypes() components.WebhookEventTypes

type CreateWebhookResponse

type CreateWebhookResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The webhook object.
	CreateWebhook *components.CreateWebhook
}

func (*CreateWebhookResponse) GetCreateWebhook

func (c *CreateWebhookResponse) GetCreateWebhook() *components.CreateWebhook

func (*CreateWebhookResponse) GetHTTPMeta

type DeleteCustomerRequest

type DeleteCustomerRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                    `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *DeleteCustomerRequestBody `request:"mediaType=application/json"`
}

func (*DeleteCustomerRequest) GetCustomerID

func (d *DeleteCustomerRequest) GetCustomerID() string

func (*DeleteCustomerRequest) GetIdempotencyKey

func (d *DeleteCustomerRequest) GetIdempotencyKey() *string

func (*DeleteCustomerRequest) GetRequestBody

func (d *DeleteCustomerRequest) GetRequestBody() *DeleteCustomerRequestBody

type DeleteCustomerRequestBody

type DeleteCustomerRequestBody struct {
	// Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
	// such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*DeleteCustomerRequestBody) GetTestmode

func (d *DeleteCustomerRequestBody) GetTestmode() *bool

type DeleteCustomerResponse

type DeleteCustomerResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// An empty response.
	Any any
}

func (*DeleteCustomerResponse) GetAny

func (d *DeleteCustomerResponse) GetAny() any

func (*DeleteCustomerResponse) GetHTTPMeta

type DeletePaymentLinkRequest

type DeletePaymentLinkRequest struct {
	// Provide the ID of the related payment link.
	PaymentLinkID string `pathParam:"style=simple,explode=false,name=paymentLinkId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                       `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *DeletePaymentLinkRequestBody `request:"mediaType=application/json"`
}

func (*DeletePaymentLinkRequest) GetIdempotencyKey

func (d *DeletePaymentLinkRequest) GetIdempotencyKey() *string

func (*DeletePaymentLinkRequest) GetPaymentLinkID

func (d *DeletePaymentLinkRequest) GetPaymentLinkID() string

func (*DeletePaymentLinkRequest) GetRequestBody

type DeletePaymentLinkRequestBody

type DeletePaymentLinkRequestBody struct {
	// Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
	// such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*DeletePaymentLinkRequestBody) GetTestmode

func (d *DeletePaymentLinkRequestBody) GetTestmode() *bool

type DeletePaymentLinkResponse

type DeletePaymentLinkResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// An empty response.
	Any any
}

func (*DeletePaymentLinkResponse) GetAny

func (d *DeletePaymentLinkResponse) GetAny() any

func (*DeletePaymentLinkResponse) GetHTTPMeta

type DeleteProfileRequest

type DeleteProfileRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*DeleteProfileRequest) GetID

func (d *DeleteProfileRequest) GetID() string

func (*DeleteProfileRequest) GetIdempotencyKey

func (d *DeleteProfileRequest) GetIdempotencyKey() *string

type DeleteProfileResponse

type DeleteProfileResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// An empty response.
	Any any
}

func (*DeleteProfileResponse) GetAny

func (d *DeleteProfileResponse) GetAny() any

func (*DeleteProfileResponse) GetHTTPMeta

type DeleteSalesInvoiceRequest

type DeleteSalesInvoiceRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey           *string                              `header:"style=simple,explode=false,name=idempotency-key"`
	DeleteValuesSalesInvoice *components.DeleteValuesSalesInvoice `request:"mediaType=application/json"`
}

func (*DeleteSalesInvoiceRequest) GetDeleteValuesSalesInvoice

func (d *DeleteSalesInvoiceRequest) GetDeleteValuesSalesInvoice() *components.DeleteValuesSalesInvoice

func (*DeleteSalesInvoiceRequest) GetID

func (d *DeleteSalesInvoiceRequest) GetID() string

func (*DeleteSalesInvoiceRequest) GetIdempotencyKey

func (d *DeleteSalesInvoiceRequest) GetIdempotencyKey() *string

type DeleteSalesInvoiceResponse

type DeleteSalesInvoiceResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// An empty response.
	Any any
}

func (*DeleteSalesInvoiceResponse) GetAny

func (d *DeleteSalesInvoiceResponse) GetAny() any

func (*DeleteSalesInvoiceResponse) GetHTTPMeta

type DeleteWebhookRequest

type DeleteWebhookRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                   `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *DeleteWebhookRequestBody `request:"mediaType=application/json"`
}

func (*DeleteWebhookRequest) GetID

func (d *DeleteWebhookRequest) GetID() string

func (*DeleteWebhookRequest) GetIdempotencyKey

func (d *DeleteWebhookRequest) GetIdempotencyKey() *string

func (*DeleteWebhookRequest) GetRequestBody

func (d *DeleteWebhookRequest) GetRequestBody() *DeleteWebhookRequestBody

type DeleteWebhookRequestBody

type DeleteWebhookRequestBody struct {
	// Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
	// such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*DeleteWebhookRequestBody) GetTestmode

func (d *DeleteWebhookRequestBody) GetTestmode() *bool

type DeleteWebhookResponse

type DeleteWebhookResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// No content.
	Any any
}

func (*DeleteWebhookResponse) GetAny

func (d *DeleteWebhookResponse) GetAny() any

func (*DeleteWebhookResponse) GetHTTPMeta

type Documentation

type Documentation struct {
	Href *string `json:"href,omitempty"`
	Type *string `json:"type,omitempty"`
}

func (*Documentation) GetHref

func (d *Documentation) GetHref() *string

func (*Documentation) GetType

func (d *Documentation) GetType() *string

type GetBalanceReportRequest

type GetBalanceReportRequest struct {
	// Provide the ID of the related balance.
	BalanceID string `pathParam:"style=simple,explode=false,name=balanceId"`
	// The start date of the report, in `YYYY-MM-DD` format. The from date is
	// 'inclusive', and in Central European Time. This means a report with for example `from=2024-01-01` will
	// include transactions from 2024-01-01 0:00:00 CET and onwards.
	From string `queryParam:"style=form,explode=true,name=from"`
	// The end date of the report, in `YYYY-MM-DD` format. The until date is 'exclusive', and in Central European Time.
	// This means a report with for example `until=2024-02-01` will include transactions up until
	// 2024-01-31 23:59:59 CET.
	Until string `queryParam:"style=form,explode=true,name=until"`
	// You can retrieve reports in two different formats. With the `status-balances` format, transactions are grouped
	// by status (e.g. `pending`, `available`), then by transaction type, and then by other sub-groupings where
	// available (e.g. payment method).
	//
	// With the `transaction-categories` format, transactions are grouped by
	// transaction type, then by status, and then again by other sub-groupings where available.
	Grouping *Grouping `queryParam:"style=form,explode=true,name=grouping"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetBalanceReportRequest) GetBalanceID

func (g *GetBalanceReportRequest) GetBalanceID() string

func (*GetBalanceReportRequest) GetFrom

func (g *GetBalanceReportRequest) GetFrom() string

func (*GetBalanceReportRequest) GetGrouping

func (g *GetBalanceReportRequest) GetGrouping() *Grouping

func (*GetBalanceReportRequest) GetIdempotencyKey

func (g *GetBalanceReportRequest) GetIdempotencyKey() *string

func (*GetBalanceReportRequest) GetTestmode

func (g *GetBalanceReportRequest) GetTestmode() *bool

func (*GetBalanceReportRequest) GetUntil

func (g *GetBalanceReportRequest) GetUntil() string

type GetBalanceReportResponse

type GetBalanceReportResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The balance report object.
	EntityBalanceReport *components.EntityBalanceReport
}

func (*GetBalanceReportResponse) GetEntityBalanceReport

func (g *GetBalanceReportResponse) GetEntityBalanceReport() *components.EntityBalanceReport

func (*GetBalanceReportResponse) GetHTTPMeta

type GetBalanceRequest

type GetBalanceRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetBalanceRequest) GetID

func (g *GetBalanceRequest) GetID() string

func (*GetBalanceRequest) GetIdempotencyKey

func (g *GetBalanceRequest) GetIdempotencyKey() *string

func (*GetBalanceRequest) GetTestmode

func (g *GetBalanceRequest) GetTestmode() *bool

type GetBalanceResponse

type GetBalanceResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The balance object.
	EntityBalance *components.EntityBalance
}

func (*GetBalanceResponse) GetEntityBalance

func (g *GetBalanceResponse) GetEntityBalance() *components.EntityBalance

func (*GetBalanceResponse) GetHTTPMeta

func (g *GetBalanceResponse) GetHTTPMeta() components.HTTPMetadata

type GetCaptureRequest

type GetCaptureRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// Provide the ID of the related capture.
	CaptureID string `pathParam:"style=simple,explode=false,name=captureId"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetCaptureRequest) GetCaptureID

func (g *GetCaptureRequest) GetCaptureID() string

func (*GetCaptureRequest) GetEmbed

func (g *GetCaptureRequest) GetEmbed() *string

func (*GetCaptureRequest) GetIdempotencyKey

func (g *GetCaptureRequest) GetIdempotencyKey() *string

func (*GetCaptureRequest) GetPaymentID

func (g *GetCaptureRequest) GetPaymentID() string

func (*GetCaptureRequest) GetTestmode

func (g *GetCaptureRequest) GetTestmode() *bool

type GetCaptureResponse

type GetCaptureResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The capture object.
	CaptureResponse *components.CaptureResponse
}

func (*GetCaptureResponse) GetCaptureResponse

func (g *GetCaptureResponse) GetCaptureResponse() *components.CaptureResponse

func (*GetCaptureResponse) GetHTTPMeta

func (g *GetCaptureResponse) GetHTTPMeta() components.HTTPMetadata

type GetChargebackRequest

type GetChargebackRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// Provide the ID of the related chargeback.
	ChargebackID string `pathParam:"style=simple,explode=false,name=chargebackId"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetChargebackRequest) GetChargebackID

func (g *GetChargebackRequest) GetChargebackID() string

func (*GetChargebackRequest) GetEmbed

func (g *GetChargebackRequest) GetEmbed() *string

func (*GetChargebackRequest) GetIdempotencyKey

func (g *GetChargebackRequest) GetIdempotencyKey() *string

func (*GetChargebackRequest) GetPaymentID

func (g *GetChargebackRequest) GetPaymentID() string

func (*GetChargebackRequest) GetTestmode

func (g *GetChargebackRequest) GetTestmode() *bool

type GetChargebackResponse

type GetChargebackResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The chargeback object.
	EntityChargeback *components.EntityChargeback
}

func (*GetChargebackResponse) GetEntityChargeback

func (g *GetChargebackResponse) GetEntityChargeback() *components.EntityChargeback

func (*GetChargebackResponse) GetHTTPMeta

type GetClientCommission

type GetClientCommission struct {
	// The commission count.
	Count *int64 `json:"count,omitempty"`
}

GetClientCommission - The commission object.

func (*GetClientCommission) GetCount

func (g *GetClientCommission) GetCount() *int64

type GetClientEmbedded

type GetClientEmbedded struct {
	Organization *components.EntityOrganization     `json:"organization,omitempty"`
	Onboarding   *components.EntityOnboardingStatus `json:"onboarding,omitempty"`
	Capabilities *components.EntityCapability       `json:"capabilities,omitempty"`
}

func (*GetClientEmbedded) GetCapabilities

func (g *GetClientEmbedded) GetCapabilities() *components.EntityCapability

func (*GetClientEmbedded) GetOnboarding

func (*GetClientEmbedded) GetOrganization

func (g *GetClientEmbedded) GetOrganization() *components.EntityOrganization
type GetClientLinks struct {
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Self *components.URLObj `json:"self,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Organization *components.URLObj `json:"organization,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Onboarding *components.URLObj `json:"onboarding,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Documentation *components.URLObj `json:"documentation,omitempty"`
}

GetClientLinks - An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.

func (*GetClientLinks) GetDocumentation

func (g *GetClientLinks) GetDocumentation() *components.URLObj

func (*GetClientLinks) GetOnboarding

func (g *GetClientLinks) GetOnboarding() *components.URLObj

func (*GetClientLinks) GetOrganization

func (g *GetClientLinks) GetOrganization() *components.URLObj

func (*GetClientLinks) GetSelf

func (g *GetClientLinks) GetSelf() *components.URLObj

type GetClientRequest

type GetClientRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetClientRequest) GetEmbed

func (g *GetClientRequest) GetEmbed() *string

func (*GetClientRequest) GetID

func (g *GetClientRequest) GetID() string

func (*GetClientRequest) GetIdempotencyKey

func (g *GetClientRequest) GetIdempotencyKey() *string

type GetClientResponse

type GetClientResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The client object.
	Object *GetClientResponseBody
}

func (*GetClientResponse) GetHTTPMeta

func (g *GetClientResponse) GetHTTPMeta() components.HTTPMetadata

func (*GetClientResponse) GetObject

func (g *GetClientResponse) GetObject() *GetClientResponseBody

type GetClientResponseBody

type GetClientResponseBody struct {
	// Indicates the response contains a client object. Will always contain the string `client` for this resource type.
	Resource *string `json:"resource,omitempty"`
	// The identifier uniquely referring to this client. Example: `org_12345678`.
	ID *string `json:"id,omitempty"`
	// The commission object.
	Commission *GetClientCommission `json:"commission,omitempty"`
	// The date and time the client organization was created, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601)
	// format.
	OrganizationCreatedAt *string `json:"organizationCreatedAt,omitempty"`
	// An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
	Links    *GetClientLinks    `json:"_links,omitempty"`
	Embedded *GetClientEmbedded `json:"_embedded,omitempty"`
}

GetClientResponseBody - The client object.

func (*GetClientResponseBody) GetCommission

func (g *GetClientResponseBody) GetCommission() *GetClientCommission

func (*GetClientResponseBody) GetEmbedded

func (g *GetClientResponseBody) GetEmbedded() *GetClientEmbedded

func (*GetClientResponseBody) GetID

func (g *GetClientResponseBody) GetID() *string
func (g *GetClientResponseBody) GetLinks() *GetClientLinks

func (*GetClientResponseBody) GetOrganizationCreatedAt

func (g *GetClientResponseBody) GetOrganizationCreatedAt() *string

func (*GetClientResponseBody) GetResource

func (g *GetClientResponseBody) GetResource() *string

type GetConnectBalanceTransferRequest added in v0.5.1

type GetConnectBalanceTransferRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetConnectBalanceTransferRequest) GetID added in v0.5.1

func (*GetConnectBalanceTransferRequest) GetIdempotencyKey added in v0.5.1

func (g *GetConnectBalanceTransferRequest) GetIdempotencyKey() *string

func (*GetConnectBalanceTransferRequest) GetTestmode added in v0.5.1

func (g *GetConnectBalanceTransferRequest) GetTestmode() *bool

type GetConnectBalanceTransferResponse added in v0.5.1

type GetConnectBalanceTransferResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The Connect balance transfer object.
	EntityBalanceTransferResponse *components.EntityBalanceTransferResponse
}

func (*GetConnectBalanceTransferResponse) GetEntityBalanceTransferResponse added in v0.5.1

func (g *GetConnectBalanceTransferResponse) GetEntityBalanceTransferResponse() *components.EntityBalanceTransferResponse

func (*GetConnectBalanceTransferResponse) GetHTTPMeta added in v0.5.1

type GetCurrentOrganizationRequest

type GetCurrentOrganizationRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetCurrentOrganizationRequest) GetIdempotencyKey

func (g *GetCurrentOrganizationRequest) GetIdempotencyKey() *string

type GetCurrentOrganizationResponse

type GetCurrentOrganizationResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The current organization object.
	EntityOrganization *components.EntityOrganization
}

func (*GetCurrentOrganizationResponse) GetEntityOrganization

func (g *GetCurrentOrganizationResponse) GetEntityOrganization() *components.EntityOrganization

func (*GetCurrentOrganizationResponse) GetHTTPMeta

type GetCurrentProfileRequest

type GetCurrentProfileRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetCurrentProfileRequest) GetIdempotencyKey

func (g *GetCurrentProfileRequest) GetIdempotencyKey() *string

type GetCurrentProfileResponse

type GetCurrentProfileResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The current profile object. For a complete reference of the profile object, refer to the
	// [Get profile](get-profile) endpoint documentation.
	EntityProfileResponse *components.EntityProfileResponse
}

func (*GetCurrentProfileResponse) GetEntityProfileResponse

func (g *GetCurrentProfileResponse) GetEntityProfileResponse() *components.EntityProfileResponse

func (*GetCurrentProfileResponse) GetHTTPMeta

type GetCustomerLinks struct {
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Self components.URLObj `json:"self"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Dashboard components.URLObj `json:"dashboard"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Payments *components.URLNullable `json:"payments,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Mandates *components.URLNullable `json:"mandates,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Subscriptions *components.URLNullable `json:"subscriptions,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Documentation components.URLObj `json:"documentation"`
}

GetCustomerLinks - An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.

func (*GetCustomerLinks) GetDashboard

func (g *GetCustomerLinks) GetDashboard() components.URLObj

func (*GetCustomerLinks) GetDocumentation

func (g *GetCustomerLinks) GetDocumentation() components.URLObj

func (*GetCustomerLinks) GetMandates

func (g *GetCustomerLinks) GetMandates() *components.URLNullable

func (*GetCustomerLinks) GetPayments

func (g *GetCustomerLinks) GetPayments() *components.URLNullable

func (*GetCustomerLinks) GetSelf

func (g *GetCustomerLinks) GetSelf() components.URLObj

func (*GetCustomerLinks) GetSubscriptions

func (g *GetCustomerLinks) GetSubscriptions() *components.URLNullable

type GetCustomerRequest

type GetCustomerRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// This endpoint allows you to include additional information via the `include` query string parameter.
	Include *string `queryParam:"style=form,explode=true,name=include"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetCustomerRequest) GetCustomerID

func (g *GetCustomerRequest) GetCustomerID() string

func (*GetCustomerRequest) GetIdempotencyKey

func (g *GetCustomerRequest) GetIdempotencyKey() *string

func (*GetCustomerRequest) GetInclude

func (g *GetCustomerRequest) GetInclude() *string

func (*GetCustomerRequest) GetTestmode

func (g *GetCustomerRequest) GetTestmode() *bool

type GetCustomerResponse

type GetCustomerResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The customer object.
	Object *GetCustomerResponseBody
}

func (*GetCustomerResponse) GetHTTPMeta

func (g *GetCustomerResponse) GetHTTPMeta() components.HTTPMetadata

func (*GetCustomerResponse) GetObject

type GetCustomerResponseBody

type GetCustomerResponseBody struct {
	// Indicates the response contains a customer object. Will always contain the string `customer` for this endpoint.
	Resource *string `json:"resource,omitempty"`
	ID       *string `json:"id,omitempty"`
	// Whether this entity was created in live mode or in test mode.
	Mode *components.Mode `json:"mode,omitempty"`
	// The full name of the customer.
	Name *string `json:"name,omitempty"`
	// The email address of the customer.
	Email *string `json:"email,omitempty"`
	// Allows you to preset the language to be used.
	Locale *components.LocaleResponse `json:"locale,omitempty"`
	// Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
	// you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
	Metadata *components.Metadata `json:"metadata,omitempty"`
	// The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
	CreatedAt *string `json:"createdAt,omitempty"`
	// An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
	Links  *GetCustomerLinks        `json:"_links,omitempty"`
	Events []components.EntityEvent `json:"events,omitempty"`
}

GetCustomerResponseBody - The customer object.

func (*GetCustomerResponseBody) GetCreatedAt

func (g *GetCustomerResponseBody) GetCreatedAt() *string

func (*GetCustomerResponseBody) GetEmail

func (g *GetCustomerResponseBody) GetEmail() *string

func (*GetCustomerResponseBody) GetEvents

func (*GetCustomerResponseBody) GetID

func (g *GetCustomerResponseBody) GetID() *string

func (*GetCustomerResponseBody) GetLocale

func (*GetCustomerResponseBody) GetMetadata

func (g *GetCustomerResponseBody) GetMetadata() *components.Metadata

func (*GetCustomerResponseBody) GetMode

func (g *GetCustomerResponseBody) GetMode() *components.Mode

func (*GetCustomerResponseBody) GetName

func (g *GetCustomerResponseBody) GetName() *string

func (*GetCustomerResponseBody) GetResource

func (g *GetCustomerResponseBody) GetResource() *string

type GetInvoiceRequest

type GetInvoiceRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetInvoiceRequest) GetID

func (g *GetInvoiceRequest) GetID() string

func (*GetInvoiceRequest) GetIdempotencyKey

func (g *GetInvoiceRequest) GetIdempotencyKey() *string

type GetInvoiceResponse

type GetInvoiceResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The invoice object.
	EntityInvoice *components.EntityInvoice
}

func (*GetInvoiceResponse) GetEntityInvoice

func (g *GetInvoiceResponse) GetEntityInvoice() *components.EntityInvoice

func (*GetInvoiceResponse) GetHTTPMeta

func (g *GetInvoiceResponse) GetHTTPMeta() components.HTTPMetadata

type GetMandateRequest

type GetMandateRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// Provide the ID of the related mandate.
	MandateID string `pathParam:"style=simple,explode=false,name=mandateId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetMandateRequest) GetCustomerID

func (g *GetMandateRequest) GetCustomerID() string

func (*GetMandateRequest) GetIdempotencyKey

func (g *GetMandateRequest) GetIdempotencyKey() *string

func (*GetMandateRequest) GetMandateID

func (g *GetMandateRequest) GetMandateID() string

func (*GetMandateRequest) GetTestmode

func (g *GetMandateRequest) GetTestmode() *bool

type GetMandateResponse

type GetMandateResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The mandate object.
	MandateResponse *components.MandateResponse
}

func (*GetMandateResponse) GetHTTPMeta

func (g *GetMandateResponse) GetHTTPMeta() components.HTTPMetadata

func (*GetMandateResponse) GetMandateResponse

func (g *GetMandateResponse) GetMandateResponse() *components.MandateResponse

type GetMethodRequest

type GetMethodRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// Response language
	Locale *components.LocaleParameter `queryParam:"style=form,explode=true,name=locale"`
	// If provided, the `minimumAmount` and `maximumAmount` will be converted
	// to the given currency. An error is returned if the currency is not supported by the payment method.
	Currency *string `queryParam:"style=form,explode=true,name=currency"`
	// The identifier referring to the [profile](get-profile) you wish to
	// retrieve the resources for.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted. For
	// organization-level credentials such as OAuth access tokens however, the `profileId` parameter is required.
	ProfileID *string `queryParam:"style=form,explode=true,name=profileId"`
	// This endpoint allows you to include additional information via the `include` query string parameter.
	Include *string `queryParam:"style=form,explode=true,name=include"`
	// Set this parameter to `first` to only return the methods that
	// can be used for the first payment of a recurring sequence.
	//
	// Set it to `recurring` to only return methods that can be used for recurring payments or subscriptions.
	SequenceType *components.SequenceType `queryParam:"style=form,explode=true,name=sequenceType"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetMethodRequest) GetCurrency

func (g *GetMethodRequest) GetCurrency() *string

func (*GetMethodRequest) GetID

func (g *GetMethodRequest) GetID() string

func (*GetMethodRequest) GetIdempotencyKey

func (g *GetMethodRequest) GetIdempotencyKey() *string

func (*GetMethodRequest) GetInclude

func (g *GetMethodRequest) GetInclude() *string

func (*GetMethodRequest) GetLocale

func (*GetMethodRequest) GetProfileID

func (g *GetMethodRequest) GetProfileID() *string

func (*GetMethodRequest) GetSequenceType

func (g *GetMethodRequest) GetSequenceType() *components.SequenceType

func (*GetMethodRequest) GetTestmode

func (g *GetMethodRequest) GetTestmode() *bool

type GetMethodResponse

type GetMethodResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The payment method object.
	EntityMethod *components.EntityMethod
}

func (*GetMethodResponse) GetEntityMethod

func (g *GetMethodResponse) GetEntityMethod() *components.EntityMethod

func (*GetMethodResponse) GetHTTPMeta

func (g *GetMethodResponse) GetHTTPMeta() components.HTTPMetadata

type GetNextSettlementRequest

type GetNextSettlementRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetNextSettlementRequest) GetIdempotencyKey

func (g *GetNextSettlementRequest) GetIdempotencyKey() *string

type GetNextSettlementResponse

type GetNextSettlementResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The next settlement object. For a complete reference of the settlement object, refer to the
	// [Get settlement](get-settlement) endpoint documentation.
	EntitySettlement *components.EntitySettlement
}

func (*GetNextSettlementResponse) GetEntitySettlement

func (g *GetNextSettlementResponse) GetEntitySettlement() *components.EntitySettlement

func (*GetNextSettlementResponse) GetHTTPMeta

type GetOnboardingStatusRequest

type GetOnboardingStatusRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetOnboardingStatusRequest) GetIdempotencyKey

func (g *GetOnboardingStatusRequest) GetIdempotencyKey() *string

type GetOnboardingStatusResponse

type GetOnboardingStatusResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The onboarding status object of the current organization.
	EntityOnboardingStatus *components.EntityOnboardingStatus
}

func (*GetOnboardingStatusResponse) GetEntityOnboardingStatus

func (g *GetOnboardingStatusResponse) GetEntityOnboardingStatus() *components.EntityOnboardingStatus

func (*GetOnboardingStatusResponse) GetHTTPMeta

type GetOpenSettlementRequest

type GetOpenSettlementRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetOpenSettlementRequest) GetIdempotencyKey

func (g *GetOpenSettlementRequest) GetIdempotencyKey() *string

type GetOpenSettlementResponse

type GetOpenSettlementResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A settlement object describing your current balance. For a complete reference of the settlement object, refer to
	// the [Get settlement](get-settlement) endpoint documentation.
	EntitySettlement *components.EntitySettlement
}

func (*GetOpenSettlementResponse) GetEntitySettlement

func (g *GetOpenSettlementResponse) GetEntitySettlement() *components.EntitySettlement

func (*GetOpenSettlementResponse) GetHTTPMeta

type GetOrganizationRequest

type GetOrganizationRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetOrganizationRequest) GetID

func (g *GetOrganizationRequest) GetID() string

func (*GetOrganizationRequest) GetIdempotencyKey

func (g *GetOrganizationRequest) GetIdempotencyKey() *string

func (*GetOrganizationRequest) GetTestmode

func (g *GetOrganizationRequest) GetTestmode() *bool

type GetOrganizationResponse

type GetOrganizationResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The organization object.
	EntityOrganization *components.EntityOrganization
}

func (*GetOrganizationResponse) GetEntityOrganization

func (g *GetOrganizationResponse) GetEntityOrganization() *components.EntityOrganization

func (*GetOrganizationResponse) GetHTTPMeta

type GetPartnerStatusLinks struct {
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Self *components.URLObj `json:"self,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Signuplink *components.URLObj `json:"signuplink,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Documentation *components.URLObj `json:"documentation,omitempty"`
}

GetPartnerStatusLinks - An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.

func (*GetPartnerStatusLinks) GetDocumentation

func (g *GetPartnerStatusLinks) GetDocumentation() *components.URLObj

func (*GetPartnerStatusLinks) GetSelf

func (g *GetPartnerStatusLinks) GetSelf() *components.URLObj
func (g *GetPartnerStatusLinks) GetSignuplink() *components.URLObj

type GetPartnerStatusRequest

type GetPartnerStatusRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetPartnerStatusRequest) GetIdempotencyKey

func (g *GetPartnerStatusRequest) GetIdempotencyKey() *string

type GetPartnerStatusResponse

type GetPartnerStatusResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The partner status object.
	Object *GetPartnerStatusResponseBody
}

func (*GetPartnerStatusResponse) GetHTTPMeta

func (*GetPartnerStatusResponse) GetObject

type GetPartnerStatusResponseBody

type GetPartnerStatusResponseBody struct {
	// Indicates the response contains a partner status object. Will always contain the string `partner` for
	// this endpoint.
	Resource string `json:"resource"`
	// Indicates the type of partner. Will be `null` if the currently authenticated organization is not
	// enrolled as a partner.
	PartnerType *PartnerType `json:"partnerType"`
	// Whether the current organization is receiving commissions.
	IsCommissionPartner *bool `json:"isCommissionPartner,omitempty"`
	// Array of User-Agent token objects. Present if the organization is a partner of type `useragent`, or if
	// they were in the past.
	UserAgentTokens []UserAgentToken `json:"userAgentTokens,omitempty"`
	// The date the partner contract was signed, in ISO 8601 format. Omitted if no contract has been signed
	// (yet).
	PartnerContractSignedAt *string `json:"partnerContractSignedAt,omitempty"`
	// Whether an update to the partner contract is available and requiring the organization's agreement.
	PartnerContractUpdateAvailable *bool `json:"partnerContractUpdateAvailable,omitempty"`
	// The expiration date of the signed partner contract, in ISO 8601 format. Omitted if contract has no
	// expiration date (yet).
	PartnerContractExpiresAt *string `json:"partnerContractExpiresAt,omitempty"`
	// An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
	Links *GetPartnerStatusLinks `json:"_links,omitempty"`
}

GetPartnerStatusResponseBody - The partner status object.

func (*GetPartnerStatusResponseBody) GetIsCommissionPartner

func (g *GetPartnerStatusResponseBody) GetIsCommissionPartner() *bool

func (*GetPartnerStatusResponseBody) GetPartnerContractExpiresAt

func (g *GetPartnerStatusResponseBody) GetPartnerContractExpiresAt() *string

func (*GetPartnerStatusResponseBody) GetPartnerContractSignedAt

func (g *GetPartnerStatusResponseBody) GetPartnerContractSignedAt() *string

func (*GetPartnerStatusResponseBody) GetPartnerContractUpdateAvailable

func (g *GetPartnerStatusResponseBody) GetPartnerContractUpdateAvailable() *bool

func (*GetPartnerStatusResponseBody) GetPartnerType

func (g *GetPartnerStatusResponseBody) GetPartnerType() *PartnerType

func (*GetPartnerStatusResponseBody) GetResource

func (g *GetPartnerStatusResponseBody) GetResource() string

func (*GetPartnerStatusResponseBody) GetUserAgentTokens

func (g *GetPartnerStatusResponseBody) GetUserAgentTokens() []UserAgentToken

type GetPaymentLinkPaymentsEmbedded

type GetPaymentLinkPaymentsEmbedded struct {
	// An array of payment objects.
	Payments []components.PaymentResponse `json:"payments,omitempty"`
}

func (*GetPaymentLinkPaymentsEmbedded) GetPayments

type GetPaymentLinkPaymentsRequest

type GetPaymentLinkPaymentsRequest struct {
	// Provide the ID of the related payment link.
	PaymentLinkID string `pathParam:"style=simple,explode=false,name=paymentLinkId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetPaymentLinkPaymentsRequest) GetFrom

func (g *GetPaymentLinkPaymentsRequest) GetFrom() *string

func (*GetPaymentLinkPaymentsRequest) GetIdempotencyKey

func (g *GetPaymentLinkPaymentsRequest) GetIdempotencyKey() *string

func (*GetPaymentLinkPaymentsRequest) GetLimit

func (g *GetPaymentLinkPaymentsRequest) GetLimit() *int64

func (*GetPaymentLinkPaymentsRequest) GetPaymentLinkID

func (g *GetPaymentLinkPaymentsRequest) GetPaymentLinkID() string

func (*GetPaymentLinkPaymentsRequest) GetSort

func (*GetPaymentLinkPaymentsRequest) GetTestmode

func (g *GetPaymentLinkPaymentsRequest) GetTestmode() *bool

type GetPaymentLinkPaymentsResponse

type GetPaymentLinkPaymentsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of payment objects.
	Object *GetPaymentLinkPaymentsResponseBody
}

func (*GetPaymentLinkPaymentsResponse) GetHTTPMeta

func (*GetPaymentLinkPaymentsResponse) GetObject

type GetPaymentLinkPaymentsResponseBody

type GetPaymentLinkPaymentsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                          `json:"count"`
	Embedded GetPaymentLinkPaymentsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

GetPaymentLinkPaymentsResponseBody - A list of payment objects.

func (*GetPaymentLinkPaymentsResponseBody) GetCount

func (*GetPaymentLinkPaymentsResponseBody) GetEmbedded

type GetPaymentLinkRequest

type GetPaymentLinkRequest struct {
	// Provide the ID of the related payment link.
	PaymentLinkID string `pathParam:"style=simple,explode=false,name=paymentLinkId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetPaymentLinkRequest) GetIdempotencyKey

func (g *GetPaymentLinkRequest) GetIdempotencyKey() *string

func (*GetPaymentLinkRequest) GetPaymentLinkID

func (g *GetPaymentLinkRequest) GetPaymentLinkID() string

func (*GetPaymentLinkRequest) GetTestmode

func (g *GetPaymentLinkRequest) GetTestmode() *bool

type GetPaymentLinkResponse

type GetPaymentLinkResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The payment link object.
	PaymentLinkResponse *components.PaymentLinkResponse
}

func (*GetPaymentLinkResponse) GetHTTPMeta

func (*GetPaymentLinkResponse) GetPaymentLinkResponse

func (g *GetPaymentLinkResponse) GetPaymentLinkResponse() *components.PaymentLinkResponse

type GetPaymentRequest

type GetPaymentRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// This endpoint allows you to include additional information via the `include` query string parameter.
	Include *string `queryParam:"style=form,explode=true,name=include"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetPaymentRequest) GetEmbed

func (g *GetPaymentRequest) GetEmbed() *string

func (*GetPaymentRequest) GetIdempotencyKey

func (g *GetPaymentRequest) GetIdempotencyKey() *string

func (*GetPaymentRequest) GetInclude

func (g *GetPaymentRequest) GetInclude() *string

func (*GetPaymentRequest) GetPaymentID

func (g *GetPaymentRequest) GetPaymentID() string

func (*GetPaymentRequest) GetTestmode

func (g *GetPaymentRequest) GetTestmode() *bool

type GetPaymentResponse

type GetPaymentResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The payment object.
	PaymentResponse *components.PaymentResponse
}

func (*GetPaymentResponse) GetHTTPMeta

func (g *GetPaymentResponse) GetHTTPMeta() components.HTTPMetadata

func (*GetPaymentResponse) GetPaymentResponse

func (g *GetPaymentResponse) GetPaymentResponse() *components.PaymentResponse

type GetPermissionRequest

type GetPermissionRequest struct {
	// Provide the ID of the related permission.
	PermissionID string `pathParam:"style=simple,explode=false,name=permissionId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetPermissionRequest) GetIdempotencyKey

func (g *GetPermissionRequest) GetIdempotencyKey() *string

func (*GetPermissionRequest) GetPermissionID

func (g *GetPermissionRequest) GetPermissionID() string

func (*GetPermissionRequest) GetTestmode

func (g *GetPermissionRequest) GetTestmode() *bool

type GetPermissionResponse

type GetPermissionResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The permission object.
	EntityPermission *components.EntityPermission
}

func (*GetPermissionResponse) GetEntityPermission

func (g *GetPermissionResponse) GetEntityPermission() *components.EntityPermission

func (*GetPermissionResponse) GetHTTPMeta

type GetPrimaryBalanceRequest

type GetPrimaryBalanceRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetPrimaryBalanceRequest) GetIdempotencyKey

func (g *GetPrimaryBalanceRequest) GetIdempotencyKey() *string

type GetPrimaryBalanceResponse

type GetPrimaryBalanceResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The primary balance object.
	EntityBalance *components.EntityBalance
}

func (*GetPrimaryBalanceResponse) GetEntityBalance

func (g *GetPrimaryBalanceResponse) GetEntityBalance() *components.EntityBalance

func (*GetPrimaryBalanceResponse) GetHTTPMeta

type GetProfileRequest

type GetProfileRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetProfileRequest) GetID

func (g *GetProfileRequest) GetID() string

func (*GetProfileRequest) GetIdempotencyKey

func (g *GetProfileRequest) GetIdempotencyKey() *string

func (*GetProfileRequest) GetTestmode

func (g *GetProfileRequest) GetTestmode() *bool

type GetProfileResponse

type GetProfileResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The profile object.
	EntityProfileResponse *components.EntityProfileResponse
}

func (*GetProfileResponse) GetEntityProfileResponse

func (g *GetProfileResponse) GetEntityProfileResponse() *components.EntityProfileResponse

func (*GetProfileResponse) GetHTTPMeta

func (g *GetProfileResponse) GetHTTPMeta() components.HTTPMetadata

type GetRefundRequest

type GetRefundRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// Provide the ID of the related refund.
	RefundID string `pathParam:"style=simple,explode=false,name=refundId"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetRefundRequest) GetEmbed

func (g *GetRefundRequest) GetEmbed() *string

func (*GetRefundRequest) GetIdempotencyKey

func (g *GetRefundRequest) GetIdempotencyKey() *string

func (*GetRefundRequest) GetPaymentID

func (g *GetRefundRequest) GetPaymentID() string

func (*GetRefundRequest) GetRefundID

func (g *GetRefundRequest) GetRefundID() string

func (*GetRefundRequest) GetTestmode

func (g *GetRefundRequest) GetTestmode() *bool

type GetRefundResponse

type GetRefundResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The payment object.
	EntityRefundResponse *components.EntityRefundResponse
}

func (*GetRefundResponse) GetEntityRefundResponse

func (g *GetRefundResponse) GetEntityRefundResponse() *components.EntityRefundResponse

func (*GetRefundResponse) GetHTTPMeta

func (g *GetRefundResponse) GetHTTPMeta() components.HTTPMetadata

type GetSalesInvoiceRequest

type GetSalesInvoiceRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetSalesInvoiceRequest) GetID

func (g *GetSalesInvoiceRequest) GetID() string

func (*GetSalesInvoiceRequest) GetIdempotencyKey

func (g *GetSalesInvoiceRequest) GetIdempotencyKey() *string

func (*GetSalesInvoiceRequest) GetTestmode

func (g *GetSalesInvoiceRequest) GetTestmode() *bool

type GetSalesInvoiceResponse

type GetSalesInvoiceResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The Sales Invoice object.
	EntitySalesInvoiceResponse *components.EntitySalesInvoiceResponse
}

func (*GetSalesInvoiceResponse) GetEntitySalesInvoiceResponse

func (g *GetSalesInvoiceResponse) GetEntitySalesInvoiceResponse() *components.EntitySalesInvoiceResponse

func (*GetSalesInvoiceResponse) GetHTTPMeta

type GetSettlementRequest

type GetSettlementRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetSettlementRequest) GetID

func (g *GetSettlementRequest) GetID() string

func (*GetSettlementRequest) GetIdempotencyKey

func (g *GetSettlementRequest) GetIdempotencyKey() *string

type GetSettlementResponse

type GetSettlementResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The settlement object.
	EntitySettlement *components.EntitySettlement
}

func (*GetSettlementResponse) GetEntitySettlement

func (g *GetSettlementResponse) GetEntitySettlement() *components.EntitySettlement

func (*GetSettlementResponse) GetHTTPMeta

type GetSubscriptionRequest

type GetSubscriptionRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// Provide the ID of the related subscription.
	SubscriptionID string `pathParam:"style=simple,explode=false,name=subscriptionId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetSubscriptionRequest) GetCustomerID

func (g *GetSubscriptionRequest) GetCustomerID() string

func (*GetSubscriptionRequest) GetIdempotencyKey

func (g *GetSubscriptionRequest) GetIdempotencyKey() *string

func (*GetSubscriptionRequest) GetSubscriptionID

func (g *GetSubscriptionRequest) GetSubscriptionID() string

func (*GetSubscriptionRequest) GetTestmode

func (g *GetSubscriptionRequest) GetTestmode() *bool

type GetSubscriptionResponse

type GetSubscriptionResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The subscription object.
	SubscriptionResponse *components.SubscriptionResponse
}

func (*GetSubscriptionResponse) GetHTTPMeta

func (*GetSubscriptionResponse) GetSubscriptionResponse

func (g *GetSubscriptionResponse) GetSubscriptionResponse() *components.SubscriptionResponse

type GetTerminalRequest

type GetTerminalRequest struct {
	// Provide the ID of the related terminal.
	TerminalID string `pathParam:"style=simple,explode=false,name=terminalId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetTerminalRequest) GetIdempotencyKey

func (g *GetTerminalRequest) GetIdempotencyKey() *string

func (*GetTerminalRequest) GetTerminalID

func (g *GetTerminalRequest) GetTerminalID() string

func (*GetTerminalRequest) GetTestmode

func (g *GetTerminalRequest) GetTestmode() *bool

type GetTerminalResponse

type GetTerminalResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The terminal object.
	EntityTerminal *components.EntityTerminal
}

func (*GetTerminalResponse) GetEntityTerminal

func (g *GetTerminalResponse) GetEntityTerminal() *components.EntityTerminal

func (*GetTerminalResponse) GetHTTPMeta

func (g *GetTerminalResponse) GetHTTPMeta() components.HTTPMetadata

type GetWebhookEventRequest

type GetWebhookEventRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetWebhookEventRequest) GetID

func (g *GetWebhookEventRequest) GetID() string

func (*GetWebhookEventRequest) GetIdempotencyKey

func (g *GetWebhookEventRequest) GetIdempotencyKey() *string

func (*GetWebhookEventRequest) GetTestmode

func (g *GetWebhookEventRequest) GetTestmode() *bool

type GetWebhookEventResponse

type GetWebhookEventResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The webhook event object.
	EntityWebhookEvent *components.EntityWebhookEvent
}

func (*GetWebhookEventResponse) GetEntityWebhookEvent

func (g *GetWebhookEventResponse) GetEntityWebhookEvent() *components.EntityWebhookEvent

func (*GetWebhookEventResponse) GetHTTPMeta

type GetWebhookRequest

type GetWebhookRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*GetWebhookRequest) GetID

func (g *GetWebhookRequest) GetID() string

func (*GetWebhookRequest) GetIdempotencyKey

func (g *GetWebhookRequest) GetIdempotencyKey() *string

func (*GetWebhookRequest) GetTestmode

func (g *GetWebhookRequest) GetTestmode() *bool

type GetWebhookResponse

type GetWebhookResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The webhook object.
	EntityWebhook *components.EntityWebhook
}

func (*GetWebhookResponse) GetEntityWebhook

func (g *GetWebhookResponse) GetEntityWebhook() *components.EntityWebhook

func (*GetWebhookResponse) GetHTTPMeta

func (g *GetWebhookResponse) GetHTTPMeta() components.HTTPMetadata

type Grouping

type Grouping string

Grouping - You can retrieve reports in two different formats. With the `status-balances` format, transactions are grouped by status (e.g. `pending`, `available`), then by transaction type, and then by other sub-groupings where available (e.g. payment method).

With the `transaction-categories` format, transactions are grouped by transaction type, then by status, and then again by other sub-groupings where available.

const (
	GroupingStatusBalances        Grouping = "status-balances"
	GroupingTransactionCategories Grouping = "transaction-categories"
)

func (Grouping) ToPointer

func (e Grouping) ToPointer() *Grouping

func (*Grouping) UnmarshalJSON

func (e *Grouping) UnmarshalJSON(data []byte) error

type IncludeWallets

type IncludeWallets string

IncludeWallets - A comma-separated list of the wallets you support in your checkout. Wallets often require wallet specific code to check if they are available on the shoppers device, hence the need to indicate your support.

const (
	IncludeWalletsApplepay IncludeWallets = "applepay"
)

func (IncludeWallets) ToPointer

func (e IncludeWallets) ToPointer() *IncludeWallets

func (*IncludeWallets) UnmarshalJSON

func (e *IncludeWallets) UnmarshalJSON(data []byte) error

type Invoice

type Invoice struct {
}

type ListAllChargebacksEmbedded

type ListAllChargebacksEmbedded struct {
	// A list of chargeback objects.
	Chargebacks []components.EntityChargeback `json:"chargebacks,omitempty"`
}

func (*ListAllChargebacksEmbedded) GetChargebacks

type ListAllChargebacksRequest

type ListAllChargebacksRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// The identifier referring to the [profile](get-profile) you wish to
	// retrieve chargebacks for.
	//
	// Most API credentials are linked to a single profile. In these cases the
	// `profileId` is already implied.
	//
	// To retrieve all chargebacks across the organization, use an
	// organization-level API credential and omit the `profileId` parameter.
	ProfileID *string `queryParam:"style=form,explode=true,name=profileId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListAllChargebacksRequest) GetEmbed

func (l *ListAllChargebacksRequest) GetEmbed() *string

func (*ListAllChargebacksRequest) GetFrom

func (l *ListAllChargebacksRequest) GetFrom() *string

func (*ListAllChargebacksRequest) GetIdempotencyKey

func (l *ListAllChargebacksRequest) GetIdempotencyKey() *string

func (*ListAllChargebacksRequest) GetLimit

func (l *ListAllChargebacksRequest) GetLimit() *int64

func (*ListAllChargebacksRequest) GetProfileID

func (l *ListAllChargebacksRequest) GetProfileID() *string

func (*ListAllChargebacksRequest) GetSort

func (*ListAllChargebacksRequest) GetTestmode

func (l *ListAllChargebacksRequest) GetTestmode() *bool

type ListAllChargebacksResponse

type ListAllChargebacksResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of chargeback objects.
	Object *ListAllChargebacksResponseBody
}

func (*ListAllChargebacksResponse) GetHTTPMeta

func (*ListAllChargebacksResponse) GetObject

type ListAllChargebacksResponseBody

type ListAllChargebacksResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    *int64                      `json:"count,omitempty"`
	Embedded *ListAllChargebacksEmbedded `json:"_embedded,omitempty"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links *components.ListLinks `json:"_links,omitempty"`
}

ListAllChargebacksResponseBody - A list of chargeback objects.

func (*ListAllChargebacksResponseBody) GetCount

func (l *ListAllChargebacksResponseBody) GetCount() *int64

func (*ListAllChargebacksResponseBody) GetEmbedded

type ListAllMethodsEmbedded

type ListAllMethodsEmbedded struct {
	// An array of payment method objects. For a complete
	// reference of the payment method object, refer to the [Get payment method endpoint](get-method)
	// documentation.
	Methods []components.EntityMethodAll `json:"methods"`
}

func (*ListAllMethodsEmbedded) GetMethods

type ListAllMethodsLinks struct {
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Self components.URLObj `json:"self"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Documentation components.URLObj `json:"documentation"`
}

func (*ListAllMethodsLinks) GetDocumentation

func (l *ListAllMethodsLinks) GetDocumentation() components.URLObj

func (*ListAllMethodsLinks) GetSelf

func (l *ListAllMethodsLinks) GetSelf() components.URLObj

type ListAllMethodsRequest

type ListAllMethodsRequest struct {
	// Response language
	Locale *components.LocaleParameter `queryParam:"style=form,explode=true,name=locale"`
	// If supplied, only payment methods that support the amount and currency
	// are returned.
	//
	// Example: `/v2/methods/all?amount[value]=100.00&amount[currency]=USD`
	Amount *components.Amount `queryParam:"style=deepObject,explode=true,name=amount"`
	// This endpoint allows you to include additional information via the `include` query string parameter.
	Include *string `queryParam:"style=form,explode=true,name=include"`
	// Set this parameter to `first` to only return the methods that
	// can be used for the first payment of a recurring sequence.
	//
	// Set it to `recurring` to only return methods that can be used for recurring payments or subscriptions.
	SequenceType *components.SequenceType `queryParam:"style=form,explode=true,name=sequenceType"`
	// The identifier referring to the [profile](get-profile) you wish to
	// retrieve the resources for.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted. For
	// organization-level credentials such as OAuth access tokens however, the `profileId` parameter is required.
	ProfileID *string `queryParam:"style=form,explode=true,name=profileId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListAllMethodsRequest) GetAmount

func (l *ListAllMethodsRequest) GetAmount() *components.Amount

func (*ListAllMethodsRequest) GetIdempotencyKey

func (l *ListAllMethodsRequest) GetIdempotencyKey() *string

func (*ListAllMethodsRequest) GetInclude

func (l *ListAllMethodsRequest) GetInclude() *string

func (*ListAllMethodsRequest) GetLocale

func (*ListAllMethodsRequest) GetProfileID

func (l *ListAllMethodsRequest) GetProfileID() *string

func (*ListAllMethodsRequest) GetSequenceType

func (l *ListAllMethodsRequest) GetSequenceType() *components.SequenceType

func (*ListAllMethodsRequest) GetTestmode

func (l *ListAllMethodsRequest) GetTestmode() *bool

type ListAllMethodsResponse

type ListAllMethodsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of payment method objects. For a complete reference of the
	// payment method object, refer to the [Get payment method endpoint](get-method) documentation.
	Object *ListAllMethodsResponseBody
}

func (*ListAllMethodsResponse) GetHTTPMeta

func (*ListAllMethodsResponse) GetObject

type ListAllMethodsResponseBody

type ListAllMethodsResponseBody struct {
	// The number of payment method objects in this result set. Results are **not** paginated.
	Count    int64                  `json:"count"`
	Embedded ListAllMethodsEmbedded `json:"_embedded"`
	Links    ListAllMethodsLinks    `json:"_links"`
}

ListAllMethodsResponseBody - A list of payment method objects. For a complete reference of the payment method object, refer to the [Get payment method endpoint](get-method) documentation.

func (*ListAllMethodsResponseBody) GetCount

func (l *ListAllMethodsResponseBody) GetCount() int64

func (*ListAllMethodsResponseBody) GetEmbedded

type ListAllRefundsEmbedded

type ListAllRefundsEmbedded struct {
	// An array of refund objects.
	Refunds []components.EntityRefundResponse `json:"refunds"`
}

func (*ListAllRefundsEmbedded) GetRefunds

type ListAllRefundsRequest

type ListAllRefundsRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// The identifier referring to the [profile](get-profile) you wish to
	// retrieve the resources for.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted. For
	// organization-level credentials such as OAuth access tokens however, the `profileId` parameter is required.
	ProfileID *string `queryParam:"style=form,explode=true,name=profileId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListAllRefundsRequest) GetEmbed

func (l *ListAllRefundsRequest) GetEmbed() *string

func (*ListAllRefundsRequest) GetFrom

func (l *ListAllRefundsRequest) GetFrom() *string

func (*ListAllRefundsRequest) GetIdempotencyKey

func (l *ListAllRefundsRequest) GetIdempotencyKey() *string

func (*ListAllRefundsRequest) GetLimit

func (l *ListAllRefundsRequest) GetLimit() *int64

func (*ListAllRefundsRequest) GetProfileID

func (l *ListAllRefundsRequest) GetProfileID() *string

func (*ListAllRefundsRequest) GetSort

func (*ListAllRefundsRequest) GetTestmode

func (l *ListAllRefundsRequest) GetTestmode() *bool

type ListAllRefundsResponse

type ListAllRefundsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of refund objects
	Object *ListAllRefundsResponseBody
}

func (*ListAllRefundsResponse) GetHTTPMeta

func (*ListAllRefundsResponse) GetObject

type ListAllRefundsResponseBody

type ListAllRefundsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                  `json:"count"`
	Embedded ListAllRefundsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListAllRefundsResponseBody - A list of refund objects

func (*ListAllRefundsResponseBody) GetCount

func (l *ListAllRefundsResponseBody) GetCount() int64

func (*ListAllRefundsResponseBody) GetEmbedded

type ListAllSubscriptionsEmbedded

type ListAllSubscriptionsEmbedded struct {
	// A list of subscription objects.
	Subscriptions []components.SubscriptionResponse `json:"subscriptions,omitempty"`
}

func (*ListAllSubscriptionsEmbedded) GetSubscriptions

type ListAllSubscriptionsRequest

type ListAllSubscriptionsRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// The identifier referring to the [profile](get-profile) you wish to retrieve subscriptions for.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` is already implied.
	//
	// To retrieve all subscriptions across the organization, use an organization-level API credential and omit the
	// `profileId` parameter.
	ProfileID *string `queryParam:"style=form,explode=true,name=profileId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListAllSubscriptionsRequest) GetFrom

func (l *ListAllSubscriptionsRequest) GetFrom() *string

func (*ListAllSubscriptionsRequest) GetIdempotencyKey

func (l *ListAllSubscriptionsRequest) GetIdempotencyKey() *string

func (*ListAllSubscriptionsRequest) GetLimit

func (l *ListAllSubscriptionsRequest) GetLimit() *int64

func (*ListAllSubscriptionsRequest) GetProfileID

func (l *ListAllSubscriptionsRequest) GetProfileID() *string

func (*ListAllSubscriptionsRequest) GetTestmode

func (l *ListAllSubscriptionsRequest) GetTestmode() *bool

type ListAllSubscriptionsResponse

type ListAllSubscriptionsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of subscription objects.
	Object *ListAllSubscriptionsResponseBody
}

func (*ListAllSubscriptionsResponse) GetHTTPMeta

func (*ListAllSubscriptionsResponse) GetObject

type ListAllSubscriptionsResponseBody

type ListAllSubscriptionsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                        `json:"count"`
	Embedded ListAllSubscriptionsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListAllSubscriptionsResponseBody - A list of subscription objects.

func (*ListAllSubscriptionsResponseBody) GetCount

func (*ListAllSubscriptionsResponseBody) GetEmbedded

type ListBalanceTransactionsEmbedded

type ListBalanceTransactionsEmbedded struct {
	// An array of balance transaction objects.
	BalanceTransactions []components.EntityBalanceTransaction `json:"balance_transactions,omitempty"`
}

func (*ListBalanceTransactionsEmbedded) GetBalanceTransactions

type ListBalanceTransactionsRequest

type ListBalanceTransactionsRequest struct {
	// Provide the ID of the related balance.
	BalanceID string `pathParam:"style=simple,explode=false,name=balanceId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListBalanceTransactionsRequest) GetBalanceID

func (l *ListBalanceTransactionsRequest) GetBalanceID() string

func (*ListBalanceTransactionsRequest) GetFrom

func (l *ListBalanceTransactionsRequest) GetFrom() *string

func (*ListBalanceTransactionsRequest) GetIdempotencyKey

func (l *ListBalanceTransactionsRequest) GetIdempotencyKey() *string

func (*ListBalanceTransactionsRequest) GetLimit

func (l *ListBalanceTransactionsRequest) GetLimit() *int64

func (*ListBalanceTransactionsRequest) GetTestmode

func (l *ListBalanceTransactionsRequest) GetTestmode() *bool

type ListBalanceTransactionsResponse

type ListBalanceTransactionsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of balance transaction objects.
	Object *ListBalanceTransactionsResponseBody
}

func (*ListBalanceTransactionsResponse) GetHTTPMeta

func (*ListBalanceTransactionsResponse) GetObject

type ListBalanceTransactionsResponseBody

type ListBalanceTransactionsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    *int64                           `json:"count,omitempty"`
	Embedded *ListBalanceTransactionsEmbedded `json:"_embedded,omitempty"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links *components.ListLinks `json:"_links,omitempty"`
}

ListBalanceTransactionsResponseBody - A list of balance transaction objects.

func (*ListBalanceTransactionsResponseBody) GetCount

func (*ListBalanceTransactionsResponseBody) GetEmbedded

type ListBalancesEmbedded

type ListBalancesEmbedded struct {
	// An array of balance objects. For a complete reference of
	// the balance object, refer to the [Get balance endpoint](get-balance) documentation.
	Balances []components.EntityBalance `json:"balances,omitempty"`
}

func (*ListBalancesEmbedded) GetBalances

func (l *ListBalancesEmbedded) GetBalances() []components.EntityBalance

type ListBalancesRequest

type ListBalancesRequest struct {
	// Optionally only return balances with the given currency. For example: `EUR`.
	Currency *string `queryParam:"style=form,explode=true,name=currency"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListBalancesRequest) GetCurrency

func (l *ListBalancesRequest) GetCurrency() *string

func (*ListBalancesRequest) GetFrom

func (l *ListBalancesRequest) GetFrom() *string

func (*ListBalancesRequest) GetIdempotencyKey

func (l *ListBalancesRequest) GetIdempotencyKey() *string

func (*ListBalancesRequest) GetLimit

func (l *ListBalancesRequest) GetLimit() *int64

func (*ListBalancesRequest) GetTestmode

func (l *ListBalancesRequest) GetTestmode() *bool

type ListBalancesResponse

type ListBalancesResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of balance objects. For a complete reference of the balance
	// object, refer to the [Get balance endpoint](get-balance) documentation.
	Object *ListBalancesResponseBody
}

func (*ListBalancesResponse) GetHTTPMeta

func (l *ListBalancesResponse) GetHTTPMeta() components.HTTPMetadata

func (*ListBalancesResponse) GetObject

type ListBalancesResponseBody

type ListBalancesResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    *int64                `json:"count,omitempty"`
	Embedded *ListBalancesEmbedded `json:"_embedded,omitempty"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links *components.ListLinks `json:"_links,omitempty"`
}

ListBalancesResponseBody - A list of balance objects. For a complete reference of the balance object, refer to the [Get balance endpoint](get-balance) documentation.

func (*ListBalancesResponseBody) GetCount

func (l *ListBalancesResponseBody) GetCount() *int64

func (*ListBalancesResponseBody) GetEmbedded

type ListCapabilitiesEmbedded

type ListCapabilitiesEmbedded struct {
	Capabilities []components.EntityCapability `json:"capabilities,omitempty"`
}

func (*ListCapabilitiesEmbedded) GetCapabilities

func (l *ListCapabilitiesEmbedded) GetCapabilities() []components.EntityCapability
type ListCapabilitiesLinks struct {
	Documentation *Documentation `json:"documentation,omitempty"`
}

func (*ListCapabilitiesLinks) GetDocumentation

func (l *ListCapabilitiesLinks) GetDocumentation() *Documentation

type ListCapabilitiesRequest

type ListCapabilitiesRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListCapabilitiesRequest) GetIdempotencyKey

func (l *ListCapabilitiesRequest) GetIdempotencyKey() *string

type ListCapabilitiesResponse

type ListCapabilitiesResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of capabilities.
	Object *ListCapabilitiesResponseBody
}

func (*ListCapabilitiesResponse) GetHTTPMeta

func (*ListCapabilitiesResponse) GetObject

type ListCapabilitiesResponseBody

type ListCapabilitiesResponseBody struct {
	// The number of items in this result set.
	Count    *int64                    `json:"count,omitempty"`
	Embedded *ListCapabilitiesEmbedded `json:"_embedded,omitempty"`
	Links    *ListCapabilitiesLinks    `json:"_links,omitempty"`
}

ListCapabilitiesResponseBody - A list of capabilities.

func (*ListCapabilitiesResponseBody) GetCount

func (l *ListCapabilitiesResponseBody) GetCount() *int64

func (*ListCapabilitiesResponseBody) GetEmbedded

type ListCapturesEmbedded

type ListCapturesEmbedded struct {
	// An array of capture objects.
	Captures []components.CaptureResponse `json:"captures"`
}

func (*ListCapturesEmbedded) GetCaptures

func (l *ListCapturesEmbedded) GetCaptures() []components.CaptureResponse

type ListCapturesRequest

type ListCapturesRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListCapturesRequest) GetEmbed

func (l *ListCapturesRequest) GetEmbed() *string

func (*ListCapturesRequest) GetFrom

func (l *ListCapturesRequest) GetFrom() *string

func (*ListCapturesRequest) GetIdempotencyKey

func (l *ListCapturesRequest) GetIdempotencyKey() *string

func (*ListCapturesRequest) GetLimit

func (l *ListCapturesRequest) GetLimit() *int64

func (*ListCapturesRequest) GetPaymentID

func (l *ListCapturesRequest) GetPaymentID() string

func (*ListCapturesRequest) GetTestmode

func (l *ListCapturesRequest) GetTestmode() *bool

type ListCapturesResponse

type ListCapturesResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of capture objects.
	Object *ListCapturesResponseBody
}

func (*ListCapturesResponse) GetHTTPMeta

func (l *ListCapturesResponse) GetHTTPMeta() components.HTTPMetadata

func (*ListCapturesResponse) GetObject

type ListCapturesResponseBody

type ListCapturesResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                `json:"count"`
	Embedded ListCapturesEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListCapturesResponseBody - A list of capture objects.

func (*ListCapturesResponseBody) GetCount

func (l *ListCapturesResponseBody) GetCount() int64

func (*ListCapturesResponseBody) GetEmbedded

type ListChargebacksEmbedded

type ListChargebacksEmbedded struct {
	// A list of chargeback objects.
	Chargebacks []components.EntityChargeback `json:"chargebacks,omitempty"`
}

func (*ListChargebacksEmbedded) GetChargebacks

func (l *ListChargebacksEmbedded) GetChargebacks() []components.EntityChargeback

type ListChargebacksRequest

type ListChargebacksRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListChargebacksRequest) GetEmbed

func (l *ListChargebacksRequest) GetEmbed() *string

func (*ListChargebacksRequest) GetFrom

func (l *ListChargebacksRequest) GetFrom() *string

func (*ListChargebacksRequest) GetIdempotencyKey

func (l *ListChargebacksRequest) GetIdempotencyKey() *string

func (*ListChargebacksRequest) GetLimit

func (l *ListChargebacksRequest) GetLimit() *int64

func (*ListChargebacksRequest) GetPaymentID

func (l *ListChargebacksRequest) GetPaymentID() string

func (*ListChargebacksRequest) GetTestmode

func (l *ListChargebacksRequest) GetTestmode() *bool

type ListChargebacksResponse

type ListChargebacksResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of chargeback objects.
	Object *ListChargebacksResponseBody
}

func (*ListChargebacksResponse) GetHTTPMeta

func (*ListChargebacksResponse) GetObject

type ListChargebacksResponseBody

type ListChargebacksResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    *int64                   `json:"count,omitempty"`
	Embedded *ListChargebacksEmbedded `json:"_embedded,omitempty"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links *components.ListLinks `json:"_links,omitempty"`
}

ListChargebacksResponseBody - A list of chargeback objects.

func (*ListChargebacksResponseBody) GetCount

func (l *ListChargebacksResponseBody) GetCount() *int64

func (*ListChargebacksResponseBody) GetEmbedded

type ListClientsCommission

type ListClientsCommission struct {
	// The commission count.
	Count *int64 `json:"count,omitempty"`
}

ListClientsCommission - The commission object.

func (*ListClientsCommission) GetCount

func (l *ListClientsCommission) GetCount() *int64

type ListClientsEmbedded

type ListClientsEmbedded struct {
	// An array of client objects. For a complete reference of the client object, refer to the
	// [Get client endpoint](get-client) documentation.
	Clients []Client `json:"clients,omitempty"`
}

func (*ListClientsEmbedded) GetClients

func (l *ListClientsEmbedded) GetClients() []Client
type ListClientsLinks struct {
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Self *components.URLObj `json:"self,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Organization *components.URLObj `json:"organization,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Onboarding *components.URLObj `json:"onboarding,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Documentation *components.URLObj `json:"documentation,omitempty"`
}

ListClientsLinks - An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.

func (*ListClientsLinks) GetDocumentation

func (l *ListClientsLinks) GetDocumentation() *components.URLObj

func (*ListClientsLinks) GetOnboarding

func (l *ListClientsLinks) GetOnboarding() *components.URLObj

func (*ListClientsLinks) GetOrganization

func (l *ListClientsLinks) GetOrganization() *components.URLObj

func (*ListClientsLinks) GetSelf

func (l *ListClientsLinks) GetSelf() *components.URLObj

type ListClientsRequest

type ListClientsRequest struct {
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListClientsRequest) GetEmbed

func (l *ListClientsRequest) GetEmbed() *string

func (*ListClientsRequest) GetFrom

func (l *ListClientsRequest) GetFrom() *string

func (*ListClientsRequest) GetIdempotencyKey

func (l *ListClientsRequest) GetIdempotencyKey() *string

func (*ListClientsRequest) GetLimit

func (l *ListClientsRequest) GetLimit() *int64

type ListClientsResponse

type ListClientsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of client objects. For a complete reference of the client object, refer to the
	// [Get client endpoint](get-client) documentation.
	Object *ListClientsResponseBody
}

func (*ListClientsResponse) GetHTTPMeta

func (l *ListClientsResponse) GetHTTPMeta() components.HTTPMetadata

func (*ListClientsResponse) GetObject

type ListClientsResponseBody

type ListClientsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    *int64               `json:"count,omitempty"`
	Embedded *ListClientsEmbedded `json:"_embedded,omitempty"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links *components.ListLinks `json:"_links,omitempty"`
}

ListClientsResponseBody - A list of client objects. For a complete reference of the client object, refer to the [Get client endpoint](get-client) documentation.

func (*ListClientsResponseBody) GetCount

func (l *ListClientsResponseBody) GetCount() *int64

func (*ListClientsResponseBody) GetEmbedded

func (l *ListClientsResponseBody) GetEmbedded() *ListClientsEmbedded

type ListConnectBalanceTransfersEmbedded added in v0.5.1

type ListConnectBalanceTransfersEmbedded struct {
	// A list of Connect balance transfers.
	ConnectBalanceTransfers []components.EntityBalanceTransferResponse `json:"connect_balance_transfers"`
}

func (*ListConnectBalanceTransfersEmbedded) GetConnectBalanceTransfers added in v0.5.1

type ListConnectBalanceTransfersRequest added in v0.5.1

type ListConnectBalanceTransfersRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListConnectBalanceTransfersRequest) GetFrom added in v0.5.1

func (*ListConnectBalanceTransfersRequest) GetIdempotencyKey added in v0.5.1

func (l *ListConnectBalanceTransfersRequest) GetIdempotencyKey() *string

func (*ListConnectBalanceTransfersRequest) GetLimit added in v0.5.1

func (*ListConnectBalanceTransfersRequest) GetSort added in v0.5.1

func (*ListConnectBalanceTransfersRequest) GetTestmode added in v0.5.1

func (l *ListConnectBalanceTransfersRequest) GetTestmode() *bool

type ListConnectBalanceTransfersResponse added in v0.5.1

type ListConnectBalanceTransfersResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of Connect balance transfers. For a complete reference of the Connect balance transfer
	// object, refer to the [Get balance transfer endpoint](get-balance-transfer) documentation.
	Object *ListConnectBalanceTransfersResponseBody
}

func (*ListConnectBalanceTransfersResponse) GetHTTPMeta added in v0.5.1

func (*ListConnectBalanceTransfersResponse) GetObject added in v0.5.1

type ListConnectBalanceTransfersResponseBody added in v0.5.1

type ListConnectBalanceTransfersResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                               `json:"count"`
	Embedded ListConnectBalanceTransfersEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListConnectBalanceTransfersResponseBody - A list of Connect balance transfers. For a complete reference of the Connect balance transfer object, refer to the [Get balance transfer endpoint](get-balance-transfer) documentation.

func (*ListConnectBalanceTransfersResponseBody) GetCount added in v0.5.1

func (*ListConnectBalanceTransfersResponseBody) GetEmbedded added in v0.5.1

type ListCustomerPaymentsEmbedded

type ListCustomerPaymentsEmbedded struct {
	// An array of payment objects.
	Payments []components.PaymentResponse `json:"payments,omitempty"`
}

func (*ListCustomerPaymentsEmbedded) GetPayments

type ListCustomerPaymentsRequest

type ListCustomerPaymentsRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate
	// the result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// The identifier referring to the [profile](get-profile) you wish to
	// retrieve the resources for.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted. For
	// organization-level credentials such as OAuth access tokens however, the `profileId` parameter is required.
	ProfileID *string `queryParam:"style=form,explode=true,name=profileId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListCustomerPaymentsRequest) GetCustomerID

func (l *ListCustomerPaymentsRequest) GetCustomerID() string

func (*ListCustomerPaymentsRequest) GetFrom

func (l *ListCustomerPaymentsRequest) GetFrom() *string

func (*ListCustomerPaymentsRequest) GetIdempotencyKey

func (l *ListCustomerPaymentsRequest) GetIdempotencyKey() *string

func (*ListCustomerPaymentsRequest) GetLimit

func (l *ListCustomerPaymentsRequest) GetLimit() *int64

func (*ListCustomerPaymentsRequest) GetProfileID

func (l *ListCustomerPaymentsRequest) GetProfileID() *string

func (*ListCustomerPaymentsRequest) GetSort

func (*ListCustomerPaymentsRequest) GetTestmode

func (l *ListCustomerPaymentsRequest) GetTestmode() *bool

type ListCustomerPaymentsResponse

type ListCustomerPaymentsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of payment objects.
	Object *ListCustomerPaymentsResponseBody
}

func (*ListCustomerPaymentsResponse) GetHTTPMeta

func (*ListCustomerPaymentsResponse) GetObject

type ListCustomerPaymentsResponseBody

type ListCustomerPaymentsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                        `json:"count"`
	Embedded ListCustomerPaymentsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListCustomerPaymentsResponseBody - A list of payment objects.

func (*ListCustomerPaymentsResponseBody) GetCount

func (*ListCustomerPaymentsResponseBody) GetEmbedded

type ListCustomersEmbedded

type ListCustomersEmbedded struct {
	// An array of customer objects.
	Customers []components.CustomerResponse `json:"customers"`
}

func (*ListCustomersEmbedded) GetCustomers

type ListCustomersRequest

type ListCustomersRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListCustomersRequest) GetFrom

func (l *ListCustomersRequest) GetFrom() *string

func (*ListCustomersRequest) GetIdempotencyKey

func (l *ListCustomersRequest) GetIdempotencyKey() *string

func (*ListCustomersRequest) GetLimit

func (l *ListCustomersRequest) GetLimit() *int64

func (*ListCustomersRequest) GetSort

func (*ListCustomersRequest) GetTestmode

func (l *ListCustomersRequest) GetTestmode() *bool

type ListCustomersResponse

type ListCustomersResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of customer objects.
	Object *ListCustomersResponseBody
}

func (*ListCustomersResponse) GetHTTPMeta

func (*ListCustomersResponse) GetObject

type ListCustomersResponseBody

type ListCustomersResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                 `json:"count"`
	Embedded ListCustomersEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListCustomersResponseBody - A list of customer objects.

func (*ListCustomersResponseBody) GetCount

func (l *ListCustomersResponseBody) GetCount() int64

func (*ListCustomersResponseBody) GetEmbedded

type ListInvoicesEmbedded

type ListInvoicesEmbedded struct {
	// An array of invoice objects. For a complete reference of
	// the invoice object, refer to the [Get invoice endpoint](get-invoice) documentation.
	Invoices []Invoice `json:"invoices,omitempty"`
}

func (*ListInvoicesEmbedded) GetInvoices

func (l *ListInvoicesEmbedded) GetInvoices() []Invoice

type ListInvoicesRequest

type ListInvoicesRequest struct {
	// Filter for an invoice with a specific invoice reference, for example
	// `2024.10000`.
	Reference *string `queryParam:"style=form,explode=true,name=reference"`
	// Filter for invoices of a specific year, for example `2024`.
	Year *string `queryParam:"style=form,explode=true,name=year"`
	// Filter for invoices of a specific month, for example `01`.
	Month *string `queryParam:"style=form,explode=true,name=month"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListInvoicesRequest) GetFrom

func (l *ListInvoicesRequest) GetFrom() *string

func (*ListInvoicesRequest) GetIdempotencyKey

func (l *ListInvoicesRequest) GetIdempotencyKey() *string

func (*ListInvoicesRequest) GetLimit

func (l *ListInvoicesRequest) GetLimit() *int64

func (*ListInvoicesRequest) GetMonth

func (l *ListInvoicesRequest) GetMonth() *string

func (*ListInvoicesRequest) GetReference

func (l *ListInvoicesRequest) GetReference() *string

func (*ListInvoicesRequest) GetSort

func (l *ListInvoicesRequest) GetSort() *components.ListSort

func (*ListInvoicesRequest) GetYear

func (l *ListInvoicesRequest) GetYear() *string

type ListInvoicesResponse

type ListInvoicesResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of invoice objects. For a complete reference of the invoice
	// object, refer to the [Get invoice endpoint](get-invoice) documentation.
	Object *ListInvoicesResponseBody
}

func (*ListInvoicesResponse) GetHTTPMeta

func (l *ListInvoicesResponse) GetHTTPMeta() components.HTTPMetadata

func (*ListInvoicesResponse) GetObject

type ListInvoicesResponseBody

type ListInvoicesResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    *int64                `json:"count,omitempty"`
	Embedded *ListInvoicesEmbedded `json:"_embedded,omitempty"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links *components.ListLinks `json:"_links,omitempty"`
}

ListInvoicesResponseBody - A list of invoice objects. For a complete reference of the invoice object, refer to the [Get invoice endpoint](get-invoice) documentation.

func (*ListInvoicesResponseBody) GetCount

func (l *ListInvoicesResponseBody) GetCount() *int64

func (*ListInvoicesResponseBody) GetEmbedded

type ListMandatesEmbedded

type ListMandatesEmbedded struct {
	// An array of mandate objects.
	Mandates []components.MandateResponse `json:"mandates"`
}

func (*ListMandatesEmbedded) GetMandates

func (l *ListMandatesEmbedded) GetMandates() []components.MandateResponse

type ListMandatesRequest

type ListMandatesRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListMandatesRequest) GetCustomerID

func (l *ListMandatesRequest) GetCustomerID() string

func (*ListMandatesRequest) GetFrom

func (l *ListMandatesRequest) GetFrom() *string

func (*ListMandatesRequest) GetIdempotencyKey

func (l *ListMandatesRequest) GetIdempotencyKey() *string

func (*ListMandatesRequest) GetLimit

func (l *ListMandatesRequest) GetLimit() *int64

func (*ListMandatesRequest) GetSort

func (l *ListMandatesRequest) GetSort() *components.ListSort

func (*ListMandatesRequest) GetTestmode

func (l *ListMandatesRequest) GetTestmode() *bool

type ListMandatesResponse

type ListMandatesResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of mandate objects.
	Object *ListMandatesResponseBody
}

func (*ListMandatesResponse) GetHTTPMeta

func (l *ListMandatesResponse) GetHTTPMeta() components.HTTPMetadata

func (*ListMandatesResponse) GetObject

type ListMandatesResponseBody

type ListMandatesResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                `json:"count"`
	Embedded ListMandatesEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListMandatesResponseBody - A list of mandate objects.

func (*ListMandatesResponseBody) GetCount

func (l *ListMandatesResponseBody) GetCount() int64

func (*ListMandatesResponseBody) GetEmbedded

type ListMethodsEmbedded

type ListMethodsEmbedded struct {
	// An array of payment method objects. For a complete
	// reference of the payment method object, refer
	// to the [Get payment method endpoint](get-method)
	// documentation.
	Methods []components.EntityMethod `json:"methods"`
}

func (*ListMethodsEmbedded) GetMethods

func (l *ListMethodsEmbedded) GetMethods() []components.EntityMethod
type ListMethodsLinks struct {
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Self components.URLObj `json:"self"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Documentation components.URLObj `json:"documentation"`
}

func (*ListMethodsLinks) GetDocumentation

func (l *ListMethodsLinks) GetDocumentation() components.URLObj

func (*ListMethodsLinks) GetSelf

func (l *ListMethodsLinks) GetSelf() components.URLObj

type ListMethodsRequest

type ListMethodsRequest struct {
	// Set this parameter to `first` to only return the enabled methods that
	// can be used for the first payment of a recurring sequence.
	//
	// Set it to `recurring` to only return enabled methods that can be used for recurring payments or subscriptions.
	SequenceType *components.SequenceType `queryParam:"style=form,explode=true,name=sequenceType"`
	// Response language
	Locale *components.LocaleParameter `queryParam:"style=form,explode=true,name=locale"`
	// If supplied, only payment methods that support the amount and currency
	// are returned.
	//
	// Example: `/v2/methods?amount[value]=100.00&amount[currency]=USD`
	Amount *components.Amount `queryParam:"style=deepObject,explode=true,name=amount"`
	// **⚠️ We no longer recommend using the Orders API. Please refer to the [Payments API](payments-api) instead.**
	//
	// Indicate if you will use the result for the [Create order](create-order)
	// or the [Create payment](create-payment) endpoint.
	//
	// When passing the value `orders`, the result will include payment methods
	// that are only available for payments created via the Orders API.
	//
	// Deprecated: This will be removed in a future release, please migrate away from it as soon as possible.
	Resource *Resource `queryParam:"style=form,explode=true,name=resource"`
	// The country taken from your customer's billing address in ISO 3166-1 alpha-2 format. This parameter can be used
	// to check whether your customer is eligible for certain payment methods, for example for Klarna.
	//
	// Example: `/v2/methods?resource=orders&billingCountry=DE`
	BillingCountry *string `queryParam:"style=form,explode=true,name=billingCountry"`
	// A comma-separated list of the wallets you support in your checkout. Wallets often require wallet specific code
	// to check if they are available on the shoppers device, hence the need to indicate your support.
	IncludeWallets *IncludeWallets `queryParam:"style=form,explode=true,name=includeWallets"`
	// A comma-separated list of the line categories you support in your checkout.
	//
	// Example: `/v2/methods?orderLineCategories=eco,meal`
	OrderLineCategories *components.LineCategories `queryParam:"style=form,explode=true,name=orderLineCategories"`
	// The identifier referring to the [profile](get-profile) you wish to
	// retrieve the resources for.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted. For
	// organization-level credentials such as OAuth access tokens however, the `profileId` parameter is required.
	ProfileID *string `queryParam:"style=form,explode=true,name=profileId"`
	// This endpoint allows you to include additional information via the `include` query string parameter.
	Include *string `queryParam:"style=form,explode=true,name=include"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListMethodsRequest) GetAmount

func (l *ListMethodsRequest) GetAmount() *components.Amount

func (*ListMethodsRequest) GetBillingCountry

func (l *ListMethodsRequest) GetBillingCountry() *string

func (*ListMethodsRequest) GetIdempotencyKey

func (l *ListMethodsRequest) GetIdempotencyKey() *string

func (*ListMethodsRequest) GetInclude

func (l *ListMethodsRequest) GetInclude() *string

func (*ListMethodsRequest) GetIncludeWallets

func (l *ListMethodsRequest) GetIncludeWallets() *IncludeWallets

func (*ListMethodsRequest) GetLocale

func (*ListMethodsRequest) GetOrderLineCategories

func (l *ListMethodsRequest) GetOrderLineCategories() *components.LineCategories

func (*ListMethodsRequest) GetProfileID

func (l *ListMethodsRequest) GetProfileID() *string

func (*ListMethodsRequest) GetResource

func (l *ListMethodsRequest) GetResource() *Resource

func (*ListMethodsRequest) GetSequenceType

func (l *ListMethodsRequest) GetSequenceType() *components.SequenceType

func (*ListMethodsRequest) GetTestmode

func (l *ListMethodsRequest) GetTestmode() *bool

type ListMethodsResponse

type ListMethodsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of payment method objects. For a complete reference of the
	// payment method object, refer to the [Get payment method endpoint](get-method) documentation.
	Object *ListMethodsResponseBody
}

func (*ListMethodsResponse) GetHTTPMeta

func (l *ListMethodsResponse) GetHTTPMeta() components.HTTPMetadata

func (*ListMethodsResponse) GetObject

type ListMethodsResponseBody

type ListMethodsResponseBody struct {
	// The number of payment method objects in this result set.
	// Results are **not** paginated.
	Count    int64               `json:"count"`
	Embedded ListMethodsEmbedded `json:"_embedded"`
	Links    ListMethodsLinks    `json:"_links"`
}

ListMethodsResponseBody - A list of payment method objects. For a complete reference of the payment method object, refer to the [Get payment method endpoint](get-method) documentation.

func (*ListMethodsResponseBody) GetCount

func (l *ListMethodsResponseBody) GetCount() int64

func (*ListMethodsResponseBody) GetEmbedded

type ListPaymentLinksEmbedded

type ListPaymentLinksEmbedded struct {
	// An array of payment link objects.
	PaymentLinks []components.PaymentLinkResponse `json:"payment_links,omitempty"`
}

type ListPaymentLinksRequest

type ListPaymentLinksRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListPaymentLinksRequest) GetFrom

func (l *ListPaymentLinksRequest) GetFrom() *string

func (*ListPaymentLinksRequest) GetIdempotencyKey

func (l *ListPaymentLinksRequest) GetIdempotencyKey() *string

func (*ListPaymentLinksRequest) GetLimit

func (l *ListPaymentLinksRequest) GetLimit() *int64

func (*ListPaymentLinksRequest) GetTestmode

func (l *ListPaymentLinksRequest) GetTestmode() *bool

type ListPaymentLinksResponse

type ListPaymentLinksResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of payment link objects.
	Object *ListPaymentLinksResponseBody
}

func (*ListPaymentLinksResponse) GetHTTPMeta

func (*ListPaymentLinksResponse) GetObject

type ListPaymentLinksResponseBody

type ListPaymentLinksResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                    `json:"count"`
	Embedded ListPaymentLinksEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListPaymentLinksResponseBody - A list of payment link objects.

func (*ListPaymentLinksResponseBody) GetCount

func (l *ListPaymentLinksResponseBody) GetCount() int64

func (*ListPaymentLinksResponseBody) GetEmbedded

type ListPaymentsEmbedded

type ListPaymentsEmbedded struct {
	// An array of payment objects.
	Payments []components.PaymentResponse `json:"payments,omitempty"`
}

func (*ListPaymentsEmbedded) GetPayments

func (l *ListPaymentsEmbedded) GetPayments() []components.PaymentResponse

type ListPaymentsRequest

type ListPaymentsRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate
	// the result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// The identifier referring to the [profile](get-profile) you wish to
	// retrieve the resources for.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted. For
	// organization-level credentials such as OAuth access tokens however, the `profileId` parameter is required.
	ProfileID *string `queryParam:"style=form,explode=true,name=profileId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListPaymentsRequest) GetFrom

func (l *ListPaymentsRequest) GetFrom() *string

func (*ListPaymentsRequest) GetIdempotencyKey

func (l *ListPaymentsRequest) GetIdempotencyKey() *string

func (*ListPaymentsRequest) GetLimit

func (l *ListPaymentsRequest) GetLimit() *int64

func (*ListPaymentsRequest) GetProfileID

func (l *ListPaymentsRequest) GetProfileID() *string

func (*ListPaymentsRequest) GetSort

func (l *ListPaymentsRequest) GetSort() *components.ListSort

func (*ListPaymentsRequest) GetTestmode

func (l *ListPaymentsRequest) GetTestmode() *bool

type ListPaymentsResponse

type ListPaymentsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of payment objects.
	Object *ListPaymentsResponseBody
}

func (*ListPaymentsResponse) GetHTTPMeta

func (l *ListPaymentsResponse) GetHTTPMeta() components.HTTPMetadata

func (*ListPaymentsResponse) GetObject

type ListPaymentsResponseBody

type ListPaymentsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                `json:"count"`
	Embedded ListPaymentsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListPaymentsResponseBody - A list of payment objects.

func (*ListPaymentsResponseBody) GetCount

func (l *ListPaymentsResponseBody) GetCount() int64

func (*ListPaymentsResponseBody) GetEmbedded

type ListPermissionsEmbedded

type ListPermissionsEmbedded struct {
	// An array of permission objects.
	Permissions []components.EntityPermission `json:"permissions,omitempty"`
}

func (*ListPermissionsEmbedded) GetPermissions

func (l *ListPermissionsEmbedded) GetPermissions() []components.EntityPermission
type ListPermissionsLinks struct {
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Self *components.URLObj `json:"self,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Documentation *components.URLObj `json:"documentation,omitempty"`
}

ListPermissionsLinks - An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.

func (*ListPermissionsLinks) GetDocumentation

func (l *ListPermissionsLinks) GetDocumentation() *components.URLObj

func (*ListPermissionsLinks) GetSelf

func (l *ListPermissionsLinks) GetSelf() *components.URLObj

type ListPermissionsRequest

type ListPermissionsRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListPermissionsRequest) GetIdempotencyKey

func (l *ListPermissionsRequest) GetIdempotencyKey() *string

type ListPermissionsResponse

type ListPermissionsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of permission objects.
	Object *ListPermissionsResponseBody
}

func (*ListPermissionsResponse) GetHTTPMeta

func (*ListPermissionsResponse) GetObject

type ListPermissionsResponseBody

type ListPermissionsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    *int64                   `json:"count,omitempty"`
	Embedded *ListPermissionsEmbedded `json:"_embedded,omitempty"`
	// An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
	Links *ListPermissionsLinks `json:"_links,omitempty"`
}

ListPermissionsResponseBody - A list of permission objects.

func (*ListPermissionsResponseBody) GetCount

func (l *ListPermissionsResponseBody) GetCount() *int64

func (*ListPermissionsResponseBody) GetEmbedded

type ListProfilesEmbedded

type ListProfilesEmbedded struct {
	// An array of profile objects.
	Profiles []components.EntityProfileResponse `json:"profiles,omitempty"`
}

func (*ListProfilesEmbedded) GetProfiles

type ListProfilesRequest

type ListProfilesRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListProfilesRequest) GetFrom

func (l *ListProfilesRequest) GetFrom() *string

func (*ListProfilesRequest) GetIdempotencyKey

func (l *ListProfilesRequest) GetIdempotencyKey() *string

func (*ListProfilesRequest) GetLimit

func (l *ListProfilesRequest) GetLimit() *int64

type ListProfilesResponse

type ListProfilesResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of profile objects.
	Object *ListProfilesResponseBody
}

func (*ListProfilesResponse) GetHTTPMeta

func (l *ListProfilesResponse) GetHTTPMeta() components.HTTPMetadata

func (*ListProfilesResponse) GetObject

type ListProfilesResponseBody

type ListProfilesResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    *int64                `json:"count,omitempty"`
	Embedded *ListProfilesEmbedded `json:"_embedded,omitempty"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links *components.ListLinks `json:"_links,omitempty"`
}

ListProfilesResponseBody - A list of profile objects.

func (*ListProfilesResponseBody) GetCount

func (l *ListProfilesResponseBody) GetCount() *int64

func (*ListProfilesResponseBody) GetEmbedded

type ListRefundsEmbedded

type ListRefundsEmbedded struct {
	// An array of refund objects.
	Refunds []components.EntityRefundResponse `json:"refunds"`
}

func (*ListRefundsEmbedded) GetRefunds

type ListRefundsRequest

type ListRefundsRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListRefundsRequest) GetEmbed

func (l *ListRefundsRequest) GetEmbed() *string

func (*ListRefundsRequest) GetFrom

func (l *ListRefundsRequest) GetFrom() *string

func (*ListRefundsRequest) GetIdempotencyKey

func (l *ListRefundsRequest) GetIdempotencyKey() *string

func (*ListRefundsRequest) GetLimit

func (l *ListRefundsRequest) GetLimit() *int64

func (*ListRefundsRequest) GetPaymentID

func (l *ListRefundsRequest) GetPaymentID() string

func (*ListRefundsRequest) GetTestmode

func (l *ListRefundsRequest) GetTestmode() *bool

type ListRefundsResponse

type ListRefundsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of refund objects. For a complete reference of the refund object, refer to the
	// [Get refund endpoint](get-refund) documentation.
	Object *ListRefundsResponseBody
}

func (*ListRefundsResponse) GetHTTPMeta

func (l *ListRefundsResponse) GetHTTPMeta() components.HTTPMetadata

func (*ListRefundsResponse) GetObject

type ListRefundsResponseBody

type ListRefundsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64               `json:"count"`
	Embedded ListRefundsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListRefundsResponseBody - A list of refund objects. For a complete reference of the refund object, refer to the [Get refund endpoint](get-refund) documentation.

func (*ListRefundsResponseBody) GetCount

func (l *ListRefundsResponseBody) GetCount() int64

func (*ListRefundsResponseBody) GetEmbedded

type ListSalesInvoicesEmbedded

type ListSalesInvoicesEmbedded struct {
	// An array of sales invoice objects. For a complete reference of the sales invoice object, refer to
	// the [Get sales invoice endpoint](get-sales-invoice) documentation.
	SalesInvoices []components.EntitySalesInvoiceResponse `json:"sales_invoices,omitempty"`
}

func (*ListSalesInvoicesEmbedded) GetSalesInvoices

type ListSalesInvoicesRequest

type ListSalesInvoicesRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListSalesInvoicesRequest) GetFrom

func (l *ListSalesInvoicesRequest) GetFrom() *string

func (*ListSalesInvoicesRequest) GetIdempotencyKey

func (l *ListSalesInvoicesRequest) GetIdempotencyKey() *string

func (*ListSalesInvoicesRequest) GetLimit

func (l *ListSalesInvoicesRequest) GetLimit() *int64

func (*ListSalesInvoicesRequest) GetTestmode

func (l *ListSalesInvoicesRequest) GetTestmode() *bool

type ListSalesInvoicesResponse

type ListSalesInvoicesResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of sales invoice objects. For a complete reference of the sales invoice object, refer to the
	// [Get sales invoice endpoint](get-sales-invoice) documentation.
	Object *ListSalesInvoicesResponseBody
}

func (*ListSalesInvoicesResponse) GetHTTPMeta

func (*ListSalesInvoicesResponse) GetObject

type ListSalesInvoicesResponseBody

type ListSalesInvoicesResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    *int64                     `json:"count,omitempty"`
	Embedded *ListSalesInvoicesEmbedded `json:"_embedded,omitempty"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links *components.ListLinks `json:"_links,omitempty"`
}

ListSalesInvoicesResponseBody - A list of sales invoice objects. For a complete reference of the sales invoice object, refer to the [Get sales invoice endpoint](get-sales-invoice) documentation.

func (*ListSalesInvoicesResponseBody) GetCount

func (l *ListSalesInvoicesResponseBody) GetCount() *int64

func (*ListSalesInvoicesResponseBody) GetEmbedded

type ListSettlementCapturesEmbedded

type ListSettlementCapturesEmbedded struct {
	// An array of capture objects.
	Captures []components.CaptureResponse `json:"captures"`
}

func (*ListSettlementCapturesEmbedded) GetCaptures

type ListSettlementCapturesRequest

type ListSettlementCapturesRequest struct {
	// Provide the ID of the related settlement.
	SettlementID string `pathParam:"style=simple,explode=false,name=settlementId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListSettlementCapturesRequest) GetEmbed

func (l *ListSettlementCapturesRequest) GetEmbed() *string

func (*ListSettlementCapturesRequest) GetFrom

func (l *ListSettlementCapturesRequest) GetFrom() *string

func (*ListSettlementCapturesRequest) GetIdempotencyKey

func (l *ListSettlementCapturesRequest) GetIdempotencyKey() *string

func (*ListSettlementCapturesRequest) GetLimit

func (l *ListSettlementCapturesRequest) GetLimit() *int64

func (*ListSettlementCapturesRequest) GetSettlementID

func (l *ListSettlementCapturesRequest) GetSettlementID() string

func (*ListSettlementCapturesRequest) GetTestmode

func (l *ListSettlementCapturesRequest) GetTestmode() *bool

type ListSettlementCapturesResponse

type ListSettlementCapturesResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of capture objects.
	Object *ListSettlementCapturesResponseBody
}

func (*ListSettlementCapturesResponse) GetHTTPMeta

func (*ListSettlementCapturesResponse) GetObject

type ListSettlementCapturesResponseBody

type ListSettlementCapturesResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                          `json:"count"`
	Embedded ListSettlementCapturesEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListSettlementCapturesResponseBody - A list of capture objects.

func (*ListSettlementCapturesResponseBody) GetCount

func (*ListSettlementCapturesResponseBody) GetEmbedded

type ListSettlementChargebacksEmbedded

type ListSettlementChargebacksEmbedded struct {
	// A list of chargeback objects.
	Chargebacks []components.EntityChargeback `json:"chargebacks,omitempty"`
}

func (*ListSettlementChargebacksEmbedded) GetChargebacks

type ListSettlementChargebacksRequest

type ListSettlementChargebacksRequest struct {
	// Provide the ID of the related settlement.
	SettlementID string `pathParam:"style=simple,explode=false,name=settlementId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListSettlementChargebacksRequest) GetEmbed

func (*ListSettlementChargebacksRequest) GetFrom

func (*ListSettlementChargebacksRequest) GetIdempotencyKey

func (l *ListSettlementChargebacksRequest) GetIdempotencyKey() *string

func (*ListSettlementChargebacksRequest) GetLimit

func (l *ListSettlementChargebacksRequest) GetLimit() *int64

func (*ListSettlementChargebacksRequest) GetSettlementID

func (l *ListSettlementChargebacksRequest) GetSettlementID() string

func (*ListSettlementChargebacksRequest) GetTestmode

func (l *ListSettlementChargebacksRequest) GetTestmode() *bool

type ListSettlementChargebacksResponse

type ListSettlementChargebacksResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of chargeback objects.
	Object *ListSettlementChargebacksResponseBody
}

func (*ListSettlementChargebacksResponse) GetHTTPMeta

func (*ListSettlementChargebacksResponse) GetObject

type ListSettlementChargebacksResponseBody

type ListSettlementChargebacksResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    *int64                             `json:"count,omitempty"`
	Embedded *ListSettlementChargebacksEmbedded `json:"_embedded,omitempty"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links *components.ListLinks `json:"_links,omitempty"`
}

ListSettlementChargebacksResponseBody - A list of chargeback objects.

func (*ListSettlementChargebacksResponseBody) GetCount

func (*ListSettlementChargebacksResponseBody) GetEmbedded

type ListSettlementPaymentsEmbedded

type ListSettlementPaymentsEmbedded struct {
	// An array of payment objects.
	Payments []components.PaymentResponse `json:"payments,omitempty"`
}

func (*ListSettlementPaymentsEmbedded) GetPayments

type ListSettlementPaymentsRequest

type ListSettlementPaymentsRequest struct {
	// Provide the ID of the related settlement.
	SettlementID string `pathParam:"style=simple,explode=false,name=settlementId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate
	// the result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// The identifier referring to the [profile](get-profile) you wish to
	// retrieve the resources for.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted. For
	// organization-level credentials such as OAuth access tokens however, the `profileId` parameter is required.
	ProfileID *string `queryParam:"style=form,explode=true,name=profileId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListSettlementPaymentsRequest) GetFrom

func (l *ListSettlementPaymentsRequest) GetFrom() *string

func (*ListSettlementPaymentsRequest) GetIdempotencyKey

func (l *ListSettlementPaymentsRequest) GetIdempotencyKey() *string

func (*ListSettlementPaymentsRequest) GetLimit

func (l *ListSettlementPaymentsRequest) GetLimit() *int64

func (*ListSettlementPaymentsRequest) GetProfileID

func (l *ListSettlementPaymentsRequest) GetProfileID() *string

func (*ListSettlementPaymentsRequest) GetSettlementID

func (l *ListSettlementPaymentsRequest) GetSettlementID() string

func (*ListSettlementPaymentsRequest) GetSort

func (*ListSettlementPaymentsRequest) GetTestmode

func (l *ListSettlementPaymentsRequest) GetTestmode() *bool

type ListSettlementPaymentsResponse

type ListSettlementPaymentsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of payment objects.
	Object *ListSettlementPaymentsResponseBody
}

func (*ListSettlementPaymentsResponse) GetHTTPMeta

func (*ListSettlementPaymentsResponse) GetObject

type ListSettlementPaymentsResponseBody

type ListSettlementPaymentsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                          `json:"count"`
	Embedded ListSettlementPaymentsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListSettlementPaymentsResponseBody - A list of payment objects.

func (*ListSettlementPaymentsResponseBody) GetCount

func (*ListSettlementPaymentsResponseBody) GetEmbedded

type ListSettlementRefundsEmbedded

type ListSettlementRefundsEmbedded struct {
	// An array of refund objects.
	Refunds []components.EntityRefundResponse `json:"refunds"`
}

func (*ListSettlementRefundsEmbedded) GetRefunds

type ListSettlementRefundsRequest

type ListSettlementRefundsRequest struct {
	// Provide the ID of the related settlement.
	SettlementID string `pathParam:"style=simple,explode=false,name=settlementId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// This endpoint allows embedding related API items by appending the following values via the `embed` query string
	// parameter.
	Embed *string `queryParam:"style=form,explode=true,name=embed"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListSettlementRefundsRequest) GetEmbed

func (l *ListSettlementRefundsRequest) GetEmbed() *string

func (*ListSettlementRefundsRequest) GetFrom

func (l *ListSettlementRefundsRequest) GetFrom() *string

func (*ListSettlementRefundsRequest) GetIdempotencyKey

func (l *ListSettlementRefundsRequest) GetIdempotencyKey() *string

func (*ListSettlementRefundsRequest) GetLimit

func (l *ListSettlementRefundsRequest) GetLimit() *int64

func (*ListSettlementRefundsRequest) GetSettlementID

func (l *ListSettlementRefundsRequest) GetSettlementID() string

func (*ListSettlementRefundsRequest) GetTestmode

func (l *ListSettlementRefundsRequest) GetTestmode() *bool

type ListSettlementRefundsResponse

type ListSettlementRefundsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of refund objects. For a complete reference of the refund object, refer to the
	// [Get refund endpoint](get-refund) documentation.
	Object *ListSettlementRefundsResponseBody
}

func (*ListSettlementRefundsResponse) GetHTTPMeta

func (*ListSettlementRefundsResponse) GetObject

type ListSettlementRefundsResponseBody

type ListSettlementRefundsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                         `json:"count"`
	Embedded ListSettlementRefundsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListSettlementRefundsResponseBody - A list of refund objects. For a complete reference of the refund object, refer to the [Get refund endpoint](get-refund) documentation.

func (*ListSettlementRefundsResponseBody) GetCount

func (*ListSettlementRefundsResponseBody) GetEmbedded

type ListSettlementsEmbedded

type ListSettlementsEmbedded struct {
	// An array of settlement objects. For a complete reference
	// of the settlement object, refer to the [Get settlement endpoint](get-settlement) documentation.
	Settlements []components.EntitySettlement `json:"settlements"`
}

func (*ListSettlementsEmbedded) GetSettlements

func (l *ListSettlementsEmbedded) GetSettlements() []components.EntitySettlement

type ListSettlementsRequest

type ListSettlementsRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Provide the token of the balance to filter the settlements by. This is
	// the balance token that the settlement was settled to.
	BalanceID *string `queryParam:"style=form,explode=true,name=balanceId"`
	// Provide the year to query the settlements. Must be used combined with `month` parameter
	Year *string `queryParam:"style=form,explode=true,name=year"`
	// Provide the month to query the settlements. Must be used combined with `year` parameter
	Month *string `queryParam:"style=form,explode=true,name=month"`
	// Provides the currencies to retrieve the settlements. It accepts multiple currencies in a comma-separated format.
	Currencies *components.Currencies `queryParam:"style=form,explode=true,name=currencies"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListSettlementsRequest) GetBalanceID

func (l *ListSettlementsRequest) GetBalanceID() *string

func (*ListSettlementsRequest) GetCurrencies

func (l *ListSettlementsRequest) GetCurrencies() *components.Currencies

func (*ListSettlementsRequest) GetFrom

func (l *ListSettlementsRequest) GetFrom() *string

func (*ListSettlementsRequest) GetIdempotencyKey

func (l *ListSettlementsRequest) GetIdempotencyKey() *string

func (*ListSettlementsRequest) GetLimit

func (l *ListSettlementsRequest) GetLimit() *int64

func (*ListSettlementsRequest) GetMonth

func (l *ListSettlementsRequest) GetMonth() *string

func (*ListSettlementsRequest) GetYear

func (l *ListSettlementsRequest) GetYear() *string

type ListSettlementsResponse

type ListSettlementsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of settlement objects. For a complete reference of the settlement
	// object, refer to the [Get settlement endpoint](get-settlement) documentation.
	Object *ListSettlementsResponseBody
}

func (*ListSettlementsResponse) GetHTTPMeta

func (*ListSettlementsResponse) GetObject

type ListSettlementsResponseBody

type ListSettlementsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                   `json:"count"`
	Embedded ListSettlementsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListSettlementsResponseBody - A list of settlement objects. For a complete reference of the settlement object, refer to the [Get settlement endpoint](get-settlement) documentation.

func (*ListSettlementsResponseBody) GetCount

func (l *ListSettlementsResponseBody) GetCount() int64

func (*ListSettlementsResponseBody) GetEmbedded

type ListSubscriptionPaymentsEmbedded

type ListSubscriptionPaymentsEmbedded struct {
	// An array of payment objects.
	Payments []components.PaymentResponse `json:"payments,omitempty"`
}

func (*ListSubscriptionPaymentsEmbedded) GetPayments

type ListSubscriptionPaymentsRequest

type ListSubscriptionPaymentsRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// Provide the ID of the related subscription.
	SubscriptionID string `pathParam:"style=simple,explode=false,name=subscriptionId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate
	// the result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// The identifier referring to the [profile](get-profile) you wish to
	// retrieve the resources for.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted. For
	// organization-level credentials such as OAuth access tokens however, the `profileId` parameter is required.
	ProfileID *string `queryParam:"style=form,explode=true,name=profileId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListSubscriptionPaymentsRequest) GetCustomerID

func (l *ListSubscriptionPaymentsRequest) GetCustomerID() string

func (*ListSubscriptionPaymentsRequest) GetFrom

func (*ListSubscriptionPaymentsRequest) GetIdempotencyKey

func (l *ListSubscriptionPaymentsRequest) GetIdempotencyKey() *string

func (*ListSubscriptionPaymentsRequest) GetLimit

func (l *ListSubscriptionPaymentsRequest) GetLimit() *int64

func (*ListSubscriptionPaymentsRequest) GetProfileID

func (l *ListSubscriptionPaymentsRequest) GetProfileID() *string

func (*ListSubscriptionPaymentsRequest) GetSort

func (*ListSubscriptionPaymentsRequest) GetSubscriptionID

func (l *ListSubscriptionPaymentsRequest) GetSubscriptionID() string

func (*ListSubscriptionPaymentsRequest) GetTestmode

func (l *ListSubscriptionPaymentsRequest) GetTestmode() *bool

type ListSubscriptionPaymentsResponse

type ListSubscriptionPaymentsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of payment objects.
	Object *ListSubscriptionPaymentsResponseBody
}

func (*ListSubscriptionPaymentsResponse) GetHTTPMeta

func (*ListSubscriptionPaymentsResponse) GetObject

type ListSubscriptionPaymentsResponseBody

type ListSubscriptionPaymentsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                            `json:"count"`
	Embedded ListSubscriptionPaymentsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListSubscriptionPaymentsResponseBody - A list of payment objects.

func (*ListSubscriptionPaymentsResponseBody) GetCount

func (*ListSubscriptionPaymentsResponseBody) GetEmbedded

type ListSubscriptionsEmbedded

type ListSubscriptionsEmbedded struct {
	// An array of subscription objects.
	Subscriptions []components.SubscriptionResponse `json:"subscriptions,omitempty"`
}

func (*ListSubscriptionsEmbedded) GetSubscriptions

type ListSubscriptionsRequest

type ListSubscriptionsRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListSubscriptionsRequest) GetCustomerID

func (l *ListSubscriptionsRequest) GetCustomerID() string

func (*ListSubscriptionsRequest) GetFrom

func (l *ListSubscriptionsRequest) GetFrom() *string

func (*ListSubscriptionsRequest) GetIdempotencyKey

func (l *ListSubscriptionsRequest) GetIdempotencyKey() *string

func (*ListSubscriptionsRequest) GetLimit

func (l *ListSubscriptionsRequest) GetLimit() *int64

func (*ListSubscriptionsRequest) GetSort

func (*ListSubscriptionsRequest) GetTestmode

func (l *ListSubscriptionsRequest) GetTestmode() *bool

type ListSubscriptionsResponse

type ListSubscriptionsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of subscription objects.
	Object *ListSubscriptionsResponseBody
}

func (*ListSubscriptionsResponse) GetHTTPMeta

func (*ListSubscriptionsResponse) GetObject

type ListSubscriptionsResponseBody

type ListSubscriptionsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                     `json:"count"`
	Embedded ListSubscriptionsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListSubscriptionsResponseBody - A list of subscription objects.

func (*ListSubscriptionsResponseBody) GetCount

func (l *ListSubscriptionsResponseBody) GetCount() int64

func (*ListSubscriptionsResponseBody) GetEmbedded

type ListTerminalsEmbedded

type ListTerminalsEmbedded struct {
	// An array of terminal objects.
	Terminals []components.EntityTerminal `json:"terminals,omitempty"`
}

func (*ListTerminalsEmbedded) GetTerminals

func (l *ListTerminalsEmbedded) GetTerminals() []components.EntityTerminal

type ListTerminalsRequest

type ListTerminalsRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListTerminalsRequest) GetFrom

func (l *ListTerminalsRequest) GetFrom() *string

func (*ListTerminalsRequest) GetIdempotencyKey

func (l *ListTerminalsRequest) GetIdempotencyKey() *string

func (*ListTerminalsRequest) GetLimit

func (l *ListTerminalsRequest) GetLimit() *int64

func (*ListTerminalsRequest) GetSort

func (*ListTerminalsRequest) GetTestmode

func (l *ListTerminalsRequest) GetTestmode() *bool

type ListTerminalsResponse

type ListTerminalsResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of terminal objects.
	Object *ListTerminalsResponseBody
}

func (*ListTerminalsResponse) GetHTTPMeta

func (*ListTerminalsResponse) GetObject

type ListTerminalsResponseBody

type ListTerminalsResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                 `json:"count"`
	Embedded ListTerminalsEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListTerminalsResponseBody - A list of terminal objects.

func (*ListTerminalsResponseBody) GetCount

func (l *ListTerminalsResponseBody) GetCount() int64

func (*ListTerminalsResponseBody) GetEmbedded

type ListWebhooksEmbedded

type ListWebhooksEmbedded struct {
	// A list of webhooks.
	Webhooks []components.EntityWebhook `json:"webhooks"`
}

func (*ListWebhooksEmbedded) GetWebhooks

func (l *ListWebhooksEmbedded) GetWebhooks() []components.EntityWebhook

type ListWebhooksRequest

type ListWebhooksRequest struct {
	// Provide an ID to start the result set from the item with the given ID and onwards. This allows you to paginate the
	// result set.
	From *string `queryParam:"style=form,explode=true,name=from"`
	// The maximum number of items to return. Defaults to 50 items.
	Limit *int64 `queryParam:"style=form,explode=true,name=limit"`
	// Used for setting the direction of the result set. Defaults to descending order, meaning the results are ordered from
	// newest to oldest.
	Sort *components.ListSort `queryParam:"style=form,explode=true,name=sort"`
	// Used to filter out only the webhooks that are subscribed to certain types of events.
	EventTypes *components.WebhookEventTypes `queryParam:"style=form,explode=true,name=eventTypes"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*ListWebhooksRequest) GetEventTypes

func (l *ListWebhooksRequest) GetEventTypes() *components.WebhookEventTypes

func (*ListWebhooksRequest) GetFrom

func (l *ListWebhooksRequest) GetFrom() *string

func (*ListWebhooksRequest) GetIdempotencyKey

func (l *ListWebhooksRequest) GetIdempotencyKey() *string

func (*ListWebhooksRequest) GetLimit

func (l *ListWebhooksRequest) GetLimit() *int64

func (*ListWebhooksRequest) GetSort

func (l *ListWebhooksRequest) GetSort() *components.ListSort

func (*ListWebhooksRequest) GetTestmode

func (l *ListWebhooksRequest) GetTestmode() *bool

type ListWebhooksResponse

type ListWebhooksResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of webhooks. For a complete reference of the webhook
	// object, refer to the [Get hook endpoint](get-webhook) documentation.
	Object *ListWebhooksResponseBody
}

func (*ListWebhooksResponse) GetHTTPMeta

func (l *ListWebhooksResponse) GetHTTPMeta() components.HTTPMetadata

func (*ListWebhooksResponse) GetObject

type ListWebhooksResponseBody

type ListWebhooksResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    int64                `json:"count"`
	Embedded ListWebhooksEmbedded `json:"_embedded"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links components.ListLinks `json:"_links"`
}

ListWebhooksResponseBody - A list of webhooks. For a complete reference of the webhook object, refer to the [Get hook endpoint](get-webhook) documentation.

func (*ListWebhooksResponseBody) GetCount

func (l *ListWebhooksResponseBody) GetCount() int64

func (*ListWebhooksResponseBody) GetEmbedded

type Mode

type Mode string

Mode - Updating a profile from `test` mode to `live` mode will trigger a verification process, where we review the profile before it can start accepting payments.

const (
	ModeLive Mode = "live"
	ModeTest Mode = "test"
)

func (Mode) ToPointer

func (e Mode) ToPointer() *Mode

func (*Mode) UnmarshalJSON

func (e *Mode) UnmarshalJSON(data []byte) error

type Option

type Option func(*Options, ...string) error

func WithOperationTimeout

func WithOperationTimeout(timeout time.Duration) Option

WithOperationTimeout allows setting the request timeout applied for an operation.

func WithRetries

func WithRetries(config retry.Config) Option

WithRetries allows customizing the default retry configuration.

func WithServerURL

func WithServerURL(serverURL string) Option

WithServerURL allows providing an alternative server URL.

func WithSetHeaders

func WithSetHeaders(hdrs map[string]string) Option

WithSetHeaders takes a map of headers that will applied to a request. If the request contains headers that are in the map then they will be overwritten.

func WithTemplatedServerURL

func WithTemplatedServerURL(serverURL string, params map[string]string) Option

WithTemplatedServerURL allows providing an alternative server URL with templated parameters.

func WithURLOverride

func WithURLOverride(urlOverride string) Option

WithURLOverride allows overriding the URL.

type Options

type Options struct {
	ServerURL   *string
	Retries     *retry.Config
	Timeout     *time.Duration
	URLOverride *string
	SetHeaders  map[string]string
}

type Organization

type Organization struct {
	// The name of the organization.
	Name    *string             `json:"name,omitempty"`
	Address *components.Address `json:"address,omitempty"`
	// The registration number of the organization at their local chamber of commerce.
	RegistrationNumber *string `json:"registrationNumber,omitempty"`
	// The VAT number of the organization, if based in the European Union or in The United Kingdom. VAT
	// numbers are verified against the international registry *VIES*.
	//
	// The field can be omitted for merchants residing in other countries.
	VatNumber *string `json:"vatNumber,omitempty"`
	// Mollie applies Dutch VAT for merchants based in The Netherlands, British VAT for merchants based in
	// The United Kingdom, and shifted VAT for merchants in the European Union.
	//
	// The field can be omitted for merchants residing in other countries.
	VatRegulation *VatRegulation `json:"vatRegulation,omitempty"`
}

func (*Organization) GetAddress

func (o *Organization) GetAddress() *components.Address

func (*Organization) GetName

func (o *Organization) GetName() *string

func (*Organization) GetRegistrationNumber

func (o *Organization) GetRegistrationNumber() *string

func (*Organization) GetVatNumber

func (o *Organization) GetVatNumber() *string

func (*Organization) GetVatRegulation

func (o *Organization) GetVatRegulation() *VatRegulation

type PartnerType

type PartnerType string

PartnerType - Indicates the type of partner. Will be `null` if the currently authenticated organization is not enrolled as a partner.

const (
	PartnerTypeOauth      PartnerType = "oauth"
	PartnerTypeSignuplink PartnerType = "signuplink"
	PartnerTypeUseragent  PartnerType = "useragent"
)

func (PartnerType) ToPointer

func (e PartnerType) ToPointer() *PartnerType

func (*PartnerType) UnmarshalJSON

func (e *PartnerType) UnmarshalJSON(data []byte) error

type PaymentCreateRouteRequest

type PaymentCreateRouteRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey     *string                        `header:"style=simple,explode=false,name=idempotency-key"`
	RouteCreateRequest *components.RouteCreateRequest `request:"mediaType=application/json"`
}

func (*PaymentCreateRouteRequest) GetIdempotencyKey

func (p *PaymentCreateRouteRequest) GetIdempotencyKey() *string

func (*PaymentCreateRouteRequest) GetPaymentID

func (p *PaymentCreateRouteRequest) GetPaymentID() string

func (*PaymentCreateRouteRequest) GetRouteCreateRequest

func (p *PaymentCreateRouteRequest) GetRouteCreateRequest() *components.RouteCreateRequest

type PaymentCreateRouteResponse

type PaymentCreateRouteResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The route object.
	RouteCreateResponse *components.RouteCreateResponse
}

func (*PaymentCreateRouteResponse) GetHTTPMeta

func (*PaymentCreateRouteResponse) GetRouteCreateResponse

func (p *PaymentCreateRouteResponse) GetRouteCreateResponse() *components.RouteCreateResponse

type PaymentListRoutesEmbedded

type PaymentListRoutesEmbedded struct {
	// An array of route objects.
	Routes []components.RouteGetResponse `json:"routes,omitempty"`
}

func (*PaymentListRoutesEmbedded) GetRoutes

type PaymentListRoutesLinks struct {
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Self *components.URLObj `json:"self,omitempty"`
	// In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
	Documentation *components.URLObj `json:"documentation,omitempty"`
}

PaymentListRoutesLinks - Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.

func (*PaymentListRoutesLinks) GetDocumentation

func (p *PaymentListRoutesLinks) GetDocumentation() *components.URLObj

func (*PaymentListRoutesLinks) GetSelf

type PaymentListRoutesRequest

type PaymentListRoutesRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
	// parameter can be omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by
	// setting the `testmode` query parameter to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `queryParam:"style=form,explode=true,name=testmode"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string `header:"style=simple,explode=false,name=idempotency-key"`
}

func (*PaymentListRoutesRequest) GetIdempotencyKey

func (p *PaymentListRoutesRequest) GetIdempotencyKey() *string

func (*PaymentListRoutesRequest) GetPaymentID

func (p *PaymentListRoutesRequest) GetPaymentID() string

func (*PaymentListRoutesRequest) GetTestmode

func (p *PaymentListRoutesRequest) GetTestmode() *bool

type PaymentListRoutesResponse

type PaymentListRoutesResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// A list of route objects.
	Object *PaymentListRoutesResponseBody
}

func (*PaymentListRoutesResponse) GetHTTPMeta

func (*PaymentListRoutesResponse) GetObject

type PaymentListRoutesResponseBody

type PaymentListRoutesResponseBody struct {
	// The number of items in this result set. If more items are available, a `_links.next` URL will be present in the result
	// as well.
	//
	// The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
	// limit is 50 items.
	Count    *int64                     `json:"count,omitempty"`
	Embedded *PaymentListRoutesEmbedded `json:"_embedded,omitempty"`
	// Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
	Links *PaymentListRoutesLinks `json:"_links,omitempty"`
}

PaymentListRoutesResponseBody - A list of route objects.

func (*PaymentListRoutesResponseBody) GetCount

func (p *PaymentListRoutesResponseBody) GetCount() *int64

func (*PaymentListRoutesResponseBody) GetEmbedded

type Profile

type Profile struct {
	// The profile's name, this will usually reflect the trade name or brand name of the profile's website
	// or application.
	Name *string `json:"name,omitempty"`
	// The URL to the profile's website or application. Only `https` or `http` URLs are allowed. No `@`
	// signs are allowed.
	URL *string `json:"url,omitempty"`
	// The email address associated with the profile's trade name or brand.
	Email *string `json:"email,omitempty"`
	// The phone number associated with the profile's trade name or brand.
	Phone *string `json:"phone,omitempty"`
	// The products or services offered by the profile's website or application.
	Description *string `json:"description,omitempty"`
	// The industry associated with the profile's trade name or brand. Please refer to the
	// [business category list](common-data-types) for all possible options.
	BusinessCategory *string `json:"businessCategory,omitempty"`
}

func (*Profile) GetBusinessCategory

func (p *Profile) GetBusinessCategory() *string

func (*Profile) GetDescription

func (p *Profile) GetDescription() *string

func (*Profile) GetEmail

func (p *Profile) GetEmail() *string

func (*Profile) GetName

func (p *Profile) GetName() *string

func (*Profile) GetPhone

func (p *Profile) GetPhone() *string

func (*Profile) GetURL

func (p *Profile) GetURL() *string

type ReleaseAuthorizationRequest

type ReleaseAuthorizationRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                          `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *ReleaseAuthorizationRequestBody `request:"mediaType=application/json"`
}

func (*ReleaseAuthorizationRequest) GetIdempotencyKey

func (r *ReleaseAuthorizationRequest) GetIdempotencyKey() *string

func (*ReleaseAuthorizationRequest) GetPaymentID

func (r *ReleaseAuthorizationRequest) GetPaymentID() string

func (*ReleaseAuthorizationRequest) GetRequestBody

type ReleaseAuthorizationRequestBody

type ReleaseAuthorizationRequestBody struct {
	// The identifier referring to the [profile](get-profile) this entity belongs to.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted in the creation
	// request. For organization-level credentials such as OAuth access tokens however, the `profileId` parameter is
	// required.
	ProfileID *string `json:"profileId,omitempty"`
	// Whether to create the entity in test mode or live mode.
	//
	// Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
	// omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
	// `testmode` to `true`.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*ReleaseAuthorizationRequestBody) GetProfileID

func (r *ReleaseAuthorizationRequestBody) GetProfileID() *string

func (*ReleaseAuthorizationRequestBody) GetTestmode

func (r *ReleaseAuthorizationRequestBody) GetTestmode() *bool

type ReleaseAuthorizationResponse

type ReleaseAuthorizationResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The request was accepted and will be processed asynchronously.
	Any any
}

func (*ReleaseAuthorizationResponse) GetAny

func (r *ReleaseAuthorizationResponse) GetAny() any

func (*ReleaseAuthorizationResponse) GetHTTPMeta

type RequestApplePayPaymentSessionRequest

type RequestApplePayPaymentSessionRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                                   `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *RequestApplePayPaymentSessionRequestBody `request:"mediaType=application/json"`
}

func (*RequestApplePayPaymentSessionRequest) GetIdempotencyKey

func (r *RequestApplePayPaymentSessionRequest) GetIdempotencyKey() *string

func (*RequestApplePayPaymentSessionRequest) GetRequestBody

type RequestApplePayPaymentSessionRequestBody

type RequestApplePayPaymentSessionRequestBody struct {
	// The validationUrl you got from the
	// [ApplePayValidateMerchant event](https://developer.apple.com/documentation/apple_pay_on_the_web/applepayvalidatemerchantevent).
	//
	// A list of all
	// [valid host names](https://developer.apple.com/documentation/apple_pay_on_the_web/setting_up_your_server)
	// for merchant validation is available. You should white list these in your application and reject any
	// `validationUrl`s that have a host name not in the list.
	ValidationURL string `json:"validationUrl"`
	// The domain of your web shop, that is visible in the browser's location bar. For example
	// `pay.myshop.com`.
	Domain string `json:"domain"`
	// The identifier referring to the [profile](get-profile) this entity belongs to.
	//
	// Most API credentials are linked to a single profile. In these cases the `profileId` can be omitted in the creation
	// request. For organization-level credentials such as OAuth access tokens however, the `profileId` parameter is
	// required.
	ProfileID *string `json:"profileId,omitempty"`
}

func (*RequestApplePayPaymentSessionRequestBody) GetDomain

func (*RequestApplePayPaymentSessionRequestBody) GetProfileID

func (*RequestApplePayPaymentSessionRequestBody) GetValidationURL

func (r *RequestApplePayPaymentSessionRequestBody) GetValidationURL() string

type RequestApplePayPaymentSessionResponse

type RequestApplePayPaymentSessionResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The Apple Pay payment session object generated by Apple. This object, as mentioned in the Apple's Documentation,
	// is opaque, so we are not defining a response schema.
	EntitySession map[string]any
}

func (*RequestApplePayPaymentSessionResponse) GetEntitySession

func (r *RequestApplePayPaymentSessionResponse) GetEntitySession() map[string]any

func (*RequestApplePayPaymentSessionResponse) GetHTTPMeta

type Resource

type Resource string

Resource - **⚠️ We no longer recommend using the Orders API. Please refer to the [Payments API](payments-api) instead.**

Indicate if you will use the result for the [Create order](create-order) or the [Create payment](create-payment) endpoint.

When passing the value `orders`, the result will include payment methods that are only available for payments created via the Orders API.

const (
	ResourcePayments Resource = "payments"
	ResourceOrders   Resource = "orders"
)

func (Resource) ToPointer

func (e Resource) ToPointer() *Resource

func (*Resource) UnmarshalJSON

func (e *Resource) UnmarshalJSON(data []byte) error

type RevokeMandateRequest

type RevokeMandateRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// Provide the ID of the related mandate.
	MandateID string `pathParam:"style=simple,explode=false,name=mandateId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                   `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *RevokeMandateRequestBody `request:"mediaType=application/json"`
}

func (*RevokeMandateRequest) GetCustomerID

func (r *RevokeMandateRequest) GetCustomerID() string

func (*RevokeMandateRequest) GetIdempotencyKey

func (r *RevokeMandateRequest) GetIdempotencyKey() *string

func (*RevokeMandateRequest) GetMandateID

func (r *RevokeMandateRequest) GetMandateID() string

func (*RevokeMandateRequest) GetRequestBody

func (r *RevokeMandateRequest) GetRequestBody() *RevokeMandateRequestBody

type RevokeMandateRequestBody

type RevokeMandateRequestBody struct {
	// Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
	// such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*RevokeMandateRequestBody) GetTestmode

func (r *RevokeMandateRequestBody) GetTestmode() *bool

type RevokeMandateResponse

type RevokeMandateResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// An empty response.
	Any any
}

func (*RevokeMandateResponse) GetAny

func (r *RevokeMandateResponse) GetAny() any

func (*RevokeMandateResponse) GetHTTPMeta

type SubmitOnboardingDataRequest

type SubmitOnboardingDataRequest struct {
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                          `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *SubmitOnboardingDataRequestBody `request:"mediaType=application/json"`
}

func (*SubmitOnboardingDataRequest) GetIdempotencyKey

func (s *SubmitOnboardingDataRequest) GetIdempotencyKey() *string

func (*SubmitOnboardingDataRequest) GetRequestBody

type SubmitOnboardingDataRequestBody

type SubmitOnboardingDataRequestBody struct {
	Organization *Organization `json:"organization,omitempty"`
	Profile      *Profile      `json:"profile,omitempty"`
}

func (*SubmitOnboardingDataRequestBody) GetOrganization

func (s *SubmitOnboardingDataRequestBody) GetOrganization() *Organization

func (*SubmitOnboardingDataRequestBody) GetProfile

func (s *SubmitOnboardingDataRequestBody) GetProfile() *Profile

type SubmitOnboardingDataResponse

type SubmitOnboardingDataResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// An empty response.
	Any any
}

func (*SubmitOnboardingDataResponse) GetAny

func (s *SubmitOnboardingDataResponse) GetAny() any

func (*SubmitOnboardingDataResponse) GetHTTPMeta

type TestWebhookRequest

type TestWebhookRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                 `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *TestWebhookRequestBody `request:"mediaType=application/json"`
}

func (*TestWebhookRequest) GetID

func (t *TestWebhookRequest) GetID() string

func (*TestWebhookRequest) GetIdempotencyKey

func (t *TestWebhookRequest) GetIdempotencyKey() *string

func (*TestWebhookRequest) GetRequestBody

func (t *TestWebhookRequest) GetRequestBody() *TestWebhookRequestBody

type TestWebhookRequestBody

type TestWebhookRequestBody struct {
	// Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
	// such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*TestWebhookRequestBody) GetTestmode

func (t *TestWebhookRequestBody) GetTestmode() *bool

type TestWebhookResponse

type TestWebhookResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// Accepted.
	Any any
}

func (*TestWebhookResponse) GetAny

func (t *TestWebhookResponse) GetAny() any

func (*TestWebhookResponse) GetHTTPMeta

func (t *TestWebhookResponse) GetHTTPMeta() components.HTTPMetadata

type UpdateCustomerRequest

type UpdateCustomerRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                    `header:"style=simple,explode=false,name=idempotency-key"`
	EntityCustomer *components.EntityCustomer `request:"mediaType=application/json"`
}

func (*UpdateCustomerRequest) GetCustomerID

func (u *UpdateCustomerRequest) GetCustomerID() string

func (*UpdateCustomerRequest) GetEntityCustomer

func (u *UpdateCustomerRequest) GetEntityCustomer() *components.EntityCustomer

func (*UpdateCustomerRequest) GetIdempotencyKey

func (u *UpdateCustomerRequest) GetIdempotencyKey() *string

type UpdateCustomerResponse

type UpdateCustomerResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The updated customer object.
	CustomerResponse *components.CustomerResponse
}

func (*UpdateCustomerResponse) GetCustomerResponse

func (u *UpdateCustomerResponse) GetCustomerResponse() *components.CustomerResponse

func (*UpdateCustomerResponse) GetHTTPMeta

type UpdatePaymentLinkRequest

type UpdatePaymentLinkRequest struct {
	// Provide the ID of the related payment link.
	PaymentLinkID string `pathParam:"style=simple,explode=false,name=paymentLinkId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                       `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *UpdatePaymentLinkRequestBody `request:"mediaType=application/json"`
}

func (*UpdatePaymentLinkRequest) GetIdempotencyKey

func (u *UpdatePaymentLinkRequest) GetIdempotencyKey() *string

func (*UpdatePaymentLinkRequest) GetPaymentLinkID

func (u *UpdatePaymentLinkRequest) GetPaymentLinkID() string

func (*UpdatePaymentLinkRequest) GetRequestBody

type UpdatePaymentLinkRequestBody

type UpdatePaymentLinkRequestBody struct {
	// A short description of the payment link. The description is visible in the Dashboard and will be shown
	// on the customer's bank or card statement when possible.
	//
	// Updating the description does not affect any previously existing payments created for this payment link.
	Description *string `json:"description,omitempty"`
	// In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
	MinimumAmount *components.Amount `json:"minimumAmount,omitempty"`
	// Whether the payment link is archived. Customers will not be able to complete payments on archived
	// payment links.
	Archived *bool `json:"archived,omitempty"`
	// An array of payment methods that are allowed to be used for this payment link. When this parameter is
	// not provided or is an empty array, all enabled payment methods will be available.
	//
	// Enum: 'applepay', 'bancomatpay', 'bancontact', 'banktransfer', 'belfius', 'blik', 'creditcard', 'eps', 'giftcard',
	// 'ideal', 'kbc', 'mybank', 'paybybank', 'paypal', 'paysafecard', 'pointofsale', 'przelewy24', 'satispay', 'trustly', 'twint',
	// 'in3', 'riverty', 'klarna', 'billie'.
	AllowedMethods []string `json:"allowedMethods,omitempty"`
	// Optionally provide the order lines for the payment. Each line contains details such as a description of the item
	// ordered and its price.
	//
	// All lines must have the same currency as the payment.
	//
	// Required for payment methods `billie`, `in3`, `klarna`, `riverty` and `voucher`.
	Lines           []components.PaymentLineItem `json:"lines,omitempty"`
	BillingAddress  *components.PaymentAddress   `json:"billingAddress,omitempty"`
	ShippingAddress *components.PaymentAddress   `json:"shippingAddress,omitempty"`
	// Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
	// such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*UpdatePaymentLinkRequestBody) GetAllowedMethods

func (u *UpdatePaymentLinkRequestBody) GetAllowedMethods() []string

func (*UpdatePaymentLinkRequestBody) GetArchived

func (u *UpdatePaymentLinkRequestBody) GetArchived() *bool

func (*UpdatePaymentLinkRequestBody) GetBillingAddress

func (u *UpdatePaymentLinkRequestBody) GetBillingAddress() *components.PaymentAddress

func (*UpdatePaymentLinkRequestBody) GetDescription

func (u *UpdatePaymentLinkRequestBody) GetDescription() *string

func (*UpdatePaymentLinkRequestBody) GetLines

func (*UpdatePaymentLinkRequestBody) GetMinimumAmount

func (u *UpdatePaymentLinkRequestBody) GetMinimumAmount() *components.Amount

func (*UpdatePaymentLinkRequestBody) GetShippingAddress

func (u *UpdatePaymentLinkRequestBody) GetShippingAddress() *components.PaymentAddress

func (*UpdatePaymentLinkRequestBody) GetTestmode

func (u *UpdatePaymentLinkRequestBody) GetTestmode() *bool

type UpdatePaymentLinkResponse

type UpdatePaymentLinkResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The payment link object.
	PaymentLinkResponse *components.PaymentLinkResponse
}

func (*UpdatePaymentLinkResponse) GetHTTPMeta

func (*UpdatePaymentLinkResponse) GetPaymentLinkResponse

func (u *UpdatePaymentLinkResponse) GetPaymentLinkResponse() *components.PaymentLinkResponse

type UpdatePaymentRequest

type UpdatePaymentRequest struct {
	// Provide the ID of the related payment.
	PaymentID string `pathParam:"style=simple,explode=false,name=paymentId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                   `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *UpdatePaymentRequestBody `request:"mediaType=application/json"`
}

func (*UpdatePaymentRequest) GetIdempotencyKey

func (u *UpdatePaymentRequest) GetIdempotencyKey() *string

func (*UpdatePaymentRequest) GetPaymentID

func (u *UpdatePaymentRequest) GetPaymentID() string

func (*UpdatePaymentRequest) GetRequestBody

func (u *UpdatePaymentRequest) GetRequestBody() *UpdatePaymentRequestBody

type UpdatePaymentRequestBody

type UpdatePaymentRequestBody struct {
	// The description of the payment. This will be shown to your customer on their card or bank statement when possible.
	// We truncate the description automatically according to the limits of the used payment method. The description is
	// also visible in any exports you generate.
	//
	// We recommend you use a unique identifier so that you can always link the payment to the order in your back office.
	// This is particularly useful for bookkeeping.
	//
	// The maximum length of the description field differs per payment method, with the absolute maximum being 255
	// characters. The API will not reject strings longer than the maximum length but it will truncate them to fit.
	Description *string `json:"description,omitempty"`
	// The URL your customer will be redirected to after the payment process.
	//
	// It could make sense for the redirectUrl to contain a unique identifier – like your order ID – so you can show the
	// right page referencing the order when your customer returns.
	//
	// The parameter is normally required, but can be omitted for recurring payments (`sequenceType: recurring`) and for
	// Apple Pay payments with an `applePayPaymentToken`.
	RedirectURL *string `json:"redirectUrl,omitempty"`
	// The URL your customer will be redirected to when the customer explicitly cancels the payment. If this URL is not
	// provided, the customer will be redirected to the `redirectUrl` instead — see above.
	//
	// Mollie will always give you status updates via webhooks, including for the canceled status. This parameter is
	// therefore entirely optional, but can be useful when implementing a dedicated customer-facing flow to handle
	// payment cancellations.
	CancelURL *string `json:"cancelUrl,omitempty"`
	// The webhook URL where we will send payment status updates to.
	//
	// The webhookUrl is optional, but without a webhook you will miss out on important status changes to your payment.
	//
	// The webhookUrl must be reachable from Mollie's point of view, so you cannot use `localhost`. If you want to use
	// webhook during development on `localhost`, you must use a tool like ngrok to have the webhooks delivered to your
	// local machine.
	WebhookURL *string `json:"webhookUrl,omitempty"`
	// Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
	// you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
	Metadata *components.Metadata `json:"metadata,omitempty"`
	// Normally, a payment method screen is shown. However, when using this parameter, you can choose a specific payment
	// method and your customer will skip the selection screen and is sent directly to the chosen payment method. The
	// parameter enables you to fully integrate the payment method selection into your website.
	//
	// You can also specify the methods in an array. By doing so we will still show the payment method selection screen
	// but will only show the methods specified in the array. For example, you can use this functionality to only show
	// payment methods from a specific country to your customer `['bancontact', 'belfius']`.
	Method *components.Method `json:"method,omitempty"`
	// Allows you to preset the language to be used.
	Locale *components.Locale `json:"locale,omitempty"`
	// The date by which the payment should be completed in `YYYY-MM-DD` format
	DueDate *string `json:"dueDate,omitempty"`
	// For digital goods in most jurisdictions, you must apply the VAT rate from your customer's country. Choose the VAT
	// rates you have used for the order to ensure your customer's country matches the VAT country.
	//
	// Use this parameter to restrict the payment methods available to your customer to those from a single country.
	//
	// If available, the credit card method will still be offered, but only cards from the allowed country are accepted.
	//
	// The field expects a country code in ISO 3166-1 alpha-2 format, for example `NL`.
	RestrictPaymentMethodsToCountry *string `json:"restrictPaymentMethodsToCountry,omitempty"`
	// Whether to create the entity in test mode or live mode.
	//
	// Most API credentials are specifically created for either live mode or test mode, in which case this parameter can be
	// omitted. For organization-level credentials such as OAuth access tokens, you can enable test mode by setting
	// `testmode` to `true`.
	Testmode *bool `json:"testmode,omitempty"`
	// **Only relevant for iDEAL, KBC/CBC, gift card, and voucher payments.**
	//
	// **⚠️ With the introduction of iDEAL 2 in 2025, this field will be ignored for iDEAL payments. For more information
	// on the migration, refer to our [help center](https://help.mollie.com/hc/articles/19100313768338-iDEAL-2-0).**
	//
	// Some payment methods are a network of connected banks or card issuers. In these cases, after selecting the payment
	// method, the customer may still need to select the appropriate issuer before the payment can proceed.
	//
	// We provide hosted issuer selection screens, but these screens can be skipped by providing the `issuer` via the API
	// up front.
	//
	// The full list of issuers for a specific method can be retrieved via the Methods API by using the optional
	// `issuers` include.
	//
	// A valid issuer for iDEAL is for example `ideal_INGBNL2A` (for ING Bank).
	Issuer          *string                    `json:"issuer,omitempty"`
	BillingAddress  *components.PaymentAddress `json:"billingAddress,omitempty"`
	ShippingAddress *components.PaymentAddress `json:"shippingAddress,omitempty"`
	BillingEmail    *string                    `json:"billingEmail,omitempty"`
}

func (*UpdatePaymentRequestBody) GetBillingAddress

func (u *UpdatePaymentRequestBody) GetBillingAddress() *components.PaymentAddress

func (*UpdatePaymentRequestBody) GetBillingEmail

func (u *UpdatePaymentRequestBody) GetBillingEmail() *string

func (*UpdatePaymentRequestBody) GetCancelURL

func (u *UpdatePaymentRequestBody) GetCancelURL() *string

func (*UpdatePaymentRequestBody) GetDescription

func (u *UpdatePaymentRequestBody) GetDescription() *string

func (*UpdatePaymentRequestBody) GetDueDate

func (u *UpdatePaymentRequestBody) GetDueDate() *string

func (*UpdatePaymentRequestBody) GetIssuer

func (u *UpdatePaymentRequestBody) GetIssuer() *string

func (*UpdatePaymentRequestBody) GetLocale

func (u *UpdatePaymentRequestBody) GetLocale() *components.Locale

func (*UpdatePaymentRequestBody) GetMetadata

func (u *UpdatePaymentRequestBody) GetMetadata() *components.Metadata

func (*UpdatePaymentRequestBody) GetMethod

func (u *UpdatePaymentRequestBody) GetMethod() *components.Method

func (*UpdatePaymentRequestBody) GetRedirectURL

func (u *UpdatePaymentRequestBody) GetRedirectURL() *string

func (*UpdatePaymentRequestBody) GetRestrictPaymentMethodsToCountry

func (u *UpdatePaymentRequestBody) GetRestrictPaymentMethodsToCountry() *string

func (*UpdatePaymentRequestBody) GetShippingAddress

func (u *UpdatePaymentRequestBody) GetShippingAddress() *components.PaymentAddress

func (*UpdatePaymentRequestBody) GetTestmode

func (u *UpdatePaymentRequestBody) GetTestmode() *bool

func (*UpdatePaymentRequestBody) GetWebhookURL

func (u *UpdatePaymentRequestBody) GetWebhookURL() *string

type UpdatePaymentResponse

type UpdatePaymentResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The updated payment object.
	PaymentResponse *components.PaymentResponse
}

func (*UpdatePaymentResponse) GetHTTPMeta

func (*UpdatePaymentResponse) GetPaymentResponse

func (u *UpdatePaymentResponse) GetPaymentResponse() *components.PaymentResponse

type UpdateProfileRequest

type UpdateProfileRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                  `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    UpdateProfileRequestBody `request:"mediaType=application/json"`
}

func (*UpdateProfileRequest) GetID

func (u *UpdateProfileRequest) GetID() string

func (*UpdateProfileRequest) GetIdempotencyKey

func (u *UpdateProfileRequest) GetIdempotencyKey() *string

func (*UpdateProfileRequest) GetRequestBody

func (u *UpdateProfileRequest) GetRequestBody() UpdateProfileRequestBody

type UpdateProfileRequestBody

type UpdateProfileRequestBody struct {
	// The profile's name, this will usually reflect the trade name or brand name of the profile's website or
	// application.
	Name *string `json:"name,omitempty"`
	// The URL to the profile's website or application. Only `https` or `http` URLs are allowed. No `@` signs
	// are allowed.
	Website *string `json:"website,omitempty"`
	// The email address associated with the profile's trade name or brand.
	Email *string `json:"email,omitempty"`
	// The phone number associated with the profile's trade name or brand.
	Phone *string `json:"phone,omitempty"`
	// The products or services offered by the profile's website or application.
	Description *string `json:"description,omitempty"`
	// A list of countries where you expect that the majority of the profile's customers reside,
	// in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.
	CountriesOfActivity []string `json:"countriesOfActivity,omitempty"`
	// The industry associated with the profile's trade name or brand. Please refer to the
	// [business category list](common-data-types) for all possible options.
	BusinessCategory *string `json:"businessCategory,omitempty"`
	// Updating a profile from `test` mode to `live` mode will trigger a verification process, where we review
	// the profile before it can start accepting payments.
	Mode *Mode `json:"mode,omitempty"`
}

func (*UpdateProfileRequestBody) GetBusinessCategory

func (u *UpdateProfileRequestBody) GetBusinessCategory() *string

func (*UpdateProfileRequestBody) GetCountriesOfActivity

func (u *UpdateProfileRequestBody) GetCountriesOfActivity() []string

func (*UpdateProfileRequestBody) GetDescription

func (u *UpdateProfileRequestBody) GetDescription() *string

func (*UpdateProfileRequestBody) GetEmail

func (u *UpdateProfileRequestBody) GetEmail() *string

func (*UpdateProfileRequestBody) GetMode

func (u *UpdateProfileRequestBody) GetMode() *Mode

func (*UpdateProfileRequestBody) GetName

func (u *UpdateProfileRequestBody) GetName() *string

func (*UpdateProfileRequestBody) GetPhone

func (u *UpdateProfileRequestBody) GetPhone() *string

func (*UpdateProfileRequestBody) GetWebsite

func (u *UpdateProfileRequestBody) GetWebsite() *string

type UpdateProfileResponse

type UpdateProfileResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The updated profile object.
	EntityProfileResponse *components.EntityProfileResponse
}

func (*UpdateProfileResponse) GetEntityProfileResponse

func (u *UpdateProfileResponse) GetEntityProfileResponse() *components.EntityProfileResponse

func (*UpdateProfileResponse) GetHTTPMeta

type UpdateSalesInvoiceRequest

type UpdateSalesInvoiceRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey           *string                              `header:"style=simple,explode=false,name=idempotency-key"`
	UpdateValuesSalesInvoice *components.UpdateValuesSalesInvoice `request:"mediaType=application/json"`
}

func (*UpdateSalesInvoiceRequest) GetID

func (u *UpdateSalesInvoiceRequest) GetID() string

func (*UpdateSalesInvoiceRequest) GetIdempotencyKey

func (u *UpdateSalesInvoiceRequest) GetIdempotencyKey() *string

func (*UpdateSalesInvoiceRequest) GetUpdateValuesSalesInvoice

func (u *UpdateSalesInvoiceRequest) GetUpdateValuesSalesInvoice() *components.UpdateValuesSalesInvoice

type UpdateSalesInvoiceResponse

type UpdateSalesInvoiceResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The sales invoice object.
	EntitySalesInvoiceResponse *components.EntitySalesInvoiceResponse
}

func (*UpdateSalesInvoiceResponse) GetEntitySalesInvoiceResponse

func (u *UpdateSalesInvoiceResponse) GetEntitySalesInvoiceResponse() *components.EntitySalesInvoiceResponse

func (*UpdateSalesInvoiceResponse) GetHTTPMeta

type UpdateSubscriptionRequest

type UpdateSubscriptionRequest struct {
	// Provide the ID of the related customer.
	CustomerID string `pathParam:"style=simple,explode=false,name=customerId"`
	// Provide the ID of the related subscription.
	SubscriptionID string `pathParam:"style=simple,explode=false,name=subscriptionId"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                        `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *UpdateSubscriptionRequestBody `request:"mediaType=application/json"`
}

func (*UpdateSubscriptionRequest) GetCustomerID

func (u *UpdateSubscriptionRequest) GetCustomerID() string

func (*UpdateSubscriptionRequest) GetIdempotencyKey

func (u *UpdateSubscriptionRequest) GetIdempotencyKey() *string

func (*UpdateSubscriptionRequest) GetRequestBody

func (*UpdateSubscriptionRequest) GetSubscriptionID

func (u *UpdateSubscriptionRequest) GetSubscriptionID() string

type UpdateSubscriptionRequestBody

type UpdateSubscriptionRequestBody struct {
	// In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
	Amount *components.Amount `json:"amount,omitempty"`
	// The subscription's description will be used as the description of the resulting individual payments and so showing
	// up on the bank statement of the consumer.
	//
	// **Please note:** the description needs to be unique for the Customer in case it has multiple active subscriptions.
	Description *string `json:"description,omitempty"`
	// Interval to wait between payments, for example `1 month` or `14 days`.
	//
	// The maximum interval is one year (`12 months`, `52 weeks`, or `365 days`).
	//
	// Possible values: `... days`, `... weeks`, `... months`.
	Interval *string `json:"interval,omitempty"`
	// The start date of the subscription in `YYYY-MM-DD` format.
	StartDate *string `json:"startDate,omitempty"`
	// Total number of payments for the subscription. Once this number of payments is reached, the subscription is
	// considered completed.
	//
	// Test mode subscriptions will get canceled automatically after 10 payments.
	Times *int64 `json:"times,omitempty"`
	// Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
	// you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
	Metadata *components.Metadata `json:"metadata,omitempty"`
	// We will call this URL for any payment status changes of payments resulting from this subscription.
	//
	// This webhook will receive **all** events for the subscription's payments. This may include payment
	// failures as well. Be sure to verify the payment's subscription ID and its status.
	WebhookURL *string `json:"webhookUrl,omitempty"`
	MandateID  *string `json:"mandateId,omitempty"`
	// Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
	// such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*UpdateSubscriptionRequestBody) GetAmount

func (*UpdateSubscriptionRequestBody) GetDescription

func (u *UpdateSubscriptionRequestBody) GetDescription() *string

func (*UpdateSubscriptionRequestBody) GetInterval

func (u *UpdateSubscriptionRequestBody) GetInterval() *string

func (*UpdateSubscriptionRequestBody) GetMandateID

func (u *UpdateSubscriptionRequestBody) GetMandateID() *string

func (*UpdateSubscriptionRequestBody) GetMetadata

func (*UpdateSubscriptionRequestBody) GetStartDate

func (u *UpdateSubscriptionRequestBody) GetStartDate() *string

func (*UpdateSubscriptionRequestBody) GetTestmode

func (u *UpdateSubscriptionRequestBody) GetTestmode() *bool

func (*UpdateSubscriptionRequestBody) GetTimes

func (u *UpdateSubscriptionRequestBody) GetTimes() *int64

func (*UpdateSubscriptionRequestBody) GetWebhookURL

func (u *UpdateSubscriptionRequestBody) GetWebhookURL() *string

type UpdateSubscriptionResponse

type UpdateSubscriptionResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The updated subscription object.
	SubscriptionResponse *components.SubscriptionResponse
}

func (*UpdateSubscriptionResponse) GetHTTPMeta

func (*UpdateSubscriptionResponse) GetSubscriptionResponse

func (u *UpdateSubscriptionResponse) GetSubscriptionResponse() *components.SubscriptionResponse

type UpdateWebhookRequest

type UpdateWebhookRequest struct {
	// Provide the ID of the item you want to perform this operation on.
	ID string `pathParam:"style=simple,explode=false,name=id"`
	// A unique key to ensure idempotent requests. This key should be a UUID v4 string.
	IdempotencyKey *string                   `header:"style=simple,explode=false,name=idempotency-key"`
	RequestBody    *UpdateWebhookRequestBody `request:"mediaType=application/json"`
}

func (*UpdateWebhookRequest) GetID

func (u *UpdateWebhookRequest) GetID() string

func (*UpdateWebhookRequest) GetIdempotencyKey

func (u *UpdateWebhookRequest) GetIdempotencyKey() *string

func (*UpdateWebhookRequest) GetRequestBody

func (u *UpdateWebhookRequest) GetRequestBody() *UpdateWebhookRequestBody

type UpdateWebhookRequestBody

type UpdateWebhookRequestBody struct {
	// A name that identifies the webhook.
	Name *string `json:"name,omitempty"`
	// The URL Mollie will send the events to. This URL must be publicly accessible.
	URL *string `json:"url,omitempty"`
	// The event's type
	WebhookEventTypes *components.WebhookEventTypes `json:"eventTypes,omitempty"`
	// Most API credentials are specifically created for either live mode or test mode. For organization-level credentials
	// such as OAuth access tokens, you can enable test mode by setting `testmode` to `true`.
	//
	// Test entities cannot be retrieved when the endpoint is set to live mode, and vice versa.
	Testmode *bool `json:"testmode,omitempty"`
}

func (*UpdateWebhookRequestBody) GetName

func (u *UpdateWebhookRequestBody) GetName() *string

func (*UpdateWebhookRequestBody) GetTestmode

func (u *UpdateWebhookRequestBody) GetTestmode() *bool

func (*UpdateWebhookRequestBody) GetURL

func (u *UpdateWebhookRequestBody) GetURL() *string

func (*UpdateWebhookRequestBody) GetWebhookEventTypes

func (u *UpdateWebhookRequestBody) GetWebhookEventTypes() *components.WebhookEventTypes

type UpdateWebhookResponse

type UpdateWebhookResponse struct {
	HTTPMeta components.HTTPMetadata `json:"-"`
	// The webhook object.
	EntityWebhook *components.EntityWebhook
}

func (*UpdateWebhookResponse) GetEntityWebhook

func (u *UpdateWebhookResponse) GetEntityWebhook() *components.EntityWebhook

func (*UpdateWebhookResponse) GetHTTPMeta

type UserAgentToken

type UserAgentToken struct {
	// The unique User-Agent token.
	Token *string `json:"token,omitempty"`
	// The date from which the token is active, in ISO 8601 format.
	StartsAt *string `json:"startsAt,omitempty"`
	// The date until when the token will be active, in ISO 8601 format. Will be `null` if the token
	// does not have an end date (yet).
	EndsAt *string `json:"endsAt,omitempty"`
}

func (*UserAgentToken) GetEndsAt

func (u *UserAgentToken) GetEndsAt() *string

func (*UserAgentToken) GetStartsAt

func (u *UserAgentToken) GetStartsAt() *string

func (*UserAgentToken) GetToken

func (u *UserAgentToken) GetToken() *string

type VatRegulation

type VatRegulation string

VatRegulation - Mollie applies Dutch VAT for merchants based in The Netherlands, British VAT for merchants based in The United Kingdom, and shifted VAT for merchants in the European Union.

The field can be omitted for merchants residing in other countries.

const (
	VatRegulationDutch   VatRegulation = "dutch"
	VatRegulationBritish VatRegulation = "british"
	VatRegulationShifted VatRegulation = "shifted"
)

func (VatRegulation) ToPointer

func (e VatRegulation) ToPointer() *VatRegulation

func (*VatRegulation) UnmarshalJSON

func (e *VatRegulation) UnmarshalJSON(data []byte) error

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL