invoice

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 20 Imported by: 1

README

Go API client for invoice

The base URL for this API is: https://api.leaseweb.com/invoices/v1/_

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: v1
  • Package version: 1.0.0
  • Generator version: 7.10.0
  • Build package: org.openapitools.codegen.languages.GoClientCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/net/context

Put the package under your project folder and add the following in import:

import invoice "github.com/leaseweb/leaseweb-go-sdk/invoice"

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 invoice.ContextServerIndex of type int.

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

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

ctx := context.WithValue(context.Background(), invoice.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 invoice.ContextOperationServerIndices and invoice.ContextOperationServerVariables context maps.

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

Documentation for API Endpoints

All URIs are relative to https://api.leaseweb.com/invoices/v1

Class Method HTTP request Description
InvoiceAPI GetInvoice Get /invoices/{invoiceId} Inspect an invoice
InvoiceAPI GetInvoiceList Get /invoices List invoices
InvoiceAPI GetInvoicePdf Get /invoices/{invoiceId}/pdf Get invoice PDF
InvoiceAPI GetProforma Get /invoices/proforma Pro Forma

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

BearerAuth
  • Type: HTTP Bearer token authentication

Example

auth := context.WithValue(context.Background(), invoice.ContextAccessToken, "BEARER_TOKEN_STRING")
r, err := client.Service.Operation(auth, args)
X-LSW-Auth
  • Type: API key
  • API key parameter name: X-LSW-Auth
  • Location: HTTP header

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

Example

auth := context.WithValue(
		context.Background(),
		invoice.ContextAPIKeys,
		map[string]invoice.APIKey{
			"X-LSW-Auth": {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 {
	InvoiceAPI InvoiceAPI
	// contains filtered or unexported fields
}

APIClient manages communication with the Invoices API vv1 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 ApiGetInvoiceListRequest

type ApiGetInvoiceListRequest struct {
	ApiService InvoiceAPI
	// contains filtered or unexported fields
}

func (ApiGetInvoiceListRequest) Execute

func (ApiGetInvoiceListRequest) Limit

Limit the number of results returned.

func (ApiGetInvoiceListRequest) Offset

Return results starting from the given offset.

type ApiGetInvoicePdfRequest

type ApiGetInvoicePdfRequest struct {
	ApiService InvoiceAPI
	// contains filtered or unexported fields
}

func (ApiGetInvoicePdfRequest) Execute

func (r ApiGetInvoicePdfRequest) Execute() (*http.Response, error)

type ApiGetInvoiceRequest

type ApiGetInvoiceRequest struct {
	ApiService InvoiceAPI
	// contains filtered or unexported fields
}

func (ApiGetInvoiceRequest) Execute

type ApiGetProformaRequest

type ApiGetProformaRequest struct {
	ApiService InvoiceAPI
	// contains filtered or unexported fields
}

func (ApiGetProformaRequest) Execute

func (ApiGetProformaRequest) Limit

Limit the number of results returned.

func (ApiGetProformaRequest) Offset

Return results starting from the given offset.

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

type ContractItem struct {
	// The unique id of the contract
	ContractId *string `json:"contractId,omitempty"`
	// The currency of the pro forma contract item
	Currency *string `json:"currency,omitempty"`
	// The end date of the contract
	EndDate *string `json:"endDate,omitempty"`
	// The unique id of the equipment
	EquipmentId *string `json:"equipmentId,omitempty"`
	// The purchase order number.
	PoNumber *string `json:"poNumber,omitempty"`
	// The price of the contract item.
	Price *float32 `json:"price,omitempty"`
	// The identifier of a product.
	Product *string `json:"product,omitempty"`
	// The reference a customer gave to the service
	Reference *string `json:"reference,omitempty"`
	// The start date of the contract
	StartDate            *string `json:"startDate,omitempty"`
	AdditionalProperties map[string]interface{}
}

ContractItem struct for ContractItem

func NewContractItem

func NewContractItem() *ContractItem

NewContractItem instantiates a new ContractItem 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 NewContractItemWithDefaults

func NewContractItemWithDefaults() *ContractItem

NewContractItemWithDefaults instantiates a new ContractItem 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 (*ContractItem) GetContractId

func (o *ContractItem) GetContractId() string

GetContractId returns the ContractId field value if set, zero value otherwise.

func (*ContractItem) GetContractIdOk

func (o *ContractItem) GetContractIdOk() (*string, bool)

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

func (*ContractItem) GetCurrency

func (o *ContractItem) GetCurrency() string

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

func (*ContractItem) GetCurrencyOk

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

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

func (*ContractItem) GetEndDate

func (o *ContractItem) GetEndDate() string

GetEndDate returns the EndDate field value if set, zero value otherwise.

func (*ContractItem) GetEndDateOk

func (o *ContractItem) GetEndDateOk() (*string, bool)

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

func (*ContractItem) GetEquipmentId

func (o *ContractItem) GetEquipmentId() string

GetEquipmentId returns the EquipmentId field value if set, zero value otherwise.

func (*ContractItem) GetEquipmentIdOk

func (o *ContractItem) GetEquipmentIdOk() (*string, bool)

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

func (*ContractItem) GetPoNumber

func (o *ContractItem) GetPoNumber() string

GetPoNumber returns the PoNumber field value if set, zero value otherwise.

func (*ContractItem) GetPoNumberOk

func (o *ContractItem) GetPoNumberOk() (*string, bool)

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

func (*ContractItem) GetPrice

func (o *ContractItem) GetPrice() float32

GetPrice returns the Price field value if set, zero value otherwise.

func (*ContractItem) GetPriceOk

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

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

func (*ContractItem) GetProduct

func (o *ContractItem) GetProduct() string

GetProduct returns the Product field value if set, zero value otherwise.

func (*ContractItem) GetProductOk

func (o *ContractItem) GetProductOk() (*string, bool)

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

func (*ContractItem) GetReference

func (o *ContractItem) GetReference() string

GetReference returns the Reference field value if set, zero value otherwise.

func (*ContractItem) GetReferenceOk

func (o *ContractItem) GetReferenceOk() (*string, bool)

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

func (*ContractItem) GetStartDate

func (o *ContractItem) GetStartDate() string

GetStartDate returns the StartDate field value if set, zero value otherwise.

func (*ContractItem) GetStartDateOk

func (o *ContractItem) GetStartDateOk() (*string, bool)

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

func (*ContractItem) HasContractId

func (o *ContractItem) HasContractId() bool

HasContractId returns a boolean if a field has been set.

func (*ContractItem) HasCurrency

func (o *ContractItem) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*ContractItem) HasEndDate

func (o *ContractItem) HasEndDate() bool

HasEndDate returns a boolean if a field has been set.

func (*ContractItem) HasEquipmentId

func (o *ContractItem) HasEquipmentId() bool

HasEquipmentId returns a boolean if a field has been set.

func (*ContractItem) HasPoNumber

func (o *ContractItem) HasPoNumber() bool

HasPoNumber returns a boolean if a field has been set.

func (*ContractItem) HasPrice

func (o *ContractItem) HasPrice() bool

HasPrice returns a boolean if a field has been set.

func (*ContractItem) HasProduct

func (o *ContractItem) HasProduct() bool

HasProduct returns a boolean if a field has been set.

func (*ContractItem) HasReference

func (o *ContractItem) HasReference() bool

HasReference returns a boolean if a field has been set.

func (*ContractItem) HasStartDate

func (o *ContractItem) HasStartDate() bool

HasStartDate returns a boolean if a field has been set.

func (ContractItem) MarshalJSON

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

func (*ContractItem) SetContractId

func (o *ContractItem) SetContractId(v string)

SetContractId gets a reference to the given string and assigns it to the ContractId field.

func (*ContractItem) SetCurrency

func (o *ContractItem) SetCurrency(v string)

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

func (*ContractItem) SetEndDate

func (o *ContractItem) SetEndDate(v string)

SetEndDate gets a reference to the given string and assigns it to the EndDate field.

func (*ContractItem) SetEquipmentId

func (o *ContractItem) SetEquipmentId(v string)

SetEquipmentId gets a reference to the given string and assigns it to the EquipmentId field.

func (*ContractItem) SetPoNumber

func (o *ContractItem) SetPoNumber(v string)

SetPoNumber gets a reference to the given string and assigns it to the PoNumber field.

func (*ContractItem) SetPrice

func (o *ContractItem) SetPrice(v float32)

SetPrice gets a reference to the given float32 and assigns it to the Price field.

func (*ContractItem) SetProduct

func (o *ContractItem) SetProduct(v string)

SetProduct gets a reference to the given string and assigns it to the Product field.

func (*ContractItem) SetReference

func (o *ContractItem) SetReference(v string)

SetReference gets a reference to the given string and assigns it to the Reference field.

func (*ContractItem) SetStartDate

func (o *ContractItem) SetStartDate(v string)

SetStartDate gets a reference to the given string and assigns it to the StartDate field.

func (ContractItem) ToMap

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

func (*ContractItem) UnmarshalJSON

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

type Credit

type Credit struct {
	// The date of the credit connected to the invoice
	Date *string `json:"date,omitempty"`
	// The unique id of the credit
	Id *string `json:"id,omitempty"`
	// The total tax amount of the credit connected to the invoice
	TaxAmount *float32 `json:"taxAmount,omitempty"`
	// The total amount of the credit connected to the invoice
	Total                *float32 `json:"total,omitempty"`
	AdditionalProperties map[string]interface{}
}

Credit struct for Credit

func NewCredit

func NewCredit() *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) GetDate

func (o *Credit) GetDate() string

GetDate returns the Date field value if set, zero value otherwise.

func (*Credit) GetDateOk

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

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

func (*Credit) GetId

func (o *Credit) GetId() string

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

func (*Credit) GetIdOk

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

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

func (*Credit) GetTaxAmount

func (o *Credit) GetTaxAmount() float32

GetTaxAmount returns the TaxAmount field value if set, zero value otherwise.

func (*Credit) GetTaxAmountOk

func (o *Credit) GetTaxAmountOk() (*float32, bool)

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

func (*Credit) GetTotal

func (o *Credit) GetTotal() float32

GetTotal returns the Total field value if set, zero value otherwise.

func (*Credit) GetTotalOk

func (o *Credit) GetTotalOk() (*float32, bool)

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

func (*Credit) HasDate

func (o *Credit) HasDate() bool

HasDate returns a boolean if a field has been set.

func (*Credit) HasId

func (o *Credit) HasId() bool

HasId returns a boolean if a field has been set.

func (*Credit) HasTaxAmount

func (o *Credit) HasTaxAmount() bool

HasTaxAmount returns a boolean if a field has been set.

func (*Credit) HasTotal

func (o *Credit) HasTotal() bool

HasTotal returns a boolean if a field has been set.

func (Credit) MarshalJSON

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

func (*Credit) SetDate

func (o *Credit) SetDate(v string)

SetDate gets a reference to the given string and assigns it to the Date field.

func (*Credit) SetId

func (o *Credit) SetId(v string)

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

func (*Credit) SetTaxAmount

func (o *Credit) SetTaxAmount(v float32)

SetTaxAmount gets a reference to the given float32 and assigns it to the TaxAmount field.

func (*Credit) SetTotal

func (o *Credit) SetTotal(v float32)

SetTotal gets a reference to the given float32 and assigns it to the Total field.

func (Credit) ToMap

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

func (*Credit) UnmarshalJSON

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

type ErrorResult

type ErrorResult struct {
	// The correlation ID of the current request.
	CorrelationId *string `json:"correlationId,omitempty"`
	// The error code.
	ErrorCode *string `json:"errorCode,omitempty"`
	// A human friendly description of the error.
	ErrorMessage         *string              `json:"errorMessage,omitempty"`
	ErrorDetails         *map[string][]string `json:"errorDetails,omitempty"`
	AdditionalProperties map[string]interface{}
}

ErrorResult struct for ErrorResult

func NewErrorResult

func NewErrorResult() *ErrorResult

NewErrorResult instantiates a new ErrorResult 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 NewErrorResultWithDefaults

func NewErrorResultWithDefaults() *ErrorResult

NewErrorResultWithDefaults instantiates a new ErrorResult 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 (*ErrorResult) GetCorrelationId

func (o *ErrorResult) GetCorrelationId() string

GetCorrelationId returns the CorrelationId field value if set, zero value otherwise.

func (*ErrorResult) GetCorrelationIdOk

func (o *ErrorResult) GetCorrelationIdOk() (*string, bool)

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

func (*ErrorResult) GetErrorCode

func (o *ErrorResult) GetErrorCode() string

GetErrorCode returns the ErrorCode field value if set, zero value otherwise.

func (*ErrorResult) GetErrorCodeOk

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

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

func (*ErrorResult) GetErrorDetails

func (o *ErrorResult) GetErrorDetails() map[string][]string

GetErrorDetails returns the ErrorDetails field value if set, zero value otherwise.

func (*ErrorResult) GetErrorDetailsOk

func (o *ErrorResult) GetErrorDetailsOk() (*map[string][]string, bool)

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

func (*ErrorResult) GetErrorMessage

func (o *ErrorResult) GetErrorMessage() string

GetErrorMessage returns the ErrorMessage field value if set, zero value otherwise.

func (*ErrorResult) GetErrorMessageOk

func (o *ErrorResult) GetErrorMessageOk() (*string, bool)

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

func (*ErrorResult) HasCorrelationId

func (o *ErrorResult) HasCorrelationId() bool

HasCorrelationId returns a boolean if a field has been set.

func (*ErrorResult) HasErrorCode

func (o *ErrorResult) HasErrorCode() bool

HasErrorCode returns a boolean if a field has been set.

func (*ErrorResult) HasErrorDetails

func (o *ErrorResult) HasErrorDetails() bool

HasErrorDetails returns a boolean if a field has been set.

func (*ErrorResult) HasErrorMessage

func (o *ErrorResult) HasErrorMessage() bool

HasErrorMessage returns a boolean if a field has been set.

func (ErrorResult) MarshalJSON

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

func (*ErrorResult) SetCorrelationId

func (o *ErrorResult) SetCorrelationId(v string)

SetCorrelationId gets a reference to the given string and assigns it to the CorrelationId field.

func (*ErrorResult) SetErrorCode

func (o *ErrorResult) SetErrorCode(v string)

SetErrorCode gets a reference to the given string and assigns it to the ErrorCode field.

func (*ErrorResult) SetErrorDetails

func (o *ErrorResult) SetErrorDetails(v map[string][]string)

SetErrorDetails gets a reference to the given map[string][]string and assigns it to the ErrorDetails field.

func (*ErrorResult) SetErrorMessage

func (o *ErrorResult) SetErrorMessage(v string)

SetErrorMessage gets a reference to the given string and assigns it to the ErrorMessage field.

func (ErrorResult) ToMap

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

func (*ErrorResult) UnmarshalJSON

func (o *ErrorResult) UnmarshalJSON(data []byte) (err 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 GetInvoiceListResult

type GetInvoiceListResult struct {
	Metadata *Metadata `json:"_metadata,omitempty"`
	// An array of invoices.
	Invoices             []Invoice `json:"invoices,omitempty"`
	AdditionalProperties map[string]interface{}
}

GetInvoiceListResult struct for GetInvoiceListResult

func NewGetInvoiceListResult

func NewGetInvoiceListResult() *GetInvoiceListResult

NewGetInvoiceListResult instantiates a new GetInvoiceListResult 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 NewGetInvoiceListResultWithDefaults

func NewGetInvoiceListResultWithDefaults() *GetInvoiceListResult

NewGetInvoiceListResultWithDefaults instantiates a new GetInvoiceListResult 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 (*GetInvoiceListResult) GetInvoices

func (o *GetInvoiceListResult) GetInvoices() []Invoice

GetInvoices returns the Invoices field value if set, zero value otherwise.

func (*GetInvoiceListResult) GetInvoicesOk

func (o *GetInvoiceListResult) GetInvoicesOk() ([]Invoice, bool)

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

func (*GetInvoiceListResult) GetMetadata

func (o *GetInvoiceListResult) GetMetadata() Metadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*GetInvoiceListResult) GetMetadataOk

func (o *GetInvoiceListResult) GetMetadataOk() (*Metadata, bool)

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

func (*GetInvoiceListResult) HasInvoices

func (o *GetInvoiceListResult) HasInvoices() bool

HasInvoices returns a boolean if a field has been set.

func (*GetInvoiceListResult) HasMetadata

func (o *GetInvoiceListResult) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (GetInvoiceListResult) MarshalJSON

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

func (*GetInvoiceListResult) SetInvoices

func (o *GetInvoiceListResult) SetInvoices(v []Invoice)

SetInvoices gets a reference to the given []Invoice and assigns it to the Invoices field.

func (*GetInvoiceListResult) SetMetadata

func (o *GetInvoiceListResult) SetMetadata(v Metadata)

SetMetadata gets a reference to the given Metadata and assigns it to the Metadata field.

func (GetInvoiceListResult) ToMap

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

func (*GetInvoiceListResult) UnmarshalJSON

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

type GetInvoiceResult

type GetInvoiceResult struct {
	// All the credits attached to the invoice
	Credits []Credit `json:"credits,omitempty"`
	// The currency of the invoice.
	Currency *string `json:"currency,omitempty"`
	// The date the invoice was issued
	Date *string `json:"date,omitempty"`
	// The date the invoice is due for payment
	DueDate *string `json:"dueDate,omitempty"`
	// The unique id of the invoice
	Id *string `json:"id,omitempty"`
	// The invoice can be paid partially
	IsPartialPaymentAllowed *bool `json:"isPartialPaymentAllowed,omitempty"`
	// All the line items attached to the invoice
	LineItems []LineItem `json:"lineItems,omitempty"`
	// The open amount of the invoice
	OpenAmount *float32 `json:"openAmount,omitempty"`
	// The status of the invoice.
	Status *string `json:"status,omitempty"`
	// The tax amount of the invoice
	TaxAmount *float32 `json:"taxAmount,omitempty"`
	// The total amount of the invoice
	Total                *float32 `json:"total,omitempty"`
	AdditionalProperties map[string]interface{}
}

GetInvoiceResult struct for GetInvoiceResult

func NewGetInvoiceResult

func NewGetInvoiceResult() *GetInvoiceResult

NewGetInvoiceResult instantiates a new GetInvoiceResult 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 NewGetInvoiceResultWithDefaults

func NewGetInvoiceResultWithDefaults() *GetInvoiceResult

NewGetInvoiceResultWithDefaults instantiates a new GetInvoiceResult 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 (*GetInvoiceResult) GetCredits

func (o *GetInvoiceResult) GetCredits() []Credit

GetCredits returns the Credits field value if set, zero value otherwise.

func (*GetInvoiceResult) GetCreditsOk

func (o *GetInvoiceResult) GetCreditsOk() ([]Credit, bool)

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

func (*GetInvoiceResult) GetCurrency

func (o *GetInvoiceResult) GetCurrency() string

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

func (*GetInvoiceResult) GetCurrencyOk

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

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

func (*GetInvoiceResult) GetDate

func (o *GetInvoiceResult) GetDate() string

GetDate returns the Date field value if set, zero value otherwise.

func (*GetInvoiceResult) GetDateOk

func (o *GetInvoiceResult) GetDateOk() (*string, bool)

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

func (*GetInvoiceResult) GetDueDate

func (o *GetInvoiceResult) GetDueDate() string

GetDueDate returns the DueDate field value if set, zero value otherwise.

func (*GetInvoiceResult) GetDueDateOk

func (o *GetInvoiceResult) GetDueDateOk() (*string, bool)

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

func (*GetInvoiceResult) GetId

func (o *GetInvoiceResult) GetId() string

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

func (*GetInvoiceResult) GetIdOk

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

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

func (*GetInvoiceResult) GetIsPartialPaymentAllowed

func (o *GetInvoiceResult) GetIsPartialPaymentAllowed() bool

GetIsPartialPaymentAllowed returns the IsPartialPaymentAllowed field value if set, zero value otherwise.

func (*GetInvoiceResult) GetIsPartialPaymentAllowedOk

func (o *GetInvoiceResult) GetIsPartialPaymentAllowedOk() (*bool, bool)

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

func (*GetInvoiceResult) GetLineItems

func (o *GetInvoiceResult) GetLineItems() []LineItem

GetLineItems returns the LineItems field value if set, zero value otherwise.

func (*GetInvoiceResult) GetLineItemsOk

func (o *GetInvoiceResult) GetLineItemsOk() ([]LineItem, bool)

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

func (*GetInvoiceResult) GetOpenAmount

func (o *GetInvoiceResult) GetOpenAmount() float32

GetOpenAmount returns the OpenAmount field value if set, zero value otherwise.

func (*GetInvoiceResult) GetOpenAmountOk

func (o *GetInvoiceResult) GetOpenAmountOk() (*float32, bool)

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

func (*GetInvoiceResult) GetStatus

func (o *GetInvoiceResult) GetStatus() string

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

func (*GetInvoiceResult) GetStatusOk

func (o *GetInvoiceResult) 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 (*GetInvoiceResult) GetTaxAmount

func (o *GetInvoiceResult) GetTaxAmount() float32

GetTaxAmount returns the TaxAmount field value if set, zero value otherwise.

func (*GetInvoiceResult) GetTaxAmountOk

func (o *GetInvoiceResult) GetTaxAmountOk() (*float32, bool)

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

func (*GetInvoiceResult) GetTotal

func (o *GetInvoiceResult) GetTotal() float32

GetTotal returns the Total field value if set, zero value otherwise.

func (*GetInvoiceResult) GetTotalOk

func (o *GetInvoiceResult) GetTotalOk() (*float32, bool)

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

func (*GetInvoiceResult) HasCredits

func (o *GetInvoiceResult) HasCredits() bool

HasCredits returns a boolean if a field has been set.

func (*GetInvoiceResult) HasCurrency

func (o *GetInvoiceResult) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*GetInvoiceResult) HasDate

func (o *GetInvoiceResult) HasDate() bool

HasDate returns a boolean if a field has been set.

func (*GetInvoiceResult) HasDueDate

func (o *GetInvoiceResult) HasDueDate() bool

HasDueDate returns a boolean if a field has been set.

func (*GetInvoiceResult) HasId

func (o *GetInvoiceResult) HasId() bool

HasId returns a boolean if a field has been set.

func (*GetInvoiceResult) HasIsPartialPaymentAllowed

func (o *GetInvoiceResult) HasIsPartialPaymentAllowed() bool

HasIsPartialPaymentAllowed returns a boolean if a field has been set.

func (*GetInvoiceResult) HasLineItems

func (o *GetInvoiceResult) HasLineItems() bool

HasLineItems returns a boolean if a field has been set.

func (*GetInvoiceResult) HasOpenAmount

func (o *GetInvoiceResult) HasOpenAmount() bool

HasOpenAmount returns a boolean if a field has been set.

func (*GetInvoiceResult) HasStatus

func (o *GetInvoiceResult) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*GetInvoiceResult) HasTaxAmount

