invoice

package
v4.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AllowedBankCodeEnumValues = []BankCode{
	"BCA",
	"BNI",
	"BRI",
	"MANDIRI",
	"PERMATA",
	"BSI",
	"BJB",
	"SAHABAT_SAMPOERNA",
	"CIMB",
	"BNC",
	"HANA",
	"MUAMALAT",
	"UNKNOWN_ENUM_VALUE",
}

All allowed values of BankCode enum

View Source
var AllowedDirectDebitTypeEnumValues = []DirectDebitType{
	"BA_BRI",
	"DC_BRI",
	"DD_BRI",
	"DD_MANDIRI",
	"BA_BPI",
	"DC_BPI",
	"DD_BPI",
	"BA_UBP",
	"DC_UBP",
	"DD_UBP",
	"BCA_KLIKPAY",
	"BA_BCA_KLIKPAY",
	"DC_BCA_KLIKPAY",
	"DD_BCA_KLIKPAY",
	"DD_BDO_EPAY",
	"DD_RCBC",
	"DD_CHINABANK",
	"BA_CHINABANK",
	"DC_CHINABANK",
	"DD_PUBLIC_FPX",
	"DD_AMBANK_FPX",
	"DD_KFH_FPX",
	"DD_AGRO_FPX",
	"DD_AFFIN_FPX",
	"DD_ALLIANCE_FPX",
	"DD_MUAMALAT_FPX",
	"DD_HLB_FPX",
	"DD_ISLAM_FPX",
	"DD_RAKYAT_FPX",
	"DD_CIMB_FPX",
	"DD_UOB_FPX",
	"DD_BOC_FPX",
	"DD_BSN_FPX",
	"DD_OCBC_FPX",
	"DD_HSBC_FPX",
	"DD_SCH_FPX",
	"DD_MAYB2U_FPX",
	"DD_RHB_FPX",
	"DD_UOB_FPX_BUSINESS",
	"DD_AGRO_FPX_BUSINESS",
	"DD_ALLIANCE_FPX_BUSINESS",
	"DD_AMBANK_FPX_BUSINESS",
	"DD_ISLAM_FPX_BUSINESS",
	"DD_MUAMALAT_FPX_BUSINESS",
	"DD_HLB_FPX_BUSINESS",
	"DD_HSBC_FPX_BUSINESS",
	"DD_RAKYAT_FPX_BUSINESS",
	"DD_KFH_FPX_BUSINESS",
	"DD_OCBC_FPX_BUSINESS",
	"DD_PUBLIC_FPX_BUSINESS",
	"DD_RHB_FPX_BUSINESS",
	"DD_SCH_FPX_BUSINESS",
	"DD_CITIBANK_FPX_BUSINESS",
	"DD_BNP_FPX_BUSINESS",
	"DD_DEUTSCHE_FPX_BUSINESS",
	"DD_MAYB2E_FPX_BUSINESS",
	"DD_CIMB_FPX_BUSINESS",
	"DD_AFFIN_FPX_BUSINESS",
	"UNKNOWN_ENUM_VALUE",
}

All allowed values of DirectDebitType enum

View Source
var AllowedEwalletTypeEnumValues = []EwalletType{
	"OVO",
	"DANA",
	"LINKAJA",
	"PAYMAYA",
	"SHOPEEPAY",
	"GCASH",
	"GRABPAY",
	"ASTRAPAY",
	"NEXCASH",
	"JENIUSPAY",
	"MOMO",
	"ZALOPAY",
	"VIETTELPAY",
	"VNPTWALLET",
	"APPOTA",
	"LINEPAY",
	"TRUEMONEY",
	"WECHATPAY",
	"TOUCHNGO",
	"UNKNOWN_ENUM_VALUE",
}

All allowed values of EwalletType enum

View Source
var AllowedInvoiceClientTypeEnumValues = []InvoiceClientType{
	"DASHBOARD",
	"API_GATEWAY",
	"INTEGRATION",
	"ON_DEMAND",
	"RECURRING",
	"MOBILE",
	"UNKNOWN_ENUM_VALUE",
}

All allowed values of InvoiceClientType enum

View Source
var AllowedInvoiceCurrencyEnumValues = []InvoiceCurrency{
	"IDR",
	"USD",
	"THB",
	"VND",
	"PHP",
	"UNKNOWN_ENUM_VALUE",
}

All allowed values of InvoiceCurrency enum

View Source
var AllowedInvoicePaymentMethodEnumValues = []InvoicePaymentMethod{
	"POOL",
	"CALLBACK_VIRTUAL_ACCOUNT",
	"CREDIT_CARD",
	"RETAIL_OUTLET",
	"QR_CODE",
	"QRIS",
	"EWALLET",
	"DIRECT_DEBIT",
	"BANK_TRANSFER",
	"PAYLATER",
	"CRYPTOCURRENCY",
	"UNKNOWN_ENUM_VALUE",
}

All allowed values of InvoicePaymentMethod enum

View Source
var AllowedInvoiceStatusEnumValues = []InvoiceStatus{
	"PENDING",
	"PAID",
	"SETTLED",
	"EXPIRED",
	"UNKNOWN_ENUM_VALUE",
}

All allowed values of InvoiceStatus enum

View Source
var AllowedNotificationChannelEnumValues = []NotificationChannel{
	"email",
	"sms",
	"whatsapp",
	"viber",
	"UNKNOWN_ENUM_VALUE",
}

All allowed values of NotificationChannel enum

View Source
var AllowedPaylaterTypeEnumValues = []PaylaterType{
	"KREDIVO",
	"AKULAKU",
	"UANGME",
	"BILLEASE",
	"CASHALO",
	"ATOME",
	"UNKNOWN_ENUM_VALUE",
}

All allowed values of PaylaterType enum

View Source
var AllowedQrCodeTypeEnumValues = []QrCodeType{
	"QRIS",
	"PROMPTPAY",
	"UNKNOWN_ENUM_VALUE",
}

All allowed values of QrCodeType enum

View Source
var AllowedRetailOutletNameEnumValues = []RetailOutletName{
	"ALFAMART",
	"INDOMARET",
	"7ELEVEN",
	"CEBUANA",
	"DP_ECPAY_LOAN",
	"DP_MLHUILLIER",
	"DP_PALAWAN",
	"DP_ECPAY_SCHOOL",
	"LBC",
	"UNKNOWN_ENUM_VALUE",
}

All allowed values of RetailOutletName enum

Functions

This section is empty.

Types

type AddressObject

type AddressObject struct {
	// The country where the address is located.
	Country NullableString `json:"country,omitempty"`
	// The first line of the street address.
	StreetLine1 NullableString `json:"street_line1,omitempty"`
	// The second line of the street address.
	StreetLine2 NullableString `json:"street_line2,omitempty"`
	// The city or locality within the address.
	City NullableString `json:"city,omitempty"`
	// The province or region within the country.
	Province NullableString `json:"province,omitempty"`
	// The state or administrative division within the country.
	State NullableString `json:"state,omitempty"`
	// The postal code or ZIP code for the address.
	PostalCode NullableString `json:"postal_code,omitempty"`
}

AddressObject An object representing an address with various properties.

func NewAddressObject

func NewAddressObject() *AddressObject

NewAddressObject instantiates a new AddressObject object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAddressObjectWithDefaults

func NewAddressObjectWithDefaults() *AddressObject

NewAddressObjectWithDefaults instantiates a new AddressObject object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AddressObject) GetCity

func (o *AddressObject) GetCity() string

GetCity returns the City field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AddressObject) GetCityOk

func (o *AddressObject) GetCityOk() (*string, bool)

GetCityOk returns a tuple with the City field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AddressObject) GetCountry

func (o *AddressObject) GetCountry() string

GetCountry returns the Country field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AddressObject) GetCountryOk

func (o *AddressObject) GetCountryOk() (*string, bool)

GetCountryOk returns a tuple with the Country field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AddressObject) GetPostalCode

func (o *AddressObject) GetPostalCode() string

GetPostalCode returns the PostalCode field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AddressObject) GetPostalCodeOk

func (o *AddressObject) GetPostalCodeOk() (*string, bool)

GetPostalCodeOk returns a tuple with the PostalCode field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AddressObject) GetProvince

func (o *AddressObject) GetProvince() string

GetProvince returns the Province field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AddressObject) GetProvinceOk

func (o *AddressObject) GetProvinceOk() (*string, bool)

GetProvinceOk returns a tuple with the Province field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AddressObject) GetState

func (o *AddressObject) GetState() string

GetState returns the State field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AddressObject) GetStateOk

func (o *AddressObject) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AddressObject) GetStreetLine1

func (o *AddressObject) GetStreetLine1() string

GetStreetLine1 returns the StreetLine1 field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AddressObject) GetStreetLine1Ok

func (o *AddressObject) GetStreetLine1Ok() (*string, bool)

GetStreetLine1Ok returns a tuple with the StreetLine1 field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AddressObject) GetStreetLine2

func (o *AddressObject) GetStreetLine2() string

GetStreetLine2 returns the StreetLine2 field value if set, zero value otherwise (both if not set or set to explicit null).

func (*AddressObject) GetStreetLine2Ok

func (o *AddressObject) GetStreetLine2Ok() (*string, bool)

GetStreetLine2Ok returns a tuple with the StreetLine2 field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*AddressObject) HasCity

func (o *AddressObject) HasCity() bool

HasCity returns a boolean if a field has been set.

func (*AddressObject) HasCountry

func (o *AddressObject) HasCountry() bool

HasCountry returns a boolean if a field has been set.

func (*AddressObject) HasPostalCode

func (o *AddressObject) HasPostalCode() bool

HasPostalCode returns a boolean if a field has been set.

func (*AddressObject) HasProvince

func (o *AddressObject) HasProvince() bool

HasProvince returns a boolean if a field has been set.

func (*AddressObject) HasState

func (o *AddressObject) HasState() bool

HasState returns a boolean if a field has been set.

func (*AddressObject) HasStreetLine1

func (o *AddressObject) HasStreetLine1() bool

HasStreetLine1 returns a boolean if a field has been set.

func (*AddressObject) HasStreetLine2

func (o *AddressObject) HasStreetLine2() bool

HasStreetLine2 returns a boolean if a field has been set.

func (AddressObject) MarshalJSON

func (o AddressObject) MarshalJSON() ([]byte, error)

func (*AddressObject) SetCity

func (o *AddressObject) SetCity(v string)

SetCity gets a reference to the given NullableString and assigns it to the City field.

func (*AddressObject) SetCityNil

func (o *AddressObject) SetCityNil()

SetCityNil sets the value for City to be an explicit nil

func (*AddressObject) SetCountry

func (o *AddressObject) SetCountry(v string)

SetCountry gets a reference to the given NullableString and assigns it to the Country field.

func (*AddressObject) SetCountryNil

func (o *AddressObject) SetCountryNil()

SetCountryNil sets the value for Country to be an explicit nil

func (*AddressObject) SetPostalCode

func (o *AddressObject) SetPostalCode(v string)

SetPostalCode gets a reference to the given NullableString and assigns it to the PostalCode field.

func (*AddressObject) SetPostalCodeNil

func (o *AddressObject) SetPostalCodeNil()

SetPostalCodeNil sets the value for PostalCode to be an explicit nil

func (*AddressObject) SetProvince

func (o *AddressObject) SetProvince(v string)

SetProvince gets a reference to the given NullableString and assigns it to the Province field.

func (*AddressObject) SetProvinceNil

func (o *AddressObject) SetProvinceNil()

SetProvinceNil sets the value for Province to be an explicit nil

func (*AddressObject) SetState

func (o *AddressObject) SetState(v string)

SetState gets a reference to the given NullableString and assigns it to the State field.

func (*AddressObject) SetStateNil

func (o *AddressObject) SetStateNil()

SetStateNil sets the value for State to be an explicit nil

func (*AddressObject) SetStreetLine1

func (o *AddressObject) SetStreetLine1(v string)

SetStreetLine1 gets a reference to the given NullableString and assigns it to the StreetLine1 field.

func (*AddressObject) SetStreetLine1Nil

func (o *AddressObject) SetStreetLine1Nil()

SetStreetLine1Nil sets the value for StreetLine1 to be an explicit nil

func (*AddressObject) SetStreetLine2

func (o *AddressObject) SetStreetLine2(v string)

SetStreetLine2 gets a reference to the given NullableString and assigns it to the StreetLine2 field.

func (*AddressObject) SetStreetLine2Nil

func (o *AddressObject) SetStreetLine2Nil()

SetStreetLine2Nil sets the value for StreetLine2 to be an explicit nil

func (AddressObject) ToMap

func (o AddressObject) ToMap() (map[string]interface{}, error)

func (*AddressObject) UnsetCity

func (o *AddressObject) UnsetCity()

UnsetCity ensures that no value is present for City, not even an explicit nil

func (*AddressObject) UnsetCountry

func (o *AddressObject) UnsetCountry()

UnsetCountry ensures that no value is present for Country, not even an explicit nil

func (*AddressObject) UnsetPostalCode

func (o *AddressObject) UnsetPostalCode()

UnsetPostalCode ensures that no value is present for PostalCode, not even an explicit nil

func (*AddressObject) UnsetProvince

func (o *AddressObject) UnsetProvince()

UnsetProvince ensures that no value is present for Province, not even an explicit nil

func (*AddressObject) UnsetState

func (o *AddressObject) UnsetState()

UnsetState ensures that no value is present for State, not even an explicit nil

func (*AddressObject) UnsetStreetLine1

func (o *AddressObject) UnsetStreetLine1()

UnsetStreetLine1 ensures that no value is present for StreetLine1, not even an explicit nil

func (*AddressObject) UnsetStreetLine2

func (o *AddressObject) UnsetStreetLine2()

UnsetStreetLine2 ensures that no value is present for StreetLine2, not even an explicit nil

type AlternativeDisplayItem

type AlternativeDisplayItem struct {
	// Represent type of alternative display.
	Type *string `json:"type,omitempty"`
	// Represent value of alternative display value.
	Value *string `json:"value,omitempty"`
}

AlternativeDisplayItem An object representing alternative display of a VA.

func NewAlternativeDisplayItem

func NewAlternativeDisplayItem() *AlternativeDisplayItem

NewAlternativeDisplayItem instantiates a new AlternativeDisplayItem object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAlternativeDisplayItemWithDefaults

func NewAlternativeDisplayItemWithDefaults() *AlternativeDisplayItem

NewAlternativeDisplayItemWithDefaults instantiates a new AlternativeDisplayItem object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AlternativeDisplayItem) GetType

func (o *AlternativeDisplayItem) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*AlternativeDisplayItem) GetTypeOk

func (o *AlternativeDisplayItem) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlternativeDisplayItem) GetValue

func (o *AlternativeDisplayItem) GetValue() string

GetValue returns the Value field value if set, zero value otherwise.

func (*AlternativeDisplayItem) GetValueOk

func (o *AlternativeDisplayItem) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AlternativeDisplayItem) HasType

func (o *AlternativeDisplayItem) HasType() bool

HasType returns a boolean if a field has been set.

func (*AlternativeDisplayItem) HasValue

func (o *AlternativeDisplayItem) HasValue() bool

HasValue returns a boolean if a field has been set.

func (AlternativeDisplayItem) MarshalJSON

func (o AlternativeDisplayItem) MarshalJSON() ([]byte, error)

func (*AlternativeDisplayItem) SetType

func (o *AlternativeDisplayItem) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (*AlternativeDisplayItem) SetValue

func (o *AlternativeDisplayItem) SetValue(v string)

SetValue gets a reference to the given string and assigns it to the Value field.

func (AlternativeDisplayItem) ToMap

func (o AlternativeDisplayItem) ToMap() (map[string]interface{}, error)

type ApiCreateInvoiceRequest

type ApiCreateInvoiceRequest struct {
	ApiService InvoiceApi
	// contains filtered or unexported fields
}

func (ApiCreateInvoiceRequest) CreateInvoiceRequest

func (r ApiCreateInvoiceRequest) CreateInvoiceRequest(createInvoiceRequest CreateInvoiceRequest) ApiCreateInvoiceRequest

func (ApiCreateInvoiceRequest) Execute

func (ApiCreateInvoiceRequest) ForUserId

Business ID of the sub-account merchant (XP feature)

type ApiExpireInvoiceRequest

type ApiExpireInvoiceRequest struct {
	ApiService InvoiceApi
	// contains filtered or unexported fields
}

func (ApiExpireInvoiceRequest) Execute

func (ApiExpireInvoiceRequest) ForUserId

Business ID of the sub-account merchant (XP feature)

type ApiGetInvoiceByIdRequest

type ApiGetInvoiceByIdRequest struct {
	ApiService InvoiceApi
	// contains filtered or unexported fields
}

func (ApiGetInvoiceByIdRequest) Execute

func (ApiGetInvoiceByIdRequest) ForUserId

Business ID of the sub-account merchant (XP feature)

type ApiGetInvoicesRequest

type ApiGetInvoicesRequest struct {
	ApiService InvoiceApi
	// contains filtered or unexported fields
}

func (ApiGetInvoicesRequest) ClientTypes

func (r ApiGetInvoicesRequest) ClientTypes(clientTypes []InvoiceClientType) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) CreatedAfter

func (r ApiGetInvoicesRequest) CreatedAfter(createdAfter time.Time) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) CreatedBefore

func (r ApiGetInvoicesRequest) CreatedBefore(createdBefore time.Time) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) Execute

func (ApiGetInvoicesRequest) ExpiredAfter

func (r ApiGetInvoicesRequest) ExpiredAfter(expiredAfter time.Time) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) ExpiredBefore

func (r ApiGetInvoicesRequest) ExpiredBefore(expiredBefore time.Time) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) ExternalId

func (r ApiGetInvoicesRequest) ExternalId(externalId string) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) ForUserId

func (r ApiGetInvoicesRequest) ForUserId(forUserId string) ApiGetInvoicesRequest

Business ID of the sub-account merchant (XP feature)

func (ApiGetInvoicesRequest) LastInvoice

func (r ApiGetInvoicesRequest) LastInvoice(lastInvoice string) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) Limit

func (r ApiGetInvoicesRequest) OnDemandLink(onDemandLink string) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) PaidAfter

func (r ApiGetInvoicesRequest) PaidAfter(paidAfter time.Time) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) PaidBefore

func (r ApiGetInvoicesRequest) PaidBefore(paidBefore time.Time) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) PaymentChannels

func (r ApiGetInvoicesRequest) PaymentChannels(paymentChannels []string) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) RecurringPaymentId

func (r ApiGetInvoicesRequest) RecurringPaymentId(recurringPaymentId string) ApiGetInvoicesRequest

func (ApiGetInvoicesRequest) Statuses

type BadRequestError

type BadRequestError struct {
	// The error code indicating the type of error that occurred.
	ErrorCode string `json:"error_code"`
	// A human-readable error message that provides additional information about the error.
	Message string `json:"message"`
}

BadRequestError Response definition for a 400 Bad Request error when creating an invoice.

func NewBadRequestError

func NewBadRequestError(errorCode string, message string) *BadRequestError

NewBadRequestError instantiates a new BadRequestError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBadRequestErrorWithDefaults

func NewBadRequestErrorWithDefaults() *BadRequestError

NewBadRequestErrorWithDefaults instantiates a new BadRequestError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*BadRequestError) GetErrorCode

func (o *BadRequestError) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*BadRequestError) GetErrorCodeOk

func (o *BadRequestError) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*BadRequestError) GetMessage

func (o *BadRequestError) GetMessage() string

GetMessage returns the Message field value

func (*BadRequestError) GetMessageOk

func (o *BadRequestError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (BadRequestError) MarshalJSON

func (o BadRequestError) MarshalJSON() ([]byte, error)

func (*BadRequestError) SetErrorCode

func (o *BadRequestError) SetErrorCode(v string)

SetErrorCode sets field value

func (*BadRequestError) SetMessage

func (o *BadRequestError) SetMessage(v string)

SetMessage sets field value

func (BadRequestError) ToMap

func (o BadRequestError) ToMap() (map[string]interface{}, error)

type Bank

type Bank struct {
	BankCode BankCode `json:"bank_code"`
	// The collection type for the bank details.
	CollectionType string `json:"collection_type"`
	// The branch of the bank.
	BankBranch *string `json:"bank_branch,omitempty"`
	// The bank account number.
	BankAccountNumber *string `json:"bank_account_number,omitempty"`
	// The name of the account holder.
	AccountHolderName string `json:"account_holder_name"`
	// The transfer amount.
	TransferAmount      *float64                 `json:"transfer_amount,omitempty"`
	AlternativeDisplays []AlternativeDisplayItem `json:"alternative_displays,omitempty"`
}

Bank An object representing bank details for invoices.

func NewBank

func NewBank(bankCode BankCode, collectionType string, accountHolderName string) *Bank

NewBank instantiates a new Bank object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewBankWithDefaults

func NewBankWithDefaults() *Bank

NewBankWithDefaults instantiates a new Bank object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Bank) GetAccountHolderName

func (o *Bank) GetAccountHolderName() string

GetAccountHolderName returns the AccountHolderName field value

func (*Bank) GetAccountHolderNameOk

func (o *Bank) GetAccountHolderNameOk() (*string, bool)

GetAccountHolderNameOk returns a tuple with the AccountHolderName field value and a boolean to check if the value has been set.

func (*Bank) GetAlternativeDisplays

func (o *Bank) GetAlternativeDisplays() []AlternativeDisplayItem

GetAlternativeDisplays returns the AlternativeDisplays field value if set, zero value otherwise.

func (*Bank) GetAlternativeDisplaysOk

func (o *Bank) GetAlternativeDisplaysOk() ([]AlternativeDisplayItem, bool)

GetAlternativeDisplaysOk returns a tuple with the AlternativeDisplays field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Bank) GetBankAccountNumber

func (o *Bank) GetBankAccountNumber() string

GetBankAccountNumber returns the BankAccountNumber field value if set, zero value otherwise.

func (*Bank) GetBankAccountNumberOk

func (o *Bank) GetBankAccountNumberOk() (*string, bool)

GetBankAccountNumberOk returns a tuple with the BankAccountNumber field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Bank) GetBankBranch

func (o *Bank) GetBankBranch() string

GetBankBranch returns the BankBranch field value if set, zero value otherwise.

func (*Bank) GetBankBranchOk

func (o *Bank) GetBankBranchOk() (*string, bool)

GetBankBranchOk returns a tuple with the BankBranch field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Bank) GetBankCode

func (o *Bank) GetBankCode() BankCode

GetBankCode returns the BankCode field value

func (*Bank) GetBankCodeOk

func (o *Bank) GetBankCodeOk() (*BankCode, bool)

GetBankCodeOk returns a tuple with the BankCode field value and a boolean to check if the value has been set.

func (*Bank) GetCollectionType

func (o *Bank) GetCollectionType() string

GetCollectionType returns the CollectionType field value

func (*Bank) GetCollectionTypeOk

func (o *Bank) GetCollectionTypeOk() (*string, bool)

GetCollectionTypeOk returns a tuple with the CollectionType field value and a boolean to check if the value has been set.

func (*Bank) GetTransferAmount

func (o *Bank) GetTransferAmount() float64

