paymentsapi

package
v0.281.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Go API client for paymentsapi

REST API OpenAPI documentation for the payments-api

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.27.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Import the package in a go file in your project and run go mod tidy:

import paymentsapi "github.com/GIT_USER_ID/GIT_REPO_ID"

To use a proxy, set the environment variable HTTP_PROXY:

os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value paymentsapi.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), paymentsapi.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value paymentsapi.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), paymentsapi.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identified by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using paymentsapi.ContextOperationServerIndices and paymentsapi.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), paymentsapi.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), paymentsapi.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
BillingPaymentsAPI AddCredits Post /payments/credits Add credits using the default credit card
BillingPaymentsAPI CreateCreditCard Post /payments/credit_cards Create a new credit card
BillingPaymentsAPI DestroyCreditCard Delete /payments/credit_cards/{id} Destroy a credit card
BillingPaymentsAPI ListCreditCards Get /payments/credit_cards List of the credit cards
BillingPaymentsAPI ListPaymentHistory Get /payments/history List of the payment history
BillingPaymentsAPI PartialUpdateCreditCard Patch /payments/credit_cards/{id} Partially update a credit card
BillingPaymentsAPI RetrieveCreditCard Get /payments/credit_cards/{id} Retrieve details from a credit card

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

BearerAuth
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), paymentsapi.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)
TokenAuth
  • Type: API key
  • API key parameter name: Authorization
  • Location: HTTP header

Note, each API key must be added to a map of map[string]APIKey where the key is: TokenAuth and passed in as the auth context for each request.

Example

auth := context.WithValue(
		context.Background(),
		paymentsapi.ContextAPIKeys,
		map[string]paymentsapi.APIKey{
			"TokenAuth": {Key: "API_KEY_STRING"},
		},
	)
r, err := client.Service.Operation(auth, args)

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)
View Source
var (
	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	BillingPaymentsAPI *BillingPaymentsAPIService
	// contains filtered or unexported fields
}

APIClient manages communication with the payments-api API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiAddCreditsRequest

type ApiAddCreditsRequest struct {
	ApiService *BillingPaymentsAPIService
	// contains filtered or unexported fields
}

func (ApiAddCreditsRequest) CreditRequest

func (r ApiAddCreditsRequest) CreditRequest(creditRequest CreditRequest) ApiAddCreditsRequest

func (ApiAddCreditsRequest) Execute

type ApiCreateCreditCardRequest

type ApiCreateCreditCardRequest struct {
	ApiService *BillingPaymentsAPIService
	// contains filtered or unexported fields
}

func (ApiCreateCreditCardRequest) Execute

func (ApiCreateCreditCardRequest) PaymentMethodRequest

func (r ApiCreateCreditCardRequest) PaymentMethodRequest(paymentMethodRequest PaymentMethodRequest) ApiCreateCreditCardRequest

type ApiDestroyCreditCardRequest

type ApiDestroyCreditCardRequest struct {
	ApiService *BillingPaymentsAPIService
	// contains filtered or unexported fields
}

func (ApiDestroyCreditCardRequest) Execute

type ApiListCreditCardsRequest

type ApiListCreditCardsRequest struct {
	ApiService *BillingPaymentsAPIService
	// contains filtered or unexported fields
}

func (ApiListCreditCardsRequest) Execute

func (ApiListCreditCardsRequest) Fields

Comma-separated list of field names to include in the response.

func (ApiListCreditCardsRequest) Ordering

Which field to use when ordering the results. (Valid fields: id, card_holder, card_brand, card_expiration_month, card_expiration_year, card_last_4_digits, card_address_zip, card_country, card_address_line1, card_address_line2, stripe_token, card_id, is_default)

func (ApiListCreditCardsRequest) Page

A page number within the paginated result set.

func (ApiListCreditCardsRequest) PageSize

A numeric value that indicates the number of items per page.

func (ApiListCreditCardsRequest) Search

A search term.

type ApiListPaymentHistoryRequest

type ApiListPaymentHistoryRequest struct {
	ApiService *BillingPaymentsAPIService
	// contains filtered or unexported fields
}

func (ApiListPaymentHistoryRequest) Execute

func (ApiListPaymentHistoryRequest) Fields

Comma-separated list of field names to include in the response.

func (ApiListPaymentHistoryRequest) Ordering

Which field to use when ordering the results.

func (ApiListPaymentHistoryRequest) Page

A page number within the paginated result set.

func (ApiListPaymentHistoryRequest) PageSize

Number of results to return per page.

func (ApiListPaymentHistoryRequest) Search

A search term.

type ApiPartialUpdateCreditCardRequest

type ApiPartialUpdateCreditCardRequest struct {
	ApiService *BillingPaymentsAPIService
	// contains filtered or unexported fields
}

func (ApiPartialUpdateCreditCardRequest) Execute

func (ApiPartialUpdateCreditCardRequest) PatchedPartialUpdateRequest

func (r ApiPartialUpdateCreditCardRequest) PatchedPartialUpdateRequest(patchedPartialUpdateRequest PatchedPartialUpdateRequest) ApiPartialUpdateCreditCardRequest

type ApiRetrieveCreditCardRequest

type ApiRetrieveCreditCardRequest struct {
	ApiService *BillingPaymentsAPIService
	// contains filtered or unexported fields
}

func (ApiRetrieveCreditCardRequest) Execute

func (ApiRetrieveCreditCardRequest) Fields

Comma-separated list of field names to include in the response.

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BillingPaymentsAPIService

type BillingPaymentsAPIService service

BillingPaymentsAPIService BillingPaymentsAPI service

func (*BillingPaymentsAPIService) AddCredits

AddCredits Add credits using the default credit card

Add credit into the default credit card in US Dollars.

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

func (*BillingPaymentsAPIService) AddCreditsExecute

Execute executes the request

@return CreditResponse

func (*BillingPaymentsAPIService) CreateCreditCard

CreateCreditCard Create a new credit card

Create a new credit card for your account.

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

func (*BillingPaymentsAPIService) CreateCreditCardExecute

Execute executes the request

@return PaymentMethodResponse

func (*BillingPaymentsAPIService) DestroyCreditCard

DestroyCreditCard Destroy a credit card

Destruction of a specific credit card in your account.

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

func (*BillingPaymentsAPIService) DestroyCreditCardExecute

Execute executes the request

@return DeleteResponse

func (*BillingPaymentsAPIService) ListCreditCards

ListCreditCards List of the credit cards

List all credit cards owned by your account.

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

func (*BillingPaymentsAPIService) ListCreditCardsExecute

Execute executes the request

@return PaginatedPaymentMethodResponseList

func (*BillingPaymentsAPIService) ListPaymentHistory

ListPaymentHistory List of the payment history

List all details of the payment history.

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

func (*BillingPaymentsAPIService) ListPaymentHistoryExecute

Execute executes the request

@return PaginatedPaymentHistoryList

func (*BillingPaymentsAPIService) PartialUpdateCreditCard

PartialUpdateCreditCard Partially update a credit card

Update the field 'is_default' to enable of an existing credit card.Only the field 'is_default' is editable for an existing card.

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

func (*BillingPaymentsAPIService) PartialUpdateCreditCardExecute

Execute executes the request

@return PaymentMethodResponse

func (*BillingPaymentsAPIService) RetrieveCreditCard

RetrieveCreditCard Retrieve details from a credit card

Retrieve details from a specific credit card in your account.

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

func (*BillingPaymentsAPIService) RetrieveCreditCardExecute

Execute executes the request

@return PaymentMethodResponse

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type Credit

type Credit struct {
	Amount           float64 `json:"amount"`
	ClientId         string  `json:"client_id"`
	Currency         string  `json:"currency"`
	EntryType        string  `json:"entry_type"`
	ExpirationDate   string  `json:"expiration_date"`
	Created          string  `json:"created"`
	CustomerStripeId string  `json:"customer_stripe_id"`
	Description      string  `json:"description"`
}

Credit struct for Credit

func NewCredit

func NewCredit(amount float64, clientId string, currency string, entryType string, expirationDate string, created string, customerStripeId string, description string) *Credit

NewCredit instantiates a new Credit 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 NewCreditWithDefaults

func NewCreditWithDefaults() *Credit

NewCreditWithDefaults instantiates a new Credit 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 (*Credit) GetAmount

func (o *Credit) GetAmount() float64

GetAmount returns the Amount field value

func (*Credit) GetAmountOk

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

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

func (*Credit) GetClientId

func (o *Credit) GetClientId() string

GetClientId returns the ClientId field value

func (*Credit) GetClientIdOk

func (o *Credit) GetClientIdOk() (*string, bool)

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

func (*Credit) GetCreated

func (o *Credit) GetCreated() string

GetCreated returns the Created field value

func (*Credit) GetCreatedOk

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

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

func (*Credit) GetCurrency

