components

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: 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"`
}

func (*AccountTestCreationData) GetEmailState

func (o *AccountTestCreationData) GetEmailState() EmailState

func (*AccountTestCreationData) GetHasAddress

func (o *AccountTestCreationData) GetHasAddress() *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 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"`
	// 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 AddressReference

type AddressReference struct {
	Schemas      *Schemas
	SchemasInput *SchemasInput

	Type AddressReferenceType
}

func CreateAddressReferenceExplicit

func CreateAddressReferenceExplicit(explicit SchemasInput) AddressReference

func CreateAddressReferenceID

func CreateAddressReferenceID(id Schemas) AddressReference

func (AddressReference) MarshalJSON

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

func (*AddressReference) UnmarshalJSON

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

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 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 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 *AddressReference `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() *AddressReference

func (*CartShipment) GetAddressExplicit

func (o *CartShipment) GetAddressExplicit() *SchemasInput

func (*CartShipment) GetAddressID

func (o *CartShipment) GetAddressID() *Schemas

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 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 GetAccessTokenRequest

type GetAccessTokenRequest struct {
	// Fetched value using OTP value from the Authorization Modal.
	Code string `form:"name=code"`
	// Merchant publishable key which can be found in the merchant dashboard
	ClientID string `form:"name=client_id"`
	// Your Bolt API Key.
	ClientSecret string `form:"name=client_secret"`
	// The type of OAuth 2.0 grant being utilized.
	//
	// The value will always be `authorization_code` when exchanging an authorization code for an access token.
	//
	GrantType GrantType `form:"name=grant_type"`
	// The scope issued to the merchant when receiving an authorization code.
	// Options include `bolt.account.manage`, `bolt.account.view`, `openid`.
	// You can find more information on these options in our
	// [OAuth scope documentation](https://help.bolt.com/developers/references/bolt-oauth/#scopes).
	//
	Scope []Scope `form:"name=scope"`
	// A randomly generated string issued to the merchant when receiving an authorization code used to prevent CSRF attacks
	State *string `form:"name=state"`
}

func (*GetAccessTokenRequest) GetClientID

func (o *GetAccessTokenRequest) GetClientID() string

func (*GetAccessTokenRequest) GetClientSecret

func (o *GetAccessTokenRequest) GetClientSecret() string

func (*GetAccessTokenRequest) GetCode

func (o *GetAccessTokenRequest) GetCode() string

func (*GetAccessTokenRequest) GetGrantType

func (o *GetAccessTokenRequest) GetGrantType() GrantType

func (*GetAccessTokenRequest) GetScope

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

func (*GetAccessTokenRequest) GetState

func (o *GetAccessTokenRequest) GetState() *string

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"`
	// 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 this will always be bolt.account.view.
	RefreshTokenScope []RefreshTokenScope `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`.'
	//
	Scope []GetAccessTokenResponseScope `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() []RefreshTokenScope

func (*GetAccessTokenResponse) GetScope

func (*GetAccessTokenResponse) GetTokenType

func (o *GetAccessTokenResponse) GetTokenType() *string

type GetAccessTokenResponseScope

type GetAccessTokenResponseScope string
const (
	GetAccessTokenResponseScopeBoltAccountManage GetAccessTokenResponseScope = "bolt.account.manage"
	GetAccessTokenResponseScopeBoltAccountView   GetAccessTokenResponseScope = "bolt.account.view"
	GetAccessTokenResponseScopeOpenid            GetAccessTokenResponseScope = "openid"
)

func (GetAccessTokenResponseScope) ToPointer

func (*GetAccessTokenResponseScope) UnmarshalJSON

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

type GrantType

type GrantType string

GrantType - The type of OAuth 2.0 grant being utilized.

The value will always be `authorization_code` when exchanging an authorization code for an access token.

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) GetPaymentMethodCreditCard

func (o *GuestPaymentInitializeRequest) GetPaymentMethodCreditCard() *PaymentMethodCreditCardInput

func (*GuestPaymentInitializeRequest) GetPaymentMethodPaypal

func (o *GuestPaymentInitializeRequest) GetPaymentMethodPaypal() *PaymentMethodPaypal

func (*GuestPaymentInitializeRequest) GetProfile

type Identifier

type Identifier struct {
	// The type of identifier
	IdentifierType IdentifierType `queryParam:"name=identifier_type"`
	// The value of the identifier. The value must be valid for the specified `identifier_type`
	IdentifierValue string `queryParam:"name=identifier_value"`
}

func (*Identifier) GetIdentifierType

func (o *Identifier) GetIdentifierType() IdentifierType

func (*Identifier) GetIdentifierValue

func (o *Identifier) GetIdentifierValue() string

type IdentifierType

type IdentifierType string

IdentifierType - The type of identifier

const (
	IdentifierTypeEmail       IdentifierType = "email"
	IdentifierTypeEmailSha256 IdentifierType = "email_sha256"
)

func (IdentifierType) ToPointer

func (e IdentifierType) ToPointer() *IdentifierType

func (*IdentifierType) UnmarshalJSON

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

type Network

type Network string

Network - The credit card's network.

const (
	NetworkVisa         Network = "visa"
	NetworkMastercard   Network = "mastercard"
	NetworkAmex         Network = "amex"
	NetworkDiscover     Network = "discover"
	NetworkJcb          Network = "jcb"
	NetworkUnionpay     Network = "unionpay"
	NetworkAlliancedata Network = "alliancedata"
	NetworkCitiplcc     Network = "citiplcc"
)

func (Network) ToPointer

func (e Network) ToPointer() *Network

func (*Network) UnmarshalJSON

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

type PaymentActionRequest

type PaymentActionRequest struct {
	DotTag PaymentActionRequestTag `json:".tag"`
}

func (*PaymentActionRequest) GetDotTag

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) GetPaymentMethodCreditCard

func (o *PaymentInitializeRequest) GetPaymentMethodCreditCard() *PaymentMethodCreditCardInput

func (*PaymentInitializeRequest) GetPaymentMethodID

func (o *PaymentInitializeRequest) GetPaymentMethodID() *PaymentMethodReference

func (*PaymentInitializeRequest) GetPaymentMethodPaypal

func (o *PaymentInitializeRequest) GetPaymentMethodPaypal() *PaymentMethodPaypal

type PaymentMethod

type PaymentMethod struct {
	PaymentMethodCreditCard   *PaymentMethodCreditCard
	PaymentMethodPaypalOutput *PaymentMethodPaypalOutput

	Type PaymentMethodType
}

func CreatePaymentMethodCreditCard

func CreatePaymentMethodCreditCard(creditCard PaymentMethodCreditCard) 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 PaymentMethodCreditCard

type PaymentMethodCreditCard struct {
	DotTag DotTag  `json:".tag"`
	ID     *string `json:"id,omitempty"`
	// The ID of credit card's billing address.
	BillingAddressID *string `json:"billing_address_id,omitempty"`
	// The credit card's network.
	Network Network `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) GetBillingAddressID

