components

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: GPL-3.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	// A list of addresses associated with this account.
	Addresses []AddressListing `json:"addresses"`
	// A list of payment methods associated with this account.
	PaymentMethods []PaymentMethod `json:"payment_methods"`
	Profile        *Profile        `json:"profile,omitempty"`
}

func (*Account) GetAddresses

func (o *Account) GetAddresses() []AddressListing

func (*Account) GetPaymentMethods

func (o *Account) GetPaymentMethods() []PaymentMethod

func (*Account) GetProfile

func (o *Account) GetProfile() *Profile

type AccountTestCreationData

type AccountTestCreationData struct {
	EmailState    EmailState `json:"email_state"`
	PhoneState    PhoneState `json:"phone_state"`
	IsMigrated    *bool      `json:"is_migrated,omitempty"`
	HasAddress    *bool      `json:"has_address,omitempty"`
	HasCreditCard *bool      `json:"has_credit_card,omitempty"`
}

func (*AccountTestCreationData) GetEmailState

func (o *AccountTestCreationData) GetEmailState() EmailState

func (*AccountTestCreationData) GetHasAddress

func (o *AccountTestCreationData) GetHasAddress() *bool

func (*AccountTestCreationData) GetHasCreditCard

func (o *AccountTestCreationData) GetHasCreditCard() *bool

func (*AccountTestCreationData) GetIsMigrated

func (o *AccountTestCreationData) GetIsMigrated() *bool

func (*AccountTestCreationData) GetPhoneState

func (o *AccountTestCreationData) GetPhoneState() PhoneState

type AccountTestCreationDataOutput

type AccountTestCreationDataOutput struct {
	Email      string     `json:"email"`
	EmailState EmailState `json:"email_state"`
	Phone      string     `json:"phone"`
	PhoneState PhoneState `json:"phone_state"`
	OtpCode    string     `json:"otp_code"`
	OauthCode  string     `json:"oauth_code"`
}

func (*AccountTestCreationDataOutput) GetEmail

func (o *AccountTestCreationDataOutput) GetEmail() string

func (*AccountTestCreationDataOutput) GetEmailState

func (o *AccountTestCreationDataOutput) GetEmailState() EmailState

func (*AccountTestCreationDataOutput) GetOauthCode

func (o *AccountTestCreationDataOutput) GetOauthCode() string

func (*AccountTestCreationDataOutput) GetOtpCode

func (o *AccountTestCreationDataOutput) GetOtpCode() string

func (*AccountTestCreationDataOutput) GetPhone

func (o *AccountTestCreationDataOutput) GetPhone() string

func (*AccountTestCreationDataOutput) GetPhoneState

func (o *AccountTestCreationDataOutput) GetPhoneState() PhoneState

type AccountTestPhoneData added in v0.4.2

type AccountTestPhoneData struct {
	// A random, fictitious, unassigned phone number.
	Phone string `json:"phone"`
}

func (*AccountTestPhoneData) GetPhone added in v0.4.2

func (o *AccountTestPhoneData) GetPhone() string

type Action

type Action string
const (
	ActionRedirect Action = "redirect"
)

func (Action) ToPointer

func (e Action) ToPointer() *Action

func (*Action) UnmarshalJSON

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

type AddressListing

type AddressListing struct {
	// The address's unique identifier.
	ID *string `json:"id,omitempty"`
	// The first name of the person associated with this address.
	FirstName string `json:"first_name"`
	// The last name of the person associated with this address.
	LastName string `json:"last_name"`
	// The company associated with this address.
	Company *string `json:"company,omitempty"`
	// The street address associated with this address.
	StreetAddress1 string `json:"street_address1"`
	// Any additional, optional, street address information associated with this address.
	StreetAddress2 *string `json:"street_address2,omitempty"`
	// The locality (e.g. city, town, etc...) associated with this address.
	Locality string `json:"locality"`
	// The postal code associated with this address.
	PostalCode string `json:"postal_code"`
	// The region or administrative area (e.g. state, province, county, etc...) associated with this address.
	Region *string `json:"region,omitempty"`
	// The country (in its ISO 3166 alpha-2 format) associated with this address.
	CountryCode CountryCode `json:"country_code"`
	// The email address associated with this address.
	Email *string `json:"email,omitempty"`
	// The phone number associated with this address.
	Phone *string `json:"phone,omitempty"`
	// Whether or not this is the default address saved.
	IsDefault *bool `json:"is_default,omitempty"`
}

AddressListing - An address saved on an account, i.e. a physical address plus any additional account-specific metadata.

func (*AddressListing) GetCompany

func (o *AddressListing) GetCompany() *string

func (*AddressListing) GetCountryCode

func (o *AddressListing) GetCountryCode() CountryCode

func (*AddressListing) GetEmail

func (o *AddressListing) GetEmail() *string

func (*AddressListing) GetFirstName

func (o *AddressListing) GetFirstName() string

func (*AddressListing) GetID

func (o *AddressListing) GetID() *string

func (*AddressListing) GetIsDefault

func (o *AddressListing) GetIsDefault() *bool

func (*AddressListing) GetLastName

func (o *AddressListing) GetLastName() string

func (*AddressListing) GetLocality

func (o *AddressListing) GetLocality() string

func (*AddressListing) GetPhone

func (o *AddressListing) GetPhone() *string

func (*AddressListing) GetPostalCode

func (o *AddressListing) GetPostalCode() string

func (*AddressListing) GetRegion

func (o *AddressListing) GetRegion() *string

func (*AddressListing) GetStreetAddress1

func (o *AddressListing) GetStreetAddress1() string

func (*AddressListing) GetStreetAddress2

func (o *AddressListing) GetStreetAddress2() *string

type AddressListingInput

type AddressListingInput struct {
	// The first name of the person associated with this address.
	FirstName string `json:"first_name"`
	// The last name of the person associated with this address.
	LastName string `json:"last_name"`
	// The company associated with this address.
	Company *string `json:"company,omitempty"`
	// The street address associated with this address.
	StreetAddress1 string `json:"street_address1"`
	// Any additional, optional, street address information associated with this address.
	StreetAddress2 *string `json:"street_address2,omitempty"`
	// The locality (e.g. city, town, etc...) associated with this address.
	Locality string `json:"locality"`
	// The postal code associated with this address.
	PostalCode string `json:"postal_code"`
	// The region or administrative area (e.g. state, province, county, etc...) associated with this address.
	Region *string `json:"region,omitempty"`
	// The country (in its ISO 3166 alpha-2 format) associated with this address.
	CountryCode CountryCode `json:"country_code"`
	// The email address associated with this address.
	Email *string `json:"email,omitempty"`
	// The phone number associated with this address.
	Phone *string `json:"phone,omitempty"`
}

AddressListingInput - An address saved on an account, i.e. a physical address plus any additional account-specific metadata.

func (*AddressListingInput) GetCompany

func (o *AddressListingInput) GetCompany() *string

func (*AddressListingInput) GetCountryCode

func (o *AddressListingInput) GetCountryCode() CountryCode

func (*AddressListingInput) GetEmail

func (o *AddressListingInput) GetEmail() *string

func (*AddressListingInput) GetFirstName

func (o *AddressListingInput) GetFirstName() string

func (*AddressListingInput) GetLastName

func (o *AddressListingInput) GetLastName() string

func (*AddressListingInput) GetLocality

func (o *AddressListingInput) GetLocality() string

func (*AddressListingInput) GetPhone

func (o *AddressListingInput) GetPhone() *string

func (*AddressListingInput) GetPostalCode

func (o *AddressListingInput) GetPostalCode() string

func (*AddressListingInput) GetRegion

func (o *AddressListingInput) GetRegion() *string

func (*AddressListingInput) GetStreetAddress1

func (o *AddressListingInput) GetStreetAddress1() string

func (*AddressListingInput) GetStreetAddress2

func (o *AddressListingInput) GetStreetAddress2() *string

type AddressReference

type AddressReference struct {
	AddressReferenceID       *AddressReferenceID
	AddressReferenceExplicit *AddressReferenceExplicit

	Type AddressReferenceType
}

func CreateAddressReferenceExplicit

func CreateAddressReferenceExplicit(explicit AddressReferenceExplicit) AddressReference

func CreateAddressReferenceID

func CreateAddressReferenceID(id AddressReferenceID) AddressReference

func (AddressReference) MarshalJSON

func (u AddressReference) MarshalJSON() ([]byte, error)

func (*AddressReference) UnmarshalJSON

func (u *AddressReference) UnmarshalJSON(data []byte) error

type AddressReferenceExplicit

type AddressReferenceExplicit struct {
	// The type of address reference
	DotTag AddressReferenceExplicitTag `json:".tag"`
	// The address's unique identifier.
	ID *string `json:"id,omitempty"`
	// The first name of the person associated with this address.
	FirstName string `json:"first_name"`
	// The last name of the person associated with this address.
	LastName string `json:"last_name"`
	// The company associated with this address.
	Company *string `json:"company,omitempty"`
	// The street address associated with this address.
	StreetAddress1 string `json:"street_address1"`
	// Any additional, optional, street address information associated with this address.
	StreetAddress2 *string `json:"street_address2,omitempty"`
	// The locality (e.g. city, town, etc...) associated with this address.
	Locality string `json:"locality"`
	// The postal code associated with this address.
	PostalCode string `json:"postal_code"`
	// The region or administrative area (e.g. state, province, county, etc...) associated with this address.
	Region *string `json:"region,omitempty"`
	// The country (in its ISO 3166 alpha-2 format) associated with this address.
	CountryCode CountryCode `json:"country_code"`
	// The email address associated with this address.
	Email *string `json:"email,omitempty"`
	// The phone number associated with this address.
	Phone *string `json:"phone,omitempty"`
}

AddressReferenceExplicit - A physical address.

func (*AddressReferenceExplicit) GetCompany

func (o *AddressReferenceExplicit) GetCompany() *string

func (*AddressReferenceExplicit) GetCountryCode