func (o *Credit) GetCurrency() string

GetCurrency returns the Currency field value

func (*Credit) GetCurrencyOk

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

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

func (*Credit) GetCustomerStripeId

func (o *Credit) GetCustomerStripeId() string

GetCustomerStripeId returns the CustomerStripeId field value

func (*Credit) GetCustomerStripeIdOk

func (o *Credit) GetCustomerStripeIdOk() (*string, bool)

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

func (*Credit) GetDescription

func (o *Credit) GetDescription() string

GetDescription returns the Description field value

func (*Credit) GetDescriptionOk

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

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

func (*Credit) GetEntryType

func (o *Credit) GetEntryType() string

GetEntryType returns the EntryType field value

func (*Credit) GetEntryTypeOk

func (o *Credit) GetEntryTypeOk() (*string, bool)

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

func (*Credit) GetExpirationDate

func (o *Credit) GetExpirationDate() string

GetExpirationDate returns the ExpirationDate field value

func (*Credit) GetExpirationDateOk

func (o *Credit) GetExpirationDateOk() (*string, bool)

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

func (Credit) MarshalJSON

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

func (*Credit) SetAmount

func (o *Credit) SetAmount(v float64)

SetAmount sets field value

func (*Credit) SetClientId

func (o *Credit) SetClientId(v string)

SetClientId sets field value

func (*Credit) SetCreated

func (o *Credit) SetCreated(v string)

SetCreated sets field value

func (*Credit) SetCurrency

func (o *Credit) SetCurrency(v string)

SetCurrency sets field value

func (*Credit) SetCustomerStripeId

func (o *Credit) SetCustomerStripeId(v string)

SetCustomerStripeId sets field value

func (*Credit) SetDescription

func (o *Credit) SetDescription(v string)

SetDescription sets field value

func (*Credit) SetEntryType

func (o *Credit) SetEntryType(v string)

SetEntryType sets field value

func (*Credit) SetExpirationDate

func (o *Credit) SetExpirationDate(v string)

SetExpirationDate sets field value

func (Credit) ToMap

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

func (*Credit) UnmarshalJSON

func (o *Credit) UnmarshalJSON(data []byte) (err error)

type CreditRequest

type CreditRequest struct {
	Amount float64 `json:"amount"`
}

CreditRequest struct for CreditRequest

func NewCreditRequest

func NewCreditRequest(amount float64) *CreditRequest

NewCreditRequest instantiates a new CreditRequest 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 NewCreditRequestWithDefaults

func NewCreditRequestWithDefaults() *CreditRequest

NewCreditRequestWithDefaults instantiates a new CreditRequest 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 (*CreditRequest) GetAmount

func (o *CreditRequest) GetAmount() float64

GetAmount returns the Amount field value

func (*CreditRequest) GetAmountOk

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

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

func (CreditRequest) MarshalJSON

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

func (*CreditRequest) SetAmount

func (o *CreditRequest) SetAmount(v float64)

SetAmount sets field value

func (CreditRequest) ToMap

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

func (*CreditRequest) UnmarshalJSON

func (o *CreditRequest) UnmarshalJSON(data []byte) (err error)

type CreditResponse

type CreditResponse struct {
	State *string `json:"state,omitempty"`
	Data  Credit  `json:"data"`
}

CreditResponse struct for CreditResponse

func NewCreditResponse

func NewCreditResponse(data Credit) *CreditResponse

NewCreditResponse instantiates a new CreditResponse 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 NewCreditResponseWithDefaults

func NewCreditResponseWithDefaults() *CreditResponse

NewCreditResponseWithDefaults instantiates a new CreditResponse 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 (*CreditResponse) GetData

func (o *CreditResponse) GetData() Credit

GetData returns the Data field value

func (*CreditResponse) GetDataOk

func (o *CreditResponse) GetDataOk() (*Credit, bool)

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

func (*CreditResponse) GetState

func (o *CreditResponse) GetState() string

GetState returns the State field value if set, zero value otherwise.

func (*CreditResponse) GetStateOk

func (o *CreditResponse) 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.

func (*CreditResponse) HasState

func (o *CreditResponse) HasState() bool

HasState returns a boolean if a field has been set.

func (CreditResponse) MarshalJSON

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

func (*CreditResponse) SetData

func (o *CreditResponse) SetData(v Credit)

SetData sets field value

func (*CreditResponse) SetState

func (o *CreditResponse) SetState(v string)

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

func (CreditResponse) ToMap

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

func (*CreditResponse) UnmarshalJSON

func (o *CreditResponse) UnmarshalJSON(data []byte) (err error)

type DeleteResponse

type DeleteResponse struct {
	State *string `json:"state,omitempty"`
}

DeleteResponse struct for DeleteResponse

func NewDeleteResponse

func NewDeleteResponse() *DeleteResponse

NewDeleteResponse instantiates a new DeleteResponse 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 NewDeleteResponseWithDefaults

func NewDeleteResponseWithDefaults() *DeleteResponse

NewDeleteResponseWithDefaults instantiates a new DeleteResponse 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 (*DeleteResponse) GetState

func (o *DeleteResponse) GetState() string

GetState returns the State field value if set, zero value otherwise.

func (*DeleteResponse) GetStateOk

func (o *DeleteResponse) 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.

func (*DeleteResponse) HasState

func (o *DeleteResponse) HasState() bool

HasState returns a boolean if a field has been set.

func (DeleteResponse) MarshalJSON

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

func (*DeleteResponse) SetState

func (o *DeleteResponse) SetState(v string)

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

func (DeleteResponse) ToMap

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

type GenericOpenAPIError

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

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type JSONAPIErrorObject

type JSONAPIErrorObject struct {
	// The HTTP status code applicable to this problem
	Status *string `json:"status,omitempty"`
	// An application-specific error code
	Code *string `json:"code,omitempty"`
	// A short, human-readable summary of the problem
	Title *string `json:"title,omitempty"`
	// A human-readable explanation specific to this occurrence of the problem
	Detail *string `json:"detail,omitempty"`
	// References to the primary source of the error
	Source *JSONAPIErrorSource `json:"source,omitempty"`
	// Non-standard meta-information about the error
	Meta map[string]interface{} `json:"meta,omitempty"`
}

JSONAPIErrorObject Serializer for a single JSON:API error object.

func NewJSONAPIErrorObject

func NewJSONAPIErrorObject() *JSONAPIErrorObject

NewJSONAPIErrorObject instantiates a new JSONAPIErrorObject 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 NewJSONAPIErrorObjectWithDefaults

func NewJSONAPIErrorObjectWithDefaults() *JSONAPIErrorObject

NewJSONAPIErrorObjectWithDefaults instantiates a new JSONAPIErrorObject 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 (*JSONAPIErrorObject) GetCode

func (o *JSONAPIErrorObject) GetCode() string

GetCode returns the Code field value if set, zero value otherwise.

func (*JSONAPIErrorObject) GetCodeOk

func (o *JSONAPIErrorObject) GetCodeOk() (*string, bool)

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

func (*JSONAPIErrorObject) GetDetail

func (o *JSONAPIErrorObject) GetDetail() string

GetDetail returns the Detail field value if set, zero value otherwise.

func (*JSONAPIErrorObject) GetDetailOk

func (o *JSONAPIErrorObject) GetDetailOk() (*string, bool)

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

func (*JSONAPIErrorObject) GetMeta

func (o *JSONAPIErrorObject) GetMeta() map[string]interface{}

GetMeta returns the Meta field value if set, zero value otherwise.

func (*JSONAPIErrorObject) GetMetaOk

func (o *JSONAPIErrorObject) GetMetaOk() (map[string]interface{}, bool)

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

func (*JSONAPIErrorObject) GetSource

func (o *JSONAPIErrorObject) GetSource() JSONAPIErrorSource

GetSource returns the Source field value if set, zero value otherwise.

func (*JSONAPIErrorObject) GetSourceOk

func (o *JSONAPIErrorObject) GetSourceOk() (*JSONAPIErrorSource, 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 (*JSONAPIErrorObject) GetStatus

func (o *JSONAPIErrorObject) GetStatus() string

GetStatus returns the Status field value if set, zero value otherwise.

func (*JSONAPIErrorObject) GetStatusOk

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

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

func (*JSONAPIErrorObject) GetTitle

func (o *JSONAPIErrorObject) GetTitle() string

GetTitle returns the Title field value if set, zero value otherwise.

func (*JSONAPIErrorObject) GetTitleOk

func (o *JSONAPIErrorObject) GetTitleOk() (*string, bool)

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

func (*JSONAPIErrorObject) HasCode

func (o *JSONAPIErrorObject) HasCode() bool

HasCode returns a boolean if a field has been set.

func (*JSONAPIErrorObject) HasDetail

func (o *JSONAPIErrorObject) HasDetail() bool

HasDetail returns a boolean if a field has been set.

func (*JSONAPIErrorObject) HasMeta

func (o *JSONAPIErrorObject) HasMeta() bool

HasMeta returns a boolean if a field has been set.

func (*JSONAPIErrorObject) HasSource

func (o *JSONAPIErrorObject) HasSource() bool

HasSource returns a boolean if a field has been set.

func (*JSONAPIErrorObject) HasStatus

func (o *JSONAPIErrorObject) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*JSONAPIErrorObject) HasTitle