func (o *PaymentMethodCreditCard) GetBillingAddressID() *string

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

func (o *PaymentMethodCreditCard) GetNetwork() Network

type PaymentMethodCreditCardInput

type PaymentMethodCreditCardInput struct {
	DotTag         DotTag           `json:".tag"`
	BillingAddress AddressReference `json:"billing_address"`
	// The credit card's network.
	Network Network `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() AddressReference

func (*PaymentMethodCreditCardInput) GetBillingAddressExplicit

func (o *PaymentMethodCreditCardInput) GetBillingAddressExplicit() *SchemasInput

func (*PaymentMethodCreditCardInput) GetBillingAddressID

func (o *PaymentMethodCreditCardInput) GetBillingAddressID() *Schemas

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 (o *PaymentMethodCreditCardInput) GetNetwork() Network

func (*PaymentMethodCreditCardInput) GetToken

func (o *PaymentMethodCreditCardInput) GetToken() string

type PaymentMethodExtended

type PaymentMethodExtended struct {
	PaymentMethodReference       *PaymentMethodReference
	PaymentMethodCreditCardInput *PaymentMethodCreditCardInput
	PaymentMethodPaypal          *PaymentMethodPaypal

	Type PaymentMethodExtendedType
}

func CreatePaymentMethodExtendedCreditCard

func CreatePaymentMethodExtendedCreditCard(creditCard PaymentMethodCreditCardInput) 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"
)

type PaymentMethodInput

type PaymentMethodInput struct {
	PaymentMethodCreditCardInput *PaymentMethodCreditCardInput
	PaymentMethodPaypal          *PaymentMethodPaypal

	Type PaymentMethodInputType
}

func CreatePaymentMethodInputCreditCard

func CreatePaymentMethodInputCreditCard(creditCard PaymentMethodCreditCardInput) 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"
)

type PaymentMethodPaypal

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

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"
)

type PaymentResponse

type PaymentResponse struct {
	PaymentResponseFinalizedSchemas *PaymentResponseFinalizedSchemas
	PaymentResponsePendingSchemas   *PaymentResponsePendingSchemas

	Type PaymentResponseType
}

func CreatePaymentResponsePaymentResponseFinalizedSchemas

func CreatePaymentResponsePaymentResponseFinalizedSchemas(paymentResponseFinalizedSchemas PaymentResponseFinalizedSchemas) PaymentResponse

func CreatePaymentResponsePaymentResponsePendingSchemas

func CreatePaymentResponsePaymentResponsePendingSchemas(paymentResponsePendingSchemas PaymentResponsePendingSchemas) PaymentResponse

func (PaymentResponse) MarshalJSON

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

func (*PaymentResponse) UnmarshalJSON

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

type PaymentResponseFinalizedSchemas

type PaymentResponseFinalizedSchemas struct {
	Status      Status      `json:"status"`
	Transaction Transaction `json:"transaction"`
	ID          *string     `json:"id,omitempty"`
}

func (*PaymentResponseFinalizedSchemas) GetID

func (*PaymentResponseFinalizedSchemas) GetStatus

func (o *PaymentResponseFinalizedSchemas) GetStatus() Status

func (*PaymentResponseFinalizedSchemas) GetTransaction

func (o *PaymentResponseFinalizedSchemas) GetTransaction() Transaction

type PaymentResponsePendingSchemas

type PaymentResponsePendingSchemas struct {
	Status SchemasStatus `json:"status"`
	Action Action        `json:"action"`
	URL    string        `json:"url"`
	ID     *string       `json:"id,omitempty"`
}

func (*PaymentResponsePendingSchemas) GetAction

func (o *PaymentResponsePendingSchemas) GetAction() Action

func (*PaymentResponsePendingSchemas) GetID

func (*PaymentResponsePendingSchemas) GetStatus

func (*PaymentResponsePendingSchemas) GetURL

type PaymentResponseType

type PaymentResponseType string
const (
	PaymentResponseTypePaymentResponseFinalizedSchemas PaymentResponseType = "payment-response-finalized_Schemas"
	PaymentResponseTypePaymentResponsePendingSchemas   PaymentResponseType = "payment-response-pending_Schemas"
)

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 RefreshTokenScope

type RefreshTokenScope string
const (
	RefreshTokenScopeBoltAccountManage RefreshTokenScope = "bolt.account.manage"
	RefreshTokenScopeBoltAccountView   RefreshTokenScope = "bolt.account.view"
	RefreshTokenScopeOpenid            RefreshTokenScope = "openid"
)

func (RefreshTokenScope) ToPointer

func (e RefreshTokenScope) ToPointer() *RefreshTokenScope

func (*RefreshTokenScope) UnmarshalJSON

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

type Schemas

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

func (*Schemas) GetDotTag

func (o *Schemas) GetDotTag() SchemasTag

func (*Schemas) GetID

func (o *Schemas) GetID() string

type SchemasAddressReferenceExplicitTag

type SchemasAddressReferenceExplicitTag string

SchemasAddressReferenceExplicitTag - The type of address reference

const (
	SchemasAddressReferenceExplicitTagExplicit SchemasAddressReferenceExplicitTag = "explicit"
)

func (SchemasAddressReferenceExplicitTag) ToPointer

func (*SchemasAddressReferenceExplicitTag) UnmarshalJSON

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

type SchemasCountryCode

type SchemasCountryCode string

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

const (
	SchemasCountryCodeAf SchemasCountryCode = "AF"
	SchemasCountryCodeAx SchemasCountryCode = "AX"
	SchemasCountryCodeAl SchemasCountryCode = "AL"
	SchemasCountryCodeDz SchemasCountryCode = "DZ"
	SchemasCountryCodeAs SchemasCountryCode = "AS"
	SchemasCountryCodeAd SchemasCountryCode = "AD"
	SchemasCountryCodeAo SchemasCountryCode = "AO"
	SchemasCountryCodeAi SchemasCountryCode = "AI"
	SchemasCountryCodeAq SchemasCountryCode = "AQ"
	SchemasCountryCodeAg SchemasCountryCode = "AG"
	SchemasCountryCodeAr SchemasCountryCode = "AR"
	SchemasCountryCodeAm SchemasCountryCode = "AM"
	SchemasCountryCodeAw SchemasCountryCode = "AW"
	SchemasCountryCodeAu SchemasCountryCode = "AU"
	SchemasCountryCodeAt SchemasCountryCode = "AT"
	SchemasCountryCodeAz SchemasCountryCode = "AZ"
	SchemasCountryCodeBh SchemasCountryCode = "BH"
	SchemasCountryCodeBs SchemasCountryCode = "BS"
	SchemasCountryCodeBd SchemasCountryCode = "BD"
	SchemasCountryCodeBb SchemasCountryCode = "BB"
	SchemasCountryCodeBy SchemasCountryCode = "BY"
	SchemasCountryCodeBe SchemasCountryCode = "BE"
	SchemasCountryCodeBz SchemasCountryCode = "BZ"
	SchemasCountryCodeBj SchemasCountryCode = "BJ"
	SchemasCountryCodeBm SchemasCountryCode = "BM"
	SchemasCountryCodeBt SchemasCountryCode = "BT"
	SchemasCountryCodeBo SchemasCountryCode = "BO"
	SchemasCountryCodeBq SchemasCountryCode = "BQ"
	SchemasCountryCodeBa SchemasCountryCode = "BA"
	SchemasCountryCodeBw SchemasCountryCode = "BW"
	SchemasCountryCodeBv SchemasCountryCode = "BV"
	SchemasCountryCodeBr SchemasCountryCode = "BR"
	SchemasCountryCodeIo SchemasCountryCode = "IO"
	SchemasCountryCodeBn SchemasCountryCode = "BN"
	SchemasCountryCodeBg SchemasCountryCode = "BG"
	SchemasCountryCodeBf SchemasCountryCode = "BF"
	SchemasCountryCodeBi SchemasCountryCode = "BI"
	SchemasCountryCodeKh SchemasCountryCode = "KH"
	SchemasCountryCodeCm SchemasCountryCode = "CM"
	SchemasCountryCodeCa SchemasCountryCode = "CA"
	SchemasCountryCodeCv SchemasCountryCode = "CV"
	SchemasCountryCodeKy SchemasCountryCode = "KY"
	SchemasCountryCodeCf SchemasCountryCode = "CF"
	SchemasCountryCodeTd SchemasCountryCode = "TD"
	SchemasCountryCodeCl SchemasCountryCode = "CL"
	SchemasCountryCodeCn SchemasCountryCode = "CN"
	SchemasCountryCodeCx SchemasCountryCode = "CX"
	SchemasCountryCodeCc SchemasCountryCode = "CC"
	SchemasCountryCodeCo SchemasCountryCode = "CO"
	SchemasCountryCodeKm SchemasCountryCode = "KM"
	SchemasCountryCodeCg SchemasCountryCode = "CG"
	SchemasCountryCodeCd SchemasCountryCode = "CD"
	SchemasCountryCodeCk SchemasCountryCode = "CK"
	SchemasCountryCodeCr SchemasCountryCode = "CR"
	SchemasCountryCodeCi SchemasCountryCode = "CI"
	SchemasCountryCodeHr SchemasCountryCode = "HR"
	SchemasCountryCodeCu SchemasCountryCode = "CU"
	SchemasCountryCodeCw SchemasCountryCode = "CW"
	SchemasCountryCodeCy SchemasCountryCode = "CY"
	SchemasCountryCodeCz SchemasCountryCode = "CZ"
	SchemasCountryCodeDk SchemasCountryCode = "DK"
	SchemasCountryCodeDj SchemasCountryCode = "DJ"
	SchemasCountryCodeDm SchemasCountryCode = "DM"
	SchemasCountryCodeDo SchemasCountryCode = "DO"
	SchemasCountryCodeEc SchemasCountryCode = "EC"
	SchemasCountryCodeEg SchemasCountryCode = "EG"
	SchemasCountryCodeSv SchemasCountryCode = "SV"
	SchemasCountryCodeGq SchemasCountryCode = "GQ"
	SchemasCountryCodeEr SchemasCountryCode = "ER"
	SchemasCountryCodeEe SchemasCountryCode = "EE"
	SchemasCountryCodeEt SchemasCountryCode = "ET"
	SchemasCountryCodeFk SchemasCountryCode = "FK"
	SchemasCountryCodeFo SchemasCountryCode = "FO"
	SchemasCountryCodeFj SchemasCountryCode = "FJ"
	SchemasCountryCodeFi SchemasCountryCode = "FI"
	SchemasCountryCodeFr SchemasCountryCode = "FR"
	SchemasCountryCodeGf SchemasCountryCode = "GF"
	SchemasCountryCodePf SchemasCountryCode = "PF"
	SchemasCountryCodeTf SchemasCountryCode = "TF"
	SchemasCountryCodeGa SchemasCountryCode = "GA"
	SchemasCountryCodeGm SchemasCountryCode = "GM"
	SchemasCountryCodeGe SchemasCountryCode = "GE"
	SchemasCountryCodeDe SchemasCountryCode = "DE"
	SchemasCountryCodeGh SchemasCountryCode = "GH"
	SchemasCountryCodeGi SchemasCountryCode = "GI"
	SchemasCountryCodeGr SchemasCountryCode = "GR"
	SchemasCountryCodeGl SchemasCountryCode = "GL"
	SchemasCountryCodeGd SchemasCountryCode = "GD"
	SchemasCountryCodeGp SchemasCountryCode = "GP"
	SchemasCountryCodeGu SchemasCountryCode = "GU"
	SchemasCountryCodeGt SchemasCountryCode = "GT"
	SchemasCountryCodeGg SchemasCountryCode = "GG"
	SchemasCountryCodeGn SchemasCountryCode = "GN"
	SchemasCountryCodeGw SchemasCountryCode = "GW"
	SchemasCountryCodeGy SchemasCountryCode = "GY"
	SchemasCountryCodeHt SchemasCountryCode = "HT"
	SchemasCountryCodeHm SchemasCountryCode = "HM"
	SchemasCountryCodeVa SchemasCountryCode = "VA"
	SchemasCountryCodeHn SchemasCountryCode = "HN"
	SchemasCountryCodeHk SchemasCountryCode = "HK"
	SchemasCountryCodeHu SchemasCountryCode = "HU"
	SchemasCountryCodeIs SchemasCountryCode = "IS"
	SchemasCountryCodeIn SchemasCountryCode = "IN"
	SchemasCountryCodeID SchemasCountryCode = "ID"
	SchemasCountryCodeIr SchemasCountryCode = "IR"
	SchemasCountryCodeIq SchemasCountryCode = "IQ"
	SchemasCountryCodeIe SchemasCountryCode = "IE"
	SchemasCountryCodeIm SchemasCountryCode = "IM"
	SchemasCountryCodeIl SchemasCountryCode = "IL"
	SchemasCountryCodeIt SchemasCountryCode = "IT"
	SchemasCountryCodeJm SchemasCountryCode = "JM"
	SchemasCountryCodeJp SchemasCountryCode = "JP"
	SchemasCountryCodeJe SchemasCountryCode = "JE"
	SchemasCountryCodeJo SchemasCountryCode = "JO"
	SchemasCountryCodeKz SchemasCountryCode = "KZ"
	SchemasCountryCodeKe SchemasCountryCode = "KE"
	SchemasCountryCodeKi SchemasCountryCode = "KI"
	SchemasCountryCodeKp SchemasCountryCode = "KP"
	SchemasCountryCodeKr SchemasCountryCode = "KR"
	SchemasCountryCodeKw SchemasCountryCode = "KW"
	SchemasCountryCodeKg SchemasCountryCode = "KG"
	SchemasCountryCodeLa SchemasCountryCode = "LA"
	SchemasCountryCodeLv SchemasCountryCode = "LV"
	SchemasCountryCodeLb SchemasCountryCode = "LB"
	SchemasCountryCodeLs SchemasCountryCode = "LS"
	SchemasCountryCodeLr SchemasCountryCode = "LR"
	SchemasCountryCodeLy SchemasCountryCode = "LY"
	SchemasCountryCodeLi SchemasCountryCode = "LI"
	SchemasCountryCodeLt SchemasCountryCode = "LT"
	SchemasCountryCodeLu SchemasCountryCode = "LU"
	SchemasCountryCodeMo SchemasCountryCode = "MO"
	SchemasCountryCodeMk SchemasCountryCode = "MK"
	SchemasCountryCodeMg SchemasCountryCode = "MG"
	SchemasCountryCodeMw SchemasCountryCode = "MW"
	SchemasCountryCodeMy SchemasCountryCode = "MY"
	SchemasCountryCodeMv SchemasCountryCode = "MV"
	SchemasCountryCodeMl SchemasCountryCode = "ML"
	SchemasCountryCodeMt SchemasCountryCode = "MT"
	SchemasCountryCodeMh SchemasCountryCode = "MH"
	SchemasCountryCodeMq SchemasCountryCode = "MQ"
	SchemasCountryCodeMr SchemasCountryCode = "MR"
	SchemasCountryCodeMu SchemasCountryCode = "MU"
	SchemasCountryCodeYt SchemasCountryCode = "YT"
	SchemasCountryCodeMx SchemasCountryCode = "MX"
	SchemasCountryCodeFm SchemasCountryCode = "FM"
	SchemasCountryCodeMd SchemasCountryCode = "MD"
	SchemasCountryCodeMc SchemasCountryCode = "MC"
	SchemasCountryCodeMn SchemasCountryCode = "MN"
	SchemasCountryCodeMe SchemasCountryCode = "ME"
	SchemasCountryCodeMs SchemasCountryCode = "MS"
	SchemasCountryCodeMa SchemasCountryCode = "MA"
	SchemasCountryCodeMz SchemasCountryCode = "MZ"
	SchemasCountryCodeMm SchemasCountryCode = "MM"
	SchemasCountryCodeNa SchemasCountryCode = "NA"
	SchemasCountryCodeNr SchemasCountryCode = "NR"
	SchemasCountryCodeNp SchemasCountryCode = "NP"
	SchemasCountryCodeNl SchemasCountryCode = "NL"
	SchemasCountryCodeNc SchemasCountryCode = "NC"
	SchemasCountryCodeNz SchemasCountryCode = "NZ"
	SchemasCountryCodeNi SchemasCountryCode = "NI"
	SchemasCountryCodeNe SchemasCountryCode = "NE"
	SchemasCountryCodeNg SchemasCountryCode = "NG"
	SchemasCountryCodeNu SchemasCountryCode = "NU"
	SchemasCountryCodeNf SchemasCountryCode = "NF"
	SchemasCountryCodeMp SchemasCountryCode = "MP"
	SchemasCountryCodeNo SchemasCountryCode = "NO"
	SchemasCountryCodeOm SchemasCountryCode = "OM"
	SchemasCountryCodePk SchemasCountryCode = "PK"
	SchemasCountryCodePw SchemasCountryCode = "PW"
	SchemasCountryCodePs SchemasCountryCode = "PS"
	SchemasCountryCodePa SchemasCountryCode = "PA"
	SchemasCountryCodePg SchemasCountryCode = "PG"
	SchemasCountryCodePy SchemasCountryCode = "PY"
	SchemasCountryCodePe SchemasCountryCode = "PE"
	SchemasCountryCodePh SchemasCountryCode = "PH"
	SchemasCountryCodePn SchemasCountryCode = "PN"
	SchemasCountryCodePl SchemasCountryCode = "PL"
	SchemasCountryCodePt SchemasCountryCode = "PT"
	SchemasCountryCodePr SchemasCountryCode = "PR"
	SchemasCountryCodeQa SchemasCountryCode = "QA"
	SchemasCountryCodeRe SchemasCountryCode = "RE"
	SchemasCountryCodeRo SchemasCountryCode = "RO"
	SchemasCountryCodeRu SchemasCountryCode = "RU"
	SchemasCountryCodeRw SchemasCountryCode = "RW"
	SchemasCountryCodeBl SchemasCountryCode = "BL"
	SchemasCountryCodeSh SchemasCountryCode = "SH"
	SchemasCountryCodeKn SchemasCountryCode = "KN"
	SchemasCountryCodeLc SchemasCountryCode = "LC"
	SchemasCountryCodeMf SchemasCountryCode = "MF"
	SchemasCountryCodePm SchemasCountryCode = "PM"
	SchemasCountryCodeVc SchemasCountryCode = "VC"
	SchemasCountryCodeWs SchemasCountryCode = "WS"
	SchemasCountryCodeSm SchemasCountryCode = "SM"
	SchemasCountryCodeSt SchemasCountryCode = "ST"
	SchemasCountryCodeSa SchemasCountryCode = "SA"
	SchemasCountryCodeSn SchemasCountryCode = "SN"
	SchemasCountryCodeRs SchemasCountryCode = "RS"
	SchemasCountryCodeSc SchemasCountryCode = "SC"
	SchemasCountryCodeSl SchemasCountryCode = "SL"
	SchemasCountryCodeSg SchemasCountryCode = "SG"
	SchemasCountryCodeSx SchemasCountryCode = "SX"
	SchemasCountryCodeSk SchemasCountryCode = "SK"
	SchemasCountryCodeSi SchemasCountryCode = "SI"
	SchemasCountryCodeSb SchemasCountryCode = "SB"
	SchemasCountryCodeSo SchemasCountryCode = "SO"
	SchemasCountryCodeZa SchemasCountryCode = "ZA"
	SchemasCountryCodeGs SchemasCountryCode = "GS"
	SchemasCountryCodeSs SchemasCountryCode = "SS"
	SchemasCountryCodeEs SchemasCountryCode = "ES"
	SchemasCountryCodeLk SchemasCountryCode = "LK"
	SchemasCountryCodeSd SchemasCountryCode = "SD"
	SchemasCountryCodeSr SchemasCountryCode = "SR"
	SchemasCountryCodeSj SchemasCountryCode = "SJ"
	SchemasCountryCodeSz SchemasCountryCode = "SZ"
	SchemasCountryCodeSe SchemasCountryCode = "SE"
	SchemasCountryCodeCh SchemasCountryCode = "CH"
	SchemasCountryCodeSy SchemasCountryCode = "SY"
	SchemasCountryCodeTw SchemasCountryCode = "TW"
	SchemasCountryCodeTj SchemasCountryCode = "TJ"
	SchemasCountryCodeTz SchemasCountryCode = "TZ"
	SchemasCountryCodeTh SchemasCountryCode = "TH"
	SchemasCountryCodeTl SchemasCountryCode = "TL"
	SchemasCountryCodeTg SchemasCountryCode = "TG"
	SchemasCountryCodeTk SchemasCountryCode = "TK"
	SchemasCountryCodeTo SchemasCountryCode = "TO"
	SchemasCountryCodeTt SchemasCountryCode = "TT"
	SchemasCountryCodeTn SchemasCountryCode = "TN"
	SchemasCountryCodeTr SchemasCountryCode = "TR"
	SchemasCountryCodeTm SchemasCountryCode = "TM"
	SchemasCountryCodeTc SchemasCountryCode = "TC"
	SchemasCountryCodeTv SchemasCountryCode = "TV"
	SchemasCountryCodeUg SchemasCountryCode = "UG"
	SchemasCountryCodeUa SchemasCountryCode = "UA"
	SchemasCountryCodeAe SchemasCountryCode = "AE"
	SchemasCountryCodeGb SchemasCountryCode = "GB"
	SchemasCountryCodeUs SchemasCountryCode = "US"
	SchemasCountryCodeUm SchemasCountryCode = "UM"
	SchemasCountryCodeUy SchemasCountryCode = "UY"
	SchemasCountryCodeUz SchemasCountryCode = "UZ"
	SchemasCountryCodeVu SchemasCountryCode = "VU"
	SchemasCountryCodeVe SchemasCountryCode = "VE"
	SchemasCountryCodeVn SchemasCountryCode = "VN"
	SchemasCountryCodeVg SchemasCountryCode = "VG"
	SchemasCountryCodeVi SchemasCountryCode = "VI"
	SchemasCountryCodeWf SchemasCountryCode = "WF"
	SchemasCountryCodeEh SchemasCountryCode = "EH"
	SchemasCountryCodeYe SchemasCountryCode = "YE"
	SchemasCountryCodeZm SchemasCountryCode = "ZM"
	SchemasCountryCodeZw SchemasCountryCode = "ZW"
)

func (SchemasCountryCode) ToPointer

func (e SchemasCountryCode) ToPointer() *SchemasCountryCode

func (*SchemasCountryCode) UnmarshalJSON

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

type SchemasInput

type SchemasInput struct {
	// The type of address reference
	DotTag SchemasAddressReferenceExplicitTag `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 SchemasCountryCode `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"`
}