func (o *GetInvoiceResult) HasTaxAmount() bool

HasTaxAmount returns a boolean if a field has been set.

func (*GetInvoiceResult) HasTotal

func (o *GetInvoiceResult) HasTotal() bool

HasTotal returns a boolean if a field has been set.

func (GetInvoiceResult) MarshalJSON

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

func (*GetInvoiceResult) SetCredits

func (o *GetInvoiceResult) SetCredits(v []Credit)

SetCredits gets a reference to the given []Credit and assigns it to the Credits field.

func (*GetInvoiceResult) SetCurrency

func (o *GetInvoiceResult) SetCurrency(v string)

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

func (*GetInvoiceResult) SetDate

func (o *GetInvoiceResult) SetDate(v string)

SetDate gets a reference to the given string and assigns it to the Date field.

func (*GetInvoiceResult) SetDueDate

func (o *GetInvoiceResult) SetDueDate(v string)

SetDueDate gets a reference to the given string and assigns it to the DueDate field.

func (*GetInvoiceResult) SetId

func (o *GetInvoiceResult) SetId(v string)

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

func (*GetInvoiceResult) SetIsPartialPaymentAllowed

func (o *GetInvoiceResult) SetIsPartialPaymentAllowed(v bool)

SetIsPartialPaymentAllowed gets a reference to the given bool and assigns it to the IsPartialPaymentAllowed field.