func (o *JSONAPIErrorObject) HasTitle() bool

HasTitle returns a boolean if a field has been set.

func (JSONAPIErrorObject) MarshalJSON

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

func (*JSONAPIErrorObject) SetCode

func (o *JSONAPIErrorObject) SetCode(v string)

SetCode gets a reference to the given string and assigns it to the Code field.

func (*JSONAPIErrorObject) SetDetail

func (o *JSONAPIErrorObject) SetDetail(v string)

SetDetail gets a reference to the given string and assigns it to the Detail field.

func (*JSONAPIErrorObject) SetMeta

func (o *JSONAPIErrorObject) SetMeta(v map[string]interface{})

SetMeta gets a reference to the given map[string]interface{} and assigns it to the Meta field.

func (*JSONAPIErrorObject) SetSource

func (o *JSONAPIErrorObject) SetSource(v JSONAPIErrorSource)

SetSource gets a reference to the given JSONAPIErrorSource and assigns it to the Source field.

func (*JSONAPIErrorObject) SetStatus

func (o *JSONAPIErrorObject) SetStatus(v string)

SetStatus gets a reference to the given string and assigns it to the Status field.

func (*JSONAPIErrorObject) SetTitle

func (o *JSONAPIErrorObject) SetTitle(v string)

SetTitle gets a reference to the given string and assigns it to the Title field.

func (JSONAPIErrorObject) ToMap

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

type JSONAPIErrorResponse

type JSONAPIErrorResponse struct {
	// Array of error objects
	Errors []JSONAPIErrorObject `json:"errors"`
}

JSONAPIErrorResponse Serializer for a JSON:API error response.

func NewJSONAPIErrorResponse

func NewJSONAPIErrorResponse(errors []JSONAPIErrorObject) *JSONAPIErrorResponse

NewJSONAPIErrorResponse instantiates a new JSONAPIErrorResponse 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 NewJSONAPIErrorResponseWithDefaults

func NewJSONAPIErrorResponseWithDefaults() *JSONAPIErrorResponse

NewJSONAPIErrorResponseWithDefaults instantiates a new JSONAPIErrorResponse 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 (*JSONAPIErrorResponse) GetErrors

func (o *JSONAPIErrorResponse) GetErrors() []JSONAPIErrorObject

GetErrors returns the Errors field value

func (*JSONAPIErrorResponse) GetErrorsOk

func (o *JSONAPIErrorResponse) GetErrorsOk() ([]JSONAPIErrorObject, bool)

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

func (JSONAPIErrorResponse) MarshalJSON

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

func (*JSONAPIErrorResponse) SetErrors

func (o *JSONAPIErrorResponse) SetErrors(v []JSONAPIErrorObject)

SetErrors sets field value

func (JSONAPIErrorResponse) ToMap

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

func (*JSONAPIErrorResponse) UnmarshalJSON

func (o *JSONAPIErrorResponse) UnmarshalJSON(data []byte) (err error)

type JSONAPIErrorSource

type JSONAPIErrorSource struct {
	// JSON Pointer to the value in the request document that caused the error
	Pointer *string `json:"pointer,omitempty"`
	// URI query parameter that caused the error
	Parameter *string `json:"parameter,omitempty"`
	// Request header name that caused the error
	Header *string `json:"header,omitempty"`
}

JSONAPIErrorSource Serializer for the 'source' object in a JSON:API error.

func NewJSONAPIErrorSource

func NewJSONAPIErrorSource() *JSONAPIErrorSource

NewJSONAPIErrorSource instantiates a new JSONAPIErrorSource 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 NewJSONAPIErrorSourceWithDefaults

func NewJSONAPIErrorSourceWithDefaults() *JSONAPIErrorSource

NewJSONAPIErrorSourceWithDefaults instantiates a new JSONAPIErrorSource 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 (*JSONAPIErrorSource) GetHeader

func (o *JSONAPIErrorSource) GetHeader() string

GetHeader returns the Header field value if set, zero value otherwise.

func (*JSONAPIErrorSource) GetHeaderOk

func (o *JSONAPIErrorSource) GetHeaderOk() (*string, bool)

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

func (*JSONAPIErrorSource) GetParameter

func (o *JSONAPIErrorSource) GetParameter() string

GetParameter returns the Parameter field value if set, zero value otherwise.

func (*JSONAPIErrorSource) GetParameterOk

func (o *JSONAPIErrorSource) GetParameterOk() (*string, bool)

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

func (*JSONAPIErrorSource) GetPointer

func (o *JSONAPIErrorSource) GetPointer() string

GetPointer returns the Pointer field value if set, zero value otherwise.

func (*JSONAPIErrorSource) GetPointerOk

func (o *JSONAPIErrorSource) GetPointerOk() (*string, bool)

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

func (*JSONAPIErrorSource) HasHeader

func (o *JSONAPIErrorSource) HasHeader() bool

HasHeader returns a boolean if a field has been set.

func (*JSONAPIErrorSource) HasParameter

func (o *JSONAPIErrorSource) HasParameter() bool

HasParameter returns a boolean if a field has been set.

func (*JSONAPIErrorSource) HasPointer

func (o *JSONAPIErrorSource) HasPointer() bool

HasPointer returns a boolean if a field has been set.

func (JSONAPIErrorSource) MarshalJSON

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

func (*JSONAPIErrorSource) SetHeader

func (o *JSONAPIErrorSource) SetHeader(v string)

SetHeader gets a reference to the given string and assigns it to the Header field.

func (*JSONAPIErrorSource) SetParameter

func (o *JSONAPIErrorSource) SetParameter(v string)

SetParameter gets a reference to the given string and assigns it to the Parameter field.

func (*JSONAPIErrorSource) SetPointer

func (o *JSONAPIErrorSource) SetPointer(v string)

SetPointer gets a reference to the given string and assigns it to the Pointer field.

func (JSONAPIErrorSource) ToMap

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

type MappedNullable

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

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 NullableCredit

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

func NewNullableCredit

func NewNullableCredit(val *Credit) *NullableCredit

func (NullableCredit) Get

func (v NullableCredit) Get() *Credit

func (NullableCredit) IsSet

func (v NullableCredit) IsSet() bool

func (NullableCredit) MarshalJSON

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

func (*NullableCredit) Set

func (v *NullableCredit) Set(val *Credit)

func (*NullableCredit) UnmarshalJSON

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

func (*NullableCredit) Unset

func (v *NullableCredit) Unset()

type NullableCreditRequest

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

func NewNullableCreditRequest

func NewNullableCreditRequest(val *CreditRequest) *NullableCreditRequest

func (NullableCreditRequest) Get

func (NullableCreditRequest) IsSet

func (v NullableCreditRequest) IsSet() bool

func (NullableCreditRequest) MarshalJSON

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

func (*NullableCreditRequest) Set

func (v *NullableCreditRequest) Set(val *CreditRequest)

func (*NullableCreditRequest) UnmarshalJSON

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

func (*NullableCreditRequest) Unset

func (v *NullableCreditRequest) Unset()

type NullableCreditResponse

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

func NewNullableCreditResponse

func NewNullableCreditResponse(val *CreditResponse) *NullableCreditResponse

func (NullableCreditResponse) Get

func (NullableCreditResponse) IsSet

func (v NullableCreditResponse) IsSet() bool

func (NullableCreditResponse) MarshalJSON

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

func (*NullableCreditResponse) Set

func (*NullableCreditResponse) UnmarshalJSON

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

func (*NullableCreditResponse) Unset

func (v *NullableCreditResponse) Unset()

type NullableDeleteResponse

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

func NewNullableDeleteResponse

func NewNullableDeleteResponse(val *DeleteResponse) *NullableDeleteResponse

func (NullableDeleteResponse) Get

func (NullableDeleteResponse) IsSet

func (v NullableDeleteResponse) IsSet() bool

func (NullableDeleteResponse) MarshalJSON

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

func (*NullableDeleteResponse) Set

func (*NullableDeleteResponse) UnmarshalJSON

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

func (*NullableDeleteResponse) Unset

func (v *NullableDeleteResponse) 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 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 NullableJSONAPIErrorObject

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

func NewNullableJSONAPIErrorObject

func NewNullableJSONAPIErrorObject(val *JSONAPIErrorObject) *NullableJSONAPIErrorObject

func (NullableJSONAPIErrorObject) Get

func (NullableJSONAPIErrorObject) IsSet