SchemasInput - A physical address.

func (*SchemasInput) GetCompany

func (o *SchemasInput) GetCompany() *string

func (*SchemasInput) GetCountryCode

func (o *SchemasInput) GetCountryCode() SchemasCountryCode

func (*SchemasInput) GetDotTag

func (*SchemasInput) GetEmail

func (o *SchemasInput) GetEmail() *string

func (*SchemasInput) GetFirstName

func (o *SchemasInput) GetFirstName() string

func (*SchemasInput) GetLastName

func (o *SchemasInput) GetLastName() string

func (*SchemasInput) GetLocality

func (o *SchemasInput) GetLocality() string

func (*SchemasInput) GetPhone

func (o *SchemasInput) GetPhone() *string

func (*SchemasInput) GetPostalCode

func (o *SchemasInput) GetPostalCode() string

func (*SchemasInput) GetRegion

func (o *SchemasInput) GetRegion() *string

func (*SchemasInput) GetStreetAddress1

func (o *SchemasInput) GetStreetAddress1() string

func (*SchemasInput) GetStreetAddress2

func (o *SchemasInput) GetStreetAddress2() *string

type SchemasStatus

type SchemasStatus string
const (
	SchemasStatusAwaitingUserConfirmation SchemasStatus = "awaiting_user_confirmation"
)