func (*GetInvoiceResult) SetLineItems

func (o *GetInvoiceResult) SetLineItems(v []LineItem)

SetLineItems gets a reference to the given []LineItem and assigns it to the LineItems field.

func (*GetInvoiceResult) SetOpenAmount

func (o *GetInvoiceResult) SetOpenAmount(v float32)

SetOpenAmount gets a reference to the given float32 and assigns it to the OpenAmount field.

func (*GetInvoiceResult) SetStatus

func (o *GetInvoiceResult) SetStatus(v string)

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

func (*GetInvoiceResult) SetTaxAmount

func (o *GetInvoiceResult) SetTaxAmount(v float32)

SetTaxAmount gets a reference to the given float32 and assigns it to the TaxAmount field.

func (*GetInvoiceResult) SetTotal

func (o *GetInvoiceResult) SetTotal(v float32)

SetTotal gets a reference to the given float32 and assigns it to the Total field.

func (GetInvoiceResult) ToMap

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

func (*GetInvoiceResult) UnmarshalJSON

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

type GetProformaResult

type GetProformaResult struct {
	Metadata      *Metadata      `json:"_metadata,omitempty"`
	ContractItems []ContractItem `json:"contractItems,omitempty"`
	// The currency of the invoice. Based on ISO 4217
	Currency *string `json:"currency,omitempty"`
	// The date of the next invoice on which this proforma is based on.
	ProformaDate *string `json:"proformaDate,omitempty"`
	// Total amount without vat which will be invoiced the upcoming month.
	SubTotal *float32 `json:"subTotal,omitempty"`
	// Total amount which will be invoiced the upcoming month.
	Total *float32 `json:"total,omitempty"`
	// The total amount of vat.
	VatAmount            *float32 `json:"vatAmount,omitempty"`
	AdditionalProperties map[string]interface{}
}