func (o *AddressReferenceExplicit) GetCountryCode() CountryCode

func (*AddressReferenceExplicit) GetDotTag

func (*AddressReferenceExplicit) GetEmail

func (o *AddressReferenceExplicit) GetEmail() *string

func (*AddressReferenceExplicit) GetFirstName

func (o *AddressReferenceExplicit) GetFirstName() string

func (*AddressReferenceExplicit) GetID

func (o *AddressReferenceExplicit) GetID() *string

func (*AddressReferenceExplicit) GetLastName

func (o *AddressReferenceExplicit) GetLastName() string

func (*AddressReferenceExplicit) GetLocality

func (o *AddressReferenceExplicit) GetLocality() string

func (*AddressReferenceExplicit) GetPhone

func (o *AddressReferenceExplicit) GetPhone() *string

func (*AddressReferenceExplicit) GetPostalCode

func (o *AddressReferenceExplicit) GetPostalCode() string

func (*AddressReferenceExplicit) GetRegion

func (o *AddressReferenceExplicit) GetRegion() *string

func (*AddressReferenceExplicit) GetStreetAddress1

func (o *AddressReferenceExplicit) GetStreetAddress1() string

func (*AddressReferenceExplicit) GetStreetAddress2

func (o *AddressReferenceExplicit) GetStreetAddress2() *string

type AddressReferenceExplicitInput

type AddressReferenceExplicitInput struct {
	// The type of address reference
	DotTag AddressReferenceExplicitTag `json:".tag"`
	// The first name of the person associated with this address.
	FirstName string `json:"first_name"`
	// The last name of the person associated with this address.
	LastName string `json:"last_name"`
	// The company associated with this address.
	Company *string `json:"company,omitempty"`
	// The street address associated with this address.
	StreetAddress1 string `json:"street_address1"`
	// Any additional, optional, street address information associated with this address.
	StreetAddress2 *string `json:"street_address2,omitempty"`
	// The locality (e.g. city, town, etc...) associated with this address.
	Locality string `json:"locality"`
	// The postal code associated with this address.
	PostalCode string `json:"postal_code"`
	// The region or administrative area (e.g. state, province, county, etc...) associated with this address.
	Region *string `json:"region,omitempty"`
	// The country (in its ISO 3166 alpha-2 format) associated with this address.
	CountryCode CountryCode `json:"country_code"`
	// The email address associated with this address.
	Email *string `json:"email,omitempty"`
	// The phone number associated with this address.
	Phone *string `json:"phone,omitempty"`
}

AddressReferenceExplicitInput - A physical address.

func (*AddressReferenceExplicitInput) GetCompany

func (o *AddressReferenceExplicitInput) GetCompany() *string

func (*AddressReferenceExplicitInput) GetCountryCode

func (o *AddressReferenceExplicitInput) GetCountryCode() CountryCode

func (*AddressReferenceExplicitInput) GetDotTag

func (*AddressReferenceExplicitInput) GetEmail

func (o *AddressReferenceExplicitInput) GetEmail() *string

func (*AddressReferenceExplicitInput) GetFirstName

func (o *AddressReferenceExplicitInput) GetFirstName() string

func (*AddressReferenceExplicitInput) GetLastName

func (o *AddressReferenceExplicitInput) GetLastName() string

func (*AddressReferenceExplicitInput) GetLocality

func (o *AddressReferenceExplicitInput) GetLocality() string

func (*AddressReferenceExplicitInput) GetPhone

func (o *AddressReferenceExplicitInput) GetPhone() *string

func (*AddressReferenceExplicitInput) GetPostalCode

func (o *AddressReferenceExplicitInput) GetPostalCode() string

func (*AddressReferenceExplicitInput) GetRegion

func (o *AddressReferenceExplicitInput) GetRegion() *string

func (*AddressReferenceExplicitInput) GetStreetAddress1

func (o *AddressReferenceExplicitInput) GetStreetAddress1() string

func (*AddressReferenceExplicitInput) GetStreetAddress2

func (o *AddressReferenceExplicitInput) GetStreetAddress2() *string

type AddressReferenceExplicitTag

type AddressReferenceExplicitTag string

AddressReferenceExplicitTag - The type of address reference

const (
	AddressReferenceExplicitTagExplicit AddressReferenceExplicitTag = "explicit"
)

func (AddressReferenceExplicitTag) ToPointer

func (*AddressReferenceExplicitTag) UnmarshalJSON

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

type AddressReferenceID

type AddressReferenceID struct {
	// The type of address reference
	DotTag AddressReferenceIDTag `json:".tag"`
	// The address's ID
	ID string `json:"id"`
}

func (*AddressReferenceID) GetDotTag

func (*AddressReferenceID) GetID

func (o *AddressReferenceID) GetID() string

type AddressReferenceIDTag

type AddressReferenceIDTag string

AddressReferenceIDTag - The type of address reference

const (
	AddressReferenceIDTagID AddressReferenceIDTag = "id"
)

func (AddressReferenceIDTag) ToPointer

func (*AddressReferenceIDTag) UnmarshalJSON

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

type AddressReferenceInput

type AddressReferenceInput struct {
	AddressReferenceID            *AddressReferenceID
	AddressReferenceExplicitInput *AddressReferenceExplicitInput

	Type AddressReferenceInputType
}

func CreateAddressReferenceInputExplicit

func CreateAddressReferenceInputExplicit(explicit AddressReferenceExplicitInput) AddressReferenceInput

func CreateAddressReferenceInputID

func CreateAddressReferenceInputID(id AddressReferenceID) AddressReferenceInput

func (AddressReferenceInput) MarshalJSON

func (u AddressReferenceInput) MarshalJSON() ([]byte, error)

func (*AddressReferenceInput) UnmarshalJSON

func (u *AddressReferenceInput) UnmarshalJSON(data []byte) error

type AddressReferenceInputType

type AddressReferenceInputType string
const (
	AddressReferenceInputTypeID       AddressReferenceInputType = "id"
	AddressReferenceInputTypeExplicit AddressReferenceInputType = "explicit"
)

type AddressReferenceType

type AddressReferenceType string
const (
	AddressReferenceTypeID       AddressReferenceType = "id"
	AddressReferenceTypeExplicit AddressReferenceType = "explicit"
)

type Amount

type Amount struct {
	// A supported currency.
	Currency Currency `json:"currency"`
	// A monetary amount, represented in its base units (e.g. USD/EUR cents).
	Units int64 `json:"units"`
}

Amount - A monetary amount, i.e. a base unit amount and a supported currency.

func (*Amount) GetCurrency

func (o *Amount) GetCurrency() Currency

func (*Amount) GetUnits

func (o *Amount) GetUnits() int64

type AuthorizationCodeRequest added in v0.3.2

type AuthorizationCodeRequest struct {
	// The type of OAuth 2.0 grant being utilized.
	GrantType GrantType `form:"name=grant_type"`
	// Fetched value using OTP value from the Authorization Modal.
	Code string `form:"name=code"`
	// The OAuth client ID, which corresponds to the merchant publishable key, which can be retrieved
	// in the Merchant Dashboard.
	//
	ClientID string `form:"name=client_id"`
	// The OAuth client secret, which corresponds the merchant API key, which can be retrieved in the
	// Merchant Dashboard.
	//
	ClientSecret string `form:"name=client_secret"`
	// The requested scopes. If the request is successful, the OAuth client will be able to perform operations requiring these scopes.
	//
	Scope []Scope `form:"name=scope"`
	// A randomly generated string sent along with an authorization code. This must be included, if provided,
	// in order to prevent CSRF attacks. used to prevent CSRF attacks.
	//
	State *string `form:"name=state"`
}

func (*AuthorizationCodeRequest) GetClientID added in v0.3.2

func (o *AuthorizationCodeRequest) GetClientID() string

func (*AuthorizationCodeRequest) GetClientSecret added in v0.3.2

func (o *AuthorizationCodeRequest) GetClientSecret() string

func (*AuthorizationCodeRequest) GetCode added in v0.3.2

func (o *AuthorizationCodeRequest) GetCode() string

func (*AuthorizationCodeRequest) GetGrantType added in v0.3.2

func (o *AuthorizationCodeRequest) GetGrantType() GrantType

func (*AuthorizationCodeRequest) GetScope added in v0.3.2

func (o *AuthorizationCodeRequest) GetScope() []Scope

func (*AuthorizationCodeRequest) GetState added in v0.3.2

func (o *AuthorizationCodeRequest) GetState() *string

type Cart

type Cart struct {
	// This value is used by Bolt as an external reference to a given order. This reference must be unique per successful transaction.
	OrderReference string `json:"order_reference"`
	// Used optionally to pass additional information like order numbers or other IDs as needed.
	OrderDescription *string `json:"order_description,omitempty"`
	// A shopper-facing identifier corresponding to the order reference associated with this transaction.
	DisplayID *string        `json:"display_id,omitempty"`
	Shipments []CartShipment `json:"shipments,omitempty"`
	Discounts []CartDiscount `json:"discounts,omitempty"`
	Items     []CartItem     `json:"items,omitempty"`
	// A monetary amount, i.e. a base unit amount and a supported currency.
	Total Amount `json:"total"`
	// A monetary amount, i.e. a base unit amount and a supported currency.
	Tax Amount `json:"tax"`
}

func (*Cart) GetDiscounts

func (o *Cart) GetDiscounts() []CartDiscount

func (*Cart) GetDisplayID

func (o *Cart) GetDisplayID() *string

func (*Cart) GetItems

func (o *Cart) GetItems() []CartItem

func (*Cart) GetOrderDescription

func (o *Cart) GetOrderDescription() *string

func (*Cart) GetOrderReference

func (o *Cart) GetOrderReference() string

func (*Cart) GetShipments

func (o *Cart) GetShipments() []CartShipment

func (*Cart) GetTax

func (o *Cart) GetTax() Amount

func (*Cart) GetTotal

func (o *Cart) GetTotal() Amount