func (SchemasStatus) ToPointer

func (e SchemasStatus) ToPointer() *SchemasStatus

func (*SchemasStatus) UnmarshalJSON

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

type SchemasTag

type SchemasTag string

SchemasTag - The type of address reference

const (
	SchemasTagID SchemasTag = "id"
)

func (SchemasTag) ToPointer

func (e SchemasTag) ToPointer() *SchemasTag

func (*SchemasTag) UnmarshalJSON

func (e *SchemasTag) 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 TestCreditCardNetwork `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() TestCreditCardNetwork

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 TestCreditCardNetwork

type TestCreditCardNetwork string

TestCreditCardNetwork - The credit card's network.

const (
	TestCreditCardNetworkVisa         TestCreditCardNetwork = "visa"
	TestCreditCardNetworkMastercard   TestCreditCardNetwork = "mastercard"
	TestCreditCardNetworkAmex         TestCreditCardNetwork = "amex"
	TestCreditCardNetworkDiscover     TestCreditCardNetwork = "discover"
	TestCreditCardNetworkJcb          TestCreditCardNetwork = "jcb"
	TestCreditCardNetworkUnionpay     TestCreditCardNetwork = "unionpay"
	TestCreditCardNetworkAlliancedata TestCreditCardNetwork = "alliancedata"
	TestCreditCardNetworkCitiplcc     TestCreditCardNetwork = "citiplcc"
)

func (TestCreditCardNetwork) ToPointer

func (*TestCreditCardNetwork) UnmarshalJSON

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

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