GetTransferAmount returns the TransferAmount field value if set, zero value otherwise.

func (*Bank) GetTransferAmountOk

func (o *Bank) GetTransferAmountOk() (*float64, bool)

GetTransferAmountOk returns a tuple with the TransferAmount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Bank) HasAlternativeDisplays

func (o *Bank) HasAlternativeDisplays() bool

HasAlternativeDisplays returns a boolean if a field has been set.

func (*Bank) HasBankAccountNumber

func (o *Bank) HasBankAccountNumber() bool

HasBankAccountNumber returns a boolean if a field has been set.

func (*Bank) HasBankBranch

func (o *Bank) HasBankBranch() bool

HasBankBranch returns a boolean if a field has been set.

func (*Bank) HasTransferAmount

func (o *Bank) HasTransferAmount() bool

HasTransferAmount returns a boolean if a field has been set.

func (Bank) MarshalJSON

func (o Bank) MarshalJSON() ([]byte, error)

func (*Bank) SetAccountHolderName

func (o *Bank) SetAccountHolderName(v string)

SetAccountHolderName sets field value

func (*Bank) SetAlternativeDisplays

func (o *Bank) SetAlternativeDisplays(v []AlternativeDisplayItem)

SetAlternativeDisplays gets a reference to the given []AlternativeDisplayItem and assigns it to the AlternativeDisplays field.

func (*Bank) SetBankAccountNumber

func (o *Bank) SetBankAccountNumber(v string)

SetBankAccountNumber gets a reference to the given string and assigns it to the BankAccountNumber field.

func (*Bank) SetBankBranch

func (o *Bank) SetBankBranch(v string)

SetBankBranch gets a reference to the given string and assigns it to the BankBranch field.

func (*Bank) SetBankCode

func (o *Bank) SetBankCode(v BankCode)

SetBankCode sets field value

func (*Bank) SetCollectionType

func (o *Bank) SetCollectionType(v string)

SetCollectionType sets field value

func (*Bank) SetTransferAmount

func (o *Bank) SetTransferAmount(v float64)

SetTransferAmount gets a reference to the given float64 and assigns it to the TransferAmount field.

func (Bank) ToMap

func (o Bank) ToMap() (map[string]interface{}, error)

type BankCode

type BankCode string

BankCode Representing the available bank channels used for invoice-related transactions.

const (
	BANKCODE_BCA                          BankCode = "BCA"
	BANKCODE_BNI                          BankCode = "BNI"
	BANKCODE_BRI                          BankCode = "BRI"
	BANKCODE_MANDIRI                      BankCode = "MANDIRI"
	BANKCODE_PERMATA                      BankCode = "PERMATA"
	BANKCODE_BSI                          BankCode = "BSI"
	BANKCODE_BJB                          BankCode = "BJB"
	BANKCODE_SAHABAT_SAMPOERNA            BankCode = "SAHABAT_SAMPOERNA"
	BANKCODE_CIMB                         BankCode = "CIMB"
	BANKCODE_BNC                          BankCode = "BNC"
	BANKCODE_HANA                         BankCode = "HANA"
	BANKCODE_MUAMALAT                     BankCode = "MUAMALAT"
	BANKCODE_XENDIT_ENUM_DEFAULT_FALLBACK BankCode = "UNKNOWN_ENUM_VALUE"
)

List of BankCode

func NewBankCodeFromValue

func NewBankCodeFromValue(v string) (*BankCode, error)

NewBankCodeFromValue returns a pointer to a valid BankCode for the value passed as argument, or an error if the value passed is not allowed by the enum

func (BankCode) IsValid

func (v BankCode) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (BankCode) Ptr

func (v BankCode) Ptr() *BankCode

Ptr returns reference to BankCode value

func (BankCode) String

func (v BankCode) String() string

func (*BankCode) UnmarshalJSON

func (v *BankCode) UnmarshalJSON(src []byte) error

type ChannelProperties added in v4.3.0

type ChannelProperties struct {
	Cards *ChannelPropertiesCards `json:"cards,omitempty"`
}

ChannelProperties An object representing channel-specific properties.

func NewChannelProperties added in v4.3.0

func NewChannelProperties() *ChannelProperties

NewChannelProperties instantiates a new ChannelProperties object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChannelPropertiesWithDefaults added in v4.3.0

func NewChannelPropertiesWithDefaults() *ChannelProperties

NewChannelPropertiesWithDefaults instantiates a new ChannelProperties object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChannelProperties) GetCards added in v4.3.0

GetCards returns the Cards field value if set, zero value otherwise.

func (*ChannelProperties) GetCardsOk added in v4.3.0

func (o *ChannelProperties) GetCardsOk() (*ChannelPropertiesCards, bool)

GetCardsOk returns a tuple with the Cards field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ChannelProperties) HasCards added in v4.3.0

func (o *ChannelProperties) HasCards() bool

HasCards returns a boolean if a field has been set.

func (ChannelProperties) MarshalJSON added in v4.3.0

func (o ChannelProperties) MarshalJSON() ([]byte, error)

func (*ChannelProperties) SetCards added in v4.3.0

SetCards gets a reference to the given ChannelPropertiesCards and assigns it to the Cards field.

func (ChannelProperties) ToMap added in v4.3.0

func (o ChannelProperties) ToMap() (map[string]interface{}, error)

type ChannelPropertiesCards added in v4.3.0

type ChannelPropertiesCards struct {
	// An array of allowed BINs (6 or 8 digits) for credit card payments.
	AllowedBins []string `json:"allowed_bins,omitempty"`
}

ChannelPropertiesCards An object representing properties specific for credit card payment method.

func NewChannelPropertiesCards added in v4.3.0

func NewChannelPropertiesCards() *ChannelPropertiesCards

NewChannelPropertiesCards instantiates a new ChannelPropertiesCards object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewChannelPropertiesCardsWithDefaults added in v4.3.0

func NewChannelPropertiesCardsWithDefaults() *ChannelPropertiesCards

NewChannelPropertiesCardsWithDefaults instantiates a new ChannelPropertiesCards object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ChannelPropertiesCards) GetAllowedBins added in v4.3.0

func (o *ChannelPropertiesCards) GetAllowedBins() []string

GetAllowedBins returns the AllowedBins field value if set, zero value otherwise.

func (*ChannelPropertiesCards) GetAllowedBinsOk added in v4.3.0

func (o *ChannelPropertiesCards) GetAllowedBinsOk() ([]string, bool)

GetAllowedBinsOk returns a tuple with the AllowedBins field value if set, nil otherwise and a boolean to check if the value has been set.

func (*ChannelPropertiesCards) HasAllowedBins added in v4.3.0

func (o *ChannelPropertiesCards) HasAllowedBins() bool

HasAllowedBins returns a boolean if a field has been set.

func (ChannelPropertiesCards) MarshalJSON added in v4.3.0

func (o ChannelPropertiesCards) MarshalJSON() ([]byte, error)

func (*ChannelPropertiesCards) SetAllowedBins added in v4.3.0

func (o *ChannelPropertiesCards) SetAllowedBins(v []string)

SetAllowedBins gets a reference to the given []string and assigns it to the AllowedBins field.

func (ChannelPropertiesCards) ToMap added in v4.3.0

func (o ChannelPropertiesCards) ToMap() (map[string]interface{}, error)

type CreateInvoiceRequest

type CreateInvoiceRequest struct {
	// The external ID of the invoice.
	ExternalId string `json:"external_id"`
	// The invoice amount.
	Amount float64 `json:"amount"`
	// The email address of the payer.
	PayerEmail *string `json:"payer_email,omitempty"`
	// A description of the payment.
	Description *string `json:"description,omitempty"`
	// The duration of the invoice.
	InvoiceDuration *string `json:"invoice_duration,omitempty"`
	// The ID of the callback virtual account.
	CallbackVirtualAccountId *string `json:"callback_virtual_account_id,omitempty"`
	// Indicates whether email notifications should be sent.
	ShouldSendEmail                *bool                   `json:"should_send_email,omitempty"`
	Customer                       *CustomerObject         `json:"customer,omitempty"`
	CustomerNotificationPreference *NotificationPreference `json:"customer_notification_preference,omitempty"`
	// The URL to redirect to on successful payment.
	SuccessRedirectUrl *string `json:"success_redirect_url,omitempty"`
	// The URL to redirect to on payment failure.
	FailureRedirectUrl *string `json:"failure_redirect_url,omitempty"`
	// An array of available payment methods.
	PaymentMethods []string `json:"payment_methods,omitempty"`
	// The middle label.
	MidLabel *string `json:"mid_label,omitempty"`
	// Indicates whether credit card authentication is required.
	ShouldAuthenticateCreditCard *bool `json:"should_authenticate_credit_card,omitempty"`
	// The currency of the invoice.
	Currency *string `json:"currency,omitempty"`
	// The reminder time.
	ReminderTime *float32 `json:"reminder_time,omitempty"`
	// The local.
	Local *string `json:"local,omitempty"`
	// The unit of the reminder time.
	ReminderTimeUnit *string `json:"reminder_time_unit,omitempty"`
	// An array of items included in the invoice.
	Items []InvoiceItem `json:"items,omitempty"`
	// An array of fees associated with the invoice.
	Fees              []InvoiceFee       `json:"fees,omitempty"`
	ChannelProperties *ChannelProperties `json:"channel_properties,omitempty"`
}

CreateInvoiceRequest An object representing for an invoice creation request.

func NewCreateInvoiceRequest

func NewCreateInvoiceRequest(externalId string, amount float64) *CreateInvoiceRequest

NewCreateInvoiceRequest instantiates a new CreateInvoiceRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreateInvoiceRequestWithDefaults

func NewCreateInvoiceRequestWithDefaults() *CreateInvoiceRequest

NewCreateInvoiceRequestWithDefaults instantiates a new CreateInvoiceRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreateInvoiceRequest) GetAmount

func (o *CreateInvoiceRequest) GetAmount() float64

GetAmount returns the Amount field value

func (*CreateInvoiceRequest) GetAmountOk

func (o *CreateInvoiceRequest) GetAmountOk() (*float64, bool)

GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetCallbackVirtualAccountId

func (o *CreateInvoiceRequest) GetCallbackVirtualAccountId() string

GetCallbackVirtualAccountId returns the CallbackVirtualAccountId field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetCallbackVirtualAccountIdOk

func (o *CreateInvoiceRequest) GetCallbackVirtualAccountIdOk() (*string, bool)

GetCallbackVirtualAccountIdOk returns a tuple with the CallbackVirtualAccountId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetChannelProperties added in v4.3.0

func (o *CreateInvoiceRequest) GetChannelProperties() ChannelProperties

GetChannelProperties returns the ChannelProperties field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetChannelPropertiesOk added in v4.3.0

func (o *CreateInvoiceRequest) GetChannelPropertiesOk() (*ChannelProperties, bool)

GetChannelPropertiesOk returns a tuple with the ChannelProperties field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetCurrency

func (o *CreateInvoiceRequest) GetCurrency() string

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetCurrencyOk

func (o *CreateInvoiceRequest) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetCustomer

func (o *CreateInvoiceRequest) GetCustomer() CustomerObject

GetCustomer returns the Customer field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetCustomerNotificationPreference

func (o *CreateInvoiceRequest) GetCustomerNotificationPreference() NotificationPreference

GetCustomerNotificationPreference returns the CustomerNotificationPreference field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetCustomerNotificationPreferenceOk

func (o *CreateInvoiceRequest) GetCustomerNotificationPreferenceOk() (*NotificationPreference, bool)

GetCustomerNotificationPreferenceOk returns a tuple with the CustomerNotificationPreference field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetCustomerOk

func (o *CreateInvoiceRequest) GetCustomerOk() (*CustomerObject, bool)

GetCustomerOk returns a tuple with the Customer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetDescription

func (o *CreateInvoiceRequest) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetDescriptionOk

func (o *CreateInvoiceRequest) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetExternalId

func (o *CreateInvoiceRequest) GetExternalId() string

GetExternalId returns the ExternalId field value

func (*CreateInvoiceRequest) GetExternalIdOk

func (o *CreateInvoiceRequest) GetExternalIdOk() (*string, bool)

GetExternalIdOk returns a tuple with the ExternalId field value and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetFailureRedirectUrl

func (o *CreateInvoiceRequest) GetFailureRedirectUrl() string

GetFailureRedirectUrl returns the FailureRedirectUrl field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetFailureRedirectUrlOk

func (o *CreateInvoiceRequest) GetFailureRedirectUrlOk() (*string, bool)

GetFailureRedirectUrlOk returns a tuple with the FailureRedirectUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetFees

func (o *CreateInvoiceRequest) GetFees() []InvoiceFee

GetFees returns the Fees field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetFeesOk

func (o *CreateInvoiceRequest) GetFeesOk() ([]InvoiceFee, bool)

GetFeesOk returns a tuple with the Fees field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetInvoiceDuration

func (o *CreateInvoiceRequest) GetInvoiceDuration() string

GetInvoiceDuration returns the InvoiceDuration field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetInvoiceDurationOk

func (o *CreateInvoiceRequest) GetInvoiceDurationOk() (*string, bool)

GetInvoiceDurationOk returns a tuple with the InvoiceDuration field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetItems

func (o *CreateInvoiceRequest) GetItems() []InvoiceItem

GetItems returns the Items field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetItemsOk

func (o *CreateInvoiceRequest) GetItemsOk() ([]InvoiceItem, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetLocal

func (o *CreateInvoiceRequest) GetLocal() string

GetLocal returns the Local field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetLocalOk

func (o *CreateInvoiceRequest) GetLocalOk() (*string, bool)

GetLocalOk returns a tuple with the Local field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetMidLabel

func (o *CreateInvoiceRequest) GetMidLabel() string

GetMidLabel returns the MidLabel field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetMidLabelOk

func (o *CreateInvoiceRequest) GetMidLabelOk() (*string, bool)

GetMidLabelOk returns a tuple with the MidLabel field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetPayerEmail

func (o *CreateInvoiceRequest) GetPayerEmail() string

GetPayerEmail returns the PayerEmail field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetPayerEmailOk

func (o *CreateInvoiceRequest) GetPayerEmailOk() (*string, bool)

GetPayerEmailOk returns a tuple with the PayerEmail field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetPaymentMethods

func (o *CreateInvoiceRequest) GetPaymentMethods() []string

GetPaymentMethods returns the PaymentMethods field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetPaymentMethodsOk

func (o *CreateInvoiceRequest) GetPaymentMethodsOk() ([]string, bool)

GetPaymentMethodsOk returns a tuple with the PaymentMethods field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetReminderTime

func (o *CreateInvoiceRequest) GetReminderTime() float32

GetReminderTime returns the ReminderTime field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetReminderTimeOk

func (o *CreateInvoiceRequest) GetReminderTimeOk() (*float32, bool)

GetReminderTimeOk returns a tuple with the ReminderTime field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetReminderTimeUnit

func (o *CreateInvoiceRequest) GetReminderTimeUnit() string

GetReminderTimeUnit returns the ReminderTimeUnit field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetReminderTimeUnitOk

func (o *CreateInvoiceRequest) GetReminderTimeUnitOk() (*string, bool)

GetReminderTimeUnitOk returns a tuple with the ReminderTimeUnit field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetShouldAuthenticateCreditCard

func (o *CreateInvoiceRequest) GetShouldAuthenticateCreditCard() bool

GetShouldAuthenticateCreditCard returns the ShouldAuthenticateCreditCard field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetShouldAuthenticateCreditCardOk

func (o *CreateInvoiceRequest) GetShouldAuthenticateCreditCardOk() (*bool, bool)

GetShouldAuthenticateCreditCardOk returns a tuple with the ShouldAuthenticateCreditCard field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetShouldSendEmail

func (o *CreateInvoiceRequest) GetShouldSendEmail() bool

GetShouldSendEmail returns the ShouldSendEmail field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetShouldSendEmailOk

func (o *CreateInvoiceRequest) GetShouldSendEmailOk() (*bool, bool)

GetShouldSendEmailOk returns a tuple with the ShouldSendEmail field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) GetSuccessRedirectUrl

func (o *CreateInvoiceRequest) GetSuccessRedirectUrl() string

GetSuccessRedirectUrl returns the SuccessRedirectUrl field value if set, zero value otherwise.

func (*CreateInvoiceRequest) GetSuccessRedirectUrlOk

func (o *CreateInvoiceRequest) GetSuccessRedirectUrlOk() (*string, bool)

GetSuccessRedirectUrlOk returns a tuple with the SuccessRedirectUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*CreateInvoiceRequest) HasCallbackVirtualAccountId

func (o *CreateInvoiceRequest) HasCallbackVirtualAccountId() bool

HasCallbackVirtualAccountId returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasChannelProperties added in v4.3.0

func (o *CreateInvoiceRequest) HasChannelProperties() bool

HasChannelProperties returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasCurrency

func (o *CreateInvoiceRequest) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasCustomer

func (o *CreateInvoiceRequest) HasCustomer() bool

HasCustomer returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasCustomerNotificationPreference

func (o *CreateInvoiceRequest) HasCustomerNotificationPreference() bool

HasCustomerNotificationPreference returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasDescription

func (o *CreateInvoiceRequest) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasFailureRedirectUrl

func (o *CreateInvoiceRequest) HasFailureRedirectUrl() bool

HasFailureRedirectUrl returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasFees

func (o *CreateInvoiceRequest) HasFees() bool

HasFees returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasInvoiceDuration

func (o *CreateInvoiceRequest) HasInvoiceDuration() bool

HasInvoiceDuration returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasItems

func (o *CreateInvoiceRequest) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasLocal

func (o *CreateInvoiceRequest) HasLocal() bool

HasLocal returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasMidLabel

func (o *CreateInvoiceRequest) HasMidLabel() bool

HasMidLabel returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasPayerEmail

func (o *CreateInvoiceRequest) HasPayerEmail() bool

HasPayerEmail returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasPaymentMethods

func (o *CreateInvoiceRequest) HasPaymentMethods() bool

HasPaymentMethods returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasReminderTime

func (o *CreateInvoiceRequest) HasReminderTime() bool

HasReminderTime returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasReminderTimeUnit

func (o *CreateInvoiceRequest) HasReminderTimeUnit() bool

HasReminderTimeUnit returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasShouldAuthenticateCreditCard

func (o *CreateInvoiceRequest) HasShouldAuthenticateCreditCard() bool

HasShouldAuthenticateCreditCard returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasShouldSendEmail

func (o *CreateInvoiceRequest) HasShouldSendEmail() bool

HasShouldSendEmail returns a boolean if a field has been set.

func (*CreateInvoiceRequest) HasSuccessRedirectUrl

func (o *CreateInvoiceRequest) HasSuccessRedirectUrl() bool

HasSuccessRedirectUrl returns a boolean if a field has been set.

func (CreateInvoiceRequest) MarshalJSON

func (o CreateInvoiceRequest) MarshalJSON() ([]byte, error)

func (*CreateInvoiceRequest) SetAmount

func (o *CreateInvoiceRequest) SetAmount(v float64)

SetAmount sets field value

func (*CreateInvoiceRequest) SetCallbackVirtualAccountId

func (o *CreateInvoiceRequest) SetCallbackVirtualAccountId(v string)

SetCallbackVirtualAccountId gets a reference to the given string and assigns it to the CallbackVirtualAccountId field.

func (*CreateInvoiceRequest) SetChannelProperties added in v4.3.0

func (o *CreateInvoiceRequest) SetChannelProperties(v ChannelProperties)

SetChannelProperties gets a reference to the given ChannelProperties and assigns it to the ChannelProperties field.

func (*CreateInvoiceRequest) SetCurrency

func (o *CreateInvoiceRequest) SetCurrency(v string)

SetCurrency gets a reference to the given string and assigns it to the Currency field.

func (*CreateInvoiceRequest) SetCustomer

func (o *CreateInvoiceRequest) SetCustomer(v CustomerObject)

SetCustomer gets a reference to the given CustomerObject and assigns it to the Customer field.

func (*CreateInvoiceRequest) SetCustomerNotificationPreference

func (o *CreateInvoiceRequest) SetCustomerNotificationPreference(v NotificationPreference)

SetCustomerNotificationPreference gets a reference to the given NotificationPreference and assigns it to the CustomerNotificationPreference field.

func (*CreateInvoiceRequest) SetDescription

func (o *CreateInvoiceRequest) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*CreateInvoiceRequest) SetExternalId

func (o *CreateInvoiceRequest) SetExternalId(v string)

SetExternalId sets field value

func (*CreateInvoiceRequest) SetFailureRedirectUrl

func (o *CreateInvoiceRequest) SetFailureRedirectUrl(v string)

SetFailureRedirectUrl gets a reference to the given string and assigns it to the FailureRedirectUrl field.

func (*CreateInvoiceRequest) SetFees

func (o *CreateInvoiceRequest) SetFees(v []InvoiceFee)

SetFees gets a reference to the given []InvoiceFee and assigns it to the Fees field.

func (*CreateInvoiceRequest) SetInvoiceDuration

func (o *CreateInvoiceRequest) SetInvoiceDuration(v string)

SetInvoiceDuration gets a reference to the given string and assigns it to the InvoiceDuration field.

func (*CreateInvoiceRequest) SetItems

func (o *CreateInvoiceRequest) SetItems(v []InvoiceItem)

SetItems gets a reference to the given []InvoiceItem and assigns it to the Items field.

func (*CreateInvoiceRequest) SetLocal

func (o *CreateInvoiceRequest) SetLocal(v string)

SetLocal gets a reference to the given string and assigns it to the Local field.

func (*CreateInvoiceRequest) SetMidLabel

func (o *CreateInvoiceRequest) SetMidLabel(v string)

SetMidLabel gets a reference to the given string and assigns it to the MidLabel field.

func (*CreateInvoiceRequest) SetPayerEmail

func (o *CreateInvoiceRequest) SetPayerEmail(v string)

SetPayerEmail gets a reference to the given string and assigns it to the PayerEmail field.

func (*CreateInvoiceRequest) SetPaymentMethods

func (o *CreateInvoiceRequest) SetPaymentMethods(v []string)

SetPaymentMethods gets a reference to the given []string and assigns it to the PaymentMethods field.

func (*CreateInvoiceRequest) SetReminderTime

func (o *CreateInvoiceRequest) SetReminderTime(v float32)

SetReminderTime gets a reference to the given float32 and assigns it to the ReminderTime field.

func (*CreateInvoiceRequest) SetReminderTimeUnit

func (o *CreateInvoiceRequest) SetReminderTimeUnit(v string)

SetReminderTimeUnit gets a reference to the given string and assigns it to the ReminderTimeUnit field.

func (*CreateInvoiceRequest) SetShouldAuthenticateCreditCard

func (o *CreateInvoiceRequest) SetShouldAuthenticateCreditCard(v bool)

SetShouldAuthenticateCreditCard gets a reference to the given bool and assigns it to the ShouldAuthenticateCreditCard field.

func (*CreateInvoiceRequest) SetShouldSendEmail

func (o *CreateInvoiceRequest) SetShouldSendEmail(v bool)

SetShouldSendEmail gets a reference to the given bool and assigns it to the ShouldSendEmail field.