type CartDiscount

type CartDiscount struct {
	// A monetary amount, i.e. a base unit amount and a supported currency.
	Amount Amount `json:"amount"`
	// Discount code.
	Code *string `json:"code,omitempty"`
	// Used to provide a link to additional details, such as a landing page, associated with the discount offering.
	DetailsURL *string `json:"details_url,omitempty"`
}

func (*CartDiscount) GetAmount

func (o *CartDiscount) GetAmount() Amount

func (*CartDiscount) GetCode

func (o *CartDiscount) GetCode() *string

func (*CartDiscount) GetDetailsURL

func (o *CartDiscount) GetDetailsURL() *string

type CartError

type CartError struct {
	// The type of error returned
	DotTag CartErrorTag `json:".tag"`
	// A human-readable error message, which might include information specific to
	// the request that was made.
	//
	Message string `json:"message"`
}

func (*CartError) GetDotTag

func (o *CartError) GetDotTag() CartErrorTag

func (*CartError) GetMessage

func (o *CartError) GetMessage() string

type CartErrorTag

type CartErrorTag string

CartErrorTag - The type of error returned

const (
	CartErrorTagPaymentAlreadyExists CartErrorTag = "payment_already_exists"
	CartErrorTagCurrencyNotSupported CartErrorTag = "currency_not_supported"
)

func (CartErrorTag) ToPointer

func (e CartErrorTag) ToPointer() *CartErrorTag

func (*CartErrorTag) UnmarshalJSON

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

type CartItem

type CartItem struct {
	// The name of a given item.
	Name string `json:"name"`
	// This value is used by Bolt as an external reference to a given item.
	Reference string `json:"reference"`
	// A human-readable description of this cart item.
	Description *string `json:"description,omitempty"`
	// A monetary amount, i.e. a base unit amount and a supported currency.
	TotalAmount Amount `json:"total_amount"`
	// The item's unit price, i.e. the cost of a single item exclusive of tax and discounts.
	UnitPrice int64 `json:"unit_price"`
	// The number of units that comprise this cart item.
	Quantity int64 `json:"quantity"`
	// Used to provide a link to the image associated with the item.
	ImageURL *string `json:"image_url,omitempty"`
}

func (*CartItem) GetDescription

func (o *CartItem) GetDescription() *string

func (*CartItem) GetImageURL

func (o *CartItem) GetImageURL() *string

func (*CartItem) GetName

func (o *CartItem) GetName() string

func (*CartItem) GetQuantity

func (o *CartItem) GetQuantity() int64

func (*CartItem) GetReference

func (o *CartItem) GetReference() string

func (*CartItem) GetTotalAmount

func (o *CartItem) GetTotalAmount() Amount

func (*CartItem) GetUnitPrice

func (o *CartItem) GetUnitPrice() int64

type CartShipment

type CartShipment struct {
	Address *AddressReferenceInput `json:"address,omitempty"`
	// A monetary amount, i.e. a base unit amount and a supported currency.
	Cost *Amount `json:"cost,omitempty"`
	// The name of the carrier selected.
	Carrier *string `json:"carrier,omitempty"`
}

func (*CartShipment) GetAddress

func (o *CartShipment) GetAddress() *AddressReferenceInput

func (*CartShipment) GetAddressExplicit

func (o *CartShipment) GetAddressExplicit() *AddressReferenceExplicitInput

func (*CartShipment) GetAddressID

func (o *CartShipment) GetAddressID() *AddressReferenceID

func (*CartShipment) GetCarrier

func (o *CartShipment) GetCarrier() *string

func (*CartShipment) GetCost

func (o *CartShipment) GetCost() *Amount

type CountryCode

type CountryCode string

CountryCode - The country (in its ISO 3166 alpha-2 format) associated with this address.

const (
	CountryCodeAf CountryCode = "AF"
	CountryCodeAx CountryCode = "AX"
	CountryCodeAl CountryCode = "AL"
	CountryCodeDz CountryCode = "DZ"
	CountryCodeAs CountryCode = "AS"
	CountryCodeAd CountryCode = "AD"
	CountryCodeAo CountryCode = "AO"
	CountryCodeAi CountryCode = "AI"
	CountryCodeAq CountryCode = "AQ"
	CountryCodeAg CountryCode = "AG"
	CountryCodeAr CountryCode = "AR"
	CountryCodeAm CountryCode = "AM"
	CountryCodeAw CountryCode = "AW"
	CountryCodeAu CountryCode = "AU"
	CountryCodeAt CountryCode = "AT"
	CountryCodeAz CountryCode = "AZ"
	CountryCodeBh CountryCode = "BH"
	CountryCodeBs CountryCode = "BS"
	CountryCodeBd CountryCode = "BD"
	CountryCodeBb CountryCode = "BB"
	CountryCodeBy CountryCode = "BY"
	CountryCodeBe CountryCode = "BE"
	CountryCodeBz CountryCode = "BZ"
	CountryCodeBj CountryCode = "BJ"
	CountryCodeBm CountryCode = "BM"
	CountryCodeBt CountryCode = "BT"
	CountryCodeBo CountryCode = "BO"
	CountryCodeBq CountryCode = "BQ"
	CountryCodeBa CountryCode = "BA"
	CountryCodeBw CountryCode = "BW"
	CountryCodeBv CountryCode = "BV"
	CountryCodeBr CountryCode = "BR"
	CountryCodeIo CountryCode = "IO"
	CountryCodeBn CountryCode = "BN"
	CountryCodeBg CountryCode = "BG"
	CountryCodeBf CountryCode = "BF"
	CountryCodeBi CountryCode = "BI"
	CountryCodeKh CountryCode = "KH"
	CountryCodeCm CountryCode = "CM"
	CountryCodeCa CountryCode = "CA"
	CountryCodeCv CountryCode = "CV"
	CountryCodeKy CountryCode = "KY"
	CountryCodeCf CountryCode = "CF"
	CountryCodeTd CountryCode = "TD"
	CountryCodeCl CountryCode = "CL"
	CountryCodeCn CountryCode = "CN"
	CountryCodeCx CountryCode = "CX"
	CountryCodeCc CountryCode = "CC"
	CountryCodeCo CountryCode = "CO"
	CountryCodeKm CountryCode = "KM"
	CountryCodeCg CountryCode = "CG"
	CountryCodeCd CountryCode = "CD"
	CountryCodeCk CountryCode = "CK"
	CountryCodeCr CountryCode = "CR"
	CountryCodeCi CountryCode = "CI"
	CountryCodeHr CountryCode = "HR"
	CountryCodeCu CountryCode = "CU"
	CountryCodeCw CountryCode = "CW"
	CountryCodeCy CountryCode = "CY"
	CountryCodeCz CountryCode = "CZ"
	CountryCodeDk CountryCode = "DK"
	CountryCodeDj CountryCode = "DJ"
	CountryCodeDm CountryCode = "DM"
	CountryCodeDo CountryCode = "DO"
	CountryCodeEc CountryCode = "EC"
	CountryCodeEg CountryCode = "EG"
	CountryCodeSv CountryCode = "SV"
	CountryCodeGq CountryCode = "GQ"
	CountryCodeEr CountryCode = "ER"
	CountryCodeEe CountryCode = "EE"
	CountryCodeEt CountryCode = "ET"
	CountryCodeFk CountryCode = "FK"
	CountryCodeFo CountryCode = "FO"
	CountryCodeFj CountryCode = "FJ"
	CountryCodeFi CountryCode = "FI"
	CountryCodeFr CountryCode = "FR"
	CountryCodeGf CountryCode = "GF"
	CountryCodePf CountryCode = "PF"
	CountryCodeTf CountryCode = "TF"
	CountryCodeGa CountryCode = "GA"
	CountryCodeGm CountryCode = "GM"
	CountryCodeGe CountryCode = "GE"
	CountryCodeDe CountryCode = "DE"
	CountryCodeGh CountryCode = "GH"
	CountryCodeGi CountryCode = "GI"
	CountryCodeGr CountryCode = "GR"
	CountryCodeGl CountryCode = "GL"
	CountryCodeGd CountryCode = "GD"
	CountryCodeGp CountryCode = "GP"
	CountryCodeGu CountryCode = "GU"
	CountryCodeGt CountryCode = "GT"
	CountryCodeGg CountryCode = "GG"
	CountryCodeGn CountryCode = "GN"
	CountryCodeGw CountryCode = "GW"
	CountryCodeGy CountryCode = "GY"
	CountryCodeHt CountryCode = "HT"
	CountryCodeHm CountryCode = "HM"
	CountryCodeVa CountryCode = "VA"
	CountryCodeHn CountryCode = "HN"
	CountryCodeHk CountryCode = "HK"
	CountryCodeHu CountryCode = "HU"
	CountryCodeIs CountryCode = "IS"
	CountryCodeIn CountryCode = "IN"
	CountryCodeID CountryCode = "ID"
	CountryCodeIr CountryCode = "IR"
	CountryCodeIq CountryCode = "IQ"
	CountryCodeIe CountryCode = "IE"
	CountryCodeIm CountryCode = "IM"
	CountryCodeIl CountryCode = "IL"
	CountryCodeIt CountryCode = "IT"
	CountryCodeJm CountryCode = "JM"
	CountryCodeJp CountryCode = "JP"
	CountryCodeJe CountryCode = "JE"
	CountryCodeJo CountryCode = "JO"
	CountryCodeKz CountryCode = "KZ"
	CountryCodeKe CountryCode = "KE"
	CountryCodeKi CountryCode = "KI"
	CountryCodeKp CountryCode = "KP"
	CountryCodeKr CountryCode = "KR"
	CountryCodeKw CountryCode = "KW"
	CountryCodeKg CountryCode = "KG"
	CountryCodeLa CountryCode = "LA"
	CountryCodeLv CountryCode = "LV"
	CountryCodeLb CountryCode = "LB"
	CountryCodeLs CountryCode = "LS"
	CountryCodeLr CountryCode = "LR"
	CountryCodeLy CountryCode = "LY"
	CountryCodeLi CountryCode = "LI"
	CountryCodeLt CountryCode = "LT"
	CountryCodeLu CountryCode = "LU"
	CountryCodeMo CountryCode = "MO"
	CountryCodeMk CountryCode = "MK"
	CountryCodeMg CountryCode = "MG"
	CountryCodeMw CountryCode = "MW"
	CountryCodeMy CountryCode = "MY"
	CountryCodeMv CountryCode = "MV"
	CountryCodeMl CountryCode = "ML"
	CountryCodeMt CountryCode = "MT"
	CountryCodeMh CountryCode = "MH"
	CountryCodeMq CountryCode = "MQ"
	CountryCodeMr CountryCode = "MR"
	CountryCodeMu CountryCode = "MU"
	CountryCodeYt CountryCode = "YT"
	CountryCodeMx CountryCode = "MX"
	CountryCodeFm CountryCode = "FM"
	CountryCodeMd CountryCode = "MD"
	CountryCodeMc CountryCode = "MC"
	CountryCodeMn CountryCode = "MN"
	CountryCodeMe CountryCode = "ME"
	CountryCodeMs CountryCode = "MS"
	CountryCodeMa CountryCode = "MA"
	CountryCodeMz CountryCode = "MZ"
	CountryCodeMm CountryCode = "MM"
	CountryCodeNa CountryCode = "NA"
	CountryCodeNr CountryCode = "NR"
	CountryCodeNp CountryCode = "NP"
	CountryCodeNl CountryCode = "NL"
	CountryCodeNc CountryCode = "NC"
	CountryCodeNz CountryCode = "NZ"
	CountryCodeNi CountryCode = "NI"
	CountryCodeNe CountryCode = "NE"
	CountryCodeNg CountryCode = "NG"
	CountryCodeNu CountryCode = "NU"
	CountryCodeNf CountryCode = "NF"
	CountryCodeMp CountryCode = "MP"
	CountryCodeNo CountryCode = "NO"
	CountryCodeOm CountryCode = "OM"
	CountryCodePk CountryCode = "PK"
	CountryCodePw CountryCode = "PW"
	CountryCodePs CountryCode = "PS"
	CountryCodePa CountryCode = "PA"
	CountryCodePg CountryCode = "PG"
	CountryCodePy CountryCode = "PY"
	CountryCodePe CountryCode = "PE"
	CountryCodePh CountryCode = "PH"
	CountryCodePn CountryCode = "PN"
	CountryCodePl CountryCode = "PL"
	CountryCodePt CountryCode = "PT"
	CountryCodePr CountryCode = "PR"
	CountryCodeQa CountryCode = "QA"
	CountryCodeRe CountryCode = "RE"
	CountryCodeRo CountryCode = "RO"
	CountryCodeRu CountryCode = "RU"
	CountryCodeRw CountryCode = "RW"
	CountryCodeBl CountryCode = "BL"
	CountryCodeSh CountryCode = "SH"
	CountryCodeKn CountryCode = "KN"
	CountryCodeLc CountryCode = "LC"
	CountryCodeMf CountryCode = "MF"
	CountryCodePm CountryCode = "PM"
	CountryCodeVc CountryCode = "VC"
	CountryCodeWs CountryCode = "WS"
	CountryCodeSm CountryCode = "SM"
	CountryCodeSt CountryCode = "ST"
	CountryCodeSa CountryCode = "SA"
	CountryCodeSn CountryCode = "SN"
	CountryCodeRs CountryCode = "RS"
	CountryCodeSc CountryCode = "SC"
	CountryCodeSl CountryCode = "SL"
	CountryCodeSg CountryCode = "SG"
	CountryCodeSx CountryCode = "SX"
	CountryCodeSk CountryCode = "SK"
	CountryCodeSi CountryCode = "SI"
	CountryCodeSb CountryCode = "SB"
	CountryCodeSo CountryCode = "SO"
	CountryCodeZa CountryCode = "ZA"
	CountryCodeGs CountryCode = "GS"
	CountryCodeSs CountryCode = "SS"
	CountryCodeEs CountryCode = "ES"
	CountryCodeLk CountryCode = "LK"
	CountryCodeSd CountryCode = "SD"
	CountryCodeSr CountryCode = "SR"
	CountryCodeSj CountryCode = "SJ"
	CountryCodeSz CountryCode = "SZ"
	CountryCodeSe CountryCode = "SE"
	CountryCodeCh CountryCode = "CH"
	CountryCodeSy CountryCode = "SY"
	CountryCodeTw CountryCode = "TW"
	CountryCodeTj CountryCode = "TJ"
	CountryCodeTz CountryCode = "TZ"
	CountryCodeTh CountryCode = "TH"
	CountryCodeTl CountryCode = "TL"
	CountryCodeTg CountryCode = "TG"
	CountryCodeTk CountryCode = "TK"
	CountryCodeTo CountryCode = "TO"
	CountryCodeTt CountryCode = "TT"
	CountryCodeTn CountryCode = "TN"
	CountryCodeTr CountryCode = "TR"
	CountryCodeTm CountryCode = "TM"
	CountryCodeTc CountryCode = "TC"
	CountryCodeTv CountryCode = "TV"
	CountryCodeUg CountryCode = "UG"
	CountryCodeUa CountryCode = "UA"
	CountryCodeAe CountryCode = "AE"
	CountryCodeGb CountryCode = "GB"
	CountryCodeUs CountryCode = "US"
	CountryCodeUm CountryCode = "UM"
	CountryCodeUy CountryCode = "UY"
	CountryCodeUz CountryCode = "UZ"
	CountryCodeVu CountryCode = "VU"
	CountryCodeVe CountryCode = "VE"
	CountryCodeVn CountryCode = "VN"
	CountryCodeVg CountryCode = "VG"
	CountryCodeVi CountryCode = "VI"
	CountryCodeWf CountryCode = "WF"
	CountryCodeEh CountryCode = "EH"
	CountryCodeYe CountryCode = "YE"
	CountryCodeZm CountryCode = "ZM"
	CountryCodeZw CountryCode = "ZW"
)