GetProformaResult struct for GetProformaResult

func NewGetProformaResult

func NewGetProformaResult() *GetProformaResult

NewGetProformaResult instantiates a new GetProformaResult 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 NewGetProformaResultWithDefaults

func NewGetProformaResultWithDefaults() *GetProformaResult

NewGetProformaResultWithDefaults instantiates a new GetProformaResult 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 (*GetProformaResult) GetContractItems

func (o *GetProformaResult) GetContractItems() []ContractItem

GetContractItems returns the ContractItems field value if set, zero value otherwise.

func (*GetProformaResult) GetContractItemsOk

func (o *GetProformaResult) GetContractItemsOk() ([]ContractItem, bool)

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

func (*GetProformaResult) GetCurrency

func (o *GetProformaResult) GetCurrency() string

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

func (*GetProformaResult) GetCurrencyOk

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

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

func (*GetProformaResult) GetMetadata

func (o *GetProformaResult) GetMetadata() Metadata

GetMetadata returns the Metadata field value if set, zero value otherwise.

func (*GetProformaResult) GetMetadataOk

func (o *GetProformaResult) GetMetadataOk() (*Metadata, bool)

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

func (*GetProformaResult) GetProformaDate

func (o *GetProformaResult) GetProformaDate() string

GetProformaDate returns the ProformaDate field value if set, zero value otherwise.