func (*CreateInvoiceRequest) SetSuccessRedirectUrl

func (o *CreateInvoiceRequest) SetSuccessRedirectUrl(v string)

SetSuccessRedirectUrl gets a reference to the given string and assigns it to the SuccessRedirectUrl field.

func (CreateInvoiceRequest) ToMap

func (o CreateInvoiceRequest) ToMap() (map[string]interface{}, error)

type CustomerObject

type CustomerObject struct {
	// The unique identifier for the customer.
	Id NullableString `json:"id,omitempty"`
	// The customer's phone number.
	PhoneNumber NullableString `json:"phone_number,omitempty"`
	// The customer's given names or first names.
	GivenNames NullableString `json:"given_names,omitempty"`
	// The customer's surname or last name.
	Surname NullableString `json:"surname,omitempty"`
	// The customer's email address.
	Email NullableString `json:"email,omitempty"`
	// The customer's mobile phone number.
	MobileNumber NullableString `json:"mobile_number,omitempty"`
	// An additional identifier for the customer.
	CustomerId NullableString `json:"customer_id,omitempty"`
	// An array of addresses associated with the customer.
	Addresses []AddressObject `json:"addresses,omitempty"`
}

CustomerObject An object representing a customer with various properties, including addresses.

func NewCustomerObject

func NewCustomerObject() *CustomerObject

NewCustomerObject instantiates a new CustomerObject object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCustomerObjectWithDefaults

func NewCustomerObjectWithDefaults() *CustomerObject

NewCustomerObjectWithDefaults instantiates a new CustomerObject object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CustomerObject) GetAddresses

func (o *CustomerObject) GetAddresses() []AddressObject

GetAddresses returns the Addresses field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CustomerObject) GetAddressesOk

func (o *CustomerObject) GetAddressesOk() ([]AddressObject, bool)

GetAddressesOk returns a tuple with the Addresses field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CustomerObject) GetCustomerId

func (o *CustomerObject) GetCustomerId() string

GetCustomerId returns the CustomerId field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CustomerObject) GetCustomerIdOk

func (o *CustomerObject) GetCustomerIdOk() (*string, bool)

GetCustomerIdOk returns a tuple with the CustomerId field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CustomerObject) GetEmail

func (o *CustomerObject) GetEmail() string

GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CustomerObject) GetEmailOk

func (o *CustomerObject) GetEmailOk() (*string, bool)

GetEmailOk returns a tuple with the Email field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CustomerObject) GetGivenNames

func (o *CustomerObject) GetGivenNames() string

GetGivenNames returns the GivenNames field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CustomerObject) GetGivenNamesOk

func (o *CustomerObject) GetGivenNamesOk() (*string, bool)

GetGivenNamesOk returns a tuple with the GivenNames field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CustomerObject) GetId

func (o *CustomerObject) GetId() string

GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CustomerObject) GetIdOk

func (o *CustomerObject) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CustomerObject) GetMobileNumber

func (o *CustomerObject) GetMobileNumber() string

GetMobileNumber returns the MobileNumber field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CustomerObject) GetMobileNumberOk

func (o *CustomerObject) GetMobileNumberOk() (*string, bool)

GetMobileNumberOk returns a tuple with the MobileNumber field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CustomerObject) GetPhoneNumber

func (o *CustomerObject) GetPhoneNumber() string

GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CustomerObject) GetPhoneNumberOk

func (o *CustomerObject) GetPhoneNumberOk() (*string, bool)

GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CustomerObject) GetSurname

func (o *CustomerObject) GetSurname() string

GetSurname returns the Surname field value if set, zero value otherwise (both if not set or set to explicit null).

func (*CustomerObject) GetSurnameOk

func (o *CustomerObject) GetSurnameOk() (*string, bool)

GetSurnameOk returns a tuple with the Surname field value if set, nil otherwise and a boolean to check if the value has been set. NOTE: If the value is an explicit nil, `nil, true` will be returned

func (*CustomerObject) HasAddresses

func (o *CustomerObject) HasAddresses() bool

HasAddresses returns a boolean if a field has been set.

func (*CustomerObject) HasCustomerId

func (o *CustomerObject) HasCustomerId() bool

HasCustomerId returns a boolean if a field has been set.

func (*CustomerObject) HasEmail

func (o *CustomerObject) HasEmail() bool

HasEmail returns a boolean if a field has been set.

func (*CustomerObject) HasGivenNames

func (o *CustomerObject) HasGivenNames() bool

HasGivenNames returns a boolean if a field has been set.

func (*CustomerObject) HasId

func (o *CustomerObject) HasId() bool

HasId returns a boolean if a field has been set.

func (*CustomerObject) HasMobileNumber

func (o *CustomerObject) HasMobileNumber() bool

HasMobileNumber returns a boolean if a field has been set.

func (*CustomerObject) HasPhoneNumber

func (o *CustomerObject) HasPhoneNumber() bool

HasPhoneNumber returns a boolean if a field has been set.

func (*CustomerObject) HasSurname

func (o *CustomerObject) HasSurname() bool

HasSurname returns a boolean if a field has been set.

func (CustomerObject) MarshalJSON

func (o CustomerObject) MarshalJSON() ([]byte, error)

func (*CustomerObject) SetAddresses

func (o *CustomerObject) SetAddresses(v []AddressObject)

SetAddresses gets a reference to the given []AddressObject and assigns it to the Addresses field.

func (*CustomerObject) SetCustomerId

func (o *CustomerObject) SetCustomerId(v string)

SetCustomerId gets a reference to the given NullableString and assigns it to the CustomerId field.

func (*CustomerObject) SetCustomerIdNil

func (o *CustomerObject) SetCustomerIdNil()

SetCustomerIdNil sets the value for CustomerId to be an explicit nil

func (*CustomerObject) SetEmail

func (o *CustomerObject) SetEmail(v string)

SetEmail gets a reference to the given NullableString and assigns it to the Email field.

func (*CustomerObject) SetEmailNil

func (o *CustomerObject) SetEmailNil()

SetEmailNil sets the value for Email to be an explicit nil

func (*CustomerObject) SetGivenNames

func (o *CustomerObject) SetGivenNames(v string)

SetGivenNames gets a reference to the given NullableString and assigns it to the GivenNames field.

func (*CustomerObject) SetGivenNamesNil

func (o *CustomerObject) SetGivenNamesNil()

SetGivenNamesNil sets the value for GivenNames to be an explicit nil

func (*CustomerObject) SetId

func (o *CustomerObject) SetId(v string)

SetId gets a reference to the given NullableString and assigns it to the Id field.

func (*CustomerObject) SetIdNil

func (o *CustomerObject) SetIdNil()

SetIdNil sets the value for Id to be an explicit nil

func (*CustomerObject) SetMobileNumber

func (o *CustomerObject) SetMobileNumber(v string)

SetMobileNumber gets a reference to the given NullableString and assigns it to the MobileNumber field.

func (*CustomerObject) SetMobileNumberNil

func (o *CustomerObject) SetMobileNumberNil()

SetMobileNumberNil sets the value for MobileNumber to be an explicit nil

func (*CustomerObject) SetPhoneNumber

func (o *CustomerObject) SetPhoneNumber(v string)

SetPhoneNumber gets a reference to the given NullableString and assigns it to the PhoneNumber field.

func (*CustomerObject) SetPhoneNumberNil

func (o *CustomerObject) SetPhoneNumberNil()

SetPhoneNumberNil sets the value for PhoneNumber to be an explicit nil

func (*CustomerObject) SetSurname

func (o *CustomerObject) SetSurname(v string)

SetSurname gets a reference to the given NullableString and assigns it to the Surname field.

func (*CustomerObject) SetSurnameNil

func (o *CustomerObject) SetSurnameNil()

SetSurnameNil sets the value for Surname to be an explicit nil

func (CustomerObject) ToMap

func (o CustomerObject) ToMap() (map[string]interface{}, error)

func (*CustomerObject) UnsetCustomerId

func (o *CustomerObject) UnsetCustomerId()

UnsetCustomerId ensures that no value is present for CustomerId, not even an explicit nil

func (*CustomerObject) UnsetEmail

func (o *CustomerObject) UnsetEmail()

UnsetEmail ensures that no value is present for Email, not even an explicit nil

func (*CustomerObject) UnsetGivenNames

func (o *CustomerObject) UnsetGivenNames()

UnsetGivenNames ensures that no value is present for GivenNames, not even an explicit nil

func (*CustomerObject) UnsetId

func (o *CustomerObject) UnsetId()

UnsetId ensures that no value is present for Id, not even an explicit nil

func (*CustomerObject) UnsetMobileNumber

func (o *CustomerObject) UnsetMobileNumber()

UnsetMobileNumber ensures that no value is present for MobileNumber, not even an explicit nil

func (*CustomerObject) UnsetPhoneNumber

func (o *CustomerObject) UnsetPhoneNumber()

UnsetPhoneNumber ensures that no value is present for PhoneNumber, not even an explicit nil

func (*CustomerObject) UnsetSurname

func (o *CustomerObject) UnsetSurname()

UnsetSurname ensures that no value is present for Surname, not even an explicit nil

type DirectDebit

type DirectDebit struct {
	DirectDebitType DirectDebitType `json:"direct_debit_type"`
}

DirectDebit An object representing direct debit details for invoices.

func NewDirectDebit

func NewDirectDebit(directDebitType DirectDebitType) *DirectDebit

NewDirectDebit instantiates a new DirectDebit object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewDirectDebitWithDefaults

func NewDirectDebitWithDefaults() *DirectDebit

NewDirectDebitWithDefaults instantiates a new DirectDebit object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*DirectDebit) GetDirectDebitType

func (o *DirectDebit) GetDirectDebitType() DirectDebitType

GetDirectDebitType returns the DirectDebitType field value

func (*DirectDebit) GetDirectDebitTypeOk

func (o *DirectDebit) GetDirectDebitTypeOk() (*DirectDebitType, bool)

GetDirectDebitTypeOk returns a tuple with the DirectDebitType field value and a boolean to check if the value has been set.

func (DirectDebit) MarshalJSON

func (o DirectDebit) MarshalJSON() ([]byte, error)

func (*DirectDebit) SetDirectDebitType

func (o *DirectDebit) SetDirectDebitType(v DirectDebitType)

SetDirectDebitType sets field value

func (DirectDebit) ToMap

func (o DirectDebit) ToMap() (map[string]interface{}, error)

type DirectDebitType

type DirectDebitType string

DirectDebitType Representing the available Direct Debit channels used for invoice-related transactions.

const (
	DIRECTDEBITTYPE_BA_BRI                       DirectDebitType = "BA_BRI"
	DIRECTDEBITTYPE_DC_BRI                       DirectDebitType = "DC_BRI"
	DIRECTDEBITTYPE_DD_BRI                       DirectDebitType = "DD_BRI"
	DIRECTDEBITTYPE_DD_MANDIRI                   DirectDebitType = "DD_MANDIRI"
	DIRECTDEBITTYPE_BA_BPI                       DirectDebitType = "BA_BPI"
	DIRECTDEBITTYPE_DC_BPI                       DirectDebitType = "DC_BPI"
	DIRECTDEBITTYPE_DD_BPI                       DirectDebitType = "DD_BPI"
	DIRECTDEBITTYPE_BA_UBP                       DirectDebitType = "BA_UBP"
	DIRECTDEBITTYPE_DC_UBP                       DirectDebitType = "DC_UBP"
	DIRECTDEBITTYPE_DD_UBP                       DirectDebitType = "DD_UBP"
	DIRECTDEBITTYPE_BCA_KLIKPAY                  DirectDebitType = "BCA_KLIKPAY"
	DIRECTDEBITTYPE_BA_BCA_KLIKPAY               DirectDebitType = "BA_BCA_KLIKPAY"
	DIRECTDEBITTYPE_DC_BCA_KLIKPAY               DirectDebitType = "DC_BCA_KLIKPAY"
	DIRECTDEBITTYPE_DD_BCA_KLIKPAY               DirectDebitType = "DD_BCA_KLIKPAY"
	DIRECTDEBITTYPE_DD_BDO_EPAY                  DirectDebitType = "DD_BDO_EPAY"
	DIRECTDEBITTYPE_DD_RCBC                      DirectDebitType = "DD_RCBC"
	DIRECTDEBITTYPE_DD_CHINABANK                 DirectDebitType = "DD_CHINABANK"
	DIRECTDEBITTYPE_BA_CHINABANK                 DirectDebitType = "BA_CHINABANK"
	DIRECTDEBITTYPE_DC_CHINABANK                 DirectDebitType = "DC_CHINABANK"
	DIRECTDEBITTYPE_DD_PUBLIC_FPX                DirectDebitType = "DD_PUBLIC_FPX"
	DIRECTDEBITTYPE_DD_AMBANK_FPX                DirectDebitType = "DD_AMBANK_FPX"
	DIRECTDEBITTYPE_DD_KFH_FPX                   DirectDebitType = "DD_KFH_FPX"
	DIRECTDEBITTYPE_DD_AGRO_FPX                  DirectDebitType = "DD_AGRO_FPX"
	DIRECTDEBITTYPE_DD_AFFIN_FPX                 DirectDebitType = "DD_AFFIN_FPX"
	DIRECTDEBITTYPE_DD_ALLIANCE_FPX              DirectDebitType = "DD_ALLIANCE_FPX"
	DIRECTDEBITTYPE_DD_MUAMALAT_FPX              DirectDebitType = "DD_MUAMALAT_FPX"
	DIRECTDEBITTYPE_DD_HLB_FPX                   DirectDebitType = "DD_HLB_FPX"
	DIRECTDEBITTYPE_DD_ISLAM_FPX                 DirectDebitType = "DD_ISLAM_FPX"
	DIRECTDEBITTYPE_DD_RAKYAT_FPX                DirectDebitType = "DD_RAKYAT_FPX"
	DIRECTDEBITTYPE_DD_CIMB_FPX                  DirectDebitType = "DD_CIMB_FPX"
	DIRECTDEBITTYPE_DD_UOB_FPX                   DirectDebitType = "DD_UOB_FPX"
	DIRECTDEBITTYPE_DD_BOC_FPX                   DirectDebitType = "DD_BOC_FPX"
	DIRECTDEBITTYPE_DD_BSN_FPX                   DirectDebitType = "DD_BSN_FPX"
	DIRECTDEBITTYPE_DD_OCBC_FPX                  DirectDebitType = "DD_OCBC_FPX"
	DIRECTDEBITTYPE_DD_HSBC_FPX                  DirectDebitType = "DD_HSBC_FPX"
	DIRECTDEBITTYPE_DD_SCH_FPX                   DirectDebitType = "DD_SCH_FPX"
	DIRECTDEBITTYPE_DD_MAYB2_U_FPX               DirectDebitType = "DD_MAYB2U_FPX"
	DIRECTDEBITTYPE_DD_RHB_FPX                   DirectDebitType = "DD_RHB_FPX"
	DIRECTDEBITTYPE_DD_UOB_FPX_BUSINESS          DirectDebitType = "DD_UOB_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_AGRO_FPX_BUSINESS         DirectDebitType = "DD_AGRO_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_ALLIANCE_FPX_BUSINESS     DirectDebitType = "DD_ALLIANCE_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_AMBANK_FPX_BUSINESS       DirectDebitType = "DD_AMBANK_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_ISLAM_FPX_BUSINESS        DirectDebitType = "DD_ISLAM_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_MUAMALAT_FPX_BUSINESS     DirectDebitType = "DD_MUAMALAT_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_HLB_FPX_BUSINESS          DirectDebitType = "DD_HLB_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_HSBC_FPX_BUSINESS         DirectDebitType = "DD_HSBC_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_RAKYAT_FPX_BUSINESS       DirectDebitType = "DD_RAKYAT_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_KFH_FPX_BUSINESS          DirectDebitType = "DD_KFH_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_OCBC_FPX_BUSINESS         DirectDebitType = "DD_OCBC_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_PUBLIC_FPX_BUSINESS       DirectDebitType = "DD_PUBLIC_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_RHB_FPX_BUSINESS          DirectDebitType = "DD_RHB_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_SCH_FPX_BUSINESS          DirectDebitType = "DD_SCH_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_CITIBANK_FPX_BUSINESS     DirectDebitType = "DD_CITIBANK_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_BNP_FPX_BUSINESS          DirectDebitType = "DD_BNP_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_DEUTSCHE_FPX_BUSINESS     DirectDebitType = "DD_DEUTSCHE_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_MAYB2_E_FPX_BUSINESS      DirectDebitType = "DD_MAYB2E_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_CIMB_FPX_BUSINESS         DirectDebitType = "DD_CIMB_FPX_BUSINESS"
	DIRECTDEBITTYPE_DD_AFFIN_FPX_BUSINESS        DirectDebitType = "DD_AFFIN_FPX_BUSINESS"
	DIRECTDEBITTYPE_XENDIT_ENUM_DEFAULT_FALLBACK DirectDebitType = "UNKNOWN_ENUM_VALUE"
)

List of DirectDebitType

func NewDirectDebitTypeFromValue

func NewDirectDebitTypeFromValue(v string) (*DirectDebitType, error)

NewDirectDebitTypeFromValue returns a pointer to a valid DirectDebitType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (DirectDebitType) IsValid

func (v DirectDebitType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (DirectDebitType) Ptr

Ptr returns reference to DirectDebitType value

func (DirectDebitType) String

func (v DirectDebitType) String() string

func (*DirectDebitType) UnmarshalJSON

func (v *DirectDebitType) UnmarshalJSON(src []byte) error

type Ewallet

type Ewallet struct {
	EwalletType EwalletType `json:"ewallet_type"`
}

Ewallet An object representing e-wallet details for invoices.

func NewEwallet

func NewEwallet(ewalletType EwalletType) *Ewallet

NewEwallet instantiates a new Ewallet object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewEwalletWithDefaults

func NewEwalletWithDefaults() *Ewallet

NewEwalletWithDefaults instantiates a new Ewallet object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Ewallet) GetEwalletType

func (o *Ewallet) GetEwalletType() EwalletType

GetEwalletType returns the EwalletType field value

func (*Ewallet) GetEwalletTypeOk

func (o *Ewallet) GetEwalletTypeOk() (*EwalletType, bool)

GetEwalletTypeOk returns a tuple with the EwalletType field value and a boolean to check if the value has been set.

func (Ewallet) MarshalJSON

func (o Ewallet) MarshalJSON() ([]byte, error)

func (*Ewallet) SetEwalletType

func (o *Ewallet) SetEwalletType(v EwalletType)

SetEwalletType sets field value

func (Ewallet) ToMap

func (o Ewallet) ToMap() (map[string]interface{}, error)

type EwalletType

type EwalletType string

EwalletType Representing the available eWallet channels used for invoice-related transactions.

const (
	EWALLETTYPE_OVO                          EwalletType = "OVO"
	EWALLETTYPE_DANA                         EwalletType = "DANA"
	EWALLETTYPE_LINKAJA                      EwalletType = "LINKAJA"
	EWALLETTYPE_PAYMAYA                      EwalletType = "PAYMAYA"
	EWALLETTYPE_SHOPEEPAY                    EwalletType = "SHOPEEPAY"
	EWALLETTYPE_GCASH                        EwalletType = "GCASH"
	EWALLETTYPE_GRABPAY                      EwalletType = "GRABPAY"
	EWALLETTYPE_ASTRAPAY                     EwalletType = "ASTRAPAY"
	EWALLETTYPE_NEXCASH                      EwalletType = "NEXCASH"
	EWALLETTYPE_JENIUSPAY                    EwalletType = "JENIUSPAY"
	EWALLETTYPE_MOMO                         EwalletType = "MOMO"
	EWALLETTYPE_ZALOPAY                      EwalletType = "ZALOPAY"
	EWALLETTYPE_VIETTELPAY                   EwalletType = "VIETTELPAY"
	EWALLETTYPE_VNPTWALLET                   EwalletType = "VNPTWALLET"
	EWALLETTYPE_APPOTA                       EwalletType = "APPOTA"
	EWALLETTYPE_LINEPAY                      EwalletType = "LINEPAY"
	EWALLETTYPE_TRUEMONEY                    EwalletType = "TRUEMONEY"
	EWALLETTYPE_WECHATPAY                    EwalletType = "WECHATPAY"
	EWALLETTYPE_TOUCHNGO                     EwalletType = "TOUCHNGO"
	EWALLETTYPE_XENDIT_ENUM_DEFAULT_FALLBACK EwalletType = "UNKNOWN_ENUM_VALUE"
)

List of EwalletType

func NewEwalletTypeFromValue

func NewEwalletTypeFromValue(v string) (*EwalletType, error)

NewEwalletTypeFromValue returns a pointer to a valid EwalletType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (EwalletType) IsValid

func (v EwalletType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (EwalletType) Ptr

func (v EwalletType) Ptr() *EwalletType

Ptr returns reference to EwalletType value

func (EwalletType) String

func (v EwalletType) String() string

func (*EwalletType) UnmarshalJSON

func (v *EwalletType) UnmarshalJSON(src []byte) error

type ForbiddenError

type ForbiddenError struct {
	// The specific error code indicating that access to the invoice operation is suspended.
	ErrorCode string `json:"error_code"`
	// A human-readable error message providing additional context about the 403 Forbidden response.
	Message string `json:"message"`
}

ForbiddenError An error object used to indicate a 403 Forbidden response related to invoice operations.

func NewForbiddenError

func NewForbiddenError(errorCode string, message string) *ForbiddenError

NewForbiddenError instantiates a new ForbiddenError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewForbiddenErrorWithDefaults

func NewForbiddenErrorWithDefaults() *ForbiddenError

NewForbiddenErrorWithDefaults instantiates a new ForbiddenError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ForbiddenError) GetErrorCode

func (o *ForbiddenError) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*ForbiddenError) GetErrorCodeOk

func (o *ForbiddenError) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*ForbiddenError) GetMessage

func (o *ForbiddenError) GetMessage() string

GetMessage returns the Message field value

func (*ForbiddenError) GetMessageOk