func (v NullableJSONAPIErrorObject) IsSet() bool

func (NullableJSONAPIErrorObject) MarshalJSON

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

func (*NullableJSONAPIErrorObject) Set

func (*NullableJSONAPIErrorObject) UnmarshalJSON

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

func (*NullableJSONAPIErrorObject) Unset

func (v *NullableJSONAPIErrorObject) Unset()

type NullableJSONAPIErrorResponse

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

func NewNullableJSONAPIErrorResponse

func NewNullableJSONAPIErrorResponse(val *JSONAPIErrorResponse) *NullableJSONAPIErrorResponse

func (NullableJSONAPIErrorResponse) Get

func (NullableJSONAPIErrorResponse) IsSet

func (NullableJSONAPIErrorResponse) MarshalJSON

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

func (*NullableJSONAPIErrorResponse) Set

func (*NullableJSONAPIErrorResponse) UnmarshalJSON

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

func (*NullableJSONAPIErrorResponse) Unset

func (v *NullableJSONAPIErrorResponse) Unset()

type NullableJSONAPIErrorSource

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

func NewNullableJSONAPIErrorSource

func NewNullableJSONAPIErrorSource(val *JSONAPIErrorSource) *NullableJSONAPIErrorSource

func (NullableJSONAPIErrorSource) Get

func (NullableJSONAPIErrorSource) IsSet

func (v NullableJSONAPIErrorSource) IsSet() bool

func (NullableJSONAPIErrorSource) MarshalJSON

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

func (*NullableJSONAPIErrorSource) Set

func (*NullableJSONAPIErrorSource) UnmarshalJSON

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

func (*NullableJSONAPIErrorSource) Unset

func (v *NullableJSONAPIErrorSource) Unset()

type NullablePaginatedPaymentHistoryList

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

func (NullablePaginatedPaymentHistoryList) Get

func (NullablePaginatedPaymentHistoryList) IsSet

func (NullablePaginatedPaymentHistoryList) MarshalJSON

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

func (*NullablePaginatedPaymentHistoryList) Set

func (*NullablePaginatedPaymentHistoryList) UnmarshalJSON

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

func (*NullablePaginatedPaymentHistoryList) Unset

type NullablePaginatedPaymentMethodResponseList

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

func (NullablePaginatedPaymentMethodResponseList) Get

func (NullablePaginatedPaymentMethodResponseList) IsSet

func (NullablePaginatedPaymentMethodResponseList) MarshalJSON

func (*NullablePaginatedPaymentMethodResponseList) Set

func (*NullablePaginatedPaymentMethodResponseList) UnmarshalJSON

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

func (*NullablePaginatedPaymentMethodResponseList) Unset

type NullablePatchedPartialUpdateRequest

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

func (NullablePatchedPartialUpdateRequest) Get

func (NullablePatchedPartialUpdateRequest) IsSet

func (NullablePatchedPartialUpdateRequest) MarshalJSON

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

func (*NullablePatchedPartialUpdateRequest) Set

func (*NullablePatchedPartialUpdateRequest) UnmarshalJSON

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

func (*NullablePatchedPartialUpdateRequest) Unset

type NullablePaymentHistory

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

func NewNullablePaymentHistory

func NewNullablePaymentHistory(val *PaymentHistory) *NullablePaymentHistory

func (NullablePaymentHistory) Get

func (NullablePaymentHistory) IsSet

func (v NullablePaymentHistory) IsSet() bool

func (NullablePaymentHistory) MarshalJSON

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

func (*NullablePaymentHistory) Set

func (*NullablePaymentHistory) UnmarshalJSON

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

func (*NullablePaymentHistory) Unset

func (v *NullablePaymentHistory) Unset()

type NullablePaymentMethod

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

func NewNullablePaymentMethod

func NewNullablePaymentMethod(val *PaymentMethod) *NullablePaymentMethod

func (NullablePaymentMethod) Get

func (NullablePaymentMethod) IsSet

func (v NullablePaymentMethod) IsSet() bool

func (NullablePaymentMethod) MarshalJSON

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

func (*NullablePaymentMethod) Set

func (v *NullablePaymentMethod) Set(val *PaymentMethod)

func (*NullablePaymentMethod) UnmarshalJSON

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

func (*NullablePaymentMethod) Unset

func (v *NullablePaymentMethod) Unset()

type NullablePaymentMethodRequest

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

func NewNullablePaymentMethodRequest

func NewNullablePaymentMethodRequest(val *PaymentMethodRequest) *NullablePaymentMethodRequest

func (NullablePaymentMethodRequest) Get

func (NullablePaymentMethodRequest) IsSet

func (NullablePaymentMethodRequest) MarshalJSON

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

func (*NullablePaymentMethodRequest) Set

func (*NullablePaymentMethodRequest) UnmarshalJSON

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

func (*NullablePaymentMethodRequest) Unset

func (v *NullablePaymentMethodRequest) Unset()

type NullablePaymentMethodResponse

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

func (NullablePaymentMethodResponse) Get

func (NullablePaymentMethodResponse) IsSet

func (NullablePaymentMethodResponse) MarshalJSON

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

func (*NullablePaymentMethodResponse) Set

func (*NullablePaymentMethodResponse) UnmarshalJSON

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

func (*NullablePaymentMethodResponse) Unset

func (v *NullablePaymentMethodResponse) 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 PaginatedPaymentHistoryList

type PaginatedPaymentHistoryList struct {
	// Total number of items
	Count *int64 `json:"count,omitempty"`
	// Total number of pages
	TotalPages *int64 `json:"total_pages,omitempty"`
	// Current page number
	Page *int64 `json:"page,omitempty"`
	// Number of items per page
	PageSize *int64 `json:"page_size,omitempty"`
	// URL to the next page of results
	Next NullableString `json:"next,omitempty"`
	// URL to the previous page of results
	Previous NullableString   `json:"previous,omitempty"`
	Results  []PaymentHistory `json:"results,omitempty"`
}

PaginatedPaymentHistoryList struct for PaginatedPaymentHistoryList

func NewPaginatedPaymentHistoryList

func NewPaginatedPaymentHistoryList() *PaginatedPaymentHistoryList

NewPaginatedPaymentHistoryList instantiates a new PaginatedPaymentHistoryList 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 NewPaginatedPaymentHistoryListWithDefaults

func NewPaginatedPaymentHistoryListWithDefaults() *PaginatedPaymentHistoryList

NewPaginatedPaymentHistoryListWithDefaults instantiates a new PaginatedPaymentHistoryList 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 (*PaginatedPaymentHistoryList) GetCount

func (o *PaginatedPaymentHistoryList) GetCount() int64

GetCount returns the Count field value if set, zero value otherwise.

func (*PaginatedPaymentHistoryList) GetCountOk

func (o *PaginatedPaymentHistoryList) GetCountOk() (*int64, bool)

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

func (*PaginatedPaymentHistoryList) GetNext

func (o *PaginatedPaymentHistoryList) GetNext() string

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

func (*PaginatedPaymentHistoryList) GetNextOk

func (o *PaginatedPaymentHistoryList) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next 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 (*PaginatedPaymentHistoryList) GetPage

func (o *PaginatedPaymentHistoryList) GetPage() int64

GetPage returns the Page field value if set, zero value otherwise.

func (*PaginatedPaymentHistoryList) GetPageOk

func (o *PaginatedPaymentHistoryList) GetPageOk() (*int64, bool)

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

func (*PaginatedPaymentHistoryList) GetPageSize

func (o *PaginatedPaymentHistoryList) GetPageSize() int64

GetPageSize returns the PageSize field value if set, zero value otherwise.

func (*PaginatedPaymentHistoryList) GetPageSizeOk

func (o *PaginatedPaymentHistoryList) GetPageSizeOk() (*int64, bool)

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

func (*PaginatedPaymentHistoryList) GetPrevious

func (o *PaginatedPaymentHistoryList) GetPrevious() string

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

func (*PaginatedPaymentHistoryList) GetPreviousOk

func (o *PaginatedPaymentHistoryList) GetPreviousOk() (*string, bool)

GetPreviousOk returns a tuple with the Previous 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 (*PaginatedPaymentHistoryList) GetResults

func (o *PaginatedPaymentHistoryList) GetResults() []PaymentHistory

GetResults returns the Results field value if set, zero value otherwise.

func (*PaginatedPaymentHistoryList) GetResultsOk

func (o *PaginatedPaymentHistoryList) GetResultsOk() ([]PaymentHistory, bool)

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

func (*PaginatedPaymentHistoryList) GetTotalPages

func (o *PaginatedPaymentHistoryList) GetTotalPages() int64

GetTotalPages returns the TotalPages field value if set, zero value otherwise.

func (*PaginatedPaymentHistoryList) GetTotalPagesOk

func (o *PaginatedPaymentHistoryList) GetTotalPagesOk() (*int64, bool)

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