func (CountryCode) ToPointer

func (e CountryCode) ToPointer() *CountryCode

func (*CountryCode) UnmarshalJSON

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

type CreditCardError

type CreditCardError struct {
	// The type of error returned
	DotTag CreditCardErrorTag `json:".tag"`
	// A human-readable error message, which might include information specific to
	// the request that was made.
	//
	Message string `json:"message"`
}

func (*CreditCardError) GetDotTag

func (o *CreditCardError) GetDotTag() CreditCardErrorTag

func (*CreditCardError) GetMessage

func (o *CreditCardError) GetMessage() string

type CreditCardErrorTag

type CreditCardErrorTag string

CreditCardErrorTag - The type of error returned

const (
	CreditCardErrorTagDeclined                CreditCardErrorTag = "declined"
	CreditCardErrorTagDeclinedInvalidAmount   CreditCardErrorTag = "declined_invalid_amount"
	CreditCardErrorTagDeclinedInvalidCvv      CreditCardErrorTag = "declined_invalid_cvv"
	CreditCardErrorTagDeclinedInvalidMerchant CreditCardErrorTag = "declined_invalid_merchant"
	CreditCardErrorTagDeclinedInvalidNumber   CreditCardErrorTag = "declined_invalid_number"
	CreditCardErrorTagDeclinedExpired         CreditCardErrorTag = "declined_expired"
	CreditCardErrorTagDeclinedCallIssuer      CreditCardErrorTag = "declined_call_issuer"
	CreditCardErrorTagDeclinedUnsupported     CreditCardErrorTag = "declined_unsupported"
)

func (CreditCardErrorTag) ToPointer

func (e CreditCardErrorTag) ToPointer() *CreditCardErrorTag

func (*CreditCardErrorTag) UnmarshalJSON

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

type CreditCardNetwork

type CreditCardNetwork string

CreditCardNetwork - The credit card's network.

const (
	CreditCardNetworkVisa         CreditCardNetwork = "visa"
	CreditCardNetworkMastercard   CreditCardNetwork = "mastercard"
	CreditCardNetworkAmex         CreditCardNetwork = "amex"
	CreditCardNetworkDiscover     CreditCardNetwork = "discover"
	CreditCardNetworkJcb          CreditCardNetwork = "jcb"
	CreditCardNetworkUnionpay     CreditCardNetwork = "unionpay"
	CreditCardNetworkAlliancedata CreditCardNetwork = "alliancedata"
	CreditCardNetworkCitiplcc     CreditCardNetwork = "citiplcc"
)

func (CreditCardNetwork) ToPointer

func (e CreditCardNetwork) ToPointer() *CreditCardNetwork

func (*CreditCardNetwork) UnmarshalJSON

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

type Currency

type Currency string

Currency - A supported currency.

const (
	CurrencyAud Currency = "AUD"
	CurrencyCad Currency = "CAD"
	CurrencyEur Currency = "EUR"
	CurrencyGbp Currency = "GBP"
	CurrencyUsd Currency = "USD"
)

func (Currency) ToPointer

func (e Currency) ToPointer() *Currency

func (*Currency) UnmarshalJSON

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

type DotTag

type DotTag string
const (
	DotTagCreditCard DotTag = "credit_card"
)

func (DotTag) ToPointer

func (e DotTag) ToPointer() *DotTag

func (*DotTag) UnmarshalJSON

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

type EmailState

type EmailState string
const (
	EmailStateMissing    EmailState = "missing"
	EmailStateUnverified EmailState = "unverified"
	EmailStateVerified   EmailState = "verified"
)

func (EmailState) ToPointer

func (e EmailState) ToPointer() *EmailState

func (*EmailState) UnmarshalJSON

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

type Error

type Error struct {
	// The type of error returned
	DotTag ErrorTag `json:".tag"`
	// A human-readable error message, which might include information specific to
	// the request that was made.
	//
	Message string `json:"message"`
}