func (o *ForbiddenError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (ForbiddenError) MarshalJSON

func (o ForbiddenError) MarshalJSON() ([]byte, error)

func (*ForbiddenError) SetErrorCode

func (o *ForbiddenError) SetErrorCode(v string)

SetErrorCode sets field value

func (*ForbiddenError) SetMessage

func (o *ForbiddenError) SetMessage(v string)

SetMessage sets field value

func (ForbiddenError) ToMap

func (o ForbiddenError) ToMap() (map[string]interface{}, error)

type Invoice

type Invoice struct {
	// The unique identifier for the invoice.
	Id *string `json:"id,omitempty"`
	// The external identifier for the invoice.
	ExternalId string `json:"external_id"`
	// The user ID associated with the invoice.
	UserId string `json:"user_id"`
	// The email address of the payer.
	PayerEmail *string `json:"payer_email,omitempty"`
	// A description of the invoice.
	Description   *string               `json:"description,omitempty"`
	PaymentMethod *InvoicePaymentMethod `json:"payment_method,omitempty"`
	Status        InvoiceStatus         `json:"status"`
	// The name of the merchant.
	MerchantName string `json:"merchant_name"`
	// The URL of the merchant's profile picture.
	MerchantProfilePictureUrl string `json:"merchant_profile_picture_url"`
	// The locale or language used for the invoice.
	Locale *string `json:"locale,omitempty"`
	// The total amount of the invoice.
	Amount float64 `json:"amount"`
	// Representing a date and time in ISO 8601 format.
	ExpiryDate time.Time `json:"expiry_date"`
	// The URL to view the invoice.
	InvoiceUrl string `json:"invoice_url"`
	// An array of available banks for payment.
	AvailableBanks []Bank `json:"available_banks"`
	// An array of available retail outlets for payment.
	AvailableRetailOutlets []RetailOutlet `json:"available_retail_outlets"`
	// An array of available e-wallets for payment.
	AvailableEwallets []Ewallet `json:"available_ewallets"`
	// An array of available QR codes for payment.
	AvailableQrCodes []QrCode `json:"available_qr_codes"`
	// An array of available direct debit options for payment.
	AvailableDirectDebits []DirectDebit `json:"available_direct_debits"`
	// An array of available pay-later options for payment.
	AvailablePaylaters []Paylater `json:"available_paylaters"`
	// Indicates whether credit card payments should be excluded.
	ShouldExcludeCreditCard *bool `json:"should_exclude_credit_card,omitempty"`
	// Indicates whether email notifications should be sent.
	ShouldSendEmail bool `json:"should_send_email"`
	// Representing a date and time in ISO 8601 format.
	Created time.Time `json:"created"`
	// Representing a date and time in ISO 8601 format.
	Updated time.Time `json:"updated"`
	// The URL to redirect to on successful payment.
	SuccessRedirectUrl *string `json:"success_redirect_url,omitempty"`
	// The URL to redirect to on payment failure.
	FailureRedirectUrl *string `json:"failure_redirect_url,omitempty"`
	// Indicates whether credit card authentication is required.
	ShouldAuthenticateCreditCard *bool            `json:"should_authenticate_credit_card,omitempty"`
	Currency                     *InvoiceCurrency `json:"currency,omitempty"`
	// An array of items included in the invoice.
	Items []InvoiceItem `json:"items,omitempty"`
	// Indicates whether the virtual account is fixed.
	FixedVa *bool `json:"fixed_va,omitempty"`
	// Representing a date and time in ISO 8601 format.
	ReminderDate                   *time.Time              `json:"reminder_date,omitempty"`
	Customer                       *CustomerObject         `json:"customer,omitempty"`
	CustomerNotificationPreference *NotificationPreference `json:"customer_notification_preference,omitempty"`
	// An array of fees associated with the invoice.
	Fees              []InvoiceFee       `json:"fees,omitempty"`
	ChannelProperties *ChannelProperties `json:"channel_properties,omitempty"`
}

Invoice An object representing details for an invoice.

func NewInvoice

func NewInvoice(externalId string, userId string, status InvoiceStatus, merchantName string, merchantProfilePictureUrl string, amount float64, expiryDate time.Time, invoiceUrl string, availableBanks []Bank, availableRetailOutlets []RetailOutlet, availableEwallets []Ewallet, availableQrCodes []QrCode, availableDirectDebits []DirectDebit, availablePaylaters []Paylater, shouldSendEmail bool, created time.Time, updated time.Time) *Invoice

NewInvoice instantiates a new Invoice object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceWithDefaults

func NewInvoiceWithDefaults() *Invoice

NewInvoiceWithDefaults instantiates a new Invoice object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Invoice) GetAmount

func (o *Invoice) GetAmount() float64

GetAmount returns the Amount field value

func (*Invoice) GetAmountOk

func (o *Invoice) GetAmountOk() (*float64, bool)

GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.

func (*Invoice) GetAvailableBanks

func (o *Invoice) GetAvailableBanks() []Bank

GetAvailableBanks returns the AvailableBanks field value

func (*Invoice) GetAvailableBanksOk

func (o *Invoice) GetAvailableBanksOk() ([]Bank, bool)

GetAvailableBanksOk returns a tuple with the AvailableBanks field value and a boolean to check if the value has been set.

func (*Invoice) GetAvailableDirectDebits

func (o *Invoice) GetAvailableDirectDebits() []DirectDebit

GetAvailableDirectDebits returns the AvailableDirectDebits field value

func (*Invoice) GetAvailableDirectDebitsOk

func (o *Invoice) GetAvailableDirectDebitsOk() ([]DirectDebit, bool)

GetAvailableDirectDebitsOk returns a tuple with the AvailableDirectDebits field value and a boolean to check if the value has been set.

func (*Invoice) GetAvailableEwallets

func (o *Invoice) GetAvailableEwallets() []Ewallet

GetAvailableEwallets returns the AvailableEwallets field value

func (*Invoice) GetAvailableEwalletsOk

func (o *Invoice) GetAvailableEwalletsOk() ([]Ewallet, bool)

GetAvailableEwalletsOk returns a tuple with the AvailableEwallets field value and a boolean to check if the value has been set.

func (*Invoice) GetAvailablePaylaters

func (o *Invoice) GetAvailablePaylaters() []Paylater

GetAvailablePaylaters returns the AvailablePaylaters field value

func (*Invoice) GetAvailablePaylatersOk

func (o *Invoice) GetAvailablePaylatersOk() ([]Paylater, bool)

GetAvailablePaylatersOk returns a tuple with the AvailablePaylaters field value and a boolean to check if the value has been set.

func (*Invoice) GetAvailableQrCodes

func (o *Invoice) GetAvailableQrCodes() []QrCode

GetAvailableQrCodes returns the AvailableQrCodes field value

func (*Invoice) GetAvailableQrCodesOk

func (o *Invoice) GetAvailableQrCodesOk() ([]QrCode, bool)

GetAvailableQrCodesOk returns a tuple with the AvailableQrCodes field value and a boolean to check if the value has been set.

func (*Invoice) GetAvailableRetailOutlets

func (o *Invoice) GetAvailableRetailOutlets() []RetailOutlet

GetAvailableRetailOutlets returns the AvailableRetailOutlets field value

func (*Invoice) GetAvailableRetailOutletsOk

func (o *Invoice) GetAvailableRetailOutletsOk() ([]RetailOutlet, bool)

GetAvailableRetailOutletsOk returns a tuple with the AvailableRetailOutlets field value and a boolean to check if the value has been set.

func (*Invoice) GetChannelProperties added in v4.3.0

func (o *Invoice) GetChannelProperties() ChannelProperties

GetChannelProperties returns the ChannelProperties field value if set, zero value otherwise.

func (*Invoice) GetChannelPropertiesOk added in v4.3.0

func (o *Invoice) GetChannelPropertiesOk() (*ChannelProperties, bool)

GetChannelPropertiesOk returns a tuple with the ChannelProperties field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetCreated

func (o *Invoice) GetCreated() time.Time

GetCreated returns the Created field value

func (*Invoice) GetCreatedOk

func (o *Invoice) GetCreatedOk() (*time.Time, bool)

GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.

func (*Invoice) GetCurrency

func (o *Invoice) GetCurrency() InvoiceCurrency

GetCurrency returns the Currency field value if set, zero value otherwise.

func (*Invoice) GetCurrencyOk

func (o *Invoice) GetCurrencyOk() (*InvoiceCurrency, bool)

GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetCustomer

func (o *Invoice) GetCustomer() CustomerObject

GetCustomer returns the Customer field value if set, zero value otherwise.

func (*Invoice) GetCustomerNotificationPreference

func (o *Invoice) GetCustomerNotificationPreference() NotificationPreference

GetCustomerNotificationPreference returns the CustomerNotificationPreference field value if set, zero value otherwise.

func (*Invoice) GetCustomerNotificationPreferenceOk

func (o *Invoice) GetCustomerNotificationPreferenceOk() (*NotificationPreference, bool)

GetCustomerNotificationPreferenceOk returns a tuple with the CustomerNotificationPreference field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetCustomerOk

func (o *Invoice) GetCustomerOk() (*CustomerObject, bool)

GetCustomerOk returns a tuple with the Customer field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetDescription

func (o *Invoice) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Invoice) GetDescriptionOk

func (o *Invoice) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetExpiryDate

func (o *Invoice) GetExpiryDate() time.Time

GetExpiryDate returns the ExpiryDate field value

func (*Invoice) GetExpiryDateOk

func (o *Invoice) GetExpiryDateOk() (*time.Time, bool)

GetExpiryDateOk returns a tuple with the ExpiryDate field value and a boolean to check if the value has been set.

func (*Invoice) GetExternalId

func (o *Invoice) GetExternalId() string

GetExternalId returns the ExternalId field value

func (*Invoice) GetExternalIdOk

func (o *Invoice) GetExternalIdOk() (*string, bool)

GetExternalIdOk returns a tuple with the ExternalId field value and a boolean to check if the value has been set.

func (*Invoice) GetFailureRedirectUrl

func (o *Invoice) GetFailureRedirectUrl() string

GetFailureRedirectUrl returns the FailureRedirectUrl field value if set, zero value otherwise.

func (*Invoice) GetFailureRedirectUrlOk

func (o *Invoice) GetFailureRedirectUrlOk() (*string, bool)

GetFailureRedirectUrlOk returns a tuple with the FailureRedirectUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetFees

func (o *Invoice) GetFees() []InvoiceFee

GetFees returns the Fees field value if set, zero value otherwise.

func (*Invoice) GetFeesOk

func (o *Invoice) GetFeesOk() ([]InvoiceFee, bool)

GetFeesOk returns a tuple with the Fees field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetFixedVa

func (o *Invoice) GetFixedVa() bool

GetFixedVa returns the FixedVa field value if set, zero value otherwise.

func (*Invoice) GetFixedVaOk

func (o *Invoice) GetFixedVaOk() (*bool, bool)

GetFixedVaOk returns a tuple with the FixedVa field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetId

func (o *Invoice) GetId() string

GetId returns the Id field value if set, zero value otherwise.

func (*Invoice) GetIdOk

func (o *Invoice) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetInvoiceUrl

func (o *Invoice) GetInvoiceUrl() string

GetInvoiceUrl returns the InvoiceUrl field value

func (*Invoice) GetInvoiceUrlOk

func (o *Invoice) GetInvoiceUrlOk() (*string, bool)

GetInvoiceUrlOk returns a tuple with the InvoiceUrl field value and a boolean to check if the value has been set.

func (*Invoice) GetItems

func (o *Invoice) GetItems() []InvoiceItem

GetItems returns the Items field value if set, zero value otherwise.

func (*Invoice) GetItemsOk

func (o *Invoice) GetItemsOk() ([]InvoiceItem, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetLocale

func (o *Invoice) GetLocale() string

GetLocale returns the Locale field value if set, zero value otherwise.

func (*Invoice) GetLocaleOk

func (o *Invoice) GetLocaleOk() (*string, bool)

GetLocaleOk returns a tuple with the Locale field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetMerchantName

func (o *Invoice) GetMerchantName() string

GetMerchantName returns the MerchantName field value

func (*Invoice) GetMerchantNameOk

func (o *Invoice) GetMerchantNameOk() (*string, bool)

GetMerchantNameOk returns a tuple with the MerchantName field value and a boolean to check if the value has been set.

func (*Invoice) GetMerchantProfilePictureUrl

func (o *Invoice) GetMerchantProfilePictureUrl() string

GetMerchantProfilePictureUrl returns the MerchantProfilePictureUrl field value

func (*Invoice) GetMerchantProfilePictureUrlOk

func (o *Invoice) GetMerchantProfilePictureUrlOk() (*string, bool)

GetMerchantProfilePictureUrlOk returns a tuple with the MerchantProfilePictureUrl field value and a boolean to check if the value has been set.

func (*Invoice) GetPayerEmail

func (o *Invoice) GetPayerEmail() string

GetPayerEmail returns the PayerEmail field value if set, zero value otherwise.

func (*Invoice) GetPayerEmailOk

func (o *Invoice) GetPayerEmailOk() (*string, bool)

GetPayerEmailOk returns a tuple with the PayerEmail field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetPaymentMethod

func (o *Invoice) GetPaymentMethod() InvoicePaymentMethod

GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise.

func (*Invoice) GetPaymentMethodOk

func (o *Invoice) GetPaymentMethodOk() (*InvoicePaymentMethod, bool)

GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetReminderDate

func (o *Invoice) GetReminderDate() time.Time

GetReminderDate returns the ReminderDate field value if set, zero value otherwise.

func (*Invoice) GetReminderDateOk

func (o *Invoice) GetReminderDateOk() (*time.Time, bool)

GetReminderDateOk returns a tuple with the ReminderDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetShouldAuthenticateCreditCard

func (o *Invoice) GetShouldAuthenticateCreditCard() bool

GetShouldAuthenticateCreditCard returns the ShouldAuthenticateCreditCard field value if set, zero value otherwise.

func (*Invoice) GetShouldAuthenticateCreditCardOk

func (o *Invoice) GetShouldAuthenticateCreditCardOk() (*bool, bool)

GetShouldAuthenticateCreditCardOk returns a tuple with the ShouldAuthenticateCreditCard field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetShouldExcludeCreditCard

func (o *Invoice) GetShouldExcludeCreditCard() bool

GetShouldExcludeCreditCard returns the ShouldExcludeCreditCard field value if set, zero value otherwise.

func (*Invoice) GetShouldExcludeCreditCardOk

func (o *Invoice) GetShouldExcludeCreditCardOk() (*bool, bool)

GetShouldExcludeCreditCardOk returns a tuple with the ShouldExcludeCreditCard field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetShouldSendEmail

func (o *Invoice) GetShouldSendEmail() bool

GetShouldSendEmail returns the ShouldSendEmail field value

func (*Invoice) GetShouldSendEmailOk

func (o *Invoice) GetShouldSendEmailOk() (*bool, bool)

GetShouldSendEmailOk returns a tuple with the ShouldSendEmail field value and a boolean to check if the value has been set.

func (*Invoice) GetStatus

func (o *Invoice) GetStatus() InvoiceStatus

GetStatus returns the Status field value

func (*Invoice) GetStatusOk

func (o *Invoice) GetStatusOk() (*InvoiceStatus, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*Invoice) GetSuccessRedirectUrl

func (o *Invoice) GetSuccessRedirectUrl() string

GetSuccessRedirectUrl returns the SuccessRedirectUrl field value if set, zero value otherwise.

func (*Invoice) GetSuccessRedirectUrlOk

func (o *Invoice) GetSuccessRedirectUrlOk() (*string, bool)

GetSuccessRedirectUrlOk returns a tuple with the SuccessRedirectUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Invoice) GetUpdated

func (o *Invoice) GetUpdated() time.Time

GetUpdated returns the Updated field value

func (*Invoice) GetUpdatedOk

func (o *Invoice) GetUpdatedOk() (*time.Time, bool)

GetUpdatedOk returns a tuple with the Updated field value and a boolean to check if the value has been set.

func (*Invoice) GetUserId

func (o *Invoice) GetUserId() string

GetUserId returns the UserId field value

func (*Invoice) GetUserIdOk

func (o *Invoice) GetUserIdOk() (*string, bool)

GetUserIdOk returns a tuple with the UserId field value and a boolean to check if the value has been set.

func (*Invoice) HasChannelProperties added in v4.3.0

func (o *Invoice) HasChannelProperties() bool

HasChannelProperties returns a boolean if a field has been set.

func (*Invoice) HasCurrency

func (o *Invoice) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*Invoice) HasCustomer

func (o *Invoice) HasCustomer() bool

HasCustomer returns a boolean if a field has been set.

func (*Invoice) HasCustomerNotificationPreference

func (o *Invoice) HasCustomerNotificationPreference() bool

HasCustomerNotificationPreference returns a boolean if a field has been set.

func (*Invoice) HasDescription

func (o *Invoice) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*Invoice) HasFailureRedirectUrl

func (o *Invoice) HasFailureRedirectUrl() bool

HasFailureRedirectUrl returns a boolean if a field has been set.

func (*Invoice) HasFees

func (o *Invoice) HasFees() bool

HasFees returns a boolean if a field has been set.

func (*Invoice) HasFixedVa

func (o *Invoice) HasFixedVa() bool

HasFixedVa returns a boolean if a field has been set.

func (*Invoice) HasId

func (o *Invoice) HasId() bool

HasId returns a boolean if a field has been set.

func (*Invoice) HasItems

func (o *Invoice) HasItems() bool

HasItems returns a boolean if a field has been set.

func (*Invoice) HasLocale

func (o *Invoice) HasLocale() bool

HasLocale returns a boolean if a field has been set.

func (*Invoice) HasPayerEmail

func (o *Invoice) HasPayerEmail() bool

HasPayerEmail returns a boolean if a field has been set.

func (*Invoice) HasPaymentMethod

func (o *Invoice) HasPaymentMethod() bool

HasPaymentMethod returns a boolean if a field has been set.

func (*Invoice) HasReminderDate

func (o *Invoice) HasReminderDate() bool

HasReminderDate returns a boolean if a field has been set.

func (*Invoice) HasShouldAuthenticateCreditCard

func (o *Invoice) HasShouldAuthenticateCreditCard() bool

HasShouldAuthenticateCreditCard returns a boolean if a field has been set.

func (*Invoice) HasShouldExcludeCreditCard

func (o *Invoice) HasShouldExcludeCreditCard() bool

HasShouldExcludeCreditCard returns a boolean if a field has been set.

func (*Invoice) HasSuccessRedirectUrl

func (o *Invoice) HasSuccessRedirectUrl() bool

HasSuccessRedirectUrl returns a boolean if a field has been set.

func (Invoice) MarshalJSON

func (o Invoice) MarshalJSON() ([]byte, error)

func (*Invoice) SetAmount

func (o *Invoice) SetAmount(v float64)

SetAmount sets field value

func (*Invoice) SetAvailableBanks

func (o *Invoice) SetAvailableBanks(v []Bank)

SetAvailableBanks sets field value

func (*Invoice) SetAvailableDirectDebits

func (o *Invoice) SetAvailableDirectDebits(v []DirectDebit)

SetAvailableDirectDebits sets field value

func (*Invoice) SetAvailableEwallets

func (o *Invoice) SetAvailableEwallets(v []Ewallet)

SetAvailableEwallets sets field value

func (*Invoice) SetAvailablePaylaters

func (o *Invoice) SetAvailablePaylaters(v []Paylater)

SetAvailablePaylaters sets field value

func (*Invoice) SetAvailableQrCodes

func (o *Invoice) SetAvailableQrCodes(v []QrCode)

SetAvailableQrCodes sets field value

func (*Invoice) SetAvailableRetailOutlets

func (o *Invoice) SetAvailableRetailOutlets(v []RetailOutlet)

SetAvailableRetailOutlets sets field value

func (*Invoice) SetChannelProperties added in v4.3.0

func (o *Invoice) SetChannelProperties(v ChannelProperties)

SetChannelProperties gets a reference to the given ChannelProperties and assigns it to the ChannelProperties field.

func (*Invoice) SetCreated

func (o *Invoice) SetCreated(v time.Time)

SetCreated sets field value

func (*Invoice) SetCurrency

func (o *Invoice) SetCurrency(v InvoiceCurrency)

SetCurrency gets a reference to the given InvoiceCurrency and assigns it to the Currency field.

func (*Invoice) SetCustomer

func (o *Invoice) SetCustomer(v CustomerObject)

SetCustomer gets a reference to the given CustomerObject and assigns it to the Customer field.

func (*Invoice) SetCustomerNotificationPreference

func (o *Invoice) SetCustomerNotificationPreference(v NotificationPreference)

SetCustomerNotificationPreference gets a reference to the given NotificationPreference and assigns it to the CustomerNotificationPreference field.

func (*Invoice) SetDescription

func (o *Invoice) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Invoice) SetExpiryDate

func (o *Invoice) SetExpiryDate(v time.Time)

SetExpiryDate sets field value

func (*Invoice) SetExternalId

func (o *Invoice) SetExternalId(v string)

SetExternalId sets field value

func (*Invoice) SetFailureRedirectUrl

func (o *Invoice) SetFailureRedirectUrl(v string)

SetFailureRedirectUrl gets a reference to the given string and assigns it to the FailureRedirectUrl field.

func (*Invoice) SetFees

func (o *Invoice) SetFees(v []InvoiceFee)

SetFees gets a reference to the given []InvoiceFee and assigns it to the Fees field.

func (*Invoice) SetFixedVa

func (o *Invoice) SetFixedVa(v bool)

SetFixedVa gets a reference to the given bool and assigns it to the FixedVa field.

func (*Invoice) SetId

func (o *Invoice) SetId(v string)

SetId gets a reference to the given string and assigns it to the Id field.

func (*Invoice) SetInvoiceUrl

func (o *Invoice) SetInvoiceUrl(v string)

SetInvoiceUrl sets field value

func (*Invoice) SetItems

func (o *Invoice) SetItems(v []InvoiceItem)

SetItems gets a reference to the given []InvoiceItem and assigns it to the Items field.

func (*Invoice) SetLocale

func (o *Invoice) SetLocale(v string)

SetLocale gets a reference to the given string and assigns it to the Locale field.

func (*Invoice) SetMerchantName

func (o *Invoice) SetMerchantName(v string)

SetMerchantName sets field value

func (*Invoice) SetMerchantProfilePictureUrl

func (o *Invoice) SetMerchantProfilePictureUrl(v string)

SetMerchantProfilePictureUrl sets field value

func (*Invoice) SetPayerEmail

func (o *Invoice) SetPayerEmail(v string)

SetPayerEmail gets a reference to the given string and assigns it to the PayerEmail field.

func (*Invoice) SetPaymentMethod

func (o *Invoice) SetPaymentMethod(v InvoicePaymentMethod)

SetPaymentMethod gets a reference to the given InvoicePaymentMethod and assigns it to the PaymentMethod field.

func (*Invoice) SetReminderDate

func (o *Invoice) SetReminderDate(v time.Time)

SetReminderDate gets a reference to the given time.Time and assigns it to the ReminderDate field.

func (*Invoice) SetShouldAuthenticateCreditCard

func (o *Invoice) SetShouldAuthenticateCreditCard(v bool)

SetShouldAuthenticateCreditCard gets a reference to the given bool and assigns it to the ShouldAuthenticateCreditCard field.

func (*Invoice) SetShouldExcludeCreditCard

func (o *Invoice) SetShouldExcludeCreditCard(v bool)

SetShouldExcludeCreditCard gets a reference to the given bool and assigns it to the ShouldExcludeCreditCard field.

func (*Invoice) SetShouldSendEmail

func (o *Invoice) SetShouldSendEmail(v bool)

SetShouldSendEmail sets field value

func (*Invoice) SetStatus

func (o *Invoice) SetStatus(v InvoiceStatus)

SetStatus sets field value

func (*Invoice) SetSuccessRedirectUrl

func (o *Invoice) SetSuccessRedirectUrl(v string)

SetSuccessRedirectUrl gets a reference to the given string and assigns it to the SuccessRedirectUrl field.

func (*Invoice) SetUpdated

func (o *Invoice) SetUpdated(v time.Time)

SetUpdated sets field value

func (*Invoice) SetUserId

func (o *Invoice) SetUserId(v string)

SetUserId sets field value

func (Invoice) ToMap

func (o Invoice) ToMap() (map[string]interface{}, error)