func (*PaginatedPaymentHistoryList) HasCount

func (o *PaginatedPaymentHistoryList) HasCount() bool

HasCount returns a boolean if a field has been set.

func (*PaginatedPaymentHistoryList) HasNext

func (o *PaginatedPaymentHistoryList) HasNext() bool

HasNext returns a boolean if a field has been set.

func (*PaginatedPaymentHistoryList) HasPage

func (o *PaginatedPaymentHistoryList) HasPage() bool

HasPage returns a boolean if a field has been set.

func (*PaginatedPaymentHistoryList) HasPageSize

func (o *PaginatedPaymentHistoryList) HasPageSize() bool

HasPageSize returns a boolean if a field has been set.

func (*PaginatedPaymentHistoryList) HasPrevious

func (o *PaginatedPaymentHistoryList) HasPrevious() bool

HasPrevious returns a boolean if a field has been set.

func (*PaginatedPaymentHistoryList) HasResults

func (o *PaginatedPaymentHistoryList) HasResults() bool

HasResults returns a boolean if a field has been set.

func (*PaginatedPaymentHistoryList) HasTotalPages

func (o *PaginatedPaymentHistoryList) HasTotalPages() bool

HasTotalPages returns a boolean if a field has been set.

func (PaginatedPaymentHistoryList) MarshalJSON

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

func (*PaginatedPaymentHistoryList) SetCount

func (o *PaginatedPaymentHistoryList) SetCount(v int64)

SetCount gets a reference to the given int64 and assigns it to the Count field.

func (*PaginatedPaymentHistoryList) SetNext

func (o *PaginatedPaymentHistoryList) SetNext(v string)

SetNext gets a reference to the given NullableString and assigns it to the Next field.

func (*PaginatedPaymentHistoryList) SetNextNil

func (o *PaginatedPaymentHistoryList) SetNextNil()

SetNextNil sets the value for Next to be an explicit nil

func (*PaginatedPaymentHistoryList) SetPage

func (o *PaginatedPaymentHistoryList) SetPage(v int64)

SetPage gets a reference to the given int64 and assigns it to the Page field.

func (*PaginatedPaymentHistoryList) SetPageSize

func (o *PaginatedPaymentHistoryList) SetPageSize(v int64)

SetPageSize gets a reference to the given int64 and assigns it to the PageSize field.

func (*PaginatedPaymentHistoryList) SetPrevious

func (o *PaginatedPaymentHistoryList) SetPrevious(v string)

SetPrevious gets a reference to the given NullableString and assigns it to the Previous field.

func (*PaginatedPaymentHistoryList) SetPreviousNil

func (o *PaginatedPaymentHistoryList) SetPreviousNil()

SetPreviousNil sets the value for Previous to be an explicit nil

func (*PaginatedPaymentHistoryList) SetResults

func (o *PaginatedPaymentHistoryList) SetResults(v []PaymentHistory)

SetResults gets a reference to the given []PaymentHistory and assigns it to the Results field.

func (*PaginatedPaymentHistoryList) SetTotalPages

func (o *PaginatedPaymentHistoryList) SetTotalPages(v int64)

SetTotalPages gets a reference to the given int64 and assigns it to the TotalPages field.

func (PaginatedPaymentHistoryList) ToMap

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

func (*PaginatedPaymentHistoryList) UnsetNext

func (o *PaginatedPaymentHistoryList) UnsetNext()

UnsetNext ensures that no value is present for Next, not even an explicit nil

func (*PaginatedPaymentHistoryList) UnsetPrevious

func (o *PaginatedPaymentHistoryList) UnsetPrevious()

UnsetPrevious ensures that no value is present for Previous, not even an explicit nil

type PaginatedPaymentMethodResponseList

type PaginatedPaymentMethodResponseList struct {
	// Total number of items
	Count *int64 `json:"count,omitempty"`
	// Total number of pages
	TotalPages *int64 `json:"total_pages,omitempty"`
	// Current page number
	Page *int64 `json:"page,omitempty"`
	// Number of items per page
	PageSize *int64 `json:"page_size,omitempty"`
	// URL to the next page of results
	Next NullableString `json:"next,omitempty"`
	// URL to the previous page of results
	Previous NullableString          `json:"previous,omitempty"`
	Results  []PaymentMethodResponse `json:"results,omitempty"`
}

PaginatedPaymentMethodResponseList struct for PaginatedPaymentMethodResponseList

func NewPaginatedPaymentMethodResponseList

func NewPaginatedPaymentMethodResponseList() *PaginatedPaymentMethodResponseList

NewPaginatedPaymentMethodResponseList instantiates a new PaginatedPaymentMethodResponseList 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 NewPaginatedPaymentMethodResponseListWithDefaults

func NewPaginatedPaymentMethodResponseListWithDefaults() *PaginatedPaymentMethodResponseList

NewPaginatedPaymentMethodResponseListWithDefaults instantiates a new PaginatedPaymentMethodResponseList 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 (*PaginatedPaymentMethodResponseList) GetCount

GetCount returns the Count field value if set, zero value otherwise.

func (*PaginatedPaymentMethodResponseList) GetCountOk

func (o *PaginatedPaymentMethodResponseList) GetCountOk() (*int64, bool)

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

func (*PaginatedPaymentMethodResponseList) GetNext

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

func (*PaginatedPaymentMethodResponseList) GetNextOk

func (o *PaginatedPaymentMethodResponseList) GetNextOk() (*string, bool)

GetNextOk returns a tuple with the Next 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 (*PaginatedPaymentMethodResponseList) GetPage

GetPage returns the Page field value if set, zero value otherwise.

func (*PaginatedPaymentMethodResponseList) GetPageOk

func (o *PaginatedPaymentMethodResponseList) GetPageOk() (*int64, bool)

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

func (*PaginatedPaymentMethodResponseList) GetPageSize

func (o *PaginatedPaymentMethodResponseList) GetPageSize() int64

GetPageSize returns the PageSize field value if set, zero value otherwise.

func (*PaginatedPaymentMethodResponseList) GetPageSizeOk

func (o *PaginatedPaymentMethodResponseList) GetPageSizeOk() (*int64, bool)

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

func (*PaginatedPaymentMethodResponseList) GetPrevious

func (o *PaginatedPaymentMethodResponseList) GetPrevious() string

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

func (*PaginatedPaymentMethodResponseList) GetPreviousOk

func (o *PaginatedPaymentMethodResponseList) GetPreviousOk() (*string, bool)

GetPreviousOk returns a tuple with the Previous 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 (*PaginatedPaymentMethodResponseList) GetResults

GetResults returns the Results field value if set, zero value otherwise.

func (*PaginatedPaymentMethodResponseList) GetResultsOk

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

func (*PaginatedPaymentMethodResponseList) GetTotalPages

func (o *PaginatedPaymentMethodResponseList) GetTotalPages() int64

GetTotalPages returns the TotalPages field value if set, zero value otherwise.

func (*PaginatedPaymentMethodResponseList) GetTotalPagesOk

func (o *PaginatedPaymentMethodResponseList) GetTotalPagesOk() (*int64, bool)

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

func (*PaginatedPaymentMethodResponseList) HasCount

HasCount returns a boolean if a field has been set.

func (*PaginatedPaymentMethodResponseList) HasNext

HasNext returns a boolean if a field has been set.

func (*PaginatedPaymentMethodResponseList) HasPage

HasPage returns a boolean if a field has been set.

func (*PaginatedPaymentMethodResponseList) HasPageSize

func (o *PaginatedPaymentMethodResponseList) HasPageSize() bool

HasPageSize returns a boolean if a field has been set.

func (*PaginatedPaymentMethodResponseList) HasPrevious

func (o *PaginatedPaymentMethodResponseList) HasPrevious() bool

HasPrevious returns a boolean if a field has been set.

func (*PaginatedPaymentMethodResponseList) HasResults

func (o *PaginatedPaymentMethodResponseList) HasResults() bool

HasResults returns a boolean if a field has been set.

func (*PaginatedPaymentMethodResponseList) HasTotalPages

func (o *PaginatedPaymentMethodResponseList) HasTotalPages() bool

HasTotalPages returns a boolean if a field has been set.

func (PaginatedPaymentMethodResponseList) MarshalJSON

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

func (*PaginatedPaymentMethodResponseList) SetCount

SetCount gets a reference to the given int64 and assigns it to the Count field.

func (*PaginatedPaymentMethodResponseList) SetNext

SetNext gets a reference to the given NullableString and assigns it to the Next field.

func (*PaginatedPaymentMethodResponseList) SetNextNil

func (o *PaginatedPaymentMethodResponseList) SetNextNil()

SetNextNil sets the value for Next to be an explicit nil

func (*PaginatedPaymentMethodResponseList) SetPage

SetPage gets a reference to the given int64 and assigns it to the Page field.