func (*GetProformaResult) GetProformaDateOk

func (o *GetProformaResult) GetProformaDateOk() (*string, bool)

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

func (*GetProformaResult) GetSubTotal

func (o *GetProformaResult) GetSubTotal() float32

GetSubTotal returns the SubTotal field value if set, zero value otherwise.

func (*GetProformaResult) GetSubTotalOk

func (o *GetProformaResult) GetSubTotalOk() (*float32, bool)

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

func (*GetProformaResult) GetTotal

func (o *GetProformaResult) GetTotal() float32

GetTotal returns the Total field value if set, zero value otherwise.

func (*GetProformaResult) GetTotalOk

func (o *GetProformaResult) GetTotalOk() (*float32, bool)

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

func (*GetProformaResult) GetVatAmount

func (o *GetProformaResult) GetVatAmount() float32

GetVatAmount returns the VatAmount field value if set, zero value otherwise.

func (*GetProformaResult) GetVatAmountOk

func (o *GetProformaResult) GetVatAmountOk() (*float32, bool)

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

func (*GetProformaResult) HasContractItems

func (o *GetProformaResult) HasContractItems() bool

HasContractItems returns a boolean if a field has been set.

func (*GetProformaResult) HasCurrency

func (o *GetProformaResult) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*GetProformaResult) HasMetadata

func (o *GetProformaResult) HasMetadata() bool

HasMetadata returns a boolean if a field has been set.

func (*GetProformaResult) HasProformaDate

func (o *GetProformaResult) HasProformaDate() bool

HasProformaDate returns a boolean if a field has been set.

func (*GetProformaResult) HasSubTotal

func (o *GetProformaResult) HasSubTotal() bool

HasSubTotal returns a boolean if a field has been set.

func (*GetProformaResult) HasTotal

func (o *GetProformaResult) HasTotal() bool

HasTotal returns a boolean if a field has been set.

func (*GetProformaResult) HasVatAmount

func (o *GetProformaResult) HasVatAmount() bool

HasVatAmount returns a boolean if a field has been set.

func (GetProformaResult) MarshalJSON

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

func (*GetProformaResult) SetContractItems

func (o *GetProformaResult) SetContractItems(v []ContractItem)

SetContractItems gets a reference to the given []ContractItem and assigns it to the ContractItems field.

func (*GetProformaResult) SetCurrency

func (o *GetProformaResult) SetCurrency(v string)

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

func (*GetProformaResult) SetMetadata

func (o *GetProformaResult) SetMetadata(v Metadata)

SetMetadata gets a reference to the given Metadata and assigns it to the Metadata field.

func (*GetProformaResult) SetProformaDate

func (o *GetProformaResult) SetProformaDate(v string)

SetProformaDate gets a reference to the given string and assigns it to the ProformaDate field.

func (*GetProformaResult) SetSubTotal

func (o *GetProformaResult) SetSubTotal(v float32)

SetSubTotal gets a reference to the given float32 and assigns it to the SubTotal field.

func (*GetProformaResult) SetTotal

func (o *GetProformaResult) SetTotal(v float32)

SetTotal gets a reference to the given float32 and assigns it to the Total field.

func (*GetProformaResult) SetVatAmount

func (o *GetProformaResult) SetVatAmount(v float32)

SetVatAmount gets a reference to the given float32 and assigns it to the VatAmount field.

func (GetProformaResult) ToMap

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

func (*GetProformaResult) UnmarshalJSON

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

type Invoice

type Invoice struct {
	// The currency of the invoice.
	Currency *string `json:"currency,omitempty"`
	// The date the invoice was issued
	Date *string `json:"date,omitempty"`
	// The date the invoice is due for payment
	DueDate *string `json:"dueDate,omitempty"`
	// The unique id of the invoice
	Id *string `json:"id,omitempty"`
	// The invoice can be paid partially
	IsPartialPaymentAllowed *bool `json:"isPartialPaymentAllowed,omitempty"`
	// The open amount of the invoice
	OpenAmount *float32 `json:"openAmount,omitempty"`
	// The status of the invoice.
	Status *string `json:"status,omitempty"`
	// The tax amount of the invoice
	TaxAmount *float32 `json:"taxAmount,omitempty"`
	// The total amount of the invoice
	Total                *float32 `json:"total,omitempty"`
	AdditionalProperties map[string]interface{}
}

Invoice struct for Invoice

func NewInvoice

func NewInvoice() *Invoice

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

func NewInvoiceWithDefaults

func NewInvoiceWithDefaults() *Invoice

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

func (*Invoice) GetCurrency

func (o *Invoice) GetCurrency() string

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

func (*Invoice) GetCurrencyOk

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

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

func (*Invoice) GetDate

func (o *Invoice) GetDate() string

GetDate returns the Date field value if set, zero value otherwise.

func (*Invoice) GetDateOk

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

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

func (*Invoice) GetDueDate

func (o *Invoice) GetDueDate() string

GetDueDate returns the DueDate field value if set, zero value otherwise.

func (*Invoice) GetDueDateOk

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

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

func (*Invoice) GetId

func (o *Invoice) GetId() string

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

func (*Invoice) GetIdOk

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

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

func (*Invoice) GetIsPartialPaymentAllowed

func (o *Invoice) GetIsPartialPaymentAllowed() bool

GetIsPartialPaymentAllowed returns the IsPartialPaymentAllowed field value if set, zero value otherwise.

func (*Invoice) GetIsPartialPaymentAllowedOk

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

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

func (*Invoice) GetOpenAmount

func (o *Invoice) GetOpenAmount() float32