func (*Error) GetDotTag

func (o *Error) GetDotTag() ErrorTag

func (*Error) GetMessage

func (o *Error) GetMessage() string

type ErrorTag

type ErrorTag string

ErrorTag - The type of error returned

const (
	ErrorTagUnauthorized         ErrorTag = "unauthorized"
	ErrorTagForbidden            ErrorTag = "forbidden"
	ErrorTagUnprocessableRequest ErrorTag = "unprocessable_request"
	ErrorTagNotFound             ErrorTag = "not_found"
)

func (ErrorTag) ToPointer

func (e ErrorTag) ToPointer() *ErrorTag

func (*ErrorTag) UnmarshalJSON

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

type FieldError

type FieldError struct {
	// The type of error returned
	DotTag FieldErrorTag `json:".tag"`
	// A human-readable error message, which might include information specific to
	// the request that was made.
	//
	Message string `json:"message"`
	// The field (in its hierarchical form) that is failing validation.
	Field string `json:"field"`
}

FieldError - An error that pertains to validation of a specific field in the request.

func (*FieldError) GetDotTag

func (o *FieldError) GetDotTag() FieldErrorTag

func (*FieldError) GetField

func (o *FieldError) GetField() string

func (*FieldError) GetMessage

func (o *FieldError) GetMessage() string

type FieldErrorTag

type FieldErrorTag string

FieldErrorTag - The type of error returned

const (
	FieldErrorTagInvalidInputParameter FieldErrorTag = "invalid_input_parameter"
)

func (FieldErrorTag) ToPointer

func (e FieldErrorTag) ToPointer() *FieldErrorTag

func (*FieldErrorTag) UnmarshalJSON

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

type GetAccessTokenResponse

type GetAccessTokenResponse struct {
	// A JWT token issued when the request includes the scope open_id.
	IDToken *string `json:"id_token,omitempty"`
	// An access token you can use to make requests on behalf of a Bolt Account.
	AccessToken *string `json:"access_token,omitempty"`
	// The access token's expiration, in seconds.
	ExpiresIn *int64 `json:"expires_in,omitempty"`
	// A refresh token you can use to issue a brand new access token without obtaining a new authorization code.
	RefreshToken *string `json:"refresh_token,omitempty"`
	// The scope granted to the refresh token. Currently, refreshed token will only grant view permissions.
	RefreshTokenScope *string `json:"refresh_token_scope,omitempty"`
	// The scope granted to access token, depending on the scope granted to the authorization code as well as the scope parameter.
	// Options include `bolt.account.manage`, `bolt.account.view`, `openid`. Multiple values can be returned as space-separated strings.
	//
	Scope *string `json:"scope,omitempty"`
	// The token_type will always be bearer.
	TokenType *string `json:"token_type,omitempty"`
}

func (*GetAccessTokenResponse) GetAccessToken

func (o *GetAccessTokenResponse) GetAccessToken() *string

func (*GetAccessTokenResponse) GetExpiresIn

func (o *GetAccessTokenResponse) GetExpiresIn() *int64

func (*GetAccessTokenResponse) GetIDToken

func (o *GetAccessTokenResponse) GetIDToken() *string

func (*GetAccessTokenResponse) GetRefreshToken

func (o *GetAccessTokenResponse) GetRefreshToken() *string

func (*GetAccessTokenResponse) GetRefreshTokenScope

func (o *GetAccessTokenResponse) GetRefreshTokenScope() *string

func (*GetAccessTokenResponse) GetScope

func (o *GetAccessTokenResponse) GetScope() *string

func (*GetAccessTokenResponse) GetTokenType

func (o *GetAccessTokenResponse) GetTokenType() *string

type GrantType

type GrantType string

GrantType - The type of OAuth 2.0 grant being utilized.

const (
	GrantTypeAuthorizationCode GrantType = "authorization_code"
)

func (GrantType) ToPointer

func (e GrantType) ToPointer() *GrantType

func (*GrantType) UnmarshalJSON

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

type GuestPaymentInitializeRequest

type GuestPaymentInitializeRequest struct {
	Profile       ProfileCreationData `json:"profile"`
	Cart          Cart                `json:"cart"`
	PaymentMethod PaymentMethodInput  `json:"payment_method"`
}

func (*GuestPaymentInitializeRequest) GetCart

func (o *GuestPaymentInitializeRequest) GetCart() Cart

func (*GuestPaymentInitializeRequest) GetPaymentMethod

func (o *GuestPaymentInitializeRequest) GetPaymentMethod() PaymentMethodInput

func (*GuestPaymentInitializeRequest) GetPaymentMethodAffirm

func (o *GuestPaymentInitializeRequest) GetPaymentMethodAffirm() *PaymentMethodAffirm

func (*GuestPaymentInitializeRequest) GetPaymentMethodAfterpay

func (o *GuestPaymentInitializeRequest) GetPaymentMethodAfterpay() *PaymentMethodAfterpay

func (*GuestPaymentInitializeRequest) GetPaymentMethodCreditCard

func (o *GuestPaymentInitializeRequest) GetPaymentMethodCreditCard() *PaymentMethodCreditCardInput

func (*GuestPaymentInitializeRequest) GetPaymentMethodKlarna

func (o *GuestPaymentInitializeRequest) GetPaymentMethodKlarna() *PaymentMethodKlarna

func (*GuestPaymentInitializeRequest) GetPaymentMethodKlarnaAccount

func (o *GuestPaymentInitializeRequest) GetPaymentMethodKlarnaAccount() *PaymentMethodKlarnaAccount

func (*GuestPaymentInitializeRequest) GetPaymentMethodKlarnaPaynow

func (o *GuestPaymentInitializeRequest) GetPaymentMethodKlarnaPaynow() *PaymentMethodKlarnaPaynow

func (*GuestPaymentInitializeRequest) GetPaymentMethodPaypal

func (o *GuestPaymentInitializeRequest) GetPaymentMethodPaypal() *PaymentMethodPaypal

func (*GuestPaymentInitializeRequest) GetProfile

type Order

type Order struct {
	Profile Profile `json:"profile"`
	Cart    Cart    `json:"cart"`
}

func (*Order) GetCart

func (o *Order) GetCart() Cart

func (*Order) GetProfile

func (o *Order) GetProfile() Profile

type OrderResponse

type OrderResponse struct {
	ID          string      `json:"id"`
	Transaction Transaction `json:"transaction"`
}

func (*OrderResponse) GetID

func (o *OrderResponse) GetID() string

func (*OrderResponse) GetTransaction

func (o *OrderResponse) GetTransaction() Transaction

type PaymentActionRequest

type PaymentActionRequest struct {
	DotTag PaymentActionRequestTag `json:".tag"`
	// Optional redirect result token required for an APM payment (excluding PayPal).
	RedirectResult *string `json:"redirect_result,omitempty"`
}

func (*PaymentActionRequest) GetDotTag

func (*PaymentActionRequest) GetRedirectResult

func (o *PaymentActionRequest) GetRedirectResult() *string

type PaymentActionRequestTag

type PaymentActionRequestTag string
const (
	PaymentActionRequestTagFinalize PaymentActionRequestTag = "finalize"
)

func (PaymentActionRequestTag) ToPointer

func (*PaymentActionRequestTag) UnmarshalJSON

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

type PaymentInitializeRequest

type PaymentInitializeRequest struct {
	Cart          Cart                  `json:"cart"`
	PaymentMethod PaymentMethodExtended `json:"payment_method"`
}

func (*PaymentInitializeRequest) GetCart

func (o *PaymentInitializeRequest) GetCart() Cart

func (*PaymentInitializeRequest) GetPaymentMethod

func (o *PaymentInitializeRequest) GetPaymentMethod() PaymentMethodExtended

func (*PaymentInitializeRequest) GetPaymentMethodAffirm

func (o *PaymentInitializeRequest) GetPaymentMethodAffirm() *PaymentMethodAffirm

func (*PaymentInitializeRequest) GetPaymentMethodAfterpay

func (o *PaymentInitializeRequest) GetPaymentMethodAfterpay() *PaymentMethodAfterpay

func (*PaymentInitializeRequest) GetPaymentMethodCreditCard

func (o *PaymentInitializeRequest) GetPaymentMethodCreditCard() *PaymentMethodCreditCardInput

func (*PaymentInitializeRequest) GetPaymentMethodID

func (o *PaymentInitializeRequest) GetPaymentMethodID() *PaymentMethodReference

func (*PaymentInitializeRequest) GetPaymentMethodKlarna

func (o *PaymentInitializeRequest) GetPaymentMethodKlarna() *PaymentMethodKlarna

func (*PaymentInitializeRequest) GetPaymentMethodKlarnaAccount

func (o *PaymentInitializeRequest) GetPaymentMethodKlarnaAccount() *PaymentMethodKlarnaAccount

func (*PaymentInitializeRequest) GetPaymentMethodKlarnaPaynow

func (o *PaymentInitializeRequest) GetPaymentMethodKlarnaPaynow() *PaymentMethodKlarnaPaynow

func (*PaymentInitializeRequest) GetPaymentMethodPaypal

func (o *PaymentInitializeRequest) GetPaymentMethodPaypal() *PaymentMethodPaypal

type PaymentMethod

type PaymentMethod struct {
	PaymentMethodCreditCard          *PaymentMethodCreditCard
	PaymentMethodPaypalOutput        *PaymentMethodPaypalOutput
	PaymentMethodAffirmOutput        *PaymentMethodAffirmOutput
	PaymentMethodAfterpayOutput      *PaymentMethodAfterpayOutput
	PaymentMethodKlarnaOutput        *PaymentMethodKlarnaOutput
	PaymentMethodKlarnaAccountOutput *PaymentMethodKlarnaAccountOutput
	PaymentMethodKlarnaPaynowOutput  *PaymentMethodKlarnaPaynowOutput

	Type PaymentMethodType
}

func CreatePaymentMethodAffirm