func (*PaginatedPaymentMethodResponseList) SetPageSize

func (o *PaginatedPaymentMethodResponseList) SetPageSize(v int64)

SetPageSize gets a reference to the given int64 and assigns it to the PageSize field.

func (*PaginatedPaymentMethodResponseList) SetPrevious

func (o *PaginatedPaymentMethodResponseList) SetPrevious(v string)

SetPrevious gets a reference to the given NullableString and assigns it to the Previous field.

func (*PaginatedPaymentMethodResponseList) SetPreviousNil

func (o *PaginatedPaymentMethodResponseList) SetPreviousNil()

SetPreviousNil sets the value for Previous to be an explicit nil

func (*PaginatedPaymentMethodResponseList) SetResults

SetResults gets a reference to the given []PaymentMethodResponse and assigns it to the Results field.

func (*PaginatedPaymentMethodResponseList) SetTotalPages

func (o *PaginatedPaymentMethodResponseList) SetTotalPages(v int64)

SetTotalPages gets a reference to the given int64 and assigns it to the TotalPages field.

func (PaginatedPaymentMethodResponseList) ToMap

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

func (*PaginatedPaymentMethodResponseList) UnsetNext

func (o *PaginatedPaymentMethodResponseList) UnsetNext()

UnsetNext ensures that no value is present for Next, not even an explicit nil

func (*PaginatedPaymentMethodResponseList) UnsetPrevious

func (o *PaginatedPaymentMethodResponseList) UnsetPrevious()

UnsetPrevious ensures that no value is present for Previous, not even an explicit nil

type PatchedPartialUpdateRequest

type PatchedPartialUpdateRequest struct {
	IsDefault *bool `json:"is_default,omitempty"`
}

PatchedPartialUpdateRequest struct for PatchedPartialUpdateRequest

func NewPatchedPartialUpdateRequest

func NewPatchedPartialUpdateRequest() *PatchedPartialUpdateRequest

NewPatchedPartialUpdateRequest instantiates a new PatchedPartialUpdateRequest 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 NewPatchedPartialUpdateRequestWithDefaults

func NewPatchedPartialUpdateRequestWithDefaults() *PatchedPartialUpdateRequest

NewPatchedPartialUpdateRequestWithDefaults instantiates a new PatchedPartialUpdateRequest 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 (*PatchedPartialUpdateRequest) GetIsDefault

func (o *PatchedPartialUpdateRequest) GetIsDefault() bool

GetIsDefault returns the IsDefault field value if set, zero value otherwise.

func (*PatchedPartialUpdateRequest) GetIsDefaultOk

func (o *PatchedPartialUpdateRequest) GetIsDefaultOk() (*bool, bool)

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

func (*PatchedPartialUpdateRequest) HasIsDefault

func (o *PatchedPartialUpdateRequest) HasIsDefault() bool

HasIsDefault returns a boolean if a field has been set.

func (PatchedPartialUpdateRequest) MarshalJSON

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

func (*PatchedPartialUpdateRequest) SetIsDefault

func (o *PatchedPartialUpdateRequest) SetIsDefault(v bool)

SetIsDefault gets a reference to the given bool and assigns it to the IsDefault field.

func (PatchedPartialUpdateRequest) ToMap

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

type PaymentHistory

type PaymentHistory struct {
	AmountWithCurrency   string         `json:"amount_with_currency"`
	InvoiceNumber        NullableString `json:"invoice_number"`
	InvoiceUrl           NullableString `json:"invoice_url"`
	Status               string         `json:"status"`
	PaymentDue           string         `json:"payment_due"`
	CardBrand            NullableString `json:"card_brand"`
	PaymentMethodDetails NullableString `json:"payment_method_details"`
}

PaymentHistory struct for PaymentHistory

func NewPaymentHistory

func NewPaymentHistory(amountWithCurrency string, invoiceNumber NullableString, invoiceUrl NullableString, status string, paymentDue string, cardBrand NullableString, paymentMethodDetails NullableString) *PaymentHistory

NewPaymentHistory instantiates a new PaymentHistory 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 NewPaymentHistoryWithDefaults

func NewPaymentHistoryWithDefaults() *PaymentHistory

NewPaymentHistoryWithDefaults instantiates a new PaymentHistory 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 (*PaymentHistory) GetAmountWithCurrency

func (o *PaymentHistory) GetAmountWithCurrency() string

GetAmountWithCurrency returns the AmountWithCurrency field value

func (*PaymentHistory) GetAmountWithCurrencyOk

func (o *PaymentHistory) GetAmountWithCurrencyOk() (*string, bool)

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

func (*PaymentHistory) GetCardBrand

func (o *PaymentHistory) GetCardBrand() string

GetCardBrand returns the CardBrand field value If the value is explicit nil, the zero value for string will be returned

func (*PaymentHistory) GetCardBrandOk

func (o *PaymentHistory) GetCardBrandOk() (*string, bool)

GetCardBrandOk returns a tuple with the CardBrand field value 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 (*PaymentHistory) GetInvoiceNumber

func (o *PaymentHistory) GetInvoiceNumber() string

GetInvoiceNumber returns the InvoiceNumber field value If the value is explicit nil, the zero value for string will be returned

func (*PaymentHistory) GetInvoiceNumberOk

func (o *PaymentHistory) GetInvoiceNumberOk() (*string, bool)

GetInvoiceNumberOk returns a tuple with the InvoiceNumber field value 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 (*PaymentHistory) GetInvoiceUrl

func (o *PaymentHistory) GetInvoiceUrl() string

GetInvoiceUrl returns the InvoiceUrl field value If the value is explicit nil, the zero value for string will be returned

func (*PaymentHistory) GetInvoiceUrlOk

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

GetInvoiceUrlOk returns a tuple with the InvoiceUrl field value 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 (*PaymentHistory) GetPaymentDue

func (o *PaymentHistory) GetPaymentDue() string

GetPaymentDue returns the PaymentDue field value

func (*PaymentHistory) GetPaymentDueOk

func (o *PaymentHistory) GetPaymentDueOk() (*string, bool)

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

func (*PaymentHistory) GetPaymentMethodDetails

func (o *PaymentHistory) GetPaymentMethodDetails() string

GetPaymentMethodDetails returns the PaymentMethodDetails field value If the value is explicit nil, the zero value for string will be returned

func (*PaymentHistory) GetPaymentMethodDetailsOk

func (o *PaymentHistory) GetPaymentMethodDetailsOk() (*string, bool)

GetPaymentMethodDetailsOk returns a tuple with the PaymentMethodDetails field value 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 (*PaymentHistory) GetStatus

func (o *PaymentHistory) GetStatus() string

GetStatus returns the Status field value

func (*PaymentHistory) GetStatusOk

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

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

func (PaymentHistory) MarshalJSON

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

func (*PaymentHistory) SetAmountWithCurrency

func (o *PaymentHistory) SetAmountWithCurrency(v string)

SetAmountWithCurrency sets field value

func (*PaymentHistory) SetCardBrand

func (o *PaymentHistory) SetCardBrand(v string)

SetCardBrand sets field value

func (*PaymentHistory) SetInvoiceNumber

func (o *PaymentHistory) SetInvoiceNumber(v string)

SetInvoiceNumber sets field value

func (*PaymentHistory) SetInvoiceUrl

func (o *PaymentHistory) SetInvoiceUrl(v string)

SetInvoiceUrl sets field value

func (*PaymentHistory) SetPaymentDue

func (o *PaymentHistory) SetPaymentDue(v string)

SetPaymentDue sets field value

func (*PaymentHistory) SetPaymentMethodDetails

func (o *PaymentHistory) SetPaymentMethodDetails(v string)

SetPaymentMethodDetails sets field value

func (*PaymentHistory) SetStatus

func (o *PaymentHistory) SetStatus(v string)

SetStatus sets field value

func (PaymentHistory) ToMap

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

func (*PaymentHistory) UnmarshalJSON

func (o *PaymentHistory) UnmarshalJSON(data []byte) (err error)

type PaymentMethod

type PaymentMethod struct {
	Id                  int64        `json:"id"`
	CardHolder          string       `json:"card_holder"`
	CardBrand           string       `json:"card_brand"`
	CardExpirationMonth int64        `json:"card_expiration_month"`
	CardExpirationYear  int64        `json:"card_expiration_year"`
	CardLast4Digits     string       `json:"card_last_4_digits"`
	CardAddressZip      string       `json:"card_address_zip"`
	CardCountry         string       `json:"card_country"`
	CardAddressLine1    *string      `json:"card_address_line1,omitempty"`
	CardAddressLine2    *string      `json:"card_address_line2,omitempty"`
	CardId              string       `json:"card_id"`
	IsDefault           *bool        `json:"is_default,omitempty"`
	CreatedAt           NullableTime `json:"created_at"`
}

PaymentMethod struct for PaymentMethod