type InvoiceApi

type InvoiceApi interface {

	/*
		CreateInvoice Create an invoice

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiCreateInvoiceRequest
	*/
	CreateInvoice(ctx context.Context) ApiCreateInvoiceRequest

	// CreateInvoiceExecute executes the request
	//  @return Invoice
	CreateInvoiceExecute(r ApiCreateInvoiceRequest) (*Invoice, *http.Response, *common.XenditSdkError)

	/*
		GetInvoiceById Get invoice by invoice id

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param invoiceId Invoice ID
		@return ApiGetInvoiceByIdRequest
	*/
	GetInvoiceById(ctx context.Context, invoiceId string) ApiGetInvoiceByIdRequest

	// GetInvoiceByIdExecute executes the request
	//  @return Invoice
	GetInvoiceByIdExecute(r ApiGetInvoiceByIdRequest) (*Invoice, *http.Response, *common.XenditSdkError)

	/*
		GetInvoices Get all Invoices

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@return ApiGetInvoicesRequest
	*/
	GetInvoices(ctx context.Context) ApiGetInvoicesRequest

	// GetInvoicesExecute executes the request
	//  @return []Invoice
	GetInvoicesExecute(r ApiGetInvoicesRequest) ([]Invoice, *http.Response, *common.XenditSdkError)

	/*
		ExpireInvoice Manually expire an invoice

		@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
		@param invoiceId Invoice ID to be expired
		@return ApiExpireInvoiceRequest
	*/
	ExpireInvoice(ctx context.Context, invoiceId string) ApiExpireInvoiceRequest

	// ExpireInvoiceExecute executes the request
	//  @return Invoice
	ExpireInvoiceExecute(r ApiExpireInvoiceRequest) (*Invoice, *http.Response, *common.XenditSdkError)
}

func NewInvoiceApi

func NewInvoiceApi(client common.IClient) InvoiceApi

NewInvoiceApi Create a new InvoiceApi service

type InvoiceApiService

type InvoiceApiService struct {
	// contains filtered or unexported fields
}

InvoiceApiService InvoiceApi service

func (*InvoiceApiService) CreateInvoice

CreateInvoice Create an invoice

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiCreateInvoiceRequest

func (*InvoiceApiService) CreateInvoiceExecute

Execute executes the request

@return Invoice

func (*InvoiceApiService) ExpireInvoice

func (a *InvoiceApiService) ExpireInvoice(ctx context.Context, invoiceId string) ApiExpireInvoiceRequest

ExpireInvoice Manually expire an invoice

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param invoiceId Invoice ID to be expired
@return ApiExpireInvoiceRequest

func (*InvoiceApiService) ExpireInvoiceExecute

Execute executes the request

@return Invoice

func (*InvoiceApiService) GetInvoiceById

func (a *InvoiceApiService) GetInvoiceById(ctx context.Context, invoiceId string) ApiGetInvoiceByIdRequest

GetInvoiceById Get invoice by invoice id

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@param invoiceId Invoice ID
@return ApiGetInvoiceByIdRequest

func (*InvoiceApiService) GetInvoiceByIdExecute

Execute executes the request

@return Invoice

func (*InvoiceApiService) GetInvoices

GetInvoices Get all Invoices

@param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
@return ApiGetInvoicesRequest

func (*InvoiceApiService) GetInvoicesExecute

Execute executes the request

@return []Invoice

type InvoiceCallback

type InvoiceCallback struct {
	// An invoice ID generated by Xendit
	Id string `json:"id"`
	// ID of your choice (typically the unique identifier of an invoice in your system)
	ExternalId string `json:"external_id"`
	// Xendit Business ID
	UserId string `json:"user_id"`
	// The status of the invoice.
	Status string `json:"status"`
	// The name of company or website
	MerchantName string `json:"merchant_name"`
	// Nominal amount for the invoice
	Amount float64 `json:"amount"`
	// Email of the payer
	PayerEmail *string `json:"payer_email,omitempty"`
	// Description for the invoice
	Description *string `json:"description,omitempty"`
	// Total amount paid for the invoice
	PaidAmount *float64 `json:"paid_amount,omitempty"`
	// The date and time when the invoice was created.
	Created string `json:"created"`
	// The date and time when the invoice was last updated.
	Updated string `json:"updated"`
	// The currency of the invoice.
	Currency string `json:"currency"`
	// The date and time when the invoice was paid.
	PaidAt *string `json:"paid_at,omitempty"`
	// The payment method used for the invoice.
	PaymentMethod *string `json:"payment_method,omitempty"`
	// The payment channel.
	PaymentChannel *string `json:"payment_channel,omitempty"`
	// The payment destination.
	PaymentDestination *string         `json:"payment_destination,omitempty"`
	PaymentDetails     *PaymentDetails `json:"payment_details,omitempty"`
	// The ID of the payment.
	PaymentId *string `json:"payment_id,omitempty"`
	// The URL to redirect to on successful payment.
	SuccessRedirectUrl *string `json:"success_redirect_url,omitempty"`
	// The URL to redirect to on payment failure.
	FailureRedirectUrl *string `json:"failure_redirect_url,omitempty"`
	// The ID associated with a credit card charge (if applicable).
	CreditCardChargeId *string               `json:"credit_card_charge_id,omitempty"`
	Items              []InvoiceCallbackItem `json:"items,omitempty"`
	// An array of fees associated with the invoice.
	Fees []InvoiceFee `json:"fees,omitempty"`
	// Indicates whether credit card authentication is required.
	ShouldAuthenticateCreditCard *bool `json:"should_authenticate_credit_card,omitempty"`
	// The bank code for the bank details.
	BankCode *string `json:"bank_code,omitempty"`
	// The type of eWallet.
	EwalletType *string `json:"ewallet_type,omitempty"`
	// The on-demand link.
	OnDemandLink *string `json:"on_demand_link,omitempty"`
	// The ID of the recurring payment.
	RecurringPaymentId *string `json:"recurring_payment_id,omitempty"`
}

InvoiceCallback Invoice Callback Object

func NewInvoiceCallback

func NewInvoiceCallback(id string, externalId string, userId string, status string, merchantName string, amount float64, created string, updated string, currency string) *InvoiceCallback

NewInvoiceCallback instantiates a new InvoiceCallback object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceCallbackWithDefaults

func NewInvoiceCallbackWithDefaults() *InvoiceCallback

NewInvoiceCallbackWithDefaults instantiates a new InvoiceCallback object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoiceCallback) GetAmount

func (o *InvoiceCallback) GetAmount() float64

GetAmount returns the Amount field value

func (*InvoiceCallback) GetAmountOk

func (o *InvoiceCallback) GetAmountOk() (*float64, bool)

GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.

func (*InvoiceCallback) GetBankCode

func (o *InvoiceCallback) GetBankCode() string

GetBankCode returns the BankCode field value if set, zero value otherwise.

func (*InvoiceCallback) GetBankCodeOk

func (o *InvoiceCallback) GetBankCodeOk() (*string, bool)

GetBankCodeOk returns a tuple with the BankCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetCreated

func (o *InvoiceCallback) GetCreated() string

GetCreated returns the Created field value

func (*InvoiceCallback) GetCreatedOk

func (o *InvoiceCallback) GetCreatedOk() (*string, bool)

GetCreatedOk returns a tuple with the Created field value and a boolean to check if the value has been set.

func (*InvoiceCallback) GetCreditCardChargeId

func (o *InvoiceCallback) GetCreditCardChargeId() string

GetCreditCardChargeId returns the CreditCardChargeId field value if set, zero value otherwise.

func (*InvoiceCallback) GetCreditCardChargeIdOk

func (o *InvoiceCallback) GetCreditCardChargeIdOk() (*string, bool)

GetCreditCardChargeIdOk returns a tuple with the CreditCardChargeId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetCurrency

func (o *InvoiceCallback) GetCurrency() string

GetCurrency returns the Currency field value

func (*InvoiceCallback) GetCurrencyOk

func (o *InvoiceCallback) GetCurrencyOk() (*string, bool)

GetCurrencyOk returns a tuple with the Currency field value and a boolean to check if the value has been set.

func (*InvoiceCallback) GetDescription

func (o *InvoiceCallback) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*InvoiceCallback) GetDescriptionOk

func (o *InvoiceCallback) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetEwalletType

func (o *InvoiceCallback) GetEwalletType() string

GetEwalletType returns the EwalletType field value if set, zero value otherwise.

func (*InvoiceCallback) GetEwalletTypeOk

func (o *InvoiceCallback) GetEwalletTypeOk() (*string, bool)

GetEwalletTypeOk returns a tuple with the EwalletType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetExternalId

func (o *InvoiceCallback) GetExternalId() string

GetExternalId returns the ExternalId field value

func (*InvoiceCallback) GetExternalIdOk

func (o *InvoiceCallback) GetExternalIdOk() (*string, bool)

GetExternalIdOk returns a tuple with the ExternalId field value and a boolean to check if the value has been set.

func (*InvoiceCallback) GetFailureRedirectUrl

func (o *InvoiceCallback) GetFailureRedirectUrl() string

GetFailureRedirectUrl returns the FailureRedirectUrl field value if set, zero value otherwise.

func (*InvoiceCallback) GetFailureRedirectUrlOk

func (o *InvoiceCallback) GetFailureRedirectUrlOk() (*string, bool)

GetFailureRedirectUrlOk returns a tuple with the FailureRedirectUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetFees

func (o *InvoiceCallback) GetFees() []InvoiceFee

GetFees returns the Fees field value if set, zero value otherwise.

func (*InvoiceCallback) GetFeesOk

func (o *InvoiceCallback) GetFeesOk() ([]InvoiceFee, bool)

GetFeesOk returns a tuple with the Fees field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetId

func (o *InvoiceCallback) GetId() string

GetId returns the Id field value

func (*InvoiceCallback) GetIdOk

func (o *InvoiceCallback) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*InvoiceCallback) GetItems

func (o *InvoiceCallback) GetItems() []InvoiceCallbackItem

GetItems returns the Items field value if set, zero value otherwise.

func (*InvoiceCallback) GetItemsOk

func (o *InvoiceCallback) GetItemsOk() ([]InvoiceCallbackItem, bool)

GetItemsOk returns a tuple with the Items field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetMerchantName

func (o *InvoiceCallback) GetMerchantName() string

GetMerchantName returns the MerchantName field value

func (*InvoiceCallback) GetMerchantNameOk

func (o *InvoiceCallback) GetMerchantNameOk() (*string, bool)

GetMerchantNameOk returns a tuple with the MerchantName field value and a boolean to check if the value has been set.

func (o *InvoiceCallback) GetOnDemandLink() string

GetOnDemandLink returns the OnDemandLink field value if set, zero value otherwise.

func (*InvoiceCallback) GetOnDemandLinkOk

func (o *InvoiceCallback) GetOnDemandLinkOk() (*string, bool)

GetOnDemandLinkOk returns a tuple with the OnDemandLink field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetPaidAmount

func (o *InvoiceCallback) GetPaidAmount() float64

GetPaidAmount returns the PaidAmount field value if set, zero value otherwise.

func (*InvoiceCallback) GetPaidAmountOk

func (o *InvoiceCallback) GetPaidAmountOk() (*float64, bool)

GetPaidAmountOk returns a tuple with the PaidAmount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetPaidAt

func (o *InvoiceCallback) GetPaidAt() string

GetPaidAt returns the PaidAt field value if set, zero value otherwise.

func (*InvoiceCallback) GetPaidAtOk

func (o *InvoiceCallback) GetPaidAtOk() (*string, bool)

GetPaidAtOk returns a tuple with the PaidAt field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetPayerEmail

func (o *InvoiceCallback) GetPayerEmail() string

GetPayerEmail returns the PayerEmail field value if set, zero value otherwise.

func (*InvoiceCallback) GetPayerEmailOk

func (o *InvoiceCallback) GetPayerEmailOk() (*string, bool)

GetPayerEmailOk returns a tuple with the PayerEmail field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetPaymentChannel

func (o *InvoiceCallback) GetPaymentChannel() string

GetPaymentChannel returns the PaymentChannel field value if set, zero value otherwise.

func (*InvoiceCallback) GetPaymentChannelOk

func (o *InvoiceCallback) GetPaymentChannelOk() (*string, bool)

GetPaymentChannelOk returns a tuple with the PaymentChannel field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetPaymentDestination

func (o *InvoiceCallback) GetPaymentDestination() string

GetPaymentDestination returns the PaymentDestination field value if set, zero value otherwise.

func (*InvoiceCallback) GetPaymentDestinationOk

func (o *InvoiceCallback) GetPaymentDestinationOk() (*string, bool)

GetPaymentDestinationOk returns a tuple with the PaymentDestination field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetPaymentDetails

func (o *InvoiceCallback) GetPaymentDetails() PaymentDetails

GetPaymentDetails returns the PaymentDetails field value if set, zero value otherwise.

func (*InvoiceCallback) GetPaymentDetailsOk

func (o *InvoiceCallback) GetPaymentDetailsOk() (*PaymentDetails, bool)

GetPaymentDetailsOk returns a tuple with the PaymentDetails field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetPaymentId

func (o *InvoiceCallback) GetPaymentId() string

GetPaymentId returns the PaymentId field value if set, zero value otherwise.

func (*InvoiceCallback) GetPaymentIdOk

func (o *InvoiceCallback) GetPaymentIdOk() (*string, bool)

GetPaymentIdOk returns a tuple with the PaymentId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetPaymentMethod

func (o *InvoiceCallback) GetPaymentMethod() string

GetPaymentMethod returns the PaymentMethod field value if set, zero value otherwise.

func (*InvoiceCallback) GetPaymentMethodOk

func (o *InvoiceCallback) GetPaymentMethodOk() (*string, bool)

GetPaymentMethodOk returns a tuple with the PaymentMethod field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetRecurringPaymentId

func (o *InvoiceCallback) GetRecurringPaymentId() string

GetRecurringPaymentId returns the RecurringPaymentId field value if set, zero value otherwise.

func (*InvoiceCallback) GetRecurringPaymentIdOk

func (o *InvoiceCallback) GetRecurringPaymentIdOk() (*string, bool)

GetRecurringPaymentIdOk returns a tuple with the RecurringPaymentId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetShouldAuthenticateCreditCard

func (o *InvoiceCallback) GetShouldAuthenticateCreditCard() bool

GetShouldAuthenticateCreditCard returns the ShouldAuthenticateCreditCard field value if set, zero value otherwise.

func (*InvoiceCallback) GetShouldAuthenticateCreditCardOk

func (o *InvoiceCallback) GetShouldAuthenticateCreditCardOk() (*bool, bool)

GetShouldAuthenticateCreditCardOk returns a tuple with the ShouldAuthenticateCreditCard field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetStatus

func (o *InvoiceCallback) GetStatus() string

GetStatus returns the Status field value

func (*InvoiceCallback) GetStatusOk

func (o *InvoiceCallback) GetStatusOk() (*string, bool)

GetStatusOk returns a tuple with the Status field value and a boolean to check if the value has been set.

func (*InvoiceCallback) GetSuccessRedirectUrl

func (o *InvoiceCallback) GetSuccessRedirectUrl() string

GetSuccessRedirectUrl returns the SuccessRedirectUrl field value if set, zero value otherwise.

func (*InvoiceCallback) GetSuccessRedirectUrlOk

func (o *InvoiceCallback) GetSuccessRedirectUrlOk() (*string, bool)

GetSuccessRedirectUrlOk returns a tuple with the SuccessRedirectUrl field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallback) GetUpdated

func (o *InvoiceCallback) GetUpdated() string

GetUpdated returns the Updated field value

func (*InvoiceCallback) GetUpdatedOk

func (o *InvoiceCallback) GetUpdatedOk() (*string, bool)

GetUpdatedOk returns a tuple with the Updated field value and a boolean to check if the value has been set.

func (*InvoiceCallback) GetUserId

func (o *InvoiceCallback) GetUserId() string

GetUserId returns the UserId field value

func (*InvoiceCallback) GetUserIdOk

func (o *InvoiceCallback) GetUserIdOk() (*string, bool)

GetUserIdOk returns a tuple with the UserId field value and a boolean to check if the value has been set.

func (*InvoiceCallback) HasBankCode

func (o *InvoiceCallback) HasBankCode() bool

HasBankCode returns a boolean if a field has been set.

func (*InvoiceCallback) HasCreditCardChargeId

func (o *InvoiceCallback) HasCreditCardChargeId() bool

HasCreditCardChargeId returns a boolean if a field has been set.

func (*InvoiceCallback) HasDescription

func (o *InvoiceCallback) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*InvoiceCallback) HasEwalletType

func (o *InvoiceCallback) HasEwalletType() bool

HasEwalletType returns a boolean if a field has been set.

func (*InvoiceCallback) HasFailureRedirectUrl

func (o *InvoiceCallback) HasFailureRedirectUrl() bool

HasFailureRedirectUrl returns a boolean if a field has been set.

func (*InvoiceCallback) HasFees

func (o *InvoiceCallback) HasFees() bool

HasFees returns a boolean if a field has been set.

func (*InvoiceCallback) HasItems

func (o *InvoiceCallback) HasItems() bool

HasItems returns a boolean if a field has been set.

func (o *InvoiceCallback) HasOnDemandLink() bool

HasOnDemandLink returns a boolean if a field has been set.

func (*InvoiceCallback) HasPaidAmount

func (o *InvoiceCallback) HasPaidAmount() bool

HasPaidAmount returns a boolean if a field has been set.

func (*InvoiceCallback) HasPaidAt

func (o *InvoiceCallback) HasPaidAt() bool

HasPaidAt returns a boolean if a field has been set.

func (*InvoiceCallback) HasPayerEmail

func (o *InvoiceCallback) HasPayerEmail() bool

HasPayerEmail returns a boolean if a field has been set.

func (*InvoiceCallback) HasPaymentChannel

func (o *InvoiceCallback) HasPaymentChannel() bool

HasPaymentChannel returns a boolean if a field has been set.

func (*InvoiceCallback) HasPaymentDestination

func (o *InvoiceCallback) HasPaymentDestination() bool

HasPaymentDestination returns a boolean if a field has been set.

func (*InvoiceCallback) HasPaymentDetails

func (o *InvoiceCallback) HasPaymentDetails() bool

HasPaymentDetails returns a boolean if a field has been set.

func (*InvoiceCallback) HasPaymentId

func (o *InvoiceCallback) HasPaymentId() bool

HasPaymentId returns a boolean if a field has been set.

func (*InvoiceCallback) HasPaymentMethod

func (o *InvoiceCallback) HasPaymentMethod() bool

HasPaymentMethod returns a boolean if a field has been set.

func (*InvoiceCallback) HasRecurringPaymentId

func (o *InvoiceCallback) HasRecurringPaymentId() bool

HasRecurringPaymentId returns a boolean if a field has been set.

func (*InvoiceCallback) HasShouldAuthenticateCreditCard

func (o *InvoiceCallback) HasShouldAuthenticateCreditCard() bool

HasShouldAuthenticateCreditCard returns a boolean if a field has been set.

func (*InvoiceCallback) HasSuccessRedirectUrl

func (o *InvoiceCallback) HasSuccessRedirectUrl() bool

HasSuccessRedirectUrl returns a boolean if a field has been set.

func (InvoiceCallback) MarshalJSON

func (o InvoiceCallback) MarshalJSON() ([]byte, error)

func (*InvoiceCallback) SetAmount

func (o *InvoiceCallback) SetAmount(v float64)

SetAmount sets field value

func (*InvoiceCallback) SetBankCode

func (o *InvoiceCallback) SetBankCode(v string)

SetBankCode gets a reference to the given string and assigns it to the BankCode field.

func (*InvoiceCallback) SetCreated

func (o *InvoiceCallback) SetCreated(v string)

SetCreated sets field value

func (*InvoiceCallback) SetCreditCardChargeId

func (o *InvoiceCallback) SetCreditCardChargeId(v string)

SetCreditCardChargeId gets a reference to the given string and assigns it to the CreditCardChargeId field.

func (*InvoiceCallback) SetCurrency

func (o *InvoiceCallback) SetCurrency(v string)

SetCurrency sets field value

func (*InvoiceCallback) SetDescription

func (o *InvoiceCallback) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*InvoiceCallback) SetEwalletType

func (o *InvoiceCallback) SetEwalletType(v string)

SetEwalletType gets a reference to the given string and assigns it to the EwalletType field.

func (*InvoiceCallback) SetExternalId

func (o *InvoiceCallback) SetExternalId(v string)

SetExternalId sets field value

func (*InvoiceCallback) SetFailureRedirectUrl

func (o *InvoiceCallback) SetFailureRedirectUrl(v string)

SetFailureRedirectUrl gets a reference to the given string and assigns it to the FailureRedirectUrl field.

func (*InvoiceCallback) SetFees

func (o *InvoiceCallback) SetFees(v []InvoiceFee)

SetFees gets a reference to the given []InvoiceFee and assigns it to the Fees field.

func (*InvoiceCallback) SetId

func (o *InvoiceCallback) SetId(v string)

SetId sets field value

func (*InvoiceCallback) SetItems

func (o *InvoiceCallback) SetItems(v []InvoiceCallbackItem)

SetItems gets a reference to the given []InvoiceCallbackItem and assigns it to the Items field.

func (*InvoiceCallback) SetMerchantName

func (o *InvoiceCallback) SetMerchantName(v string)

SetMerchantName sets field value

func (o *InvoiceCallback) SetOnDemandLink(v string)

SetOnDemandLink gets a reference to the given string and assigns it to the OnDemandLink field.

func (*InvoiceCallback) SetPaidAmount

func (o *InvoiceCallback) SetPaidAmount(v float64)

SetPaidAmount gets a reference to the given float64 and assigns it to the PaidAmount field.

func (*InvoiceCallback) SetPaidAt

func (o *InvoiceCallback) SetPaidAt(v string)

SetPaidAt gets a reference to the given string and assigns it to the PaidAt field.

func (*InvoiceCallback) SetPayerEmail

func (o *InvoiceCallback) SetPayerEmail(v string)

SetPayerEmail gets a reference to the given string and assigns it to the PayerEmail field.

func (*InvoiceCallback) SetPaymentChannel

func (o *InvoiceCallback) SetPaymentChannel(v string)

SetPaymentChannel gets a reference to the given string and assigns it to the PaymentChannel field.

func (*InvoiceCallback) SetPaymentDestination

func (o *InvoiceCallback) SetPaymentDestination(v string)

SetPaymentDestination gets a reference to the given string and assigns it to the PaymentDestination field.

func (*InvoiceCallback) SetPaymentDetails

func (o *InvoiceCallback) SetPaymentDetails(v PaymentDetails)

SetPaymentDetails gets a reference to the given PaymentDetails and assigns it to the PaymentDetails field.

func (*InvoiceCallback) SetPaymentId

func (o *InvoiceCallback) SetPaymentId(v string)

SetPaymentId gets a reference to the given string and assigns it to the PaymentId field.

func (*InvoiceCallback) SetPaymentMethod

func (o *InvoiceCallback) SetPaymentMethod(v string)

SetPaymentMethod gets a reference to the given string and assigns it to the PaymentMethod field.