func CreatePaymentMethodAffirm(affirm PaymentMethodAffirmOutput) PaymentMethod

func CreatePaymentMethodAfterpay

func CreatePaymentMethodAfterpay(afterpay PaymentMethodAfterpayOutput) PaymentMethod

func CreatePaymentMethodCreditCard

func CreatePaymentMethodCreditCard(creditCard PaymentMethodCreditCard) PaymentMethod

func CreatePaymentMethodKlarna

func CreatePaymentMethodKlarna(klarna PaymentMethodKlarnaOutput) PaymentMethod

func CreatePaymentMethodKlarnaAccount

func CreatePaymentMethodKlarnaAccount(klarnaAccount PaymentMethodKlarnaAccountOutput) PaymentMethod

func CreatePaymentMethodKlarnaPaynow

func CreatePaymentMethodKlarnaPaynow(klarnaPaynow PaymentMethodKlarnaPaynowOutput) PaymentMethod

func CreatePaymentMethodPaypal

func CreatePaymentMethodPaypal(paypal PaymentMethodPaypalOutput) PaymentMethod

func (PaymentMethod) MarshalJSON

func (u PaymentMethod) MarshalJSON() ([]byte, error)

func (*PaymentMethod) UnmarshalJSON

func (u *PaymentMethod) UnmarshalJSON(data []byte) error

type PaymentMethodAffirm

type PaymentMethodAffirm struct {
	DotTag PaymentMethodAffirmTag `json:".tag"`
	// Return URL to return to after payment completion in Affirm.
	ReturnURL string `json:"return_url"`
}

func (*PaymentMethodAffirm) GetDotTag

func (*PaymentMethodAffirm) GetReturnURL

func (o *PaymentMethodAffirm) GetReturnURL() string

type PaymentMethodAffirmOutput

type PaymentMethodAffirmOutput struct {
	DotTag PaymentMethodAffirmTag `json:".tag"`
}

func (*PaymentMethodAffirmOutput) GetDotTag

type PaymentMethodAffirmTag

type PaymentMethodAffirmTag string
const (
	PaymentMethodAffirmTagAffirm PaymentMethodAffirmTag = "affirm"
)

func (PaymentMethodAffirmTag) ToPointer

func (*PaymentMethodAffirmTag) UnmarshalJSON

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

type PaymentMethodAfterpay

type PaymentMethodAfterpay struct {
	DotTag PaymentMethodAfterpayTag `json:".tag"`
	// Return URL to return to after payment completion in Afterpay.
	ReturnURL string `json:"return_url"`
}

func (*PaymentMethodAfterpay) GetDotTag

func (*PaymentMethodAfterpay) GetReturnURL

func (o *PaymentMethodAfterpay) GetReturnURL() string

type PaymentMethodAfterpayOutput

type PaymentMethodAfterpayOutput struct {
	DotTag PaymentMethodAfterpayTag `json:".tag"`
}

func (*PaymentMethodAfterpayOutput) GetDotTag

type PaymentMethodAfterpayTag

type PaymentMethodAfterpayTag string
const (
	PaymentMethodAfterpayTagAfterpay PaymentMethodAfterpayTag = "afterpay"
)

func (PaymentMethodAfterpayTag) ToPointer

func (*PaymentMethodAfterpayTag) UnmarshalJSON

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

type PaymentMethodCreditCard

type PaymentMethodCreditCard struct {
	DotTag         DotTag           `json:".tag"`
	ID             *string          `json:"id,omitempty"`
	BillingAddress AddressReference `json:"billing_address"`
	// The credit card's network.
	Network CreditCardNetwork `json:"network"`
	// The account number's last four digits.
	Last4 string `json:"last4"`
	// The expiration date, in YYYY-MM format.
	Expiration string `json:"expiration"`
}

func (*PaymentMethodCreditCard) GetBillingAddress

func (o *PaymentMethodCreditCard) GetBillingAddress() AddressReference

func (*PaymentMethodCreditCard) GetBillingAddressExplicit

func (o *PaymentMethodCreditCard) GetBillingAddressExplicit() *AddressReferenceExplicit

func (*PaymentMethodCreditCard) GetBillingAddressID

func (o *PaymentMethodCreditCard) GetBillingAddressID() *AddressReferenceID

func (*PaymentMethodCreditCard) GetDotTag

func (o *PaymentMethodCreditCard) GetDotTag() DotTag

func (*PaymentMethodCreditCard) GetExpiration

func (o *PaymentMethodCreditCard) GetExpiration() string

func (*PaymentMethodCreditCard) GetID

func (o *PaymentMethodCreditCard) GetID() *string

func (*PaymentMethodCreditCard) GetLast4

func (o *PaymentMethodCreditCard) GetLast4() string

func (*PaymentMethodCreditCard) GetNetwork

type PaymentMethodCreditCardInput

type PaymentMethodCreditCardInput struct {
	DotTag         DotTag                `json:".tag"`
	BillingAddress AddressReferenceInput `json:"billing_address"`
	// The credit card's network.
	Network CreditCardNetwork `json:"network"`
	// The Bank Identification Number (BIN). This is typically the first 4 to 6 digits of the account number.
	Bin string `json:"bin"`
	// The account number's last four digits.
	Last4 string `json:"last4"`
	// The expiration date, in YYYY-MM format.
	Expiration string `json:"expiration"`
	// The Bolt token associated with the credit card.
	Token string `json:"token"`
}

func (*PaymentMethodCreditCardInput) GetBillingAddress

func (o *PaymentMethodCreditCardInput) GetBillingAddress() AddressReferenceInput

func (*PaymentMethodCreditCardInput) GetBillingAddressExplicit

func (o *PaymentMethodCreditCardInput) GetBillingAddressExplicit() *AddressReferenceExplicitInput

func (*PaymentMethodCreditCardInput) GetBillingAddressID

func (o *PaymentMethodCreditCardInput) GetBillingAddressID() *AddressReferenceID

func (*PaymentMethodCreditCardInput) GetBin

func (*PaymentMethodCreditCardInput) GetDotTag

func (o *PaymentMethodCreditCardInput) GetDotTag() DotTag

func (*PaymentMethodCreditCardInput) GetExpiration

func (o *PaymentMethodCreditCardInput) GetExpiration() string

func (*PaymentMethodCreditCardInput) GetLast4

func (o *PaymentMethodCreditCardInput) GetLast4() string

func (*PaymentMethodCreditCardInput) GetNetwork

func (*PaymentMethodCreditCardInput) GetToken

func (o *PaymentMethodCreditCardInput) GetToken() string

type PaymentMethodExtended

type PaymentMethodExtended struct {
	PaymentMethodReference       *PaymentMethodReference
	PaymentMethodCreditCardInput *PaymentMethodCreditCardInput
	PaymentMethodPaypal          *PaymentMethodPaypal
	PaymentMethodAffirm          *PaymentMethodAffirm
	PaymentMethodAfterpay        *PaymentMethodAfterpay
	PaymentMethodKlarna          *PaymentMethodKlarna
	PaymentMethodKlarnaAccount   *PaymentMethodKlarnaAccount
	PaymentMethodKlarnaPaynow    *PaymentMethodKlarnaPaynow

	Type PaymentMethodExtendedType
}

func CreatePaymentMethodExtendedAffirm

func CreatePaymentMethodExtendedAffirm(affirm PaymentMethodAffirm) PaymentMethodExtended

func CreatePaymentMethodExtendedAfterpay

func CreatePaymentMethodExtendedAfterpay(afterpay PaymentMethodAfterpay) PaymentMethodExtended

func CreatePaymentMethodExtendedCreditCard

func CreatePaymentMethodExtendedCreditCard(creditCard PaymentMethodCreditCardInput) PaymentMethodExtended

func CreatePaymentMethodExtendedKlarna

func CreatePaymentMethodExtendedKlarna(klarna PaymentMethodKlarna) PaymentMethodExtended

func CreatePaymentMethodExtendedKlarnaAccount

func CreatePaymentMethodExtendedKlarnaAccount(klarnaAccount PaymentMethodKlarnaAccount) PaymentMethodExtended

func CreatePaymentMethodExtendedKlarnaPaynow

func CreatePaymentMethodExtendedKlarnaPaynow(klarnaPaynow PaymentMethodKlarnaPaynow) PaymentMethodExtended

func CreatePaymentMethodExtendedPaypal

func CreatePaymentMethodExtendedPaypal(paypal PaymentMethodPaypal) PaymentMethodExtended

func (PaymentMethodExtended) MarshalJSON

func (u PaymentMethodExtended) MarshalJSON() ([]byte, error)

func (*PaymentMethodExtended) UnmarshalJSON

func (u *PaymentMethodExtended) UnmarshalJSON(data []byte) error

type PaymentMethodExtendedType

type PaymentMethodExtendedType string
const (
	PaymentMethodExtendedTypeID            PaymentMethodExtendedType = "id"
	PaymentMethodExtendedTypeCreditCard    PaymentMethodExtendedType = "credit_card"
	PaymentMethodExtendedTypePaypal        PaymentMethodExtendedType = "paypal"
	PaymentMethodExtendedTypeAffirm        PaymentMethodExtendedType = "affirm"
	PaymentMethodExtendedTypeAfterpay      PaymentMethodExtendedType = "afterpay"
	PaymentMethodExtendedTypeKlarna        PaymentMethodExtendedType = "klarna"
	PaymentMethodExtendedTypeKlarnaAccount PaymentMethodExtendedType = "klarna_account"
	PaymentMethodExtendedTypeKlarnaPaynow  PaymentMethodExtendedType = "klarna_paynow"
)

type PaymentMethodInput

type PaymentMethodInput struct {
	PaymentMethodCreditCardInput *PaymentMethodCreditCardInput
	PaymentMethodPaypal          *PaymentMethodPaypal
	PaymentMethodAffirm          *PaymentMethodAffirm
	PaymentMethodAfterpay        *PaymentMethodAfterpay
	PaymentMethodKlarna          *PaymentMethodKlarna
	PaymentMethodKlarnaAccount   *PaymentMethodKlarnaAccount
	PaymentMethodKlarnaPaynow    *PaymentMethodKlarnaPaynow

	Type PaymentMethodInputType
}