GetOpenAmount returns the OpenAmount field value if set, zero value otherwise.

func (*Invoice) GetOpenAmountOk

func (o *Invoice) GetOpenAmountOk() (*float32, bool)

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

func (*Invoice) GetStatus

func (o *Invoice) GetStatus() string

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

func (*Invoice) GetStatusOk

func (o *Invoice) 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 (*Invoice) GetTaxAmount

func (o *Invoice) GetTaxAmount() float32

GetTaxAmount returns the TaxAmount field value if set, zero value otherwise.

func (*Invoice) GetTaxAmountOk

func (o *Invoice) GetTaxAmountOk() (*float32, bool)

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

func (*Invoice) GetTotal

func (o *Invoice) GetTotal() float32

GetTotal returns the Total field value if set, zero value otherwise.

func (*Invoice) GetTotalOk

func (o *Invoice) GetTotalOk() (*float32, bool)

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

func (*Invoice) HasCurrency

func (o *Invoice) HasCurrency() bool

HasCurrency returns a boolean if a field has been set.

func (*Invoice) HasDate

func (o *Invoice) HasDate() bool

HasDate returns a boolean if a field has been set.

func (*Invoice) HasDueDate

func (o *Invoice) HasDueDate() bool

HasDueDate returns a boolean if a field has been set.

func (*Invoice) HasId

func (o *Invoice) HasId() bool

HasId returns a boolean if a field has been set.

func (*Invoice) HasIsPartialPaymentAllowed

func (o *Invoice) HasIsPartialPaymentAllowed() bool

HasIsPartialPaymentAllowed returns a boolean if a field has been set.

func (*Invoice) HasOpenAmount

func (o *Invoice) HasOpenAmount() bool

HasOpenAmount returns a boolean if a field has been set.

func (*Invoice) HasStatus

func (o *Invoice) HasStatus() bool

HasStatus returns a boolean if a field has been set.

func (*Invoice) HasTaxAmount

func (o *Invoice) HasTaxAmount() bool

HasTaxAmount returns a boolean if a field has been set.

func (*Invoice) HasTotal

func (o *Invoice) HasTotal() bool

HasTotal returns a boolean if a field has been set.

func (Invoice) MarshalJSON

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

func (*Invoice) SetCurrency

func (o *Invoice) SetCurrency(v string)

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

func (*Invoice) SetDate

func (o *Invoice) SetDate(v string)

SetDate gets a reference to the given string and assigns it to the Date field.

func (*Invoice) SetDueDate

func (o *Invoice) SetDueDate(v string)

SetDueDate gets a reference to the given string and assigns it to the DueDate field.

func (*Invoice) SetId

func (o *Invoice) SetId(v string)

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

func (*Invoice) SetIsPartialPaymentAllowed

func (o *Invoice) SetIsPartialPaymentAllowed(v bool)

SetIsPartialPaymentAllowed gets a reference to the given bool and assigns it to the IsPartialPaymentAllowed field.

func (*Invoice) SetOpenAmount

func (o *Invoice) SetOpenAmount(v float32)

SetOpenAmount gets a reference to the given float32 and assigns it to the OpenAmount field.

func (*Invoice) SetStatus

func (o *Invoice) SetStatus(v string)

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

func (*Invoice) SetTaxAmount

func (o *Invoice) SetTaxAmount(v float32)

SetTaxAmount gets a reference to the given float32 and assigns it to the TaxAmount field.

func (*Invoice) SetTotal

func (o *Invoice) SetTotal(v float32)

SetTotal gets a reference to the given float32 and assigns it to the Total field.

func (Invoice) ToMap

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

func (*Invoice) UnmarshalJSON

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

type InvoiceAPI