func (*InvoiceCallback) SetRecurringPaymentId

func (o *InvoiceCallback) SetRecurringPaymentId(v string)

SetRecurringPaymentId gets a reference to the given string and assigns it to the RecurringPaymentId field.

func (*InvoiceCallback) SetShouldAuthenticateCreditCard

func (o *InvoiceCallback) SetShouldAuthenticateCreditCard(v bool)

SetShouldAuthenticateCreditCard gets a reference to the given bool and assigns it to the ShouldAuthenticateCreditCard field.

func (*InvoiceCallback) SetStatus

func (o *InvoiceCallback) SetStatus(v string)

SetStatus sets field value

func (*InvoiceCallback) SetSuccessRedirectUrl

func (o *InvoiceCallback) SetSuccessRedirectUrl(v string)

SetSuccessRedirectUrl gets a reference to the given string and assigns it to the SuccessRedirectUrl field.

func (*InvoiceCallback) SetUpdated

func (o *InvoiceCallback) SetUpdated(v string)

SetUpdated sets field value

func (*InvoiceCallback) SetUserId

func (o *InvoiceCallback) SetUserId(v string)

SetUserId sets field value

func (InvoiceCallback) ToMap

func (o InvoiceCallback) ToMap() (map[string]interface{}, error)

type InvoiceCallbackItem

type InvoiceCallbackItem struct {
	// The name of the item.
	Name string `json:"name"`
	// The price of the item.
	Price float32 `json:"price"`
	// The quantity of the item. Must be greater than or equal to 0.
	Quantity float32 `json:"quantity"`
	// The URL associated with the item.
	Url *string `json:"url,omitempty"`
	// The category of the item.
	Category *string `json:"category,omitempty"`
}

InvoiceCallbackItem An object representing an item within an invoice.

func NewInvoiceCallbackItem

func NewInvoiceCallbackItem(name string, price float32, quantity float32) *InvoiceCallbackItem

NewInvoiceCallbackItem instantiates a new InvoiceCallbackItem object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceCallbackItemWithDefaults

func NewInvoiceCallbackItemWithDefaults() *InvoiceCallbackItem

NewInvoiceCallbackItemWithDefaults instantiates a new InvoiceCallbackItem object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoiceCallbackItem) GetCategory

func (o *InvoiceCallbackItem) GetCategory() string

GetCategory returns the Category field value if set, zero value otherwise.

func (*InvoiceCallbackItem) GetCategoryOk

func (o *InvoiceCallbackItem) GetCategoryOk() (*string, bool)

GetCategoryOk returns a tuple with the Category field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallbackItem) GetName

func (o *InvoiceCallbackItem) GetName() string

GetName returns the Name field value

func (*InvoiceCallbackItem) GetNameOk

func (o *InvoiceCallbackItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*InvoiceCallbackItem) GetPrice

func (o *InvoiceCallbackItem) GetPrice() float32

GetPrice returns the Price field value

func (*InvoiceCallbackItem) GetPriceOk

func (o *InvoiceCallbackItem) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.

func (*InvoiceCallbackItem) GetQuantity

func (o *InvoiceCallbackItem) GetQuantity() float32

GetQuantity returns the Quantity field value

func (*InvoiceCallbackItem) GetQuantityOk

func (o *InvoiceCallbackItem) GetQuantityOk() (*float32, bool)

GetQuantityOk returns a tuple with the Quantity field value and a boolean to check if the value has been set.

func (*InvoiceCallbackItem) GetUrl

func (o *InvoiceCallbackItem) GetUrl() string

GetUrl returns the Url field value if set, zero value otherwise.

func (*InvoiceCallbackItem) GetUrlOk

func (o *InvoiceCallbackItem) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceCallbackItem) HasCategory

func (o *InvoiceCallbackItem) HasCategory() bool

HasCategory returns a boolean if a field has been set.

func (*InvoiceCallbackItem) HasUrl

func (o *InvoiceCallbackItem) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (InvoiceCallbackItem) MarshalJSON

func (o InvoiceCallbackItem) MarshalJSON() ([]byte, error)

func (*InvoiceCallbackItem) SetCategory

func (o *InvoiceCallbackItem) SetCategory(v string)

SetCategory gets a reference to the given string and assigns it to the Category field.

func (*InvoiceCallbackItem) SetName

func (o *InvoiceCallbackItem) SetName(v string)

SetName sets field value

func (*InvoiceCallbackItem) SetPrice

func (o *InvoiceCallbackItem) SetPrice(v float32)

SetPrice sets field value

func (*InvoiceCallbackItem) SetQuantity

func (o *InvoiceCallbackItem) SetQuantity(v float32)

SetQuantity sets field value

func (*InvoiceCallbackItem) SetUrl

func (o *InvoiceCallbackItem) SetUrl(v string)

SetUrl gets a reference to the given string and assigns it to the Url field.

func (InvoiceCallbackItem) ToMap

func (o InvoiceCallbackItem) ToMap() (map[string]interface{}, error)

type InvoiceClientType

type InvoiceClientType string

InvoiceClientType Representing the client type or source of an invoice.

const (
	INVOICECLIENTTYPE_DASHBOARD                    InvoiceClientType = "DASHBOARD"
	INVOICECLIENTTYPE_API_GATEWAY                  InvoiceClientType = "API_GATEWAY"
	INVOICECLIENTTYPE_INTEGRATION                  InvoiceClientType = "INTEGRATION"
	INVOICECLIENTTYPE_ON_DEMAND                    InvoiceClientType = "ON_DEMAND"
	INVOICECLIENTTYPE_RECURRING                    InvoiceClientType = "RECURRING"
	INVOICECLIENTTYPE_MOBILE                       InvoiceClientType = "MOBILE"
	INVOICECLIENTTYPE_XENDIT_ENUM_DEFAULT_FALLBACK InvoiceClientType = "UNKNOWN_ENUM_VALUE"
)

List of InvoiceClientType

func NewInvoiceClientTypeFromValue

func NewInvoiceClientTypeFromValue(v string) (*InvoiceClientType, error)

NewInvoiceClientTypeFromValue returns a pointer to a valid InvoiceClientType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (InvoiceClientType) IsValid

func (v InvoiceClientType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (InvoiceClientType) Ptr

Ptr returns reference to InvoiceClientType value

func (InvoiceClientType) String

func (v InvoiceClientType) String() string

func (*InvoiceClientType) UnmarshalJSON

func (v *InvoiceClientType) UnmarshalJSON(src []byte) error

type InvoiceCurrency

type InvoiceCurrency string

InvoiceCurrency Representing the currency used for an invoice.

const (
	INVOICECURRENCY_IDR                          InvoiceCurrency = "IDR"
	INVOICECURRENCY_USD                          InvoiceCurrency = "USD"
	INVOICECURRENCY_THB                          InvoiceCurrency = "THB"
	INVOICECURRENCY_VND                          InvoiceCurrency = "VND"
	INVOICECURRENCY_PHP                          InvoiceCurrency = "PHP"
	INVOICECURRENCY_XENDIT_ENUM_DEFAULT_FALLBACK InvoiceCurrency = "UNKNOWN_ENUM_VALUE"
)

List of InvoiceCurrency

func NewInvoiceCurrencyFromValue

func NewInvoiceCurrencyFromValue(v string) (*InvoiceCurrency, error)

NewInvoiceCurrencyFromValue returns a pointer to a valid InvoiceCurrency for the value passed as argument, or an error if the value passed is not allowed by the enum

func (InvoiceCurrency) IsValid

func (v InvoiceCurrency) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (InvoiceCurrency) Ptr

Ptr returns reference to InvoiceCurrency value

func (InvoiceCurrency) String

func (v InvoiceCurrency) String() string

func (*InvoiceCurrency) UnmarshalJSON

func (v *InvoiceCurrency) UnmarshalJSON(src []byte) error

type InvoiceError404ResponseDefinition

type InvoiceError404ResponseDefinition struct {
	// The specific error code indicating that the requested invoice was not found.
	ErrorCode string `json:"error_code"`
	// A human-readable error message providing additional context about the resource not being found.
	Message string `json:"message"`
}

InvoiceError404ResponseDefinition An error object used to indicate that the requested resource, in this case, an invoice, was not found.

func NewInvoiceError404ResponseDefinition

func NewInvoiceError404ResponseDefinition(errorCode string, message string) *InvoiceError404ResponseDefinition

NewInvoiceError404ResponseDefinition instantiates a new InvoiceError404ResponseDefinition object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceError404ResponseDefinitionWithDefaults

func NewInvoiceError404ResponseDefinitionWithDefaults() *InvoiceError404ResponseDefinition

NewInvoiceError404ResponseDefinitionWithDefaults instantiates a new InvoiceError404ResponseDefinition object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoiceError404ResponseDefinition) GetErrorCode

func (o *InvoiceError404ResponseDefinition) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*InvoiceError404ResponseDefinition) GetErrorCodeOk

func (o *InvoiceError404ResponseDefinition) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*InvoiceError404ResponseDefinition) GetMessage

func (o *InvoiceError404ResponseDefinition) GetMessage() string

GetMessage returns the Message field value

func (*InvoiceError404ResponseDefinition) GetMessageOk

func (o *InvoiceError404ResponseDefinition) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (InvoiceError404ResponseDefinition) MarshalJSON

func (o InvoiceError404ResponseDefinition) MarshalJSON() ([]byte, error)

func (*InvoiceError404ResponseDefinition) SetErrorCode

func (o *InvoiceError404ResponseDefinition) SetErrorCode(v string)

SetErrorCode sets field value

func (*InvoiceError404ResponseDefinition) SetMessage

func (o *InvoiceError404ResponseDefinition) SetMessage(v string)

SetMessage sets field value

func (InvoiceError404ResponseDefinition) ToMap

func (o InvoiceError404ResponseDefinition) ToMap() (map[string]interface{}, error)

type InvoiceFee

type InvoiceFee struct {
	// The type of fee.
	Type string `json:"type"`
	// The value or amount of the fee.
	Value float32 `json:"value"`
}

InvoiceFee An object representing internal details for a fee associated with an invoice.

func NewInvoiceFee

func NewInvoiceFee(type_ string, value float32) *InvoiceFee

NewInvoiceFee instantiates a new InvoiceFee object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceFeeWithDefaults

func NewInvoiceFeeWithDefaults() *InvoiceFee

NewInvoiceFeeWithDefaults instantiates a new InvoiceFee object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoiceFee) GetType

func (o *InvoiceFee) GetType() string

GetType returns the Type field value

func (*InvoiceFee) GetTypeOk

func (o *InvoiceFee) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*InvoiceFee) GetValue

func (o *InvoiceFee) GetValue() float32

GetValue returns the Value field value

func (*InvoiceFee) GetValueOk

func (o *InvoiceFee) GetValueOk() (*float32, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (InvoiceFee) MarshalJSON

func (o InvoiceFee) MarshalJSON() ([]byte, error)

func (*InvoiceFee) SetType

func (o *InvoiceFee) SetType(v string)

SetType sets field value

func (*InvoiceFee) SetValue

func (o *InvoiceFee) SetValue(v float32)

SetValue sets field value

func (InvoiceFee) ToMap

func (o InvoiceFee) ToMap() (map[string]interface{}, error)

type InvoiceItem

type InvoiceItem struct {
	// The name of the item.
	Name string `json:"name"`
	// The price of the item.
	Price float32 `json:"price"`
	// The quantity of the item. Must be greater than or equal to 0.
	Quantity float32 `json:"quantity"`
	// The reference ID of the item.
	ReferenceId *string `json:"reference_id,omitempty"`
	// The URL associated with the item.
	Url *string `json:"url,omitempty"`
	// The category of the item.
	Category *string `json:"category,omitempty"`
}

InvoiceItem An object representing an item within an invoice.

func NewInvoiceItem

func NewInvoiceItem(name string, price float32, quantity float32) *InvoiceItem

NewInvoiceItem instantiates a new InvoiceItem object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceItemWithDefaults

func NewInvoiceItemWithDefaults() *InvoiceItem

NewInvoiceItemWithDefaults instantiates a new InvoiceItem object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoiceItem) GetCategory

func (o *InvoiceItem) GetCategory() string

GetCategory returns the Category field value if set, zero value otherwise.

func (*InvoiceItem) GetCategoryOk

func (o *InvoiceItem) GetCategoryOk() (*string, bool)

GetCategoryOk returns a tuple with the Category field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceItem) GetName

func (o *InvoiceItem) GetName() string

GetName returns the Name field value

func (*InvoiceItem) GetNameOk

func (o *InvoiceItem) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*InvoiceItem) GetPrice

func (o *InvoiceItem) GetPrice() float32

GetPrice returns the Price field value

func (*InvoiceItem) GetPriceOk

func (o *InvoiceItem) GetPriceOk() (*float32, bool)

GetPriceOk returns a tuple with the Price field value and a boolean to check if the value has been set.

func (*InvoiceItem) GetQuantity

func (o *InvoiceItem) GetQuantity() float32

GetQuantity returns the Quantity field value

func (*InvoiceItem) GetQuantityOk

func (o *InvoiceItem) GetQuantityOk() (*float32, bool)

GetQuantityOk returns a tuple with the Quantity field value and a boolean to check if the value has been set.

func (*InvoiceItem) GetReferenceId

func (o *InvoiceItem) GetReferenceId() string

GetReferenceId returns the ReferenceId field value if set, zero value otherwise.

func (*InvoiceItem) GetReferenceIdOk

func (o *InvoiceItem) GetReferenceIdOk() (*string, bool)

GetReferenceIdOk returns a tuple with the ReferenceId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceItem) GetUrl

func (o *InvoiceItem) GetUrl() string

GetUrl returns the Url field value if set, zero value otherwise.

func (*InvoiceItem) GetUrlOk

func (o *InvoiceItem) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field value if set, nil otherwise and a boolean to check if the value has been set.

func (*InvoiceItem) HasCategory

func (o *InvoiceItem) HasCategory() bool

HasCategory returns a boolean if a field has been set.

func (*InvoiceItem) HasReferenceId

func (o *InvoiceItem) HasReferenceId() bool

HasReferenceId returns a boolean if a field has been set.

func (*InvoiceItem) HasUrl

func (o *InvoiceItem) HasUrl() bool

HasUrl returns a boolean if a field has been set.

func (InvoiceItem) MarshalJSON

func (o InvoiceItem) MarshalJSON() ([]byte, error)

func (*InvoiceItem) SetCategory

func (o *InvoiceItem) SetCategory(v string)

SetCategory gets a reference to the given string and assigns it to the Category field.

func (*InvoiceItem) SetName

func (o *InvoiceItem) SetName(v string)

SetName sets field value

func (*InvoiceItem) SetPrice

func (o *InvoiceItem) SetPrice(v float32)

SetPrice sets field value

func (*InvoiceItem) SetQuantity

func (o *InvoiceItem) SetQuantity(v float32)

SetQuantity sets field value

func (*InvoiceItem) SetReferenceId

func (o *InvoiceItem) SetReferenceId(v string)

SetReferenceId gets a reference to the given string and assigns it to the ReferenceId field.

func (*InvoiceItem) SetUrl

func (o *InvoiceItem) SetUrl(v string)

SetUrl gets a reference to the given string and assigns it to the Url field.

func (InvoiceItem) ToMap

func (o InvoiceItem) ToMap() (map[string]interface{}, error)

type InvoiceNotFoundError

type InvoiceNotFoundError struct {
	// The error code indicating the type of error that occurred.
	ErrorCode string `json:"error_code"`
	// A human-readable error message that provides additional information about the error.
	Message string `json:"message"`
}

InvoiceNotFoundError Response definition for a 404 Not Found error when creating an invoice.

func NewInvoiceNotFoundError

func NewInvoiceNotFoundError(errorCode string, message string) *InvoiceNotFoundError

NewInvoiceNotFoundError instantiates a new InvoiceNotFoundError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewInvoiceNotFoundErrorWithDefaults

func NewInvoiceNotFoundErrorWithDefaults() *InvoiceNotFoundError

NewInvoiceNotFoundErrorWithDefaults instantiates a new InvoiceNotFoundError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*InvoiceNotFoundError) GetErrorCode

func (o *InvoiceNotFoundError) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*InvoiceNotFoundError) GetErrorCodeOk

func (o *InvoiceNotFoundError) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*InvoiceNotFoundError) GetMessage

func (o *InvoiceNotFoundError) GetMessage() string

GetMessage returns the Message field value

func (*InvoiceNotFoundError) GetMessageOk

func (o *InvoiceNotFoundError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (InvoiceNotFoundError) MarshalJSON

func (o InvoiceNotFoundError) MarshalJSON() ([]byte, error)

func (*InvoiceNotFoundError) SetErrorCode

func (o *InvoiceNotFoundError) SetErrorCode(v string)

SetErrorCode sets field value

func (*InvoiceNotFoundError) SetMessage

func (o *InvoiceNotFoundError) SetMessage(v string)

SetMessage sets field value

func (InvoiceNotFoundError) ToMap

func (o InvoiceNotFoundError) ToMap() (map[string]interface{}, error)

type InvoicePaymentMethod

type InvoicePaymentMethod string

InvoicePaymentMethod Representing the payment method used for an invoice.

const (
	INVOICEPAYMENTMETHOD_POOL                         InvoicePaymentMethod = "POOL"
	INVOICEPAYMENTMETHOD_CALLBACK_VIRTUAL_ACCOUNT     InvoicePaymentMethod = "CALLBACK_VIRTUAL_ACCOUNT"
	INVOICEPAYMENTMETHOD_CREDIT_CARD                  InvoicePaymentMethod = "CREDIT_CARD"
	INVOICEPAYMENTMETHOD_RETAIL_OUTLET                InvoicePaymentMethod = "RETAIL_OUTLET"
	INVOICEPAYMENTMETHOD_QR_CODE                      InvoicePaymentMethod = "QR_CODE"
	INVOICEPAYMENTMETHOD_QRIS                         InvoicePaymentMethod = "QRIS"
	INVOICEPAYMENTMETHOD_EWALLET                      InvoicePaymentMethod = "EWALLET"
	INVOICEPAYMENTMETHOD_DIRECT_DEBIT                 InvoicePaymentMethod = "DIRECT_DEBIT"
	INVOICEPAYMENTMETHOD_BANK_TRANSFER                InvoicePaymentMethod = "BANK_TRANSFER"
	INVOICEPAYMENTMETHOD_PAYLATER                     InvoicePaymentMethod = "PAYLATER"
	INVOICEPAYMENTMETHOD_CRYPTOCURRENCY               InvoicePaymentMethod = "CRYPTOCURRENCY"
	INVOICEPAYMENTMETHOD_XENDIT_ENUM_DEFAULT_FALLBACK InvoicePaymentMethod = "UNKNOWN_ENUM_VALUE"
)

List of InvoicePaymentMethod

func NewInvoicePaymentMethodFromValue

func NewInvoicePaymentMethodFromValue(v string) (*InvoicePaymentMethod, error)

NewInvoicePaymentMethodFromValue returns a pointer to a valid InvoicePaymentMethod for the value passed as argument, or an error if the value passed is not allowed by the enum

func (InvoicePaymentMethod) IsValid

func (v InvoicePaymentMethod) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (InvoicePaymentMethod) Ptr

Ptr returns reference to InvoicePaymentMethod value

func (InvoicePaymentMethod) String

func (v InvoicePaymentMethod) String() string

func (*InvoicePaymentMethod) UnmarshalJSON

func (v *InvoicePaymentMethod) UnmarshalJSON(src []byte) error

type InvoiceStatus

type InvoiceStatus string

InvoiceStatus Representing the status of an invoice.

const (
	INVOICESTATUS_PENDING                      InvoiceStatus = "PENDING"
	INVOICESTATUS_PAID                         InvoiceStatus = "PAID"
	INVOICESTATUS_SETTLED                      InvoiceStatus = "SETTLED"
	INVOICESTATUS_EXPIRED                      InvoiceStatus = "EXPIRED"
	INVOICESTATUS_XENDIT_ENUM_DEFAULT_FALLBACK InvoiceStatus = "UNKNOWN_ENUM_VALUE"
)

List of InvoiceStatus

func NewInvoiceStatusFromValue

func NewInvoiceStatusFromValue(v string) (*InvoiceStatus, error)

NewInvoiceStatusFromValue returns a pointer to a valid InvoiceStatus for the value passed as argument, or an error if the value passed is not allowed by the enum

func (InvoiceStatus) IsValid

func (v InvoiceStatus) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (InvoiceStatus) Ptr

func (v InvoiceStatus) Ptr() *InvoiceStatus

Ptr returns reference to InvoiceStatus value

func (InvoiceStatus) String

func (v InvoiceStatus) String() string

func (*InvoiceStatus) UnmarshalJSON

func (v *InvoiceStatus) UnmarshalJSON(src []byte) error

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type NotificationChannel

type NotificationChannel string

NotificationChannel Representing a notification channel for sending messages.

const (
	NOTIFICATIONCHANNEL_EMAIL                        NotificationChannel = "email"
	NOTIFICATIONCHANNEL_SMS                          NotificationChannel = "sms"
	NOTIFICATIONCHANNEL_WHATSAPP                     NotificationChannel = "whatsapp"
	NOTIFICATIONCHANNEL_VIBER                        NotificationChannel = "viber"
	NOTIFICATIONCHANNEL_XENDIT_ENUM_DEFAULT_FALLBACK NotificationChannel = "UNKNOWN_ENUM_VALUE"
)

List of NotificationChannel

func NewNotificationChannelFromValue

func NewNotificationChannelFromValue(v string) (*NotificationChannel, error)

NewNotificationChannelFromValue returns a pointer to a valid NotificationChannel for the value passed as argument, or an error if the value passed is not allowed by the enum

func (NotificationChannel) IsValid

func (v NotificationChannel) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (NotificationChannel) Ptr

Ptr returns reference to NotificationChannel value

func (NotificationChannel) String

func (v NotificationChannel) String() string

func (*NotificationChannel) UnmarshalJSON

func (v *NotificationChannel) UnmarshalJSON(src []byte) error

type NotificationPreference

type NotificationPreference struct {
	// Notification channels for when an invoice is created.
	InvoiceCreated []NotificationChannel `json:"invoice_created,omitempty"`
	// Notification channels for invoice reminders.
	InvoiceReminder []NotificationChannel `json:"invoice_reminder,omitempty"`
	// Notification channels for when an invoice is paid.
	InvoicePaid []NotificationChannel `json:"invoice_paid,omitempty"`
}

NotificationPreference An object representing notification preferences for different invoice events.

func NewNotificationPreference

func NewNotificationPreference() *NotificationPreference

NewNotificationPreference instantiates a new NotificationPreference object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewNotificationPreferenceWithDefaults

func NewNotificationPreferenceWithDefaults() *NotificationPreference

NewNotificationPreferenceWithDefaults instantiates a new NotificationPreference object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*NotificationPreference) GetInvoiceCreated

func (o *NotificationPreference) GetInvoiceCreated() []NotificationChannel

GetInvoiceCreated returns the InvoiceCreated field value if set, zero value otherwise.

func (*NotificationPreference) GetInvoiceCreatedOk