func CreatePaymentMethodInputAffirm

func CreatePaymentMethodInputAffirm(affirm PaymentMethodAffirm) PaymentMethodInput

func CreatePaymentMethodInputAfterpay

func CreatePaymentMethodInputAfterpay(afterpay PaymentMethodAfterpay) PaymentMethodInput

func CreatePaymentMethodInputCreditCard

func CreatePaymentMethodInputCreditCard(creditCard PaymentMethodCreditCardInput) PaymentMethodInput

func CreatePaymentMethodInputKlarna

func CreatePaymentMethodInputKlarna(klarna PaymentMethodKlarna) PaymentMethodInput

func CreatePaymentMethodInputKlarnaAccount

func CreatePaymentMethodInputKlarnaAccount(klarnaAccount PaymentMethodKlarnaAccount) PaymentMethodInput

func CreatePaymentMethodInputKlarnaPaynow

func CreatePaymentMethodInputKlarnaPaynow(klarnaPaynow PaymentMethodKlarnaPaynow) PaymentMethodInput

func CreatePaymentMethodInputPaypal

func CreatePaymentMethodInputPaypal(paypal PaymentMethodPaypal) PaymentMethodInput

func (PaymentMethodInput) MarshalJSON

func (u PaymentMethodInput) MarshalJSON() ([]byte, error)

func (*PaymentMethodInput) UnmarshalJSON

func (u *PaymentMethodInput) UnmarshalJSON(data []byte) error

type PaymentMethodInputType

type PaymentMethodInputType string
const (
	PaymentMethodInputTypeCreditCard    PaymentMethodInputType = "credit_card"
	PaymentMethodInputTypePaypal        PaymentMethodInputType = "paypal"
	PaymentMethodInputTypeAffirm        PaymentMethodInputType = "affirm"
	PaymentMethodInputTypeAfterpay      PaymentMethodInputType = "afterpay"
	PaymentMethodInputTypeKlarna        PaymentMethodInputType = "klarna"
	PaymentMethodInputTypeKlarnaAccount PaymentMethodInputType = "klarna_account"
	PaymentMethodInputTypeKlarnaPaynow  PaymentMethodInputType = "klarna_paynow"
)

type PaymentMethodKlarna

type PaymentMethodKlarna struct {
	DotTag PaymentMethodKlarnaTag `json:".tag"`
	// Return URL to return to after payment completion in Klarna.
	ReturnURL string `json:"return_url"`
}

func (*PaymentMethodKlarna) GetDotTag

func (*PaymentMethodKlarna) GetReturnURL

func (o *PaymentMethodKlarna) GetReturnURL() string

type PaymentMethodKlarnaAccount

type PaymentMethodKlarnaAccount struct {
	DotTag PaymentMethodKlarnaAccountTag `json:".tag"`
	// Return URL to return to after payment completion in Klarna.
	ReturnURL string `json:"return_url"`
}

func (*PaymentMethodKlarnaAccount) GetDotTag

func (*PaymentMethodKlarnaAccount) GetReturnURL

func (o *PaymentMethodKlarnaAccount) GetReturnURL() string

type PaymentMethodKlarnaAccountOutput

type PaymentMethodKlarnaAccountOutput struct {
	DotTag PaymentMethodKlarnaAccountTag `json:".tag"`
}

func (*PaymentMethodKlarnaAccountOutput) GetDotTag

type PaymentMethodKlarnaAccountTag

type PaymentMethodKlarnaAccountTag string
const (
	PaymentMethodKlarnaAccountTagKlarnaAccount PaymentMethodKlarnaAccountTag = "klarna_account"
)

func (PaymentMethodKlarnaAccountTag) ToPointer

func (*PaymentMethodKlarnaAccountTag) UnmarshalJSON

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

type PaymentMethodKlarnaOutput

type PaymentMethodKlarnaOutput struct {
	DotTag PaymentMethodKlarnaTag `json:".tag"`
}

func (*PaymentMethodKlarnaOutput) GetDotTag

type PaymentMethodKlarnaPaynow

type PaymentMethodKlarnaPaynow struct {
	DotTag PaymentMethodKlarnaPaynowTag `json:".tag"`
	// Return URL to return to after payment completion in Klarna.
	ReturnURL string `json:"return_url"`
}

func (*PaymentMethodKlarnaPaynow) GetDotTag

func (*PaymentMethodKlarnaPaynow) GetReturnURL

func (o *PaymentMethodKlarnaPaynow) GetReturnURL() string

type PaymentMethodKlarnaPaynowOutput

type PaymentMethodKlarnaPaynowOutput struct {
	DotTag PaymentMethodKlarnaPaynowTag `json:".tag"`
}

func (*PaymentMethodKlarnaPaynowOutput) GetDotTag

type PaymentMethodKlarnaPaynowTag

type PaymentMethodKlarnaPaynowTag string
const (
	PaymentMethodKlarnaPaynowTagKlarnaPaynow PaymentMethodKlarnaPaynowTag = "klarna_paynow"
)

func (PaymentMethodKlarnaPaynowTag) ToPointer

func (*PaymentMethodKlarnaPaynowTag) UnmarshalJSON

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

type PaymentMethodKlarnaTag

type PaymentMethodKlarnaTag string
const (
	PaymentMethodKlarnaTagKlarna PaymentMethodKlarnaTag = "klarna"
)

func (PaymentMethodKlarnaTag) ToPointer

func (*PaymentMethodKlarnaTag) UnmarshalJSON

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

type PaymentMethodPaypal

type PaymentMethodPaypal struct {
	DotTag PaymentMethodPaypalTag `json:".tag"`
	// Redirect URL for successful PayPal transaction.
	SuccessURL string `json:"success_url"`
	// Redirect URL for canceled PayPal transaction.
	CancelURL string `json:"cancel_url"`
}

func (*PaymentMethodPaypal) GetCancelURL

func (o *PaymentMethodPaypal) GetCancelURL() string

func (*PaymentMethodPaypal) GetDotTag

func (*PaymentMethodPaypal) GetSuccessURL

func (o *PaymentMethodPaypal) GetSuccessURL() string

type PaymentMethodPaypalOutput

type PaymentMethodPaypalOutput struct {
	DotTag PaymentMethodPaypalTag `json:".tag"`
}

func (*PaymentMethodPaypalOutput) GetDotTag

type PaymentMethodPaypalTag

type PaymentMethodPaypalTag string
const (
	PaymentMethodPaypalTagPaypal PaymentMethodPaypalTag = "paypal"
)

func (PaymentMethodPaypalTag) ToPointer

func (*PaymentMethodPaypalTag) UnmarshalJSON

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

type PaymentMethodReference

type PaymentMethodReference struct {
	DotTag PaymentMethodReferenceTag `json:".tag"`
	// Payment ID of the saved Bolt Payment method.
	ID string `json:"id"`
}

func (*PaymentMethodReference) GetDotTag

func (*PaymentMethodReference) GetID

func (o *PaymentMethodReference) GetID() string

type PaymentMethodReferenceTag

type PaymentMethodReferenceTag string
const (
	PaymentMethodReferenceTagID PaymentMethodReferenceTag = "id"
)

func (PaymentMethodReferenceTag) ToPointer

func (*PaymentMethodReferenceTag) UnmarshalJSON

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

type PaymentMethodType

type PaymentMethodType string
const (
	PaymentMethodTypeCreditCard    PaymentMethodType = "credit_card"
	PaymentMethodTypePaypal        PaymentMethodType = "paypal"
	PaymentMethodTypeAffirm        PaymentMethodType = "affirm"
	PaymentMethodTypeAfterpay      PaymentMethodType = "afterpay"
	PaymentMethodTypeKlarna        PaymentMethodType = "klarna"
	PaymentMethodTypeKlarnaAccount PaymentMethodType = "klarna_account"
	PaymentMethodTypeKlarnaPaynow  PaymentMethodType = "klarna_paynow"
)

type PaymentResponse

type PaymentResponse struct {
	PaymentResponseFinalized *PaymentResponseFinalized
	PaymentResponsePending   *PaymentResponsePending

	Type PaymentResponseType
}

func CreatePaymentResponseFinalized

func CreatePaymentResponseFinalized(finalized PaymentResponseFinalized) PaymentResponse

func CreatePaymentResponsePending

func CreatePaymentResponsePending(pending PaymentResponsePending) PaymentResponse

func (PaymentResponse) MarshalJSON

func (u PaymentResponse) MarshalJSON() ([]byte, error)

func (*PaymentResponse) UnmarshalJSON

func (u *PaymentResponse) UnmarshalJSON(data []byte) error

type PaymentResponseFinalized

type PaymentResponseFinalized struct {
	DotTag      PaymentResponseFinalizedTag `json:".tag"`
	ID          *string                     `json:"id,omitempty"`
	Status      Status                      `json:"status"`
	Transaction Transaction                 `json:"transaction"`
}

func (*PaymentResponseFinalized) GetDotTag

func (*PaymentResponseFinalized) GetID

func (o *PaymentResponseFinalized) GetID() *string

func (*PaymentResponseFinalized) GetStatus

func (o *PaymentResponseFinalized) GetStatus() Status

func (*PaymentResponseFinalized) GetTransaction

func (o *PaymentResponseFinalized) GetTransaction() Transaction

type PaymentResponseFinalizedTag

type PaymentResponseFinalizedTag string
const (
	PaymentResponseFinalizedTagFinalized PaymentResponseFinalizedTag = "finalized"
)

func (PaymentResponseFinalizedTag) ToPointer

func (*PaymentResponseFinalizedTag) UnmarshalJSON

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

type PaymentResponsePending

