billing

package
v0.0.0-...-de483c3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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) CreateCustomer

func (BillingClient) CreateInvoice

func (BillingClient) CreateInvoicePosition

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 (BillingClient) GetCustomer

func (c BillingClient) GetCustomer(id int) (CustomerSingleResponse, *http.Response, error)

func (BillingClient) GetCustomers

func (BillingClient) GetDebit

func (BillingClient) GetDebitMandate

func (BillingClient) GetDebitMandates

func (BillingClient) GetDebits

func (BillingClient) GetInvoice

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 (BillingClient) GetInvoices

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 (BillingClient) GetServiceContracts

func (*BillingClient) Request

func (c *BillingClient) Request(method string, path string, postBody io.Reader) (*http.Response, []byte, error)

func (*BillingClient) SetAccessToken

func (c *BillingClient) SetAccessToken(token string)

func (*BillingClient) SetHttpClient

func (c *BillingClient) SetHttpClient(client *http.Client)

func (BillingClient) UpdateCustomer

func (BillingClient) UpdateInvoice

func (BillingClient) UpdateInvoicePosition

func (c BillingClient) UpdateInvoicePosition(in PositionUpdateRequest, invoice_id string, id string) (InvoicePositionSingleResponse, *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 CreateRequestPosition struct {
	Amount      float32  `json:"amount"`
	Unit        string   `json:"unit"`
	Price       float32  `json:"price"`
	Name        string   `json:"name"`
	Description *string  `json:"description"`
	GroupKey    *string  `json:"group_key"`
	VatRate     *float32 `json:"vat_rate"`
}

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 Debit

type Debit struct {
	Date    *string `json:"date"`
	DueDate *string `json:"due_date"`
	Id      string  `json:"id"`
	Title   *string `json:"title"`
}

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 GetCustomersQueryParams struct {
	Order    *string `url:"order,omitempty"`
	PageSize *int    `url:"page_size,omitempty"`
	OrderBy  *string `url:"order_by,omitempty"`
	Search   *string `url:"search,omitempty"`
	Page     *int    `url:"page,omitempty"`
}

type GetDebitMandatesQueryParams

type GetDebitMandatesQueryParams struct {
	Order    *string `url:"order,omitempty"`
	PageSize *int    `url:"page_size,omitempty"`
	OrderBy  *string `url:"order_by,omitempty"`
	Search   *string `url:"search,omitempty"`
	Page     *int    `url:"page,omitempty"`
}

type GetDebitsQueryParams

type GetDebitsQueryParams struct {
	Order    *string `url:"order,omitempty"`
	PageSize *int    `url:"page_size,omitempty"`
	OrderBy  *string `url:"order_by,omitempty"`
	Search   *string `url:"search,omitempty"`
	Page     *int    `url:"page,omitempty"`
}

type GetInvoicePositionsQueryParams

type GetInvoicePositionsQueryParams struct {
	Order    *string `url:"order,omitempty"`
	PageSize *int    `url:"page_size,omitempty"`
	OrderBy  *string `url:"order_by,omitempty"`
	Search   *string `url:"search,omitempty"`
	Page     *int    `url:"page,omitempty"`
}

type GetInvoicesQueryParams

type GetInvoicesQueryParams struct {
	Order    *string                       `url:"order,omitempty"`
	Filter   *GetInvoicesQueryParamsFilter `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 GetInvoicesQueryParamsFilter

type GetInvoicesQueryParamsFilter struct {
	CustomerId *string `url:"customer_id,omitempty"`
}

type GetServiceContractPositionsQueryParams

type GetServiceContractPositionsQueryParams struct {
	Order    *string `url:"order,omitempty"`
	PageSize *int    `url:"page_size,omitempty"`
	OrderBy  *string `url:"order_by,omitempty"`
	Search   *string `url:"search,omitempty"`
	Page     *int    `url:"page,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 Invoice

type Invoice 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"`
	Id         string       `json:"id"`
	State      InvoiceState `json:"state"`
	CustomerId string       `json:"customer_id"`
}

type InvoiceCreateRequest

type InvoiceCreateRequest struct {
	DueAt      string                          `json:"due_at"`
	Positions  *[]InvoiceCreateRequestPosition `json:"positions"`
	CustomerId string                          `json:"customer_id"`
}

type InvoiceCreateRequestPosition

type InvoiceCreateRequestPosition struct {
	Amount      float32  `json:"amount"`
	Unit        string   `json:"unit"`
	Price       float32  `json:"price"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	VatRate     *float32 `json:"vat_rate"`
	Group       string   `json:"group"`
}

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 ResponseMessage struct {
	Message string `json:"message"`
	Key     string `json:"key"`
}

type ResponseMessages

type ResponseMessages struct {
	Warnings []ResponseMessage `json:"warnings"`
	Errors   []ResponseMessage `json:"errors"`
	Infos    []ResponseMessage `json:"infos"`
}

type ResponseMetadata

type ResponseMetadata struct {
	TransactionId  string `json:"transaction_id"`
	BuildCommit    string `json:"build_commit"`
	BuildTimestamp string `json:"build_timestamp"`
}

type ResponsePagination

type ResponsePagination struct {
	Total    int `json:"total"`
	Page     int `json:"page"`
	PageSize int `json:"page_size"`
}

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 ServiceContractPosition struct {
	Amount            *float32 `json:"amount"`
	Price             *float32 `json:"price"`
	ServiceContractId string   `json:"service_contract_id"`
	Description       *string  `json:"description"`
	Id                string   `json:"id"`
	Title             *string  `json:"title"`
	VatRate           *float32 `json:"vat_rate"`
}

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"`
}

Jump to

Keyboard shortcuts

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