func (o *NotificationPreference) GetInvoiceCreatedOk() ([]NotificationChannel, bool)

GetInvoiceCreatedOk returns a tuple with the InvoiceCreated field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NotificationPreference) GetInvoicePaid

func (o *NotificationPreference) GetInvoicePaid() []NotificationChannel

GetInvoicePaid returns the InvoicePaid field value if set, zero value otherwise.

func (*NotificationPreference) GetInvoicePaidOk

func (o *NotificationPreference) GetInvoicePaidOk() ([]NotificationChannel, bool)

GetInvoicePaidOk returns a tuple with the InvoicePaid field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NotificationPreference) GetInvoiceReminder

func (o *NotificationPreference) GetInvoiceReminder() []NotificationChannel

GetInvoiceReminder returns the InvoiceReminder field value if set, zero value otherwise.

func (*NotificationPreference) GetInvoiceReminderOk

func (o *NotificationPreference) GetInvoiceReminderOk() ([]NotificationChannel, bool)

GetInvoiceReminderOk returns a tuple with the InvoiceReminder field value if set, nil otherwise and a boolean to check if the value has been set.

func (*NotificationPreference) HasInvoiceCreated

func (o *NotificationPreference) HasInvoiceCreated() bool

HasInvoiceCreated returns a boolean if a field has been set.

func (*NotificationPreference) HasInvoicePaid

func (o *NotificationPreference) HasInvoicePaid() bool

HasInvoicePaid returns a boolean if a field has been set.

func (*NotificationPreference) HasInvoiceReminder

func (o *NotificationPreference) HasInvoiceReminder() bool

HasInvoiceReminder returns a boolean if a field has been set.

func (NotificationPreference) MarshalJSON

func (o NotificationPreference) MarshalJSON() ([]byte, error)

func (*NotificationPreference) SetInvoiceCreated

func (o *NotificationPreference) SetInvoiceCreated(v []NotificationChannel)

SetInvoiceCreated gets a reference to the given []NotificationChannel and assigns it to the InvoiceCreated field.

func (*NotificationPreference) SetInvoicePaid

func (o *NotificationPreference) SetInvoicePaid(v []NotificationChannel)

SetInvoicePaid gets a reference to the given []NotificationChannel and assigns it to the InvoicePaid field.

func (*NotificationPreference) SetInvoiceReminder

func (o *NotificationPreference) SetInvoiceReminder(v []NotificationChannel)

SetInvoiceReminder gets a reference to the given []NotificationChannel and assigns it to the InvoiceReminder field.

func (NotificationPreference) ToMap

func (o NotificationPreference) ToMap() (map[string]interface{}, error)

type NullableAddressObject

type NullableAddressObject struct {
	// contains filtered or unexported fields
}

func NewNullableAddressObject

func NewNullableAddressObject(val *AddressObject) *NullableAddressObject

func (NullableAddressObject) Get

func (NullableAddressObject) IsSet

func (v NullableAddressObject) IsSet() bool

func (NullableAddressObject) MarshalJSON

func (v NullableAddressObject) MarshalJSON() ([]byte, error)

func (*NullableAddressObject) Set

func (v *NullableAddressObject) Set(val *AddressObject)

func (*NullableAddressObject) UnmarshalJSON

func (v *NullableAddressObject) UnmarshalJSON(src []byte) error

func (*NullableAddressObject) Unset

func (v *NullableAddressObject) Unset()

type NullableAlternativeDisplayItem

type NullableAlternativeDisplayItem struct {
	// contains filtered or unexported fields
}

func (NullableAlternativeDisplayItem) Get

func (NullableAlternativeDisplayItem) IsSet

func (NullableAlternativeDisplayItem) MarshalJSON

func (v NullableAlternativeDisplayItem) MarshalJSON() ([]byte, error)

func (*NullableAlternativeDisplayItem) Set

func (*NullableAlternativeDisplayItem) UnmarshalJSON

func (v *NullableAlternativeDisplayItem) UnmarshalJSON(src []byte) error

func (*NullableAlternativeDisplayItem) Unset

func (v *NullableAlternativeDisplayItem) Unset()

type NullableBadRequestError

type NullableBadRequestError struct {
	// contains filtered or unexported fields
}

func NewNullableBadRequestError

func NewNullableBadRequestError(val *BadRequestError) *NullableBadRequestError

func (NullableBadRequestError) Get

func (NullableBadRequestError) IsSet

func (v NullableBadRequestError) IsSet() bool

func (NullableBadRequestError) MarshalJSON

func (v NullableBadRequestError) MarshalJSON() ([]byte, error)

func (*NullableBadRequestError) Set

func (*NullableBadRequestError) UnmarshalJSON

func (v *NullableBadRequestError) UnmarshalJSON(src []byte) error

func (*NullableBadRequestError) Unset

func (v *NullableBadRequestError) Unset()

type NullableBank

type NullableBank struct {
	// contains filtered or unexported fields
}

func NewNullableBank

func NewNullableBank(val *Bank) *NullableBank

func (NullableBank) Get

func (v NullableBank) Get() *Bank

func (NullableBank) IsSet

func (v NullableBank) IsSet() bool

func (NullableBank) MarshalJSON

func (v NullableBank) MarshalJSON() ([]byte, error)

func (*NullableBank) Set

func (v *NullableBank) Set(val *Bank)

func (*NullableBank) UnmarshalJSON

func (v *NullableBank) UnmarshalJSON(src []byte) error

func (*NullableBank) Unset

func (v *NullableBank) Unset()

type NullableBankCode

type NullableBankCode struct {
	// contains filtered or unexported fields
}

func NewNullableBankCode

func NewNullableBankCode(val *BankCode) *NullableBankCode

func (NullableBankCode) Get

func (v NullableBankCode) Get() *BankCode

func (NullableBankCode) IsSet

func (v NullableBankCode) IsSet() bool

func (NullableBankCode) MarshalJSON

func (v NullableBankCode) MarshalJSON() ([]byte, error)

func (*NullableBankCode) Set

func (v *NullableBankCode) Set(val *BankCode)

func (*NullableBankCode) UnmarshalJSON

func (v *NullableBankCode) UnmarshalJSON(src []byte) error

func (*NullableBankCode) Unset

func (v *NullableBankCode) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableChannelProperties added in v4.3.0

type NullableChannelProperties struct {
	// contains filtered or unexported fields
}

func NewNullableChannelProperties added in v4.3.0

func NewNullableChannelProperties(val *ChannelProperties) *NullableChannelProperties

func (NullableChannelProperties) Get added in v4.3.0

func (NullableChannelProperties) IsSet added in v4.3.0

func (v NullableChannelProperties) IsSet() bool

func (NullableChannelProperties) MarshalJSON added in v4.3.0

func (v NullableChannelProperties) MarshalJSON() ([]byte, error)

func (*NullableChannelProperties) Set added in v4.3.0

func (*NullableChannelProperties) UnmarshalJSON added in v4.3.0

func (v *NullableChannelProperties) UnmarshalJSON(src []byte) error

func (*NullableChannelProperties) Unset added in v4.3.0

func (v *NullableChannelProperties) Unset()

type NullableChannelPropertiesCards added in v4.3.0

type NullableChannelPropertiesCards struct {
	// contains filtered or unexported fields
}

func NewNullableChannelPropertiesCards added in v4.3.0

func NewNullableChannelPropertiesCards(val *ChannelPropertiesCards) *NullableChannelPropertiesCards

func (NullableChannelPropertiesCards) Get added in v4.3.0

func (NullableChannelPropertiesCards) IsSet added in v4.3.0

func (NullableChannelPropertiesCards) MarshalJSON added in v4.3.0

func (v NullableChannelPropertiesCards) MarshalJSON() ([]byte, error)

func (*NullableChannelPropertiesCards) Set added in v4.3.0

func (*NullableChannelPropertiesCards) UnmarshalJSON added in v4.3.0

func (v *NullableChannelPropertiesCards) UnmarshalJSON(src []byte) error

func (*NullableChannelPropertiesCards) Unset added in v4.3.0

func (v *NullableChannelPropertiesCards) Unset()

type NullableCreateInvoiceRequest

type NullableCreateInvoiceRequest struct {
	// contains filtered or unexported fields
}

func NewNullableCreateInvoiceRequest

func NewNullableCreateInvoiceRequest(val *CreateInvoiceRequest) *NullableCreateInvoiceRequest

func (NullableCreateInvoiceRequest) Get

func (NullableCreateInvoiceRequest) IsSet

func (NullableCreateInvoiceRequest) MarshalJSON

func (v NullableCreateInvoiceRequest) MarshalJSON() ([]byte, error)

func (*NullableCreateInvoiceRequest) Set

func (*NullableCreateInvoiceRequest) UnmarshalJSON

func (v *NullableCreateInvoiceRequest) UnmarshalJSON(src []byte) error

func (*NullableCreateInvoiceRequest) Unset

func (v *NullableCreateInvoiceRequest) Unset()

type NullableCustomerObject

type NullableCustomerObject struct {
	// contains filtered or unexported fields
}

func NewNullableCustomerObject

func NewNullableCustomerObject(val *CustomerObject) *NullableCustomerObject

func (NullableCustomerObject) Get

func (NullableCustomerObject) IsSet

func (v NullableCustomerObject) IsSet() bool

func (NullableCustomerObject) MarshalJSON

func (v NullableCustomerObject) MarshalJSON() ([]byte, error)

func (*NullableCustomerObject) Set

func (*NullableCustomerObject) UnmarshalJSON

func (v *NullableCustomerObject) UnmarshalJSON(src []byte) error

func (*NullableCustomerObject) Unset

func (v *NullableCustomerObject) Unset()

type NullableDirectDebit

type NullableDirectDebit struct {
	// contains filtered or unexported fields
}

func NewNullableDirectDebit

func NewNullableDirectDebit(val *DirectDebit) *NullableDirectDebit

func (NullableDirectDebit) Get

func (NullableDirectDebit) IsSet

func (v NullableDirectDebit) IsSet() bool

func (NullableDirectDebit) MarshalJSON

func (v NullableDirectDebit) MarshalJSON() ([]byte, error)

func (*NullableDirectDebit) Set

func (v *NullableDirectDebit) Set(val *DirectDebit)

func (*NullableDirectDebit) UnmarshalJSON

func (v *NullableDirectDebit) UnmarshalJSON(src []byte) error

func (*NullableDirectDebit) Unset

func (v *NullableDirectDebit) Unset()

type NullableDirectDebitType

type NullableDirectDebitType struct {
	// contains filtered or unexported fields
}

func NewNullableDirectDebitType

func NewNullableDirectDebitType(val *DirectDebitType) *NullableDirectDebitType

func (NullableDirectDebitType) Get

func (NullableDirectDebitType) IsSet

func (v NullableDirectDebitType) IsSet() bool

func (NullableDirectDebitType) MarshalJSON

func (v NullableDirectDebitType) MarshalJSON() ([]byte, error)

func (*NullableDirectDebitType) Set

func (*NullableDirectDebitType) UnmarshalJSON

func (v *NullableDirectDebitType) UnmarshalJSON(src []byte) error

func (*NullableDirectDebitType) Unset

func (v *NullableDirectDebitType) Unset()

type NullableEwallet

type NullableEwallet struct {
	// contains filtered or unexported fields
}

func NewNullableEwallet

func NewNullableEwallet(val *Ewallet) *NullableEwallet

func (NullableEwallet) Get

func (v NullableEwallet) Get() *Ewallet

func (NullableEwallet) IsSet

func (v NullableEwallet) IsSet() bool

func (NullableEwallet) MarshalJSON

func (v NullableEwallet) MarshalJSON() ([]byte, error)

func (*NullableEwallet) Set

func (v *NullableEwallet) Set(val *Ewallet)

func (*NullableEwallet) UnmarshalJSON

func (v *NullableEwallet) UnmarshalJSON(src []byte) error

func (*NullableEwallet) Unset

func (v *NullableEwallet) Unset()

type NullableEwalletType

type NullableEwalletType struct {
	// contains filtered or unexported fields
}

func NewNullableEwalletType

func NewNullableEwalletType(val *EwalletType) *NullableEwalletType

func (NullableEwalletType) Get

func (NullableEwalletType) IsSet

func (v NullableEwalletType) IsSet() bool

func (NullableEwalletType) MarshalJSON

func (v NullableEwalletType) MarshalJSON() ([]byte, error)

func (*NullableEwalletType) Set

func (v *NullableEwalletType) Set(val *EwalletType)

func (*NullableEwalletType) UnmarshalJSON

func (v *NullableEwalletType) UnmarshalJSON(src []byte) error

func (*NullableEwalletType) Unset

func (v *NullableEwalletType) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableForbiddenError

type NullableForbiddenError struct {
	// contains filtered or unexported fields
}

func NewNullableForbiddenError

func NewNullableForbiddenError(val *ForbiddenError) *NullableForbiddenError

func (NullableForbiddenError) Get

func (NullableForbiddenError) IsSet

func (v NullableForbiddenError) IsSet() bool

func (NullableForbiddenError) MarshalJSON

func (v NullableForbiddenError) MarshalJSON() ([]byte, error)

func (*NullableForbiddenError) Set

func (*NullableForbiddenError) UnmarshalJSON

func (v *NullableForbiddenError) UnmarshalJSON(src []byte) error

func (*NullableForbiddenError) Unset

func (v *NullableForbiddenError) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableInvoice

type NullableInvoice struct {
	// contains filtered or unexported fields
}

func NewNullableInvoice

func NewNullableInvoice(val *Invoice) *NullableInvoice

func (NullableInvoice) Get

func (v NullableInvoice) Get() *Invoice

func (NullableInvoice) IsSet

func (v NullableInvoice) IsSet() bool

func (NullableInvoice) MarshalJSON

func (v NullableInvoice) MarshalJSON() ([]byte, error)

func (*NullableInvoice) Set

func (v *NullableInvoice) Set(val *Invoice)

func (*NullableInvoice) UnmarshalJSON

func (v *NullableInvoice) UnmarshalJSON(src []byte) error

func (*NullableInvoice) Unset

func (v *NullableInvoice) Unset()

type NullableInvoiceCallback

type NullableInvoiceCallback struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceCallback

func NewNullableInvoiceCallback(val *InvoiceCallback) *NullableInvoiceCallback

func (NullableInvoiceCallback) Get

func (NullableInvoiceCallback) IsSet

func (v NullableInvoiceCallback) IsSet() bool

func (NullableInvoiceCallback) MarshalJSON

func (v NullableInvoiceCallback) MarshalJSON() ([]byte, error)

func (*NullableInvoiceCallback) Set

func (*NullableInvoiceCallback) UnmarshalJSON

func (v *NullableInvoiceCallback) UnmarshalJSON(src []byte) error

func (*NullableInvoiceCallback) Unset

func (v *NullableInvoiceCallback) Unset()

type NullableInvoiceCallbackItem

type NullableInvoiceCallbackItem struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceCallbackItem

func NewNullableInvoiceCallbackItem(val *InvoiceCallbackItem) *NullableInvoiceCallbackItem

func (NullableInvoiceCallbackItem) Get

func (NullableInvoiceCallbackItem) IsSet

func (NullableInvoiceCallbackItem) MarshalJSON

func (v NullableInvoiceCallbackItem) MarshalJSON() ([]byte, error)

func (*NullableInvoiceCallbackItem) Set

func (*NullableInvoiceCallbackItem) UnmarshalJSON

func (v *NullableInvoiceCallbackItem) UnmarshalJSON(src []byte) error

func (*NullableInvoiceCallbackItem) Unset

func (v *NullableInvoiceCallbackItem) Unset()

type NullableInvoiceClientType

type NullableInvoiceClientType struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceClientType

func NewNullableInvoiceClientType(val *InvoiceClientType) *NullableInvoiceClientType

func (NullableInvoiceClientType) Get

func (NullableInvoiceClientType) IsSet

func (v NullableInvoiceClientType) IsSet() bool

func (NullableInvoiceClientType) MarshalJSON

func (v NullableInvoiceClientType) MarshalJSON() ([]byte, error)

func (*NullableInvoiceClientType) Set

func (*NullableInvoiceClientType) UnmarshalJSON

func (v *NullableInvoiceClientType) UnmarshalJSON(src []byte) error

func (*NullableInvoiceClientType) Unset

func (v *NullableInvoiceClientType) Unset()

type NullableInvoiceCurrency

type NullableInvoiceCurrency struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceCurrency

func NewNullableInvoiceCurrency(val *InvoiceCurrency) *NullableInvoiceCurrency

func (NullableInvoiceCurrency) Get

func (NullableInvoiceCurrency) IsSet

func (v NullableInvoiceCurrency) IsSet() bool

func (NullableInvoiceCurrency) MarshalJSON

func (v NullableInvoiceCurrency) MarshalJSON() ([]byte, error)

func (*NullableInvoiceCurrency) Set

func (*NullableInvoiceCurrency) UnmarshalJSON

func (v *NullableInvoiceCurrency) UnmarshalJSON(src []byte) error

func (*NullableInvoiceCurrency) Unset

func (v *NullableInvoiceCurrency) Unset()

type NullableInvoiceError404ResponseDefinition

type NullableInvoiceError404ResponseDefinition struct {
	// contains filtered or unexported fields
}

func (NullableInvoiceError404ResponseDefinition) Get

func (NullableInvoiceError404ResponseDefinition) IsSet

func (NullableInvoiceError404ResponseDefinition) MarshalJSON

func (*NullableInvoiceError404ResponseDefinition) Set

func (*NullableInvoiceError404ResponseDefinition) UnmarshalJSON

func (v *NullableInvoiceError404ResponseDefinition) UnmarshalJSON(src []byte) error

func (*NullableInvoiceError404ResponseDefinition) Unset

type NullableInvoiceFee

type NullableInvoiceFee struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceFee

func NewNullableInvoiceFee(val *InvoiceFee) *NullableInvoiceFee

func (NullableInvoiceFee) Get

func (v NullableInvoiceFee) Get() *InvoiceFee

func (NullableInvoiceFee) IsSet

func (v NullableInvoiceFee) IsSet() bool

func (NullableInvoiceFee) MarshalJSON

func (v NullableInvoiceFee) MarshalJSON() ([]byte, error)

func (*NullableInvoiceFee) Set

func (v *NullableInvoiceFee) Set(val *InvoiceFee)

func (*NullableInvoiceFee) UnmarshalJSON

func (v *NullableInvoiceFee) UnmarshalJSON(src []byte) error

func (*NullableInvoiceFee) Unset

func (v *NullableInvoiceFee) Unset()

type NullableInvoiceItem

type NullableInvoiceItem struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceItem

func NewNullableInvoiceItem(val *InvoiceItem) *NullableInvoiceItem

func (NullableInvoiceItem) Get

func (NullableInvoiceItem) IsSet

func (v NullableInvoiceItem) IsSet() bool

func (NullableInvoiceItem) MarshalJSON

func (v NullableInvoiceItem) MarshalJSON() ([]byte, error)

func (*NullableInvoiceItem) Set

func (v *NullableInvoiceItem) Set(val *InvoiceItem)

func (*NullableInvoiceItem) UnmarshalJSON

func (v *NullableInvoiceItem) UnmarshalJSON(src []byte) error

func (*NullableInvoiceItem) Unset

func (v *NullableInvoiceItem) Unset()

type NullableInvoiceNotFoundError

type NullableInvoiceNotFoundError struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceNotFoundError

func NewNullableInvoiceNotFoundError(val *InvoiceNotFoundError) *NullableInvoiceNotFoundError

func (NullableInvoiceNotFoundError) Get

func (NullableInvoiceNotFoundError) IsSet

func (NullableInvoiceNotFoundError) MarshalJSON

func (v NullableInvoiceNotFoundError) MarshalJSON() ([]byte, error)

func (*NullableInvoiceNotFoundError) Set

func (*NullableInvoiceNotFoundError) UnmarshalJSON

func (v *NullableInvoiceNotFoundError) UnmarshalJSON(src []byte) error

func (*NullableInvoiceNotFoundError) Unset

func (v *NullableInvoiceNotFoundError) Unset()

type NullableInvoicePaymentMethod

type NullableInvoicePaymentMethod struct {
	// contains filtered or unexported fields
}

func NewNullableInvoicePaymentMethod

func NewNullableInvoicePaymentMethod(val *InvoicePaymentMethod) *NullableInvoicePaymentMethod

func (NullableInvoicePaymentMethod) Get

func (NullableInvoicePaymentMethod) IsSet

func (NullableInvoicePaymentMethod) MarshalJSON

func (v NullableInvoicePaymentMethod) MarshalJSON() ([]byte, error)

func (*NullableInvoicePaymentMethod) Set

func (*NullableInvoicePaymentMethod) UnmarshalJSON

func (v *NullableInvoicePaymentMethod) UnmarshalJSON(src []byte) error

func (*NullableInvoicePaymentMethod) Unset

func (v *NullableInvoicePaymentMethod) Unset()

type NullableInvoiceStatus

type NullableInvoiceStatus struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceStatus

func NewNullableInvoiceStatus(val *InvoiceStatus) *NullableInvoiceStatus

func (NullableInvoiceStatus) Get

func (NullableInvoiceStatus) IsSet

func (v NullableInvoiceStatus) IsSet() bool

func (NullableInvoiceStatus) MarshalJSON

func (v NullableInvoiceStatus) MarshalJSON() ([]byte, error)

func (*NullableInvoiceStatus) Set

func (v *NullableInvoiceStatus) Set(val *InvoiceStatus)

func (*NullableInvoiceStatus) UnmarshalJSON

func (v *NullableInvoiceStatus) UnmarshalJSON(src []byte) error

func (*NullableInvoiceStatus) Unset

func (v *NullableInvoiceStatus) Unset()

type NullableNotificationChannel

type NullableNotificationChannel struct {
	// contains filtered or unexported fields
}

func NewNullableNotificationChannel

func NewNullableNotificationChannel(val *NotificationChannel) *NullableNotificationChannel

func (NullableNotificationChannel) Get

func (NullableNotificationChannel) IsSet

func (NullableNotificationChannel) MarshalJSON

func (v NullableNotificationChannel) MarshalJSON() ([]byte, error)

func (*NullableNotificationChannel) Set

func (*NullableNotificationChannel) UnmarshalJSON

func (v *NullableNotificationChannel) UnmarshalJSON(src []byte) error

func (*NullableNotificationChannel) Unset

func (v *NullableNotificationChannel) Unset()

type NullableNotificationPreference

type NullableNotificationPreference struct {
	// contains filtered or unexported fields
}

func (NullableNotificationPreference) Get

func (NullableNotificationPreference) IsSet

func (NullableNotificationPreference) MarshalJSON

func (v NullableNotificationPreference) MarshalJSON() ([]byte, error)

func (*NullableNotificationPreference) Set

func (*NullableNotificationPreference) UnmarshalJSON

func (v *NullableNotificationPreference) UnmarshalJSON(src []byte) error

func (*NullableNotificationPreference) Unset

func (v *NullableNotificationPreference) Unset()

type NullablePaylater

type NullablePaylater struct {
	// contains filtered or unexported fields
}

func NewNullablePaylater

func NewNullablePaylater(val *Paylater) *NullablePaylater