type InvoiceAPI interface {

	/*
		GetInvoice Inspect an invoice

		This endpoint will return a single invoice for the customer.

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

	// GetInvoiceExecute executes the request
	//  @return GetInvoiceResult
	GetInvoiceExecute(r ApiGetInvoiceRequest) (*GetInvoiceResult, *http.Response, error)

	/*
		GetInvoiceList List invoices

		This endpoint will return an overview of all the invoices for the customer.

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

	// GetInvoiceListExecute executes the request
	//  @return GetInvoiceListResult
	GetInvoiceListExecute(r ApiGetInvoiceListRequest) (*GetInvoiceListResult, *http.Response, error)

	/*
		GetInvoicePdf Get invoice PDF

		This endpoint will return a PDf of a single invoice for the customer.

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

	// GetInvoicePdfExecute executes the request
	GetInvoicePdfExecute(r ApiGetInvoicePdfRequest) (*http.Response, error)

	/*
		GetProforma Pro Forma

		This endpoint will return an overview of contract items that will be invoiced as of the 1st of the upcoming month.

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

	// GetProformaExecute executes the request
	//  @return GetProformaResult
	GetProformaExecute(r ApiGetProformaRequest) (*GetProformaResult, *http.Response, error)
}

type InvoiceAPIService

type InvoiceAPIService service

InvoiceAPIService InvoiceAPI service

func (*InvoiceAPIService) GetInvoice

func (a *InvoiceAPIService) GetInvoice(ctx context.Context, invoiceId string) ApiGetInvoiceRequest

GetInvoice Inspect an invoice

This endpoint will return a single invoice for the customer.

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

func (*InvoiceAPIService) GetInvoiceExecute

Execute executes the request

@return GetInvoiceResult

func (*InvoiceAPIService) GetInvoiceList

GetInvoiceList List invoices

This endpoint will return an overview of all the invoices for the customer.

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

func (*InvoiceAPIService) GetInvoiceListExecute

Execute executes the request

@return GetInvoiceListResult

func (*InvoiceAPIService) GetInvoicePdf

func (a *InvoiceAPIService) GetInvoicePdf(ctx context.Context, invoiceId string) ApiGetInvoicePdfRequest

GetInvoicePdf Get invoice PDF

This endpoint will return a PDf of a single invoice for the customer.

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

func (*InvoiceAPIService) GetInvoicePdfExecute

func (a *InvoiceAPIService) GetInvoicePdfExecute(r ApiGetInvoicePdfRequest) (*http.Response, error)

Execute executes the request

func (*InvoiceAPIService) GetProforma

GetProforma Pro Forma

This endpoint will return an overview of contract items that will be invoiced as of the 1st of the upcoming month.

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

func (*InvoiceAPIService) GetProformaExecute

Execute executes the request

@return GetProformaResult

type LineItem

type LineItem struct {
	// The id of the contract
	ContractId *string `json:"contractId,omitempty"`
	// The id of the equipment
	EquipmentId *string `json:"equipmentId,omitempty"`
	// A string to indicate what kind of product this is.
	Product *string `json:"product,omitempty"`
	// The quantity of a product
	Quantity *int32 `json:"quantity,omitempty"`
	// The reference a customer gave to the service
	Reference *string `json:"reference,omitempty"`
	// The total amount of the product
	Total *float32 `json:"total,omitempty"`
	// The amount it cost for a single product unit.
	UnitAmount *float32 `json:"unitAmount,omitempty"`
	// The product start date (UTC)
	FromDate NullableTime `json:"fromDate,omitempty"`
	// The product end date (UTC)
	ToDate               NullableTime `json:"toDate,omitempty"`
	AdditionalProperties map[string]interface{}
}

LineItem struct for LineItem

func NewLineItem

func NewLineItem() *LineItem

NewLineItem instantiates a new LineItem 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 NewLineItemWithDefaults

func NewLineItemWithDefaults() *LineItem

NewLineItemWithDefaults instantiates a new LineItem 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 (*LineItem) GetContractId

func (o *LineItem) GetContractId() string

GetContractId returns the ContractId field value if set, zero value otherwise.

func (*LineItem) GetContractIdOk

func (o *LineItem) GetContractIdOk() (*string, bool)

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

func (*LineItem) GetEquipmentId

func (o *LineItem) GetEquipmentId() string

GetEquipmentId returns the EquipmentId field value if set, zero value otherwise.

func (*LineItem) GetEquipmentIdOk

func (o *LineItem) GetEquipmentIdOk() (*string, bool)

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

func (*LineItem) GetFromDate

func (o *LineItem) GetFromDate() time.Time

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

func (*LineItem) GetFromDateOk

func (o *LineItem) GetFromDateOk() (*time.Time, bool)

GetFromDateOk returns a tuple with the FromDate 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 (*LineItem) GetProduct

func (o *LineItem) GetProduct() string

GetProduct returns the Product field value if set, zero value otherwise.

func (*LineItem) GetProductOk

func (o *LineItem) GetProductOk() (*string, bool)

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

func (*LineItem) GetQuantity

func (o *LineItem) GetQuantity() int32

GetQuantity returns the Quantity field value if set, zero value otherwise.

func (*LineItem) GetQuantityOk

func (o *LineItem) GetQuantityOk() (*int32, bool)

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

func (*LineItem) GetReference

func (o *LineItem) GetReference() string

GetReference returns the Reference field value if set, zero value otherwise.

func (*LineItem) GetReferenceOk

func (o *LineItem) GetReferenceOk() (*string, bool)

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

func (*LineItem) GetToDate

func (o *LineItem) GetToDate() time.Time

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

func (*LineItem) GetToDateOk

func (o *LineItem) GetToDateOk() (*time.Time, bool)

GetToDateOk returns a tuple with the ToDate 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 (*LineItem) GetTotal

func (o *LineItem) GetTotal() float32

GetTotal returns the Total field value if set, zero value otherwise.

func (*LineItem) GetTotalOk

func (o *LineItem) GetTotalOk() (*float32, bool)

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

func (*LineItem) GetUnitAmount

func (o *LineItem) GetUnitAmount() float32

GetUnitAmount returns the UnitAmount field value if set, zero value otherwise.

func (*LineItem) GetUnitAmountOk

func (o *LineItem) GetUnitAmountOk() (*float32, bool)

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

func (*LineItem) HasContractId

func (o *LineItem) HasContractId() bool

HasContractId returns a boolean if a field has been set.

func (*LineItem) HasEquipmentId

func (o *LineItem) HasEquipmentId() bool

HasEquipmentId returns a boolean if a field has been set.

func (*LineItem) HasFromDate

func (o *LineItem) HasFromDate() bool

HasFromDate returns a boolean if a field has been set.

func (*LineItem) HasProduct

func (o *LineItem) HasProduct() bool

HasProduct returns a boolean if a field has been set.

func (*LineItem) HasQuantity

func (o *LineItem) HasQuantity() bool

HasQuantity returns a boolean if a field has been set.

func (*LineItem) HasReference

func (o *LineItem) HasReference() bool

HasReference returns a boolean if a field has been set.

func (*LineItem) HasToDate

func (o *LineItem) HasToDate() bool

HasToDate returns a boolean if a field has been set.

func (*LineItem) HasTotal

func (o *LineItem) HasTotal() bool

HasTotal returns a boolean if a field has been set.

func (*LineItem) HasUnitAmount

func (o *LineItem) HasUnitAmount() bool

HasUnitAmount returns a boolean if a field has been set.

func (LineItem) MarshalJSON

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

func (*LineItem) SetContractId

func (o *LineItem) SetContractId(v string)

SetContractId gets a reference to the given string and assigns it to the ContractId field.

func (*LineItem) SetEquipmentId

func (o *LineItem) SetEquipmentId(v string)

SetEquipmentId gets a reference to the given string and assigns it to the EquipmentId field.

func (*LineItem) SetFromDate

func (o *LineItem) SetFromDate(v time.Time)

SetFromDate gets a reference to the given NullableTime and assigns it to the FromDate field.

func (*LineItem) SetFromDateNil

func (o *LineItem) SetFromDateNil()

SetFromDateNil sets the value for FromDate to be an explicit nil

func (*LineItem) SetProduct

func (o *LineItem) SetProduct(v string)

SetProduct gets a reference to the given string and assigns it to the Product field.

func (*LineItem) SetQuantity

func (o *LineItem) SetQuantity(v int32)

SetQuantity gets a reference to the given int32 and assigns it to the Quantity field.

func (*LineItem) SetReference

func (o *LineItem) SetReference(v string)

SetReference gets a reference to the given string and assigns it to the Reference field.

func (*LineItem) SetToDate

func (o *LineItem) SetToDate(v time.Time)

SetToDate gets a reference to the given NullableTime and assigns it to the ToDate field.

func (*LineItem) SetToDateNil

func (o *LineItem) SetToDateNil()

SetToDateNil sets the value for ToDate to be an explicit nil

func (*LineItem) SetTotal

func (o *LineItem) SetTotal(v float32)

SetTotal gets a reference to the given float32 and assigns it to the Total field.

func (*LineItem) SetUnitAmount

func (o *LineItem) SetUnitAmount(v float32)

SetUnitAmount gets a reference to the given float32 and assigns it to the UnitAmount field.

func (LineItem) ToMap

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

func (*LineItem) UnmarshalJSON

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

func (*LineItem) UnsetFromDate

func (o *LineItem) UnsetFromDate()

UnsetFromDate ensures that no value is present for FromDate, not even an explicit nil

func (*LineItem) UnsetToDate

func (o *LineItem) UnsetToDate()

UnsetToDate ensures that no value is present for ToDate, not even an explicit nil

type MappedNullable

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

type Metadata

type Metadata struct {
	// Total amount of elements in this collection
	TotalCount int32 `json:"totalCount"`
	// The offset used to generate this response
	Offset int32 `json:"offset"`
	// The limit used to generate this response
	Limit                int32 `json:"limit"`
	AdditionalProperties map[string]interface{}
}

Metadata Metadata about the collection

func NewMetadata

func NewMetadata(totalCount int32, offset int32, limit int32) *Metadata

NewMetadata instantiates a new Metadata 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 NewMetadataWithDefaults

func NewMetadataWithDefaults() *Metadata

NewMetadataWithDefaults instantiates a new Metadata 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 (*Metadata) GetLimit

func (o *Metadata) GetLimit() int32

GetLimit returns the Limit field value

func (*Metadata) GetLimitOk

func (o *Metadata) GetLimitOk() (*int32, bool)

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

func (*Metadata) GetOffset

func (o *Metadata) GetOffset() int32

GetOffset returns the Offset field value

func (*Metadata) GetOffsetOk

func (o *Metadata) GetOffsetOk() (*int32, bool)

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

func (*Metadata) GetTotalCount

func (o *Metadata) GetTotalCount() int32

GetTotalCount returns the TotalCount field value

func (*Metadata) GetTotalCountOk

func (o *Metadata) GetTotalCountOk() (*int32, bool)

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

func (Metadata) MarshalJSON

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

func (*Metadata) SetLimit

func (o *Metadata) SetLimit(v int32)

SetLimit sets field value

func (*Metadata) SetOffset

func (o *Metadata) SetOffset(v int32)

SetOffset sets field value

func (*Metadata) SetTotalCount

func (o *Metadata) SetTotalCount(v int32)

SetTotalCount sets field value

func (Metadata) ToMap

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

func (*Metadata) UnmarshalJSON

func (o *Metadata) UnmarshalJSON(data []byte) (err 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 NullableContractItem

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

func NewNullableContractItem

func NewNullableContractItem(val *ContractItem) *NullableContractItem

func (NullableContractItem) Get

func (NullableContractItem) IsSet

func (v NullableContractItem) IsSet() bool

func (NullableContractItem) MarshalJSON

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

func (*NullableContractItem) Set

func (v *NullableContractItem) Set(val *ContractItem)

func (*NullableContractItem) UnmarshalJSON

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

func (*NullableContractItem) Unset

func (v *NullableContractItem) 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 NullableErrorResult

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

func NewNullableErrorResult

func NewNullableErrorResult(val *ErrorResult) *NullableErrorResult

func (NullableErrorResult) Get

func (NullableErrorResult) IsSet

func (v NullableErrorResult) IsSet() bool

func (NullableErrorResult) MarshalJSON

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

func (*NullableErrorResult) Set

func (v *NullableErrorResult) Set(val *ErrorResult)

func (*NullableErrorResult) UnmarshalJSON

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

func (*NullableErrorResult) Unset

func (v *NullableErrorResult) 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 NullableGetInvoiceListResult

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

func NewNullableGetInvoiceListResult

func NewNullableGetInvoiceListResult(val *GetInvoiceListResult) *NullableGetInvoiceListResult

func (NullableGetInvoiceListResult) Get

func (NullableGetInvoiceListResult) IsSet

func (NullableGetInvoiceListResult) MarshalJSON

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

func (*NullableGetInvoiceListResult) Set

func (*NullableGetInvoiceListResult) UnmarshalJSON

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

func (*NullableGetInvoiceListResult) Unset

func (v *NullableGetInvoiceListResult) Unset()

type NullableGetInvoiceResult

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

func NewNullableGetInvoiceResult

func NewNullableGetInvoiceResult(val *GetInvoiceResult) *NullableGetInvoiceResult

func (NullableGetInvoiceResult) Get

func (NullableGetInvoiceResult) IsSet

func (v NullableGetInvoiceResult) IsSet() bool

func (NullableGetInvoiceResult) MarshalJSON

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

func (*NullableGetInvoiceResult) Set

func (*NullableGetInvoiceResult) UnmarshalJSON

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

func (*NullableGetInvoiceResult) Unset

func (v *NullableGetInvoiceResult) Unset()

type NullableGetProformaResult

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

func NewNullableGetProformaResult

func NewNullableGetProformaResult(val *GetProformaResult) *NullableGetProformaResult

func (NullableGetProformaResult) Get

func (NullableGetProformaResult) IsSet

func (v NullableGetProformaResult) IsSet() bool

func (NullableGetProformaResult) MarshalJSON

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

func (*NullableGetProformaResult) Set

func (*NullableGetProformaResult) UnmarshalJSON

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

func (*NullableGetProformaResult) Unset

func (v *NullableGetProformaResult) Unset()

type NullableInt

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

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

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

func (*NullableInt) Set

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

func (*NullableInt) UnmarshalJSON

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

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

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

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

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

func (*NullableInt32) Set

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

func (*NullableInt32) UnmarshalJSON

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

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

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

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

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

func (*NullableInt64) Set

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

func (*NullableInt64) UnmarshalJSON

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

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableInvoice

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

func NewNullableInvoice

func NewNullableInvoice(val *Invoice) *NullableInvoice

func (NullableInvoice) Get

func (v NullableInvoice) Get() *Invoice

func (NullableInvoice) IsSet

func (v NullableInvoice) IsSet() bool

func (NullableInvoice) MarshalJSON

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

func (*NullableInvoice) Set

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

func (*NullableInvoice) UnmarshalJSON

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

func (*NullableInvoice) Unset

func (v *NullableInvoice) Unset()

type NullableLineItem

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

func NewNullableLineItem

func NewNullableLineItem(val *LineItem) *NullableLineItem

func (NullableLineItem) Get

func (v NullableLineItem) Get() *LineItem

func (NullableLineItem) IsSet

func (v NullableLineItem) IsSet() bool

func (NullableLineItem) MarshalJSON

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

func (*NullableLineItem) Set

func (v *NullableLineItem) Set(val *LineItem)

func (*NullableLineItem) UnmarshalJSON

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

func (*NullableLineItem) Unset

func (v *NullableLineItem) Unset()

type NullableMetadata

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

func NewNullableMetadata

func NewNullableMetadata(val *Metadata) *NullableMetadata

func (NullableMetadata) Get

func (v NullableMetadata) Get() *Metadata

func (NullableMetadata) IsSet

func (v NullableMetadata) IsSet() bool

func (NullableMetadata) MarshalJSON

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

func (*NullableMetadata) Set

func (v *NullableMetadata) Set(val *Metadata)

func (*NullableMetadata) UnmarshalJSON

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

func (*NullableMetadata) Unset

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