Documentation ¶
Index ¶
- type BillingClient
- func (c BillingClient) CreateBillingPosition(in BillingPositionCreateRequest) (BillingPositionSingleResponse, *http.Response, error)
- func (c BillingClient) CreateCustomer(in CustomerCreateRequest) (CustomerSingleResponse, *http.Response, error)
- func (c BillingClient) CreateDebitMandate(in DebitMandateCreateRequest) (DebitMandateSingleResponse, *http.Response, error)
- func (c BillingClient) CreateInvoice(in InvoiceCreateRequest) (InvoiceSingleResponse, *http.Response, error)
- func (c BillingClient) CreateInvoicePosition(in PositionCreateRequest, id string) (InvoicePositionSingleResponse, *http.Response, error)
- func (c BillingClient) CreateServiceContract(in ServiceContractCreateRequest) (ServiceContractSingleResponse, *http.Response, error)
- func (c BillingClient) CreateServiceContractPosition(in PositionCreateRequest, contract_id string) (ServiceContractPositionSingleResponse, *http.Response, error)
- func (c BillingClient) DeleteBillingPosition(id string) (EmptyResponse, *http.Response, error)
- func (c BillingClient) DeleteInvoice(id string) (EmptyResponse, *http.Response, error)
- func (c BillingClient) DeleteInvoicePosition(invoice_id string, id string) (EmptyResponse, *http.Response, error)
- func (c BillingClient) DeleteServiceContract(id string) (EmptyResponse, *http.Response, error)
- func (c BillingClient) DeleteServiceContractPosition(contract_id string, id string) (EmptyResponse, *http.Response, error)
- func (c BillingClient) GetBillingPosition(id string) (BillingPositionSingleResponse, *http.Response, error)
- func (c BillingClient) GetBillingPositions(qParams GetBillingPositionsQueryParams) (BillingPositionListResponse, *http.Response, error)
- func (c BillingClient) GetCustomer(id int) (CustomerSingleResponse, *http.Response, error)
- func (c BillingClient) GetCustomers(qParams GetCustomersQueryParams) (CustomerListResponse, *http.Response, error)
- func (c BillingClient) GetDebit(id string) (DebitSingleResponse, *http.Response, error)
- func (c BillingClient) GetDebitMandate(id string) (DebitMandateSingleResponse, *http.Response, error)
- func (c BillingClient) GetDebitMandates(qParams GetDebitMandatesQueryParams) (DebitMandateListResponse, *http.Response, error)
- func (c BillingClient) GetDebits(qParams GetDebitsQueryParams) (DebitListResponse, *http.Response, error)
- func (c BillingClient) GetInvoice(id string) (InvoiceSingleResponse, *http.Response, error)
- func (c BillingClient) GetInvoiceFile(id string) (FileSingleResponse, *http.Response, error)
- func (c BillingClient) GetInvoicePosition(invoice_id string, id string) (InvoicePositionSingleResponse, *http.Response, error)
- func (c BillingClient) GetInvoicePositions(id string, qParams GetInvoicePositionsQueryParams) (InvoicePositionListResponse, *http.Response, error)
- func (c BillingClient) GetInvoices(qParams GetInvoicesQueryParams) (InvoiceListResponse, *http.Response, error)
- func (c BillingClient) GetServiceContract(id string) (ServiceContractSingleResponse, *http.Response, error)
- func (c BillingClient) GetServiceContractPosition(contract_id string, id string) (ServiceContractPositionSingleResponse, *http.Response, error)
- func (c BillingClient) GetServiceContractPositions(contract_id string, qParams GetServiceContractPositionsQueryParams) (ServiceContractPositionListResponse, *http.Response, error)
- func (c BillingClient) GetServiceContracts(qParams GetServiceContractsQueryParams) (ServiceContractListResponse, *http.Response, error)
- func (c *BillingClient) Request(method string, path string, postBody io.Reader) (*http.Response, []byte, error)
- func (c *BillingClient) SetAccessToken(token string)
- func (c *BillingClient) SetHttpClient(client *http.Client)
- func (c BillingClient) UpdateBillingPosition(in BillingPositionUpdateRequest, id string) (BillingPositionSingleResponse, *http.Response, error)
- func (c BillingClient) UpdateCustomer(in CustomerUpdateRequest, id int) (CustomerSingleResponse, *http.Response, error)
- func (c BillingClient) UpdateInvoice(in InvoiceUpdateRequest, id string) (InvoiceSingleResponse, *http.Response, error)
- func (c BillingClient) UpdateInvoicePosition(in PositionUpdateRequest, invoice_id string, id string) (InvoicePositionSingleResponse, *http.Response, error)
- func (c BillingClient) UpdateServiceContract(in ServiceContractUpdateRequest, id string) (ServiceContractSingleResponse, *http.Response, error)
- func (c BillingClient) UpdateServiceContractPosition(in PositionUpdateRequest, contract_id string, id string) (ServiceContractPositionSingleResponse, *http.Response, error)
- type BillingInterval
- type BillingPosition
- type BillingPositionCreateRequest
- type BillingPositionListResponse
- type BillingPositionSingleResponse
- type BillingPositionUpdateRequest
- type CreateRequestPosition
- type Customer
- type CustomerCreateRequest
- type CustomerDetailed
- type CustomerListResponse
- type CustomerSingleResponse
- type CustomerUpdateRequest
- type Debit
- type DebitListResponse
- type DebitMandate
- type DebitMandateCreateRequest
- type DebitMandateListResponse
- type DebitMandateSingleResponse
- type DebitSingleResponse
- type EmptyResponse
- type GetBillingPositionsQueryParams
- type GetBillingPositionsQueryParamsFilter
- type GetCustomersQueryParams
- type GetDebitMandatesQueryParams
- type GetDebitsQueryParams
- type GetInvoicePositionsQueryParams
- type GetInvoicesQueryParams
- type GetInvoicesQueryParamsFilter
- type GetServiceContractPositionsQueryParams
- type GetServiceContractsQueryParams
- type GetServiceContractsQueryParamsFilter
- type InvalidRequestResponse
- type Invoice
- type InvoiceCreateRequest
- type InvoiceCreateRequestPosition
- type InvoiceDetailed
- type InvoiceListResponse
- type InvoicePositionListResponse
- type InvoicePositionSingleResponse
- type InvoiceSingleResponse
- type InvoiceState
- type InvoiceUpdateRequest
- type Position
- type PositionCreateRequest
- type PositionUpdateRequest
- type ResponseMessage
- type ResponseMessages
- type ResponseMetadata
- type ResponsePagination
- type ServiceContract
- type ServiceContractCreateRequest
- type ServiceContractInterval
- type ServiceContractListResponse
- type ServiceContractPosition
- type ServiceContractPositionListResponse
- type ServiceContractPositionSingleResponse
- type ServiceContractSingleResponse
- type ServiceContractUpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillingClient ¶
type BillingClient struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(apiKey string) BillingClient
func NewClientWithUrl ¶
func NewClientWithUrl(apiKey string, baseUrl string) BillingClient
func (BillingClient) CreateBillingPosition ¶
func (c BillingClient) CreateBillingPosition(in BillingPositionCreateRequest) (BillingPositionSingleResponse, *http.Response, error)
func (BillingClient) CreateCustomer ¶
func (c BillingClient) CreateCustomer(in CustomerCreateRequest) (CustomerSingleResponse, *http.Response, error)
func (BillingClient) CreateDebitMandate ¶
func (c BillingClient) CreateDebitMandate(in DebitMandateCreateRequest) (DebitMandateSingleResponse, *http.Response, error)
func (BillingClient) CreateInvoice ¶
func (c BillingClient) CreateInvoice(in InvoiceCreateRequest) (InvoiceSingleResponse, *http.Response, error)
func (BillingClient) CreateInvoicePosition ¶
func (c BillingClient) CreateInvoicePosition(in PositionCreateRequest, id string) (InvoicePositionSingleResponse, *http.Response, error)
func (BillingClient) CreateServiceContract ¶
func (c BillingClient) CreateServiceContract(in ServiceContractCreateRequest) (ServiceContractSingleResponse, *http.Response, error)
func (BillingClient) CreateServiceContractPosition ¶
func (c BillingClient) CreateServiceContractPosition(in PositionCreateRequest, contract_id string) (ServiceContractPositionSingleResponse, *http.Response, error)
func (BillingClient) DeleteBillingPosition ¶
func (c BillingClient) DeleteBillingPosition(id string) (EmptyResponse, *http.Response, error)
func (BillingClient) DeleteInvoice ¶
func (c BillingClient) DeleteInvoice(id string) (EmptyResponse, *http.Response, error)
func (BillingClient) DeleteInvoicePosition ¶
func (c BillingClient) DeleteInvoicePosition(invoice_id string, id string) (EmptyResponse, *http.Response, error)
func (BillingClient) DeleteServiceContract ¶
func (c BillingClient) DeleteServiceContract(id string) (EmptyResponse, *http.Response, error)
func (BillingClient) DeleteServiceContractPosition ¶
func (c BillingClient) DeleteServiceContractPosition(contract_id string, id string) (EmptyResponse, *http.Response, error)
func (BillingClient) GetBillingPosition ¶
func (c BillingClient) GetBillingPosition(id string) (BillingPositionSingleResponse, *http.Response, error)
func (BillingClient) GetBillingPositions ¶
func (c BillingClient) GetBillingPositions(qParams GetBillingPositionsQueryParams) (BillingPositionListResponse, *http.Response, error)
func (BillingClient) GetCustomer ¶
func (c BillingClient) GetCustomer(id int) (CustomerSingleResponse, *http.Response, error)
func (BillingClient) GetCustomers ¶
func (c BillingClient) GetCustomers(qParams GetCustomersQueryParams) (CustomerListResponse, *http.Response, error)
func (BillingClient) GetDebit ¶
func (c BillingClient) GetDebit(id string) (DebitSingleResponse, *http.Response, error)
func (BillingClient) GetDebitMandate ¶
func (c BillingClient) GetDebitMandate(id string) (DebitMandateSingleResponse, *http.Response, error)
func (BillingClient) GetDebitMandates ¶
func (c BillingClient) GetDebitMandates(qParams GetDebitMandatesQueryParams) (DebitMandateListResponse, *http.Response, error)
func (BillingClient) GetDebits ¶
func (c BillingClient) GetDebits(qParams GetDebitsQueryParams) (DebitListResponse, *http.Response, error)
func (BillingClient) GetInvoice ¶
func (c BillingClient) GetInvoice(id string) (InvoiceSingleResponse, *http.Response, error)
func (BillingClient) GetInvoiceFile ¶
func (c BillingClient) GetInvoiceFile(id string) (FileSingleResponse, *http.Response, error)
func (BillingClient) GetInvoicePosition ¶
func (c BillingClient) GetInvoicePosition(invoice_id string, id string) (InvoicePositionSingleResponse, *http.Response, error)
func (BillingClient) GetInvoicePositions ¶
func (c BillingClient) GetInvoicePositions(id string, qParams GetInvoicePositionsQueryParams) (InvoicePositionListResponse, *http.Response, error)
func (BillingClient) GetInvoices ¶
func (c BillingClient) GetInvoices(qParams GetInvoicesQueryParams) (InvoiceListResponse, *http.Response, error)
func (BillingClient) GetServiceContract ¶
func (c BillingClient) GetServiceContract(id string) (ServiceContractSingleResponse, *http.Response, error)
func (BillingClient) GetServiceContractPosition ¶
func (c BillingClient) GetServiceContractPosition(contract_id string, id string) (ServiceContractPositionSingleResponse, *http.Response, error)
func (BillingClient) GetServiceContractPositions ¶
func (c BillingClient) GetServiceContractPositions(contract_id string, qParams GetServiceContractPositionsQueryParams) (ServiceContractPositionListResponse, *http.Response, error)
func (BillingClient) GetServiceContracts ¶
func (c BillingClient) GetServiceContracts(qParams GetServiceContractsQueryParams) (ServiceContractListResponse, *http.Response, error)
func (*BillingClient) SetAccessToken ¶
func (c *BillingClient) SetAccessToken(token string)
func (*BillingClient) SetHttpClient ¶
func (c *BillingClient) SetHttpClient(client *http.Client)
func (BillingClient) UpdateBillingPosition ¶
func (c BillingClient) UpdateBillingPosition(in BillingPositionUpdateRequest, id string) (BillingPositionSingleResponse, *http.Response, error)
func (BillingClient) UpdateCustomer ¶
func (c BillingClient) UpdateCustomer(in CustomerUpdateRequest, id int) (CustomerSingleResponse, *http.Response, error)
func (BillingClient) UpdateInvoice ¶
func (c BillingClient) UpdateInvoice(in InvoiceUpdateRequest, id string) (InvoiceSingleResponse, *http.Response, error)
func (BillingClient) UpdateInvoicePosition ¶
func (c BillingClient) UpdateInvoicePosition(in PositionUpdateRequest, invoice_id string, id string) (InvoicePositionSingleResponse, *http.Response, error)
func (BillingClient) UpdateServiceContract ¶
func (c BillingClient) UpdateServiceContract(in ServiceContractUpdateRequest, id string) (ServiceContractSingleResponse, *http.Response, error)
func (BillingClient) UpdateServiceContractPosition ¶
func (c BillingClient) UpdateServiceContractPosition(in PositionUpdateRequest, contract_id string, id string) (ServiceContractPositionSingleResponse, *http.Response, error)
type BillingInterval ¶
type BillingInterval string
type BillingPosition ¶
type BillingPosition struct { InvoicePositionId *string `json:"invoice_position_id"` Amount *float32 `json:"amount"` SyncKey *string `json:"sync_key"` Price *float32 `json:"price"` Draft *bool `json:"draft"` Description *string `json:"description"` Id string `json:"id"` CustomerId string `json:"customer_id"` Title *string `json:"title"` AvailableAt *string `json:"available_at"` VatRate *float32 `json:"vat_rate"` GroupKey *string `json:"group_key"` }
type BillingPositionCreateRequest ¶
type BillingPositionCreateRequest struct { InvoicePositionId *string `json:"invoice_position_id"` Amount float32 `json:"amount"` Unit string `json:"unit"` SyncKey *string `json:"sync_key"` Price float32 `json:"price"` Draft *bool `json:"draft"` Description string `json:"description"` CustomerId string `json:"customer_id"` Title string `json:"title"` AvailableAt *string `json:"available_at"` VatRate *float32 `json:"vat_rate"` GroupKey *string `json:"group_key"` }
type BillingPositionListResponse ¶
type BillingPositionListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []BillingPosition `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type BillingPositionSingleResponse ¶
type BillingPositionSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data BillingPosition `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type BillingPositionUpdateRequest ¶
type BillingPositionUpdateRequest struct { InvoicePositionId *string `json:"invoice_position_id"` Amount *float32 `json:"amount"` Unit *string `json:"unit"` Price *float32 `json:"price"` Draft *bool `json:"draft"` Description *string `json:"description"` Title *string `json:"title"` AvailableAt *string `json:"available_at"` VatRate *float32 `json:"vat_rate"` GroupKey *string `json:"group_key"` }
type CreateRequestPosition ¶
type Customer ¶
type Customer struct { Balance *float32 `json:"balance"` UserId string `json:"user_id"` CompanyName *string `json:"company_name"` CreditLimit *float32 `json:"credit_limit"` LastName *string `json:"last_name"` BillingInterval *BillingInterval `json:"billing_interval"` Id string `json:"id"` FirstName *string `json:"first_name"` NextBillingDate *string `json:"next_billing_date"` }
type CustomerCreateRequest ¶
type CustomerCreateRequest struct { AdditionalAddress *string `json:"additional_address"` Gender string `json:"gender"` City string `json:"city"` LastName string `json:"last_name"` BillingInterval BillingInterval `json:"billing_interval"` CustomVatRate float32 `json:"custom_vat_rate"` CountryCode string `json:"country_code"` UserId string `json:"user_id"` Street string `json:"street"` TaxNumber string `json:"tax_number"` CompanyName *string `json:"company_name"` AutoFinalize *bool `json:"auto_finalize"` StreetNumber string `json:"street_number"` CreditLimit float32 `json:"credit_limit"` PaymentPeriod int `json:"payment_period"` VatId string `json:"vat_id"` PostalCode string `json:"postal_code"` FirstName string `json:"first_name"` Email string `json:"email"` }
type CustomerDetailed ¶
type CustomerDetailed struct { AdditionalAddress *string `json:"additional_address"` City *string `json:"city"` LastName *string `json:"last_name"` BillingInterval *BillingInterval `json:"billing_interval"` CountryCode *string `json:"country_code"` Balance *float32 `json:"balance"` UserId string `json:"user_id"` Street *string `json:"street"` TaxNumber *string `json:"tax_number"` CompanyName *string `json:"company_name"` CreditLimit *float32 `json:"credit_limit"` StreetNumber *string `json:"street_number"` VatId *string `json:"vat_id"` Id string `json:"id"` PostalCode *string `json:"postal_code"` FirstName *string `json:"first_name"` Email *string `json:"email"` NextBillingDate *string `json:"next_billing_date"` }
type CustomerListResponse ¶
type CustomerListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []Customer `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type CustomerSingleResponse ¶
type CustomerSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data CustomerDetailed `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type CustomerUpdateRequest ¶
type CustomerUpdateRequest struct { AdditionalAddress *string `json:"additional_address"` City *string `json:"city"` LastName *string `json:"last_name"` BillingInterval *BillingInterval `json:"billing_interval"` CustomVatRate *float32 `json:"custom_vat_rate"` CountryCode *string `json:"country_code"` Balance *float32 `json:"balance"` Street *string `json:"street"` TaxNumber *string `json:"tax_number"` CompanyName *string `json:"company_name"` AutoFinalize *bool `json:"auto_finalize"` StreetNumber *string `json:"street_number"` CreditLimit *float32 `json:"credit_limit"` PaymentPeriod *int `json:"payment_period"` VatId *string `json:"vat_id"` PostalCode *string `json:"postal_code"` FirstName *string `json:"first_name"` Email *string `json:"email"` }
type DebitListResponse ¶
type DebitListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []Debit `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DebitMandate ¶
type DebitMandate struct { AdditionalAddress *string `json:"additional_address"` BankCode *string `json:"bank_code"` AccountNumber *string `json:"account_number"` City *string `json:"city"` CountryCode *string `json:"country_code"` ValidUntil *string `json:"valid_until"` Street *string `json:"street"` StreetNumber *string `json:"street_number"` BankName *string `json:"bank_name"` SignedAt *string `json:"signed_at"` Depositor *string `json:"depositor"` Id string `json:"id"` CustomerId string `json:"customer_id"` PostalCode *string `json:"postal_code"` }
type DebitMandateCreateRequest ¶
type DebitMandateCreateRequest struct { AdditionalAddress string `json:"additional_address"` BankCode string `json:"bank_code"` AccountNumber string `json:"account_number"` City string `json:"city"` CountryCode string `json:"country_code"` ValidUntil *string `json:"valid_until"` Street string `json:"street"` StreetNumber string `json:"street_number"` BankName string `json:"bank_name"` SignedAt *string `json:"signed_at"` Depositor string `json:"depositor"` CustomerId string `json:"customer_id"` PostalCode string `json:"postal_code"` }
type DebitMandateListResponse ¶
type DebitMandateListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []DebitMandate `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DebitMandateSingleResponse ¶
type DebitMandateSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data DebitMandate `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type DebitSingleResponse ¶
type DebitSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data Debit `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type EmptyResponse ¶
type EmptyResponse struct { Metadata ResponseMetadata `json:"metadata"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type GetBillingPositionsQueryParams ¶
type GetBillingPositionsQueryParams struct { Order *string `url:"order,omitempty"` Filter *GetBillingPositionsQueryParamsFilter `url:"filter,omitempty"` PageSize *int `url:"page_size,omitempty"` OrderBy *string `url:"order_by,omitempty"` Search *string `url:"search,omitempty"` Page *int `url:"page,omitempty"` }
type GetBillingPositionsQueryParamsFilter ¶
type GetBillingPositionsQueryParamsFilter struct { Draft *bool `url:"draft,omitempty"` SyncKey *string `url:"sync_key,omitempty"` CustomerId *string `url:"customer_id,omitempty"` Title *string `url:"title,omitempty"` InvoiceId *string `url:"invoice_id,omitempty"` GroupKey *string `url:"group_key,omitempty"` }
type GetCustomersQueryParams ¶
type GetDebitsQueryParams ¶
type GetInvoicesQueryParams ¶
type GetInvoicesQueryParamsFilter ¶
type GetInvoicesQueryParamsFilter struct {
CustomerId *string `url:"customer_id,omitempty"`
}
type GetServiceContractsQueryParams ¶
type GetServiceContractsQueryParams struct { Order *string `url:"order,omitempty"` Filter *GetServiceContractsQueryParamsFilter `url:"filter,omitempty"` PageSize *int `url:"page_size,omitempty"` OrderBy *string `url:"order_by,omitempty"` Search *string `url:"search,omitempty"` Page *int `url:"page,omitempty"` }
type GetServiceContractsQueryParamsFilter ¶
type GetServiceContractsQueryParamsFilter struct {
CustomerId *string `url:"customer_id,omitempty"`
}
type InvalidRequestResponse ¶
type InvalidRequestResponse struct { Metadata ResponseMetadata `json:"metadata"` Data interface{} `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type InvoiceCreateRequest ¶
type InvoiceCreateRequest struct { DueAt string `json:"due_at"` Positions *[]InvoiceCreateRequestPosition `json:"positions"` CustomerId string `json:"customer_id"` }
type InvoiceDetailed ¶
type InvoiceDetailed struct { PaidAt string `json:"paid_at"` CreatedAt string `json:"created_at"` DueAt string `json:"due_at"` NetPrice float32 `json:"net_price"` GrossPrice float32 `json:"gross_price"` Positions []Position `json:"positions"` Id string `json:"id"` State InvoiceState `json:"state"` CustomerId string `json:"customer_id"` }
type InvoiceListResponse ¶
type InvoiceListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []Invoice `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type InvoicePositionListResponse ¶
type InvoicePositionListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []Position `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type InvoicePositionSingleResponse ¶
type InvoicePositionSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data Position `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type InvoiceSingleResponse ¶
type InvoiceSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data InvoiceDetailed `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type InvoiceState ¶
type InvoiceState string
type InvoiceUpdateRequest ¶
type InvoiceUpdateRequest struct { PaidAt *string `json:"paid_at"` CancelledAt *string `json:"cancelled_at"` DueAt *string `json:"due_at"` State *InvoiceState `json:"state"` CustomerId *string `json:"customer_id"` }
type Position ¶
type Position struct { Amount *float32 `json:"amount"` Unit *string `json:"unit"` UpdatedAt *string `json:"updated_at"` Price *float32 `json:"price"` Name *string `json:"name"` Description *string `json:"description"` CreatedAt *string `json:"created_at"` Position float32 `json:"position"` VatRate *float32 `json:"vat_rate"` GroupKey *string `json:"group_key"` }
type PositionCreateRequest ¶
type PositionCreateRequest struct { Amount string `json:"amount"` Unit string `json:"unit"` Price float32 `json:"price"` PeriodFrom *string `json:"period_from"` Name string `json:"name"` Description string `json:"description"` PeriodTo *string `json:"period_to"` VatRate *float32 `json:"vat_rate"` GroupKey string `json:"group_key"` }
type PositionUpdateRequest ¶
type PositionUpdateRequest struct { Amount *float32 `json:"amount"` Unit *string `json:"unit"` Price *float32 `json:"price"` PeriodFrom *string `json:"period_from"` Name *string `json:"name"` Description *string `json:"description"` PeriodTo *string `json:"period_to"` VatRate *float32 `json:"vat_rate"` GroupKey *string `json:"group_key"` }
type ResponseMessage ¶
type ResponseMessages ¶
type ResponseMessages struct { Warnings []ResponseMessage `json:"warnings"` Errors []ResponseMessage `json:"errors"` Infos []ResponseMessage `json:"infos"` }
type ResponseMetadata ¶
type ResponsePagination ¶
type ServiceContract ¶
type ServiceContract struct { CancellationPeriod *int `json:"cancellation_period"` Description *string `json:"description"` Runtime *string `json:"runtime"` Id string `json:"id"` CustomerId string `json:"customer_id"` Title *string `json:"title"` AccountingPeriod *string `json:"accounting_period"` }
type ServiceContractCreateRequest ¶
type ServiceContractCreateRequest struct { Unit string `json:"unit"` CancellationPeriod int `json:"cancellation_period"` Description string `json:"description"` BillingInterval *ServiceContractInterval `json:"billing_interval"` UnitAmount *float32 `json:"unit_amount"` CustomerId string `json:"customer_id"` Title string `json:"title"` RenewalInterval *ServiceContractInterval `json:"renewal_interval"` UnitPrice float32 `json:"unit_price"` VatRate *float32 `json:"vat_rate"` }
type ServiceContractInterval ¶
type ServiceContractInterval string
type ServiceContractListResponse ¶
type ServiceContractListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []ServiceContract `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type ServiceContractPosition ¶
type ServiceContractPositionListResponse ¶
type ServiceContractPositionListResponse struct { Metadata ResponseMetadata `json:"metadata"` Pagination *ResponsePagination `json:"pagination"` Data []ServiceContractPosition `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type ServiceContractPositionSingleResponse ¶
type ServiceContractPositionSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data ServiceContractPosition `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type ServiceContractSingleResponse ¶
type ServiceContractSingleResponse struct { Metadata ResponseMetadata `json:"metadata"` Data ServiceContract `json:"data"` Success bool `json:"success"` Messages ResponseMessages `json:"messages"` }
type ServiceContractUpdateRequest ¶
type ServiceContractUpdateRequest struct { Unit *string `json:"unit"` CancellationPeriod *int `json:"cancellation_period"` Description *string `json:"description"` UnitAmount *float32 `json:"unit_amount"` CustomerId *string `json:"customer_id"` Title *string `json:"title"` UnitPrice *float32 `json:"unit_price"` RenewalInterval *ServiceContractInterval `json:"renewal_interval"` AccountingPeriod *ServiceContractInterval `json:"accounting_period"` }
Click to show internal directories.
Click to hide internal directories.