Documentation
¶
Index ¶
- Variables
- func CacheExpires(r *http.Response) time.Time
- func IsNil(i interface{}) bool
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrFloat64(v float64) *float64
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func PtrString(v string) *string
- func PtrTime(v time.Time) *time.Time
- type APIClient
- type APIKey
- type APIResponse
- type ApiGetInvoiceListRequest
- type ApiGetInvoicePdfRequest
- type ApiGetInvoiceRequest
- type ApiGetProformaRequest
- type BasicAuth
- type Configuration
- type ContractItem
- func (o *ContractItem) GetContractId() string
- func (o *ContractItem) GetContractIdOk() (*string, bool)
- func (o *ContractItem) GetCurrency() string
- func (o *ContractItem) GetCurrencyOk() (*string, bool)
- func (o *ContractItem) GetEndDate() string
- func (o *ContractItem) GetEndDateOk() (*string, bool)
- func (o *ContractItem) GetEquipmentId() string
- func (o *ContractItem) GetEquipmentIdOk() (*string, bool)
- func (o *ContractItem) GetPoNumber() string
- func (o *ContractItem) GetPoNumberOk() (*string, bool)
- func (o *ContractItem) GetPrice() float32
- func (o *ContractItem) GetPriceOk() (*float32, bool)
- func (o *ContractItem) GetProduct() string
- func (o *ContractItem) GetProductOk() (*string, bool)
- func (o *ContractItem) GetReference() string
- func (o *ContractItem) GetReferenceOk() (*string, bool)
- func (o *ContractItem) GetStartDate() string
- func (o *ContractItem) GetStartDateOk() (*string, bool)
- func (o *ContractItem) HasContractId() bool
- func (o *ContractItem) HasCurrency() bool
- func (o *ContractItem) HasEndDate() bool
- func (o *ContractItem) HasEquipmentId() bool
- func (o *ContractItem) HasPoNumber() bool
- func (o *ContractItem) HasPrice() bool
- func (o *ContractItem) HasProduct() bool
- func (o *ContractItem) HasReference() bool
- func (o *ContractItem) HasStartDate() bool
- func (o ContractItem) MarshalJSON() ([]byte, error)
- func (o *ContractItem) SetContractId(v string)
- func (o *ContractItem) SetCurrency(v string)
- func (o *ContractItem) SetEndDate(v string)
- func (o *ContractItem) SetEquipmentId(v string)
- func (o *ContractItem) SetPoNumber(v string)
- func (o *ContractItem) SetPrice(v float32)
- func (o *ContractItem) SetProduct(v string)
- func (o *ContractItem) SetReference(v string)
- func (o *ContractItem) SetStartDate(v string)
- func (o ContractItem) ToMap() (map[string]interface{}, error)
- func (o *ContractItem) UnmarshalJSON(data []byte) (err error)
- type Credit
- func (o *Credit) GetDate() string
- func (o *Credit) GetDateOk() (*string, bool)
- func (o *Credit) GetId() string
- func (o *Credit) GetIdOk() (*string, bool)
- func (o *Credit) GetTaxAmount() float32
- func (o *Credit) GetTaxAmountOk() (*float32, bool)
- func (o *Credit) GetTotal() float32
- func (o *Credit) GetTotalOk() (*float32, bool)
- func (o *Credit) HasDate() bool
- func (o *Credit) HasId() bool
- func (o *Credit) HasTaxAmount() bool
- func (o *Credit) HasTotal() bool
- func (o Credit) MarshalJSON() ([]byte, error)
- func (o *Credit) SetDate(v string)
- func (o *Credit) SetId(v string)
- func (o *Credit) SetTaxAmount(v float32)
- func (o *Credit) SetTotal(v float32)
- func (o Credit) ToMap() (map[string]interface{}, error)
- func (o *Credit) UnmarshalJSON(data []byte) (err error)
- type ErrorResult
- func (o *ErrorResult) GetCorrelationId() string
- func (o *ErrorResult) GetCorrelationIdOk() (*string, bool)
- func (o *ErrorResult) GetErrorCode() string
- func (o *ErrorResult) GetErrorCodeOk() (*string, bool)
- func (o *ErrorResult) GetErrorDetails() map[string][]string
- func (o *ErrorResult) GetErrorDetailsOk() (*map[string][]string, bool)
- func (o *ErrorResult) GetErrorMessage() string
- func (o *ErrorResult) GetErrorMessageOk() (*string, bool)
- func (o *ErrorResult) HasCorrelationId() bool
- func (o *ErrorResult) HasErrorCode() bool
- func (o *ErrorResult) HasErrorDetails() bool
- func (o *ErrorResult) HasErrorMessage() bool
- func (o ErrorResult) MarshalJSON() ([]byte, error)
- func (o *ErrorResult) SetCorrelationId(v string)
- func (o *ErrorResult) SetErrorCode(v string)
- func (o *ErrorResult) SetErrorDetails(v map[string][]string)
- func (o *ErrorResult) SetErrorMessage(v string)
- func (o ErrorResult) ToMap() (map[string]interface{}, error)
- func (o *ErrorResult) UnmarshalJSON(data []byte) (err error)
- type GenericOpenAPIError
- type GetInvoiceListResult
- func (o *GetInvoiceListResult) GetInvoices() []Invoice
- func (o *GetInvoiceListResult) GetInvoicesOk() ([]Invoice, bool)
- func (o *GetInvoiceListResult) GetMetadata() Metadata
- func (o *GetInvoiceListResult) GetMetadataOk() (*Metadata, bool)
- func (o *GetInvoiceListResult) HasInvoices() bool
- func (o *GetInvoiceListResult) HasMetadata() bool
- func (o GetInvoiceListResult) MarshalJSON() ([]byte, error)
- func (o *GetInvoiceListResult) SetInvoices(v []Invoice)
- func (o *GetInvoiceListResult) SetMetadata(v Metadata)
- func (o GetInvoiceListResult) ToMap() (map[string]interface{}, error)
- func (o *GetInvoiceListResult) UnmarshalJSON(data []byte) (err error)
- type GetInvoiceResult
- func (o *GetInvoiceResult) GetCredits() []Credit
- func (o *GetInvoiceResult) GetCreditsOk() ([]Credit, bool)
- func (o *GetInvoiceResult) GetCurrency() string
- func (o *GetInvoiceResult) GetCurrencyOk() (*string, bool)
- func (o *GetInvoiceResult) GetDate() string
- func (o *GetInvoiceResult) GetDateOk() (*string, bool)
- func (o *GetInvoiceResult) GetDueDate() string
- func (o *GetInvoiceResult) GetDueDateOk() (*string, bool)
- func (o *GetInvoiceResult) GetId() string
- func (o *GetInvoiceResult) GetIdOk() (*string, bool)
- func (o *GetInvoiceResult) GetIsPartialPaymentAllowed() bool
- func (o *GetInvoiceResult) GetIsPartialPaymentAllowedOk() (*bool, bool)
- func (o *GetInvoiceResult) GetLineItems() []LineItem
- func (o *GetInvoiceResult) GetLineItemsOk() ([]LineItem, bool)
- func (o *GetInvoiceResult) GetOpenAmount() float32
- func (o *GetInvoiceResult) GetOpenAmountOk() (*float32, bool)
- func (o *GetInvoiceResult) GetStatus() string
- func (o *GetInvoiceResult) GetStatusOk() (*string, bool)
- func (o *GetInvoiceResult) GetTaxAmount() float32
- func (o *GetInvoiceResult) GetTaxAmountOk() (*float32, bool)
- func (o *GetInvoiceResult) GetTotal() float32
- func (o *GetInvoiceResult) GetTotalOk() (*float32, bool)
- func (o *GetInvoiceResult) HasCredits() bool
- func (o *GetInvoiceResult) HasCurrency() bool
- func (o *GetInvoiceResult) HasDate() bool
- func (o *GetInvoiceResult) HasDueDate() bool
- func (o *GetInvoiceResult) HasId() bool
- func (o *GetInvoiceResult) HasIsPartialPaymentAllowed() bool
- func (o *GetInvoiceResult) HasLineItems() bool
- func (o *GetInvoiceResult) HasOpenAmount() bool
- func (o *GetInvoiceResult) HasStatus() bool
- func (o *GetInvoiceResult) HasTaxAmount() bool
- func (o *GetInvoiceResult) HasTotal() bool
- func (o GetInvoiceResult) MarshalJSON() ([]byte, error)
- func (o *GetInvoiceResult) SetCredits(v []Credit)
- func (o *GetInvoiceResult) SetCurrency(v string)
- func (o *GetInvoiceResult) SetDate(v string)
- func (o *GetInvoiceResult) SetDueDate(v string)
- func (o *GetInvoiceResult) SetId(v string)
- func (o *GetInvoiceResult) SetIsPartialPaymentAllowed(v bool)
- func (o *GetInvoiceResult) SetLineItems(v []LineItem)
- func (o *GetInvoiceResult) SetOpenAmount(v float32)
- func (o *GetInvoiceResult) SetStatus(v string)
- func (o *GetInvoiceResult) SetTaxAmount(v float32)
- func (o *GetInvoiceResult) SetTotal(v float32)
- func (o GetInvoiceResult) ToMap() (map[string]interface{}, error)
- func (o *GetInvoiceResult) UnmarshalJSON(data []byte) (err error)
- type GetProformaResult
- func (o *GetProformaResult) GetContractItems() []ContractItem
- func (o *GetProformaResult) GetContractItemsOk() ([]ContractItem, bool)
- func (o *GetProformaResult) GetCurrency() string
- func (o *GetProformaResult) GetCurrencyOk() (*string, bool)
- func (o *GetProformaResult) GetMetadata() Metadata
- func (o *GetProformaResult) GetMetadataOk() (*Metadata, bool)
- func (o *GetProformaResult) GetProformaDate() string
- func (o *GetProformaResult) GetProformaDateOk() (*string, bool)
- func (o *GetProformaResult) GetSubTotal() float32
- func (o *GetProformaResult) GetSubTotalOk() (*float32, bool)
- func (o *GetProformaResult) GetTotal() float32
- func (o *GetProformaResult) GetTotalOk() (*float32, bool)
- func (o *GetProformaResult) GetVatAmount() float32
- func (o *GetProformaResult) GetVatAmountOk() (*float32, bool)
- func (o *GetProformaResult) HasContractItems() bool
- func (o *GetProformaResult) HasCurrency() bool
- func (o *GetProformaResult) HasMetadata() bool
- func (o *GetProformaResult) HasProformaDate() bool
- func (o *GetProformaResult) HasSubTotal() bool
- func (o *GetProformaResult) HasTotal() bool
- func (o *GetProformaResult) HasVatAmount() bool
- func (o GetProformaResult) MarshalJSON() ([]byte, error)
- func (o *GetProformaResult) SetContractItems(v []ContractItem)
- func (o *GetProformaResult) SetCurrency(v string)
- func (o *GetProformaResult) SetMetadata(v Metadata)
- func (o *GetProformaResult) SetProformaDate(v string)
- func (o *GetProformaResult) SetSubTotal(v float32)
- func (o *GetProformaResult) SetTotal(v float32)
- func (o *GetProformaResult) SetVatAmount(v float32)
- func (o GetProformaResult) ToMap() (map[string]interface{}, error)
- func (o *GetProformaResult) UnmarshalJSON(data []byte) (err error)
- type Invoice
- func (o *Invoice) GetCurrency() string
- func (o *Invoice) GetCurrencyOk() (*string, bool)
- func (o *Invoice) GetDate() string
- func (o *Invoice) GetDateOk() (*string, bool)
- func (o *Invoice) GetDueDate() string
- func (o *Invoice) GetDueDateOk() (*string, bool)
- func (o *Invoice) GetId() string
- func (o *Invoice) GetIdOk() (*string, bool)
- func (o *Invoice) GetIsPartialPaymentAllowed() bool
- func (o *Invoice) GetIsPartialPaymentAllowedOk() (*bool, bool)
- func (o *Invoice) GetOpenAmount() float32
- func (o *Invoice) GetOpenAmountOk() (*float32, bool)
- func (o *Invoice) GetStatus() string
- func (o *Invoice) GetStatusOk() (*string, bool)
- func (o *Invoice) GetTaxAmount() float32
- func (o *Invoice) GetTaxAmountOk() (*float32, bool)
- func (o *Invoice) GetTotal() float32
- func (o *Invoice) GetTotalOk() (*float32, bool)
- func (o *Invoice) HasCurrency() bool
- func (o *Invoice) HasDate() bool
- func (o *Invoice) HasDueDate() bool
- func (o *Invoice) HasId() bool
- func (o *Invoice) HasIsPartialPaymentAllowed() bool
- func (o *Invoice) HasOpenAmount() bool
- func (o *Invoice) HasStatus() bool
- func (o *Invoice) HasTaxAmount() bool
- func (o *Invoice) HasTotal() bool
- func (o Invoice) MarshalJSON() ([]byte, error)
- func (o *Invoice) SetCurrency(v string)
- func (o *Invoice) SetDate(v string)
- func (o *Invoice) SetDueDate(v string)
- func (o *Invoice) SetId(v string)
- func (o *Invoice) SetIsPartialPaymentAllowed(v bool)
- func (o *Invoice) SetOpenAmount(v float32)
- func (o *Invoice) SetStatus(v string)
- func (o *Invoice) SetTaxAmount(v float32)
- func (o *Invoice) SetTotal(v float32)
- func (o Invoice) ToMap() (map[string]interface{}, error)
- func (o *Invoice) UnmarshalJSON(data []byte) (err error)
- type InvoiceAPI
- type InvoiceAPIService
- func (a *InvoiceAPIService) GetInvoice(ctx context.Context, invoiceId string) ApiGetInvoiceRequest
- func (a *InvoiceAPIService) GetInvoiceExecute(r ApiGetInvoiceRequest) (*GetInvoiceResult, *http.Response, error)
- func (a *InvoiceAPIService) GetInvoiceList(ctx context.Context) ApiGetInvoiceListRequest
- func (a *InvoiceAPIService) GetInvoiceListExecute(r ApiGetInvoiceListRequest) (*GetInvoiceListResult, *http.Response, error)
- func (a *InvoiceAPIService) GetInvoicePdf(ctx context.Context, invoiceId string) ApiGetInvoicePdfRequest
- func (a *InvoiceAPIService) GetInvoicePdfExecute(r ApiGetInvoicePdfRequest) (*http.Response, error)
- func (a *InvoiceAPIService) GetProforma(ctx context.Context) ApiGetProformaRequest
- func (a *InvoiceAPIService) GetProformaExecute(r ApiGetProformaRequest) (*GetProformaResult, *http.Response, error)
- type LineItem
- func (o *LineItem) GetContractId() string
- func (o *LineItem) GetContractIdOk() (*string, bool)
- func (o *LineItem) GetEquipmentId() string
- func (o *LineItem) GetEquipmentIdOk() (*string, bool)
- func (o *LineItem) GetFromDate() time.Time
- func (o *LineItem) GetFromDateOk() (*time.Time, bool)
- func (o *LineItem) GetProduct() string
- func (o *LineItem) GetProductOk() (*string, bool)
- func (o *LineItem) GetQuantity() int32
- func (o *LineItem) GetQuantityOk() (*int32, bool)
- func (o *LineItem) GetReference() string
- func (o *LineItem) GetReferenceOk() (*string, bool)
- func (o *LineItem) GetToDate() time.Time
- func (o *LineItem) GetToDateOk() (*time.Time, bool)
- func (o *LineItem) GetTotal() float32
- func (o *LineItem) GetTotalOk() (*float32, bool)
- func (o *LineItem) GetUnitAmount() float32
- func (o *LineItem) GetUnitAmountOk() (*float32, bool)
- func (o *LineItem) HasContractId() bool
- func (o *LineItem) HasEquipmentId() bool
- func (o *LineItem) HasFromDate() bool
- func (o *LineItem) HasProduct() bool
- func (o *LineItem) HasQuantity() bool
- func (o *LineItem) HasReference() bool
- func (o *LineItem) HasToDate() bool
- func (o *LineItem) HasTotal() bool
- func (o *LineItem) HasUnitAmount() bool
- func (o LineItem) MarshalJSON() ([]byte, error)
- func (o *LineItem) SetContractId(v string)
- func (o *LineItem) SetEquipmentId(v string)
- func (o *LineItem) SetFromDate(v time.Time)
- func (o *LineItem) SetFromDateNil()
- func (o *LineItem) SetProduct(v string)
- func (o *LineItem) SetQuantity(v int32)
- func (o *LineItem) SetReference(v string)
- func (o *LineItem) SetToDate(v time.Time)
- func (o *LineItem) SetToDateNil()
- func (o *LineItem) SetTotal(v float32)
- func (o *LineItem) SetUnitAmount(v float32)
- func (o LineItem) ToMap() (map[string]interface{}, error)
- func (o *LineItem) UnmarshalJSON(data []byte) (err error)
- func (o *LineItem) UnsetFromDate()
- func (o *LineItem) UnsetToDate()
- type MappedNullable
- type Metadata
- func (o *Metadata) GetLimit() int32
- func (o *Metadata) GetLimitOk() (*int32, bool)
- func (o *Metadata) GetOffset() int32
- func (o *Metadata) GetOffsetOk() (*int32, bool)
- func (o *Metadata) GetTotalCount() int32
- func (o *Metadata) GetTotalCountOk() (*int32, bool)
- func (o Metadata) MarshalJSON() ([]byte, error)
- func (o *Metadata) SetLimit(v int32)
- func (o *Metadata) SetOffset(v int32)
- func (o *Metadata) SetTotalCount(v int32)
- func (o Metadata) ToMap() (map[string]interface{}, error)
- func (o *Metadata) UnmarshalJSON(data []byte) (err error)
- type NullableBool
- type NullableContractItem
- func (v NullableContractItem) Get() *ContractItem
- func (v NullableContractItem) IsSet() bool
- func (v NullableContractItem) MarshalJSON() ([]byte, error)
- func (v *NullableContractItem) Set(val *ContractItem)
- func (v *NullableContractItem) UnmarshalJSON(src []byte) error
- func (v *NullableContractItem) Unset()
- type NullableCredit
- type NullableErrorResult
- func (v NullableErrorResult) Get() *ErrorResult
- func (v NullableErrorResult) IsSet() bool
- func (v NullableErrorResult) MarshalJSON() ([]byte, error)
- func (v *NullableErrorResult) Set(val *ErrorResult)
- func (v *NullableErrorResult) UnmarshalJSON(src []byte) error
- func (v *NullableErrorResult) Unset()
- type NullableFloat32
- type NullableFloat64
- type NullableGetInvoiceListResult
- func (v NullableGetInvoiceListResult) Get() *GetInvoiceListResult
- func (v NullableGetInvoiceListResult) IsSet() bool
- func (v NullableGetInvoiceListResult) MarshalJSON() ([]byte, error)
- func (v *NullableGetInvoiceListResult) Set(val *GetInvoiceListResult)
- func (v *NullableGetInvoiceListResult) UnmarshalJSON(src []byte) error
- func (v *NullableGetInvoiceListResult) Unset()
- type NullableGetInvoiceResult
- func (v NullableGetInvoiceResult) Get() *GetInvoiceResult
- func (v NullableGetInvoiceResult) IsSet() bool
- func (v NullableGetInvoiceResult) MarshalJSON() ([]byte, error)
- func (v *NullableGetInvoiceResult) Set(val *GetInvoiceResult)
- func (v *NullableGetInvoiceResult) UnmarshalJSON(src []byte) error
- func (v *NullableGetInvoiceResult) Unset()
- type NullableGetProformaResult
- func (v NullableGetProformaResult) Get() *GetProformaResult
- func (v NullableGetProformaResult) IsSet() bool
- func (v NullableGetProformaResult) MarshalJSON() ([]byte, error)
- func (v *NullableGetProformaResult) Set(val *GetProformaResult)
- func (v *NullableGetProformaResult) UnmarshalJSON(src []byte) error
- func (v *NullableGetProformaResult) Unset()
- type NullableInt
- type NullableInt32
- type NullableInt64
- type NullableInvoice
- type NullableLineItem
- type NullableMetadata
- type NullableString
- type NullableTime
- type ServerConfiguration
- type ServerConfigurations
- type ServerVariable
Constants ¶
This section is empty.
Variables ¶
var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) )
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 ¶
CacheExpires helper function to determine remaining time before repeating a request.
func PtrFloat32 ¶
PtrFloat32 is a helper routine that returns a pointer to given float value.
func PtrFloat64 ¶
PtrFloat64 is a helper routine that returns a pointer to given float 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 ¶
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 (r ApiGetInvoiceListRequest) Execute() (*GetInvoiceListResult, *http.Response, error)
func (ApiGetInvoiceListRequest) Limit ¶
func (r ApiGetInvoiceListRequest) Limit(limit int32) ApiGetInvoiceListRequest
Limit the number of results returned.
func (ApiGetInvoiceListRequest) Offset ¶
func (r ApiGetInvoiceListRequest) Offset(offset int32) ApiGetInvoiceListRequest
Return results starting from the given offset.
type ApiGetInvoicePdfRequest ¶
type ApiGetInvoicePdfRequest struct {
ApiService InvoiceAPI
// contains filtered or unexported fields
}
type ApiGetInvoiceRequest ¶
type ApiGetInvoiceRequest struct {
ApiService InvoiceAPI
// contains filtered or unexported fields
}
func (ApiGetInvoiceRequest) Execute ¶
func (r ApiGetInvoiceRequest) Execute() (*GetInvoiceResult, *http.Response, error)
type ApiGetProformaRequest ¶
type ApiGetProformaRequest struct {
ApiService InvoiceAPI
// contains filtered or unexported fields
}
func (ApiGetProformaRequest) Execute ¶
func (r ApiGetProformaRequest) Execute() (*GetProformaResult, *http.Response, error)
func (ApiGetProformaRequest) Limit ¶
func (r ApiGetProformaRequest) Limit(limit int32) ApiGetProformaRequest
Limit the number of results returned.
func (ApiGetProformaRequest) Offset ¶
func (r ApiGetProformaRequest) Offset(offset int32) ApiGetProformaRequest
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) ServerURLWithContext ¶
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) GetDateOk ¶
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) GetIdOk ¶
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 ¶
GetTaxAmount returns the TaxAmount field value if set, zero value otherwise.
func (*Credit) GetTaxAmountOk ¶
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) GetTotalOk ¶
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) HasTaxAmount ¶
HasTaxAmount returns a boolean if a field has been set.
func (Credit) MarshalJSON ¶
func (*Credit) SetDate ¶
SetDate gets a reference to the given string and assigns it to the Date field.
func (*Credit) SetTaxAmount ¶
SetTaxAmount gets a reference to the given float32 and assigns it to the TaxAmount field.
func (*Credit) SetTotal ¶
SetTotal gets a reference to the given float32 and assigns it to the Total field.
func (*Credit) UnmarshalJSON ¶
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 ¶
GetCurrency returns the Currency field value if set, zero value otherwise.
func (*Invoice) GetCurrencyOk ¶
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) GetDateOk ¶
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 ¶
GetDueDate returns the DueDate field value if set, zero value otherwise.
func (*Invoice) GetDueDateOk ¶
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) GetIdOk ¶
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 ¶
GetIsPartialPaymentAllowed returns the IsPartialPaymentAllowed field value if set, zero value otherwise.
func (*Invoice) GetIsPartialPaymentAllowedOk ¶
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 ¶
GetOpenAmount returns the OpenAmount field value if set, zero value otherwise.
func (*Invoice) GetOpenAmountOk ¶
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) GetStatusOk ¶
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 ¶
GetTaxAmount returns the TaxAmount field value if set, zero value otherwise.
func (*Invoice) GetTaxAmountOk ¶
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) GetTotalOk ¶
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 ¶
HasCurrency returns a boolean if a field has been set.
func (*Invoice) HasDueDate ¶
HasDueDate returns a boolean if a field has been set.
func (*Invoice) HasIsPartialPaymentAllowed ¶
HasIsPartialPaymentAllowed returns a boolean if a field has been set.
func (*Invoice) HasOpenAmount ¶
HasOpenAmount returns a boolean if a field has been set.
func (*Invoice) HasTaxAmount ¶
HasTaxAmount returns a boolean if a field has been set.
func (Invoice) MarshalJSON ¶
func (*Invoice) SetCurrency ¶
SetCurrency gets a reference to the given string and assigns it to the Currency field.
func (*Invoice) SetDate ¶
SetDate gets a reference to the given string and assigns it to the Date field.
func (*Invoice) SetDueDate ¶
SetDueDate gets a reference to the given string and assigns it to the DueDate field.
func (*Invoice) SetIsPartialPaymentAllowed ¶
SetIsPartialPaymentAllowed gets a reference to the given bool and assigns it to the IsPartialPaymentAllowed field.
func (*Invoice) SetOpenAmount ¶
SetOpenAmount gets a reference to the given float32 and assigns it to the OpenAmount field.
func (*Invoice) SetStatus ¶
SetStatus gets a reference to the given string and assigns it to the Status field.
func (*Invoice) SetTaxAmount ¶
SetTaxAmount gets a reference to the given float32 and assigns it to the TaxAmount field.
func (*Invoice) SetTotal ¶
SetTotal gets a reference to the given float32 and assigns it to the Total field.
func (*Invoice) UnmarshalJSON ¶
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 ¶
func (a *InvoiceAPIService) GetInvoiceExecute(r ApiGetInvoiceRequest) (*GetInvoiceResult, *http.Response, error)
Execute executes the request
@return GetInvoiceResult
func (*InvoiceAPIService) GetInvoiceList ¶
func (a *InvoiceAPIService) GetInvoiceList(ctx context.Context) ApiGetInvoiceListRequest
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 ¶
func (a *InvoiceAPIService) GetInvoiceListExecute(r ApiGetInvoiceListRequest) (*GetInvoiceListResult, *http.Response, error)
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 ¶
func (a *InvoiceAPIService) GetProforma(ctx context.Context) ApiGetProformaRequest
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 ¶
func (a *InvoiceAPIService) GetProformaExecute(r ApiGetProformaRequest) (*GetProformaResult, *http.Response, error)
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 ¶
GetContractId returns the ContractId field value if set, zero value otherwise.
func (*LineItem) GetContractIdOk ¶
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 ¶
GetEquipmentId returns the EquipmentId field value if set, zero value otherwise.
func (*LineItem) GetEquipmentIdOk ¶
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 ¶
GetFromDate returns the FromDate field value if set, zero value otherwise (both if not set or set to explicit null).
func (*LineItem) GetFromDateOk ¶
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 ¶
GetProduct returns the Product field value if set, zero value otherwise.
func (*LineItem) GetProductOk ¶
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 ¶
GetQuantity returns the Quantity field value if set, zero value otherwise.
func (*LineItem) GetQuantityOk ¶
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 ¶
GetReference returns the Reference field value if set, zero value otherwise.
func (*LineItem) GetReferenceOk ¶
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 ¶
GetToDate returns the ToDate field value if set, zero value otherwise (both if not set or set to explicit null).
func (*LineItem) GetToDateOk ¶
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) GetTotalOk ¶
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 ¶
GetUnitAmount returns the UnitAmount field value if set, zero value otherwise.
func (*LineItem) GetUnitAmountOk ¶
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 ¶
HasContractId returns a boolean if a field has been set.
func (*LineItem) HasEquipmentId ¶
HasEquipmentId returns a boolean if a field has been set.
func (*LineItem) HasFromDate ¶
HasFromDate returns a boolean if a field has been set.
func (*LineItem) HasProduct ¶
HasProduct returns a boolean if a field has been set.
func (*LineItem) HasQuantity ¶
HasQuantity returns a boolean if a field has been set.
func (*LineItem) HasReference ¶
HasReference returns a boolean if a field has been set.
func (*LineItem) HasUnitAmount ¶
HasUnitAmount returns a boolean if a field has been set.
func (LineItem) MarshalJSON ¶
func (*LineItem) SetContractId ¶
SetContractId gets a reference to the given string and assigns it to the ContractId field.
func (*LineItem) SetEquipmentId ¶
SetEquipmentId gets a reference to the given string and assigns it to the EquipmentId field.
func (*LineItem) SetFromDate ¶
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 ¶
SetProduct gets a reference to the given string and assigns it to the Product field.
func (*LineItem) SetQuantity ¶
SetQuantity gets a reference to the given int32 and assigns it to the Quantity field.
func (*LineItem) SetReference ¶
SetReference gets a reference to the given string and assigns it to the Reference field.
func (*LineItem) SetToDate ¶
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 ¶
SetTotal gets a reference to the given float32 and assigns it to the Total field.
func (*LineItem) SetUnitAmount ¶
SetUnitAmount gets a reference to the given float32 and assigns it to the UnitAmount field.
func (*LineItem) UnmarshalJSON ¶
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 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 ¶
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) GetLimitOk ¶
GetLimitOk returns a tuple with the Limit field value and a boolean to check if the value has been set.
func (*Metadata) GetOffsetOk ¶
GetOffsetOk returns a tuple with the Offset field value and a boolean to check if the value has been set.
func (*Metadata) GetTotalCount ¶
GetTotalCount returns the TotalCount field value
func (*Metadata) GetTotalCountOk ¶
GetTotalCountOk returns a tuple with the TotalCount field value and a boolean to check if the value has been set.
func (Metadata) MarshalJSON ¶
func (*Metadata) SetTotalCount ¶
SetTotalCount sets field value
func (*Metadata) UnmarshalJSON ¶
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 (v NullableContractItem) Get() *ContractItem
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 (v NullableErrorResult) Get() *ErrorResult
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 (v NullableGetInvoiceListResult) Get() *GetInvoiceListResult
func (NullableGetInvoiceListResult) IsSet ¶
func (v NullableGetInvoiceListResult) IsSet() bool
func (NullableGetInvoiceListResult) MarshalJSON ¶
func (v NullableGetInvoiceListResult) MarshalJSON() ([]byte, error)
func (*NullableGetInvoiceListResult) Set ¶
func (v *NullableGetInvoiceListResult) Set(val *GetInvoiceListResult)
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 (v NullableGetInvoiceResult) Get() *GetInvoiceResult
func (NullableGetInvoiceResult) IsSet ¶
func (v NullableGetInvoiceResult) IsSet() bool
func (NullableGetInvoiceResult) MarshalJSON ¶
func (v NullableGetInvoiceResult) MarshalJSON() ([]byte, error)
func (*NullableGetInvoiceResult) Set ¶
func (v *NullableGetInvoiceResult) Set(val *GetInvoiceResult)
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 (v NullableGetProformaResult) Get() *GetProformaResult
func (NullableGetProformaResult) IsSet ¶
func (v NullableGetProformaResult) IsSet() bool
func (NullableGetProformaResult) MarshalJSON ¶
func (v NullableGetProformaResult) MarshalJSON() ([]byte, error)
func (*NullableGetProformaResult) Set ¶
func (v *NullableGetProformaResult) Set(val *GetProformaResult)
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
type ServerVariable ¶
ServerVariable stores the information about a server variable