func NewPaymentMethod

func NewPaymentMethod(id int64, cardHolder string, cardBrand string, cardExpirationMonth int64, cardExpirationYear int64, cardLast4Digits string, cardAddressZip string, cardCountry string, cardId string, createdAt NullableTime) *PaymentMethod

NewPaymentMethod instantiates a new PaymentMethod 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 NewPaymentMethodWithDefaults

func NewPaymentMethodWithDefaults() *PaymentMethod

NewPaymentMethodWithDefaults instantiates a new PaymentMethod 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 (*PaymentMethod) GetCardAddressLine1

func (o *PaymentMethod) GetCardAddressLine1() string

GetCardAddressLine1 returns the CardAddressLine1 field value if set, zero value otherwise.

func (*PaymentMethod) GetCardAddressLine1Ok

func (o *PaymentMethod) GetCardAddressLine1Ok() (*string, bool)

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

func (*PaymentMethod) GetCardAddressLine2

func (o *PaymentMethod) GetCardAddressLine2() string

GetCardAddressLine2 returns the CardAddressLine2 field value if set, zero value otherwise.

func (*PaymentMethod) GetCardAddressLine2Ok

func (o *PaymentMethod) GetCardAddressLine2Ok() (*string, bool)

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

func (*PaymentMethod) GetCardAddressZip

func (o *PaymentMethod) GetCardAddressZip() string

GetCardAddressZip returns the CardAddressZip field value

func (*PaymentMethod) GetCardAddressZipOk

func (o *PaymentMethod) GetCardAddressZipOk() (*string, bool)

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

func (*PaymentMethod) GetCardBrand

func (o *PaymentMethod) GetCardBrand() string

GetCardBrand returns the CardBrand field value

func (*PaymentMethod) GetCardBrandOk

func (o *PaymentMethod) GetCardBrandOk() (*string, bool)

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

func (*PaymentMethod) GetCardCountry

func (o *PaymentMethod) GetCardCountry() string

GetCardCountry returns the CardCountry field value

func (*PaymentMethod) GetCardCountryOk

func (o *PaymentMethod) GetCardCountryOk() (*string, bool)

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

func (*PaymentMethod) GetCardExpirationMonth

func (o *PaymentMethod) GetCardExpirationMonth() int64

GetCardExpirationMonth returns the CardExpirationMonth field value

func (*PaymentMethod) GetCardExpirationMonthOk

func (o *PaymentMethod) GetCardExpirationMonthOk() (*int64, bool)

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

func (*PaymentMethod) GetCardExpirationYear

func (o *PaymentMethod) GetCardExpirationYear() int64

GetCardExpirationYear returns the CardExpirationYear field value

func (*PaymentMethod) GetCardExpirationYearOk

func (o *PaymentMethod) GetCardExpirationYearOk() (*int64, bool)

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

func (*PaymentMethod) GetCardHolder

func (o *PaymentMethod) GetCardHolder() string

GetCardHolder returns the CardHolder field value

func (*PaymentMethod) GetCardHolderOk

func (o *PaymentMethod) GetCardHolderOk() (*string, bool)

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

func (*PaymentMethod) GetCardId

func (o *PaymentMethod) GetCardId() string

GetCardId returns the CardId field value

func (*PaymentMethod) GetCardIdOk

func (o *PaymentMethod) GetCardIdOk() (*string, bool)

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

func (*PaymentMethod) GetCardLast4Digits

func (o *PaymentMethod) GetCardLast4Digits() string

GetCardLast4Digits returns the CardLast4Digits field value

func (*PaymentMethod) GetCardLast4DigitsOk

func (o *PaymentMethod) GetCardLast4DigitsOk() (*string, bool)

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

func (*PaymentMethod) GetCreatedAt

func (o *PaymentMethod) GetCreatedAt() time.Time

GetCreatedAt returns the CreatedAt field value If the value is explicit nil, the zero value for time.Time will be returned

func (*PaymentMethod) GetCreatedAtOk

func (o *PaymentMethod) GetCreatedAtOk() (*time.Time, bool)

GetCreatedAtOk returns a tuple with the CreatedAt field value 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 (*PaymentMethod) GetId

func (o *PaymentMethod) GetId() int64

GetId returns the Id field value

func (*PaymentMethod) GetIdOk

func (o *PaymentMethod) GetIdOk() (*int64, bool)

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

func (*PaymentMethod) GetIsDefault

func (o *PaymentMethod) GetIsDefault() bool

GetIsDefault returns the IsDefault field value if set, zero value otherwise.

func (*PaymentMethod) GetIsDefaultOk

func (o *PaymentMethod) GetIsDefaultOk() (*bool, bool)

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

func (*PaymentMethod) HasCardAddressLine1

func (o *PaymentMethod) HasCardAddressLine1() bool

HasCardAddressLine1 returns a boolean if a field has been set.

func (*PaymentMethod) HasCardAddressLine2

func (o *PaymentMethod) HasCardAddressLine2() bool

HasCardAddressLine2 returns a boolean if a field has been set.

func (*PaymentMethod) HasIsDefault

func (o *PaymentMethod) HasIsDefault() bool

HasIsDefault returns a boolean if a field has been set.

func (PaymentMethod) MarshalJSON

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

func (*PaymentMethod) SetCardAddressLine1

func (o *PaymentMethod) SetCardAddressLine1(v string)

SetCardAddressLine1 gets a reference to the given string and assigns it to the CardAddressLine1 field.

func (*PaymentMethod) SetCardAddressLine2

func (o *PaymentMethod) SetCardAddressLine2(v string)

SetCardAddressLine2 gets a reference to the given string and assigns it to the CardAddressLine2 field.

func (*PaymentMethod) SetCardAddressZip

func (o *PaymentMethod) SetCardAddressZip(v string)

SetCardAddressZip sets field value

func (*PaymentMethod) SetCardBrand

func (o *PaymentMethod) SetCardBrand(v string)

SetCardBrand sets field value

func (*PaymentMethod) SetCardCountry

func (o *PaymentMethod) SetCardCountry(v string)

SetCardCountry sets field value

func (*PaymentMethod) SetCardExpirationMonth

func (o *PaymentMethod) SetCardExpirationMonth(v int64)

SetCardExpirationMonth sets field value

func (*PaymentMethod) SetCardExpirationYear

func (o *PaymentMethod) SetCardExpirationYear(v int64)

SetCardExpirationYear sets field value

func (*PaymentMethod) SetCardHolder

func (o *PaymentMethod) SetCardHolder(v string)

SetCardHolder sets field value

func (*PaymentMethod) SetCardId

func (o *PaymentMethod) SetCardId(v string)

SetCardId sets field value

func (*PaymentMethod) SetCardLast4Digits

func (o *PaymentMethod) SetCardLast4Digits(v string)

SetCardLast4Digits sets field value

func (*PaymentMethod) SetCreatedAt

func (o *PaymentMethod) SetCreatedAt(v time.Time)

SetCreatedAt sets field value

func (*PaymentMethod) SetId

func (o *PaymentMethod) SetId(v int64)

SetId sets field value

func (*PaymentMethod) SetIsDefault

func (o *PaymentMethod) SetIsDefault(v bool)

SetIsDefault gets a reference to the given bool and assigns it to the IsDefault field.

func (PaymentMethod) ToMap

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

func (*PaymentMethod) UnmarshalJSON

func (o *PaymentMethod) UnmarshalJSON(data []byte) (err error)

type PaymentMethodRequest

type PaymentMethodRequest struct {
	CardHolder          string  `json:"card_holder"`
	CardBrand           string  `json:"card_brand"`
	CardExpirationMonth int64   `json:"card_expiration_month"`
	CardExpirationYear  int64   `json:"card_expiration_year"`
	CardLast4Digits     string  `json:"card_last_4_digits"`
	CardAddressZip      string  `json:"card_address_zip"`
	CardCountry         string  `json:"card_country"`
	CardAddressLine1    *string `json:"card_address_line1,omitempty"`
	CardAddressLine2    *string `json:"card_address_line2,omitempty"`
	StripeToken         string  `json:"stripe_token"`
	CardId              string  `json:"card_id"`
	IsDefault           *bool   `json:"is_default,omitempty"`
}

PaymentMethodRequest struct for PaymentMethodRequest

func NewPaymentMethodRequest

func NewPaymentMethodRequest(cardHolder string, cardBrand string, cardExpirationMonth int64, cardExpirationYear int64, cardLast4Digits string, cardAddressZip string, cardCountry string, stripeToken string, cardId string) *PaymentMethodRequest

NewPaymentMethodRequest instantiates a new PaymentMethodRequest 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 NewPaymentMethodRequestWithDefaults

func NewPaymentMethodRequestWithDefaults() *PaymentMethodRequest

NewPaymentMethodRequestWithDefaults instantiates a new PaymentMethodRequest 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 (*PaymentMethodRequest) GetCardAddressLine1