type PaymentResponsePending struct {
	DotTag PaymentResponsePendingTag    `json:".tag"`
	ID     *string                      `json:"id,omitempty"`
	Status PaymentResponsePendingStatus `json:"status"`
	Action Action                       `json:"action"`
	URL    string                       `json:"url"`
}

func (*PaymentResponsePending) GetAction

func (o *PaymentResponsePending) GetAction() Action

func (*PaymentResponsePending) GetDotTag

func (*PaymentResponsePending) GetID

func (o *PaymentResponsePending) GetID() *string

func (*PaymentResponsePending) GetStatus

func (*PaymentResponsePending) GetURL

func (o *PaymentResponsePending) GetURL() string

type PaymentResponsePendingStatus

type PaymentResponsePendingStatus string
const (
	PaymentResponsePendingStatusAwaitingUserConfirmation PaymentResponsePendingStatus = "awaiting_user_confirmation"
)

func (PaymentResponsePendingStatus) ToPointer

func (*PaymentResponsePendingStatus) UnmarshalJSON

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

type PaymentResponsePendingTag

type PaymentResponsePendingTag string
const (
	PaymentResponsePendingTagPending PaymentResponsePendingTag = "pending"
)

func (PaymentResponsePendingTag) ToPointer

func (*PaymentResponsePendingTag) UnmarshalJSON

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

type PaymentResponseType

type PaymentResponseType string
const (
	PaymentResponseTypeFinalized PaymentResponseType = "finalized"
	PaymentResponseTypePending   PaymentResponseType = "pending"
)

type PaymentUpdateRequest

type PaymentUpdateRequest struct {
	Cart *Cart `json:"cart,omitempty"`
}

func (*PaymentUpdateRequest) GetCart

func (o *PaymentUpdateRequest) GetCart() *Cart

type PhoneState

type PhoneState string
const (
	PhoneStateMissing    PhoneState = "missing"
	PhoneStateUnverified PhoneState = "unverified"
	PhoneStateVerified   PhoneState = "verified"
)

func (PhoneState) ToPointer

func (e PhoneState) ToPointer() *PhoneState

func (*PhoneState) UnmarshalJSON

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

type Profile

type Profile struct {
	// The given name of the person associated with this profile.
	FirstName string `json:"first_name"`
	// The last name of the person associated with this profile.
	LastName string `json:"last_name"`
	// The email address asscoiated with this profile.
	Email string `json:"email"`
	// The phone number associated with this profile.
	Phone *string `json:"phone,omitempty"`
}

func (*Profile) GetEmail

func (o *Profile) GetEmail() string

func (*Profile) GetFirstName

func (o *Profile) GetFirstName() string

func (*Profile) GetLastName

func (o *Profile) GetLastName() string

func (*Profile) GetPhone

func (o *Profile) GetPhone() *string

type ProfileCreationData

type ProfileCreationData struct {
	// Whether or not an account should be created.
	CreateAccount bool `json:"create_account"`
	// The given name of the person associated with this profile.
	FirstName string `json:"first_name"`
	// The last name of the person associated with this profile.
	LastName string `json:"last_name"`
	// The email address asscoiated with this profile.
	Email string `json:"email"`
	// The phone number associated with this profile.
	Phone *string `json:"phone,omitempty"`
}

func (*ProfileCreationData) GetCreateAccount

func (o *ProfileCreationData) GetCreateAccount() bool

func (*ProfileCreationData) GetEmail

func (o *ProfileCreationData) GetEmail() string

func (*ProfileCreationData) GetFirstName

func (o *ProfileCreationData) GetFirstName() string

func (*ProfileCreationData) GetLastName

func (o *ProfileCreationData) GetLastName() string

func (*ProfileCreationData) GetPhone

func (o *ProfileCreationData) GetPhone() *string

type RefreshTokenRequest added in v0.3.2

type RefreshTokenRequest struct {
	// The type of OAuth 2.0 grant being utilized.
	GrantType RefreshTokenRequestGrantType `form:"name=grant_type"`
	// The value of the refresh token issued to you in the originating OAuth token request.
	RefreshToken string `form:"name=refresh_token"`
	// The OAuth client ID, which corresponds to the merchant publishable key, which can be retrieved
	// in the Merchant Dashboard.
	//
	ClientID string `form:"name=client_id"`
	// The OAuth client secret, which corresponds the merchant API key, which can be retrieved in the
	// Merchant Dashboard.
	//
	ClientSecret string `form:"name=client_secret"`
	// The requested scopes. If the request is successful, the OAuth client will be able to perform operations requiring these scopes.
	//
	Scope []RefreshTokenRequestScope `form:"name=scope"`
	// A randomly generated string sent along with an authorization code. This must be included, if provided,
	// in order to prevent CSRF attacks. used to prevent CSRF attacks.
	//
	State *string `form:"name=state"`
}

func (*RefreshTokenRequest) GetClientID added in v0.3.2

func (o *RefreshTokenRequest) GetClientID() string

func (*RefreshTokenRequest) GetClientSecret added in v0.3.2

func (o *RefreshTokenRequest) GetClientSecret() string

func (*RefreshTokenRequest) GetGrantType added in v0.3.2

func (*RefreshTokenRequest) GetRefreshToken added in v0.3.2

func (o *RefreshTokenRequest) GetRefreshToken() string

func (*RefreshTokenRequest) GetScope added in v0.3.2

func (*RefreshTokenRequest) GetState added in v0.3.2

func (o *RefreshTokenRequest) GetState() *string

type RefreshTokenRequestGrantType added in v0.3.2

type RefreshTokenRequestGrantType string

RefreshTokenRequestGrantType - The type of OAuth 2.0 grant being utilized.

const (
	RefreshTokenRequestGrantTypeRefreshToken RefreshTokenRequestGrantType = "refresh_token"
)

func (RefreshTokenRequestGrantType) ToPointer added in v0.3.2

func (*RefreshTokenRequestGrantType) UnmarshalJSON added in v0.3.2

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

type RefreshTokenRequestScope added in v0.3.2

type RefreshTokenRequestScope string
const (
	RefreshTokenRequestScopeBoltAccountManage RefreshTokenRequestScope = "bolt.account.manage"
	RefreshTokenRequestScopeBoltAccountView   RefreshTokenRequestScope = "bolt.account.view"
	RefreshTokenRequestScopeOpenid            RefreshTokenRequestScope = "openid"
)

func (RefreshTokenRequestScope) ToPointer added in v0.3.2

func (*RefreshTokenRequestScope) UnmarshalJSON added in v0.3.2

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

type Scope

type Scope string
const (
	ScopeBoltAccountManage Scope = "bolt.account.manage"
	ScopeBoltAccountView   Scope = "bolt.account.view"
	ScopeOpenid            Scope = "openid"
)

func (Scope) ToPointer

func (e Scope) ToPointer() *Scope

func (*Scope) UnmarshalJSON

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

type Security

type Security struct {
	Oauth  *string `security:"scheme,type=oauth2,name=Authorization"`
	APIKey *string `security:"scheme,type=apiKey,subtype=header,name=X-API-Key"`
}

func (*Security) GetAPIKey

func (o *Security) GetAPIKey() *string

func (*Security) GetOauth

func (o *Security) GetOauth() *string

type Status

type Status string
const (
	StatusSuccess Status = "success"
)

func (Status) ToPointer

func (e Status) ToPointer() *Status

func (*Status) UnmarshalJSON

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

type TestCreditCard

type TestCreditCard struct {
	// The credit card's network.
	Network CreditCardNetwork `json:"network"`
	// The Bank Identification Number (BIN). This is typically the first 4 to 6 digits of the account number.
	Bin string `json:"bin"`
	// The account number's last four digits.
	Last4 string `json:"last4"`
	// The token's expiration date. Tokens used past their expiration will be rejected.
	Expiration time.Time `json:"expiration"`
	// The Bolt token associated with the credit card.
	Token string `json:"token"`
}

func (*TestCreditCard) GetBin

func (o *TestCreditCard) GetBin() string

func (*TestCreditCard) GetExpiration

func (o *TestCreditCard) GetExpiration() time.Time

func (*TestCreditCard) GetLast4

func (o *TestCreditCard) GetLast4() string

func (*TestCreditCard) GetNetwork

func (o *TestCreditCard) GetNetwork() CreditCardNetwork

func (*TestCreditCard) GetToken

func (o *TestCreditCard) GetToken() string

func (TestCreditCard) MarshalJSON

func (t TestCreditCard) MarshalJSON() ([]byte, error)

func (*TestCreditCard) UnmarshalJSON

func (t *TestCreditCard) UnmarshalJSON(data []byte) error

type TokenRequest added in v0.3.2

type TokenRequest struct {
	AuthorizationCodeRequest *AuthorizationCodeRequest
	RefreshTokenRequest      *RefreshTokenRequest

	Type TokenRequestType
}

func CreateTokenRequestAuthorizationCodeRequest added in v0.3.2

func CreateTokenRequestAuthorizationCodeRequest(authorizationCodeRequest AuthorizationCodeRequest) TokenRequest

func CreateTokenRequestRefreshTokenRequest added in v0.3.2

func CreateTokenRequestRefreshTokenRequest(refreshTokenRequest RefreshTokenRequest) TokenRequest

func (TokenRequest) MarshalJSON added in v0.3.2

func (u TokenRequest) MarshalJSON() ([]byte, error)

func (*TokenRequest) UnmarshalJSON added in v0.3.2

func (u *TokenRequest) UnmarshalJSON(data []byte) error

type TokenRequestType added in v0.3.2

type TokenRequestType string
const (
	TokenRequestTypeAuthorizationCodeRequest TokenRequestType = "authorization-code-request"
	TokenRequestTypeRefreshTokenRequest      TokenRequestType = "refresh-token-request"
)

type Transaction

type Transaction struct {
	Reference *string `json:"reference,omitempty"`
}

func (*Transaction) GetReference

func (o *Transaction) GetReference() *string

Jump to

Keyboard shortcuts

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