func (NullablePaylater) Get

func (v NullablePaylater) Get() *Paylater

func (NullablePaylater) IsSet

func (v NullablePaylater) IsSet() bool

func (NullablePaylater) MarshalJSON

func (v NullablePaylater) MarshalJSON() ([]byte, error)

func (*NullablePaylater) Set

func (v *NullablePaylater) Set(val *Paylater)

func (*NullablePaylater) UnmarshalJSON

func (v *NullablePaylater) UnmarshalJSON(src []byte) error

func (*NullablePaylater) Unset

func (v *NullablePaylater) Unset()

type NullablePaylaterType

type NullablePaylaterType struct {
	// contains filtered or unexported fields
}

func NewNullablePaylaterType

func NewNullablePaylaterType(val *PaylaterType) *NullablePaylaterType

func (NullablePaylaterType) Get

func (NullablePaylaterType) IsSet

func (v NullablePaylaterType) IsSet() bool

func (NullablePaylaterType) MarshalJSON

func (v NullablePaylaterType) MarshalJSON() ([]byte, error)

func (*NullablePaylaterType) Set

func (v *NullablePaylaterType) Set(val *PaylaterType)

func (*NullablePaylaterType) UnmarshalJSON

func (v *NullablePaylaterType) UnmarshalJSON(src []byte) error

func (*NullablePaylaterType) Unset

func (v *NullablePaylaterType) Unset()

type NullablePaymentDetails

type NullablePaymentDetails struct {
	// contains filtered or unexported fields
}

func NewNullablePaymentDetails

func NewNullablePaymentDetails(val *PaymentDetails) *NullablePaymentDetails

func (NullablePaymentDetails) Get

func (NullablePaymentDetails) IsSet

func (v NullablePaymentDetails) IsSet() bool

func (NullablePaymentDetails) MarshalJSON

func (v NullablePaymentDetails) MarshalJSON() ([]byte, error)

func (*NullablePaymentDetails) Set

func (*NullablePaymentDetails) UnmarshalJSON

func (v *NullablePaymentDetails) UnmarshalJSON(src []byte) error

func (*NullablePaymentDetails) Unset

func (v *NullablePaymentDetails) Unset()

type NullableQrCode

type NullableQrCode struct {
	// contains filtered or unexported fields
}

func NewNullableQrCode

func NewNullableQrCode(val *QrCode) *NullableQrCode

func (NullableQrCode) Get

func (v NullableQrCode) Get() *QrCode

func (NullableQrCode) IsSet

func (v NullableQrCode) IsSet() bool

func (NullableQrCode) MarshalJSON

func (v NullableQrCode) MarshalJSON() ([]byte, error)

func (*NullableQrCode) Set

func (v *NullableQrCode) Set(val *QrCode)

func (*NullableQrCode) UnmarshalJSON

func (v *NullableQrCode) UnmarshalJSON(src []byte) error

func (*NullableQrCode) Unset

func (v *NullableQrCode) Unset()

type NullableQrCodeType

type NullableQrCodeType struct {
	// contains filtered or unexported fields
}

func NewNullableQrCodeType

func NewNullableQrCodeType(val *QrCodeType) *NullableQrCodeType

func (NullableQrCodeType) Get

func (v NullableQrCodeType) Get() *QrCodeType

func (NullableQrCodeType) IsSet

func (v NullableQrCodeType) IsSet() bool

func (NullableQrCodeType) MarshalJSON

func (v NullableQrCodeType) MarshalJSON() ([]byte, error)

func (*NullableQrCodeType) Set

func (v *NullableQrCodeType) Set(val *QrCodeType)

func (*NullableQrCodeType) UnmarshalJSON

func (v *NullableQrCodeType) UnmarshalJSON(src []byte) error

func (*NullableQrCodeType) Unset

func (v *NullableQrCodeType) Unset()

type NullableRetailOutlet

type NullableRetailOutlet struct {
	// contains filtered or unexported fields
}

func NewNullableRetailOutlet

func NewNullableRetailOutlet(val *RetailOutlet) *NullableRetailOutlet

func (NullableRetailOutlet) Get

func (NullableRetailOutlet) IsSet

func (v NullableRetailOutlet) IsSet() bool

func (NullableRetailOutlet) MarshalJSON

func (v NullableRetailOutlet) MarshalJSON() ([]byte, error)

func (*NullableRetailOutlet) Set

func (v *NullableRetailOutlet) Set(val *RetailOutlet)

func (*NullableRetailOutlet) UnmarshalJSON

func (v *NullableRetailOutlet) UnmarshalJSON(src []byte) error

func (*NullableRetailOutlet) Unset

func (v *NullableRetailOutlet) Unset()

type NullableRetailOutletName

type NullableRetailOutletName struct {
	// contains filtered or unexported fields
}

func NewNullableRetailOutletName

func NewNullableRetailOutletName(val *RetailOutletName) *NullableRetailOutletName

func (NullableRetailOutletName) Get

func (NullableRetailOutletName) IsSet

func (v NullableRetailOutletName) IsSet() bool

func (NullableRetailOutletName) MarshalJSON

func (v NullableRetailOutletName) MarshalJSON() ([]byte, error)

func (*NullableRetailOutletName) Set

func (*NullableRetailOutletName) UnmarshalJSON

func (v *NullableRetailOutletName) UnmarshalJSON(src []byte) error

func (*NullableRetailOutletName) Unset

func (v *NullableRetailOutletName) Unset()

type NullableServerError

type NullableServerError struct {
	// contains filtered or unexported fields
}

func NewNullableServerError

func NewNullableServerError(val *ServerError) *NullableServerError

func (NullableServerError) Get

func (NullableServerError) IsSet

func (v NullableServerError) IsSet() bool

func (NullableServerError) MarshalJSON

func (v NullableServerError) MarshalJSON() ([]byte, error)

func (*NullableServerError) Set

func (v *NullableServerError) Set(val *ServerError)

func (*NullableServerError) UnmarshalJSON

func (v *NullableServerError) UnmarshalJSON(src []byte) error

func (*NullableServerError) Unset

func (v *NullableServerError) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableUnauthorizedError

type NullableUnauthorizedError struct {
	// contains filtered or unexported fields
}

func NewNullableUnauthorizedError

func NewNullableUnauthorizedError(val *UnauthorizedError) *NullableUnauthorizedError

func (NullableUnauthorizedError) Get

func (NullableUnauthorizedError) IsSet

func (v NullableUnauthorizedError) IsSet() bool

func (NullableUnauthorizedError) MarshalJSON

func (v NullableUnauthorizedError) MarshalJSON() ([]byte, error)

func (*NullableUnauthorizedError) Set

func (*NullableUnauthorizedError) UnmarshalJSON

func (v *NullableUnauthorizedError) UnmarshalJSON(src []byte) error

func (*NullableUnauthorizedError) Unset

func (v *NullableUnauthorizedError) Unset()

type Paylater

type Paylater struct {
	PaylaterType PaylaterType `json:"paylater_type"`
	// Indicates whether this paylater option should be excluded.
	ShouldExclude *bool `json:"should_exclude,omitempty"`
}

Paylater An object representing paylater details for invoices.

func NewPaylater

func NewPaylater(paylaterType PaylaterType) *Paylater

NewPaylater instantiates a new Paylater object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPaylaterWithDefaults

func NewPaylaterWithDefaults() *Paylater

NewPaylaterWithDefaults instantiates a new Paylater object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*Paylater) GetPaylaterType

func (o *Paylater) GetPaylaterType() PaylaterType

GetPaylaterType returns the PaylaterType field value

func (*Paylater) GetPaylaterTypeOk

func (o *Paylater) GetPaylaterTypeOk() (*PaylaterType, bool)

GetPaylaterTypeOk returns a tuple with the PaylaterType field value and a boolean to check if the value has been set.

func (*Paylater) GetShouldExclude

func (o *Paylater) GetShouldExclude() bool

GetShouldExclude returns the ShouldExclude field value if set, zero value otherwise.

func (*Paylater) GetShouldExcludeOk

func (o *Paylater) GetShouldExcludeOk() (*bool, bool)

GetShouldExcludeOk returns a tuple with the ShouldExclude field value if set, nil otherwise and a boolean to check if the value has been set.

func (*Paylater) HasShouldExclude

func (o *Paylater) HasShouldExclude() bool

HasShouldExclude returns a boolean if a field has been set.

func (Paylater) MarshalJSON

func (o Paylater) MarshalJSON() ([]byte, error)

func (*Paylater) SetPaylaterType

func (o *Paylater) SetPaylaterType(v PaylaterType)

SetPaylaterType sets field value

func (*Paylater) SetShouldExclude

func (o *Paylater) SetShouldExclude(v bool)

SetShouldExclude gets a reference to the given bool and assigns it to the ShouldExclude field.

func (Paylater) ToMap

func (o Paylater) ToMap() (map[string]interface{}, error)

type PaylaterType

type PaylaterType string

PaylaterType Representing the available paylater channels used for invoice-related transactions.

const (
	PAYLATERTYPE_KREDIVO                      PaylaterType = "KREDIVO"
	PAYLATERTYPE_AKULAKU                      PaylaterType = "AKULAKU"
	PAYLATERTYPE_UANGME                       PaylaterType = "UANGME"
	PAYLATERTYPE_BILLEASE                     PaylaterType = "BILLEASE"
	PAYLATERTYPE_CASHALO                      PaylaterType = "CASHALO"
	PAYLATERTYPE_ATOME                        PaylaterType = "ATOME"
	PAYLATERTYPE_XENDIT_ENUM_DEFAULT_FALLBACK PaylaterType = "UNKNOWN_ENUM_VALUE"
)

List of PaylaterType

func NewPaylaterTypeFromValue

func NewPaylaterTypeFromValue(v string) (*PaylaterType, error)

NewPaylaterTypeFromValue returns a pointer to a valid PaylaterType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (PaylaterType) IsValid

func (v PaylaterType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (PaylaterType) Ptr

func (v PaylaterType) Ptr() *PaylaterType

Ptr returns reference to PaylaterType value

func (PaylaterType) String

func (v PaylaterType) String() string

func (*PaylaterType) UnmarshalJSON

func (v *PaylaterType) UnmarshalJSON(src []byte) error

type PaymentDetails

type PaymentDetails struct {
	// The unique identifier or reference ID associated with the payment receipt.
	ReceiptId *string `json:"receipt_id,omitempty"`
	// The source or method of payment.
	Source *string `json:"source,omitempty"`
}

PaymentDetails An object representing payment details.

func NewPaymentDetails

func NewPaymentDetails() *PaymentDetails

NewPaymentDetails instantiates a new PaymentDetails object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPaymentDetailsWithDefaults

func NewPaymentDetailsWithDefaults() *PaymentDetails

NewPaymentDetailsWithDefaults instantiates a new PaymentDetails object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PaymentDetails) GetReceiptId

func (o *PaymentDetails) GetReceiptId() string

GetReceiptId returns the ReceiptId field value if set, zero value otherwise.

func (*PaymentDetails) GetReceiptIdOk

func (o *PaymentDetails) GetReceiptIdOk() (*string, bool)

GetReceiptIdOk returns a tuple with the ReceiptId field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaymentDetails) GetSource

func (o *PaymentDetails) GetSource() string

GetSource returns the Source field value if set, zero value otherwise.

func (*PaymentDetails) GetSourceOk

func (o *PaymentDetails) GetSourceOk() (*string, bool)

GetSourceOk returns a tuple with the Source field value if set, nil otherwise and a boolean to check if the value has been set.

func (*PaymentDetails) HasReceiptId

func (o *PaymentDetails) HasReceiptId() bool

HasReceiptId returns a boolean if a field has been set.

func (*PaymentDetails) HasSource

func (o *PaymentDetails) HasSource() bool

HasSource returns a boolean if a field has been set.

func (PaymentDetails) MarshalJSON

func (o PaymentDetails) MarshalJSON() ([]byte, error)

func (*PaymentDetails) SetReceiptId

func (o *PaymentDetails) SetReceiptId(v string)

SetReceiptId gets a reference to the given string and assigns it to the ReceiptId field.

func (*PaymentDetails) SetSource

func (o *PaymentDetails) SetSource(v string)

SetSource gets a reference to the given string and assigns it to the Source field.

func (PaymentDetails) ToMap

func (o PaymentDetails) ToMap() (map[string]interface{}, error)

type QrCode

type QrCode struct {
	QrCodeType QrCodeType `json:"qr_code_type"`
}

QrCode An object representing QR code details for invoices.

func NewQrCode

func NewQrCode(qrCodeType QrCodeType) *QrCode

NewQrCode instantiates a new QrCode object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewQrCodeWithDefaults

func NewQrCodeWithDefaults() *QrCode

NewQrCodeWithDefaults instantiates a new QrCode object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*QrCode) GetQrCodeType

func (o *QrCode) GetQrCodeType() QrCodeType

GetQrCodeType returns the QrCodeType field value

func (*QrCode) GetQrCodeTypeOk

func (o *QrCode) GetQrCodeTypeOk() (*QrCodeType, bool)

GetQrCodeTypeOk returns a tuple with the QrCodeType field value and a boolean to check if the value has been set.

func (QrCode) MarshalJSON

func (o QrCode) MarshalJSON() ([]byte, error)

func (*QrCode) SetQrCodeType

func (o *QrCode) SetQrCodeType(v QrCodeType)

SetQrCodeType sets field value

func (QrCode) ToMap

func (o QrCode) ToMap() (map[string]interface{}, error)

type QrCodeType

type QrCodeType string

QrCodeType Representing the available QR Code channels used for invoice-related transactions.

const (
	QRCODETYPE_QRIS                         QrCodeType = "QRIS"
	QRCODETYPE_PROMPTPAY                    QrCodeType = "PROMPTPAY"
	QRCODETYPE_XENDIT_ENUM_DEFAULT_FALLBACK QrCodeType = "UNKNOWN_ENUM_VALUE"
)

List of QrCodeType

func NewQrCodeTypeFromValue

func NewQrCodeTypeFromValue(v string) (*QrCodeType, error)

NewQrCodeTypeFromValue returns a pointer to a valid QrCodeType for the value passed as argument, or an error if the value passed is not allowed by the enum

func (QrCodeType) IsValid

func (v QrCodeType) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (QrCodeType) Ptr

func (v QrCodeType) Ptr() *QrCodeType

Ptr returns reference to QrCodeType value

func (QrCodeType) String

func (v QrCodeType) String() string

func (*QrCodeType) UnmarshalJSON

func (v *QrCodeType) UnmarshalJSON(src []byte) error

type RetailOutlet

type RetailOutlet struct {
	RetailOutletName RetailOutletName `json:"retail_outlet_name"`
	// The payment code.
	PaymentCode *string `json:"payment_code,omitempty"`
	// The transfer amount.
	TransferAmount *float64 `json:"transfer_amount,omitempty"`
	// The name of the merchant.
	MerchantName *string `json:"merchant_name,omitempty"`
}

RetailOutlet An object representing retail outlet details for invoices.

func NewRetailOutlet

func NewRetailOutlet(retailOutletName RetailOutletName) *RetailOutlet

NewRetailOutlet instantiates a new RetailOutlet object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewRetailOutletWithDefaults

func NewRetailOutletWithDefaults() *RetailOutlet

NewRetailOutletWithDefaults instantiates a new RetailOutlet object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*RetailOutlet) GetMerchantName

func (o *RetailOutlet) GetMerchantName() string

GetMerchantName returns the MerchantName field value if set, zero value otherwise.

func (*RetailOutlet) GetMerchantNameOk

func (o *RetailOutlet) GetMerchantNameOk() (*string, bool)

GetMerchantNameOk returns a tuple with the MerchantName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RetailOutlet) GetPaymentCode

func (o *RetailOutlet) GetPaymentCode() string

GetPaymentCode returns the PaymentCode field value if set, zero value otherwise.

func (*RetailOutlet) GetPaymentCodeOk

func (o *RetailOutlet) GetPaymentCodeOk() (*string, bool)

GetPaymentCodeOk returns a tuple with the PaymentCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RetailOutlet) GetRetailOutletName

func (o *RetailOutlet) GetRetailOutletName() RetailOutletName

GetRetailOutletName returns the RetailOutletName field value

func (*RetailOutlet) GetRetailOutletNameOk

func (o *RetailOutlet) GetRetailOutletNameOk() (*RetailOutletName, bool)

GetRetailOutletNameOk returns a tuple with the RetailOutletName field value and a boolean to check if the value has been set.

func (*RetailOutlet) GetTransferAmount

func (o *RetailOutlet) GetTransferAmount() float64

GetTransferAmount returns the TransferAmount field value if set, zero value otherwise.

func (*RetailOutlet) GetTransferAmountOk

func (o *RetailOutlet) GetTransferAmountOk() (*float64, bool)

GetTransferAmountOk returns a tuple with the TransferAmount field value if set, nil otherwise and a boolean to check if the value has been set.

func (*RetailOutlet) HasMerchantName

func (o *RetailOutlet) HasMerchantName() bool

HasMerchantName returns a boolean if a field has been set.

func (*RetailOutlet) HasPaymentCode

func (o *RetailOutlet) HasPaymentCode() bool

HasPaymentCode returns a boolean if a field has been set.

func (*RetailOutlet) HasTransferAmount

func (o *RetailOutlet) HasTransferAmount() bool

HasTransferAmount returns a boolean if a field has been set.

func (RetailOutlet) MarshalJSON

func (o RetailOutlet) MarshalJSON() ([]byte, error)

func (*RetailOutlet) SetMerchantName

func (o *RetailOutlet) SetMerchantName(v string)

SetMerchantName gets a reference to the given string and assigns it to the MerchantName field.

func (*RetailOutlet) SetPaymentCode

func (o *RetailOutlet) SetPaymentCode(v string)

SetPaymentCode gets a reference to the given string and assigns it to the PaymentCode field.

func (*RetailOutlet) SetRetailOutletName

func (o *RetailOutlet) SetRetailOutletName(v RetailOutletName)

SetRetailOutletName sets field value

func (*RetailOutlet) SetTransferAmount

func (o *RetailOutlet) SetTransferAmount(v float64)

SetTransferAmount gets a reference to the given float64 and assigns it to the TransferAmount field.

func (RetailOutlet) ToMap

func (o RetailOutlet) ToMap() (map[string]interface{}, error)

type RetailOutletName

type RetailOutletName string

RetailOutletName Representing the available retail outlet channels used for invoice-related transactions.

const (
	RETAILOUTLETNAME_ALFAMART                     RetailOutletName = "ALFAMART"
	RETAILOUTLETNAME_INDOMARET                    RetailOutletName = "INDOMARET"
	RETAILOUTLETNAME__7_ELEVEN                    RetailOutletName = "7ELEVEN"
	RETAILOUTLETNAME_CEBUANA                      RetailOutletName = "CEBUANA"
	RETAILOUTLETNAME_DP_ECPAY_LOAN                RetailOutletName = "DP_ECPAY_LOAN"
	RETAILOUTLETNAME_DP_MLHUILLIER                RetailOutletName = "DP_MLHUILLIER"
	RETAILOUTLETNAME_DP_PALAWAN                   RetailOutletName = "DP_PALAWAN"
	RETAILOUTLETNAME_DP_ECPAY_SCHOOL              RetailOutletName = "DP_ECPAY_SCHOOL"
	RETAILOUTLETNAME_LBC                          RetailOutletName = "LBC"
	RETAILOUTLETNAME_XENDIT_ENUM_DEFAULT_FALLBACK RetailOutletName = "UNKNOWN_ENUM_VALUE"
)

List of RetailOutletName

func NewRetailOutletNameFromValue

func NewRetailOutletNameFromValue(v string) (*RetailOutletName, error)

NewRetailOutletNameFromValue returns a pointer to a valid RetailOutletName for the value passed as argument, or an error if the value passed is not allowed by the enum

func (RetailOutletName) IsValid

func (v RetailOutletName) IsValid() bool

IsValid return true if the value is valid for the enum, false otherwise

func (RetailOutletName) Ptr

Ptr returns reference to RetailOutletName value

func (RetailOutletName) String

func (v RetailOutletName) String() string

func (*RetailOutletName) UnmarshalJSON

func (v *RetailOutletName) UnmarshalJSON(src []byte) error

type ServerError

type ServerError struct {
	ErrorCode string `json:"error_code"`
	Message   string `json:"message"`
}

ServerError struct for ServerError

func NewServerError

func NewServerError(errorCode string, message string) *ServerError

NewServerError instantiates a new ServerError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewServerErrorWithDefaults

func NewServerErrorWithDefaults() *ServerError

NewServerErrorWithDefaults instantiates a new ServerError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ServerError) GetErrorCode

func (o *ServerError) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*ServerError) GetErrorCodeOk

func (o *ServerError) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*ServerError) GetMessage

func (o *ServerError) GetMessage() string

GetMessage returns the Message field value

func (*ServerError) GetMessageOk

func (o *ServerError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (ServerError) MarshalJSON

func (o ServerError) MarshalJSON() ([]byte, error)

func (*ServerError) SetErrorCode

func (o *ServerError) SetErrorCode(v string)

SetErrorCode sets field value

func (*ServerError) SetMessage

func (o *ServerError) SetMessage(v string)

SetMessage sets field value

func (ServerError) ToMap

func (o ServerError) ToMap() (map[string]interface{}, error)

type UnauthorizedError

type UnauthorizedError struct {
	// The specific error code associated with the unauthorized access.
	ErrorCode string `json:"error_code"`
	// A human-readable error message providing additional context about the unauthorized access.
	Message string `json:"message"`
}

UnauthorizedError An error object used to indicate unauthorized access to an invoice-related resource.

func NewUnauthorizedError

func NewUnauthorizedError(errorCode string, message string) *UnauthorizedError

NewUnauthorizedError instantiates a new UnauthorizedError object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewUnauthorizedErrorWithDefaults

func NewUnauthorizedErrorWithDefaults() *UnauthorizedError

NewUnauthorizedErrorWithDefaults instantiates a new UnauthorizedError object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UnauthorizedError) GetErrorCode

func (o *UnauthorizedError) GetErrorCode() string

GetErrorCode returns the ErrorCode field value

func (*UnauthorizedError) GetErrorCodeOk

func (o *UnauthorizedError) GetErrorCodeOk() (*string, bool)

GetErrorCodeOk returns a tuple with the ErrorCode field value and a boolean to check if the value has been set.

func (*UnauthorizedError) GetMessage

func (o *UnauthorizedError) GetMessage() string

GetMessage returns the Message field value

func (*UnauthorizedError) GetMessageOk

func (o *UnauthorizedError) GetMessageOk() (*string, bool)

GetMessageOk returns a tuple with the Message field value and a boolean to check if the value has been set.

func (UnauthorizedError) MarshalJSON

func (o UnauthorizedError) MarshalJSON() ([]byte, error)

func (*UnauthorizedError) SetErrorCode

func (o *UnauthorizedError) SetErrorCode(v string)

SetErrorCode sets field value

func (*UnauthorizedError) SetMessage

func (o *UnauthorizedError) SetMessage(v string)

SetMessage sets field value

func (UnauthorizedError) ToMap

func (o UnauthorizedError) ToMap() (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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