func (o *PaymentMethodRequest) GetCardAddressLine1() string

GetCardAddressLine1 returns the CardAddressLine1 field value if set, zero value otherwise.

func (*PaymentMethodRequest) GetCardAddressLine1Ok

func (o *PaymentMethodRequest) GetCardAddressLine1Ok() (*string, bool)

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

func (*PaymentMethodRequest) GetCardAddressLine2

func (o *PaymentMethodRequest) GetCardAddressLine2() string

GetCardAddressLine2 returns the CardAddressLine2 field value if set, zero value otherwise.

func (*PaymentMethodRequest) GetCardAddressLine2Ok

func (o *PaymentMethodRequest) GetCardAddressLine2Ok() (*string, bool)

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

func (*PaymentMethodRequest) GetCardAddressZip

func (o *PaymentMethodRequest) GetCardAddressZip() string

GetCardAddressZip returns the CardAddressZip field value

func (*PaymentMethodRequest) GetCardAddressZipOk

func (o *PaymentMethodRequest) GetCardAddressZipOk() (*string, bool)

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

func (*PaymentMethodRequest) GetCardBrand

func (o *PaymentMethodRequest) GetCardBrand() string

GetCardBrand returns the CardBrand field value

func (*PaymentMethodRequest) GetCardBrandOk

func (o *PaymentMethodRequest) GetCardBrandOk() (*string, bool)

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

func (*PaymentMethodRequest) GetCardCountry

func (o *PaymentMethodRequest) GetCardCountry() string

GetCardCountry returns the CardCountry field value

func (*PaymentMethodRequest) GetCardCountryOk

func (o *PaymentMethodRequest) GetCardCountryOk() (*string, bool)

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

func (*PaymentMethodRequest) GetCardExpirationMonth

func (o *PaymentMethodRequest) GetCardExpirationMonth() int64

GetCardExpirationMonth returns the CardExpirationMonth field value

func (*PaymentMethodRequest) GetCardExpirationMonthOk

func (o *PaymentMethodRequest) GetCardExpirationMonthOk() (*int64, bool)

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

func (*PaymentMethodRequest) GetCardExpirationYear

func (o *PaymentMethodRequest) GetCardExpirationYear() int64

GetCardExpirationYear returns the CardExpirationYear field value

func (*PaymentMethodRequest) GetCardExpirationYearOk

func (o *PaymentMethodRequest) GetCardExpirationYearOk() (*int64, bool)

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

func (*PaymentMethodRequest) GetCardHolder

func (o *PaymentMethodRequest) GetCardHolder() string

GetCardHolder returns the CardHolder field value

func (*PaymentMethodRequest) GetCardHolderOk

func (o *PaymentMethodRequest) GetCardHolderOk() (*string, bool)

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

func (*PaymentMethodRequest) GetCardId

func (o *PaymentMethodRequest) GetCardId() string

GetCardId returns the CardId field value

func (*PaymentMethodRequest) GetCardIdOk

func (o *PaymentMethodRequest) GetCardIdOk() (*string, bool)

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

func (*PaymentMethodRequest) GetCardLast4Digits

func (o *PaymentMethodRequest) GetCardLast4Digits() string

GetCardLast4Digits returns the CardLast4Digits field value

func (*PaymentMethodRequest) GetCardLast4DigitsOk

func (o *PaymentMethodRequest) GetCardLast4DigitsOk() (*string, bool)

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

func (*PaymentMethodRequest) GetIsDefault

func (o *PaymentMethodRequest) GetIsDefault() bool

GetIsDefault returns the IsDefault field value if set, zero value otherwise.

func (*PaymentMethodRequest) GetIsDefaultOk

func (o *PaymentMethodRequest) GetIsDefaultOk() (*bool, bool)

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

func (*PaymentMethodRequest) GetStripeToken

func (o *PaymentMethodRequest) GetStripeToken() string

GetStripeToken returns the StripeToken field value

func (*PaymentMethodRequest) GetStripeTokenOk

func (o *PaymentMethodRequest) GetStripeTokenOk() (*string, bool)

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

func (*PaymentMethodRequest) HasCardAddressLine1

func (o *PaymentMethodRequest) HasCardAddressLine1() bool

HasCardAddressLine1 returns a boolean if a field has been set.

func (*PaymentMethodRequest) HasCardAddressLine2

func (o *PaymentMethodRequest) HasCardAddressLine2() bool

HasCardAddressLine2 returns a boolean if a field has been set.

func (*PaymentMethodRequest) HasIsDefault

func (o *PaymentMethodRequest) HasIsDefault() bool

HasIsDefault returns a boolean if a field has been set.

func (PaymentMethodRequest) MarshalJSON

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

func (*PaymentMethodRequest) SetCardAddressLine1

func (o *PaymentMethodRequest) SetCardAddressLine1(v string)

SetCardAddressLine1 gets a reference to the given string and assigns it to the CardAddressLine1 field.

func (*PaymentMethodRequest) SetCardAddressLine2

func (o *PaymentMethodRequest) SetCardAddressLine2(v string)

SetCardAddressLine2 gets a reference to the given string and assigns it to the CardAddressLine2 field.

func (*PaymentMethodRequest) SetCardAddressZip

func (o *PaymentMethodRequest) SetCardAddressZip(v string)

SetCardAddressZip sets field value

func (*PaymentMethodRequest) SetCardBrand

func (o *PaymentMethodRequest) SetCardBrand(v string)

SetCardBrand sets field value

func (*PaymentMethodRequest) SetCardCountry

func (o *PaymentMethodRequest) SetCardCountry(v string)

SetCardCountry sets field value

func (*PaymentMethodRequest) SetCardExpirationMonth

func (o *PaymentMethodRequest) SetCardExpirationMonth(v int64)

SetCardExpirationMonth sets field value

func (*PaymentMethodRequest) SetCardExpirationYear

func (o *PaymentMethodRequest) SetCardExpirationYear(v int64)

SetCardExpirationYear sets field value

func (*PaymentMethodRequest) SetCardHolder

func (o *PaymentMethodRequest) SetCardHolder(v string)

SetCardHolder sets field value

func (*PaymentMethodRequest) SetCardId

func (o *PaymentMethodRequest) SetCardId(v string)

SetCardId sets field value

func (*PaymentMethodRequest) SetCardLast4Digits

func (o *PaymentMethodRequest) SetCardLast4Digits(v string)

SetCardLast4Digits sets field value

func (*PaymentMethodRequest) SetIsDefault

func (o *PaymentMethodRequest) SetIsDefault(v bool)

SetIsDefault gets a reference to the given bool and assigns it to the IsDefault field.

func (*PaymentMethodRequest) SetStripeToken

func (o *PaymentMethodRequest) SetStripeToken(v string)

SetStripeToken sets field value

func (PaymentMethodRequest) ToMap

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

func (*PaymentMethodRequest) UnmarshalJSON

func (o *PaymentMethodRequest) UnmarshalJSON(data []byte) (err error)

type PaymentMethodResponse

type PaymentMethodResponse struct {
	State *string       `json:"state,omitempty"`
	Data  PaymentMethod `json:"data"`
}

PaymentMethodResponse struct for PaymentMethodResponse

func NewPaymentMethodResponse

func NewPaymentMethodResponse(data PaymentMethod) *PaymentMethodResponse

NewPaymentMethodResponse instantiates a new PaymentMethodResponse 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 NewPaymentMethodResponseWithDefaults

func NewPaymentMethodResponseWithDefaults() *PaymentMethodResponse

NewPaymentMethodResponseWithDefaults instantiates a new PaymentMethodResponse 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 (*PaymentMethodResponse) GetData

func (o *PaymentMethodResponse) GetData() PaymentMethod

GetData returns the Data field value

func (*PaymentMethodResponse) GetDataOk

func (o *PaymentMethodResponse) GetDataOk() (*PaymentMethod, bool)

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

func (*PaymentMethodResponse) GetState

func (o *PaymentMethodResponse) GetState() string

GetState returns the State field value if set, zero value otherwise.

func (*PaymentMethodResponse) GetStateOk

func (o *PaymentMethodResponse) 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.

func (*PaymentMethodResponse) HasState

func (o *PaymentMethodResponse) HasState() bool

HasState returns a boolean if a field has been set.

func (PaymentMethodResponse) MarshalJSON

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

func (*PaymentMethodResponse) SetData

func (o *PaymentMethodResponse) SetData(v PaymentMethod)

SetData sets field value

func (*PaymentMethodResponse) SetState

func (o *PaymentMethodResponse) SetState(v string)

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

func (PaymentMethodResponse) ToMap

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

func (*PaymentMethodResponse) UnmarshalJSON

func (o *PaymentMethodResponse) UnmarshalJSON(data []byte) (err error)

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

Jump to

Keyboard shortcuts

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