Documentation
¶
Overview ¶
Package api provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Index ¶
- Constants
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewAddTransactionRequest(server string, params *AddTransactionParams, ...) (*http.Request, error)
- func NewAddTransactionRequestWithBody(server string, params *AddTransactionParams, contentType string, ...) (*http.Request, error)
- func NewApplyFxRateRequest(server string, fxRateSourceId string, isoDate string, ...) (*http.Request, error)
- func NewApplyFxRateRequestWithBody(server string, fxRateSourceId string, isoDate string, ...) (*http.Request, error)
- func NewCreateCompanyCardRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateCompanyCardRequestWithBody(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateCostObjectRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateCostObjectRequestWithBody(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateEntitySupplierRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateEntitySupplierRequestWithBody(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateExpenseCategoryRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateExpenseCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateExternalInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateExternalInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateFxRateSourceRequest(server string, params *CreateFxRateSourceParams, ...) (*http.Request, error)
- func NewCreateFxRateSourceRequestWithBody(server string, params *CreateFxRateSourceParams, contentType string, ...) (*http.Request, error)
- func NewCreateGRRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateGRParams, ...) (*http.Request, error)
- func NewCreateGRRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateGRParams, ...) (*http.Request, error)
- func NewCreateInvoiceCategoryRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateInvoiceCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreateInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, ...) (*http.Request, error)
- func NewCreateInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, ...) (*http.Request, error)
- func NewCreateOrgSupplierRequest(server string, params *CreateOrgSupplierParams, ...) (*http.Request, error)
- func NewCreateOrgSupplierRequestWithBody(server string, params *CreateOrgSupplierParams, contentType string, ...) (*http.Request, error)
- func NewCreatePORequest(server string, legalEntityId LegalEntityIdInPath, params *CreatePOParams, ...) (*http.Request, error)
- func NewCreatePORequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreatePOParams, ...) (*http.Request, error)
- func NewCreatePaymentTermRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreatePaymentTermRequestWithBody(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewCreatePolicyRequest(server string, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, ...) (*http.Request, error)
- func NewCreatePolicyRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, ...) (*http.Request, error)
- func NewCreateTagRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateTagParams, ...) (*http.Request, error)
- func NewCreateTagRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateTagParams, ...) (*http.Request, error)
- func NewCreateTaxRateRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, ...) (*http.Request, error)
- func NewCreateTaxRateRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, ...) (*http.Request, error)
- func NewCreateUserRequest(server string, params *CreateUserParams, body CreateUserJSONRequestBody) (*http.Request, error)
- func NewCreateUserRequestWithBody(server string, params *CreateUserParams, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteCostObjectRequest(server string, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Request, error)
- func NewDeleteTagRequest(server string, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Request, error)
- func NewDeleteUserRequest(server string, userId string, params *DeleteUserParams) (*http.Request, error)
- func NewGetBalanceRequest(server string, legalEntityId LegalEntityIdInPath, cardAccountId string) (*http.Request, error)
- func NewGetCardAccountRequest(server string, legalEntityId LegalEntityIdInPath, cardAccountId string) (*http.Request, error)
- func NewGetCompanyCardRequest(server string, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*http.Request, error)
- func NewGetCostObjectRequest(server string, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Request, error)
- func NewGetEntitySupplierRequest(server string, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*http.Request, error)
- func NewGetExpenseAttachmentRequest(server string, expenseId string, attachmentName string, ...) (*http.Request, error)
- func NewGetExpenseCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Request, error)
- func NewGetExpenseReceiptRequest(server string, expenseId string, params *GetExpenseReceiptParams) (*http.Request, error)
- func NewGetExpenseRequest(server string, expenseId string, params *GetExpenseParams) (*http.Request, error)
- func NewGetExportArefactsRequest(server string, legalEntityId LegalEntityIdInPath, exportTaskId string, ...) (*http.Request, error)
- func NewGetExportStatusRequest(server string, legalEntityId LegalEntityIdInPath, exportTaskId string, ...) (*http.Request, error)
- func NewGetExternalInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, externalInvoiceId string, ...) (*http.Request, error)
- func NewGetGRRequest(server string, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*http.Request, error)
- func NewGetInvoiceBase64Request(server string, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*http.Request, error)
- func NewGetInvoiceCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Request, error)
- func NewGetInvoicePdfRequest(server string, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*http.Request, error)
- func NewGetInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*http.Request, error)
- func NewGetLegalEntityRequest(server string, legalEntityId LegalEntityIdInPath, params *GetLegalEntityParams) (*http.Request, error)
- func NewGetOrgSupplierRequest(server string, supplierId string, params *GetOrgSupplierParams) (*http.Request, error)
- func NewGetPORequest(server string, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*http.Request, error)
- func NewGetPaymentTermRequest(server string, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*http.Request, error)
- func NewGetPolicyRequest(server string, legalEntityId LegalEntityIdInPath, policyId string, ...) (*http.Request, error)
- func NewGetTagRequest(server string, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Request, error)
- func NewGetTaxRateRequest(server string, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*http.Request, error)
- func NewGetTransactionRequest(server string, transactionId string) (*http.Request, error)
- func NewGetTripRequest(server string, tripId string, params *GetTripParams) (*http.Request, error)
- func NewGetUserRequest(server string, userId string, params *GetUserParams) (*http.Request, error)
- func NewListCardAccountsRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewListCompanyCardsRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewListCostObjectsRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewListEntitySupplierRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewListExpenseCategoriesRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewListExpensesRequest(server string, params *ListExpensesParams) (*http.Request, error)
- func NewListExportJobsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListExportJobsParams) (*http.Request, error)
- func NewListExternalInvoicesRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewListFxRateSourcesRequest(server string, params *ListFxRateSourcesParams) (*http.Request, error)
- func NewListGRsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListGRsParams) (*http.Request, error)
- func NewListInvoiceCategoriesRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewListInvoicesRequest(server string, legalEntityId LegalEntityIdInPath, params *ListInvoicesParams) (*http.Request, error)
- func NewListLegalEntitiesRequest(server string, params *ListLegalEntitiesParams) (*http.Request, error)
- func NewListOrgSuppliersRequest(server string, params *ListOrgSuppliersParams) (*http.Request, error)
- func NewListPOsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListPOsParams) (*http.Request, error)
- func NewListPaymentTermsRequest(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewListPoliciesRequest(server string, legalEntityId LegalEntityIdInPath, params *ListPoliciesParams) (*http.Request, error)
- func NewListTagsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListTagsParams) (*http.Request, error)
- func NewListTaxRatesRequest(server string, legalEntityId LegalEntityIdInPath, params *ListTaxRatesParams) (*http.Request, error)
- func NewListTransactionsRequest(server string, params *ListTransactionsParams) (*http.Request, error)
- func NewListTripsRequest(server string, params *ListTripsParams) (*http.Request, error)
- func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
- func NewModifyCompanyCardRequest(server string, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*http.Request, error)
- func NewModifyCompanyCardRequestWithBody(server string, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*http.Request, error)
- func NewModifyCostObjectRequest(server string, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Request, error)
- func NewModifyCostObjectRequestWithBody(server string, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Request, error)
- func NewModifyEntitySupplierRequest(server string, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*http.Request, error)
- func NewModifyEntitySupplierRequestWithBody(server string, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*http.Request, error)
- func NewModifyExpenseCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Request, error)
- func NewModifyExpenseCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Request, error)
- func NewModifyExternalInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, externalInvoiceId string, ...) (*http.Request, error)
- func NewModifyExternalInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, externalInvoiceId string, ...) (*http.Request, error)
- func NewModifyGRRequest(server string, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*http.Request, error)
- func NewModifyGRRequestWithBody(server string, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*http.Request, error)
- func NewModifyInvoiceCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Request, error)
- func NewModifyInvoiceCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Request, error)
- func NewModifyOrgSupplierRequest(server string, supplierId string, params *ModifyOrgSupplierParams, ...) (*http.Request, error)
- func NewModifyOrgSupplierRequestWithBody(server string, supplierId string, params *ModifyOrgSupplierParams, ...) (*http.Request, error)
- func NewModifyPORequest(server string, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*http.Request, error)
- func NewModifyPORequestWithBody(server string, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*http.Request, error)
- func NewModifyPaymentTermRequest(server string, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*http.Request, error)
- func NewModifyPaymentTermRequestWithBody(server string, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*http.Request, error)
- func NewModifyPolicyRequest(server string, legalEntityId LegalEntityIdInPath, policyId string, ...) (*http.Request, error)
- func NewModifyPolicyRequestWithBody(server string, legalEntityId LegalEntityIdInPath, policyId string, ...) (*http.Request, error)
- func NewModifyTagRequest(server string, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Request, error)
- func NewModifyTagRequestWithBody(server string, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Request, error)
- func NewModifyTaxRateRequest(server string, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*http.Request, error)
- func NewModifyTaxRateRequestWithBody(server string, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*http.Request, error)
- func NewModifyUserRequest(server string, userId string, params *ModifyUserParams, ...) (*http.Request, error)
- func NewModifyUserRequestWithBody(server string, userId string, params *ModifyUserParams, contentType string, ...) (*http.Request, error)
- func NewPutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdRequest(server string, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*http.Request, error)
- func NewPutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdRequestWithBody(server string, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*http.Request, error)
- func NewTriggerExpenseExportRequest(server string, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*http.Request, error)
- func NewTriggerExpenseExportRequestWithBody(server string, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*http.Request, error)
- func NewTriggerInvoiceExportRequest(server string, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*http.Request, error)
- func NewTriggerInvoiceExportRequestWithBody(server string, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*http.Request, error)
- func NewUpdateCompanyCardRequest(server string, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*http.Request, error)
- func NewUpdateCompanyCardRequestWithBody(server string, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*http.Request, error)
- func NewUpdateCostObjectRequest(server string, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Request, error)
- func NewUpdateCostObjectRequestWithBody(server string, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Request, error)
- func NewUpdateEntitySupplierRequest(server string, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*http.Request, error)
- func NewUpdateEntitySupplierRequestWithBody(server string, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*http.Request, error)
- func NewUpdateExpenseCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Request, error)
- func NewUpdateExpenseCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Request, error)
- func NewUpdateExternalInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, externalInvoiceId string, ...) (*http.Request, error)
- func NewUpdateExternalInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, externalInvoiceId string, ...) (*http.Request, error)
- func NewUpdateGRRequest(server string, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*http.Request, error)
- func NewUpdateGRRequestWithBody(server string, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*http.Request, error)
- func NewUpdateInvoiceCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Request, error)
- func NewUpdateInvoiceCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Request, error)
- func NewUpdateInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*http.Request, error)
- func NewUpdateInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*http.Request, error)
- func NewUpdateOrgSupplierRequest(server string, supplierId string, params *UpdateOrgSupplierParams, ...) (*http.Request, error)
- func NewUpdateOrgSupplierRequestWithBody(server string, supplierId string, params *UpdateOrgSupplierParams, ...) (*http.Request, error)
- func NewUpdatePORequest(server string, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*http.Request, error)
- func NewUpdatePORequestWithBody(server string, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*http.Request, error)
- func NewUpdatePolicyRequest(server string, legalEntityId LegalEntityIdInPath, policyId string, ...) (*http.Request, error)
- func NewUpdatePolicyRequestWithBody(server string, legalEntityId LegalEntityIdInPath, policyId string, ...) (*http.Request, error)
- func NewUpdateTagRequest(server string, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Request, error)
- func NewUpdateTagRequestWithBody(server string, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Request, error)
- func NewUpdateTaxRateRequest(server string, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*http.Request, error)
- func NewUpdateTaxRateRequestWithBody(server string, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*http.Request, error)
- func NewUpdateUserRequest(server string, userId string, params *UpdateUserParams, ...) (*http.Request, error)
- func NewUpdateUserRequestWithBody(server string, userId string, params *UpdateUserParams, contentType string, ...) (*http.Request, error)
- func NewUploadAiInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, ...) (*http.Request, error)
- func NewUploadEinvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *UploadEinvoiceParams, ...) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router EchoRouter, si ServerInterface)
- func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
- type AddTransactionJSONRequestBody
- type AddTransactionParams
- type AddTransactionParamsXYkAuthMethod
- type AddTransactionResponse
- type AdditionalCategoryItem
- type AdvancedTaxRate
- type ApplyFxRateJSONRequestBody
- type ApplyFxRateParams
- type ApplyFxRateResponse
- type CardAccount
- type CardAccountBalance
- type CardAccountProvider
- type CardAccountStatus
- type Category
- type Client
- func (c *Client) AddTransaction(ctx context.Context, params *AddTransactionParams, ...) (*http.Response, error)
- func (c *Client) AddTransactionWithBody(ctx context.Context, params *AddTransactionParams, contentType string, ...) (*http.Response, error)
- func (c *Client) ApplyFxRate(ctx context.Context, fxRateSourceId string, isoDate string, ...) (*http.Response, error)
- func (c *Client) ApplyFxRateWithBody(ctx context.Context, fxRateSourceId string, isoDate string, ...) (*http.Response, error)
- func (c *Client) CreateCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateCompanyCardWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateCostObjectWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateEntitySupplierWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateExpenseCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateExternalInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateFxRateSource(ctx context.Context, params *CreateFxRateSourceParams, ...) (*http.Response, error)
- func (c *Client) CreateFxRateSourceWithBody(ctx context.Context, params *CreateFxRateSourceParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateGR(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, ...) (*http.Response, error)
- func (c *Client) CreateGRWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, ...) (*http.Response, error)
- func (c *Client) CreateInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateInvoiceCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateOrgSupplier(ctx context.Context, params *CreateOrgSupplierParams, ...) (*http.Response, error)
- func (c *Client) CreateOrgSupplierWithBody(ctx context.Context, params *CreateOrgSupplierParams, contentType string, ...) (*http.Response, error)
- func (c *Client) CreatePO(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, ...) (*http.Response, error)
- func (c *Client) CreatePOWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, ...) (*http.Response, error)
- func (c *Client) CreatePaymentTerm(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreatePaymentTermWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreatePolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreatePolicyWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateTag(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateTagWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateTaxRateWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) CreateUser(ctx context.Context, params *CreateUserParams, body CreateUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateUserWithBody(ctx context.Context, params *CreateUserParams, contentType string, ...) (*http.Response, error)
- func (c *Client) DeleteCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Response, error)
- func (c *Client) DeleteTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Response, error)
- func (c *Client) DeleteUser(ctx context.Context, userId string, params *DeleteUserParams, ...) (*http.Response, error)
- func (c *Client) GetBalance(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, ...) (*http.Response, error)
- func (c *Client) GetCardAccount(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, ...) (*http.Response, error)
- func (c *Client) GetCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*http.Response, error)
- func (c *Client) GetCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Response, error)
- func (c *Client) GetEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*http.Response, error)
- func (c *Client) GetExpense(ctx context.Context, expenseId string, params *GetExpenseParams, ...) (*http.Response, error)
- func (c *Client) GetExpenseAttachment(ctx context.Context, expenseId string, attachmentName string, ...) (*http.Response, error)
- func (c *Client) GetExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Response, error)
- func (c *Client) GetExpenseReceipt(ctx context.Context, expenseId string, params *GetExpenseReceiptParams, ...) (*http.Response, error)
- func (c *Client) GetExportArefacts(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, ...) (*http.Response, error)
- func (c *Client) GetExportStatus(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, ...) (*http.Response, error)
- func (c *Client) GetExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) GetGR(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*http.Response, error)
- func (c *Client) GetInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*http.Response, error)
- func (c *Client) GetInvoiceBase64(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*http.Response, error)
- func (c *Client) GetInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Response, error)
- func (c *Client) GetInvoicePdf(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*http.Response, error)
- func (c *Client) GetLegalEntity(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) GetOrgSupplier(ctx context.Context, supplierId string, params *GetOrgSupplierParams, ...) (*http.Response, error)
- func (c *Client) GetPO(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*http.Response, error)
- func (c *Client) GetPaymentTerm(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*http.Response, error)
- func (c *Client) GetPolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, ...) (*http.Response, error)
- func (c *Client) GetTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Response, error)
- func (c *Client) GetTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*http.Response, error)
- func (c *Client) GetTransaction(ctx context.Context, transactionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetTrip(ctx context.Context, tripId string, params *GetTripParams, ...) (*http.Response, error)
- func (c *Client) GetUser(ctx context.Context, userId string, params *GetUserParams, ...) (*http.Response, error)
- func (c *Client) ListCardAccounts(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListCompanyCards(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListCostObjects(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListExpenseCategories(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListExpenses(ctx context.Context, params *ListExpensesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListExportJobs(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListExternalInvoices(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListFxRateSources(ctx context.Context, params *ListFxRateSourcesParams, ...) (*http.Response, error)
- func (c *Client) ListGRs(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListGRsParams, ...) (*http.Response, error)
- func (c *Client) ListInvoiceCategories(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListInvoices(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListLegalEntities(ctx context.Context, params *ListLegalEntitiesParams, ...) (*http.Response, error)
- func (c *Client) ListOrgSuppliers(ctx context.Context, params *ListOrgSuppliersParams, ...) (*http.Response, error)
- func (c *Client) ListPOs(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPOsParams, ...) (*http.Response, error)
- func (c *Client) ListPaymentTerms(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListPolicies(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListTags(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListTagsParams, ...) (*http.Response, error)
- func (c *Client) ListTaxRates(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ListTransactions(ctx context.Context, params *ListTransactionsParams, ...) (*http.Response, error)
- func (c *Client) ListTrips(ctx context.Context, params *ListTripsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ModifyCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*http.Response, error)
- func (c *Client) ModifyCompanyCardWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*http.Response, error)
- func (c *Client) ModifyCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Response, error)
- func (c *Client) ModifyCostObjectWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Response, error)
- func (c *Client) ModifyEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*http.Response, error)
- func (c *Client) ModifyEntitySupplierWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*http.Response, error)
- func (c *Client) ModifyExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Response, error)
- func (c *Client) ModifyExpenseCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Response, error)
- func (c *Client) ModifyExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ModifyExternalInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) ModifyGR(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*http.Response, error)
- func (c *Client) ModifyGRWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*http.Response, error)
- func (c *Client) ModifyInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Response, error)
- func (c *Client) ModifyInvoiceCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Response, error)
- func (c *Client) ModifyOrgSupplier(ctx context.Context, supplierId string, params *ModifyOrgSupplierParams, ...) (*http.Response, error)
- func (c *Client) ModifyOrgSupplierWithBody(ctx context.Context, supplierId string, params *ModifyOrgSupplierParams, ...) (*http.Response, error)
- func (c *Client) ModifyPO(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*http.Response, error)
- func (c *Client) ModifyPOWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*http.Response, error)
- func (c *Client) ModifyPaymentTerm(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*http.Response, error)
- func (c *Client) ModifyPaymentTermWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*http.Response, error)
- func (c *Client) ModifyPolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, ...) (*http.Response, error)
- func (c *Client) ModifyPolicyWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, ...) (*http.Response, error)
- func (c *Client) ModifyTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Response, error)
- func (c *Client) ModifyTagWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Response, error)
- func (c *Client) ModifyTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*http.Response, error)
- func (c *Client) ModifyTaxRateWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*http.Response, error)
- func (c *Client) ModifyUser(ctx context.Context, userId string, params *ModifyUserParams, ...) (*http.Response, error)
- func (c *Client) ModifyUserWithBody(ctx context.Context, userId string, params *ModifyUserParams, ...) (*http.Response, error)
- func (c *Client) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*http.Response, error)
- func (c *Client) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*http.Response, error)
- func (c *Client) TriggerExpenseExport(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*http.Response, error)
- func (c *Client) TriggerExpenseExportWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*http.Response, error)
- func (c *Client) TriggerInvoiceExport(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*http.Response, error)
- func (c *Client) TriggerInvoiceExportWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*http.Response, error)
- func (c *Client) UpdateCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*http.Response, error)
- func (c *Client) UpdateCompanyCardWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*http.Response, error)
- func (c *Client) UpdateCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Response, error)
- func (c *Client) UpdateCostObjectWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*http.Response, error)
- func (c *Client) UpdateEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*http.Response, error)
- func (c *Client) UpdateEntitySupplierWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*http.Response, error)
- func (c *Client) UpdateExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Response, error)
- func (c *Client) UpdateExpenseCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Response, error)
- func (c *Client) UpdateExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) UpdateExternalInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) UpdateGR(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*http.Response, error)
- func (c *Client) UpdateGRWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*http.Response, error)
- func (c *Client) UpdateInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*http.Response, error)
- func (c *Client) UpdateInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Response, error)
- func (c *Client) UpdateInvoiceCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*http.Response, error)
- func (c *Client) UpdateInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*http.Response, error)
- func (c *Client) UpdateOrgSupplier(ctx context.Context, supplierId string, params *UpdateOrgSupplierParams, ...) (*http.Response, error)
- func (c *Client) UpdateOrgSupplierWithBody(ctx context.Context, supplierId string, params *UpdateOrgSupplierParams, ...) (*http.Response, error)
- func (c *Client) UpdatePO(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*http.Response, error)
- func (c *Client) UpdatePOWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*http.Response, error)
- func (c *Client) UpdatePolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, ...) (*http.Response, error)
- func (c *Client) UpdatePolicyWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, ...) (*http.Response, error)
- func (c *Client) UpdateTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Response, error)
- func (c *Client) UpdateTagWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*http.Response, error)
- func (c *Client) UpdateTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*http.Response, error)
- func (c *Client) UpdateTaxRateWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*http.Response, error)
- func (c *Client) UpdateUser(ctx context.Context, userId string, params *UpdateUserParams, ...) (*http.Response, error)
- func (c *Client) UpdateUserWithBody(ctx context.Context, userId string, params *UpdateUserParams, ...) (*http.Response, error)
- func (c *Client) UploadAiInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- func (c *Client) UploadEinvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddTransactionWithBodyWithResponse(ctx context.Context, params *AddTransactionParams, contentType string, ...) (*AddTransactionResponse, error)
- func (c *ClientWithResponses) AddTransactionWithResponse(ctx context.Context, params *AddTransactionParams, ...) (*AddTransactionResponse, error)
- func (c *ClientWithResponses) ApplyFxRateWithBodyWithResponse(ctx context.Context, fxRateSourceId string, isoDate string, ...) (*ApplyFxRateResponse, error)
- func (c *ClientWithResponses) ApplyFxRateWithResponse(ctx context.Context, fxRateSourceId string, isoDate string, ...) (*ApplyFxRateResponse, error)
- func (c *ClientWithResponses) CreateCompanyCardWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateCompanyCardResponse, error)
- func (c *ClientWithResponses) CreateCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateCompanyCardResponse, error)
- func (c *ClientWithResponses) CreateCostObjectWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateCostObjectResponse, error)
- func (c *ClientWithResponses) CreateCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateCostObjectResponse, error)
- func (c *ClientWithResponses) CreateEntitySupplierWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateEntitySupplierResponse, error)
- func (c *ClientWithResponses) CreateEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateEntitySupplierResponse, error)
- func (c *ClientWithResponses) CreateExpenseCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateExpenseCategoryResponse, error)
- func (c *ClientWithResponses) CreateExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateExpenseCategoryResponse, error)
- func (c *ClientWithResponses) CreateExternalInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateExternalInvoiceResponse, error)
- func (c *ClientWithResponses) CreateExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateExternalInvoiceResponse, error)
- func (c *ClientWithResponses) CreateFxRateSourceWithBodyWithResponse(ctx context.Context, params *CreateFxRateSourceParams, contentType string, ...) (*CreateFxRateSourceResponse, error)
- func (c *ClientWithResponses) CreateFxRateSourceWithResponse(ctx context.Context, params *CreateFxRateSourceParams, ...) (*CreateFxRateSourceResponse, error)
- func (c *ClientWithResponses) CreateGRWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, ...) (*CreateGRResponse, error)
- func (c *ClientWithResponses) CreateGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, ...) (*CreateGRResponse, error)
- func (c *ClientWithResponses) CreateInvoiceCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateInvoiceCategoryResponse, error)
- func (c *ClientWithResponses) CreateInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateInvoiceCategoryResponse, error)
- func (c *ClientWithResponses) CreateInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateInvoiceResponse, error)
- func (c *ClientWithResponses) CreateInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateInvoiceResponse, error)
- func (c *ClientWithResponses) CreateOrgSupplierWithBodyWithResponse(ctx context.Context, params *CreateOrgSupplierParams, contentType string, ...) (*CreateOrgSupplierResponse, error)
- func (c *ClientWithResponses) CreateOrgSupplierWithResponse(ctx context.Context, params *CreateOrgSupplierParams, ...) (*CreateOrgSupplierResponse, error)
- func (c *ClientWithResponses) CreatePOWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, ...) (*CreatePOResponse, error)
- func (c *ClientWithResponses) CreatePOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, ...) (*CreatePOResponse, error)
- func (c *ClientWithResponses) CreatePaymentTermWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreatePaymentTermResponse, error)
- func (c *ClientWithResponses) CreatePaymentTermWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreatePaymentTermResponse, error)
- func (c *ClientWithResponses) CreatePolicyWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreatePolicyResponse, error)
- func (c *ClientWithResponses) CreatePolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreatePolicyResponse, error)
- func (c *ClientWithResponses) CreateTagWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateTagResponse, error)
- func (c *ClientWithResponses) CreateTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateTagResponse, error)
- func (c *ClientWithResponses) CreateTaxRateWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateTaxRateResponse, error)
- func (c *ClientWithResponses) CreateTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*CreateTaxRateResponse, error)
- func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, params *CreateUserParams, contentType string, ...) (*CreateUserResponse, error)
- func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, params *CreateUserParams, body CreateUserJSONRequestBody, ...) (*CreateUserResponse, error)
- func (c *ClientWithResponses) DeleteCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*DeleteCostObjectResponse, error)
- func (c *ClientWithResponses) DeleteTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*DeleteTagResponse, error)
- func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userId string, params *DeleteUserParams, ...) (*DeleteUserResponse, error)
- func (c *ClientWithResponses) GetBalanceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, ...) (*GetBalanceResponse, error)
- func (c *ClientWithResponses) GetCardAccountWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, ...) (*GetCardAccountResponse, error)
- func (c *ClientWithResponses) GetCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*GetCompanyCardResponse, error)
- func (c *ClientWithResponses) GetCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*GetCostObjectResponse, error)
- func (c *ClientWithResponses) GetEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*GetEntitySupplierResponse, error)
- func (c *ClientWithResponses) GetExpenseAttachmentWithResponse(ctx context.Context, expenseId string, attachmentName string, ...) (*GetExpenseAttachmentResponse, error)
- func (c *ClientWithResponses) GetExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*GetExpenseCategoryResponse, error)
- func (c *ClientWithResponses) GetExpenseReceiptWithResponse(ctx context.Context, expenseId string, params *GetExpenseReceiptParams, ...) (*GetExpenseReceiptResponse, error)
- func (c *ClientWithResponses) GetExpenseWithResponse(ctx context.Context, expenseId string, params *GetExpenseParams, ...) (*GetExpenseResponse, error)
- func (c *ClientWithResponses) GetExportArefactsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, ...) (*GetExportArefactsResponse, error)
- func (c *ClientWithResponses) GetExportStatusWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, ...) (*GetExportStatusResponse, error)
- func (c *ClientWithResponses) GetExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*GetExternalInvoiceResponse, error)
- func (c *ClientWithResponses) GetGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*GetGRResponse, error)
- func (c *ClientWithResponses) GetInvoiceBase64WithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*GetInvoiceBase64Response, error)
- func (c *ClientWithResponses) GetInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*GetInvoiceCategoryResponse, error)
- func (c *ClientWithResponses) GetInvoicePdfWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*GetInvoicePdfResponse, error)
- func (c *ClientWithResponses) GetInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*GetInvoiceResponse, error)
- func (c *ClientWithResponses) GetLegalEntityWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*GetLegalEntityResponse, error)
- func (c *ClientWithResponses) GetOrgSupplierWithResponse(ctx context.Context, supplierId string, params *GetOrgSupplierParams, ...) (*GetOrgSupplierResponse, error)
- func (c *ClientWithResponses) GetPOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*GetPOResponse, error)
- func (c *ClientWithResponses) GetPaymentTermWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*GetPaymentTermResponse, error)
- func (c *ClientWithResponses) GetPolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, ...) (*GetPolicyResponse, error)
- func (c *ClientWithResponses) GetTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*GetTagResponse, error)
- func (c *ClientWithResponses) GetTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*GetTaxRateResponse, error)
- func (c *ClientWithResponses) GetTransactionWithResponse(ctx context.Context, transactionId string, reqEditors ...RequestEditorFn) (*GetTransactionResponse, error)
- func (c *ClientWithResponses) GetTripWithResponse(ctx context.Context, tripId string, params *GetTripParams, ...) (*GetTripResponse, error)
- func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, userId string, params *GetUserParams, ...) (*GetUserResponse, error)
- func (c *ClientWithResponses) ListCardAccountsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListCardAccountsResponse, error)
- func (c *ClientWithResponses) ListCompanyCardsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListCompanyCardsResponse, error)
- func (c *ClientWithResponses) ListCostObjectsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListCostObjectsResponse, error)
- func (c *ClientWithResponses) ListEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListEntitySupplierResponse, error)
- func (c *ClientWithResponses) ListExpenseCategoriesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListExpenseCategoriesResponse, error)
- func (c *ClientWithResponses) ListExpensesWithResponse(ctx context.Context, params *ListExpensesParams, reqEditors ...RequestEditorFn) (*ListExpensesResponse, error)
- func (c *ClientWithResponses) ListExportJobsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListExportJobsResponse, error)
- func (c *ClientWithResponses) ListExternalInvoicesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListExternalInvoicesResponse, error)
- func (c *ClientWithResponses) ListFxRateSourcesWithResponse(ctx context.Context, params *ListFxRateSourcesParams, ...) (*ListFxRateSourcesResponse, error)
- func (c *ClientWithResponses) ListGRsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListGRsParams, ...) (*ListGRsResponse, error)
- func (c *ClientWithResponses) ListInvoiceCategoriesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListInvoiceCategoriesResponse, error)
- func (c *ClientWithResponses) ListInvoicesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListInvoicesResponse, error)
- func (c *ClientWithResponses) ListLegalEntitiesWithResponse(ctx context.Context, params *ListLegalEntitiesParams, ...) (*ListLegalEntitiesResponse, error)
- func (c *ClientWithResponses) ListOrgSuppliersWithResponse(ctx context.Context, params *ListOrgSuppliersParams, ...) (*ListOrgSuppliersResponse, error)
- func (c *ClientWithResponses) ListPOsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPOsParams, ...) (*ListPOsResponse, error)
- func (c *ClientWithResponses) ListPaymentTermsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListPaymentTermsResponse, error)
- func (c *ClientWithResponses) ListPoliciesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListPoliciesResponse, error)
- func (c *ClientWithResponses) ListTagsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListTagsParams, ...) (*ListTagsResponse, error)
- func (c *ClientWithResponses) ListTaxRatesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ListTaxRatesResponse, error)
- func (c *ClientWithResponses) ListTransactionsWithResponse(ctx context.Context, params *ListTransactionsParams, ...) (*ListTransactionsResponse, error)
- func (c *ClientWithResponses) ListTripsWithResponse(ctx context.Context, params *ListTripsParams, reqEditors ...RequestEditorFn) (*ListTripsResponse, error)
- func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
- func (c *ClientWithResponses) ModifyCompanyCardWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*ModifyCompanyCardResponse, error)
- func (c *ClientWithResponses) ModifyCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*ModifyCompanyCardResponse, error)
- func (c *ClientWithResponses) ModifyCostObjectWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*ModifyCostObjectResponse, error)
- func (c *ClientWithResponses) ModifyCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*ModifyCostObjectResponse, error)
- func (c *ClientWithResponses) ModifyEntitySupplierWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*ModifyEntitySupplierResponse, error)
- func (c *ClientWithResponses) ModifyEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*ModifyEntitySupplierResponse, error)
- func (c *ClientWithResponses) ModifyExpenseCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*ModifyExpenseCategoryResponse, error)
- func (c *ClientWithResponses) ModifyExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*ModifyExpenseCategoryResponse, error)
- func (c *ClientWithResponses) ModifyExternalInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ModifyExternalInvoiceResponse, error)
- func (c *ClientWithResponses) ModifyExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*ModifyExternalInvoiceResponse, error)
- func (c *ClientWithResponses) ModifyGRWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*ModifyGRResponse, error)
- func (c *ClientWithResponses) ModifyGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*ModifyGRResponse, error)
- func (c *ClientWithResponses) ModifyInvoiceCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*ModifyInvoiceCategoryResponse, error)
- func (c *ClientWithResponses) ModifyInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*ModifyInvoiceCategoryResponse, error)
- func (c *ClientWithResponses) ModifyOrgSupplierWithBodyWithResponse(ctx context.Context, supplierId string, params *ModifyOrgSupplierParams, ...) (*ModifyOrgSupplierResponse, error)
- func (c *ClientWithResponses) ModifyOrgSupplierWithResponse(ctx context.Context, supplierId string, params *ModifyOrgSupplierParams, ...) (*ModifyOrgSupplierResponse, error)
- func (c *ClientWithResponses) ModifyPOWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*ModifyPOResponse, error)
- func (c *ClientWithResponses) ModifyPOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*ModifyPOResponse, error)
- func (c *ClientWithResponses) ModifyPaymentTermWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*ModifyPaymentTermResponse, error)
- func (c *ClientWithResponses) ModifyPaymentTermWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*ModifyPaymentTermResponse, error)
- func (c *ClientWithResponses) ModifyPolicyWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, ...) (*ModifyPolicyResponse, error)
- func (c *ClientWithResponses) ModifyPolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, ...) (*ModifyPolicyResponse, error)
- func (c *ClientWithResponses) ModifyTagWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*ModifyTagResponse, error)
- func (c *ClientWithResponses) ModifyTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*ModifyTagResponse, error)
- func (c *ClientWithResponses) ModifyTaxRateWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*ModifyTaxRateResponse, error)
- func (c *ClientWithResponses) ModifyTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*ModifyTaxRateResponse, error)
- func (c *ClientWithResponses) ModifyUserWithBodyWithResponse(ctx context.Context, userId string, params *ModifyUserParams, ...) (*ModifyUserResponse, error)
- func (c *ClientWithResponses) ModifyUserWithResponse(ctx context.Context, userId string, params *ModifyUserParams, ...) (*ModifyUserResponse, error)
- func (c *ClientWithResponses) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse, error)
- func (c *ClientWithResponses) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, ...) (*PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse, error)
- func (c *ClientWithResponses) TriggerExpenseExportWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*TriggerExpenseExportResponse, error)
- func (c *ClientWithResponses) TriggerExpenseExportWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*TriggerExpenseExportResponse, error)
- func (c *ClientWithResponses) TriggerInvoiceExportWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*TriggerInvoiceExportResponse, error)
- func (c *ClientWithResponses) TriggerInvoiceExportWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, ...) (*TriggerInvoiceExportResponse, error)
- func (c *ClientWithResponses) UpdateCompanyCardWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*UpdateCompanyCardResponse, error)
- func (c *ClientWithResponses) UpdateCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, ...) (*UpdateCompanyCardResponse, error)
- func (c *ClientWithResponses) UpdateCostObjectWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*UpdateCostObjectResponse, error)
- func (c *ClientWithResponses) UpdateCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, ...) (*UpdateCostObjectResponse, error)
- func (c *ClientWithResponses) UpdateEntitySupplierWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*UpdateEntitySupplierResponse, error)
- func (c *ClientWithResponses) UpdateEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, ...) (*UpdateEntitySupplierResponse, error)
- func (c *ClientWithResponses) UpdateExpenseCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*UpdateExpenseCategoryResponse, error)
- func (c *ClientWithResponses) UpdateExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*UpdateExpenseCategoryResponse, error)
- func (c *ClientWithResponses) UpdateExternalInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*UpdateExternalInvoiceResponse, error)
- func (c *ClientWithResponses) UpdateExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*UpdateExternalInvoiceResponse, error)
- func (c *ClientWithResponses) UpdateGRWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*UpdateGRResponse, error)
- func (c *ClientWithResponses) UpdateGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, ...) (*UpdateGRResponse, error)
- func (c *ClientWithResponses) UpdateInvoiceCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*UpdateInvoiceCategoryResponse, error)
- func (c *ClientWithResponses) UpdateInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, ...) (*UpdateInvoiceCategoryResponse, error)
- func (c *ClientWithResponses) UpdateInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*UpdateInvoiceResponse, error)
- func (c *ClientWithResponses) UpdateInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, ...) (*UpdateInvoiceResponse, error)
- func (c *ClientWithResponses) UpdateOrgSupplierWithBodyWithResponse(ctx context.Context, supplierId string, params *UpdateOrgSupplierParams, ...) (*UpdateOrgSupplierResponse, error)
- func (c *ClientWithResponses) UpdateOrgSupplierWithResponse(ctx context.Context, supplierId string, params *UpdateOrgSupplierParams, ...) (*UpdateOrgSupplierResponse, error)
- func (c *ClientWithResponses) UpdatePOWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*UpdatePOResponse, error)
- func (c *ClientWithResponses) UpdatePOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, ...) (*UpdatePOResponse, error)
- func (c *ClientWithResponses) UpdatePolicyWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, ...) (*UpdatePolicyResponse, error)
- func (c *ClientWithResponses) UpdatePolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, ...) (*UpdatePolicyResponse, error)
- func (c *ClientWithResponses) UpdateTagWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*UpdateTagResponse, error)
- func (c *ClientWithResponses) UpdateTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, ...) (*UpdateTagResponse, error)
- func (c *ClientWithResponses) UpdateTaxRateWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*UpdateTaxRateResponse, error)
- func (c *ClientWithResponses) UpdateTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, ...) (*UpdateTaxRateResponse, error)
- func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, userId string, params *UpdateUserParams, ...) (*UpdateUserResponse, error)
- func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, userId string, params *UpdateUserParams, ...) (*UpdateUserResponse, error)
- func (c *ClientWithResponses) UploadAiInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*UploadAiInvoiceResponse, error)
- func (c *ClientWithResponses) UploadEinvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, ...) (*UploadEinvoiceResponse, error)
- type ClientWithResponsesInterface
- type CompanyCard
- type Conflict
- type CostCenter
- type CostCenterAccessType
- type CostCenterItem
- type CostCenterScopes
- type CreateCompanyCardJSONRequestBody
- type CreateCompanyCardParams
- type CreateCompanyCardResponse
- type CreateCostObjectJSONRequestBody
- type CreateCostObjectParams
- type CreateCostObjectResponse
- type CreateEntitySupplierJSONRequestBody
- type CreateEntitySupplierParams
- type CreateEntitySupplierResponse
- type CreateExpenseCategoryJSONRequestBody
- type CreateExpenseCategoryParams
- type CreateExpenseCategoryResponse
- type CreateExternalInvoiceJSONRequestBody
- type CreateExternalInvoiceParams
- type CreateExternalInvoiceResponse
- type CreateFxRateSourceJSONRequestBody
- type CreateFxRateSourceParams
- type CreateFxRateSourceResponse
- type CreateGRJSONRequestBody
- type CreateGRParams
- type CreateGRResponse
- type CreateInvoiceCategoryJSONRequestBody
- type CreateInvoiceCategoryParams
- type CreateInvoiceCategoryResponse
- type CreateInvoiceJSONRequestBody
- type CreateInvoiceParams
- type CreateInvoiceResponse
- type CreateOrgSupplierJSONRequestBody
- type CreateOrgSupplierParams
- type CreateOrgSupplierResponse
- type CreatePOJSONRequestBody
- type CreatePOParams
- type CreatePOResponse
- type CreatePaymentTermJSONRequestBody
- type CreatePaymentTermParams
- type CreatePaymentTermResponse
- type CreatePolicyJSONRequestBody
- type CreatePolicyParams
- type CreatePolicyResponse
- type CreateTagJSONRequestBody
- type CreateTagParams
- type CreateTagResponse
- type CreateTaxRateJSONBody
- type CreateTaxRateJSONRequestBody
- type CreateTaxRateParams
- type CreateTaxRateResponse
- type CreateUserJSONBody
- type CreateUserJSONBodyLanguage
- type CreateUserJSONRequestBody
- type CreateUserParams
- type CreateUserResponse
- type DateRange
- type DateString
- type DeleteCostObjectParams
- type DeleteCostObjectResponse
- type DeleteTagParams
- type DeleteTagResponse
- type DeleteUserParams
- type DeleteUserResponse
- type EchoRouter
- type Error
- type EventLogEntry
- type EventLogEntryActionType
- type Expense
- type ExpenseExpenseType
- type ExpenseExportArtefact
- type ExpenseExportTaskInformation
- type ExpenseExportTaskInformationResourceFacilityId
- type ExpenseExportTaskInformationResourceMethod
- type ExpensePaymentMethod
- type ExpenseStatus
- type ExportTaskQueryFilter
- type ExternalInvoice
- type ExternalInvoiceItem
- type ExternalInvoiceItemStatus
- type Forbidden
- type FxRateSource
- type FxRates
- type GatewayError
- type GetBalanceResponse
- type GetCardAccountResponse
- type GetCompanyCardParams
- type GetCompanyCardResponse
- type GetCostObjectParams
- type GetCostObjectResponse
- type GetEntitySupplierParams
- type GetEntitySupplierResponse
- type GetExpenseAttachmentParams
- type GetExpenseAttachmentResponse
- type GetExpenseCategoryParams
- type GetExpenseCategoryResponse
- type GetExpenseParams
- type GetExpenseReceiptParams
- type GetExpenseReceiptResponse
- type GetExpenseResponse
- type GetExportArefactsParams
- type GetExportArefactsResponse
- type GetExportArefacts_200_Resources_Item
- type GetExportStatusParams
- type GetExportStatusResponse
- type GetExternalInvoiceParams
- type GetExternalInvoiceResponse
- type GetGRParams
- type GetGRResponse
- type GetInvoiceBase64Params
- type GetInvoiceBase64Response
- type GetInvoiceCategoryParams
- type GetInvoiceCategoryResponse
- type GetInvoiceParams
- type GetInvoicePdfParams
- type GetInvoicePdfResponse
- type GetInvoiceResponse
- type GetLegalEntityParams
- type GetLegalEntityResponse
- type GetOrgSupplierParams
- type GetOrgSupplierResponse
- type GetPOParams
- type GetPOResponse
- type GetPaymentTermParams
- type GetPaymentTermResponse
- type GetPolicyParams
- type GetPolicyResponse
- type GetTagParams
- type GetTagResponse
- type GetTaxRateParams
- type GetTaxRateResponse
- type GetTransactionResponse
- type GetTripParams
- type GetTripResponse
- type GetUserParams
- type GetUserResponse
- type GoodsReceipt
- type GoodsReceiptItem
- type GoodsReceiptItemStatus
- type HttpError
- type HttpRequestDoer
- type HttpValidationError
- type IncomeTaxableAmount
- type InsufficientData
- type InternalError
- type InvalidFilter
- type Invoice
- type InvoiceBankAccount
- type InvoiceBase64
- type InvoiceCategory
- type InvoiceExportArtefact
- type InvoiceExportTaskInformation
- type InvoiceExportTaskInformationResourceMethod
- type InvoiceLineItem
- type InvoiceLineItemMatchStatus
- type InvoiceLineItemTaxComponent
- type InvoicePaymentTerms
- type InvoiceQrInformation
- type InvoiceStatus
- type Invoice_ServiceDate
- func (t Invoice_ServiceDate) AsDateRange() (DateRange, error)
- func (t Invoice_ServiceDate) AsDateString() (DateString, error)
- func (t *Invoice_ServiceDate) FromDateRange(v DateRange) error
- func (t *Invoice_ServiceDate) FromDateString(v DateString) error
- func (t Invoice_ServiceDate) MarshalJSON() ([]byte, error)
- func (t *Invoice_ServiceDate) MergeDateRange(v DateRange) error
- func (t *Invoice_ServiceDate) MergeDateString(v DateString) error
- func (t *Invoice_ServiceDate) UnmarshalJSON(b []byte) error
- type LegalEntity
- type LegalEntityIdInPath
- type LegalEntityLanguage
- type LegalEntitySupplier
- type LegalEntitySupplierCodingType
- type ListCardAccountsParams
- type ListCardAccountsResponse
- type ListCompanyCardsParams
- type ListCompanyCardsResponse
- type ListCostObjectsParams
- type ListCostObjectsResponse
- type ListEntitySupplierParams
- type ListEntitySupplierResponse
- type ListExpenseCategoriesParams
- type ListExpenseCategoriesResponse
- type ListExpensesParams
- type ListExpensesResponse
- type ListExportJobsParams
- type ListExportJobsResponse
- type ListExternalInvoicesParams
- type ListExternalInvoicesResponse
- type ListFxRateSourcesParams
- type ListFxRateSourcesResponse
- type ListGRsParams
- type ListGRsResponse
- type ListInvoiceCategoriesParams
- type ListInvoiceCategoriesResponse
- type ListInvoicesParams
- type ListInvoicesResponse
- type ListLegalEntitiesParams
- type ListLegalEntitiesResponse
- type ListOrgSuppliersParams
- type ListOrgSuppliersResponse
- type ListPOsParams
- type ListPOsResponse
- type ListPaymentTermsParams
- type ListPaymentTermsResponse
- type ListPoliciesParams
- type ListPoliciesResponse
- type ListTagsParams
- type ListTagsResponse
- type ListTaxRatesParams
- type ListTaxRatesResponse
- type ListTaxRates_200_TaxRates_Item
- type ListTransactionsParams
- type ListTransactionsResponse
- type ListTripsParams
- type ListTripsResponse
- type ListUsersParams
- type ListUsersResponse
- type ModifyCompanyCardJSONBody
- type ModifyCompanyCardJSONRequestBody
- type ModifyCompanyCardParams
- type ModifyCompanyCardResponse
- type ModifyCostObjectJSONBody
- type ModifyCostObjectJSONRequestBody
- type ModifyCostObjectParams
- type ModifyCostObjectResponse
- type ModifyEntitySupplierJSONBody
- type ModifyEntitySupplierJSONBodyCodingType
- type ModifyEntitySupplierJSONRequestBody
- type ModifyEntitySupplierParams
- type ModifyEntitySupplierResponse
- type ModifyExpenseCategoryJSONBody
- type ModifyExpenseCategoryJSONRequestBody
- type ModifyExpenseCategoryParams
- type ModifyExpenseCategoryResponse
- type ModifyExternalInvoiceJSONBody
- type ModifyExternalInvoiceJSONRequestBody
- type ModifyExternalInvoiceParams
- type ModifyExternalInvoiceResponse
- type ModifyGRJSONBody
- type ModifyGRJSONRequestBody
- type ModifyGRParams
- type ModifyGRResponse
- type ModifyInvoiceCategoryJSONBody
- type ModifyInvoiceCategoryJSONRequestBody
- type ModifyInvoiceCategoryParams
- type ModifyInvoiceCategoryResponse
- type ModifyOrgSupplierJSONBody
- type ModifyOrgSupplierJSONRequestBody
- type ModifyOrgSupplierParams
- type ModifyOrgSupplierResponse
- type ModifyPOJSONBody
- type ModifyPOJSONRequestBody
- type ModifyPOParams
- type ModifyPOResponse
- type ModifyPaymentTermJSONBody
- type ModifyPaymentTermJSONRequestBody
- type ModifyPaymentTermParams
- type ModifyPaymentTermResponse
- type ModifyPolicyJSONBody
- type ModifyPolicyJSONRequestBody
- type ModifyPolicyParams
- type ModifyPolicyResponse
- type ModifyTagJSONBody
- type ModifyTagJSONRequestBody
- type ModifyTagParams
- type ModifyTagResponse
- type ModifyTaxRateJSONBody
- type ModifyTaxRateJSONRequestBody
- type ModifyTaxRateParams
- type ModifyTaxRateResponse
- type ModifyUserJSONBody
- type ModifyUserJSONRequestBody
- type ModifyUserParams
- type ModifyUserResponse
- type NotFound
- type OneTimeSupplierInfo
- type OrganizationSupplier
- type PaginationCount
- type PaginationCursor
- type PaginationItemsPerPage
- type PaginationNextCursor
- type Policy
- type PurchaseOrder
- type PurchaseOrderItem
- type PurchaseOrderItemStatus
- type PurchaseOrderStatus
- type PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdJSONRequestBody
- type PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams
- type PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse
- type QueryFilter
- type RequestEditorFn
- type ServerInterface
- type ServerInterfaceWrapper
- func (w *ServerInterfaceWrapper) AddTransaction(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ApplyFxRate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateCompanyCard(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateCostObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateEntitySupplier(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateExpenseCategory(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateExternalInvoice(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateFxRateSource(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateGR(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateInvoice(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateInvoiceCategory(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateOrgSupplier(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreatePO(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreatePaymentTerm(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreatePolicy(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateTag(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateTaxRate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) CreateUser(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteCostObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteTag(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) DeleteUser(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetBalance(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetCardAccount(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetCompanyCard(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetCostObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetEntitySupplier(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetExpense(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetExpenseAttachment(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetExpenseCategory(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetExpenseReceipt(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetExportArefacts(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetExportStatus(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetExternalInvoice(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetGR(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetInvoice(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetInvoiceBase64(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetInvoiceCategory(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetInvoicePdf(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetLegalEntity(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetOrgSupplier(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetPO(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetPaymentTerm(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetPolicy(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTag(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTaxRate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTransaction(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetTrip(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) GetUser(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListCardAccounts(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListCompanyCards(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListCostObjects(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListEntitySupplier(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListExpenseCategories(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListExpenses(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListExportJobs(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListExternalInvoices(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListFxRateSources(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListGRs(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListInvoiceCategories(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListInvoices(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListLegalEntities(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListOrgSuppliers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListPOs(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListPaymentTerms(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListPolicies(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListTags(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListTaxRates(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListTransactions(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListTrips(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ListUsers(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyCompanyCard(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyCostObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyEntitySupplier(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyExpenseCategory(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyExternalInvoice(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyGR(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyInvoiceCategory(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyOrgSupplier(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyPO(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyPaymentTerm(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyPolicy(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyTag(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyTaxRate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) ModifyUser(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) TriggerExpenseExport(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) TriggerInvoiceExport(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateCompanyCard(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateCostObject(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateEntitySupplier(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateExpenseCategory(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateExternalInvoice(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateGR(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateInvoice(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateInvoiceCategory(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateOrgSupplier(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdatePO(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdatePolicy(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateTag(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateTaxRate(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UpdateUser(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UploadAiInvoice(ctx echo.Context) error
- func (w *ServerInterfaceWrapper) UploadEinvoice(ctx echo.Context) error
- type ServiceUnavailable
- type Supplier
- type SupplierAutoSubmissionDocumentSettings
- type SupplierAutoSubmissionSettings
- type SupplierAutoSubmissionSettingsStatus
- type SupplierCodingType
- type SupplierContact
- type Tag
- type TaxComponents
- type TaxComponentsAssessmentType
- type TaxItem
- type TaxRate
- type TaxRateType
- type TaxRateVersion
- type TooManyRequests
- type Transaction
- type TransactionExpenseStatus
- type TransactionMatchingStatus
- type TriggerExpenseExportJSONBody
- type TriggerExpenseExportJSONBodyExportScope
- type TriggerExpenseExportJSONRequestBody
- type TriggerExpenseExportResponse
- type TriggerInvoiceExportJSONBody
- type TriggerInvoiceExportJSONBodyExportScope
- type TriggerInvoiceExportJSONRequestBody
- type TriggerInvoiceExportParams
- type TriggerInvoiceExportResponse
- type Trip
- type TripStatus
- type Unauthorized
- type UpdateCompanyCardJSONRequestBody
- type UpdateCompanyCardParams
- type UpdateCompanyCardResponse
- type UpdateCostObjectJSONRequestBody
- type UpdateCostObjectParams
- type UpdateCostObjectResponse
- type UpdateEntitySupplierJSONRequestBody
- type UpdateEntitySupplierParams
- type UpdateEntitySupplierResponse
- type UpdateExpenseCategoryJSONRequestBody
- type UpdateExpenseCategoryParams
- type UpdateExpenseCategoryResponse
- type UpdateExternalInvoiceJSONRequestBody
- type UpdateExternalInvoiceParams
- type UpdateExternalInvoiceResponse
- type UpdateGRJSONRequestBody
- type UpdateGRParams
- type UpdateGRResponse
- type UpdateInvoice
- type UpdateInvoiceCategoryJSONRequestBody
- type UpdateInvoiceCategoryParams
- type UpdateInvoiceCategoryResponse
- type UpdateInvoiceJSONBody
- type UpdateInvoiceJSONRequestBody
- type UpdateInvoiceLineItem
- type UpdateInvoiceParams
- type UpdateInvoiceResponse
- type UpdateOrgSupplierJSONRequestBody
- type UpdateOrgSupplierParams
- type UpdateOrgSupplierResponse
- type UpdatePOJSONRequestBody
- type UpdatePOParams
- type UpdatePOResponse
- type UpdatePolicyJSONRequestBody
- type UpdatePolicyParams
- type UpdatePolicyResponse
- type UpdateTagJSONRequestBody
- type UpdateTagParams
- type UpdateTagResponse
- type UpdateTaxRateJSONBody
- type UpdateTaxRateJSONRequestBody
- type UpdateTaxRateParams
- type UpdateTaxRateResponse
- type UpdateUserJSONBody
- type UpdateUserJSONBodyLanguage
- type UpdateUserJSONRequestBody
- type UpdateUserParams
- type UpdateUserResponse
- type UploadAiInvoiceMultipartBody
- type UploadAiInvoiceMultipartRequestBody
- type UploadAiInvoiceParams
- type UploadAiInvoiceResponse
- type UploadEinvoiceMultipartBody
- type UploadEinvoiceMultipartBodyStandard
- type UploadEinvoiceMultipartRequestBody
- type UploadEinvoiceParams
- type UploadEinvoiceResponse
- type User
- type UserBankInformation
- type UserLanguage
- type ValidationError
- type YokoyAuthMethod
- type YokoyCorrelationId
Constants ¶
const (
OAuth2Scopes = "OAuth2.Scopes"
)
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewAddTransactionRequest ¶
func NewAddTransactionRequest(server string, params *AddTransactionParams, body AddTransactionJSONRequestBody) (*http.Request, error)
NewAddTransactionRequest calls the generic AddTransaction builder with application/json body
func NewAddTransactionRequestWithBody ¶
func NewAddTransactionRequestWithBody(server string, params *AddTransactionParams, contentType string, body io.Reader) (*http.Request, error)
NewAddTransactionRequestWithBody generates requests for AddTransaction with any type of body
func NewApplyFxRateRequest ¶
func NewApplyFxRateRequest(server string, fxRateSourceId string, isoDate string, params *ApplyFxRateParams, body ApplyFxRateJSONRequestBody) (*http.Request, error)
NewApplyFxRateRequest calls the generic ApplyFxRate builder with application/json body
func NewApplyFxRateRequestWithBody ¶
func NewApplyFxRateRequestWithBody(server string, fxRateSourceId string, isoDate string, params *ApplyFxRateParams, contentType string, body io.Reader) (*http.Request, error)
NewApplyFxRateRequestWithBody generates requests for ApplyFxRate with any type of body
func NewCreateCompanyCardRequest ¶
func NewCreateCompanyCardRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateCompanyCardParams, body CreateCompanyCardJSONRequestBody) (*http.Request, error)
NewCreateCompanyCardRequest calls the generic CreateCompanyCard builder with application/json body
func NewCreateCompanyCardRequestWithBody ¶
func NewCreateCompanyCardRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateCompanyCardParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateCompanyCardRequestWithBody generates requests for CreateCompanyCard with any type of body
func NewCreateCostObjectRequest ¶
func NewCreateCostObjectRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateCostObjectParams, body CreateCostObjectJSONRequestBody) (*http.Request, error)
NewCreateCostObjectRequest calls the generic CreateCostObject builder with application/json body
func NewCreateCostObjectRequestWithBody ¶
func NewCreateCostObjectRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateCostObjectParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateCostObjectRequestWithBody generates requests for CreateCostObject with any type of body
func NewCreateEntitySupplierRequest ¶
func NewCreateEntitySupplierRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateEntitySupplierParams, body CreateEntitySupplierJSONRequestBody) (*http.Request, error)
NewCreateEntitySupplierRequest calls the generic CreateEntitySupplier builder with application/json body
func NewCreateEntitySupplierRequestWithBody ¶
func NewCreateEntitySupplierRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateEntitySupplierParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateEntitySupplierRequestWithBody generates requests for CreateEntitySupplier with any type of body
func NewCreateExpenseCategoryRequest ¶
func NewCreateExpenseCategoryRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateExpenseCategoryParams, body CreateExpenseCategoryJSONRequestBody) (*http.Request, error)
NewCreateExpenseCategoryRequest calls the generic CreateExpenseCategory builder with application/json body
func NewCreateExpenseCategoryRequestWithBody ¶
func NewCreateExpenseCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateExpenseCategoryParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateExpenseCategoryRequestWithBody generates requests for CreateExpenseCategory with any type of body
func NewCreateExternalInvoiceRequest ¶
func NewCreateExternalInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateExternalInvoiceParams, body CreateExternalInvoiceJSONRequestBody) (*http.Request, error)
NewCreateExternalInvoiceRequest calls the generic CreateExternalInvoice builder with application/json body
func NewCreateExternalInvoiceRequestWithBody ¶
func NewCreateExternalInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateExternalInvoiceParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateExternalInvoiceRequestWithBody generates requests for CreateExternalInvoice with any type of body
func NewCreateFxRateSourceRequest ¶
func NewCreateFxRateSourceRequest(server string, params *CreateFxRateSourceParams, body CreateFxRateSourceJSONRequestBody) (*http.Request, error)
NewCreateFxRateSourceRequest calls the generic CreateFxRateSource builder with application/json body
func NewCreateFxRateSourceRequestWithBody ¶
func NewCreateFxRateSourceRequestWithBody(server string, params *CreateFxRateSourceParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateFxRateSourceRequestWithBody generates requests for CreateFxRateSource with any type of body
func NewCreateGRRequest ¶
func NewCreateGRRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateGRParams, body CreateGRJSONRequestBody) (*http.Request, error)
NewCreateGRRequest calls the generic CreateGR builder with application/json body
func NewCreateGRRequestWithBody ¶
func NewCreateGRRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateGRParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateGRRequestWithBody generates requests for CreateGR with any type of body
func NewCreateInvoiceCategoryRequest ¶
func NewCreateInvoiceCategoryRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateInvoiceCategoryParams, body CreateInvoiceCategoryJSONRequestBody) (*http.Request, error)
NewCreateInvoiceCategoryRequest calls the generic CreateInvoiceCategory builder with application/json body
func NewCreateInvoiceCategoryRequestWithBody ¶
func NewCreateInvoiceCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateInvoiceCategoryParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateInvoiceCategoryRequestWithBody generates requests for CreateInvoiceCategory with any type of body
func NewCreateInvoiceRequest ¶
func NewCreateInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, body CreateInvoiceJSONRequestBody) (*http.Request, error)
NewCreateInvoiceRequest calls the generic CreateInvoice builder with application/json body
func NewCreateInvoiceRequestWithBody ¶
func NewCreateInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateInvoiceRequestWithBody generates requests for CreateInvoice with any type of body
func NewCreateOrgSupplierRequest ¶
func NewCreateOrgSupplierRequest(server string, params *CreateOrgSupplierParams, body CreateOrgSupplierJSONRequestBody) (*http.Request, error)
NewCreateOrgSupplierRequest calls the generic CreateOrgSupplier builder with application/json body
func NewCreateOrgSupplierRequestWithBody ¶
func NewCreateOrgSupplierRequestWithBody(server string, params *CreateOrgSupplierParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateOrgSupplierRequestWithBody generates requests for CreateOrgSupplier with any type of body
func NewCreatePORequest ¶
func NewCreatePORequest(server string, legalEntityId LegalEntityIdInPath, params *CreatePOParams, body CreatePOJSONRequestBody) (*http.Request, error)
NewCreatePORequest calls the generic CreatePO builder with application/json body
func NewCreatePORequestWithBody ¶
func NewCreatePORequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreatePOParams, contentType string, body io.Reader) (*http.Request, error)
NewCreatePORequestWithBody generates requests for CreatePO with any type of body
func NewCreatePaymentTermRequest ¶
func NewCreatePaymentTermRequest(server string, legalEntityId LegalEntityIdInPath, params *CreatePaymentTermParams, body CreatePaymentTermJSONRequestBody) (*http.Request, error)
NewCreatePaymentTermRequest calls the generic CreatePaymentTerm builder with application/json body
func NewCreatePaymentTermRequestWithBody ¶
func NewCreatePaymentTermRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreatePaymentTermParams, contentType string, body io.Reader) (*http.Request, error)
NewCreatePaymentTermRequestWithBody generates requests for CreatePaymentTerm with any type of body
func NewCreatePolicyRequest ¶
func NewCreatePolicyRequest(server string, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, body CreatePolicyJSONRequestBody) (*http.Request, error)
NewCreatePolicyRequest calls the generic CreatePolicy builder with application/json body
func NewCreatePolicyRequestWithBody ¶
func NewCreatePolicyRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, contentType string, body io.Reader) (*http.Request, error)
NewCreatePolicyRequestWithBody generates requests for CreatePolicy with any type of body
func NewCreateTagRequest ¶
func NewCreateTagRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateTagParams, body CreateTagJSONRequestBody) (*http.Request, error)
NewCreateTagRequest calls the generic CreateTag builder with application/json body
func NewCreateTagRequestWithBody ¶
func NewCreateTagRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateTagParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateTagRequestWithBody generates requests for CreateTag with any type of body
func NewCreateTaxRateRequest ¶
func NewCreateTaxRateRequest(server string, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, body CreateTaxRateJSONRequestBody) (*http.Request, error)
NewCreateTaxRateRequest calls the generic CreateTaxRate builder with application/json body
func NewCreateTaxRateRequestWithBody ¶
func NewCreateTaxRateRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateTaxRateRequestWithBody generates requests for CreateTaxRate with any type of body
func NewCreateUserRequest ¶
func NewCreateUserRequest(server string, params *CreateUserParams, body CreateUserJSONRequestBody) (*http.Request, error)
NewCreateUserRequest calls the generic CreateUser builder with application/json body
func NewCreateUserRequestWithBody ¶
func NewCreateUserRequestWithBody(server string, params *CreateUserParams, contentType string, body io.Reader) (*http.Request, error)
NewCreateUserRequestWithBody generates requests for CreateUser with any type of body
func NewDeleteCostObjectRequest ¶
func NewDeleteCostObjectRequest(server string, legalEntityId LegalEntityIdInPath, costCenterId string, params *DeleteCostObjectParams) (*http.Request, error)
NewDeleteCostObjectRequest generates requests for DeleteCostObject
func NewDeleteTagRequest ¶
func NewDeleteTagRequest(server string, legalEntityId LegalEntityIdInPath, tagId string, params *DeleteTagParams) (*http.Request, error)
NewDeleteTagRequest generates requests for DeleteTag
func NewDeleteUserRequest ¶
func NewDeleteUserRequest(server string, userId string, params *DeleteUserParams) (*http.Request, error)
NewDeleteUserRequest generates requests for DeleteUser
func NewGetBalanceRequest ¶
func NewGetBalanceRequest(server string, legalEntityId LegalEntityIdInPath, cardAccountId string) (*http.Request, error)
NewGetBalanceRequest generates requests for GetBalance
func NewGetCardAccountRequest ¶
func NewGetCardAccountRequest(server string, legalEntityId LegalEntityIdInPath, cardAccountId string) (*http.Request, error)
NewGetCardAccountRequest generates requests for GetCardAccount
func NewGetCompanyCardRequest ¶
func NewGetCompanyCardRequest(server string, legalEntityId LegalEntityIdInPath, companyCardId string, params *GetCompanyCardParams) (*http.Request, error)
NewGetCompanyCardRequest generates requests for GetCompanyCard
func NewGetCostObjectRequest ¶
func NewGetCostObjectRequest(server string, legalEntityId LegalEntityIdInPath, costCenterId string, params *GetCostObjectParams) (*http.Request, error)
NewGetCostObjectRequest generates requests for GetCostObject
func NewGetEntitySupplierRequest ¶
func NewGetEntitySupplierRequest(server string, legalEntityId LegalEntityIdInPath, supplierId string, params *GetEntitySupplierParams) (*http.Request, error)
NewGetEntitySupplierRequest generates requests for GetEntitySupplier
func NewGetExpenseAttachmentRequest ¶
func NewGetExpenseAttachmentRequest(server string, expenseId string, attachmentName string, params *GetExpenseAttachmentParams) (*http.Request, error)
NewGetExpenseAttachmentRequest generates requests for GetExpenseAttachment
func NewGetExpenseCategoryRequest ¶
func NewGetExpenseCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, params *GetExpenseCategoryParams) (*http.Request, error)
NewGetExpenseCategoryRequest generates requests for GetExpenseCategory
func NewGetExpenseReceiptRequest ¶
func NewGetExpenseReceiptRequest(server string, expenseId string, params *GetExpenseReceiptParams) (*http.Request, error)
NewGetExpenseReceiptRequest generates requests for GetExpenseReceipt
func NewGetExpenseRequest ¶
func NewGetExpenseRequest(server string, expenseId string, params *GetExpenseParams) (*http.Request, error)
NewGetExpenseRequest generates requests for GetExpense
func NewGetExportArefactsRequest ¶
func NewGetExportArefactsRequest(server string, legalEntityId LegalEntityIdInPath, exportTaskId string, params *GetExportArefactsParams) (*http.Request, error)
NewGetExportArefactsRequest generates requests for GetExportArefacts
func NewGetExportStatusRequest ¶
func NewGetExportStatusRequest(server string, legalEntityId LegalEntityIdInPath, exportTaskId string, params *GetExportStatusParams) (*http.Request, error)
NewGetExportStatusRequest generates requests for GetExportStatus
func NewGetExternalInvoiceRequest ¶
func NewGetExternalInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *GetExternalInvoiceParams) (*http.Request, error)
NewGetExternalInvoiceRequest generates requests for GetExternalInvoice
func NewGetGRRequest ¶
func NewGetGRRequest(server string, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *GetGRParams) (*http.Request, error)
NewGetGRRequest generates requests for GetGR
func NewGetInvoiceBase64Request ¶
func NewGetInvoiceBase64Request(server string, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoiceBase64Params) (*http.Request, error)
NewGetInvoiceBase64Request generates requests for GetInvoiceBase64
func NewGetInvoiceCategoryRequest ¶
func NewGetInvoiceCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, params *GetInvoiceCategoryParams) (*http.Request, error)
NewGetInvoiceCategoryRequest generates requests for GetInvoiceCategory
func NewGetInvoicePdfRequest ¶
func NewGetInvoicePdfRequest(server string, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoicePdfParams) (*http.Request, error)
NewGetInvoicePdfRequest generates requests for GetInvoicePdf
func NewGetInvoiceRequest ¶
func NewGetInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoiceParams) (*http.Request, error)
NewGetInvoiceRequest generates requests for GetInvoice
func NewGetLegalEntityRequest ¶
func NewGetLegalEntityRequest(server string, legalEntityId LegalEntityIdInPath, params *GetLegalEntityParams) (*http.Request, error)
NewGetLegalEntityRequest generates requests for GetLegalEntity
func NewGetOrgSupplierRequest ¶
func NewGetOrgSupplierRequest(server string, supplierId string, params *GetOrgSupplierParams) (*http.Request, error)
NewGetOrgSupplierRequest generates requests for GetOrgSupplier
func NewGetPORequest ¶
func NewGetPORequest(server string, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *GetPOParams) (*http.Request, error)
NewGetPORequest generates requests for GetPO
func NewGetPaymentTermRequest ¶
func NewGetPaymentTermRequest(server string, legalEntityId LegalEntityIdInPath, paymentTermId string, params *GetPaymentTermParams) (*http.Request, error)
NewGetPaymentTermRequest generates requests for GetPaymentTerm
func NewGetPolicyRequest ¶
func NewGetPolicyRequest(server string, legalEntityId LegalEntityIdInPath, policyId string, params *GetPolicyParams) (*http.Request, error)
NewGetPolicyRequest generates requests for GetPolicy
func NewGetTagRequest ¶
func NewGetTagRequest(server string, legalEntityId LegalEntityIdInPath, tagId string, params *GetTagParams) (*http.Request, error)
NewGetTagRequest generates requests for GetTag
func NewGetTaxRateRequest ¶
func NewGetTaxRateRequest(server string, legalEntityId LegalEntityIdInPath, taxRateId string, params *GetTaxRateParams) (*http.Request, error)
NewGetTaxRateRequest generates requests for GetTaxRate
func NewGetTransactionRequest ¶
NewGetTransactionRequest generates requests for GetTransaction
func NewGetTripRequest ¶
NewGetTripRequest generates requests for GetTrip
func NewGetUserRequest ¶
NewGetUserRequest generates requests for GetUser
func NewListCardAccountsRequest ¶
func NewListCardAccountsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListCardAccountsParams) (*http.Request, error)
NewListCardAccountsRequest generates requests for ListCardAccounts
func NewListCompanyCardsRequest ¶
func NewListCompanyCardsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListCompanyCardsParams) (*http.Request, error)
NewListCompanyCardsRequest generates requests for ListCompanyCards
func NewListCostObjectsRequest ¶
func NewListCostObjectsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListCostObjectsParams) (*http.Request, error)
NewListCostObjectsRequest generates requests for ListCostObjects
func NewListEntitySupplierRequest ¶
func NewListEntitySupplierRequest(server string, legalEntityId LegalEntityIdInPath, params *ListEntitySupplierParams) (*http.Request, error)
NewListEntitySupplierRequest generates requests for ListEntitySupplier
func NewListExpenseCategoriesRequest ¶
func NewListExpenseCategoriesRequest(server string, legalEntityId LegalEntityIdInPath, params *ListExpenseCategoriesParams) (*http.Request, error)
NewListExpenseCategoriesRequest generates requests for ListExpenseCategories
func NewListExpensesRequest ¶
func NewListExpensesRequest(server string, params *ListExpensesParams) (*http.Request, error)
NewListExpensesRequest generates requests for ListExpenses
func NewListExportJobsRequest ¶
func NewListExportJobsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListExportJobsParams) (*http.Request, error)
NewListExportJobsRequest generates requests for ListExportJobs
func NewListExternalInvoicesRequest ¶
func NewListExternalInvoicesRequest(server string, legalEntityId LegalEntityIdInPath, params *ListExternalInvoicesParams) (*http.Request, error)
NewListExternalInvoicesRequest generates requests for ListExternalInvoices
func NewListFxRateSourcesRequest ¶
func NewListFxRateSourcesRequest(server string, params *ListFxRateSourcesParams) (*http.Request, error)
NewListFxRateSourcesRequest generates requests for ListFxRateSources
func NewListGRsRequest ¶
func NewListGRsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListGRsParams) (*http.Request, error)
NewListGRsRequest generates requests for ListGRs
func NewListInvoiceCategoriesRequest ¶
func NewListInvoiceCategoriesRequest(server string, legalEntityId LegalEntityIdInPath, params *ListInvoiceCategoriesParams) (*http.Request, error)
NewListInvoiceCategoriesRequest generates requests for ListInvoiceCategories
func NewListInvoicesRequest ¶
func NewListInvoicesRequest(server string, legalEntityId LegalEntityIdInPath, params *ListInvoicesParams) (*http.Request, error)
NewListInvoicesRequest generates requests for ListInvoices
func NewListLegalEntitiesRequest ¶
func NewListLegalEntitiesRequest(server string, params *ListLegalEntitiesParams) (*http.Request, error)
NewListLegalEntitiesRequest generates requests for ListLegalEntities
func NewListOrgSuppliersRequest ¶
func NewListOrgSuppliersRequest(server string, params *ListOrgSuppliersParams) (*http.Request, error)
NewListOrgSuppliersRequest generates requests for ListOrgSuppliers
func NewListPOsRequest ¶
func NewListPOsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListPOsParams) (*http.Request, error)
NewListPOsRequest generates requests for ListPOs
func NewListPaymentTermsRequest ¶
func NewListPaymentTermsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListPaymentTermsParams) (*http.Request, error)
NewListPaymentTermsRequest generates requests for ListPaymentTerms
func NewListPoliciesRequest ¶
func NewListPoliciesRequest(server string, legalEntityId LegalEntityIdInPath, params *ListPoliciesParams) (*http.Request, error)
NewListPoliciesRequest generates requests for ListPolicies
func NewListTagsRequest ¶
func NewListTagsRequest(server string, legalEntityId LegalEntityIdInPath, params *ListTagsParams) (*http.Request, error)
NewListTagsRequest generates requests for ListTags
func NewListTaxRatesRequest ¶
func NewListTaxRatesRequest(server string, legalEntityId LegalEntityIdInPath, params *ListTaxRatesParams) (*http.Request, error)
NewListTaxRatesRequest generates requests for ListTaxRates
func NewListTransactionsRequest ¶
func NewListTransactionsRequest(server string, params *ListTransactionsParams) (*http.Request, error)
NewListTransactionsRequest generates requests for ListTransactions
func NewListTripsRequest ¶
func NewListTripsRequest(server string, params *ListTripsParams) (*http.Request, error)
NewListTripsRequest generates requests for ListTrips
func NewListUsersRequest ¶
func NewListUsersRequest(server string, params *ListUsersParams) (*http.Request, error)
NewListUsersRequest generates requests for ListUsers
func NewModifyCompanyCardRequest ¶
func NewModifyCompanyCardRequest(server string, legalEntityId LegalEntityIdInPath, companyCardId string, params *ModifyCompanyCardParams, body ModifyCompanyCardJSONRequestBody) (*http.Request, error)
NewModifyCompanyCardRequest calls the generic ModifyCompanyCard builder with application/json body
func NewModifyCompanyCardRequestWithBody ¶
func NewModifyCompanyCardRequestWithBody(server string, legalEntityId LegalEntityIdInPath, companyCardId string, params *ModifyCompanyCardParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyCompanyCardRequestWithBody generates requests for ModifyCompanyCard with any type of body
func NewModifyCostObjectRequest ¶
func NewModifyCostObjectRequest(server string, legalEntityId LegalEntityIdInPath, costCenterId string, params *ModifyCostObjectParams, body ModifyCostObjectJSONRequestBody) (*http.Request, error)
NewModifyCostObjectRequest calls the generic ModifyCostObject builder with application/json body
func NewModifyCostObjectRequestWithBody ¶
func NewModifyCostObjectRequestWithBody(server string, legalEntityId LegalEntityIdInPath, costCenterId string, params *ModifyCostObjectParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyCostObjectRequestWithBody generates requests for ModifyCostObject with any type of body
func NewModifyEntitySupplierRequest ¶
func NewModifyEntitySupplierRequest(server string, legalEntityId LegalEntityIdInPath, supplierId string, params *ModifyEntitySupplierParams, body ModifyEntitySupplierJSONRequestBody) (*http.Request, error)
NewModifyEntitySupplierRequest calls the generic ModifyEntitySupplier builder with application/json body
func NewModifyEntitySupplierRequestWithBody ¶
func NewModifyEntitySupplierRequestWithBody(server string, legalEntityId LegalEntityIdInPath, supplierId string, params *ModifyEntitySupplierParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyEntitySupplierRequestWithBody generates requests for ModifyEntitySupplier with any type of body
func NewModifyExpenseCategoryRequest ¶
func NewModifyExpenseCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyExpenseCategoryParams, body ModifyExpenseCategoryJSONRequestBody) (*http.Request, error)
NewModifyExpenseCategoryRequest calls the generic ModifyExpenseCategory builder with application/json body
func NewModifyExpenseCategoryRequestWithBody ¶
func NewModifyExpenseCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyExpenseCategoryParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyExpenseCategoryRequestWithBody generates requests for ModifyExpenseCategory with any type of body
func NewModifyExternalInvoiceRequest ¶
func NewModifyExternalInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *ModifyExternalInvoiceParams, body ModifyExternalInvoiceJSONRequestBody) (*http.Request, error)
NewModifyExternalInvoiceRequest calls the generic ModifyExternalInvoice builder with application/json body
func NewModifyExternalInvoiceRequestWithBody ¶
func NewModifyExternalInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *ModifyExternalInvoiceParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyExternalInvoiceRequestWithBody generates requests for ModifyExternalInvoice with any type of body
func NewModifyGRRequest ¶
func NewModifyGRRequest(server string, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *ModifyGRParams, body ModifyGRJSONRequestBody) (*http.Request, error)
NewModifyGRRequest calls the generic ModifyGR builder with application/json body
func NewModifyGRRequestWithBody ¶
func NewModifyGRRequestWithBody(server string, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *ModifyGRParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyGRRequestWithBody generates requests for ModifyGR with any type of body
func NewModifyInvoiceCategoryRequest ¶
func NewModifyInvoiceCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyInvoiceCategoryParams, body ModifyInvoiceCategoryJSONRequestBody) (*http.Request, error)
NewModifyInvoiceCategoryRequest calls the generic ModifyInvoiceCategory builder with application/json body
func NewModifyInvoiceCategoryRequestWithBody ¶
func NewModifyInvoiceCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyInvoiceCategoryParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyInvoiceCategoryRequestWithBody generates requests for ModifyInvoiceCategory with any type of body
func NewModifyOrgSupplierRequest ¶
func NewModifyOrgSupplierRequest(server string, supplierId string, params *ModifyOrgSupplierParams, body ModifyOrgSupplierJSONRequestBody) (*http.Request, error)
NewModifyOrgSupplierRequest calls the generic ModifyOrgSupplier builder with application/json body
func NewModifyOrgSupplierRequestWithBody ¶
func NewModifyOrgSupplierRequestWithBody(server string, supplierId string, params *ModifyOrgSupplierParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyOrgSupplierRequestWithBody generates requests for ModifyOrgSupplier with any type of body
func NewModifyPORequest ¶
func NewModifyPORequest(server string, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *ModifyPOParams, body ModifyPOJSONRequestBody) (*http.Request, error)
NewModifyPORequest calls the generic ModifyPO builder with application/json body
func NewModifyPORequestWithBody ¶
func NewModifyPORequestWithBody(server string, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *ModifyPOParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyPORequestWithBody generates requests for ModifyPO with any type of body
func NewModifyPaymentTermRequest ¶
func NewModifyPaymentTermRequest(server string, legalEntityId LegalEntityIdInPath, paymentTermId string, params *ModifyPaymentTermParams, body ModifyPaymentTermJSONRequestBody) (*http.Request, error)
NewModifyPaymentTermRequest calls the generic ModifyPaymentTerm builder with application/json body
func NewModifyPaymentTermRequestWithBody ¶
func NewModifyPaymentTermRequestWithBody(server string, legalEntityId LegalEntityIdInPath, paymentTermId string, params *ModifyPaymentTermParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyPaymentTermRequestWithBody generates requests for ModifyPaymentTerm with any type of body
func NewModifyPolicyRequest ¶
func NewModifyPolicyRequest(server string, legalEntityId LegalEntityIdInPath, policyId string, params *ModifyPolicyParams, body ModifyPolicyJSONRequestBody) (*http.Request, error)
NewModifyPolicyRequest calls the generic ModifyPolicy builder with application/json body
func NewModifyPolicyRequestWithBody ¶
func NewModifyPolicyRequestWithBody(server string, legalEntityId LegalEntityIdInPath, policyId string, params *ModifyPolicyParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyPolicyRequestWithBody generates requests for ModifyPolicy with any type of body
func NewModifyTagRequest ¶
func NewModifyTagRequest(server string, legalEntityId LegalEntityIdInPath, tagId string, params *ModifyTagParams, body ModifyTagJSONRequestBody) (*http.Request, error)
NewModifyTagRequest calls the generic ModifyTag builder with application/json body
func NewModifyTagRequestWithBody ¶
func NewModifyTagRequestWithBody(server string, legalEntityId LegalEntityIdInPath, tagId string, params *ModifyTagParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyTagRequestWithBody generates requests for ModifyTag with any type of body
func NewModifyTaxRateRequest ¶
func NewModifyTaxRateRequest(server string, legalEntityId LegalEntityIdInPath, taxRateId string, params *ModifyTaxRateParams, body ModifyTaxRateJSONRequestBody) (*http.Request, error)
NewModifyTaxRateRequest calls the generic ModifyTaxRate builder with application/json body
func NewModifyTaxRateRequestWithBody ¶
func NewModifyTaxRateRequestWithBody(server string, legalEntityId LegalEntityIdInPath, taxRateId string, params *ModifyTaxRateParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyTaxRateRequestWithBody generates requests for ModifyTaxRate with any type of body
func NewModifyUserRequest ¶
func NewModifyUserRequest(server string, userId string, params *ModifyUserParams, body ModifyUserJSONRequestBody) (*http.Request, error)
NewModifyUserRequest calls the generic ModifyUser builder with application/json body
func NewModifyUserRequestWithBody ¶
func NewModifyUserRequestWithBody(server string, userId string, params *ModifyUserParams, contentType string, body io.Reader) (*http.Request, error)
NewModifyUserRequestWithBody generates requests for ModifyUser with any type of body
func NewPutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdRequest ¶
func NewPutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdRequest(server string, legalEntityId LegalEntityIdInPath, paymentTermId string, params *PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams, body PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdJSONRequestBody) (*http.Request, error)
NewPutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdRequest calls the generic PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId builder with application/json body
func NewPutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdRequestWithBody ¶
func NewPutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdRequestWithBody(server string, legalEntityId LegalEntityIdInPath, paymentTermId string, params *PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams, contentType string, body io.Reader) (*http.Request, error)
NewPutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdRequestWithBody generates requests for PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId with any type of body
func NewTriggerExpenseExportRequest ¶
func NewTriggerExpenseExportRequest(server string, legalEntityId LegalEntityIdInPath, exportFacility string, body TriggerExpenseExportJSONRequestBody) (*http.Request, error)
NewTriggerExpenseExportRequest calls the generic TriggerExpenseExport builder with application/json body
func NewTriggerExpenseExportRequestWithBody ¶
func NewTriggerExpenseExportRequestWithBody(server string, legalEntityId LegalEntityIdInPath, exportFacility string, contentType string, body io.Reader) (*http.Request, error)
NewTriggerExpenseExportRequestWithBody generates requests for TriggerExpenseExport with any type of body
func NewTriggerInvoiceExportRequest ¶
func NewTriggerInvoiceExportRequest(server string, legalEntityId LegalEntityIdInPath, exportFacility string, params *TriggerInvoiceExportParams, body TriggerInvoiceExportJSONRequestBody) (*http.Request, error)
NewTriggerInvoiceExportRequest calls the generic TriggerInvoiceExport builder with application/json body
func NewTriggerInvoiceExportRequestWithBody ¶
func NewTriggerInvoiceExportRequestWithBody(server string, legalEntityId LegalEntityIdInPath, exportFacility string, params *TriggerInvoiceExportParams, contentType string, body io.Reader) (*http.Request, error)
NewTriggerInvoiceExportRequestWithBody generates requests for TriggerInvoiceExport with any type of body
func NewUpdateCompanyCardRequest ¶
func NewUpdateCompanyCardRequest(server string, legalEntityId LegalEntityIdInPath, companyCardId string, params *UpdateCompanyCardParams, body UpdateCompanyCardJSONRequestBody) (*http.Request, error)
NewUpdateCompanyCardRequest calls the generic UpdateCompanyCard builder with application/json body
func NewUpdateCompanyCardRequestWithBody ¶
func NewUpdateCompanyCardRequestWithBody(server string, legalEntityId LegalEntityIdInPath, companyCardId string, params *UpdateCompanyCardParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateCompanyCardRequestWithBody generates requests for UpdateCompanyCard with any type of body
func NewUpdateCostObjectRequest ¶
func NewUpdateCostObjectRequest(server string, legalEntityId LegalEntityIdInPath, costCenterId string, params *UpdateCostObjectParams, body UpdateCostObjectJSONRequestBody) (*http.Request, error)
NewUpdateCostObjectRequest calls the generic UpdateCostObject builder with application/json body
func NewUpdateCostObjectRequestWithBody ¶
func NewUpdateCostObjectRequestWithBody(server string, legalEntityId LegalEntityIdInPath, costCenterId string, params *UpdateCostObjectParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateCostObjectRequestWithBody generates requests for UpdateCostObject with any type of body
func NewUpdateEntitySupplierRequest ¶
func NewUpdateEntitySupplierRequest(server string, legalEntityId LegalEntityIdInPath, supplierId string, params *UpdateEntitySupplierParams, body UpdateEntitySupplierJSONRequestBody) (*http.Request, error)
NewUpdateEntitySupplierRequest calls the generic UpdateEntitySupplier builder with application/json body
func NewUpdateEntitySupplierRequestWithBody ¶
func NewUpdateEntitySupplierRequestWithBody(server string, legalEntityId LegalEntityIdInPath, supplierId string, params *UpdateEntitySupplierParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateEntitySupplierRequestWithBody generates requests for UpdateEntitySupplier with any type of body
func NewUpdateExpenseCategoryRequest ¶
func NewUpdateExpenseCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateExpenseCategoryParams, body UpdateExpenseCategoryJSONRequestBody) (*http.Request, error)
NewUpdateExpenseCategoryRequest calls the generic UpdateExpenseCategory builder with application/json body
func NewUpdateExpenseCategoryRequestWithBody ¶
func NewUpdateExpenseCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateExpenseCategoryParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateExpenseCategoryRequestWithBody generates requests for UpdateExpenseCategory with any type of body
func NewUpdateExternalInvoiceRequest ¶
func NewUpdateExternalInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *UpdateExternalInvoiceParams, body UpdateExternalInvoiceJSONRequestBody) (*http.Request, error)
NewUpdateExternalInvoiceRequest calls the generic UpdateExternalInvoice builder with application/json body
func NewUpdateExternalInvoiceRequestWithBody ¶
func NewUpdateExternalInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *UpdateExternalInvoiceParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateExternalInvoiceRequestWithBody generates requests for UpdateExternalInvoice with any type of body
func NewUpdateGRRequest ¶
func NewUpdateGRRequest(server string, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *UpdateGRParams, body UpdateGRJSONRequestBody) (*http.Request, error)
NewUpdateGRRequest calls the generic UpdateGR builder with application/json body
func NewUpdateGRRequestWithBody ¶
func NewUpdateGRRequestWithBody(server string, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *UpdateGRParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateGRRequestWithBody generates requests for UpdateGR with any type of body
func NewUpdateInvoiceCategoryRequest ¶
func NewUpdateInvoiceCategoryRequest(server string, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateInvoiceCategoryParams, body UpdateInvoiceCategoryJSONRequestBody) (*http.Request, error)
NewUpdateInvoiceCategoryRequest calls the generic UpdateInvoiceCategory builder with application/json body
func NewUpdateInvoiceCategoryRequestWithBody ¶
func NewUpdateInvoiceCategoryRequestWithBody(server string, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateInvoiceCategoryParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateInvoiceCategoryRequestWithBody generates requests for UpdateInvoiceCategory with any type of body
func NewUpdateInvoiceRequest ¶
func NewUpdateInvoiceRequest(server string, legalEntityId LegalEntityIdInPath, invoiceId string, params *UpdateInvoiceParams, body UpdateInvoiceJSONRequestBody) (*http.Request, error)
NewUpdateInvoiceRequest calls the generic UpdateInvoice builder with application/json body
func NewUpdateInvoiceRequestWithBody ¶
func NewUpdateInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, invoiceId string, params *UpdateInvoiceParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateInvoiceRequestWithBody generates requests for UpdateInvoice with any type of body
func NewUpdateOrgSupplierRequest ¶
func NewUpdateOrgSupplierRequest(server string, supplierId string, params *UpdateOrgSupplierParams, body UpdateOrgSupplierJSONRequestBody) (*http.Request, error)
NewUpdateOrgSupplierRequest calls the generic UpdateOrgSupplier builder with application/json body
func NewUpdateOrgSupplierRequestWithBody ¶
func NewUpdateOrgSupplierRequestWithBody(server string, supplierId string, params *UpdateOrgSupplierParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateOrgSupplierRequestWithBody generates requests for UpdateOrgSupplier with any type of body
func NewUpdatePORequest ¶
func NewUpdatePORequest(server string, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *UpdatePOParams, body UpdatePOJSONRequestBody) (*http.Request, error)
NewUpdatePORequest calls the generic UpdatePO builder with application/json body
func NewUpdatePORequestWithBody ¶
func NewUpdatePORequestWithBody(server string, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *UpdatePOParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdatePORequestWithBody generates requests for UpdatePO with any type of body
func NewUpdatePolicyRequest ¶
func NewUpdatePolicyRequest(server string, legalEntityId LegalEntityIdInPath, policyId string, params *UpdatePolicyParams, body UpdatePolicyJSONRequestBody) (*http.Request, error)
NewUpdatePolicyRequest calls the generic UpdatePolicy builder with application/json body
func NewUpdatePolicyRequestWithBody ¶
func NewUpdatePolicyRequestWithBody(server string, legalEntityId LegalEntityIdInPath, policyId string, params *UpdatePolicyParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdatePolicyRequestWithBody generates requests for UpdatePolicy with any type of body
func NewUpdateTagRequest ¶
func NewUpdateTagRequest(server string, legalEntityId LegalEntityIdInPath, tagId string, params *UpdateTagParams, body UpdateTagJSONRequestBody) (*http.Request, error)
NewUpdateTagRequest calls the generic UpdateTag builder with application/json body
func NewUpdateTagRequestWithBody ¶
func NewUpdateTagRequestWithBody(server string, legalEntityId LegalEntityIdInPath, tagId string, params *UpdateTagParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateTagRequestWithBody generates requests for UpdateTag with any type of body
func NewUpdateTaxRateRequest ¶
func NewUpdateTaxRateRequest(server string, legalEntityId LegalEntityIdInPath, taxRateId string, params *UpdateTaxRateParams, body UpdateTaxRateJSONRequestBody) (*http.Request, error)
NewUpdateTaxRateRequest calls the generic UpdateTaxRate builder with application/json body
func NewUpdateTaxRateRequestWithBody ¶
func NewUpdateTaxRateRequestWithBody(server string, legalEntityId LegalEntityIdInPath, taxRateId string, params *UpdateTaxRateParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateTaxRateRequestWithBody generates requests for UpdateTaxRate with any type of body
func NewUpdateUserRequest ¶
func NewUpdateUserRequest(server string, userId string, params *UpdateUserParams, body UpdateUserJSONRequestBody) (*http.Request, error)
NewUpdateUserRequest calls the generic UpdateUser builder with application/json body
func NewUpdateUserRequestWithBody ¶
func NewUpdateUserRequestWithBody(server string, userId string, params *UpdateUserParams, contentType string, body io.Reader) (*http.Request, error)
NewUpdateUserRequestWithBody generates requests for UpdateUser with any type of body
func NewUploadAiInvoiceRequestWithBody ¶
func NewUploadAiInvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *UploadAiInvoiceParams, contentType string, body io.Reader) (*http.Request, error)
NewUploadAiInvoiceRequestWithBody generates requests for UploadAiInvoice with any type of body
func NewUploadEinvoiceRequestWithBody ¶
func NewUploadEinvoiceRequestWithBody(server string, legalEntityId LegalEntityIdInPath, params *UploadEinvoiceParams, contentType string, body io.Reader) (*http.Request, error)
NewUploadEinvoiceRequestWithBody generates requests for UploadEinvoice with any type of body
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router EchoRouter, si ServerInterface)
RegisterHandlers adds each server route to the EchoRouter.
func RegisterHandlersWithBaseURL ¶
func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
Types ¶
type AddTransactionJSONRequestBody ¶
type AddTransactionJSONRequestBody = Transaction
AddTransactionJSONRequestBody defines body for AddTransaction for application/json ContentType.
type AddTransactionParams ¶
type AddTransactionParams struct {
XYkAuthMethod AddTransactionParamsXYkAuthMethod `json:"X-Yk-Auth-Method"`
}
AddTransactionParams defines parameters for AddTransaction.
type AddTransactionParamsXYkAuthMethod ¶
type AddTransactionParamsXYkAuthMethod string
AddTransactionParamsXYkAuthMethod defines parameters for AddTransaction.
const (
AddTransactionParamsXYkAuthMethodYokoy AddTransactionParamsXYkAuthMethod = "yokoy"
)
Defines values for AddTransactionParamsXYkAuthMethod.
type AddTransactionResponse ¶
type AddTransactionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Transaction
}
func ParseAddTransactionResponse ¶
func ParseAddTransactionResponse(rsp *http.Response) (*AddTransactionResponse, error)
ParseAddTransactionResponse parses an HTTP response from a AddTransactionWithResponse call
func (AddTransactionResponse) Status ¶
func (r AddTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (AddTransactionResponse) StatusCode ¶
func (r AddTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type AdditionalCategoryItem ¶
type AdditionalCategoryItem struct {
// CategoryId Yokoy unique ID of the expense category.
CategoryId *string `json:"categoryId,omitempty"`
// CostCenterId Yokoy unique ID of the cost object.
CostCenterId *string `json:"costCenterId"`
// Gross Gross amount allocated to the additional category. For each additional category, the gross amount is subtracted from the total claim.
Gross *float32 `json:"gross,omitempty"`
// TaxRateId Yokoy unique ID of the tax rate object.
TaxRateId *string `json:"taxRateId"`
}
AdditionalCategoryItem defines model for AdditionalCategoryItem.
type AdvancedTaxRate ¶
type AdvancedTaxRate = TaxRate
AdvancedTaxRate defines model for AdvancedTaxRate.
type ApplyFxRateJSONRequestBody ¶
type ApplyFxRateJSONRequestBody = FxRates
ApplyFxRateJSONRequestBody defines body for ApplyFxRate for application/json ContentType.
type ApplyFxRateParams ¶
type ApplyFxRateParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ApplyFxRateParams defines parameters for ApplyFxRate.
type ApplyFxRateResponse ¶
type ApplyFxRateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *FxRates
JSON400 *Error
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseApplyFxRateResponse ¶
func ParseApplyFxRateResponse(rsp *http.Response) (*ApplyFxRateResponse, error)
ParseApplyFxRateResponse parses an HTTP response from a ApplyFxRateWithResponse call
func (ApplyFxRateResponse) Status ¶
func (r ApplyFxRateResponse) Status() string
Status returns HTTPResponse.Status
func (ApplyFxRateResponse) StatusCode ¶
func (r ApplyFxRateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CardAccount ¶
type CardAccount struct {
// AccountNumber Associated account number. Unactivated accounts are indicated by an empty value.
// For CHF/EUR accounts, it corresponds to account's IBAN.
// For GBP accounts, it corresponds to the account's account number. If the currency is GBP, then property `sortCode` is also provided. For other currencies, this property is not provided.
AccountNumber string `json:"accountNumber"`
// Created Timestamp (date and time) when the card account was created. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
Created *time.Time `json:"created"`
// Currency Card account currency. ISO 4217 three-letter code.
Currency string `json:"currency"`
// Id Yokoy unique ID of a card account.
Id string `json:"id"`
// LastModified Timestamp (date and time) when the card account was last modified. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
LastModified *time.Time `json:"lastModified"`
// Provider Associated card program
Provider CardAccountProvider `json:"provider"`
// SortCode Exclusive of GBP accounts. It corresponds to account's sort code.
SortCode *string `json:"sortCode"`
// Status Status of the card account.
// - `0`: Account was requested.
// - `1`: Account is open. Cards can be ordered.
// - `2`: Account is closed. Cards can no longer be ordered.
// - `3`: Account request was denied.
Status CardAccountStatus `json:"status"`
}
CardAccount defines model for CardAccount.
type CardAccountBalance ¶
type CardAccountBalance struct {
// Available Available balance of the card account that can be used for purchases. It corresponds to the balance plus the reservations.
Available float32 `json:"available"`
// Balance Current total balance of the card account.
Balance float32 `json:"balance"`
// Reservations Reserved amount of the card account that is currently blocked by merchants or not yet cleared. This must be a negative number.
Reservations float32 `json:"reservations"`
}
CardAccountBalance defines model for CardAccountBalance.
type CardAccountProvider ¶
type CardAccountProvider string
CardAccountProvider Associated card program
const ( YokoyBusinessPrepaidMastercard CardAccountProvider = "Yokoy Business Prepaid Mastercard" YokoyPlatinumVisa CardAccountProvider = "Yokoy Platinum Visa" )
Defines values for CardAccountProvider.
type CardAccountStatus ¶
type CardAccountStatus float32
CardAccountStatus Status of the card account.
- `0`: Account was requested.
- `1`: Account is open. Cards can be ordered.
- `2`: Account is closed. Cards can no longer be ordered.
- `3`: Account request was denied.
const ( CardAccountStatusN0 CardAccountStatus = 0 CardAccountStatusN1 CardAccountStatus = 1 CardAccountStatusN2 CardAccountStatus = 2 CardAccountStatusN3 CardAccountStatus = 3 )
Defines values for CardAccountStatus.
type Category ¶
type Category struct {
// AccountReference Account (ERP). Expense account on which the expense is booked.
AccountReference string `json:"accountReference"`
// ChargeToEmployee Only applies to private expenses that are paid with the company card. If enabled, the expense is booked on the user account instead of the expense account.
ChargeToEmployee *bool `json:"chargeToEmployee"`
// CustomInformation Dictionary of custom information attributes associated with the category.
CustomInformation *map[string]string `json:"customInformation"`
// Id Yokoy unique ID of the expense category.
Id *string `json:"id,omitempty"`
// Name Name of the expense category.
Name string `json:"name"`
// StatusActive Status of the expense category. Only active categories can be used for new expenses.
StatusActive bool `json:"statusActive"`
}
Category defines model for Category.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AddTransaction ¶
func (c *Client) AddTransaction(ctx context.Context, params *AddTransactionParams, body AddTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddTransactionWithBody ¶
func (*Client) ApplyFxRate ¶
func (c *Client) ApplyFxRate(ctx context.Context, fxRateSourceId string, isoDate string, params *ApplyFxRateParams, body ApplyFxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ApplyFxRateWithBody ¶
func (*Client) CreateCompanyCard ¶
func (c *Client) CreateCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCompanyCardParams, body CreateCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCompanyCardWithBody ¶
func (c *Client) CreateCompanyCardWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCostObject ¶
func (c *Client) CreateCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCostObjectParams, body CreateCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateCostObjectWithBody ¶
func (c *Client) CreateCostObjectWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateEntitySupplier ¶
func (c *Client) CreateEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateEntitySupplierParams, body CreateEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateEntitySupplierWithBody ¶
func (c *Client) CreateEntitySupplierWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateExpenseCategory ¶
func (c *Client) CreateExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExpenseCategoryParams, body CreateExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateExpenseCategoryWithBody ¶
func (c *Client) CreateExpenseCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateExternalInvoice ¶
func (c *Client) CreateExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExternalInvoiceParams, body CreateExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateExternalInvoiceWithBody ¶
func (c *Client) CreateExternalInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateFxRateSource ¶
func (c *Client) CreateFxRateSource(ctx context.Context, params *CreateFxRateSourceParams, body CreateFxRateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateFxRateSourceWithBody ¶
func (*Client) CreateGR ¶
func (c *Client) CreateGR(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, body CreateGRJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateGRWithBody ¶
func (c *Client) CreateGRWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInvoice ¶
func (c *Client) CreateInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInvoiceCategory ¶
func (c *Client) CreateInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceCategoryParams, body CreateInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInvoiceCategoryWithBody ¶
func (c *Client) CreateInvoiceCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInvoiceWithBody ¶
func (c *Client) CreateInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateOrgSupplier ¶
func (c *Client) CreateOrgSupplier(ctx context.Context, params *CreateOrgSupplierParams, body CreateOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateOrgSupplierWithBody ¶
func (*Client) CreatePO ¶
func (c *Client) CreatePO(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, body CreatePOJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePOWithBody ¶
func (c *Client) CreatePOWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePaymentTerm ¶
func (c *Client) CreatePaymentTerm(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePaymentTermParams, body CreatePaymentTermJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePaymentTermWithBody ¶
func (c *Client) CreatePaymentTermWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePaymentTermParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePolicy ¶
func (c *Client) CreatePolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreatePolicyWithBody ¶
func (c *Client) CreatePolicyWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTag ¶
func (c *Client) CreateTag(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTagParams, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTagWithBody ¶
func (c *Client) CreateTagWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTaxRate ¶
func (c *Client) CreateTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, body CreateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateTaxRateWithBody ¶
func (c *Client) CreateTaxRateWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateUser ¶
func (c *Client) CreateUser(ctx context.Context, params *CreateUserParams, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateUserWithBody ¶
func (*Client) DeleteCostObject ¶
func (c *Client) DeleteCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *DeleteCostObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteTag ¶
func (c *Client) DeleteTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *DeleteTagParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteUser ¶
func (c *Client) DeleteUser(ctx context.Context, userId string, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetBalance ¶
func (c *Client) GetBalance(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCardAccount ¶
func (c *Client) GetCardAccount(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCompanyCard ¶
func (c *Client) GetCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *GetCompanyCardParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCostObject ¶
func (c *Client) GetCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *GetCostObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetEntitySupplier ¶
func (c *Client) GetEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *GetEntitySupplierParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExpense ¶
func (c *Client) GetExpense(ctx context.Context, expenseId string, params *GetExpenseParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExpenseAttachment ¶
func (c *Client) GetExpenseAttachment(ctx context.Context, expenseId string, attachmentName string, params *GetExpenseAttachmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExpenseCategory ¶
func (c *Client) GetExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *GetExpenseCategoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExpenseReceipt ¶
func (c *Client) GetExpenseReceipt(ctx context.Context, expenseId string, params *GetExpenseReceiptParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExportArefacts ¶
func (c *Client) GetExportArefacts(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, params *GetExportArefactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExportStatus ¶
func (c *Client) GetExportStatus(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, params *GetExportStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetExternalInvoice ¶
func (c *Client) GetExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *GetExternalInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetGR ¶
func (c *Client) GetGR(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *GetGRParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetInvoice ¶
func (c *Client) GetInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetInvoiceBase64 ¶
func (c *Client) GetInvoiceBase64(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoiceBase64Params, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetInvoiceCategory ¶
func (c *Client) GetInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *GetInvoiceCategoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetInvoicePdf ¶
func (c *Client) GetInvoicePdf(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoicePdfParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetLegalEntity ¶
func (c *Client) GetLegalEntity(ctx context.Context, legalEntityId LegalEntityIdInPath, params *GetLegalEntityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetOrgSupplier ¶
func (c *Client) GetOrgSupplier(ctx context.Context, supplierId string, params *GetOrgSupplierParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPO ¶
func (c *Client) GetPO(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *GetPOParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPaymentTerm ¶
func (c *Client) GetPaymentTerm(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *GetPaymentTermParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetPolicy ¶
func (c *Client) GetPolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *GetPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTag ¶
func (c *Client) GetTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *GetTagParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTaxRate ¶
func (c *Client) GetTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *GetTaxRateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetTransaction ¶
func (*Client) GetTrip ¶
func (c *Client) GetTrip(ctx context.Context, tripId string, params *GetTripParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetUser ¶
func (c *Client) GetUser(ctx context.Context, userId string, params *GetUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCardAccounts ¶
func (c *Client) ListCardAccounts(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCardAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCompanyCards ¶
func (c *Client) ListCompanyCards(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCompanyCardsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListCostObjects ¶
func (c *Client) ListCostObjects(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCostObjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListEntitySupplier ¶
func (c *Client) ListEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListEntitySupplierParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListExpenseCategories ¶
func (c *Client) ListExpenseCategories(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExpenseCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListExpenses ¶
func (c *Client) ListExpenses(ctx context.Context, params *ListExpensesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListExportJobs ¶
func (c *Client) ListExportJobs(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExportJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListExternalInvoices ¶
func (c *Client) ListExternalInvoices(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExternalInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListFxRateSources ¶
func (c *Client) ListFxRateSources(ctx context.Context, params *ListFxRateSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListGRs ¶
func (c *Client) ListGRs(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListGRsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInvoiceCategories ¶
func (c *Client) ListInvoiceCategories(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListInvoiceCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInvoices ¶
func (c *Client) ListInvoices(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListLegalEntities ¶
func (c *Client) ListLegalEntities(ctx context.Context, params *ListLegalEntitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListOrgSuppliers ¶
func (c *Client) ListOrgSuppliers(ctx context.Context, params *ListOrgSuppliersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListPOs ¶
func (c *Client) ListPOs(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPOsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListPaymentTerms ¶
func (c *Client) ListPaymentTerms(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPaymentTermsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListPolicies ¶
func (c *Client) ListPolicies(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListTags ¶
func (c *Client) ListTags(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListTaxRates ¶
func (c *Client) ListTaxRates(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListTaxRatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListTransactions ¶
func (c *Client) ListTransactions(ctx context.Context, params *ListTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListTrips ¶
func (c *Client) ListTrips(ctx context.Context, params *ListTripsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListUsers ¶
func (c *Client) ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyCompanyCard ¶
func (c *Client) ModifyCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *ModifyCompanyCardParams, body ModifyCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyCompanyCardWithBody ¶
func (c *Client) ModifyCompanyCardWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *ModifyCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyCostObject ¶
func (c *Client) ModifyCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *ModifyCostObjectParams, body ModifyCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyCostObjectWithBody ¶
func (c *Client) ModifyCostObjectWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *ModifyCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyEntitySupplier ¶
func (c *Client) ModifyEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *ModifyEntitySupplierParams, body ModifyEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyEntitySupplierWithBody ¶
func (c *Client) ModifyEntitySupplierWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *ModifyEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyExpenseCategory ¶
func (c *Client) ModifyExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyExpenseCategoryParams, body ModifyExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyExpenseCategoryWithBody ¶
func (c *Client) ModifyExpenseCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyExternalInvoice ¶
func (c *Client) ModifyExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *ModifyExternalInvoiceParams, body ModifyExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyExternalInvoiceWithBody ¶
func (c *Client) ModifyExternalInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *ModifyExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyGR ¶
func (c *Client) ModifyGR(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *ModifyGRParams, body ModifyGRJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyGRWithBody ¶
func (c *Client) ModifyGRWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *ModifyGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyInvoiceCategory ¶
func (c *Client) ModifyInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyInvoiceCategoryParams, body ModifyInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyInvoiceCategoryWithBody ¶
func (c *Client) ModifyInvoiceCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyOrgSupplier ¶
func (c *Client) ModifyOrgSupplier(ctx context.Context, supplierId string, params *ModifyOrgSupplierParams, body ModifyOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyOrgSupplierWithBody ¶
func (*Client) ModifyPO ¶
func (c *Client) ModifyPO(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *ModifyPOParams, body ModifyPOJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyPOWithBody ¶
func (c *Client) ModifyPOWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *ModifyPOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyPaymentTerm ¶
func (c *Client) ModifyPaymentTerm(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *ModifyPaymentTermParams, body ModifyPaymentTermJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyPaymentTermWithBody ¶
func (c *Client) ModifyPaymentTermWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *ModifyPaymentTermParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyPolicy ¶
func (c *Client) ModifyPolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *ModifyPolicyParams, body ModifyPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyPolicyWithBody ¶
func (c *Client) ModifyPolicyWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *ModifyPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyTag ¶
func (c *Client) ModifyTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *ModifyTagParams, body ModifyTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyTagWithBody ¶
func (c *Client) ModifyTagWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *ModifyTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyTaxRate ¶
func (c *Client) ModifyTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *ModifyTaxRateParams, body ModifyTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyTaxRateWithBody ¶
func (c *Client) ModifyTaxRateWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *ModifyTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyUser ¶
func (c *Client) ModifyUser(ctx context.Context, userId string, params *ModifyUserParams, body ModifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ModifyUserWithBody ¶
func (*Client) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId ¶
func (c *Client) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams, body PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithBody ¶
func (c *Client) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TriggerExpenseExport ¶
func (c *Client) TriggerExpenseExport(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, body TriggerExpenseExportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TriggerExpenseExportWithBody ¶
func (*Client) TriggerInvoiceExport ¶
func (c *Client) TriggerInvoiceExport(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, params *TriggerInvoiceExportParams, body TriggerInvoiceExportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) TriggerInvoiceExportWithBody ¶
func (c *Client) TriggerInvoiceExportWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, params *TriggerInvoiceExportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateCompanyCard ¶
func (c *Client) UpdateCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *UpdateCompanyCardParams, body UpdateCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateCompanyCardWithBody ¶
func (c *Client) UpdateCompanyCardWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *UpdateCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateCostObject ¶
func (c *Client) UpdateCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *UpdateCostObjectParams, body UpdateCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateCostObjectWithBody ¶
func (c *Client) UpdateCostObjectWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *UpdateCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateEntitySupplier ¶
func (c *Client) UpdateEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *UpdateEntitySupplierParams, body UpdateEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateEntitySupplierWithBody ¶
func (c *Client) UpdateEntitySupplierWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *UpdateEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateExpenseCategory ¶
func (c *Client) UpdateExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateExpenseCategoryParams, body UpdateExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateExpenseCategoryWithBody ¶
func (c *Client) UpdateExpenseCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateExternalInvoice ¶
func (c *Client) UpdateExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *UpdateExternalInvoiceParams, body UpdateExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateExternalInvoiceWithBody ¶
func (c *Client) UpdateExternalInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *UpdateExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateGR ¶
func (c *Client) UpdateGR(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *UpdateGRParams, body UpdateGRJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateGRWithBody ¶
func (c *Client) UpdateGRWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *UpdateGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateInvoice ¶
func (c *Client) UpdateInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *UpdateInvoiceParams, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateInvoiceCategory ¶
func (c *Client) UpdateInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateInvoiceCategoryParams, body UpdateInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateInvoiceCategoryWithBody ¶
func (c *Client) UpdateInvoiceCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateInvoiceWithBody ¶
func (c *Client) UpdateInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *UpdateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateOrgSupplier ¶
func (c *Client) UpdateOrgSupplier(ctx context.Context, supplierId string, params *UpdateOrgSupplierParams, body UpdateOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateOrgSupplierWithBody ¶
func (*Client) UpdatePO ¶
func (c *Client) UpdatePO(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *UpdatePOParams, body UpdatePOJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePOWithBody ¶
func (c *Client) UpdatePOWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *UpdatePOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePolicy ¶
func (c *Client) UpdatePolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *UpdatePolicyParams, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePolicyWithBody ¶
func (c *Client) UpdatePolicyWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *UpdatePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateTag ¶
func (c *Client) UpdateTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *UpdateTagParams, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateTagWithBody ¶
func (c *Client) UpdateTagWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *UpdateTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateTaxRate ¶
func (c *Client) UpdateTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *UpdateTaxRateParams, body UpdateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateTaxRateWithBody ¶
func (c *Client) UpdateTaxRateWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *UpdateTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(ctx context.Context, userId string, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateUserWithBody ¶
func (*Client) UploadAiInvoiceWithBody ¶
func (c *Client) UploadAiInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *UploadAiInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UploadEinvoiceWithBody ¶
func (c *Client) UploadEinvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *UploadEinvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListExpenses request
ListExpenses(ctx context.Context, params *ListExpensesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetExpense request
GetExpense(ctx context.Context, expenseId string, params *GetExpenseParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetExpenseAttachment request
GetExpenseAttachment(ctx context.Context, expenseId string, attachmentName string, params *GetExpenseAttachmentParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetExpenseReceipt request
GetExpenseReceipt(ctx context.Context, expenseId string, params *GetExpenseReceiptParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListFxRateSources request
ListFxRateSources(ctx context.Context, params *ListFxRateSourcesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateFxRateSourceWithBody request with any body
CreateFxRateSourceWithBody(ctx context.Context, params *CreateFxRateSourceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateFxRateSource(ctx context.Context, params *CreateFxRateSourceParams, body CreateFxRateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ApplyFxRateWithBody request with any body
ApplyFxRateWithBody(ctx context.Context, fxRateSourceId string, isoDate string, params *ApplyFxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ApplyFxRate(ctx context.Context, fxRateSourceId string, isoDate string, params *ApplyFxRateParams, body ApplyFxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListLegalEntities request
ListLegalEntities(ctx context.Context, params *ListLegalEntitiesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetLegalEntity request
GetLegalEntity(ctx context.Context, legalEntityId LegalEntityIdInPath, params *GetLegalEntityParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCardAccounts request
ListCardAccounts(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCardAccountsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCardAccount request
GetCardAccount(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetBalance request
GetBalance(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListExpenseCategories request
ListExpenseCategories(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExpenseCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateExpenseCategoryWithBody request with any body
CreateExpenseCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExpenseCategoryParams, body CreateExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetExpenseCategory request
GetExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *GetExpenseCategoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyExpenseCategoryWithBody request with any body
ModifyExpenseCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyExpenseCategoryParams, body ModifyExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateExpenseCategoryWithBody request with any body
UpdateExpenseCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateExpenseCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateExpenseCategoryParams, body UpdateExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCompanyCards request
ListCompanyCards(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCompanyCardsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCompanyCardWithBody request with any body
CreateCompanyCardWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCompanyCardParams, body CreateCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCompanyCard request
GetCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *GetCompanyCardParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyCompanyCardWithBody request with any body
ModifyCompanyCardWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *ModifyCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *ModifyCompanyCardParams, body ModifyCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateCompanyCardWithBody request with any body
UpdateCompanyCardWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *UpdateCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateCompanyCard(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *UpdateCompanyCardParams, body UpdateCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListCostObjects request
ListCostObjects(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCostObjectsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateCostObjectWithBody request with any body
CreateCostObjectWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCostObjectParams, body CreateCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteCostObject request
DeleteCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *DeleteCostObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCostObject request
GetCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *GetCostObjectParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyCostObjectWithBody request with any body
ModifyCostObjectWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *ModifyCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *ModifyCostObjectParams, body ModifyCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateCostObjectWithBody request with any body
UpdateCostObjectWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *UpdateCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateCostObject(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *UpdateCostObjectParams, body UpdateCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TriggerExpenseExportWithBody request with any body
TriggerExpenseExportWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TriggerExpenseExport(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, body TriggerExpenseExportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListExportJobs request
ListExportJobs(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExportJobsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetExportStatus request
GetExportStatus(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, params *GetExportStatusParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetExportArefacts request
GetExportArefacts(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, params *GetExportArefactsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListExternalInvoices request
ListExternalInvoices(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExternalInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateExternalInvoiceWithBody request with any body
CreateExternalInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExternalInvoiceParams, body CreateExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetExternalInvoice request
GetExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *GetExternalInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyExternalInvoiceWithBody request with any body
ModifyExternalInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *ModifyExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *ModifyExternalInvoiceParams, body ModifyExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateExternalInvoiceWithBody request with any body
UpdateExternalInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *UpdateExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateExternalInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *UpdateExternalInvoiceParams, body UpdateExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInvoiceCategories request
ListInvoiceCategories(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListInvoiceCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateInvoiceCategoryWithBody request with any body
CreateInvoiceCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceCategoryParams, body CreateInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInvoiceCategory request
GetInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *GetInvoiceCategoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyInvoiceCategoryWithBody request with any body
ModifyInvoiceCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyInvoiceCategoryParams, body ModifyInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateInvoiceCategoryWithBody request with any body
UpdateInvoiceCategoryWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateInvoiceCategory(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateInvoiceCategoryParams, body UpdateInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// TriggerInvoiceExportWithBody request with any body
TriggerInvoiceExportWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, params *TriggerInvoiceExportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
TriggerInvoiceExport(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, params *TriggerInvoiceExportParams, body TriggerInvoiceExportJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListGRs request
ListGRs(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListGRsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateGRWithBody request with any body
CreateGRWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateGR(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, body CreateGRJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetGR request
GetGR(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *GetGRParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyGRWithBody request with any body
ModifyGRWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *ModifyGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyGR(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *ModifyGRParams, body ModifyGRJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateGRWithBody request with any body
UpdateGRWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *UpdateGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateGR(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *UpdateGRParams, body UpdateGRJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPaymentTerms request
ListPaymentTerms(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPaymentTermsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePaymentTermWithBody request with any body
CreatePaymentTermWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePaymentTermParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePaymentTerm(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePaymentTermParams, body CreatePaymentTermJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPaymentTerm request
GetPaymentTerm(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *GetPaymentTermParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyPaymentTermWithBody request with any body
ModifyPaymentTermWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *ModifyPaymentTermParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyPaymentTerm(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *ModifyPaymentTermParams, body ModifyPaymentTermJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithBody request with any body
PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams, body PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPOs request
ListPOs(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPOsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePOWithBody request with any body
CreatePOWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePO(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, body CreatePOJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPO request
GetPO(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *GetPOParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyPOWithBody request with any body
ModifyPOWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *ModifyPOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyPO(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *ModifyPOParams, body ModifyPOJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdatePOWithBody request with any body
UpdatePOWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *UpdatePOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdatePO(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *UpdatePOParams, body UpdatePOJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInvoices request
ListInvoices(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateInvoiceWithBody request with any body
CreateInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadEinvoiceWithBody request with any body
UploadEinvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *UploadEinvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// UploadAiInvoiceWithBody request with any body
UploadAiInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *UploadAiInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInvoice request
GetInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateInvoiceWithBody request with any body
UpdateInvoiceWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *UpdateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateInvoice(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *UpdateInvoiceParams, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInvoiceBase64 request
GetInvoiceBase64(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoiceBase64Params, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInvoicePdf request
GetInvoicePdf(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoicePdfParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListPolicies request
ListPolicies(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreatePolicyWithBody request with any body
CreatePolicyWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreatePolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetPolicy request
GetPolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *GetPolicyParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyPolicyWithBody request with any body
ModifyPolicyWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *ModifyPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyPolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *ModifyPolicyParams, body ModifyPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdatePolicyWithBody request with any body
UpdatePolicyWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *UpdatePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdatePolicy(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *UpdatePolicyParams, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListEntitySupplier request
ListEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListEntitySupplierParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateEntitySupplierWithBody request with any body
CreateEntitySupplierWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateEntitySupplierParams, body CreateEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetEntitySupplier request
GetEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *GetEntitySupplierParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyEntitySupplierWithBody request with any body
ModifyEntitySupplierWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *ModifyEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *ModifyEntitySupplierParams, body ModifyEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateEntitySupplierWithBody request with any body
UpdateEntitySupplierWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *UpdateEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateEntitySupplier(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *UpdateEntitySupplierParams, body UpdateEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTags request
ListTags(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListTagsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateTagWithBody request with any body
CreateTagWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateTag(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTagParams, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteTag request
DeleteTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *DeleteTagParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTag request
GetTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *GetTagParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyTagWithBody request with any body
ModifyTagWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *ModifyTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *ModifyTagParams, body ModifyTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateTagWithBody request with any body
UpdateTagWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *UpdateTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateTag(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *UpdateTagParams, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTaxRates request
ListTaxRates(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListTaxRatesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateTaxRateWithBody request with any body
CreateTaxRateWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, body CreateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTaxRate request
GetTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *GetTaxRateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyTaxRateWithBody request with any body
ModifyTaxRateWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *ModifyTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *ModifyTaxRateParams, body ModifyTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateTaxRateWithBody request with any body
UpdateTaxRateWithBody(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *UpdateTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateTaxRate(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *UpdateTaxRateParams, body UpdateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOrgSuppliers request
ListOrgSuppliers(ctx context.Context, params *ListOrgSuppliersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateOrgSupplierWithBody request with any body
CreateOrgSupplierWithBody(ctx context.Context, params *CreateOrgSupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateOrgSupplier(ctx context.Context, params *CreateOrgSupplierParams, body CreateOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrgSupplier request
GetOrgSupplier(ctx context.Context, supplierId string, params *GetOrgSupplierParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyOrgSupplierWithBody request with any body
ModifyOrgSupplierWithBody(ctx context.Context, supplierId string, params *ModifyOrgSupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyOrgSupplier(ctx context.Context, supplierId string, params *ModifyOrgSupplierParams, body ModifyOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateOrgSupplierWithBody request with any body
UpdateOrgSupplierWithBody(ctx context.Context, supplierId string, params *UpdateOrgSupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateOrgSupplier(ctx context.Context, supplierId string, params *UpdateOrgSupplierParams, body UpdateOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTransactions request
ListTransactions(ctx context.Context, params *ListTransactionsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddTransactionWithBody request with any body
AddTransactionWithBody(ctx context.Context, params *AddTransactionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddTransaction(ctx context.Context, params *AddTransactionParams, body AddTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTransaction request
GetTransaction(ctx context.Context, transactionId string, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListTrips request
ListTrips(ctx context.Context, params *ListTripsParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetTrip request
GetTrip(ctx context.Context, tripId string, params *GetTripParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListUsers request
ListUsers(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateUserWithBody request with any body
CreateUserWithBody(ctx context.Context, params *CreateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateUser(ctx context.Context, params *CreateUserParams, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteUser request
DeleteUser(ctx context.Context, userId string, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUser request
GetUser(ctx context.Context, userId string, params *GetUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// ModifyUserWithBody request with any body
ModifyUserWithBody(ctx context.Context, userId string, params *ModifyUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
ModifyUser(ctx context.Context, userId string, params *ModifyUserParams, body ModifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateUserWithBody request with any body
UpdateUserWithBody(ctx context.Context, userId string, params *UpdateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateUser(ctx context.Context, userId string, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddTransactionWithBodyWithResponse ¶
func (c *ClientWithResponses) AddTransactionWithBodyWithResponse(ctx context.Context, params *AddTransactionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTransactionResponse, error)
AddTransactionWithBodyWithResponse request with arbitrary body returning *AddTransactionResponse
func (*ClientWithResponses) AddTransactionWithResponse ¶
func (c *ClientWithResponses) AddTransactionWithResponse(ctx context.Context, params *AddTransactionParams, body AddTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTransactionResponse, error)
func (*ClientWithResponses) ApplyFxRateWithBodyWithResponse ¶
func (c *ClientWithResponses) ApplyFxRateWithBodyWithResponse(ctx context.Context, fxRateSourceId string, isoDate string, params *ApplyFxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyFxRateResponse, error)
ApplyFxRateWithBodyWithResponse request with arbitrary body returning *ApplyFxRateResponse
func (*ClientWithResponses) ApplyFxRateWithResponse ¶
func (c *ClientWithResponses) ApplyFxRateWithResponse(ctx context.Context, fxRateSourceId string, isoDate string, params *ApplyFxRateParams, body ApplyFxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyFxRateResponse, error)
func (*ClientWithResponses) CreateCompanyCardWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCompanyCardWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCompanyCardResponse, error)
CreateCompanyCardWithBodyWithResponse request with arbitrary body returning *CreateCompanyCardResponse
func (*ClientWithResponses) CreateCompanyCardWithResponse ¶
func (c *ClientWithResponses) CreateCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCompanyCardParams, body CreateCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCompanyCardResponse, error)
func (*ClientWithResponses) CreateCostObjectWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateCostObjectWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCostObjectResponse, error)
CreateCostObjectWithBodyWithResponse request with arbitrary body returning *CreateCostObjectResponse
func (*ClientWithResponses) CreateCostObjectWithResponse ¶
func (c *ClientWithResponses) CreateCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCostObjectParams, body CreateCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCostObjectResponse, error)
func (*ClientWithResponses) CreateEntitySupplierWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateEntitySupplierWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEntitySupplierResponse, error)
CreateEntitySupplierWithBodyWithResponse request with arbitrary body returning *CreateEntitySupplierResponse
func (*ClientWithResponses) CreateEntitySupplierWithResponse ¶
func (c *ClientWithResponses) CreateEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateEntitySupplierParams, body CreateEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEntitySupplierResponse, error)
func (*ClientWithResponses) CreateExpenseCategoryWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateExpenseCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExpenseCategoryResponse, error)
CreateExpenseCategoryWithBodyWithResponse request with arbitrary body returning *CreateExpenseCategoryResponse
func (*ClientWithResponses) CreateExpenseCategoryWithResponse ¶
func (c *ClientWithResponses) CreateExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExpenseCategoryParams, body CreateExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExpenseCategoryResponse, error)
func (*ClientWithResponses) CreateExternalInvoiceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateExternalInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExternalInvoiceResponse, error)
CreateExternalInvoiceWithBodyWithResponse request with arbitrary body returning *CreateExternalInvoiceResponse
func (*ClientWithResponses) CreateExternalInvoiceWithResponse ¶
func (c *ClientWithResponses) CreateExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExternalInvoiceParams, body CreateExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExternalInvoiceResponse, error)
func (*ClientWithResponses) CreateFxRateSourceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateFxRateSourceWithBodyWithResponse(ctx context.Context, params *CreateFxRateSourceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFxRateSourceResponse, error)
CreateFxRateSourceWithBodyWithResponse request with arbitrary body returning *CreateFxRateSourceResponse
func (*ClientWithResponses) CreateFxRateSourceWithResponse ¶
func (c *ClientWithResponses) CreateFxRateSourceWithResponse(ctx context.Context, params *CreateFxRateSourceParams, body CreateFxRateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFxRateSourceResponse, error)
func (*ClientWithResponses) CreateGRWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateGRWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGRResponse, error)
CreateGRWithBodyWithResponse request with arbitrary body returning *CreateGRResponse
func (*ClientWithResponses) CreateGRWithResponse ¶
func (c *ClientWithResponses) CreateGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, body CreateGRJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGRResponse, error)
func (*ClientWithResponses) CreateInvoiceCategoryWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateInvoiceCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceCategoryResponse, error)
CreateInvoiceCategoryWithBodyWithResponse request with arbitrary body returning *CreateInvoiceCategoryResponse
func (*ClientWithResponses) CreateInvoiceCategoryWithResponse ¶
func (c *ClientWithResponses) CreateInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceCategoryParams, body CreateInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceCategoryResponse, error)
func (*ClientWithResponses) CreateInvoiceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error)
CreateInvoiceWithBodyWithResponse request with arbitrary body returning *CreateInvoiceResponse
func (*ClientWithResponses) CreateInvoiceWithResponse ¶
func (c *ClientWithResponses) CreateInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error)
func (*ClientWithResponses) CreateOrgSupplierWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateOrgSupplierWithBodyWithResponse(ctx context.Context, params *CreateOrgSupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrgSupplierResponse, error)
CreateOrgSupplierWithBodyWithResponse request with arbitrary body returning *CreateOrgSupplierResponse
func (*ClientWithResponses) CreateOrgSupplierWithResponse ¶
func (c *ClientWithResponses) CreateOrgSupplierWithResponse(ctx context.Context, params *CreateOrgSupplierParams, body CreateOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrgSupplierResponse, error)
func (*ClientWithResponses) CreatePOWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePOWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePOResponse, error)
CreatePOWithBodyWithResponse request with arbitrary body returning *CreatePOResponse
func (*ClientWithResponses) CreatePOWithResponse ¶
func (c *ClientWithResponses) CreatePOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, body CreatePOJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePOResponse, error)
func (*ClientWithResponses) CreatePaymentTermWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePaymentTermWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePaymentTermParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePaymentTermResponse, error)
CreatePaymentTermWithBodyWithResponse request with arbitrary body returning *CreatePaymentTermResponse
func (*ClientWithResponses) CreatePaymentTermWithResponse ¶
func (c *ClientWithResponses) CreatePaymentTermWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePaymentTermParams, body CreatePaymentTermJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePaymentTermResponse, error)
func (*ClientWithResponses) CreatePolicyWithBodyWithResponse ¶
func (c *ClientWithResponses) CreatePolicyWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error)
CreatePolicyWithBodyWithResponse request with arbitrary body returning *CreatePolicyResponse
func (*ClientWithResponses) CreatePolicyWithResponse ¶
func (c *ClientWithResponses) CreatePolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error)
func (*ClientWithResponses) CreateTagWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateTagWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTagResponse, error)
CreateTagWithBodyWithResponse request with arbitrary body returning *CreateTagResponse
func (*ClientWithResponses) CreateTagWithResponse ¶
func (c *ClientWithResponses) CreateTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTagParams, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResponse, error)
func (*ClientWithResponses) CreateTaxRateWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateTaxRateWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTaxRateResponse, error)
CreateTaxRateWithBodyWithResponse request with arbitrary body returning *CreateTaxRateResponse
func (*ClientWithResponses) CreateTaxRateWithResponse ¶
func (c *ClientWithResponses) CreateTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, body CreateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTaxRateResponse, error)
func (*ClientWithResponses) CreateUserWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, params *CreateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
CreateUserWithBodyWithResponse request with arbitrary body returning *CreateUserResponse
func (*ClientWithResponses) CreateUserWithResponse ¶
func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, params *CreateUserParams, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
func (*ClientWithResponses) DeleteCostObjectWithResponse ¶
func (c *ClientWithResponses) DeleteCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *DeleteCostObjectParams, reqEditors ...RequestEditorFn) (*DeleteCostObjectResponse, error)
DeleteCostObjectWithResponse request returning *DeleteCostObjectResponse
func (*ClientWithResponses) DeleteTagWithResponse ¶
func (c *ClientWithResponses) DeleteTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *DeleteTagParams, reqEditors ...RequestEditorFn) (*DeleteTagResponse, error)
DeleteTagWithResponse request returning *DeleteTagResponse
func (*ClientWithResponses) DeleteUserWithResponse ¶
func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, userId string, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
DeleteUserWithResponse request returning *DeleteUserResponse
func (*ClientWithResponses) GetBalanceWithResponse ¶
func (c *ClientWithResponses) GetBalanceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, reqEditors ...RequestEditorFn) (*GetBalanceResponse, error)
GetBalanceWithResponse request returning *GetBalanceResponse
func (*ClientWithResponses) GetCardAccountWithResponse ¶
func (c *ClientWithResponses) GetCardAccountWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, reqEditors ...RequestEditorFn) (*GetCardAccountResponse, error)
GetCardAccountWithResponse request returning *GetCardAccountResponse
func (*ClientWithResponses) GetCompanyCardWithResponse ¶
func (c *ClientWithResponses) GetCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *GetCompanyCardParams, reqEditors ...RequestEditorFn) (*GetCompanyCardResponse, error)
GetCompanyCardWithResponse request returning *GetCompanyCardResponse
func (*ClientWithResponses) GetCostObjectWithResponse ¶
func (c *ClientWithResponses) GetCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *GetCostObjectParams, reqEditors ...RequestEditorFn) (*GetCostObjectResponse, error)
GetCostObjectWithResponse request returning *GetCostObjectResponse
func (*ClientWithResponses) GetEntitySupplierWithResponse ¶
func (c *ClientWithResponses) GetEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *GetEntitySupplierParams, reqEditors ...RequestEditorFn) (*GetEntitySupplierResponse, error)
GetEntitySupplierWithResponse request returning *GetEntitySupplierResponse
func (*ClientWithResponses) GetExpenseAttachmentWithResponse ¶
func (c *ClientWithResponses) GetExpenseAttachmentWithResponse(ctx context.Context, expenseId string, attachmentName string, params *GetExpenseAttachmentParams, reqEditors ...RequestEditorFn) (*GetExpenseAttachmentResponse, error)
GetExpenseAttachmentWithResponse request returning *GetExpenseAttachmentResponse
func (*ClientWithResponses) GetExpenseCategoryWithResponse ¶
func (c *ClientWithResponses) GetExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *GetExpenseCategoryParams, reqEditors ...RequestEditorFn) (*GetExpenseCategoryResponse, error)
GetExpenseCategoryWithResponse request returning *GetExpenseCategoryResponse
func (*ClientWithResponses) GetExpenseReceiptWithResponse ¶
func (c *ClientWithResponses) GetExpenseReceiptWithResponse(ctx context.Context, expenseId string, params *GetExpenseReceiptParams, reqEditors ...RequestEditorFn) (*GetExpenseReceiptResponse, error)
GetExpenseReceiptWithResponse request returning *GetExpenseReceiptResponse
func (*ClientWithResponses) GetExpenseWithResponse ¶
func (c *ClientWithResponses) GetExpenseWithResponse(ctx context.Context, expenseId string, params *GetExpenseParams, reqEditors ...RequestEditorFn) (*GetExpenseResponse, error)
GetExpenseWithResponse request returning *GetExpenseResponse
func (*ClientWithResponses) GetExportArefactsWithResponse ¶
func (c *ClientWithResponses) GetExportArefactsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, params *GetExportArefactsParams, reqEditors ...RequestEditorFn) (*GetExportArefactsResponse, error)
GetExportArefactsWithResponse request returning *GetExportArefactsResponse
func (*ClientWithResponses) GetExportStatusWithResponse ¶
func (c *ClientWithResponses) GetExportStatusWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, params *GetExportStatusParams, reqEditors ...RequestEditorFn) (*GetExportStatusResponse, error)
GetExportStatusWithResponse request returning *GetExportStatusResponse
func (*ClientWithResponses) GetExternalInvoiceWithResponse ¶
func (c *ClientWithResponses) GetExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *GetExternalInvoiceParams, reqEditors ...RequestEditorFn) (*GetExternalInvoiceResponse, error)
GetExternalInvoiceWithResponse request returning *GetExternalInvoiceResponse
func (*ClientWithResponses) GetGRWithResponse ¶
func (c *ClientWithResponses) GetGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *GetGRParams, reqEditors ...RequestEditorFn) (*GetGRResponse, error)
GetGRWithResponse request returning *GetGRResponse
func (*ClientWithResponses) GetInvoiceBase64WithResponse ¶
func (c *ClientWithResponses) GetInvoiceBase64WithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoiceBase64Params, reqEditors ...RequestEditorFn) (*GetInvoiceBase64Response, error)
GetInvoiceBase64WithResponse request returning *GetInvoiceBase64Response
func (*ClientWithResponses) GetInvoiceCategoryWithResponse ¶
func (c *ClientWithResponses) GetInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *GetInvoiceCategoryParams, reqEditors ...RequestEditorFn) (*GetInvoiceCategoryResponse, error)
GetInvoiceCategoryWithResponse request returning *GetInvoiceCategoryResponse
func (*ClientWithResponses) GetInvoicePdfWithResponse ¶
func (c *ClientWithResponses) GetInvoicePdfWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoicePdfParams, reqEditors ...RequestEditorFn) (*GetInvoicePdfResponse, error)
GetInvoicePdfWithResponse request returning *GetInvoicePdfResponse
func (*ClientWithResponses) GetInvoiceWithResponse ¶
func (c *ClientWithResponses) GetInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error)
GetInvoiceWithResponse request returning *GetInvoiceResponse
func (*ClientWithResponses) GetLegalEntityWithResponse ¶
func (c *ClientWithResponses) GetLegalEntityWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *GetLegalEntityParams, reqEditors ...RequestEditorFn) (*GetLegalEntityResponse, error)
GetLegalEntityWithResponse request returning *GetLegalEntityResponse
func (*ClientWithResponses) GetOrgSupplierWithResponse ¶
func (c *ClientWithResponses) GetOrgSupplierWithResponse(ctx context.Context, supplierId string, params *GetOrgSupplierParams, reqEditors ...RequestEditorFn) (*GetOrgSupplierResponse, error)
GetOrgSupplierWithResponse request returning *GetOrgSupplierResponse
func (*ClientWithResponses) GetPOWithResponse ¶
func (c *ClientWithResponses) GetPOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *GetPOParams, reqEditors ...RequestEditorFn) (*GetPOResponse, error)
GetPOWithResponse request returning *GetPOResponse
func (*ClientWithResponses) GetPaymentTermWithResponse ¶
func (c *ClientWithResponses) GetPaymentTermWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *GetPaymentTermParams, reqEditors ...RequestEditorFn) (*GetPaymentTermResponse, error)
GetPaymentTermWithResponse request returning *GetPaymentTermResponse
func (*ClientWithResponses) GetPolicyWithResponse ¶
func (c *ClientWithResponses) GetPolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *GetPolicyParams, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error)
GetPolicyWithResponse request returning *GetPolicyResponse
func (*ClientWithResponses) GetTagWithResponse ¶
func (c *ClientWithResponses) GetTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *GetTagParams, reqEditors ...RequestEditorFn) (*GetTagResponse, error)
GetTagWithResponse request returning *GetTagResponse
func (*ClientWithResponses) GetTaxRateWithResponse ¶
func (c *ClientWithResponses) GetTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *GetTaxRateParams, reqEditors ...RequestEditorFn) (*GetTaxRateResponse, error)
GetTaxRateWithResponse request returning *GetTaxRateResponse
func (*ClientWithResponses) GetTransactionWithResponse ¶
func (c *ClientWithResponses) GetTransactionWithResponse(ctx context.Context, transactionId string, reqEditors ...RequestEditorFn) (*GetTransactionResponse, error)
GetTransactionWithResponse request returning *GetTransactionResponse
func (*ClientWithResponses) GetTripWithResponse ¶
func (c *ClientWithResponses) GetTripWithResponse(ctx context.Context, tripId string, params *GetTripParams, reqEditors ...RequestEditorFn) (*GetTripResponse, error)
GetTripWithResponse request returning *GetTripResponse
func (*ClientWithResponses) GetUserWithResponse ¶
func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, userId string, params *GetUserParams, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
GetUserWithResponse request returning *GetUserResponse
func (*ClientWithResponses) ListCardAccountsWithResponse ¶
func (c *ClientWithResponses) ListCardAccountsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCardAccountsParams, reqEditors ...RequestEditorFn) (*ListCardAccountsResponse, error)
ListCardAccountsWithResponse request returning *ListCardAccountsResponse
func (*ClientWithResponses) ListCompanyCardsWithResponse ¶
func (c *ClientWithResponses) ListCompanyCardsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCompanyCardsParams, reqEditors ...RequestEditorFn) (*ListCompanyCardsResponse, error)
ListCompanyCardsWithResponse request returning *ListCompanyCardsResponse
func (*ClientWithResponses) ListCostObjectsWithResponse ¶
func (c *ClientWithResponses) ListCostObjectsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCostObjectsParams, reqEditors ...RequestEditorFn) (*ListCostObjectsResponse, error)
ListCostObjectsWithResponse request returning *ListCostObjectsResponse
func (*ClientWithResponses) ListEntitySupplierWithResponse ¶
func (c *ClientWithResponses) ListEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListEntitySupplierParams, reqEditors ...RequestEditorFn) (*ListEntitySupplierResponse, error)
ListEntitySupplierWithResponse request returning *ListEntitySupplierResponse
func (*ClientWithResponses) ListExpenseCategoriesWithResponse ¶
func (c *ClientWithResponses) ListExpenseCategoriesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExpenseCategoriesParams, reqEditors ...RequestEditorFn) (*ListExpenseCategoriesResponse, error)
ListExpenseCategoriesWithResponse request returning *ListExpenseCategoriesResponse
func (*ClientWithResponses) ListExpensesWithResponse ¶
func (c *ClientWithResponses) ListExpensesWithResponse(ctx context.Context, params *ListExpensesParams, reqEditors ...RequestEditorFn) (*ListExpensesResponse, error)
ListExpensesWithResponse request returning *ListExpensesResponse
func (*ClientWithResponses) ListExportJobsWithResponse ¶
func (c *ClientWithResponses) ListExportJobsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExportJobsParams, reqEditors ...RequestEditorFn) (*ListExportJobsResponse, error)
ListExportJobsWithResponse request returning *ListExportJobsResponse
func (*ClientWithResponses) ListExternalInvoicesWithResponse ¶
func (c *ClientWithResponses) ListExternalInvoicesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExternalInvoicesParams, reqEditors ...RequestEditorFn) (*ListExternalInvoicesResponse, error)
ListExternalInvoicesWithResponse request returning *ListExternalInvoicesResponse
func (*ClientWithResponses) ListFxRateSourcesWithResponse ¶
func (c *ClientWithResponses) ListFxRateSourcesWithResponse(ctx context.Context, params *ListFxRateSourcesParams, reqEditors ...RequestEditorFn) (*ListFxRateSourcesResponse, error)
ListFxRateSourcesWithResponse request returning *ListFxRateSourcesResponse
func (*ClientWithResponses) ListGRsWithResponse ¶
func (c *ClientWithResponses) ListGRsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListGRsParams, reqEditors ...RequestEditorFn) (*ListGRsResponse, error)
ListGRsWithResponse request returning *ListGRsResponse
func (*ClientWithResponses) ListInvoiceCategoriesWithResponse ¶
func (c *ClientWithResponses) ListInvoiceCategoriesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListInvoiceCategoriesParams, reqEditors ...RequestEditorFn) (*ListInvoiceCategoriesResponse, error)
ListInvoiceCategoriesWithResponse request returning *ListInvoiceCategoriesResponse
func (*ClientWithResponses) ListInvoicesWithResponse ¶
func (c *ClientWithResponses) ListInvoicesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error)
ListInvoicesWithResponse request returning *ListInvoicesResponse
func (*ClientWithResponses) ListLegalEntitiesWithResponse ¶
func (c *ClientWithResponses) ListLegalEntitiesWithResponse(ctx context.Context, params *ListLegalEntitiesParams, reqEditors ...RequestEditorFn) (*ListLegalEntitiesResponse, error)
ListLegalEntitiesWithResponse request returning *ListLegalEntitiesResponse
func (*ClientWithResponses) ListOrgSuppliersWithResponse ¶
func (c *ClientWithResponses) ListOrgSuppliersWithResponse(ctx context.Context, params *ListOrgSuppliersParams, reqEditors ...RequestEditorFn) (*ListOrgSuppliersResponse, error)
ListOrgSuppliersWithResponse request returning *ListOrgSuppliersResponse
func (*ClientWithResponses) ListPOsWithResponse ¶
func (c *ClientWithResponses) ListPOsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPOsParams, reqEditors ...RequestEditorFn) (*ListPOsResponse, error)
ListPOsWithResponse request returning *ListPOsResponse
func (*ClientWithResponses) ListPaymentTermsWithResponse ¶
func (c *ClientWithResponses) ListPaymentTermsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPaymentTermsParams, reqEditors ...RequestEditorFn) (*ListPaymentTermsResponse, error)
ListPaymentTermsWithResponse request returning *ListPaymentTermsResponse
func (*ClientWithResponses) ListPoliciesWithResponse ¶
func (c *ClientWithResponses) ListPoliciesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*ListPoliciesResponse, error)
ListPoliciesWithResponse request returning *ListPoliciesResponse
func (*ClientWithResponses) ListTagsWithResponse ¶
func (c *ClientWithResponses) ListTagsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResponse, error)
ListTagsWithResponse request returning *ListTagsResponse
func (*ClientWithResponses) ListTaxRatesWithResponse ¶
func (c *ClientWithResponses) ListTaxRatesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListTaxRatesParams, reqEditors ...RequestEditorFn) (*ListTaxRatesResponse, error)
ListTaxRatesWithResponse request returning *ListTaxRatesResponse
func (*ClientWithResponses) ListTransactionsWithResponse ¶
func (c *ClientWithResponses) ListTransactionsWithResponse(ctx context.Context, params *ListTransactionsParams, reqEditors ...RequestEditorFn) (*ListTransactionsResponse, error)
ListTransactionsWithResponse request returning *ListTransactionsResponse
func (*ClientWithResponses) ListTripsWithResponse ¶
func (c *ClientWithResponses) ListTripsWithResponse(ctx context.Context, params *ListTripsParams, reqEditors ...RequestEditorFn) (*ListTripsResponse, error)
ListTripsWithResponse request returning *ListTripsResponse
func (*ClientWithResponses) ListUsersWithResponse ¶
func (c *ClientWithResponses) ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
ListUsersWithResponse request returning *ListUsersResponse
func (*ClientWithResponses) ModifyCompanyCardWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyCompanyCardWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *ModifyCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyCompanyCardResponse, error)
ModifyCompanyCardWithBodyWithResponse request with arbitrary body returning *ModifyCompanyCardResponse
func (*ClientWithResponses) ModifyCompanyCardWithResponse ¶
func (c *ClientWithResponses) ModifyCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *ModifyCompanyCardParams, body ModifyCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyCompanyCardResponse, error)
func (*ClientWithResponses) ModifyCostObjectWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyCostObjectWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *ModifyCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyCostObjectResponse, error)
ModifyCostObjectWithBodyWithResponse request with arbitrary body returning *ModifyCostObjectResponse
func (*ClientWithResponses) ModifyCostObjectWithResponse ¶
func (c *ClientWithResponses) ModifyCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *ModifyCostObjectParams, body ModifyCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyCostObjectResponse, error)
func (*ClientWithResponses) ModifyEntitySupplierWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyEntitySupplierWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *ModifyEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyEntitySupplierResponse, error)
ModifyEntitySupplierWithBodyWithResponse request with arbitrary body returning *ModifyEntitySupplierResponse
func (*ClientWithResponses) ModifyEntitySupplierWithResponse ¶
func (c *ClientWithResponses) ModifyEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *ModifyEntitySupplierParams, body ModifyEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyEntitySupplierResponse, error)
func (*ClientWithResponses) ModifyExpenseCategoryWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyExpenseCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyExpenseCategoryResponse, error)
ModifyExpenseCategoryWithBodyWithResponse request with arbitrary body returning *ModifyExpenseCategoryResponse
func (*ClientWithResponses) ModifyExpenseCategoryWithResponse ¶
func (c *ClientWithResponses) ModifyExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyExpenseCategoryParams, body ModifyExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyExpenseCategoryResponse, error)
func (*ClientWithResponses) ModifyExternalInvoiceWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyExternalInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *ModifyExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyExternalInvoiceResponse, error)
ModifyExternalInvoiceWithBodyWithResponse request with arbitrary body returning *ModifyExternalInvoiceResponse
func (*ClientWithResponses) ModifyExternalInvoiceWithResponse ¶
func (c *ClientWithResponses) ModifyExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *ModifyExternalInvoiceParams, body ModifyExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyExternalInvoiceResponse, error)
func (*ClientWithResponses) ModifyGRWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyGRWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *ModifyGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyGRResponse, error)
ModifyGRWithBodyWithResponse request with arbitrary body returning *ModifyGRResponse
func (*ClientWithResponses) ModifyGRWithResponse ¶
func (c *ClientWithResponses) ModifyGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *ModifyGRParams, body ModifyGRJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyGRResponse, error)
func (*ClientWithResponses) ModifyInvoiceCategoryWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyInvoiceCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyInvoiceCategoryResponse, error)
ModifyInvoiceCategoryWithBodyWithResponse request with arbitrary body returning *ModifyInvoiceCategoryResponse
func (*ClientWithResponses) ModifyInvoiceCategoryWithResponse ¶
func (c *ClientWithResponses) ModifyInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyInvoiceCategoryParams, body ModifyInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyInvoiceCategoryResponse, error)
func (*ClientWithResponses) ModifyOrgSupplierWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyOrgSupplierWithBodyWithResponse(ctx context.Context, supplierId string, params *ModifyOrgSupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyOrgSupplierResponse, error)
ModifyOrgSupplierWithBodyWithResponse request with arbitrary body returning *ModifyOrgSupplierResponse
func (*ClientWithResponses) ModifyOrgSupplierWithResponse ¶
func (c *ClientWithResponses) ModifyOrgSupplierWithResponse(ctx context.Context, supplierId string, params *ModifyOrgSupplierParams, body ModifyOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyOrgSupplierResponse, error)
func (*ClientWithResponses) ModifyPOWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyPOWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *ModifyPOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyPOResponse, error)
ModifyPOWithBodyWithResponse request with arbitrary body returning *ModifyPOResponse
func (*ClientWithResponses) ModifyPOWithResponse ¶
func (c *ClientWithResponses) ModifyPOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *ModifyPOParams, body ModifyPOJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyPOResponse, error)
func (*ClientWithResponses) ModifyPaymentTermWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyPaymentTermWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *ModifyPaymentTermParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyPaymentTermResponse, error)
ModifyPaymentTermWithBodyWithResponse request with arbitrary body returning *ModifyPaymentTermResponse
func (*ClientWithResponses) ModifyPaymentTermWithResponse ¶
func (c *ClientWithResponses) ModifyPaymentTermWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *ModifyPaymentTermParams, body ModifyPaymentTermJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyPaymentTermResponse, error)
func (*ClientWithResponses) ModifyPolicyWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyPolicyWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *ModifyPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyPolicyResponse, error)
ModifyPolicyWithBodyWithResponse request with arbitrary body returning *ModifyPolicyResponse
func (*ClientWithResponses) ModifyPolicyWithResponse ¶
func (c *ClientWithResponses) ModifyPolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *ModifyPolicyParams, body ModifyPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyPolicyResponse, error)
func (*ClientWithResponses) ModifyTagWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyTagWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *ModifyTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyTagResponse, error)
ModifyTagWithBodyWithResponse request with arbitrary body returning *ModifyTagResponse
func (*ClientWithResponses) ModifyTagWithResponse ¶
func (c *ClientWithResponses) ModifyTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *ModifyTagParams, body ModifyTagJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyTagResponse, error)
func (*ClientWithResponses) ModifyTaxRateWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyTaxRateWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *ModifyTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyTaxRateResponse, error)
ModifyTaxRateWithBodyWithResponse request with arbitrary body returning *ModifyTaxRateResponse
func (*ClientWithResponses) ModifyTaxRateWithResponse ¶
func (c *ClientWithResponses) ModifyTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *ModifyTaxRateParams, body ModifyTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyTaxRateResponse, error)
func (*ClientWithResponses) ModifyUserWithBodyWithResponse ¶
func (c *ClientWithResponses) ModifyUserWithBodyWithResponse(ctx context.Context, userId string, params *ModifyUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyUserResponse, error)
ModifyUserWithBodyWithResponse request with arbitrary body returning *ModifyUserResponse
func (*ClientWithResponses) ModifyUserWithResponse ¶
func (c *ClientWithResponses) ModifyUserWithResponse(ctx context.Context, userId string, params *ModifyUserParams, body ModifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyUserResponse, error)
func (*ClientWithResponses) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithBodyWithResponse ¶
func (c *ClientWithResponses) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse, error)
PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithBodyWithResponse request with arbitrary body returning *PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse
func (*ClientWithResponses) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithResponse ¶
func (c *ClientWithResponses) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams, body PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse, error)
func (*ClientWithResponses) TriggerExpenseExportWithBodyWithResponse ¶
func (c *ClientWithResponses) TriggerExpenseExportWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerExpenseExportResponse, error)
TriggerExpenseExportWithBodyWithResponse request with arbitrary body returning *TriggerExpenseExportResponse
func (*ClientWithResponses) TriggerExpenseExportWithResponse ¶
func (c *ClientWithResponses) TriggerExpenseExportWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, body TriggerExpenseExportJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerExpenseExportResponse, error)
func (*ClientWithResponses) TriggerInvoiceExportWithBodyWithResponse ¶
func (c *ClientWithResponses) TriggerInvoiceExportWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, params *TriggerInvoiceExportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerInvoiceExportResponse, error)
TriggerInvoiceExportWithBodyWithResponse request with arbitrary body returning *TriggerInvoiceExportResponse
func (*ClientWithResponses) TriggerInvoiceExportWithResponse ¶
func (c *ClientWithResponses) TriggerInvoiceExportWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, params *TriggerInvoiceExportParams, body TriggerInvoiceExportJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerInvoiceExportResponse, error)
func (*ClientWithResponses) UpdateCompanyCardWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCompanyCardWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *UpdateCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCompanyCardResponse, error)
UpdateCompanyCardWithBodyWithResponse request with arbitrary body returning *UpdateCompanyCardResponse
func (*ClientWithResponses) UpdateCompanyCardWithResponse ¶
func (c *ClientWithResponses) UpdateCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *UpdateCompanyCardParams, body UpdateCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCompanyCardResponse, error)
func (*ClientWithResponses) UpdateCostObjectWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateCostObjectWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *UpdateCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCostObjectResponse, error)
UpdateCostObjectWithBodyWithResponse request with arbitrary body returning *UpdateCostObjectResponse
func (*ClientWithResponses) UpdateCostObjectWithResponse ¶
func (c *ClientWithResponses) UpdateCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *UpdateCostObjectParams, body UpdateCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCostObjectResponse, error)
func (*ClientWithResponses) UpdateEntitySupplierWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateEntitySupplierWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *UpdateEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEntitySupplierResponse, error)
UpdateEntitySupplierWithBodyWithResponse request with arbitrary body returning *UpdateEntitySupplierResponse
func (*ClientWithResponses) UpdateEntitySupplierWithResponse ¶
func (c *ClientWithResponses) UpdateEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *UpdateEntitySupplierParams, body UpdateEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEntitySupplierResponse, error)
func (*ClientWithResponses) UpdateExpenseCategoryWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateExpenseCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExpenseCategoryResponse, error)
UpdateExpenseCategoryWithBodyWithResponse request with arbitrary body returning *UpdateExpenseCategoryResponse
func (*ClientWithResponses) UpdateExpenseCategoryWithResponse ¶
func (c *ClientWithResponses) UpdateExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateExpenseCategoryParams, body UpdateExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateExpenseCategoryResponse, error)
func (*ClientWithResponses) UpdateExternalInvoiceWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateExternalInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *UpdateExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExternalInvoiceResponse, error)
UpdateExternalInvoiceWithBodyWithResponse request with arbitrary body returning *UpdateExternalInvoiceResponse
func (*ClientWithResponses) UpdateExternalInvoiceWithResponse ¶
func (c *ClientWithResponses) UpdateExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *UpdateExternalInvoiceParams, body UpdateExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateExternalInvoiceResponse, error)
func (*ClientWithResponses) UpdateGRWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateGRWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *UpdateGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGRResponse, error)
UpdateGRWithBodyWithResponse request with arbitrary body returning *UpdateGRResponse
func (*ClientWithResponses) UpdateGRWithResponse ¶
func (c *ClientWithResponses) UpdateGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *UpdateGRParams, body UpdateGRJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGRResponse, error)
func (*ClientWithResponses) UpdateInvoiceCategoryWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateInvoiceCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceCategoryResponse, error)
UpdateInvoiceCategoryWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceCategoryResponse
func (*ClientWithResponses) UpdateInvoiceCategoryWithResponse ¶
func (c *ClientWithResponses) UpdateInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateInvoiceCategoryParams, body UpdateInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceCategoryResponse, error)
func (*ClientWithResponses) UpdateInvoiceWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *UpdateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)
UpdateInvoiceWithBodyWithResponse request with arbitrary body returning *UpdateInvoiceResponse
func (*ClientWithResponses) UpdateInvoiceWithResponse ¶
func (c *ClientWithResponses) UpdateInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *UpdateInvoiceParams, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)
func (*ClientWithResponses) UpdateOrgSupplierWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateOrgSupplierWithBodyWithResponse(ctx context.Context, supplierId string, params *UpdateOrgSupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrgSupplierResponse, error)
UpdateOrgSupplierWithBodyWithResponse request with arbitrary body returning *UpdateOrgSupplierResponse
func (*ClientWithResponses) UpdateOrgSupplierWithResponse ¶
func (c *ClientWithResponses) UpdateOrgSupplierWithResponse(ctx context.Context, supplierId string, params *UpdateOrgSupplierParams, body UpdateOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrgSupplierResponse, error)
func (*ClientWithResponses) UpdatePOWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdatePOWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *UpdatePOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePOResponse, error)
UpdatePOWithBodyWithResponse request with arbitrary body returning *UpdatePOResponse
func (*ClientWithResponses) UpdatePOWithResponse ¶
func (c *ClientWithResponses) UpdatePOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *UpdatePOParams, body UpdatePOJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePOResponse, error)
func (*ClientWithResponses) UpdatePolicyWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdatePolicyWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *UpdatePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error)
UpdatePolicyWithBodyWithResponse request with arbitrary body returning *UpdatePolicyResponse
func (*ClientWithResponses) UpdatePolicyWithResponse ¶
func (c *ClientWithResponses) UpdatePolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *UpdatePolicyParams, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error)
func (*ClientWithResponses) UpdateTagWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTagWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *UpdateTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error)
UpdateTagWithBodyWithResponse request with arbitrary body returning *UpdateTagResponse
func (*ClientWithResponses) UpdateTagWithResponse ¶
func (c *ClientWithResponses) UpdateTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *UpdateTagParams, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error)
func (*ClientWithResponses) UpdateTaxRateWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateTaxRateWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *UpdateTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTaxRateResponse, error)
UpdateTaxRateWithBodyWithResponse request with arbitrary body returning *UpdateTaxRateResponse
func (*ClientWithResponses) UpdateTaxRateWithResponse ¶
func (c *ClientWithResponses) UpdateTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *UpdateTaxRateParams, body UpdateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTaxRateResponse, error)
func (*ClientWithResponses) UpdateUserWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, userId string, params *UpdateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse
func (*ClientWithResponses) UpdateUserWithResponse ¶
func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, userId string, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
func (*ClientWithResponses) UploadAiInvoiceWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadAiInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *UploadAiInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadAiInvoiceResponse, error)
UploadAiInvoiceWithBodyWithResponse request with arbitrary body returning *UploadAiInvoiceResponse
func (*ClientWithResponses) UploadEinvoiceWithBodyWithResponse ¶
func (c *ClientWithResponses) UploadEinvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *UploadEinvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadEinvoiceResponse, error)
UploadEinvoiceWithBodyWithResponse request with arbitrary body returning *UploadEinvoiceResponse
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListExpensesWithResponse request
ListExpensesWithResponse(ctx context.Context, params *ListExpensesParams, reqEditors ...RequestEditorFn) (*ListExpensesResponse, error)
// GetExpenseWithResponse request
GetExpenseWithResponse(ctx context.Context, expenseId string, params *GetExpenseParams, reqEditors ...RequestEditorFn) (*GetExpenseResponse, error)
// GetExpenseAttachmentWithResponse request
GetExpenseAttachmentWithResponse(ctx context.Context, expenseId string, attachmentName string, params *GetExpenseAttachmentParams, reqEditors ...RequestEditorFn) (*GetExpenseAttachmentResponse, error)
// GetExpenseReceiptWithResponse request
GetExpenseReceiptWithResponse(ctx context.Context, expenseId string, params *GetExpenseReceiptParams, reqEditors ...RequestEditorFn) (*GetExpenseReceiptResponse, error)
// ListFxRateSourcesWithResponse request
ListFxRateSourcesWithResponse(ctx context.Context, params *ListFxRateSourcesParams, reqEditors ...RequestEditorFn) (*ListFxRateSourcesResponse, error)
// CreateFxRateSourceWithBodyWithResponse request with any body
CreateFxRateSourceWithBodyWithResponse(ctx context.Context, params *CreateFxRateSourceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateFxRateSourceResponse, error)
CreateFxRateSourceWithResponse(ctx context.Context, params *CreateFxRateSourceParams, body CreateFxRateSourceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateFxRateSourceResponse, error)
// ApplyFxRateWithBodyWithResponse request with any body
ApplyFxRateWithBodyWithResponse(ctx context.Context, fxRateSourceId string, isoDate string, params *ApplyFxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ApplyFxRateResponse, error)
ApplyFxRateWithResponse(ctx context.Context, fxRateSourceId string, isoDate string, params *ApplyFxRateParams, body ApplyFxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*ApplyFxRateResponse, error)
// ListLegalEntitiesWithResponse request
ListLegalEntitiesWithResponse(ctx context.Context, params *ListLegalEntitiesParams, reqEditors ...RequestEditorFn) (*ListLegalEntitiesResponse, error)
// GetLegalEntityWithResponse request
GetLegalEntityWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *GetLegalEntityParams, reqEditors ...RequestEditorFn) (*GetLegalEntityResponse, error)
// ListCardAccountsWithResponse request
ListCardAccountsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCardAccountsParams, reqEditors ...RequestEditorFn) (*ListCardAccountsResponse, error)
// GetCardAccountWithResponse request
GetCardAccountWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, reqEditors ...RequestEditorFn) (*GetCardAccountResponse, error)
// GetBalanceWithResponse request
GetBalanceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, cardAccountId string, reqEditors ...RequestEditorFn) (*GetBalanceResponse, error)
// ListExpenseCategoriesWithResponse request
ListExpenseCategoriesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExpenseCategoriesParams, reqEditors ...RequestEditorFn) (*ListExpenseCategoriesResponse, error)
// CreateExpenseCategoryWithBodyWithResponse request with any body
CreateExpenseCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExpenseCategoryResponse, error)
CreateExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExpenseCategoryParams, body CreateExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExpenseCategoryResponse, error)
// GetExpenseCategoryWithResponse request
GetExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *GetExpenseCategoryParams, reqEditors ...RequestEditorFn) (*GetExpenseCategoryResponse, error)
// ModifyExpenseCategoryWithBodyWithResponse request with any body
ModifyExpenseCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyExpenseCategoryResponse, error)
ModifyExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyExpenseCategoryParams, body ModifyExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyExpenseCategoryResponse, error)
// UpdateExpenseCategoryWithBodyWithResponse request with any body
UpdateExpenseCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateExpenseCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExpenseCategoryResponse, error)
UpdateExpenseCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateExpenseCategoryParams, body UpdateExpenseCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateExpenseCategoryResponse, error)
// ListCompanyCardsWithResponse request
ListCompanyCardsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCompanyCardsParams, reqEditors ...RequestEditorFn) (*ListCompanyCardsResponse, error)
// CreateCompanyCardWithBodyWithResponse request with any body
CreateCompanyCardWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCompanyCardResponse, error)
CreateCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCompanyCardParams, body CreateCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCompanyCardResponse, error)
// GetCompanyCardWithResponse request
GetCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *GetCompanyCardParams, reqEditors ...RequestEditorFn) (*GetCompanyCardResponse, error)
// ModifyCompanyCardWithBodyWithResponse request with any body
ModifyCompanyCardWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *ModifyCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyCompanyCardResponse, error)
ModifyCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *ModifyCompanyCardParams, body ModifyCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyCompanyCardResponse, error)
// UpdateCompanyCardWithBodyWithResponse request with any body
UpdateCompanyCardWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *UpdateCompanyCardParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCompanyCardResponse, error)
UpdateCompanyCardWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params *UpdateCompanyCardParams, body UpdateCompanyCardJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCompanyCardResponse, error)
// ListCostObjectsWithResponse request
ListCostObjectsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListCostObjectsParams, reqEditors ...RequestEditorFn) (*ListCostObjectsResponse, error)
// CreateCostObjectWithBodyWithResponse request with any body
CreateCostObjectWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCostObjectResponse, error)
CreateCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateCostObjectParams, body CreateCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCostObjectResponse, error)
// DeleteCostObjectWithResponse request
DeleteCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *DeleteCostObjectParams, reqEditors ...RequestEditorFn) (*DeleteCostObjectResponse, error)
// GetCostObjectWithResponse request
GetCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *GetCostObjectParams, reqEditors ...RequestEditorFn) (*GetCostObjectResponse, error)
// ModifyCostObjectWithBodyWithResponse request with any body
ModifyCostObjectWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *ModifyCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyCostObjectResponse, error)
ModifyCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *ModifyCostObjectParams, body ModifyCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyCostObjectResponse, error)
// UpdateCostObjectWithBodyWithResponse request with any body
UpdateCostObjectWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *UpdateCostObjectParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCostObjectResponse, error)
UpdateCostObjectWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params *UpdateCostObjectParams, body UpdateCostObjectJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCostObjectResponse, error)
// TriggerExpenseExportWithBodyWithResponse request with any body
TriggerExpenseExportWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerExpenseExportResponse, error)
TriggerExpenseExportWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, body TriggerExpenseExportJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerExpenseExportResponse, error)
// ListExportJobsWithResponse request
ListExportJobsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExportJobsParams, reqEditors ...RequestEditorFn) (*ListExportJobsResponse, error)
// GetExportStatusWithResponse request
GetExportStatusWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, params *GetExportStatusParams, reqEditors ...RequestEditorFn) (*GetExportStatusResponse, error)
// GetExportArefactsWithResponse request
GetExportArefactsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, params *GetExportArefactsParams, reqEditors ...RequestEditorFn) (*GetExportArefactsResponse, error)
// ListExternalInvoicesWithResponse request
ListExternalInvoicesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListExternalInvoicesParams, reqEditors ...RequestEditorFn) (*ListExternalInvoicesResponse, error)
// CreateExternalInvoiceWithBodyWithResponse request with any body
CreateExternalInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateExternalInvoiceResponse, error)
CreateExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateExternalInvoiceParams, body CreateExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateExternalInvoiceResponse, error)
// GetExternalInvoiceWithResponse request
GetExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *GetExternalInvoiceParams, reqEditors ...RequestEditorFn) (*GetExternalInvoiceResponse, error)
// ModifyExternalInvoiceWithBodyWithResponse request with any body
ModifyExternalInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *ModifyExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyExternalInvoiceResponse, error)
ModifyExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *ModifyExternalInvoiceParams, body ModifyExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyExternalInvoiceResponse, error)
// UpdateExternalInvoiceWithBodyWithResponse request with any body
UpdateExternalInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *UpdateExternalInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateExternalInvoiceResponse, error)
UpdateExternalInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params *UpdateExternalInvoiceParams, body UpdateExternalInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateExternalInvoiceResponse, error)
// ListInvoiceCategoriesWithResponse request
ListInvoiceCategoriesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListInvoiceCategoriesParams, reqEditors ...RequestEditorFn) (*ListInvoiceCategoriesResponse, error)
// CreateInvoiceCategoryWithBodyWithResponse request with any body
CreateInvoiceCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceCategoryResponse, error)
CreateInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceCategoryParams, body CreateInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceCategoryResponse, error)
// GetInvoiceCategoryWithResponse request
GetInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *GetInvoiceCategoryParams, reqEditors ...RequestEditorFn) (*GetInvoiceCategoryResponse, error)
// ModifyInvoiceCategoryWithBodyWithResponse request with any body
ModifyInvoiceCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyInvoiceCategoryResponse, error)
ModifyInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *ModifyInvoiceCategoryParams, body ModifyInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyInvoiceCategoryResponse, error)
// UpdateInvoiceCategoryWithBodyWithResponse request with any body
UpdateInvoiceCategoryWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateInvoiceCategoryParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceCategoryResponse, error)
UpdateInvoiceCategoryWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, categoryId string, params *UpdateInvoiceCategoryParams, body UpdateInvoiceCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceCategoryResponse, error)
// TriggerInvoiceExportWithBodyWithResponse request with any body
TriggerInvoiceExportWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, params *TriggerInvoiceExportParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*TriggerInvoiceExportResponse, error)
TriggerInvoiceExportWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, exportFacility string, params *TriggerInvoiceExportParams, body TriggerInvoiceExportJSONRequestBody, reqEditors ...RequestEditorFn) (*TriggerInvoiceExportResponse, error)
// ListGRsWithResponse request
ListGRsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListGRsParams, reqEditors ...RequestEditorFn) (*ListGRsResponse, error)
// CreateGRWithBodyWithResponse request with any body
CreateGRWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateGRResponse, error)
CreateGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateGRParams, body CreateGRJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateGRResponse, error)
// GetGRWithResponse request
GetGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *GetGRParams, reqEditors ...RequestEditorFn) (*GetGRResponse, error)
// ModifyGRWithBodyWithResponse request with any body
ModifyGRWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *ModifyGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyGRResponse, error)
ModifyGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *ModifyGRParams, body ModifyGRJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyGRResponse, error)
// UpdateGRWithBodyWithResponse request with any body
UpdateGRWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *UpdateGRParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateGRResponse, error)
UpdateGRWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params *UpdateGRParams, body UpdateGRJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateGRResponse, error)
// ListPaymentTermsWithResponse request
ListPaymentTermsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPaymentTermsParams, reqEditors ...RequestEditorFn) (*ListPaymentTermsResponse, error)
// CreatePaymentTermWithBodyWithResponse request with any body
CreatePaymentTermWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePaymentTermParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePaymentTermResponse, error)
CreatePaymentTermWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePaymentTermParams, body CreatePaymentTermJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePaymentTermResponse, error)
// GetPaymentTermWithResponse request
GetPaymentTermWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *GetPaymentTermParams, reqEditors ...RequestEditorFn) (*GetPaymentTermResponse, error)
// ModifyPaymentTermWithBodyWithResponse request with any body
ModifyPaymentTermWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *ModifyPaymentTermParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyPaymentTermResponse, error)
ModifyPaymentTermWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *ModifyPaymentTermParams, body ModifyPaymentTermJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyPaymentTermResponse, error)
// PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithBodyWithResponse request with any body
PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse, error)
PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params *PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams, body PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse, error)
// ListPOsWithResponse request
ListPOsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPOsParams, reqEditors ...RequestEditorFn) (*ListPOsResponse, error)
// CreatePOWithBodyWithResponse request with any body
CreatePOWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePOResponse, error)
CreatePOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePOParams, body CreatePOJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePOResponse, error)
// GetPOWithResponse request
GetPOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *GetPOParams, reqEditors ...RequestEditorFn) (*GetPOResponse, error)
// ModifyPOWithBodyWithResponse request with any body
ModifyPOWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *ModifyPOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyPOResponse, error)
ModifyPOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *ModifyPOParams, body ModifyPOJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyPOResponse, error)
// UpdatePOWithBodyWithResponse request with any body
UpdatePOWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *UpdatePOParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePOResponse, error)
UpdatePOWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params *UpdatePOParams, body UpdatePOJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePOResponse, error)
// ListInvoicesWithResponse request
ListInvoicesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListInvoicesParams, reqEditors ...RequestEditorFn) (*ListInvoicesResponse, error)
// CreateInvoiceWithBodyWithResponse request with any body
CreateInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error)
CreateInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateInvoiceParams, body CreateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInvoiceResponse, error)
// UploadEinvoiceWithBodyWithResponse request with any body
UploadEinvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *UploadEinvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadEinvoiceResponse, error)
// UploadAiInvoiceWithBodyWithResponse request with any body
UploadAiInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *UploadAiInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadAiInvoiceResponse, error)
// GetInvoiceWithResponse request
GetInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoiceParams, reqEditors ...RequestEditorFn) (*GetInvoiceResponse, error)
// UpdateInvoiceWithBodyWithResponse request with any body
UpdateInvoiceWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *UpdateInvoiceParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)
UpdateInvoiceWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *UpdateInvoiceParams, body UpdateInvoiceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInvoiceResponse, error)
// GetInvoiceBase64WithResponse request
GetInvoiceBase64WithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoiceBase64Params, reqEditors ...RequestEditorFn) (*GetInvoiceBase64Response, error)
// GetInvoicePdfWithResponse request
GetInvoicePdfWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params *GetInvoicePdfParams, reqEditors ...RequestEditorFn) (*GetInvoicePdfResponse, error)
// ListPoliciesWithResponse request
ListPoliciesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListPoliciesParams, reqEditors ...RequestEditorFn) (*ListPoliciesResponse, error)
// CreatePolicyWithBodyWithResponse request with any body
CreatePolicyWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error)
CreatePolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreatePolicyParams, body CreatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePolicyResponse, error)
// GetPolicyWithResponse request
GetPolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *GetPolicyParams, reqEditors ...RequestEditorFn) (*GetPolicyResponse, error)
// ModifyPolicyWithBodyWithResponse request with any body
ModifyPolicyWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *ModifyPolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyPolicyResponse, error)
ModifyPolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *ModifyPolicyParams, body ModifyPolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyPolicyResponse, error)
// UpdatePolicyWithBodyWithResponse request with any body
UpdatePolicyWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *UpdatePolicyParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error)
UpdatePolicyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, policyId string, params *UpdatePolicyParams, body UpdatePolicyJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePolicyResponse, error)
// ListEntitySupplierWithResponse request
ListEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListEntitySupplierParams, reqEditors ...RequestEditorFn) (*ListEntitySupplierResponse, error)
// CreateEntitySupplierWithBodyWithResponse request with any body
CreateEntitySupplierWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateEntitySupplierResponse, error)
CreateEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateEntitySupplierParams, body CreateEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEntitySupplierResponse, error)
// GetEntitySupplierWithResponse request
GetEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *GetEntitySupplierParams, reqEditors ...RequestEditorFn) (*GetEntitySupplierResponse, error)
// ModifyEntitySupplierWithBodyWithResponse request with any body
ModifyEntitySupplierWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *ModifyEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyEntitySupplierResponse, error)
ModifyEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *ModifyEntitySupplierParams, body ModifyEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyEntitySupplierResponse, error)
// UpdateEntitySupplierWithBodyWithResponse request with any body
UpdateEntitySupplierWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *UpdateEntitySupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEntitySupplierResponse, error)
UpdateEntitySupplierWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, supplierId string, params *UpdateEntitySupplierParams, body UpdateEntitySupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEntitySupplierResponse, error)
// ListTagsWithResponse request
ListTagsWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListTagsParams, reqEditors ...RequestEditorFn) (*ListTagsResponse, error)
// CreateTagWithBodyWithResponse request with any body
CreateTagWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTagResponse, error)
CreateTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTagParams, body CreateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTagResponse, error)
// DeleteTagWithResponse request
DeleteTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *DeleteTagParams, reqEditors ...RequestEditorFn) (*DeleteTagResponse, error)
// GetTagWithResponse request
GetTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *GetTagParams, reqEditors ...RequestEditorFn) (*GetTagResponse, error)
// ModifyTagWithBodyWithResponse request with any body
ModifyTagWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *ModifyTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyTagResponse, error)
ModifyTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *ModifyTagParams, body ModifyTagJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyTagResponse, error)
// UpdateTagWithBodyWithResponse request with any body
UpdateTagWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *UpdateTagParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error)
UpdateTagWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, tagId string, params *UpdateTagParams, body UpdateTagJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTagResponse, error)
// ListTaxRatesWithResponse request
ListTaxRatesWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *ListTaxRatesParams, reqEditors ...RequestEditorFn) (*ListTaxRatesResponse, error)
// CreateTaxRateWithBodyWithResponse request with any body
CreateTaxRateWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateTaxRateResponse, error)
CreateTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, params *CreateTaxRateParams, body CreateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateTaxRateResponse, error)
// GetTaxRateWithResponse request
GetTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *GetTaxRateParams, reqEditors ...RequestEditorFn) (*GetTaxRateResponse, error)
// ModifyTaxRateWithBodyWithResponse request with any body
ModifyTaxRateWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *ModifyTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyTaxRateResponse, error)
ModifyTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *ModifyTaxRateParams, body ModifyTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyTaxRateResponse, error)
// UpdateTaxRateWithBodyWithResponse request with any body
UpdateTaxRateWithBodyWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *UpdateTaxRateParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateTaxRateResponse, error)
UpdateTaxRateWithResponse(ctx context.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params *UpdateTaxRateParams, body UpdateTaxRateJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateTaxRateResponse, error)
// ListOrgSuppliersWithResponse request
ListOrgSuppliersWithResponse(ctx context.Context, params *ListOrgSuppliersParams, reqEditors ...RequestEditorFn) (*ListOrgSuppliersResponse, error)
// CreateOrgSupplierWithBodyWithResponse request with any body
CreateOrgSupplierWithBodyWithResponse(ctx context.Context, params *CreateOrgSupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrgSupplierResponse, error)
CreateOrgSupplierWithResponse(ctx context.Context, params *CreateOrgSupplierParams, body CreateOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrgSupplierResponse, error)
// GetOrgSupplierWithResponse request
GetOrgSupplierWithResponse(ctx context.Context, supplierId string, params *GetOrgSupplierParams, reqEditors ...RequestEditorFn) (*GetOrgSupplierResponse, error)
// ModifyOrgSupplierWithBodyWithResponse request with any body
ModifyOrgSupplierWithBodyWithResponse(ctx context.Context, supplierId string, params *ModifyOrgSupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyOrgSupplierResponse, error)
ModifyOrgSupplierWithResponse(ctx context.Context, supplierId string, params *ModifyOrgSupplierParams, body ModifyOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyOrgSupplierResponse, error)
// UpdateOrgSupplierWithBodyWithResponse request with any body
UpdateOrgSupplierWithBodyWithResponse(ctx context.Context, supplierId string, params *UpdateOrgSupplierParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrgSupplierResponse, error)
UpdateOrgSupplierWithResponse(ctx context.Context, supplierId string, params *UpdateOrgSupplierParams, body UpdateOrgSupplierJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrgSupplierResponse, error)
// ListTransactionsWithResponse request
ListTransactionsWithResponse(ctx context.Context, params *ListTransactionsParams, reqEditors ...RequestEditorFn) (*ListTransactionsResponse, error)
// AddTransactionWithBodyWithResponse request with any body
AddTransactionWithBodyWithResponse(ctx context.Context, params *AddTransactionParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddTransactionResponse, error)
AddTransactionWithResponse(ctx context.Context, params *AddTransactionParams, body AddTransactionJSONRequestBody, reqEditors ...RequestEditorFn) (*AddTransactionResponse, error)
// GetTransactionWithResponse request
GetTransactionWithResponse(ctx context.Context, transactionId string, reqEditors ...RequestEditorFn) (*GetTransactionResponse, error)
// ListTripsWithResponse request
ListTripsWithResponse(ctx context.Context, params *ListTripsParams, reqEditors ...RequestEditorFn) (*ListTripsResponse, error)
// GetTripWithResponse request
GetTripWithResponse(ctx context.Context, tripId string, params *GetTripParams, reqEditors ...RequestEditorFn) (*GetTripResponse, error)
// ListUsersWithResponse request
ListUsersWithResponse(ctx context.Context, params *ListUsersParams, reqEditors ...RequestEditorFn) (*ListUsersResponse, error)
// CreateUserWithBodyWithResponse request with any body
CreateUserWithBodyWithResponse(ctx context.Context, params *CreateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
CreateUserWithResponse(ctx context.Context, params *CreateUserParams, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)
// DeleteUserWithResponse request
DeleteUserWithResponse(ctx context.Context, userId string, params *DeleteUserParams, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
// GetUserWithResponse request
GetUserWithResponse(ctx context.Context, userId string, params *GetUserParams, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
// ModifyUserWithBodyWithResponse request with any body
ModifyUserWithBodyWithResponse(ctx context.Context, userId string, params *ModifyUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*ModifyUserResponse, error)
ModifyUserWithResponse(ctx context.Context, userId string, params *ModifyUserParams, body ModifyUserJSONRequestBody, reqEditors ...RequestEditorFn) (*ModifyUserResponse, error)
// UpdateUserWithBodyWithResponse request with any body
UpdateUserWithBodyWithResponse(ctx context.Context, userId string, params *UpdateUserParams, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
UpdateUserWithResponse(ctx context.Context, userId string, params *UpdateUserParams, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CompanyCard ¶
type CompanyCard struct {
// AccountReference Creditor number (ERP).
AccountReference string `json:"accountReference"`
// CardReference External reference to the company card.
CardReference *string `json:"cardReference"`
// Currency Currency of the card. ISO 4217 three-letter code.
Currency string `json:"currency"`
// Description Description of the card.
Description *string `json:"description"`
// Id Yokoy unique ID of the card.
Id *string `json:"id,omitempty"`
// Name Name of the card. This name is used to identify the card in Yokoy only.
Name string `json:"name"`
// Number The card number. Any string can be supplied. Only the last four characters are returned. The renaming digits are padded with stars. Queries can only be made using the `endswith“ operator on four or less characters. For example, 'number ew "1234"'.
Number string `json:"number"`
// OwnerId Yokoy unique ID of the user who owns the card.
OwnerId string `json:"ownerId"`
// StatusActive Status of the card, whether the card is active or inactive.
StatusActive bool `json:"statusActive"`
}
CompanyCard defines model for CompanyCard.
type CostCenter ¶
type CostCenter struct {
// AccessType Defines the users that can submit expenses, trips, and invoices to the cost object.
// - `all`: Any Yokoy user can use this cost object.
// - `finance`: Only finance users can use this cost object.
// - `specificUsers`: Only finance users and an explicitly defined list of users are allowed. Users can be specified with the `userAccessGrants` property of the cost object PATCH endpoint.
AccessType *CostCenterAccessType `json:"accessType,omitempty"`
// ApprovalLimit Approval limit in the the legal entity‘s currency.
ApprovalLimit *float32 `json:"approvalLimit"`
// ApproverId Yokoy user ID that identifies the cost object's approver.
ApproverId *string `json:"approverId"`
// AutoApprovalLimit Auto approval limit in the legal entity‘s currency.
AutoApprovalLimit *float32 `json:"autoApprovalLimit"`
// Code Code (ERP). External account number associated with the cost object.
Code string `json:"code"`
CustomInformation *map[string]string `json:"customInformation"`
// DelegateExpiry Expiry date and time of the cost object's delegate.
DelegateExpiry *string `json:"delegateExpiry"`
// DelegateId Yokoy user ID that identifies the cost object‘s delegate.
DelegateId *string `json:"delegateId"`
// Description Description of the cost object.
Description *string `json:"description"`
// Id Yokoy unique ID of the cost object (cost center).
Id *string `json:"id,omitempty"`
// Name Name of the cost object.
Name string `json:"name"`
// ParentId Yokoy unique ID of the parent cost object.
ParentId *string `json:"parentId"`
// Scopes Scopes of the cost object. Defines whether cost objects can be used in travel, expenses, invoices or both.
Scopes *[]CostCenterScopes `json:"scopes"`
// StatusActive Status of the cost object. Only active cost objects can be used in travel, expenses, trips, and invoices.
StatusActive *bool `json:"statusActive,omitempty"`
}
CostCenter defines model for CostCenter.
type CostCenterAccessType ¶
type CostCenterAccessType string
CostCenterAccessType Defines the users that can submit expenses, trips, and invoices to the cost object.
- `all`: Any Yokoy user can use this cost object.
- `finance`: Only finance users can use this cost object.
- `specificUsers`: Only finance users and an explicitly defined list of users are allowed. Users can be specified with the `userAccessGrants` property of the cost object PATCH endpoint.
const ( CostCenterAccessTypeAll CostCenterAccessType = "all" CostCenterAccessTypeFinance CostCenterAccessType = "finance" CostCenterAccessTypeSpecificUsers CostCenterAccessType = "specificUsers" )
Defines values for CostCenterAccessType.
type CostCenterItem ¶
type CostCenterItem struct {
// Id Yokoy unique ID of the cost object (cost center).
Id *string `json:"id,omitempty"`
// PctWeight Percentage of the cost to be assigned to the cost object.
PctWeight *float32 `json:"pctWeight,omitempty"`
}
CostCenterItem defines model for CostCenterItem.
type CostCenterScopes ¶
type CostCenterScopes string
CostCenterScopes defines model for CostCenter.Scopes.
const ( CostCenterScopesExpenses CostCenterScopes = "expenses" CostCenterScopesInvoices CostCenterScopes = "invoices" CostCenterScopesTravel CostCenterScopes = "travel" )
Defines values for CostCenterScopes.
type CreateCompanyCardJSONRequestBody ¶
type CreateCompanyCardJSONRequestBody = CompanyCard
CreateCompanyCardJSONRequestBody defines body for CreateCompanyCard for application/json ContentType.
type CreateCompanyCardParams ¶
type CreateCompanyCardParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateCompanyCardParams defines parameters for CreateCompanyCard.
type CreateCompanyCardResponse ¶
type CreateCompanyCardResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CompanyCard
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateCompanyCardResponse ¶
func ParseCreateCompanyCardResponse(rsp *http.Response) (*CreateCompanyCardResponse, error)
ParseCreateCompanyCardResponse parses an HTTP response from a CreateCompanyCardWithResponse call
func (CreateCompanyCardResponse) Status ¶
func (r CreateCompanyCardResponse) Status() string
Status returns HTTPResponse.Status
func (CreateCompanyCardResponse) StatusCode ¶
func (r CreateCompanyCardResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateCostObjectJSONRequestBody ¶
type CreateCostObjectJSONRequestBody = CostCenter
CreateCostObjectJSONRequestBody defines body for CreateCostObject for application/json ContentType.
type CreateCostObjectParams ¶
type CreateCostObjectParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateCostObjectParams defines parameters for CreateCostObject.
type CreateCostObjectResponse ¶
type CreateCostObjectResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *CostCenter
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateCostObjectResponse ¶
func ParseCreateCostObjectResponse(rsp *http.Response) (*CreateCostObjectResponse, error)
ParseCreateCostObjectResponse parses an HTTP response from a CreateCostObjectWithResponse call
func (CreateCostObjectResponse) Status ¶
func (r CreateCostObjectResponse) Status() string
Status returns HTTPResponse.Status
func (CreateCostObjectResponse) StatusCode ¶
func (r CreateCostObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateEntitySupplierJSONRequestBody ¶
type CreateEntitySupplierJSONRequestBody = LegalEntitySupplier
CreateEntitySupplierJSONRequestBody defines body for CreateEntitySupplier for application/json ContentType.
type CreateEntitySupplierParams ¶
type CreateEntitySupplierParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateEntitySupplierParams defines parameters for CreateEntitySupplier.
type CreateEntitySupplierResponse ¶
type CreateEntitySupplierResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Supplier
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateEntitySupplierResponse ¶
func ParseCreateEntitySupplierResponse(rsp *http.Response) (*CreateEntitySupplierResponse, error)
ParseCreateEntitySupplierResponse parses an HTTP response from a CreateEntitySupplierWithResponse call
func (CreateEntitySupplierResponse) Status ¶
func (r CreateEntitySupplierResponse) Status() string
Status returns HTTPResponse.Status
func (CreateEntitySupplierResponse) StatusCode ¶
func (r CreateEntitySupplierResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateExpenseCategoryJSONRequestBody ¶
type CreateExpenseCategoryJSONRequestBody = Category
CreateExpenseCategoryJSONRequestBody defines body for CreateExpenseCategory for application/json ContentType.
type CreateExpenseCategoryParams ¶
type CreateExpenseCategoryParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateExpenseCategoryParams defines parameters for CreateExpenseCategory.
type CreateExpenseCategoryResponse ¶
type CreateExpenseCategoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Category
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateExpenseCategoryResponse ¶
func ParseCreateExpenseCategoryResponse(rsp *http.Response) (*CreateExpenseCategoryResponse, error)
ParseCreateExpenseCategoryResponse parses an HTTP response from a CreateExpenseCategoryWithResponse call
func (CreateExpenseCategoryResponse) Status ¶
func (r CreateExpenseCategoryResponse) Status() string
Status returns HTTPResponse.Status
func (CreateExpenseCategoryResponse) StatusCode ¶
func (r CreateExpenseCategoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateExternalInvoiceJSONRequestBody ¶
type CreateExternalInvoiceJSONRequestBody = ExternalInvoice
CreateExternalInvoiceJSONRequestBody defines body for CreateExternalInvoice for application/json ContentType.
type CreateExternalInvoiceParams ¶
type CreateExternalInvoiceParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateExternalInvoiceParams defines parameters for CreateExternalInvoice.
type CreateExternalInvoiceResponse ¶
type CreateExternalInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *ExternalInvoice
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateExternalInvoiceResponse ¶
func ParseCreateExternalInvoiceResponse(rsp *http.Response) (*CreateExternalInvoiceResponse, error)
ParseCreateExternalInvoiceResponse parses an HTTP response from a CreateExternalInvoiceWithResponse call
func (CreateExternalInvoiceResponse) Status ¶
func (r CreateExternalInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateExternalInvoiceResponse) StatusCode ¶
func (r CreateExternalInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateFxRateSourceJSONRequestBody ¶
type CreateFxRateSourceJSONRequestBody = FxRateSource
CreateFxRateSourceJSONRequestBody defines body for CreateFxRateSource for application/json ContentType.
type CreateFxRateSourceParams ¶
type CreateFxRateSourceParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateFxRateSourceParams defines parameters for CreateFxRateSource.
type CreateFxRateSourceResponse ¶
type CreateFxRateSourceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *FxRateSource
JSON400 *Error
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateFxRateSourceResponse ¶
func ParseCreateFxRateSourceResponse(rsp *http.Response) (*CreateFxRateSourceResponse, error)
ParseCreateFxRateSourceResponse parses an HTTP response from a CreateFxRateSourceWithResponse call
func (CreateFxRateSourceResponse) Status ¶
func (r CreateFxRateSourceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateFxRateSourceResponse) StatusCode ¶
func (r CreateFxRateSourceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateGRJSONRequestBody ¶
type CreateGRJSONRequestBody = GoodsReceipt
CreateGRJSONRequestBody defines body for CreateGR for application/json ContentType.
type CreateGRParams ¶
type CreateGRParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateGRParams defines parameters for CreateGR.
type CreateGRResponse ¶
type CreateGRResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *GoodsReceipt
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateGRResponse ¶
func ParseCreateGRResponse(rsp *http.Response) (*CreateGRResponse, error)
ParseCreateGRResponse parses an HTTP response from a CreateGRWithResponse call
func (CreateGRResponse) Status ¶
func (r CreateGRResponse) Status() string
Status returns HTTPResponse.Status
func (CreateGRResponse) StatusCode ¶
func (r CreateGRResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateInvoiceCategoryJSONRequestBody ¶
type CreateInvoiceCategoryJSONRequestBody = InvoiceCategory
CreateInvoiceCategoryJSONRequestBody defines body for CreateInvoiceCategory for application/json ContentType.
type CreateInvoiceCategoryParams ¶
type CreateInvoiceCategoryParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateInvoiceCategoryParams defines parameters for CreateInvoiceCategory.
type CreateInvoiceCategoryResponse ¶
type CreateInvoiceCategoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *InvoiceCategory
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateInvoiceCategoryResponse ¶
func ParseCreateInvoiceCategoryResponse(rsp *http.Response) (*CreateInvoiceCategoryResponse, error)
ParseCreateInvoiceCategoryResponse parses an HTTP response from a CreateInvoiceCategoryWithResponse call
func (CreateInvoiceCategoryResponse) Status ¶
func (r CreateInvoiceCategoryResponse) Status() string
Status returns HTTPResponse.Status
func (CreateInvoiceCategoryResponse) StatusCode ¶
func (r CreateInvoiceCategoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateInvoiceJSONRequestBody ¶
type CreateInvoiceJSONRequestBody = Invoice
CreateInvoiceJSONRequestBody defines body for CreateInvoice for application/json ContentType.
type CreateInvoiceParams ¶
type CreateInvoiceParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateInvoiceParams defines parameters for CreateInvoice.
type CreateInvoiceResponse ¶
type CreateInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Invoice
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateInvoiceResponse ¶
func ParseCreateInvoiceResponse(rsp *http.Response) (*CreateInvoiceResponse, error)
ParseCreateInvoiceResponse parses an HTTP response from a CreateInvoiceWithResponse call
func (CreateInvoiceResponse) Status ¶
func (r CreateInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateInvoiceResponse) StatusCode ¶
func (r CreateInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateOrgSupplierJSONRequestBody ¶
type CreateOrgSupplierJSONRequestBody = OrganizationSupplier
CreateOrgSupplierJSONRequestBody defines body for CreateOrgSupplier for application/json ContentType.
type CreateOrgSupplierParams ¶
type CreateOrgSupplierParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateOrgSupplierParams defines parameters for CreateOrgSupplier.
type CreateOrgSupplierResponse ¶
type CreateOrgSupplierResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *OrganizationSupplier
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateOrgSupplierResponse ¶
func ParseCreateOrgSupplierResponse(rsp *http.Response) (*CreateOrgSupplierResponse, error)
ParseCreateOrgSupplierResponse parses an HTTP response from a CreateOrgSupplierWithResponse call
func (CreateOrgSupplierResponse) Status ¶
func (r CreateOrgSupplierResponse) Status() string
Status returns HTTPResponse.Status
func (CreateOrgSupplierResponse) StatusCode ¶
func (r CreateOrgSupplierResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePOJSONRequestBody ¶
type CreatePOJSONRequestBody = PurchaseOrder
CreatePOJSONRequestBody defines body for CreatePO for application/json ContentType.
type CreatePOParams ¶
type CreatePOParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreatePOParams defines parameters for CreatePO.
type CreatePOResponse ¶
type CreatePOResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *PurchaseOrder
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreatePOResponse ¶
func ParseCreatePOResponse(rsp *http.Response) (*CreatePOResponse, error)
ParseCreatePOResponse parses an HTTP response from a CreatePOWithResponse call
func (CreatePOResponse) Status ¶
func (r CreatePOResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePOResponse) StatusCode ¶
func (r CreatePOResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePaymentTermJSONRequestBody ¶
type CreatePaymentTermJSONRequestBody = InvoicePaymentTerms
CreatePaymentTermJSONRequestBody defines body for CreatePaymentTerm for application/json ContentType.
type CreatePaymentTermParams ¶
type CreatePaymentTermParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreatePaymentTermParams defines parameters for CreatePaymentTerm.
type CreatePaymentTermResponse ¶
type CreatePaymentTermResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *InvoicePaymentTerms
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreatePaymentTermResponse ¶
func ParseCreatePaymentTermResponse(rsp *http.Response) (*CreatePaymentTermResponse, error)
ParseCreatePaymentTermResponse parses an HTTP response from a CreatePaymentTermWithResponse call
func (CreatePaymentTermResponse) Status ¶
func (r CreatePaymentTermResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePaymentTermResponse) StatusCode ¶
func (r CreatePaymentTermResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreatePolicyJSONRequestBody ¶
type CreatePolicyJSONRequestBody = Policy
CreatePolicyJSONRequestBody defines body for CreatePolicy for application/json ContentType.
type CreatePolicyParams ¶
type CreatePolicyParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreatePolicyParams defines parameters for CreatePolicy.
type CreatePolicyResponse ¶
type CreatePolicyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Policy
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreatePolicyResponse ¶
func ParseCreatePolicyResponse(rsp *http.Response) (*CreatePolicyResponse, error)
ParseCreatePolicyResponse parses an HTTP response from a CreatePolicyWithResponse call
func (CreatePolicyResponse) Status ¶
func (r CreatePolicyResponse) Status() string
Status returns HTTPResponse.Status
func (CreatePolicyResponse) StatusCode ¶
func (r CreatePolicyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateTagJSONRequestBody ¶
type CreateTagJSONRequestBody = Tag
CreateTagJSONRequestBody defines body for CreateTag for application/json ContentType.
type CreateTagParams ¶
type CreateTagParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateTagParams defines parameters for CreateTag.
type CreateTagResponse ¶
type CreateTagResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Tag
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateTagResponse ¶
func ParseCreateTagResponse(rsp *http.Response) (*CreateTagResponse, error)
ParseCreateTagResponse parses an HTTP response from a CreateTagWithResponse call
func (CreateTagResponse) Status ¶
func (r CreateTagResponse) Status() string
Status returns HTTPResponse.Status
func (CreateTagResponse) StatusCode ¶
func (r CreateTagResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateTaxRateJSONBody ¶
type CreateTaxRateJSONBody struct {
// contains filtered or unexported fields
}
CreateTaxRateJSONBody defines parameters for CreateTaxRate.
type CreateTaxRateJSONRequestBody ¶
type CreateTaxRateJSONRequestBody CreateTaxRateJSONBody
CreateTaxRateJSONRequestBody defines body for CreateTaxRate for application/json ContentType.
type CreateTaxRateParams ¶
type CreateTaxRateParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateTaxRateParams defines parameters for CreateTaxRate.
type CreateTaxRateResponse ¶
type CreateTaxRateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *struct {
// contains filtered or unexported fields
}
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateTaxRateResponse ¶
func ParseCreateTaxRateResponse(rsp *http.Response) (*CreateTaxRateResponse, error)
ParseCreateTaxRateResponse parses an HTTP response from a CreateTaxRateWithResponse call
func (CreateTaxRateResponse) Status ¶
func (r CreateTaxRateResponse) Status() string
Status returns HTTPResponse.Status
func (CreateTaxRateResponse) StatusCode ¶
func (r CreateTaxRateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateUserJSONBody ¶
type CreateUserJSONBody struct {
// BIC Branch Identifier Code of the user‘s bank account.
BIC *string `json:"BIC"`
// IBAN IBAN of the user‘s bank account.
IBAN *string `json:"IBAN"`
// AccountHolderName Account holder name associated with the user‘s bank account.
AccountHolderName *string `json:"accountHolderName"`
// CostCenterId Yokoy unique ID of the associated cost object.
CostCenterId *string `json:"costCenterId"`
// Created Timestamp (date and time) when the user was created. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
Created *time.Time `json:"created,omitempty"`
// Currency User's currency. Relevant when bookings are converted to the employee's currency. ISO 4217 three-letter code.
Currency *string `json:"currency"`
// CustomInformation Dictionary of custom information attributes associated with the user.
CustomInformation *map[string]string `json:"customInformation"`
// Email User's email address. Used to log into Yokoy. The email address must be unique for the organization.
Email *openapi_types.Email `json:"email"`
// EmployeeId Creditor account number of the user to be used to book any privately paid expenses. It can be a vendor account (for expenses booked on Accounts Payable) or a transit account (for General Ledger). Otherwise, this field can be used for a unique identifier.
EmployeeId string `json:"employeeId"`
// FirstName Given name or preferred name of the user.
FirstName string `json:"firstName"`
// Id Yokoy ID of the user.
Id *string `json:"id,omitempty"`
// InvitationOnCreation Send an invitation to access Yokoy to the user when created.
InvitationOnCreation *bool `json:"invitationOnCreation"`
// Language Preferred language for using Yokoy. Expressed as ISO 639 two-letter language code (except German (CH) and English (UK)).
Language *CreateUserJSONBodyLanguage `json:"language"`
// LastModified Timestamp (date and time) when the user was last modified. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
LastModified *time.Time `json:"lastModified,omitempty"`
// LastName Family name of the user.
LastName string `json:"lastName"`
// LegalEntityId Yokoy ID of the legal entity to which the user belongs.
LegalEntityId string `json:"legalEntityId"`
// LineManagerDelegateId Yokoy unique ID of the user who can approve on behalf of the line manager.
LineManagerDelegateId *string `json:"lineManagerDelegateId"`
// LineManagerId Yokoy unique ID of the user who is the user's line manager.
LineManagerId *string `json:"lineManagerId"`
// LineManagerThreshold Approval limit in the legal entity's currency.
LineManagerThreshold *float32 `json:"lineManagerThreshold"`
// NotifyAssistant Send a notification (if enabled in Company settings) to the assistant identified in `submissionDelegateId`.
NotifyAssistant *bool `json:"notifyAssistant"`
// PolicyId Yokoy unique ID of the associated employee policy ID.
PolicyId *string `json:"policyId"`
// StatusActive Status of the user. If active, the user can log into Yokoy.
StatusActive bool `json:"statusActive"`
// SubmissionDelegateId Yokoy unique ID of the user who can act on the user's behalf as an assistant.
SubmissionDelegateId *string `json:"submissionDelegateId"`
}
CreateUserJSONBody defines parameters for CreateUser.
type CreateUserJSONBodyLanguage ¶
type CreateUserJSONBodyLanguage string
CreateUserJSONBodyLanguage defines parameters for CreateUser.
const ( CreateUserJSONBodyLanguageDe CreateUserJSONBodyLanguage = "de" CreateUserJSONBodyLanguageDeCh CreateUserJSONBodyLanguage = "de-ch" CreateUserJSONBodyLanguageEn CreateUserJSONBodyLanguage = "en" CreateUserJSONBodyLanguageEnGb CreateUserJSONBodyLanguage = "en-gb" CreateUserJSONBodyLanguageEs CreateUserJSONBodyLanguage = "es" CreateUserJSONBodyLanguageFr CreateUserJSONBodyLanguage = "fr" CreateUserJSONBodyLanguageJa CreateUserJSONBodyLanguage = "ja" CreateUserJSONBodyLanguageNl CreateUserJSONBodyLanguage = "nl" CreateUserJSONBodyLanguagePl CreateUserJSONBodyLanguage = "pl" CreateUserJSONBodyLanguageZh CreateUserJSONBodyLanguage = "zh" )
Defines values for CreateUserJSONBodyLanguage.
type CreateUserJSONRequestBody ¶
type CreateUserJSONRequestBody CreateUserJSONBody
CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.
type CreateUserParams ¶
type CreateUserParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
CreateUserParams defines parameters for CreateUser.
type CreateUserResponse ¶
type CreateUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *User
JSON400 *Error
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseCreateUserResponse ¶
func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error)
ParseCreateUserResponse parses an HTTP response from a CreateUserWithResponse call
func (CreateUserResponse) Status ¶
func (r CreateUserResponse) Status() string
Status returns HTTPResponse.Status
func (CreateUserResponse) StatusCode ¶
func (r CreateUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteCostObjectParams ¶
type DeleteCostObjectParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
DeleteCostObjectParams defines parameters for DeleteCostObject.
type DeleteCostObjectResponse ¶
type DeleteCostObjectResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseDeleteCostObjectResponse ¶
func ParseDeleteCostObjectResponse(rsp *http.Response) (*DeleteCostObjectResponse, error)
ParseDeleteCostObjectResponse parses an HTTP response from a DeleteCostObjectWithResponse call
func (DeleteCostObjectResponse) Status ¶
func (r DeleteCostObjectResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteCostObjectResponse) StatusCode ¶
func (r DeleteCostObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteTagParams ¶
type DeleteTagParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
DeleteTagParams defines parameters for DeleteTag.
type DeleteTagResponse ¶
type DeleteTagResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseDeleteTagResponse ¶
func ParseDeleteTagResponse(rsp *http.Response) (*DeleteTagResponse, error)
ParseDeleteTagResponse parses an HTTP response from a DeleteTagWithResponse call
func (DeleteTagResponse) Status ¶
func (r DeleteTagResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteTagResponse) StatusCode ¶
func (r DeleteTagResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteUserParams ¶
type DeleteUserParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
DeleteUserParams defines parameters for DeleteUser.
type DeleteUserResponse ¶
type DeleteUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseDeleteUserResponse ¶
func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error)
ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call
func (DeleteUserResponse) Status ¶
func (r DeleteUserResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteUserResponse) StatusCode ¶
func (r DeleteUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type EchoRouter ¶
type EchoRouter interface {
CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration
type EventLogEntry ¶
type EventLogEntry struct {
// ActionType Type of event.
ActionType *EventLogEntryActionType `json:"actionType,omitempty"`
// Comment Comment made by the user who triggered the event.
Comment *string `json:"comment,omitempty"`
// Name Name of the user who triggered the event.
Name *string `json:"name"`
// Timestamp Timestamp (date and time) of the event. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
Timestamp *time.Time `json:"timestamp,omitempty"`
// UserId Yokoy unique ID of the user.
UserId *string `json:"userId"`
}
EventLogEntry defines model for EventLogEntry.
type EventLogEntryActionType ¶
type EventLogEntryActionType string
EventLogEntryActionType Type of event.
const ( EventLogEntryActionTypeApprove EventLogEntryActionType = "approve" EventLogEntryActionTypeArchive EventLogEntryActionType = "archive" EventLogEntryActionTypeBackToReview EventLogEntryActionType = "backToReview" EventLogEntryActionTypeExport EventLogEntryActionType = "export" EventLogEntryActionTypeExportReverted EventLogEntryActionType = "exportReverted" EventLogEntryActionTypeForwardApproval EventLogEntryActionType = "forwardApproval" EventLogEntryActionTypeImported EventLogEntryActionType = "imported" EventLogEntryActionTypeNeedsRevision EventLogEntryActionType = "needsRevision" EventLogEntryActionTypeRecall EventLogEntryActionType = "recall" EventLogEntryActionTypeReject EventLogEntryActionType = "reject" EventLogEntryActionTypeRevertExport EventLogEntryActionType = "revertExport" EventLogEntryActionTypeReview EventLogEntryActionType = "review" EventLogEntryActionTypeSubmit EventLogEntryActionType = "submit" )
Defines values for EventLogEntryActionType.
type Expense ¶
type Expense struct {
AdditionalCategoryItems *[]AdditionalCategoryItem `json:"additionalCategoryItems,omitempty"`
// AdditionalCharges Additional charges to be added to the total amount (for example, tip, personal card fees, FX conversion fees).
AdditionalCharges *float32 `json:"additionalCharges"`
// ApproverIds List of users who have already approved the expense.
ApproverIds *[]string `json:"approverIds,omitempty"`
// Attachments Array of URLs that redirect to the supporting documents attached to the expense.
Attachments *[]string `json:"attachments"`
// CategoryId Yokoy unique ID of the category. This is the primary/first category tagged in the expense.
CategoryId *string `json:"categoryId"`
CostCenterItems *[]CostCenterItem `json:"costCenterItems"`
// Country Country where expense occurred. Expressed as an ISO 3166 Alpha-2 code.
Country *string `json:"country,omitempty"`
// Created Timestamp (date and time) of when the expense was created. Expressed in ISO 8601 format. Coordinated Universal Time (UTC)
Created *time.Time `json:"created,omitempty"`
// Currency Original expense currency. ISO 4217 three-letter code.
Currency *string `json:"currency,omitempty"`
// CurrentApproverIds List of users that still need to approve the expense. As users approve the expense, their IDs are added to `approverIds` and removed from this array.
CurrentApproverIds *[]string `json:"currentApproverIds,omitempty"`
// CustomInformation Dictionary of custom information attributes associated with the expense.
CustomInformation *map[string]string `json:"customInformation"`
// Description Description including business purpose (free text descriptions added by users).
Description *string `json:"description,omitempty"`
EventLog *[]EventLogEntry `json:"eventLog"`
// ExpenseDate Date when the expense occurred (date on receipt or invoice). Expressed in `YYYY-MM-DD` format.
ExpenseDate *string `json:"expenseDate,omitempty"`
// ExpenseEndDate End date of an expense related to an extended stay (e.g. hotel stay, flight). Expressed in `YYYY-MM-DD` format.
ExpenseEndDate *string `json:"expenseEndDate,omitempty"`
// ExpenseStartDate Start date of an expense related to an extended stay (e.g. hotel stay, flight). Expressed in `YYYY-MM-DD` format.
ExpenseStartDate *string `json:"expenseStartDate,omitempty"`
// ExpenseType Type of expense. Expenses can be receipt, receiptless, per diems, or mileage claims.
ExpenseType *ExpenseExpenseType `json:"expenseType,omitempty"`
// ExportJobId Yokoy unique ID of the last export job that the expense has been included in, if any.
ExportJobId *string `json:"exportJobId"`
// FxRates Foreign exchange reference rates used by Yokoy to convert expense amounts from the expense currency to other currencies. All currencies are quoted against the US dollar (base currency). ISO 4217 three-letter code.
FxRates *map[string]interface{} `json:"fxRates"`
// Id Yokoy unique ID of the expense.
Id *string `json:"id,omitempty"`
// IncomeTaxableAmounts Array of income taxable amounts calculated for the expense. See <a href="https://help.yokoy.ai/en/articles/278893-calculating-taxable-amounts-on-company-benefits">Calculating taxable amounts on company benefits</a>.
IncomeTaxableAmounts *[]IncomeTaxableAmount `json:"incomeTaxableAmounts"`
// IsCreditNote Determines if the expense is a credit note (equivalent to negative expense amount) or not.
IsCreditNote *bool `json:"isCreditNote"`
// LastModified Timestamp (date and time) of when the expense was last modified. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
LastModified *time.Time `json:"lastModified,omitempty"`
// LegalEntityId Yokoy unique ID of the legal entity to which the expense is assigned.
LegalEntityId *string `json:"legalEntityId,omitempty"`
// NumberOfParticipants Number of participants.
NumberOfParticipants *float32 `json:"numberOfParticipants,omitempty"`
// ParticipantNames Participant names separated by ', '.
ParticipantNames *string `json:"participantNames,omitempty"`
// Participants List of participants involved in the expense, separated by organization employees (`internal`) and third-party participants (`external`).
Participants *struct {
// External List of external participants.
External *[]struct {
// Company Name of the participant‘s company.
Company *string `json:"company"`
// Email Participant's email address.
Email *string `json:"email"`
// Name Participant's first and last name.
Name *string `json:"name,omitempty"`
} `json:"external,omitempty"`
// Internal List of Yokoy user IDs of internal participants.
Internal *[]string `json:"internal,omitempty"`
} `json:"participants"`
// PaymentMethod Expense payment method. It can be privately paid, company card, or travel provider.
PaymentMethod *ExpensePaymentMethod `json:"paymentMethod,omitempty"`
// PerDiemAmounts Breakdown of the per diem amount calculation. Only applicable to per diem expenses.
PerDiemAmounts *struct {
// Additions Supplements that are added to the per diem base amount.
Additions float32 `json:"additions"`
// BaseAmount Per diem base amount, excluding any applicable modifications (supplement or deduction).
BaseAmount float32 `json:"baseAmount"`
// BaseRate Base rate used to calculate the per diem base amount.
BaseRate *float32 `json:"baseRate,omitempty"`
// Deductions Deductions that are subtracted from the per diem base amount.
Deductions float32 `json:"deductions"`
// ModificationAmounts Deprecated. Use `modifications`.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
ModificationAmounts map[string]struct {
Amount float32 `json:"amount"`
ModificationId string `json:"modificationId"`
} `json:"modificationAmounts"`
// Modifications Array of per diem modifications applied to the per diem base amount.
Modifications []struct {
// Amount Amount of the per diem modification.
Amount float32 `json:"amount"`
// ModificationId Yokoy unique ID of the per diem modification.
ModificationId string `json:"modificationId"`
} `json:"modifications"`
} `json:"perDiemAmounts"`
// PostingDate Date when expense is posted to the general ledger. Expressed in `YYYY-MM-DD` format.
PostingDate *string `json:"postingDate,omitempty"`
// Receipt URL to the receipt used to create the expense.
Receipt *string `json:"receipt"`
// Status Status of the expense.
Status ExpenseStatus `json:"status"`
// Tags Tags associated with the expense. Expressed as a key pair with the tag dimension ID (tagDimension1) and tag ID (tagValue2).
Tags *map[string]string `json:"tags"`
TaxItems *[]TaxItem `json:"taxItems"`
// TaxNumber Merchant tax number extracted from the expense or invoice.
TaxNumber *string `json:"taxNumber,omitempty"`
// TaxableAmount Taxable part of the total per diem amount. Only applicable to per diem expenses.
TaxableAmount *float32 `json:"taxableAmount"`
// TotalAmount Expense amount in the original expense currency (excluding additional charges).
TotalAmount *float32 `json:"totalAmount"`
// TotalClaim Total claim in the original expense currency (including additional charges).
TotalClaim *float32 `json:"totalClaim"`
// TripId Yokoy unique ID of the trip (primary/first category tagged in the expense).
TripId *string `json:"tripId"`
// UserId Yokoy unique ID of the user.
UserId *string `json:"userId"`
}
Expense defines model for Expense.
type ExpenseExpenseType ¶
type ExpenseExpenseType string
ExpenseExpenseType Type of expense. Expenses can be receipt, receiptless, per diems, or mileage claims.
const ( Mileage ExpenseExpenseType = "mileage" PerDiem ExpenseExpenseType = "perDiem" Receipt ExpenseExpenseType = "receipt" Receiptless ExpenseExpenseType = "receiptless" )
Defines values for ExpenseExpenseType.
type ExpenseExportArtefact ¶
type ExpenseExportArtefact struct {
// GeneratedFiles List of file names of additional files generated in the context of the export.
GeneratedFiles *[]string `json:"generatedFiles,omitempty"`
// Id Yokoy unique ID of the artefact.
Id *string `json:"id,omitempty"`
// OriginalFormat Original format of the serialized artefact.
OriginalFormat *string `json:"originalFormat,omitempty"`
// RelatedDocumentIds List of Yokoy expense IDs contained in the artefact.
RelatedDocumentIds *[]string `json:"relatedDocumentIds,omitempty"`
// SerializedArtefact Serialized artefact of the form `ExpenseExportPayload`.
SerializedArtefact *string `json:"serializedArtefact,omitempty"`
}
ExpenseExportArtefact defines model for ExpenseExportArtefact.
type ExpenseExportTaskInformation ¶
type ExpenseExportTaskInformation struct {
Resource *struct {
// Created Timestamp (date and time) when the export was triggered. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
Created *time.Time `json:"created,omitempty"`
// EarliestPostingDate Earliest allowed posting date specified for the export. Expressed in `YYYY-MM-DD`.
EarliestPostingDate *string `json:"earliestPostingDate,omitempty"`
// ExporterId Yokoy unique ID of the user on behalf of whom the export is performed.
ExporterId *string `json:"exporterId,omitempty"`
// ExporterName Last name of the user on behalf of whom the export is performed.
ExporterName *string `json:"exporterName,omitempty"`
// FacilityId Yokoy unique ID of the export facility (corresponding to the expense type).
FacilityId *ExpenseExportTaskInformationResourceFacilityId `json:"facilityId,omitempty"`
// GeneratedFiles List of file names of the additional files generated with the export.
GeneratedFiles *[]string `json:"generatedFiles,omitempty"`
// Id ID of the export job.
Id *string `json:"id,omitempty"`
// IsPending Status of the export job, whether the export job is still pending.
IsPending *bool `json:"isPending,omitempty"`
// Method Method used to trigger the export.
Method *ExpenseExportTaskInformationResourceMethod `json:"method,omitempty"`
} `json:"resource,omitempty"`
}
ExpenseExportTaskInformation defines model for ExpenseExportTaskInformation.
type ExpenseExportTaskInformationResourceFacilityId ¶
type ExpenseExportTaskInformationResourceFacilityId string
ExpenseExportTaskInformationResourceFacilityId Yokoy unique ID of the export facility (corresponding to the expense type).
const ( ExpenseExportTaskInformationResourceFacilityIdCard ExpenseExportTaskInformationResourceFacilityId = "card" ExpenseExportTaskInformationResourceFacilityIdExpense ExpenseExportTaskInformationResourceFacilityId = "expense" ExpenseExportTaskInformationResourceFacilityIdTravel ExpenseExportTaskInformationResourceFacilityId = "travel" )
Defines values for ExpenseExportTaskInformationResourceFacilityId.
type ExpenseExportTaskInformationResourceMethod ¶
type ExpenseExportTaskInformationResourceMethod string
ExpenseExportTaskInformationResourceMethod Method used to trigger the export.
const ( ExpenseExportTaskInformationResourceMethodApi ExpenseExportTaskInformationResourceMethod = "api" ExpenseExportTaskInformationResourceMethodAutomatic ExpenseExportTaskInformationResourceMethod = "automatic" ExpenseExportTaskInformationResourceMethodManual ExpenseExportTaskInformationResourceMethod = "manual" )
Defines values for ExpenseExportTaskInformationResourceMethod.
type ExpensePaymentMethod ¶
type ExpensePaymentMethod string
ExpensePaymentMethod Expense payment method. It can be privately paid, company card, or travel provider.
const ( CompanyCreditCard ExpensePaymentMethod = "companyCreditCard" PaidPrivately ExpensePaymentMethod = "paidPrivately" TravelProvider ExpensePaymentMethod = "travelProvider" )
Defines values for ExpensePaymentMethod.
type ExpenseStatus ¶
type ExpenseStatus string
ExpenseStatus Status of the expense.
const ( ExpenseStatusDraft ExpenseStatus = "draft" ExpenseStatusExpenseExported ExpenseStatus = "expenseExported" ExpenseStatusForApproval ExpenseStatus = "forApproval" ExpenseStatusForExpenseExport ExpenseStatus = "forExpenseExport" ExpenseStatusForReview ExpenseStatus = "forReview" ExpenseStatusForTransactionExport ExpenseStatus = "forTransactionExport" ExpenseStatusNeedsRevision ExpenseStatus = "needsRevision" ExpenseStatusReadyForTripSubmission ExpenseStatus = "readyForTripSubmission" ExpenseStatusRejected ExpenseStatus = "rejected" ExpenseStatusTransactionExported ExpenseStatus = "transactionExported" ExpenseStatusTravelDraft ExpenseStatus = "travelDraft" )
Defines values for ExpenseStatus.
type ExportTaskQueryFilter ¶
type ExportTaskQueryFilter = string
ExportTaskQueryFilter defines model for ExportTaskQueryFilter.
type ExternalInvoice ¶
type ExternalInvoice struct {
// Description Description of the external invoice.
Description *string `json:"description"`
// ExternalId External ID of the external invoice.
ExternalId string `json:"externalId"`
// Id Yokoy unique ID of the external invoice.
Id *string `json:"id,omitempty"`
// InvoiceNumber Invoice number of the external invoice.
InvoiceNumber string `json:"invoiceNumber"`
// Items Line items of the external invoice.
Items []ExternalInvoiceItem `json:"items"`
// PostingDate Posting date of the external invoice. Expressed in `YYYY-MM-DD` format.
PostingDate *openapi_types.Date `json:"postingDate"`
}
ExternalInvoice defines model for ExternalInvoice.
type ExternalInvoiceItem ¶
type ExternalInvoiceItem struct {
// Amount Amount of the external invoice line item.
Amount float32 `json:"amount"`
// Currency Currency of the external invoice. ISO 4217 three-letter code.
Currency *string `json:"currency"`
// ExternalId External ID of the external invoice line item.
ExternalId *string `json:"externalId"`
// GoodsReceiptId Yokoy unique ID of the goods receipt that is associated with the external invoice line item.
// It must refer to an existing Yokoy goods receipt ID.
GoodsReceiptId *string `json:"goodsReceiptId"`
// GoodsReceiptItemId Yokoy unique ID of the goods receipt line item that is associated with the external invoice line item.
// It must refer to an existing Yokoy goods receipt ID with the specified goods receipt.
// If `goodsReceiptId` is provided, then `goodsReceiptItemId` must also be provided.
GoodsReceiptItemId *string `json:"goodsReceiptItemId"`
// Id Yokoy unique ID for the external invoice line item. For new line items, Yokoy generates the ID. For existing line items, reference the Yokoy unique ID for that line item.
Id *string `json:"id,omitempty"`
// ItemNumber Item number of the external invoice line item.
ItemNumber *string `json:"itemNumber"`
// ItemPrice Amount per unit of the external invoice line item.
ItemPrice *float32 `json:"itemPrice"`
// PurchaseOrderId Yokoy unique ID of the purchase order that is associated with the external invoice line item.
// It must be an existing Yokoy purchase order ID.
PurchaseOrderId string `json:"purchaseOrderId"`
// PurchaseOrderItemId Yokoy unique ID of the purchase order line item that is associated with the external invoice line item.
// It must be an existing Yokoy purchase order line item ID, linked to the specified purchase order.
PurchaseOrderItemId string `json:"purchaseOrderItemId"`
// Quantity Quantity of the external invoice line item.
Quantity *float32 `json:"quantity,omitempty"`
// Status Status of the external invoice. Only `active` is accepted.
Status *ExternalInvoiceItemStatus `json:"status,omitempty"`
// Unit Unit of the line item.
Unit *string `json:"unit"`
}
ExternalInvoiceItem defines model for ExternalInvoiceItem.
type ExternalInvoiceItemStatus ¶
type ExternalInvoiceItemStatus string
ExternalInvoiceItemStatus Status of the external invoice. Only `active` is accepted.
const (
ExternalInvoiceItemStatusActive ExternalInvoiceItemStatus = "active"
)
Defines values for ExternalInvoiceItemStatus.
type FxRateSource ¶
type FxRateSource struct {
// Id Yokoy ID of the foreign exchange rate source.
Id *string `json:"id,omitempty"`
// Label Name of the foreign exchange rate.
Label string `json:"label"`
}
FxRateSource defines model for FxRateSource.
type FxRates ¶
type FxRates struct {
// BaseCurrency Optional base currency (if not provided, USD is assumed to be the base currency).
BaseCurrency *string `json:"baseCurrency,omitempty"`
// FxRates Foreign exchange reference rates. All currencies are quoted against the base currency (USD default).
FxRates map[string]interface{} `json:"fxRates"`
}
FxRates defines model for FxRates.
type GetBalanceResponse ¶
type GetBalanceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CardAccountBalance
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetBalanceResponse ¶
func ParseGetBalanceResponse(rsp *http.Response) (*GetBalanceResponse, error)
ParseGetBalanceResponse parses an HTTP response from a GetBalanceWithResponse call
func (GetBalanceResponse) Status ¶
func (r GetBalanceResponse) Status() string
Status returns HTTPResponse.Status
func (GetBalanceResponse) StatusCode ¶
func (r GetBalanceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCardAccountResponse ¶
type GetCardAccountResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CardAccount
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetCardAccountResponse ¶
func ParseGetCardAccountResponse(rsp *http.Response) (*GetCardAccountResponse, error)
ParseGetCardAccountResponse parses an HTTP response from a GetCardAccountWithResponse call
func (GetCardAccountResponse) Status ¶
func (r GetCardAccountResponse) Status() string
Status returns HTTPResponse.Status
func (GetCardAccountResponse) StatusCode ¶
func (r GetCardAccountResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCompanyCardParams ¶
type GetCompanyCardParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetCompanyCardParams defines parameters for GetCompanyCard.
type GetCompanyCardResponse ¶
type GetCompanyCardResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CompanyCard
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetCompanyCardResponse ¶
func ParseGetCompanyCardResponse(rsp *http.Response) (*GetCompanyCardResponse, error)
ParseGetCompanyCardResponse parses an HTTP response from a GetCompanyCardWithResponse call
func (GetCompanyCardResponse) Status ¶
func (r GetCompanyCardResponse) Status() string
Status returns HTTPResponse.Status
func (GetCompanyCardResponse) StatusCode ¶
func (r GetCompanyCardResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetCostObjectParams ¶
type GetCostObjectParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetCostObjectParams defines parameters for GetCostObject.
type GetCostObjectResponse ¶
type GetCostObjectResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CostCenter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetCostObjectResponse ¶
func ParseGetCostObjectResponse(rsp *http.Response) (*GetCostObjectResponse, error)
ParseGetCostObjectResponse parses an HTTP response from a GetCostObjectWithResponse call
func (GetCostObjectResponse) Status ¶
func (r GetCostObjectResponse) Status() string
Status returns HTTPResponse.Status
func (GetCostObjectResponse) StatusCode ¶
func (r GetCostObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetEntitySupplierParams ¶
type GetEntitySupplierParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetEntitySupplierParams defines parameters for GetEntitySupplier.
type GetEntitySupplierResponse ¶
type GetEntitySupplierResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Supplier
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetEntitySupplierResponse ¶
func ParseGetEntitySupplierResponse(rsp *http.Response) (*GetEntitySupplierResponse, error)
ParseGetEntitySupplierResponse parses an HTTP response from a GetEntitySupplierWithResponse call
func (GetEntitySupplierResponse) Status ¶
func (r GetEntitySupplierResponse) Status() string
Status returns HTTPResponse.Status
func (GetEntitySupplierResponse) StatusCode ¶
func (r GetEntitySupplierResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExpenseAttachmentParams ¶
type GetExpenseAttachmentParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetExpenseAttachmentParams defines parameters for GetExpenseAttachment.
type GetExpenseAttachmentResponse ¶
type GetExpenseAttachmentResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetExpenseAttachmentResponse ¶
func ParseGetExpenseAttachmentResponse(rsp *http.Response) (*GetExpenseAttachmentResponse, error)
ParseGetExpenseAttachmentResponse parses an HTTP response from a GetExpenseAttachmentWithResponse call
func (GetExpenseAttachmentResponse) Status ¶
func (r GetExpenseAttachmentResponse) Status() string
Status returns HTTPResponse.Status
func (GetExpenseAttachmentResponse) StatusCode ¶
func (r GetExpenseAttachmentResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExpenseCategoryParams ¶
type GetExpenseCategoryParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetExpenseCategoryParams defines parameters for GetExpenseCategory.
type GetExpenseCategoryResponse ¶
type GetExpenseCategoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Category
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetExpenseCategoryResponse ¶
func ParseGetExpenseCategoryResponse(rsp *http.Response) (*GetExpenseCategoryResponse, error)
ParseGetExpenseCategoryResponse parses an HTTP response from a GetExpenseCategoryWithResponse call
func (GetExpenseCategoryResponse) Status ¶
func (r GetExpenseCategoryResponse) Status() string
Status returns HTTPResponse.Status
func (GetExpenseCategoryResponse) StatusCode ¶
func (r GetExpenseCategoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExpenseParams ¶
type GetExpenseParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetExpenseParams defines parameters for GetExpense.
type GetExpenseReceiptParams ¶
type GetExpenseReceiptParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetExpenseReceiptParams defines parameters for GetExpenseReceipt.
type GetExpenseReceiptResponse ¶
type GetExpenseReceiptResponse struct {
Body []byte
HTTPResponse *http.Response
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetExpenseReceiptResponse ¶
func ParseGetExpenseReceiptResponse(rsp *http.Response) (*GetExpenseReceiptResponse, error)
ParseGetExpenseReceiptResponse parses an HTTP response from a GetExpenseReceiptWithResponse call
func (GetExpenseReceiptResponse) Status ¶
func (r GetExpenseReceiptResponse) Status() string
Status returns HTTPResponse.Status
func (GetExpenseReceiptResponse) StatusCode ¶
func (r GetExpenseReceiptResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExpenseResponse ¶
type GetExpenseResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Expense
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetExpenseResponse ¶
func ParseGetExpenseResponse(rsp *http.Response) (*GetExpenseResponse, error)
ParseGetExpenseResponse parses an HTTP response from a GetExpenseWithResponse call
func (GetExpenseResponse) Status ¶
func (r GetExpenseResponse) Status() string
Status returns HTTPResponse.Status
func (GetExpenseResponse) StatusCode ¶
func (r GetExpenseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExportArefactsParams ¶
type GetExportArefactsParams struct {
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetExportArefactsParams defines parameters for GetExportArefacts.
type GetExportArefactsResponse ¶
type GetExportArefactsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Resources *[]GetExportArefacts_200_Resources_Item `json:"Resources,omitempty"`
}
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetExportArefactsResponse ¶
func ParseGetExportArefactsResponse(rsp *http.Response) (*GetExportArefactsResponse, error)
ParseGetExportArefactsResponse parses an HTTP response from a GetExportArefactsWithResponse call
func (GetExportArefactsResponse) Status ¶
func (r GetExportArefactsResponse) Status() string
Status returns HTTPResponse.Status
func (GetExportArefactsResponse) StatusCode ¶
func (r GetExportArefactsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExportArefacts_200_Resources_Item ¶
type GetExportArefacts_200_Resources_Item struct {
// contains filtered or unexported fields
}
type GetExportStatusParams ¶
type GetExportStatusParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetExportStatusParams defines parameters for GetExportStatus.
type GetExportStatusResponse ¶
type GetExportStatusResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// contains filtered or unexported fields
}
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetExportStatusResponse ¶
func ParseGetExportStatusResponse(rsp *http.Response) (*GetExportStatusResponse, error)
ParseGetExportStatusResponse parses an HTTP response from a GetExportStatusWithResponse call
func (GetExportStatusResponse) Status ¶
func (r GetExportStatusResponse) Status() string
Status returns HTTPResponse.Status
func (GetExportStatusResponse) StatusCode ¶
func (r GetExportStatusResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetExternalInvoiceParams ¶
type GetExternalInvoiceParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetExternalInvoiceParams defines parameters for GetExternalInvoice.
type GetExternalInvoiceResponse ¶
type GetExternalInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalInvoice
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetExternalInvoiceResponse ¶
func ParseGetExternalInvoiceResponse(rsp *http.Response) (*GetExternalInvoiceResponse, error)
ParseGetExternalInvoiceResponse parses an HTTP response from a GetExternalInvoiceWithResponse call
func (GetExternalInvoiceResponse) Status ¶
func (r GetExternalInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (GetExternalInvoiceResponse) StatusCode ¶
func (r GetExternalInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetGRParams ¶
type GetGRParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetGRParams defines parameters for GetGR.
type GetGRResponse ¶
type GetGRResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GoodsReceipt
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetGRResponse ¶
func ParseGetGRResponse(rsp *http.Response) (*GetGRResponse, error)
ParseGetGRResponse parses an HTTP response from a GetGRWithResponse call
func (GetGRResponse) Status ¶
func (r GetGRResponse) Status() string
Status returns HTTPResponse.Status
func (GetGRResponse) StatusCode ¶
func (r GetGRResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInvoiceBase64Params ¶
type GetInvoiceBase64Params struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetInvoiceBase64Params defines parameters for GetInvoiceBase64.
type GetInvoiceBase64Response ¶
type GetInvoiceBase64Response struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InvoiceBase64
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetInvoiceBase64Response ¶
func ParseGetInvoiceBase64Response(rsp *http.Response) (*GetInvoiceBase64Response, error)
ParseGetInvoiceBase64Response parses an HTTP response from a GetInvoiceBase64WithResponse call
func (GetInvoiceBase64Response) Status ¶
func (r GetInvoiceBase64Response) Status() string
Status returns HTTPResponse.Status
func (GetInvoiceBase64Response) StatusCode ¶
func (r GetInvoiceBase64Response) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInvoiceCategoryParams ¶
type GetInvoiceCategoryParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetInvoiceCategoryParams defines parameters for GetInvoiceCategory.
type GetInvoiceCategoryResponse ¶
type GetInvoiceCategoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InvoiceCategory
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetInvoiceCategoryResponse ¶
func ParseGetInvoiceCategoryResponse(rsp *http.Response) (*GetInvoiceCategoryResponse, error)
ParseGetInvoiceCategoryResponse parses an HTTP response from a GetInvoiceCategoryWithResponse call
func (GetInvoiceCategoryResponse) Status ¶
func (r GetInvoiceCategoryResponse) Status() string
Status returns HTTPResponse.Status
func (GetInvoiceCategoryResponse) StatusCode ¶
func (r GetInvoiceCategoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInvoiceParams ¶
type GetInvoiceParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetInvoiceParams defines parameters for GetInvoice.
type GetInvoicePdfParams ¶
type GetInvoicePdfParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetInvoicePdfParams defines parameters for GetInvoicePdf.
type GetInvoicePdfResponse ¶
type GetInvoicePdfResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetInvoicePdfResponse ¶
func ParseGetInvoicePdfResponse(rsp *http.Response) (*GetInvoicePdfResponse, error)
ParseGetInvoicePdfResponse parses an HTTP response from a GetInvoicePdfWithResponse call
func (GetInvoicePdfResponse) Status ¶
func (r GetInvoicePdfResponse) Status() string
Status returns HTTPResponse.Status
func (GetInvoicePdfResponse) StatusCode ¶
func (r GetInvoicePdfResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInvoiceResponse ¶
type GetInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invoice
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetInvoiceResponse ¶
func ParseGetInvoiceResponse(rsp *http.Response) (*GetInvoiceResponse, error)
ParseGetInvoiceResponse parses an HTTP response from a GetInvoiceWithResponse call
func (GetInvoiceResponse) Status ¶
func (r GetInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (GetInvoiceResponse) StatusCode ¶
func (r GetInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetLegalEntityParams ¶
type GetLegalEntityParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetLegalEntityParams defines parameters for GetLegalEntity.
type GetLegalEntityResponse ¶
type GetLegalEntityResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *LegalEntity
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetLegalEntityResponse ¶
func ParseGetLegalEntityResponse(rsp *http.Response) (*GetLegalEntityResponse, error)
ParseGetLegalEntityResponse parses an HTTP response from a GetLegalEntityWithResponse call
func (GetLegalEntityResponse) Status ¶
func (r GetLegalEntityResponse) Status() string
Status returns HTTPResponse.Status
func (GetLegalEntityResponse) StatusCode ¶
func (r GetLegalEntityResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrgSupplierParams ¶
type GetOrgSupplierParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetOrgSupplierParams defines parameters for GetOrgSupplier.
type GetOrgSupplierResponse ¶
type GetOrgSupplierResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OrganizationSupplier
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetOrgSupplierResponse ¶
func ParseGetOrgSupplierResponse(rsp *http.Response) (*GetOrgSupplierResponse, error)
ParseGetOrgSupplierResponse parses an HTTP response from a GetOrgSupplierWithResponse call
func (GetOrgSupplierResponse) Status ¶
func (r GetOrgSupplierResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrgSupplierResponse) StatusCode ¶
func (r GetOrgSupplierResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPOParams ¶
type GetPOParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetPOParams defines parameters for GetPO.
type GetPOResponse ¶
type GetPOResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PurchaseOrder
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetPOResponse ¶
func ParseGetPOResponse(rsp *http.Response) (*GetPOResponse, error)
ParseGetPOResponse parses an HTTP response from a GetPOWithResponse call
func (GetPOResponse) Status ¶
func (r GetPOResponse) Status() string
Status returns HTTPResponse.Status
func (GetPOResponse) StatusCode ¶
func (r GetPOResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPaymentTermParams ¶
type GetPaymentTermParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetPaymentTermParams defines parameters for GetPaymentTerm.
type GetPaymentTermResponse ¶
type GetPaymentTermResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InvoicePaymentTerms
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetPaymentTermResponse ¶
func ParseGetPaymentTermResponse(rsp *http.Response) (*GetPaymentTermResponse, error)
ParseGetPaymentTermResponse parses an HTTP response from a GetPaymentTermWithResponse call
func (GetPaymentTermResponse) Status ¶
func (r GetPaymentTermResponse) Status() string
Status returns HTTPResponse.Status
func (GetPaymentTermResponse) StatusCode ¶
func (r GetPaymentTermResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetPolicyParams ¶
type GetPolicyParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetPolicyParams defines parameters for GetPolicy.
type GetPolicyResponse ¶
type GetPolicyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Policy
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetPolicyResponse ¶
func ParseGetPolicyResponse(rsp *http.Response) (*GetPolicyResponse, error)
ParseGetPolicyResponse parses an HTTP response from a GetPolicyWithResponse call
func (GetPolicyResponse) Status ¶
func (r GetPolicyResponse) Status() string
Status returns HTTPResponse.Status
func (GetPolicyResponse) StatusCode ¶
func (r GetPolicyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTagParams ¶
type GetTagParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetTagParams defines parameters for GetTag.
type GetTagResponse ¶
type GetTagResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Tag
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetTagResponse ¶
func ParseGetTagResponse(rsp *http.Response) (*GetTagResponse, error)
ParseGetTagResponse parses an HTTP response from a GetTagWithResponse call
func (GetTagResponse) Status ¶
func (r GetTagResponse) Status() string
Status returns HTTPResponse.Status
func (GetTagResponse) StatusCode ¶
func (r GetTagResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTaxRateParams ¶
type GetTaxRateParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetTaxRateParams defines parameters for GetTaxRate.
type GetTaxRateResponse ¶
type GetTaxRateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// contains filtered or unexported fields
}
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetTaxRateResponse ¶
func ParseGetTaxRateResponse(rsp *http.Response) (*GetTaxRateResponse, error)
ParseGetTaxRateResponse parses an HTTP response from a GetTaxRateWithResponse call
func (GetTaxRateResponse) Status ¶
func (r GetTaxRateResponse) Status() string
Status returns HTTPResponse.Status
func (GetTaxRateResponse) StatusCode ¶
func (r GetTaxRateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTransactionResponse ¶
type GetTransactionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Transaction
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetTransactionResponse ¶
func ParseGetTransactionResponse(rsp *http.Response) (*GetTransactionResponse, error)
ParseGetTransactionResponse parses an HTTP response from a GetTransactionWithResponse call
func (GetTransactionResponse) Status ¶
func (r GetTransactionResponse) Status() string
Status returns HTTPResponse.Status
func (GetTransactionResponse) StatusCode ¶
func (r GetTransactionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetTripParams ¶
type GetTripParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetTripParams defines parameters for GetTrip.
type GetTripResponse ¶
type GetTripResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Trip
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetTripResponse ¶
func ParseGetTripResponse(rsp *http.Response) (*GetTripResponse, error)
ParseGetTripResponse parses an HTTP response from a GetTripWithResponse call
func (GetTripResponse) Status ¶
func (r GetTripResponse) Status() string
Status returns HTTPResponse.Status
func (GetTripResponse) StatusCode ¶
func (r GetTripResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserParams ¶
type GetUserParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
GetUserParams defines parameters for GetUser.
type GetUserResponse ¶
type GetUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *User
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseGetUserResponse ¶
func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)
ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call
func (GetUserResponse) Status ¶
func (r GetUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserResponse) StatusCode ¶
func (r GetUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GoodsReceipt ¶
type GoodsReceipt struct {
// Amount The goods receipt's amount. Calculated from the inner items.
Amount *float32 `json:"amount,omitempty"`
// Currency Currency of the goods receipt. ISO 4217 three-letter code.
Currency string `json:"currency"`
// ExternalId External ID of the goods receipt, displayed as delivery note in the invoice matcher.
ExternalId *string `json:"externalId"`
// GoodsReceiptNumber Goods receipt number.
GoodsReceiptNumber string `json:"goodsReceiptNumber"`
// Id Yokoy unique ID of the goods receipt.
Id *string `json:"id,omitempty"`
Items []GoodsReceiptItem `json:"items"`
// PostingDate Posting date of the goods receipt. Expressed in `YYYY-MM-DD` format.
PostingDate *openapi_types.Date `json:"postingDate"`
}
GoodsReceipt defines model for GoodsReceipt.
type GoodsReceiptItem ¶
type GoodsReceiptItem struct {
// Amount Amount of the goods receipt item.
Amount float32 `json:"amount"`
// ExternalId External ID of the goods receipt item.
ExternalId *string `json:"externalId"`
// Id Yokoy ID of the goods receipt item. For new items, Yokoy generates the ID. For existing items, you can reference that ID.
Id *string `json:"id,omitempty"`
// ItemNumber Number of the goods receipt item.
ItemNumber *string `json:"itemNumber"`
// ItemPrice Item price of the goods receipt line item.
ItemPrice *float32 `json:"itemPrice"`
// PurchaseOrderId Yokoy ID of the purchase order associated with the goods receipt line item.
PurchaseOrderId string `json:"purchaseOrderId"`
// PurchaseOrderItemId Yokoy ID of the purchase order line item associated with the goods receipt line item.
PurchaseOrderItemId string `json:"purchaseOrderItemId"`
// Quantity Quantity of the goods receipt line item.
Quantity *float32 `json:"quantity,omitempty"`
// Status Status of the goods receipt, indicating its current state.
Status *GoodsReceiptItemStatus `json:"status,omitempty"`
// Unit Unit of the goods receipt line item.
Unit *string `json:"unit"`
}
GoodsReceiptItem defines model for GoodsReceiptItem.
type GoodsReceiptItemStatus ¶
type GoodsReceiptItemStatus string
GoodsReceiptItemStatus Status of the goods receipt, indicating its current state.
const ( GoodsReceiptItemStatusActive GoodsReceiptItemStatus = "active" GoodsReceiptItemStatusBlocked GoodsReceiptItemStatus = "blocked" GoodsReceiptItemStatusDeleted GoodsReceiptItemStatus = "deleted" GoodsReceiptItemStatusInactive GoodsReceiptItemStatus = "inactive" )
Defines values for GoodsReceiptItemStatus.
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type HttpValidationError ¶
type HttpValidationError = HttpError
HttpValidationError defines model for HttpValidationError.
type IncomeTaxableAmount ¶
type IncomeTaxableAmount struct {
// AggregatedExpenses Previously exported expenses included in income tax calculation.
AggregatedExpenses *[]struct {
// Amount Amount of the aggregated expense included in the income tax calculation.
Amount *float32 `json:"amount,omitempty"`
// ExpenseId Yokoy unique ID of the expense.
ExpenseId *string `json:"expenseId,omitempty"`
// IncomeTaxableAmount Taxable amount of the aggregate expense included in the income tax calculation.
IncomeTaxableAmount *float32 `json:"incomeTaxableAmount,omitempty"`
} `json:"aggregatedExpenses,omitempty"`
// CategoryId Yokoy unique ID of the category.
CategoryId *string `json:"categoryId,omitempty"`
// Currency Currency of the taxable amount subject to income tax. ISO 4217 three-letter code.
Currency *string `json:"currency,omitempty"`
// IncomeTaxRuleId Unique ID of the income tax rule.
IncomeTaxRuleId *string `json:"incomeTaxRuleId,omitempty"`
// IncomeTaxableAmount Taxable amount of the expense subject to income tax.
IncomeTaxableAmount *float32 `json:"incomeTaxableAmount,omitempty"`
// PayrollCode Payroll code associated to the income tax rule.
PayrollCode *string `json:"payrollCode,omitempty"`
// UserId Yokoy unique ID of the user.
UserId *string `json:"userId,omitempty"`
}
IncomeTaxableAmount defines model for IncomeTaxableAmount.
type InsufficientData ¶
type InsufficientData = Error
InsufficientData defines model for InsufficientData.
type Invoice ¶
type Invoice struct {
// Country Country of the invoice. Expressed as an ISO 3166 Alpha-2 code.
Country string `json:"country"`
// Created Timestamp (date and time) when the invoice was created. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
Created *time.Time `json:"created,omitempty"`
// Currency Currency of the invoice. ISO 4217 three-letter code.
Currency *string `json:"currency,omitempty"`
// CustomInformation Dictionary of custom information associated with the invoice.
CustomInformation *map[string]string `json:"customInformation"`
// Date Date of the invoice. Expressed in `YYYY-MM-DD` format.
Date *openapi_types.Date `json:"date"`
// DocumentData A base64-encoded string of the document related to the invoice. This document is uploaded and linked to the invoice.
// However, the document is not analyzed by the Yokoy AI.
// The document must be a PDF.
DocumentData *string `json:"documentData,omitempty"`
// DueDate Due date of the invoice. Expressed in `YYYY-MM-DD` format.
DueDate *openapi_types.Date `json:"dueDate"`
EventLog *[]EventLogEntry `json:"eventLog"`
// ExportJobId Yokoy unique ID of the last export job that the invoice has been included in, if any.
ExportJobId *string `json:"exportJobId"`
// FxRates Foreign exchange reference rates used by Yokoy to convert the original invoice amount to other currencies. All currencies are quoted against the US dollar (base currency). ISO 4217 three-letter code.
FxRates *map[string]interface{} `json:"fxRates"`
// GrossAmount Gross amount of the invoice. Aggregated from the invoice's line items.
GrossAmount *float32 `json:"grossAmount,omitempty"`
// Id Yokoy unique ID of the invoice.
Id *string `json:"id,omitempty"`
// InvoiceNumber Invoice number
InvoiceNumber string `json:"invoiceNumber"`
// IsCreditNote Indicates whether or not the invoice is a credit note.
// This attribute is read only as Yokoy determines whether the invoice is a credit note based on the invoice gross amount.
IsCreditNote *bool `json:"isCreditNote"`
// LastModified Timestamp (date and time) when the invoice was last modified. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
LastModified *time.Time `json:"lastModified,omitempty"`
LineItems []InvoiceLineItem `json:"lineItems"`
// NetAmount Net amount of the invoice. Aggregated from the invoice's line items.
NetAmount *float32 `json:"netAmount,omitempty"`
OneTimeSupplierInfo *struct {
// BankAccount Bank account number. Often used if no IBAN exists.
BankAccount *string `json:"bankAccount"`
// BankCountry Country of the bank. Expressed as an ISO 3166 Alpha-2 code.
BankCountry *string `json:"bankCountry"`
// City City where the one-time supplier is located.
City string `json:"city"`
// Country Country where the one-time supplier is located. Expressed as an ISO 3166 Alpha-2 code.
Country string `json:"country"`
// Iban IBAN (International Bank Account Number).
Iban *string `json:"iban"`
// Street Street where the one-time supplier is located.
Street string `json:"street"`
// SupplierId This supplier ID links to the template legal-entity supplier. The template supplier is displayed in the one-time supplier list and can be selected as a supplier in invoices.
SupplierId string `json:"supplierId"`
// SupplierName Name of the one-time supplier.
SupplierName string `json:"supplierName"`
// SwiftCode Swift code (also called the BIC).
SwiftCode *string `json:"swiftCode"`
// TaxNumber Legal tax number of the one-time supplier.
TaxNumber *string `json:"taxNumber"`
// ZipCode Postal code where the one-time supplier is located.
ZipCode string `json:"zipCode"`
} `json:"oneTimeSupplierInfo,omitempty"`
// PaymentBlocked Indicates whether the invoice has a payment block. A payment block is a restriction set on the invoice to instruct the finance system to avoid paying the invoice during the payment run.
PaymentBlocked *bool `json:"paymentBlocked"`
// PaymentInformation Information related to the payment of the invoice.
PaymentInformation *InvoiceBankAccount `json:"paymentInformation,omitempty"`
// PaymentTermId Yokoy unique ID of the payment terms associated with the invoice.
PaymentTermId *string `json:"paymentTermId"`
// PostingDate Posting date of the invoice. Expressed in `YYYY-MM-DD` format.
PostingDate *openapi_types.Date `json:"postingDate"`
// PurchaseOrderIds Array of Yokoy purchase order IDs associated with the invoice.
PurchaseOrderIds *[]string `json:"purchaseOrderIds"`
// QrInfo Invoice QR information. Supports Swiss QR-bill.
QrInfo *InvoiceQrInformation `json:"qrInfo,omitempty"`
// ServiceDate The invoice's service date(s). If a single date is passed as a string, then it describes that date.
// Otherwise, if an array is passed with two dates, then it is considered as a range of dates.
ServiceDate *Invoice_ServiceDate `json:"serviceDate"`
// Status Status of the invoice. Yokoy determines the status of the invoice. It cannot be changed directly.
// The statuses can be draft (`0`), needs revision (`1`), in approval (`2`), in review (`3`), ready for export (`4`), rejected (`5`), exported (`6`), new (`7`), or waiting for async input (`8`).
Status *InvoiceStatus `json:"status,omitempty"`
// Submitters List of Yokoy user IDs who submitted the invoice or who are responsible for coding the invoice.
Submitters *[]string `json:"submitters"`
// SupplierId Yokoy unique ID of the legal entity supplier associated with the invoice.
SupplierId *string `json:"supplierId"`
// TaxAmount Tax amount of the invoice. Aggregated from the invoice's line items.
TaxAmount *float32 `json:"taxAmount"`
// TaxableAmount Taxable amount of the invoice. Aggregated from the invoice's line items. Deprecated. Use `taxAmount` instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxableAmount *float32 `json:"taxableAmount"`
}
Invoice defines model for Invoice.
type InvoiceBankAccount ¶
type InvoiceBankAccount struct {
// BankAccount Bank account number. Often used if no IBAN exists.
BankAccount *string `json:"bankAccount"`
// BankCountry Country of the bank.
BankCountry *string `json:"bankCountry"`
// BankKey Bank key (also called branch code).
BankKey *string `json:"bankKey"`
// BankNumber Bank number (also called bank code).
BankNumber *string `json:"bankNumber"`
// ExternalId External ID of the bank in ERP systems.
ExternalId *string `json:"externalId"`
// Iban IBAN (International Bank Account Number).
Iban *string `json:"iban"`
// SwiftCode Swift code (also called the BIC).
SwiftCode *string `json:"swiftCode"`
}
InvoiceBankAccount Information related to the payment of the invoice.
type InvoiceBase64 ¶
type InvoiceBase64 struct {
// InvoiceId Yokoy unique ID of the invoice.
InvoiceId *string `json:"invoiceId,omitempty"`
// PdfBase64 Invoice PDF file encoded in base64 format.
PdfBase64 *string `json:"pdfBase64,omitempty"`
}
InvoiceBase64 defines model for InvoiceBase64.
type InvoiceCategory ¶
type InvoiceCategory struct {
// AccountReference Account reference (ERP) of the invoice category.
AccountReference *string `json:"accountReference,omitempty"`
// CustomInformation Dictionary of custom information associated with the category.
CustomInformation *map[string]string `json:"customInformation"`
// Description Description of the invoice category.
Description *string `json:"description"`
// ExportCostObject Indicates if the cost object should be included during export.
ExportCostObject *bool `json:"exportCostObject,omitempty"`
// Id Yokoy unique ID of the invoice category.
Id *string `json:"id,omitempty"`
// IsTaxOnly Determines whether the line item is a tax-only item. This means that the total amount of the invoice line item is entirely tax. There is no net amount.
IsTaxOnly *bool `json:"isTaxOnly"`
// Name Name of the invoice category.
Name *string `json:"name,omitempty"`
// StatusActive Status of the invoice category, whether the invoice category is active. Only active categories can be used in an invoice.
StatusActive *bool `json:"statusActive,omitempty"`
}
InvoiceCategory defines model for InvoiceCategory.
type InvoiceExportArtefact ¶
type InvoiceExportArtefact struct {
// GeneratedFiles List of file names of the additional files generated with the export.
GeneratedFiles *[]string `json:"generatedFiles,omitempty"`
// Id Yokoy unique ID of the artefact.
Id *string `json:"id,omitempty"`
// OriginalFormat Original format of the serialized artefact.
OriginalFormat *string `json:"originalFormat,omitempty"`
// RelatedDocumentIds List of Yokoy invoice IDs contained in the artefact.
RelatedDocumentIds *[]string `json:"relatedDocumentIds,omitempty"`
// SerializedArtefact Serialized artefact of the form `InvoiceExportPayload`.
SerializedArtefact *string `json:"serializedArtefact,omitempty"`
}
InvoiceExportArtefact defines model for InvoiceExportArtefact.
type InvoiceExportTaskInformation ¶
type InvoiceExportTaskInformation struct {
Resource *struct {
// Created Timestamp (date and time) when the export was triggered. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
Created *time.Time `json:"created,omitempty"`
// EarliestPostingDate Earliest allowed posting date specified for the export.
EarliestPostingDate *string `json:"earliestPostingDate,omitempty"`
// ExporterId Yokoy unique ID of the user on behalf of whom the export job is performed.
ExporterId *string `json:"exporterId,omitempty"`
// ExporterName Last name of the user on behalf of whom the export job is performed.
ExporterName *string `json:"exporterName,omitempty"`
// FacilityId Yokoy unique ID of the invoice export facility.
FacilityId *string `json:"facilityId,omitempty"`
// GeneratedFiles List of file names of the additional files generated with the export.
GeneratedFiles *[]string `json:"generatedFiles,omitempty"`
// Id ID of the export job.
Id *string `json:"id,omitempty"`
// IsPending Status of the export job, whether the export job is still pending.
IsPending *bool `json:"isPending,omitempty"`
// Method Method used to trigger the export job.
Method *InvoiceExportTaskInformationResourceMethod `json:"method,omitempty"`
} `json:"resource,omitempty"`
}
InvoiceExportTaskInformation defines model for InvoiceExportTaskInformation.
type InvoiceExportTaskInformationResourceMethod ¶
type InvoiceExportTaskInformationResourceMethod string
InvoiceExportTaskInformationResourceMethod Method used to trigger the export job.
const ( InvoiceExportTaskInformationResourceMethodApi InvoiceExportTaskInformationResourceMethod = "api" InvoiceExportTaskInformationResourceMethodAutomatic InvoiceExportTaskInformationResourceMethod = "automatic" InvoiceExportTaskInformationResourceMethodManual InvoiceExportTaskInformationResourceMethod = "manual" )
Defines values for InvoiceExportTaskInformationResourceMethod.
type InvoiceLineItem ¶
type InvoiceLineItem struct {
// CategoryId Yokoy unique ID of the invoice category associated with the line item.
CategoryId *string `json:"categoryId"`
// CostObjectId Yokoy unique ID of the cost object associated with the line item.
CostObjectId *string `json:"costObjectId"`
// CustomInformation Dictionary of custom information associated with the line item.
CustomInformation *map[string]interface{} `json:"customInformation"`
// Description Description of the line item.
Description *string `json:"description"`
// GoodsReceiptId Yokoy unique ID of the goods receipt associated with the line item. Only present in 3-way matching.
GoodsReceiptId *string `json:"goodsReceiptId"`
// GoodsReceiptItemId Yokoy unique ID of the goods receipt line item associated with the line item. Only present in 3-way matching.
GoodsReceiptItemId *string `json:"goodsReceiptItemId"`
// GoodsReceiptNumber Yokoy goods receipt number associated with the line item. Only present in 3-way matching.
GoodsReceiptNumber *string `json:"goodsReceiptNumber"`
// Gross Gross amount of the line item.
Gross float32 `json:"gross"`
// IsTaxOnly Indicates whether a line item a tax-only item. This means that the total amount of the invoice line item is entirely tax. There is no net amount.
IsTaxOnly *bool `json:"isTaxOnly"`
// ItemPrice Item price of the line item.
ItemPrice *float32 `json:"itemPrice"`
// MatchStatus Indicates matching status of purchase order line item (two-way matching) / goods receipt line item (three-way matching) with invoice line item. The status can be `notmatched`, `matched`, `nonPurchaseOrder`, `overspent` (two-way matching), `mismatch` (three-way matching).
// Calculated internally in Yokoy during matching. It cannot be imported or changed.
MatchStatus *InvoiceLineItemMatchStatus `json:"matchStatus"`
// Net Net amount of the line item.
Net float32 `json:"net"`
// NonRecoverableTaxAmount Total non-recoverable tax amount of the line item.
NonRecoverableTaxAmount *float32 `json:"nonRecoverableTaxAmount"`
// PurchaseOrderId Yokoy unique ID of the purchase order associated with the line item.
PurchaseOrderId *string `json:"purchaseOrderId"`
// PurchaseOrderItemId Yokoy unique ID of the purchase order line item associated with the line item.
PurchaseOrderItemId *string `json:"purchaseOrderItemId"`
// PurchaseOrderNumber Purchase order number associated with the line item.
PurchaseOrderNumber *string `json:"purchaseOrderNumber"`
// Quantity Quantity of the line item.
Quantity *float32 `json:"quantity"`
// SelfAssessedTaxAmount Total self-assessed tax amount of the line item.
SelfAssessedTaxAmount *float32 `json:"selfAssessedTaxAmount"`
// ServiceEndDate Service period end date for the line item. Expressed in `YYYY-MM-DD` format. Only used when service periods are enabled for invoices in the legal entity. You must set this attribute if `serviceStartDate` is set.
ServiceEndDate *openapi_types.Date `json:"serviceEndDate"`
// ServiceStartDate Service period start date for the line item. Expressed in `YYYY-MM-DD` format. Only used when service periods are enabled for invoices in the legal entity.
ServiceStartDate *openapi_types.Date `json:"serviceStartDate"`
// Tags Tags associated with the line item.
Tags *map[string]string `json:"tags,omitempty"`
// TaxAmount Total tax amount of the line item.
TaxAmount *float32 `json:"taxAmount"`
TaxRateComponents *[]InvoiceLineItemTaxComponent `json:"taxRateComponents"`
// TaxRateId Yokoy unique ID of the tax rate associated with the line item.
TaxRateId *string `json:"taxRateId"`
// Unit Unit of the line item.
Unit *string `json:"unit"`
}
InvoiceLineItem defines model for InvoiceLineItem.
type InvoiceLineItemMatchStatus ¶
type InvoiceLineItemMatchStatus string
InvoiceLineItemMatchStatus Indicates matching status of purchase order line item (two-way matching) / goods receipt line item (three-way matching) with invoice line item. The status can be `notmatched`, `matched`, `nonPurchaseOrder`, `overspent` (two-way matching), `mismatch` (three-way matching). Calculated internally in Yokoy during matching. It cannot be imported or changed.
const ( Matched InvoiceLineItemMatchStatus = "matched" Mismatch InvoiceLineItemMatchStatus = "mismatch" NonPurchaseOrder InvoiceLineItemMatchStatus = "nonPurchaseOrder" Notmatched InvoiceLineItemMatchStatus = "notmatched" Overspent InvoiceLineItemMatchStatus = "overspent" )
Defines values for InvoiceLineItemMatchStatus.
type InvoiceLineItemTaxComponent ¶
type InvoiceLineItemTaxComponent struct {
// Name Indicates description of the tax component.
Name string `json:"name"`
// NonRecoverableTaxAmount Non-recoverable tax amount. 100 is understood as 100%.
NonRecoverableTaxAmount *float32 `json:"nonRecoverableTaxAmount"`
// Rate Tax rate in percentage.
Rate float32 `json:"rate"`
// SelfAssessedTaxAmount Self-assessed tax amount.
SelfAssessedTaxAmount *float32 `json:"selfAssessedTaxAmount"`
// TaxAmount Tax amount.
TaxAmount *float32 `json:"taxAmount"`
}
InvoiceLineItemTaxComponent defines model for InvoiceLineItemTaxComponent.
type InvoicePaymentTerms ¶
type InvoicePaymentTerms struct {
// Discounts List of discounts applied if an invoice is paid within a given time-frame.
Discounts *[]struct {
// Days Days that determines early invoice payment. If paid within this period, a discount is applied to the invoice.
Days *float32 `json:"days,omitempty"`
// Discount Discount (percentage) applied to the invoice. For example, 5% == 5.
Discount *float32 `json:"discount,omitempty"`
} `json:"discounts"`
// ExternalId External reference to the payment term.
ExternalId *string `json:"externalId"`
// Id Yokoy unique ID of the invoice payment term.
Id *string `json:"id,omitempty"`
// Name Name of the payment term
Name string `json:"name"`
// NetPaymentPeriod Period (days) within which the payment is required.
NetPaymentPeriod *float32 `json:"netPaymentPeriod,omitempty"`
// SupplierSpecific Restricts the payment term to a specific supplier. If set to `true`, the payment term can only be used with that supplier (specified by the payment term ID in the supplier payload). If set to `false`, the payment term is considered to be generic and can be used with any supplier of the legal entity.
SupplierSpecific *bool `json:"supplierSpecific,omitempty"`
}
InvoicePaymentTerms defines model for InvoicePaymentTerms.
type InvoiceQrInformation ¶
type InvoiceQrInformation struct {
// Iban IBAN (International Bank Account Number). It can be a standard IBAN or a QR-IBAN associated with the payment creditor. Only Swiss IBAN numbers are allowed.
Iban *string `json:"iban"`
// ReferenceNumber Payment reference. It can be either a QR reference or a Creditor reference. QR reference or Creditor Reference (ISO 11649). The QR reference is printed in blocks of 5 characters (beginning with 2 characters, then 5x5-character groups). The Creditor Reference is printed in blocks of 4 characters.
ReferenceNumber *string `json:"referenceNumber"`
// StructuredMessage Billing information. Coded information for automated booking of the payment. This information may be used for automating accounts payable processes, for instance. The data is not forwarded with the payment but it is printed on the payment part of the bill. The coding of the element always begins with “//” (slash slash) followed by the double-digit, abbreviated name of the proposed version of the “Structured information for the bill issuer” that is being used. The first two characters are reserved as the code for the rule defining how the remaining characters of this field should be interpreted. For more information on coding, see www.paymentstandards.ch.
StructuredMessage *string `json:"structuredMessage"`
// Type Reference type. If `iban` is a QR-IBAN, then the type is `QRR` (QR reference). Otherwise, it can be `SCOR` (Creditor reference) or `NON` (without reference).
Type *string `json:"type"`
// UnstructuredMessage Additional description. Used give the payment purpose or for additional textual information about payments with a structured reference. Unstructured references are printed on the payment part under the heading “Additional information”.
UnstructuredMessage *string `json:"unstructuredMessage"`
}
InvoiceQrInformation Invoice QR information. Supports Swiss QR-bill.
type InvoiceStatus ¶
type InvoiceStatus string
InvoiceStatus Status of the invoice. Yokoy determines the status of the invoice. It cannot be changed directly. The statuses can be draft (`0`), needs revision (`1`), in approval (`2`), in review (`3`), ready for export (`4`), rejected (`5`), exported (`6`), new (`7`), or waiting for async input (`8`).
const ( InvoiceStatusN0 InvoiceStatus = "0" InvoiceStatusN1 InvoiceStatus = "1" InvoiceStatusN2 InvoiceStatus = "2" InvoiceStatusN3 InvoiceStatus = "3" InvoiceStatusN4 InvoiceStatus = "4" InvoiceStatusN5 InvoiceStatus = "5" InvoiceStatusN6 InvoiceStatus = "6" InvoiceStatusN7 InvoiceStatus = "7" InvoiceStatusN8 InvoiceStatus = "8" )
Defines values for InvoiceStatus.
type Invoice_ServiceDate ¶
type Invoice_ServiceDate struct {
// contains filtered or unexported fields
}
Invoice_ServiceDate The invoice's service date(s). If a single date is passed as a string, then it describes that date. Otherwise, if an array is passed with two dates, then it is considered as a range of dates.
func (Invoice_ServiceDate) AsDateRange ¶
func (t Invoice_ServiceDate) AsDateRange() (DateRange, error)
AsDateRange returns the union data inside the Invoice_ServiceDate as a DateRange
func (Invoice_ServiceDate) AsDateString ¶
func (t Invoice_ServiceDate) AsDateString() (DateString, error)
AsDateString returns the union data inside the Invoice_ServiceDate as a DateString
func (*Invoice_ServiceDate) FromDateRange ¶
func (t *Invoice_ServiceDate) FromDateRange(v DateRange) error
FromDateRange overwrites any union data inside the Invoice_ServiceDate as the provided DateRange
func (*Invoice_ServiceDate) FromDateString ¶
func (t *Invoice_ServiceDate) FromDateString(v DateString) error
FromDateString overwrites any union data inside the Invoice_ServiceDate as the provided DateString
func (Invoice_ServiceDate) MarshalJSON ¶
func (t Invoice_ServiceDate) MarshalJSON() ([]byte, error)
func (*Invoice_ServiceDate) MergeDateRange ¶
func (t *Invoice_ServiceDate) MergeDateRange(v DateRange) error
MergeDateRange performs a merge with any union data inside the Invoice_ServiceDate, using the provided DateRange
func (*Invoice_ServiceDate) MergeDateString ¶
func (t *Invoice_ServiceDate) MergeDateString(v DateString) error
MergeDateString performs a merge with any union data inside the Invoice_ServiceDate, using the provided DateString
func (*Invoice_ServiceDate) UnmarshalJSON ¶
func (t *Invoice_ServiceDate) UnmarshalJSON(b []byte) error
type LegalEntity ¶
type LegalEntity struct {
Categories []struct {
// AccountReference Account (ERP). Expense account on which the expense is booked.
AccountReference string `json:"accountReference"`
// CustomInformation Dictionary of custom information attributes associated with the expense category.
CustomInformation *map[string]string `json:"customInformation"`
// Id Yokoy unique ID of the expense category.
Id *string `json:"id,omitempty"`
// Name Name of the expense category.
Name string `json:"name"`
// StatusActive Status of the expense category. Only active categories can be used for new expenses.
StatusActive bool `json:"statusActive"`
} `json:"categories"`
// Code Code (ERP). The legal entity's account in the ERP system.
Code string `json:"code"`
// Id Yokoy unique ID of the legal entity (company).
Id *string `json:"id,omitempty"`
// Language Main language of the legal entity. Expressed as ISO 639 two-letter language code (exceptions: German (CH) and English (UK)).
Language LegalEntityLanguage `json:"language"`
// Name Name of the legal entity's name.
Name *string `json:"name,omitempty"`
Policies []struct {
// Code Code (ERP) of the employee policy. ERP reference.
Code string `json:"code"`
// Id Yokoy ID of the employee policy.
Id *string `json:"id,omitempty"`
// Name Name of the employee policy.
Name string `json:"name"`
// StatusActive Status of the employee policy.
StatusActive bool `json:"statusActive"`
} `json:"policies"`
TaxRates *[]struct {
// Code Code (ERP) of the tax rate.
Code string `json:"code"`
// CustomInformation Dictionary of custom information attributes associated with the tax rate.
CustomInformation *map[string]string `json:"customInformation"`
// Id Yokoy unique ID of the tax rate.
Id *string `json:"id,omitempty"`
// Name Name of the tax rates.
Name string `json:"name"`
// StatusActive Status of the tax rate. Inactive tax rates cannot be used in expenses, trips, and invoices.
StatusActive bool `json:"statusActive"`
} `json:"taxRates"`
}
LegalEntity defines model for LegalEntity.
type LegalEntityIdInPath ¶
type LegalEntityIdInPath = string
LegalEntityIdInPath defines model for LegalEntityIdInPath.
type LegalEntityLanguage ¶
type LegalEntityLanguage string
LegalEntityLanguage Main language of the legal entity. Expressed as ISO 639 two-letter language code (exceptions: German (CH) and English (UK)).
const ( LegalEntityLanguageDe LegalEntityLanguage = "de" LegalEntityLanguageDeCh LegalEntityLanguage = "de-ch" LegalEntityLanguageEn LegalEntityLanguage = "en" LegalEntityLanguageEnGb LegalEntityLanguage = "en-gb" LegalEntityLanguageEs LegalEntityLanguage = "es" LegalEntityLanguageFr LegalEntityLanguage = "fr" LegalEntityLanguageJa LegalEntityLanguage = "ja" LegalEntityLanguageNl LegalEntityLanguage = "nl" LegalEntityLanguagePl LegalEntityLanguage = "pl" LegalEntityLanguageZh LegalEntityLanguage = "zh" )
Defines values for LegalEntityLanguage.
type LegalEntitySupplier ¶
type LegalEntitySupplier struct {
AutoSubmissionSettings *SupplierAutoSubmissionSettings `json:"autoSubmissionSettings,omitempty"`
// CodingType Determines how invoices from this supplier should be processed by Yokoy.
// - `smart`: If selected, Yokoy tries to smart-code all invoices for the supplier.
// - `supplierDefault`: If selected, Yokoy picks the default cost object and category that you have set up in the supplier settings.
// - `entity`: If this option is selected, Yokoy follows whatever coding logic is determined for the company. If smart coding is enabled for the legal entity, Yokoy performs smart coding of the invoice. If smart coding is not enabled for the legal entity, then no smart coding is performed.
CodingType *LegalEntitySupplierCodingType `json:"codingType"`
CustomInformation *map[string]interface{} `json:"customInformation"`
// DefaultApproverFirstName The first name of the default invoice approver.
DefaultApproverFirstName *string `json:"defaultApproverFirstName"`
// DefaultApproverId Yokoy unique ID of the default approver.
DefaultApproverId *string `json:"defaultApproverId"`
// DefaultApproverLastName The last name of the default invoice approver.
DefaultApproverLastName *string `json:"defaultApproverLastName"`
// DefaultCategoryId Yokoy unique ID of the default invoice category.
DefaultCategoryId *string `json:"defaultCategoryId"`
// DefaultCategoryName Name of the default invoice category for this supplier.
DefaultCategoryName *string `json:"defaultCategoryName"`
// DefaultCostCenterId Yokoy unique ID of the default cost object.
DefaultCostCenterId *string `json:"defaultCostCenterId"`
// DefaultCostCenterName Name of the default cost object.
DefaultCostCenterName *string `json:"defaultCostCenterName"`
// DefaultPaymentTermId Yokoy unique ID of the default payment term.
DefaultPaymentTermId *string `json:"defaultPaymentTermId"`
// Id Yokoy unique ID of supplier linked to a specific legal entity.
Id *string `json:"id,omitempty"`
// IsInternalSupplier Identifies the supplier as intercompany supplier.
IsInternalSupplier *bool `json:"isInternalSupplier"`
// IsPurchaseOrderSupplier Indicates if the supplier requires a purchase order for each invoice.
IsPurchaseOrderSupplier *bool `json:"isPurchaseOrderSupplier"`
// PaymentTermIds Array of Yokoy IDs of payment terms.
PaymentTermIds *[]string `json:"paymentTermIds"`
StatusActive bool `json:"statusActive"`
// SupplierId Yokoy ID of the organization supplier. It must reference an existing organization-level supplier.
SupplierId string `json:"supplierId"`
// TriggerAutoMatchWithoutPO Trigger auto-match without purchase order number data. For PO suppliers (i.e. suppliers with invoices that must always have an associated PO), if set as `true`, Yokoy tries to match the invoice to a purchase order if no purchase order data is provided.
TriggerAutoMatchWithoutPO *bool `json:"triggerAutoMatchWithoutPO"`
}
LegalEntitySupplier defines model for LegalEntitySupplier.
type LegalEntitySupplierCodingType ¶
type LegalEntitySupplierCodingType string
LegalEntitySupplierCodingType Determines how invoices from this supplier should be processed by Yokoy. - `smart`: If selected, Yokoy tries to smart-code all invoices for the supplier. - `supplierDefault`: If selected, Yokoy picks the default cost object and category that you have set up in the supplier settings. - `entity`: If this option is selected, Yokoy follows whatever coding logic is determined for the company. If smart coding is enabled for the legal entity, Yokoy performs smart coding of the invoice. If smart coding is not enabled for the legal entity, then no smart coding is performed.
const ( LegalEntitySupplierCodingTypeEntity LegalEntitySupplierCodingType = "entity" LegalEntitySupplierCodingTypeSmart LegalEntitySupplierCodingType = "smart" LegalEntitySupplierCodingTypeSupplierDefault LegalEntitySupplierCodingType = "supplierDefault" )
Defines values for LegalEntitySupplierCodingType.
type ListCardAccountsParams ¶
type ListCardAccountsParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
}
ListCardAccountsParams defines parameters for ListCardAccounts.
type ListCardAccountsResponse ¶
type ListCardAccountsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
CardAccounts *[]CardAccount `json:"cardAccounts,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListCardAccountsResponse ¶
func ParseListCardAccountsResponse(rsp *http.Response) (*ListCardAccountsResponse, error)
ParseListCardAccountsResponse parses an HTTP response from a ListCardAccountsWithResponse call
func (ListCardAccountsResponse) Status ¶
func (r ListCardAccountsResponse) Status() string
Status returns HTTPResponse.Status
func (ListCardAccountsResponse) StatusCode ¶
func (r ListCardAccountsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCompanyCardsParams ¶
type ListCompanyCardsParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListCompanyCardsParams defines parameters for ListCompanyCards.
type ListCompanyCardsResponse ¶
type ListCompanyCardsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
CompanyCards *[]CompanyCard `json:"companyCards,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListCompanyCardsResponse ¶
func ParseListCompanyCardsResponse(rsp *http.Response) (*ListCompanyCardsResponse, error)
ParseListCompanyCardsResponse parses an HTTP response from a ListCompanyCardsWithResponse call
func (ListCompanyCardsResponse) Status ¶
func (r ListCompanyCardsResponse) Status() string
Status returns HTTPResponse.Status
func (ListCompanyCardsResponse) StatusCode ¶
func (r ListCompanyCardsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListCostObjectsParams ¶
type ListCostObjectsParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters. All public fields are supported, except `created`, `lastModified`, `accessType` and `scopes`.
Filter *string `form:"filter,omitempty" json:"filter,omitempty"`
// Count Optional count for paginating. When provided, the results are paginated. Without `count`, no pagination is provided.
// The maximum number of items that can be included in a paginated response is `100`.
// When paginated, the response includes the `itemsPerPage` attribute.
// If the number of items available is greater than or equal to `count`, it also includes the `nextCursor` attribute, which can be used to fetch the subsequent page of items.
Count *PaginationCount `form:"count,omitempty" json:"count,omitempty"`
// Cursor Optional cursor for paginating. When provided, the API fetches a subsequent page of items.
// The subsequent page is identified by the value given in `nextCursor` in the previous response.
// `cursor` can only be used if the `count` attribute is passed as a query parameter.
Cursor *PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListCostObjectsParams defines parameters for ListCostObjects.
type ListCostObjectsResponse ¶
type ListCostObjectsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
CostCenters *[]CostCenter `json:"costCenters,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListCostObjectsResponse ¶
func ParseListCostObjectsResponse(rsp *http.Response) (*ListCostObjectsResponse, error)
ParseListCostObjectsResponse parses an HTTP response from a ListCostObjectsWithResponse call
func (ListCostObjectsResponse) Status ¶
func (r ListCostObjectsResponse) Status() string
Status returns HTTPResponse.Status
func (ListCostObjectsResponse) StatusCode ¶
func (r ListCostObjectsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListEntitySupplierParams ¶
type ListEntitySupplierParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListEntitySupplierParams defines parameters for ListEntitySupplier.
type ListEntitySupplierResponse ¶
type ListEntitySupplierResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Suppliers *[]Supplier `json:"suppliers,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListEntitySupplierResponse ¶
func ParseListEntitySupplierResponse(rsp *http.Response) (*ListEntitySupplierResponse, error)
ParseListEntitySupplierResponse parses an HTTP response from a ListEntitySupplierWithResponse call
func (ListEntitySupplierResponse) Status ¶
func (r ListEntitySupplierResponse) Status() string
Status returns HTTPResponse.Status
func (ListEntitySupplierResponse) StatusCode ¶
func (r ListEntitySupplierResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListExpenseCategoriesParams ¶
type ListExpenseCategoriesParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListExpenseCategoriesParams defines parameters for ListExpenseCategories.
type ListExpenseCategoriesResponse ¶
type ListExpenseCategoriesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Categories *[]Category `json:"categories,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListExpenseCategoriesResponse ¶
func ParseListExpenseCategoriesResponse(rsp *http.Response) (*ListExpenseCategoriesResponse, error)
ParseListExpenseCategoriesResponse parses an HTTP response from a ListExpenseCategoriesWithResponse call
func (ListExpenseCategoriesResponse) Status ¶
func (r ListExpenseCategoriesResponse) Status() string
Status returns HTTPResponse.Status
func (ListExpenseCategoriesResponse) StatusCode ¶
func (r ListExpenseCategoriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListExpensesParams ¶
type ListExpensesParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
// Count Optional count for paginating. When provided, the results are paginated. Without `count`, no pagination is provided.
// The maximum number of items that can be included in a paginated response is `100`.
// When paginated, the response includes the `itemsPerPage` attribute.
// If the number of items available is greater than or equal to `count`, it also includes the `nextCursor` attribute, which can be used to fetch the subsequent page of items.
Count *PaginationCount `form:"count,omitempty" json:"count,omitempty"`
// Cursor Optional cursor for paginating. When provided, the API fetches a subsequent page of items.
// The subsequent page is identified by the value given in `nextCursor` in the previous response.
// `cursor` can only be used if the `count` attribute is passed as a query parameter.
Cursor *PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListExpensesParams defines parameters for ListExpenses.
type ListExpensesResponse ¶
type ListExpensesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Expenses *[]Expense `json:"expenses,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListExpensesResponse ¶
func ParseListExpensesResponse(rsp *http.Response) (*ListExpensesResponse, error)
ParseListExpensesResponse parses an HTTP response from a ListExpensesWithResponse call
func (ListExpensesResponse) Status ¶
func (r ListExpensesResponse) Status() string
Status returns HTTPResponse.Status
func (ListExpensesResponse) StatusCode ¶
func (r ListExpensesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListExportJobsParams ¶
type ListExportJobsParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters. The fields to filter differ from other endpoints. The filterable attributes for this endpoint are `created`, `fullDate`, `postingDate`, `type`, `facilityId` and `exportMethod`.
Filter *ExportTaskQueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListExportJobsParams defines parameters for ListExportJobs.
type ListExportJobsResponse ¶
type ListExportJobsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// contains filtered or unexported fields
}
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListExportJobsResponse ¶
func ParseListExportJobsResponse(rsp *http.Response) (*ListExportJobsResponse, error)
ParseListExportJobsResponse parses an HTTP response from a ListExportJobsWithResponse call
func (ListExportJobsResponse) Status ¶
func (r ListExportJobsResponse) Status() string
Status returns HTTPResponse.Status
func (ListExportJobsResponse) StatusCode ¶
func (r ListExportJobsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListExternalInvoicesParams ¶
type ListExternalInvoicesParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListExternalInvoicesParams defines parameters for ListExternalInvoices.
type ListExternalInvoicesResponse ¶
type ListExternalInvoicesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
ExternalInvoices *[]ExternalInvoice `json:"external-invoices,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListExternalInvoicesResponse ¶
func ParseListExternalInvoicesResponse(rsp *http.Response) (*ListExternalInvoicesResponse, error)
ParseListExternalInvoicesResponse parses an HTTP response from a ListExternalInvoicesWithResponse call
func (ListExternalInvoicesResponse) Status ¶
func (r ListExternalInvoicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListExternalInvoicesResponse) StatusCode ¶
func (r ListExternalInvoicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListFxRateSourcesParams ¶
type ListFxRateSourcesParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListFxRateSourcesParams defines parameters for ListFxRateSources.
type ListFxRateSourcesResponse ¶
type ListFxRateSourcesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
FxRateSources *[]FxRateSource `json:"fxRateSources,omitempty"`
}
JSON400 *Error
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListFxRateSourcesResponse ¶
func ParseListFxRateSourcesResponse(rsp *http.Response) (*ListFxRateSourcesResponse, error)
ParseListFxRateSourcesResponse parses an HTTP response from a ListFxRateSourcesWithResponse call
func (ListFxRateSourcesResponse) Status ¶
func (r ListFxRateSourcesResponse) Status() string
Status returns HTTPResponse.Status
func (ListFxRateSourcesResponse) StatusCode ¶
func (r ListFxRateSourcesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListGRsParams ¶
type ListGRsParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListGRsParams defines parameters for ListGRs.
type ListGRsResponse ¶
type ListGRsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
InvoiceGoodsReceipts *[]GoodsReceipt `json:"invoice-goods-receipts,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListGRsResponse ¶
func ParseListGRsResponse(rsp *http.Response) (*ListGRsResponse, error)
ParseListGRsResponse parses an HTTP response from a ListGRsWithResponse call
func (ListGRsResponse) Status ¶
func (r ListGRsResponse) Status() string
Status returns HTTPResponse.Status
func (ListGRsResponse) StatusCode ¶
func (r ListGRsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInvoiceCategoriesParams ¶
type ListInvoiceCategoriesParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListInvoiceCategoriesParams defines parameters for ListInvoiceCategories.
type ListInvoiceCategoriesResponse ¶
type ListInvoiceCategoriesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
InvoiceCategories *[]InvoiceCategory `json:"invoice-categories,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListInvoiceCategoriesResponse ¶
func ParseListInvoiceCategoriesResponse(rsp *http.Response) (*ListInvoiceCategoriesResponse, error)
ParseListInvoiceCategoriesResponse parses an HTTP response from a ListInvoiceCategoriesWithResponse call
func (ListInvoiceCategoriesResponse) Status ¶
func (r ListInvoiceCategoriesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInvoiceCategoriesResponse) StatusCode ¶
func (r ListInvoiceCategoriesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInvoicesParams ¶
type ListInvoicesParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
// Count Optional count for paginating. When provided, the results are paginated. Without `count`, no pagination is provided.
// The maximum number of items that can be included in a paginated response is `100`.
// When paginated, the response includes the `itemsPerPage` attribute.
// If the number of items available is greater than or equal to `count`, it also includes the `nextCursor` attribute, which can be used to fetch the subsequent page of items.
Count *PaginationCount `form:"count,omitempty" json:"count,omitempty"`
// Cursor Optional cursor for paginating. When provided, the API fetches a subsequent page of items.
// The subsequent page is identified by the value given in `nextCursor` in the previous response.
// `cursor` can only be used if the `count` attribute is passed as a query parameter.
Cursor *PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListInvoicesParams defines parameters for ListInvoices.
type ListInvoicesResponse ¶
type ListInvoicesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Invoices []Invoice `json:"invoices"`
// ItemsPerPage Returns the number of items in the paginated result. This attribute is only included in paginated results with `count`.
ItemsPerPage *PaginationItemsPerPage `json:"itemsPerPage,omitempty"`
// NextCursor Cursor to be used to fetch the next set of items.
// It is only resulted in calls that pass `count`in the query parameters to retrieve paginated results. When there are no further results, the attribute is not returned.
NextCursor *PaginationNextCursor `json:"nextCursor,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListInvoicesResponse ¶
func ParseListInvoicesResponse(rsp *http.Response) (*ListInvoicesResponse, error)
ParseListInvoicesResponse parses an HTTP response from a ListInvoicesWithResponse call
func (ListInvoicesResponse) Status ¶
func (r ListInvoicesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInvoicesResponse) StatusCode ¶
func (r ListInvoicesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListLegalEntitiesParams ¶
type ListLegalEntitiesParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListLegalEntitiesParams defines parameters for ListLegalEntities.
type ListLegalEntitiesResponse ¶
type ListLegalEntitiesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
LegalEntities *[]LegalEntity `json:"legalEntities,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListLegalEntitiesResponse ¶
func ParseListLegalEntitiesResponse(rsp *http.Response) (*ListLegalEntitiesResponse, error)
ParseListLegalEntitiesResponse parses an HTTP response from a ListLegalEntitiesWithResponse call
func (ListLegalEntitiesResponse) Status ¶
func (r ListLegalEntitiesResponse) Status() string
Status returns HTTPResponse.Status
func (ListLegalEntitiesResponse) StatusCode ¶
func (r ListLegalEntitiesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOrgSuppliersParams ¶
type ListOrgSuppliersParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListOrgSuppliersParams defines parameters for ListOrgSuppliers.
type ListOrgSuppliersResponse ¶
type ListOrgSuppliersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
OrganizationSuppliers *[]OrganizationSupplier `json:"organization-suppliers,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListOrgSuppliersResponse ¶
func ParseListOrgSuppliersResponse(rsp *http.Response) (*ListOrgSuppliersResponse, error)
ParseListOrgSuppliersResponse parses an HTTP response from a ListOrgSuppliersWithResponse call
func (ListOrgSuppliersResponse) Status ¶
func (r ListOrgSuppliersResponse) Status() string
Status returns HTTPResponse.Status
func (ListOrgSuppliersResponse) StatusCode ¶
func (r ListOrgSuppliersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPOsParams ¶
type ListPOsParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListPOsParams defines parameters for ListPOs.
type ListPOsResponse ¶
type ListPOsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
InvoicePurchaseOrders *[]PurchaseOrder `json:"invoice-purchase-orders,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListPOsResponse ¶
func ParseListPOsResponse(rsp *http.Response) (*ListPOsResponse, error)
ParseListPOsResponse parses an HTTP response from a ListPOsWithResponse call
func (ListPOsResponse) Status ¶
func (r ListPOsResponse) Status() string
Status returns HTTPResponse.Status
func (ListPOsResponse) StatusCode ¶
func (r ListPOsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPaymentTermsParams ¶
type ListPaymentTermsParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListPaymentTermsParams defines parameters for ListPaymentTerms.
type ListPaymentTermsResponse ¶
type ListPaymentTermsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
InvoicePaymentTerms *[]InvoicePaymentTerms `json:"invoice-payment-terms,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListPaymentTermsResponse ¶
func ParseListPaymentTermsResponse(rsp *http.Response) (*ListPaymentTermsResponse, error)
ParseListPaymentTermsResponse parses an HTTP response from a ListPaymentTermsWithResponse call
func (ListPaymentTermsResponse) Status ¶
func (r ListPaymentTermsResponse) Status() string
Status returns HTTPResponse.Status
func (ListPaymentTermsResponse) StatusCode ¶
func (r ListPaymentTermsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListPoliciesParams ¶
type ListPoliciesParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListPoliciesParams defines parameters for ListPolicies.
type ListPoliciesResponse ¶
type ListPoliciesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Policies *[]Policy `json:"policies,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListPoliciesResponse ¶
func ParseListPoliciesResponse(rsp *http.Response) (*ListPoliciesResponse, error)
ParseListPoliciesResponse parses an HTTP response from a ListPoliciesWithResponse call
func (ListPoliciesResponse) Status ¶
func (r ListPoliciesResponse) Status() string
Status returns HTTPResponse.Status
func (ListPoliciesResponse) StatusCode ¶
func (r ListPoliciesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTagsParams ¶
type ListTagsParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
// Count Optional count for paginating. When provided, the results are paginated. Without `count`, no pagination is provided.
// The maximum number of items that can be included in a paginated response is `100`.
// When paginated, the response includes the `itemsPerPage` attribute.
// If the number of items available is greater than or equal to `count`, it also includes the `nextCursor` attribute, which can be used to fetch the subsequent page of items.
Count *PaginationCount `form:"count,omitempty" json:"count,omitempty"`
// Cursor Optional cursor for paginating. When provided, the API fetches a subsequent page of items.
// The subsequent page is identified by the value given in `nextCursor` in the previous response.
// `cursor` can only be used if the `count` attribute is passed as a query parameter.
Cursor *PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListTagsParams defines parameters for ListTags.
type ListTagsResponse ¶
type ListTagsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Tags *[]Tag `json:"tags,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListTagsResponse ¶
func ParseListTagsResponse(rsp *http.Response) (*ListTagsResponse, error)
ParseListTagsResponse parses an HTTP response from a ListTagsWithResponse call
func (ListTagsResponse) Status ¶
func (r ListTagsResponse) Status() string
Status returns HTTPResponse.Status
func (ListTagsResponse) StatusCode ¶
func (r ListTagsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTaxRatesParams ¶
type ListTaxRatesParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListTaxRatesParams defines parameters for ListTaxRates.
type ListTaxRatesResponse ¶
type ListTaxRatesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
TaxRates *[]ListTaxRates_200_TaxRates_Item `json:"taxRates,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListTaxRatesResponse ¶
func ParseListTaxRatesResponse(rsp *http.Response) (*ListTaxRatesResponse, error)
ParseListTaxRatesResponse parses an HTTP response from a ListTaxRatesWithResponse call
func (ListTaxRatesResponse) Status ¶
func (r ListTaxRatesResponse) Status() string
Status returns HTTPResponse.Status
func (ListTaxRatesResponse) StatusCode ¶
func (r ListTaxRatesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTaxRates_200_TaxRates_Item ¶
type ListTaxRates_200_TaxRates_Item struct {
// contains filtered or unexported fields
}
type ListTransactionsParams ¶
type ListTransactionsParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
}
ListTransactionsParams defines parameters for ListTransactions.
type ListTransactionsResponse ¶
type ListTransactionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Transactions *[]Transaction `json:"transactions,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListTransactionsResponse ¶
func ParseListTransactionsResponse(rsp *http.Response) (*ListTransactionsResponse, error)
ParseListTransactionsResponse parses an HTTP response from a ListTransactionsWithResponse call
func (ListTransactionsResponse) Status ¶
func (r ListTransactionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListTransactionsResponse) StatusCode ¶
func (r ListTransactionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListTripsParams ¶
type ListTripsParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
// Count Optional count for paginating. When provided, the results are paginated. Without `count`, no pagination is provided.
// The maximum number of items that can be included in a paginated response is `100`.
// When paginated, the response includes the `itemsPerPage` attribute.
// If the number of items available is greater than or equal to `count`, it also includes the `nextCursor` attribute, which can be used to fetch the subsequent page of items.
Count *PaginationCount `form:"count,omitempty" json:"count,omitempty"`
// Cursor Optional cursor for paginating. When provided, the API fetches a subsequent page of items.
// The subsequent page is identified by the value given in `nextCursor` in the previous response.
// `cursor` can only be used if the `count` attribute is passed as a query parameter.
Cursor *PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListTripsParams defines parameters for ListTrips.
type ListTripsResponse ¶
type ListTripsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Trips *[]Trip `json:"trips,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListTripsResponse ¶
func ParseListTripsResponse(rsp *http.Response) (*ListTripsResponse, error)
ParseListTripsResponse parses an HTTP response from a ListTripsWithResponse call
func (ListTripsResponse) Status ¶
func (r ListTripsResponse) Status() string
Status returns HTTPResponse.Status
func (ListTripsResponse) StatusCode ¶
func (r ListTripsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListUsersParams ¶
type ListUsersParams struct {
// Filter Filter string used to restrict the data returned. You can use [SCIM specification](https://tools.ietf.org/html/rfc7644#section-3.4.2.2) filters.
Filter *QueryFilter `form:"filter,omitempty" json:"filter,omitempty"`
// Count Optional count for paginating. When provided, the results are paginated. Without `count`, no pagination is provided.
// The maximum number of items that can be included in a paginated response is `100`.
// When paginated, the response includes the `itemsPerPage` attribute.
// If the number of items available is greater than or equal to `count`, it also includes the `nextCursor` attribute, which can be used to fetch the subsequent page of items.
Count *PaginationCount `form:"count,omitempty" json:"count,omitempty"`
// Cursor Optional cursor for paginating. When provided, the API fetches a subsequent page of items.
// The subsequent page is identified by the value given in `nextCursor` in the previous response.
// `cursor` can only be used if the `count` attribute is passed as a query parameter.
Cursor *PaginationCursor `form:"cursor,omitempty" json:"cursor,omitempty"`
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ListUsersParams defines parameters for ListUsers.
type ListUsersResponse ¶
type ListUsersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
Users *[]User `json:"users,omitempty"`
}
JSON400 *InvalidFilter
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseListUsersResponse ¶
func ParseListUsersResponse(rsp *http.Response) (*ListUsersResponse, error)
ParseListUsersResponse parses an HTTP response from a ListUsersWithResponse call
func (ListUsersResponse) Status ¶
func (r ListUsersResponse) Status() string
Status returns HTTPResponse.Status
func (ListUsersResponse) StatusCode ¶
func (r ListUsersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyCompanyCardJSONBody ¶
type ModifyCompanyCardJSONBody map[string]interface{}
ModifyCompanyCardJSONBody defines parameters for ModifyCompanyCard.
type ModifyCompanyCardJSONRequestBody ¶
type ModifyCompanyCardJSONRequestBody ModifyCompanyCardJSONBody
ModifyCompanyCardJSONRequestBody defines body for ModifyCompanyCard for application/json ContentType.
type ModifyCompanyCardParams ¶
type ModifyCompanyCardParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyCompanyCardParams defines parameters for ModifyCompanyCard.
type ModifyCompanyCardResponse ¶
type ModifyCompanyCardResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CompanyCard
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyCompanyCardResponse ¶
func ParseModifyCompanyCardResponse(rsp *http.Response) (*ModifyCompanyCardResponse, error)
ParseModifyCompanyCardResponse parses an HTTP response from a ModifyCompanyCardWithResponse call
func (ModifyCompanyCardResponse) Status ¶
func (r ModifyCompanyCardResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyCompanyCardResponse) StatusCode ¶
func (r ModifyCompanyCardResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyCostObjectJSONBody ¶
type ModifyCostObjectJSONBody struct {
// UserAccessGrants A list of users that should be explicitly granted access to this cost object. This option is only allowed if the configured access type of the cost object is `specificUsers`.
UserAccessGrants *[]struct {
UserId string `json:"userId"`
} `json:"userAccessGrants,omitempty"`
AdditionalProperties map[string]interface{} `json:"-"`
}
ModifyCostObjectJSONBody defines parameters for ModifyCostObject.
func (ModifyCostObjectJSONBody) Get ¶
func (a ModifyCostObjectJSONBody) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for ModifyCostObjectJSONBody. Returns the specified element and whether it was found
func (ModifyCostObjectJSONBody) MarshalJSON ¶
func (a ModifyCostObjectJSONBody) MarshalJSON() ([]byte, error)
Override default JSON handling for ModifyCostObjectJSONBody to handle AdditionalProperties
func (*ModifyCostObjectJSONBody) Set ¶
func (a *ModifyCostObjectJSONBody) Set(fieldName string, value interface{})
Setter for additional properties for ModifyCostObjectJSONBody
func (*ModifyCostObjectJSONBody) UnmarshalJSON ¶
func (a *ModifyCostObjectJSONBody) UnmarshalJSON(b []byte) error
Override default JSON handling for ModifyCostObjectJSONBody to handle AdditionalProperties
type ModifyCostObjectJSONRequestBody ¶
type ModifyCostObjectJSONRequestBody ModifyCostObjectJSONBody
ModifyCostObjectJSONRequestBody defines body for ModifyCostObject for application/json ContentType.
type ModifyCostObjectParams ¶
type ModifyCostObjectParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyCostObjectParams defines parameters for ModifyCostObject.
type ModifyCostObjectResponse ¶
type ModifyCostObjectResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CostCenter
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *Forbidden
JSON409 *Conflict
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyCostObjectResponse ¶
func ParseModifyCostObjectResponse(rsp *http.Response) (*ModifyCostObjectResponse, error)
ParseModifyCostObjectResponse parses an HTTP response from a ModifyCostObjectWithResponse call
func (ModifyCostObjectResponse) Status ¶
func (r ModifyCostObjectResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyCostObjectResponse) StatusCode ¶
func (r ModifyCostObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyEntitySupplierJSONBody ¶
type ModifyEntitySupplierJSONBody struct {
AutoSubmissionSettings *SupplierAutoSubmissionSettings `json:"autoSubmissionSettings,omitempty"`
// CodingType Determines how invoices from this supplier should be processed by Yokoy.
// - `smart`: If selected, Yokoy tries to smart-code all invoices for the supplier.
// - `supplierDefault`: If selected, Yokoy picks the default cost object and category that you have set up in the supplier settings.
// - `entity`: If this option is selected, Yokoy follows whatever coding logic is determined for the company. If smart coding is enabled for the legal entity, Yokoy performs smart coding of the invoice. If smart coding is not enabled for the legal entity, then no smart coding is performed.
CodingType *ModifyEntitySupplierJSONBodyCodingType `json:"codingType"`
CustomInformation *map[string]interface{} `json:"customInformation"`
// DefaultApproverFirstName The first name of the default invoice approver.
DefaultApproverFirstName *string `json:"defaultApproverFirstName"`
// DefaultApproverId Yokoy unique ID of the default approver.
DefaultApproverId *string `json:"defaultApproverId"`
// DefaultApproverLastName The last name of the default invoice approver.
DefaultApproverLastName *string `json:"defaultApproverLastName"`
// DefaultCategoryId Yokoy unique ID of the default invoice category.
DefaultCategoryId *string `json:"defaultCategoryId"`
// DefaultCategoryName Name of the default invoice category for this supplier.
DefaultCategoryName *string `json:"defaultCategoryName"`
// DefaultCostCenterId Yokoy unique ID of the default cost object.
DefaultCostCenterId *string `json:"defaultCostCenterId"`
// DefaultCostCenterName Name of the default cost object.
DefaultCostCenterName *string `json:"defaultCostCenterName"`
// DefaultPaymentTermId Yokoy unique ID of the default payment term.
DefaultPaymentTermId *string `json:"defaultPaymentTermId"`
// Id Yokoy unique ID of supplier linked to a specific legal entity.
Id *string `json:"id,omitempty"`
// IsInternalSupplier Identifies the supplier as intercompany supplier.
IsInternalSupplier *bool `json:"isInternalSupplier"`
// IsPurchaseOrderSupplier Indicates if the supplier requires a purchase order for each invoice.
IsPurchaseOrderSupplier *bool `json:"isPurchaseOrderSupplier"`
// PaymentTermIds Array of Yokoy IDs of payment terms.
PaymentTermIds *[]string `json:"paymentTermIds"`
StatusActive bool `json:"statusActive"`
// SupplierId Yokoy ID of the organization supplier. It must reference an existing organization-level supplier.
SupplierId string `json:"supplierId"`
// TriggerAutoMatchWithoutPO Trigger auto-match without purchase order number data. For PO suppliers (i.e. suppliers with invoices that must always have an associated PO), if set as `true`, Yokoy tries to match the invoice to a purchase order if no purchase order data is provided.
TriggerAutoMatchWithoutPO *bool `json:"triggerAutoMatchWithoutPO"`
}
ModifyEntitySupplierJSONBody defines parameters for ModifyEntitySupplier.
type ModifyEntitySupplierJSONBodyCodingType ¶
type ModifyEntitySupplierJSONBodyCodingType string
ModifyEntitySupplierJSONBodyCodingType defines parameters for ModifyEntitySupplier.
const ( ModifyEntitySupplierJSONBodyCodingTypeEntity ModifyEntitySupplierJSONBodyCodingType = "entity" ModifyEntitySupplierJSONBodyCodingTypeSmart ModifyEntitySupplierJSONBodyCodingType = "smart" ModifyEntitySupplierJSONBodyCodingTypeSupplierDefault ModifyEntitySupplierJSONBodyCodingType = "supplierDefault" )
Defines values for ModifyEntitySupplierJSONBodyCodingType.
type ModifyEntitySupplierJSONRequestBody ¶
type ModifyEntitySupplierJSONRequestBody ModifyEntitySupplierJSONBody
ModifyEntitySupplierJSONRequestBody defines body for ModifyEntitySupplier for application/json ContentType.
type ModifyEntitySupplierParams ¶
type ModifyEntitySupplierParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyEntitySupplierParams defines parameters for ModifyEntitySupplier.
type ModifyEntitySupplierResponse ¶
type ModifyEntitySupplierResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Supplier
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyEntitySupplierResponse ¶
func ParseModifyEntitySupplierResponse(rsp *http.Response) (*ModifyEntitySupplierResponse, error)
ParseModifyEntitySupplierResponse parses an HTTP response from a ModifyEntitySupplierWithResponse call
func (ModifyEntitySupplierResponse) Status ¶
func (r ModifyEntitySupplierResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyEntitySupplierResponse) StatusCode ¶
func (r ModifyEntitySupplierResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyExpenseCategoryJSONBody ¶
type ModifyExpenseCategoryJSONBody map[string]interface{}
ModifyExpenseCategoryJSONBody defines parameters for ModifyExpenseCategory.
type ModifyExpenseCategoryJSONRequestBody ¶
type ModifyExpenseCategoryJSONRequestBody ModifyExpenseCategoryJSONBody
ModifyExpenseCategoryJSONRequestBody defines body for ModifyExpenseCategory for application/json ContentType.
type ModifyExpenseCategoryParams ¶
type ModifyExpenseCategoryParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyExpenseCategoryParams defines parameters for ModifyExpenseCategory.
type ModifyExpenseCategoryResponse ¶
type ModifyExpenseCategoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Category
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyExpenseCategoryResponse ¶
func ParseModifyExpenseCategoryResponse(rsp *http.Response) (*ModifyExpenseCategoryResponse, error)
ParseModifyExpenseCategoryResponse parses an HTTP response from a ModifyExpenseCategoryWithResponse call
func (ModifyExpenseCategoryResponse) Status ¶
func (r ModifyExpenseCategoryResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyExpenseCategoryResponse) StatusCode ¶
func (r ModifyExpenseCategoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyExternalInvoiceJSONBody ¶
type ModifyExternalInvoiceJSONBody map[string]interface{}
ModifyExternalInvoiceJSONBody defines parameters for ModifyExternalInvoice.
type ModifyExternalInvoiceJSONRequestBody ¶
type ModifyExternalInvoiceJSONRequestBody ModifyExternalInvoiceJSONBody
ModifyExternalInvoiceJSONRequestBody defines body for ModifyExternalInvoice for application/json ContentType.
type ModifyExternalInvoiceParams ¶
type ModifyExternalInvoiceParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyExternalInvoiceParams defines parameters for ModifyExternalInvoice.
type ModifyExternalInvoiceResponse ¶
type ModifyExternalInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalInvoice
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyExternalInvoiceResponse ¶
func ParseModifyExternalInvoiceResponse(rsp *http.Response) (*ModifyExternalInvoiceResponse, error)
ParseModifyExternalInvoiceResponse parses an HTTP response from a ModifyExternalInvoiceWithResponse call
func (ModifyExternalInvoiceResponse) Status ¶
func (r ModifyExternalInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyExternalInvoiceResponse) StatusCode ¶
func (r ModifyExternalInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyGRJSONBody ¶
type ModifyGRJSONBody map[string]interface{}
ModifyGRJSONBody defines parameters for ModifyGR.
type ModifyGRJSONRequestBody ¶
type ModifyGRJSONRequestBody ModifyGRJSONBody
ModifyGRJSONRequestBody defines body for ModifyGR for application/json ContentType.
type ModifyGRParams ¶
type ModifyGRParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyGRParams defines parameters for ModifyGR.
type ModifyGRResponse ¶
type ModifyGRResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GoodsReceipt
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyGRResponse ¶
func ParseModifyGRResponse(rsp *http.Response) (*ModifyGRResponse, error)
ParseModifyGRResponse parses an HTTP response from a ModifyGRWithResponse call
func (ModifyGRResponse) Status ¶
func (r ModifyGRResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyGRResponse) StatusCode ¶
func (r ModifyGRResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyInvoiceCategoryJSONBody ¶
type ModifyInvoiceCategoryJSONBody map[string]interface{}
ModifyInvoiceCategoryJSONBody defines parameters for ModifyInvoiceCategory.
type ModifyInvoiceCategoryJSONRequestBody ¶
type ModifyInvoiceCategoryJSONRequestBody ModifyInvoiceCategoryJSONBody
ModifyInvoiceCategoryJSONRequestBody defines body for ModifyInvoiceCategory for application/json ContentType.
type ModifyInvoiceCategoryParams ¶
type ModifyInvoiceCategoryParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyInvoiceCategoryParams defines parameters for ModifyInvoiceCategory.
type ModifyInvoiceCategoryResponse ¶
type ModifyInvoiceCategoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InvoiceCategory
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyInvoiceCategoryResponse ¶
func ParseModifyInvoiceCategoryResponse(rsp *http.Response) (*ModifyInvoiceCategoryResponse, error)
ParseModifyInvoiceCategoryResponse parses an HTTP response from a ModifyInvoiceCategoryWithResponse call
func (ModifyInvoiceCategoryResponse) Status ¶
func (r ModifyInvoiceCategoryResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyInvoiceCategoryResponse) StatusCode ¶
func (r ModifyInvoiceCategoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyOrgSupplierJSONBody ¶
type ModifyOrgSupplierJSONBody map[string]interface{}
ModifyOrgSupplierJSONBody defines parameters for ModifyOrgSupplier.
type ModifyOrgSupplierJSONRequestBody ¶
type ModifyOrgSupplierJSONRequestBody ModifyOrgSupplierJSONBody
ModifyOrgSupplierJSONRequestBody defines body for ModifyOrgSupplier for application/json ContentType.
type ModifyOrgSupplierParams ¶
type ModifyOrgSupplierParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyOrgSupplierParams defines parameters for ModifyOrgSupplier.
type ModifyOrgSupplierResponse ¶
type ModifyOrgSupplierResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OrganizationSupplier
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyOrgSupplierResponse ¶
func ParseModifyOrgSupplierResponse(rsp *http.Response) (*ModifyOrgSupplierResponse, error)
ParseModifyOrgSupplierResponse parses an HTTP response from a ModifyOrgSupplierWithResponse call
func (ModifyOrgSupplierResponse) Status ¶
func (r ModifyOrgSupplierResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyOrgSupplierResponse) StatusCode ¶
func (r ModifyOrgSupplierResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyPOJSONBody ¶
type ModifyPOJSONBody map[string]interface{}
ModifyPOJSONBody defines parameters for ModifyPO.
type ModifyPOJSONRequestBody ¶
type ModifyPOJSONRequestBody ModifyPOJSONBody
ModifyPOJSONRequestBody defines body for ModifyPO for application/json ContentType.
type ModifyPOParams ¶
type ModifyPOParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyPOParams defines parameters for ModifyPO.
type ModifyPOResponse ¶
type ModifyPOResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PurchaseOrder
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyPOResponse ¶
func ParseModifyPOResponse(rsp *http.Response) (*ModifyPOResponse, error)
ParseModifyPOResponse parses an HTTP response from a ModifyPOWithResponse call
func (ModifyPOResponse) Status ¶
func (r ModifyPOResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyPOResponse) StatusCode ¶
func (r ModifyPOResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyPaymentTermJSONBody ¶
type ModifyPaymentTermJSONBody map[string]interface{}
ModifyPaymentTermJSONBody defines parameters for ModifyPaymentTerm.
type ModifyPaymentTermJSONRequestBody ¶
type ModifyPaymentTermJSONRequestBody ModifyPaymentTermJSONBody
ModifyPaymentTermJSONRequestBody defines body for ModifyPaymentTerm for application/json ContentType.
type ModifyPaymentTermParams ¶
type ModifyPaymentTermParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyPaymentTermParams defines parameters for ModifyPaymentTerm.
type ModifyPaymentTermResponse ¶
type ModifyPaymentTermResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InvoicePaymentTerms
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyPaymentTermResponse ¶
func ParseModifyPaymentTermResponse(rsp *http.Response) (*ModifyPaymentTermResponse, error)
ParseModifyPaymentTermResponse parses an HTTP response from a ModifyPaymentTermWithResponse call
func (ModifyPaymentTermResponse) Status ¶
func (r ModifyPaymentTermResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyPaymentTermResponse) StatusCode ¶
func (r ModifyPaymentTermResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyPolicyJSONBody ¶
type ModifyPolicyJSONBody map[string]interface{}
ModifyPolicyJSONBody defines parameters for ModifyPolicy.
type ModifyPolicyJSONRequestBody ¶
type ModifyPolicyJSONRequestBody ModifyPolicyJSONBody
ModifyPolicyJSONRequestBody defines body for ModifyPolicy for application/json ContentType.
type ModifyPolicyParams ¶
type ModifyPolicyParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyPolicyParams defines parameters for ModifyPolicy.
type ModifyPolicyResponse ¶
type ModifyPolicyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Policy
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyPolicyResponse ¶
func ParseModifyPolicyResponse(rsp *http.Response) (*ModifyPolicyResponse, error)
ParseModifyPolicyResponse parses an HTTP response from a ModifyPolicyWithResponse call
func (ModifyPolicyResponse) Status ¶
func (r ModifyPolicyResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyPolicyResponse) StatusCode ¶
func (r ModifyPolicyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyTagJSONBody ¶
type ModifyTagJSONBody map[string]interface{}
ModifyTagJSONBody defines parameters for ModifyTag.
type ModifyTagJSONRequestBody ¶
type ModifyTagJSONRequestBody ModifyTagJSONBody
ModifyTagJSONRequestBody defines body for ModifyTag for application/json ContentType.
type ModifyTagParams ¶
type ModifyTagParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyTagParams defines parameters for ModifyTag.
type ModifyTagResponse ¶
type ModifyTagResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Tag
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyTagResponse ¶
func ParseModifyTagResponse(rsp *http.Response) (*ModifyTagResponse, error)
ParseModifyTagResponse parses an HTTP response from a ModifyTagWithResponse call
func (ModifyTagResponse) Status ¶
func (r ModifyTagResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyTagResponse) StatusCode ¶
func (r ModifyTagResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyTaxRateJSONBody ¶
type ModifyTaxRateJSONBody map[string]interface{}
ModifyTaxRateJSONBody defines parameters for ModifyTaxRate.
type ModifyTaxRateJSONRequestBody ¶
type ModifyTaxRateJSONRequestBody ModifyTaxRateJSONBody
ModifyTaxRateJSONRequestBody defines body for ModifyTaxRate for application/json ContentType.
type ModifyTaxRateParams ¶
type ModifyTaxRateParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyTaxRateParams defines parameters for ModifyTaxRate.
type ModifyTaxRateResponse ¶
type ModifyTaxRateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// contains filtered or unexported fields
}
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyTaxRateResponse ¶
func ParseModifyTaxRateResponse(rsp *http.Response) (*ModifyTaxRateResponse, error)
ParseModifyTaxRateResponse parses an HTTP response from a ModifyTaxRateWithResponse call
func (ModifyTaxRateResponse) Status ¶
func (r ModifyTaxRateResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyTaxRateResponse) StatusCode ¶
func (r ModifyTaxRateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ModifyUserJSONBody ¶
type ModifyUserJSONBody map[string]interface{}
ModifyUserJSONBody defines parameters for ModifyUser.
type ModifyUserJSONRequestBody ¶
type ModifyUserJSONRequestBody ModifyUserJSONBody
ModifyUserJSONRequestBody defines body for ModifyUser for application/json ContentType.
type ModifyUserParams ¶
type ModifyUserParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
ModifyUserParams defines parameters for ModifyUser.
type ModifyUserResponse ¶
type ModifyUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *User
JSON400 *Error
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseModifyUserResponse ¶
func ParseModifyUserResponse(rsp *http.Response) (*ModifyUserResponse, error)
ParseModifyUserResponse parses an HTTP response from a ModifyUserWithResponse call
func (ModifyUserResponse) Status ¶
func (r ModifyUserResponse) Status() string
Status returns HTTPResponse.Status
func (ModifyUserResponse) StatusCode ¶
func (r ModifyUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type OneTimeSupplierInfo ¶
type OneTimeSupplierInfo struct {
// BankAccount Bank account number. Often used if no IBAN exists.
BankAccount *string `json:"bankAccount"`
// BankCountry Country of the bank. Expressed as an ISO 3166 Alpha-2 code.
BankCountry *string `json:"bankCountry"`
// City City where the one-time supplier is located.
City string `json:"city"`
// Country Country where the one-time supplier is located. Expressed as an ISO 3166 Alpha-2 code.
Country string `json:"country"`
// Iban IBAN (International Bank Account Number).
Iban *string `json:"iban"`
// Street Street where the one-time supplier is located.
Street string `json:"street"`
// SupplierId This supplier ID links to the template legal-entity supplier. The template supplier is displayed in the one-time supplier list and can be selected as a supplier in invoices.
SupplierId string `json:"supplierId"`
// SupplierName Name of the one-time supplier.
SupplierName string `json:"supplierName"`
// SwiftCode Swift code (also called the BIC).
SwiftCode *string `json:"swiftCode"`
// TaxNumber Legal tax number of the one-time supplier.
TaxNumber *string `json:"taxNumber"`
// ZipCode Postal code where the one-time supplier is located.
ZipCode string `json:"zipCode"`
}
OneTimeSupplierInfo Information related to one-time vendor.
type OrganizationSupplier ¶
type OrganizationSupplier struct {
BankAccounts *[]InvoiceBankAccount `json:"bankAccounts"`
// City City where the supplier is located.
City *string `json:"city"`
Contacts *[]SupplierContact `json:"contacts"`
// CountryCode Country where the supplier is located. Expressed as an ISO 3166 Alpha-2 code.
CountryCode *string `json:"countryCode"`
CustomInformation *map[string]interface{} `json:"customInformation"`
// ExternalId External ID of the organization supplier. This must be unique within the organization and cannot be changed after creation.
ExternalId string `json:"externalId"`
// Id Yokoy ID of the organization supplier.
Id *string `json:"id,omitempty"`
// InternalSupplierId ID of the internal supplier. Only mandatory when the `Enable InternalSupplierID` setting is active at organization level, | It must have the format of the organization supplier's external identifier + '_' + Yokoy legal entity ID.
InternalSupplierId *string `json:"internalSupplierId,omitempty"`
// IsTemplateOneTimeSupplier Determines whether the supplier is to be imported as a one-time vendor or not. One-time vendors are only supported in SAP systems. If the supplier is a template to be used for non-recurring one-time suppliers, you must set this attribute as `true`.
IsTemplateOneTimeSupplier *bool `json:"isTemplateOneTimeSupplier,omitempty"`
// Name Full company name of the supplier.
Name string `json:"name"`
// SecondaryName Additional information about the supplier name.
SecondaryName *string `json:"secondaryName"`
// ShortName Short name of the supplier for display.
ShortName *string `json:"shortName"`
StatusActive *bool `json:"statusActive,omitempty"`
// Street Street where the supplier is located.
Street *string `json:"street"`
// TaxNumber Legal tax number of the supplier. Use `taxNumbers` instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxNumber *string `json:"taxNumber"`
// TaxNumbers An array of the supplier's legal tax numbers. Use this attribute instead of `taxNumber` after setting `taxNumber` to null.
TaxNumbers *[]string `json:"taxNumbers"`
// Url Website of the supplier.
Url *string `json:"url"`
// ZipCode Postal code where the supplier is located.
ZipCode *string `json:"zipCode"`
}
OrganizationSupplier defines model for OrganizationSupplier.
type PaginationCount ¶
type PaginationCount = float32
PaginationCount defines model for PaginationCount.
type PaginationCursor ¶
type PaginationCursor = string
PaginationCursor defines model for PaginationCursor.
type PaginationItemsPerPage ¶
type PaginationItemsPerPage = float32
PaginationItemsPerPage Returns the number of items in the paginated result. This attribute is only included in paginated results with `count`.
type PaginationNextCursor ¶
type PaginationNextCursor = string
PaginationNextCursor Cursor to be used to fetch the next set of items. It is only resulted in calls that pass `count`in the query parameters to retrieve paginated results. When there are no further results, the attribute is not returned.
type Policy ¶
type Policy struct {
// CategoryIds List of applicable expense categories to be displayed to users with this policy.
CategoryIds []string `json:"categoryIds"`
// Code Code (ERP) of the employee policy. ERP reference.
Code string `json:"code"`
// Id Yokoy unique identifier of the policy.
Id *string `json:"id,omitempty"`
// Name Name of the policy.
Name string `json:"name"`
// StatusActive Status of the policy. Only active policies can be applied to users.
StatusActive bool `json:"statusActive"`
}
Policy defines model for Policy.
type PurchaseOrder ¶
type PurchaseOrder struct {
// Currency Currency of the purchase order. ISO 4217 three-letter code.
Currency string `json:"currency"`
// CustomInformation Dictionary of custom information associated with the purchase order.
CustomInformation *map[string]string `json:"customInformation"`
// Description Description of the purchase order.
Description *string `json:"description"`
// ExternalId External ID of the purchase order.
ExternalId *string `json:"externalId"`
// GrossAmount Gross amount of the purchase order. This is calculated from the purchase order's line items.
GrossAmount *float32 `json:"grossAmount,omitempty"`
// Id Yokoy unique ID of the purchase order.
Id *string `json:"id,omitempty"`
// Items Purchase order line items
Items []PurchaseOrderItem `json:"items"`
// NetAmount The purchase order's net amount. This is calculated from the purchase order's line items.
NetAmount *float32 `json:"netAmount,omitempty"`
// PaymentTermsId Payment terms associated with the purchase order. It must link to an existing invoice payment term.
PaymentTermsId *string `json:"paymentTermsId"`
// PurchaseOrderNumber Number of the purchase order.
PurchaseOrderNumber string `json:"purchaseOrderNumber"`
// PurchaseOrderOwnerId Yokoy unique ID of the user responsible for the purchase order.
PurchaseOrderOwnerId *string `json:"purchaseOrderOwnerId"`
// Quantity Sum of the quantities of all PO line items.
Quantity *float32 `json:"quantity,omitempty"`
// Status Status of the purchase order. Purchase orders can‘t be deleted from Yokoy. However, you can make a PO inactive so it is not taken into account for matching.
Status *PurchaseOrderStatus `json:"status,omitempty"`
// StatusActive Status of the purchase order. Purchase orders can‘t be deleted from Yokoy. However, you can make a PO inactive so it is not taken into account for matching.
// Deprecated. Use `status` instead. If both `status` and `statusActive` are provided, the value of `status` is taken.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
StatusActive bool `json:"statusActive"`
// SupplierId Yokoy ID of the legal entity supplier associated with the purchase order. It must link to an existing legal entity supplier.
SupplierId string `json:"supplierId"`
// ValidityEndDate Validity end date for the purchase order.
ValidityEndDate *openapi_types.Date `json:"validityEndDate"`
// ValidityStartDate Validity start date for the purchase order.
ValidityStartDate *openapi_types.Date `json:"validityStartDate"`
}
PurchaseOrder defines model for PurchaseOrder.
type PurchaseOrderItem ¶
type PurchaseOrderItem struct {
// CategoryId Yokoy unique ID of the invoice category associated with the line item. It must link to an existing invoice category.
CategoryId *string `json:"categoryId"`
// CostObjectId Yokoy unique ID of the cost object associated with the line item. It must link to an existing cost object.
CostObjectId *string `json:"costObjectId,omitempty"`
// CustomInformation Dictionary of custom information associated with the purchase order item.
CustomInformation *map[string]string `json:"customInformation"`
// Description Description of the PO line item.
Description *string `json:"description"`
// Eanupc EAN or UPC or barcode of the item.
Eanupc *string `json:"eanupc"`
// ExternalId External ID of the PO line item.
ExternalId *string `json:"externalId"`
// GrossAmount Gross amount of the PO line item.
GrossAmount *float32 `json:"grossAmount,omitempty"`
// Id Yokoy unique ID of the purchase order.
// For new items, Yokoy generates the ID. For existing items, you can reference that ID.
Id *string `json:"id,omitempty"`
// ItemNumber Position of the PO line item.
ItemNumber *string `json:"itemNumber"`
// ItemPrice Item price of the PO line item.
ItemPrice *float32 `json:"itemPrice"`
// MaterialId ERP ID of the material associated with line item.
MaterialId *string `json:"materialId"`
// NetAmount Net amount of the PO line item.
NetAmount *float32 `json:"netAmount,omitempty"`
// Quantity Quantity of the PO line item.
Quantity *float32 `json:"quantity,omitempty"`
// RequireGoodsReceipt If enabled, Yokoy performs three way matching for this item, and requires a goods receipt. If no goods receipt data is sent, the line item cannot be matched.
RequireGoodsReceipt *bool `json:"requireGoodsReceipt,omitempty"`
// Status Status of the purchase order item, indicating its current state.
Status *PurchaseOrderItemStatus `json:"status,omitempty"`
// StatusActive Status of the purchase order item, whether the purchase order item is active. Deprecated. Use `status` instead. If both `status` and `statusActive` are provided, the value of `status` is taken.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
StatusActive *bool `json:"statusActive,omitempty"`
// SupplierMaterialId Description/ID that the supplier provided for the goods/service stated in the PO line item.
SupplierMaterialId *string `json:"supplierMaterialId"`
// TaxRateId Yokoy unique ID of the tax rate associated with the line item. It must link to an existing tax rate.
TaxRateId *string `json:"taxRateId"`
// Unit Unit of the PO line item.
Unit *string `json:"unit"`
}
PurchaseOrderItem defines model for PurchaseOrderItem.
type PurchaseOrderItemStatus ¶
type PurchaseOrderItemStatus string
PurchaseOrderItemStatus Status of the purchase order item, indicating its current state.
const ( PurchaseOrderItemStatusActive PurchaseOrderItemStatus = "active" PurchaseOrderItemStatusBlocked PurchaseOrderItemStatus = "blocked" PurchaseOrderItemStatusDeleted PurchaseOrderItemStatus = "deleted" PurchaseOrderItemStatusInactive PurchaseOrderItemStatus = "inactive" )
Defines values for PurchaseOrderItemStatus.
type PurchaseOrderStatus ¶
type PurchaseOrderStatus string
PurchaseOrderStatus Status of the purchase order. Purchase orders can‘t be deleted from Yokoy. However, you can make a PO inactive so it is not taken into account for matching.
const ( PurchaseOrderStatusActive PurchaseOrderStatus = "active" PurchaseOrderStatusBlocked PurchaseOrderStatus = "blocked" PurchaseOrderStatusDeleted PurchaseOrderStatus = "deleted" PurchaseOrderStatusExpired PurchaseOrderStatus = "expired" PurchaseOrderStatusInactive PurchaseOrderStatus = "inactive" )
Defines values for PurchaseOrderStatus.
type PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdJSONRequestBody ¶
type PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdJSONRequestBody = InvoicePaymentTerms
PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdJSONRequestBody defines body for PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId for application/json ContentType.
type PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams ¶
type PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams defines parameters for PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId.
type PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse ¶
type PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InvoicePaymentTerms
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParsePutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse ¶
func ParsePutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse(rsp *http.Response) (*PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse, error)
ParsePutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse parses an HTTP response from a PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdWithResponse call
func (PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse) Status ¶
func (r PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse) Status() string
Status returns HTTPResponse.Status
func (PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse) StatusCode ¶
func (r PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type ServerInterface ¶
type ServerInterface interface {
// List all expenses
// (GET /expenses)
ListExpenses(ctx echo.Context, params ListExpensesParams) error
// Get expense by ID
// (GET /expenses/{expenseId})
GetExpense(ctx echo.Context, expenseId string, params GetExpenseParams) error
// Get expense attachment
// (GET /expenses/{expenseId}/attachments/{attachmentName})
GetExpenseAttachment(ctx echo.Context, expenseId string, attachmentName string, params GetExpenseAttachmentParams) error
// Get expense receipt
// (GET /expenses/{expenseId}/receipt)
GetExpenseReceipt(ctx echo.Context, expenseId string, params GetExpenseReceiptParams) error
// List FX rate sources
// (GET /fx-rate-sources)
ListFxRateSources(ctx echo.Context, params ListFxRateSourcesParams) error
// Create FX rate source
// (POST /fx-rate-sources)
CreateFxRateSource(ctx echo.Context, params CreateFxRateSourceParams) error
// Apply FX rate
// (PUT /fx-rate-sources/{fxRateSourceId}/fx-rates/{isoDate})
ApplyFxRate(ctx echo.Context, fxRateSourceId string, isoDate string, params ApplyFxRateParams) error
// List all legal entities
// (GET /legal-entities)
ListLegalEntities(ctx echo.Context, params ListLegalEntitiesParams) error
// Get a legal entity (company) by ID
// (GET /legal-entities/{legalEntityId})
GetLegalEntity(ctx echo.Context, legalEntityId LegalEntityIdInPath, params GetLegalEntityParams) error
// List all card accounts
// (GET /legal-entities/{legalEntityId}/card-accounts)
ListCardAccounts(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListCardAccountsParams) error
// Get card account by ID
// (GET /legal-entities/{legalEntityId}/card-accounts/{cardAccountId})
GetCardAccount(ctx echo.Context, legalEntityId LegalEntityIdInPath, cardAccountId string) error
// Get card account balance
// (GET /legal-entities/{legalEntityId}/card-accounts/{cardAccountId}/balance)
GetBalance(ctx echo.Context, legalEntityId LegalEntityIdInPath, cardAccountId string) error
// List all expense categories for a legal entity
// (GET /legal-entities/{legalEntityId}/categories)
ListExpenseCategories(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListExpenseCategoriesParams) error
// Create an expense category
// (POST /legal-entities/{legalEntityId}/categories)
CreateExpenseCategory(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreateExpenseCategoryParams) error
// Get an expense category by ID
// (GET /legal-entities/{legalEntityId}/categories/{categoryId})
GetExpenseCategory(ctx echo.Context, legalEntityId LegalEntityIdInPath, categoryId string, params GetExpenseCategoryParams) error
// Modify an expense category
// (PATCH /legal-entities/{legalEntityId}/categories/{categoryId})
ModifyExpenseCategory(ctx echo.Context, legalEntityId LegalEntityIdInPath, categoryId string, params ModifyExpenseCategoryParams) error
// Update an expense category
// (PUT /legal-entities/{legalEntityId}/categories/{categoryId})
UpdateExpenseCategory(ctx echo.Context, legalEntityId LegalEntityIdInPath, categoryId string, params UpdateExpenseCategoryParams) error
// List all company cards
// (GET /legal-entities/{legalEntityId}/company-cards)
ListCompanyCards(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListCompanyCardsParams) error
// Create a company card
// (POST /legal-entities/{legalEntityId}/company-cards)
CreateCompanyCard(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreateCompanyCardParams) error
// Get a company card by ID
// (GET /legal-entities/{legalEntityId}/company-cards/{companyCardId})
GetCompanyCard(ctx echo.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params GetCompanyCardParams) error
// Modify a company card
// (PATCH /legal-entities/{legalEntityId}/company-cards/{companyCardId})
ModifyCompanyCard(ctx echo.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params ModifyCompanyCardParams) error
// Update a company card
// (PUT /legal-entities/{legalEntityId}/company-cards/{companyCardId})
UpdateCompanyCard(ctx echo.Context, legalEntityId LegalEntityIdInPath, companyCardId string, params UpdateCompanyCardParams) error
// List all cost objects
// (GET /legal-entities/{legalEntityId}/cost-centers)
ListCostObjects(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListCostObjectsParams) error
// Create a cost object
// (POST /legal-entities/{legalEntityId}/cost-centers)
CreateCostObject(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreateCostObjectParams) error
// Remove a cost object by ID
// (DELETE /legal-entities/{legalEntityId}/cost-centers/{costCenterId})
DeleteCostObject(ctx echo.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params DeleteCostObjectParams) error
// Get a cost object by ID
// (GET /legal-entities/{legalEntityId}/cost-centers/{costCenterId})
GetCostObject(ctx echo.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params GetCostObjectParams) error
// Modify a cost object
// (PATCH /legal-entities/{legalEntityId}/cost-centers/{costCenterId})
ModifyCostObject(ctx echo.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params ModifyCostObjectParams) error
// Update a cost object
// (PUT /legal-entities/{legalEntityId}/cost-centers/{costCenterId})
UpdateCostObject(ctx echo.Context, legalEntityId LegalEntityIdInPath, costCenterId string, params UpdateCostObjectParams) error
// Trigger expense export
// (POST /legal-entities/{legalEntityId}/expense-export-facilities/{exportFacility}/export-tasks)
TriggerExpenseExport(ctx echo.Context, legalEntityId LegalEntityIdInPath, exportFacility string) error
// List all export jobs
// (GET /legal-entities/{legalEntityId}/export-tasks)
ListExportJobs(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListExportJobsParams) error
// Get export job status
// (GET /legal-entities/{legalEntityId}/export-tasks/{exportTaskId})
GetExportStatus(ctx echo.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, params GetExportStatusParams) error
// Get export artefacts
// (GET /legal-entities/{legalEntityId}/export-tasks/{exportTaskId}/artefacts)
GetExportArefacts(ctx echo.Context, legalEntityId LegalEntityIdInPath, exportTaskId string, params GetExportArefactsParams) error
// List all external invoices
// (GET /legal-entities/{legalEntityId}/external-invoices)
ListExternalInvoices(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListExternalInvoicesParams) error
// Create an external invoice
// (POST /legal-entities/{legalEntityId}/external-invoices)
CreateExternalInvoice(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreateExternalInvoiceParams) error
// Get an external invoice by ID
// (GET /legal-entities/{legalEntityId}/external-invoices/{externalInvoiceId})
GetExternalInvoice(ctx echo.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params GetExternalInvoiceParams) error
// Modify an external invoice
// (PATCH /legal-entities/{legalEntityId}/external-invoices/{externalInvoiceId})
ModifyExternalInvoice(ctx echo.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params ModifyExternalInvoiceParams) error
// Update an external invoice
// (PUT /legal-entities/{legalEntityId}/external-invoices/{externalInvoiceId})
UpdateExternalInvoice(ctx echo.Context, legalEntityId LegalEntityIdInPath, externalInvoiceId string, params UpdateExternalInvoiceParams) error
// List all invoice categories
// (GET /legal-entities/{legalEntityId}/invoice-categories)
ListInvoiceCategories(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListInvoiceCategoriesParams) error
// Create an invoice category
// (POST /legal-entities/{legalEntityId}/invoice-categories)
CreateInvoiceCategory(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreateInvoiceCategoryParams) error
// Get an invoice category by ID
// (GET /legal-entities/{legalEntityId}/invoice-categories/{categoryId})
GetInvoiceCategory(ctx echo.Context, legalEntityId LegalEntityIdInPath, categoryId string, params GetInvoiceCategoryParams) error
// Modify an invoice category
// (PATCH /legal-entities/{legalEntityId}/invoice-categories/{categoryId})
ModifyInvoiceCategory(ctx echo.Context, legalEntityId LegalEntityIdInPath, categoryId string, params ModifyInvoiceCategoryParams) error
// Update an invoice category
// (PUT /legal-entities/{legalEntityId}/invoice-categories/{categoryId})
UpdateInvoiceCategory(ctx echo.Context, legalEntityId LegalEntityIdInPath, categoryId string, params UpdateInvoiceCategoryParams) error
// Trigger invoice export
// (POST /legal-entities/{legalEntityId}/invoice-export-facilities/{exportFacility}/export-tasks)
TriggerInvoiceExport(ctx echo.Context, legalEntityId LegalEntityIdInPath, exportFacility string, params TriggerInvoiceExportParams) error
// List all goods receipts
// (GET /legal-entities/{legalEntityId}/invoice-goods-receipts)
ListGRs(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListGRsParams) error
// Create a goods receipt
// (POST /legal-entities/{legalEntityId}/invoice-goods-receipts)
CreateGR(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreateGRParams) error
// Get a goods receipt by ID
// (GET /legal-entities/{legalEntityId}/invoice-goods-receipts/{goodsReceiptId})
GetGR(ctx echo.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params GetGRParams) error
// Modify a goods receipt
// (PATCH /legal-entities/{legalEntityId}/invoice-goods-receipts/{goodsReceiptId})
ModifyGR(ctx echo.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params ModifyGRParams) error
// Update a goods receipt
// (PUT /legal-entities/{legalEntityId}/invoice-goods-receipts/{goodsReceiptId})
UpdateGR(ctx echo.Context, legalEntityId LegalEntityIdInPath, goodsReceiptId string, params UpdateGRParams) error
// List all payment terms
// (GET /legal-entities/{legalEntityId}/invoice-payment-terms)
ListPaymentTerms(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListPaymentTermsParams) error
// Create a payment term
// (POST /legal-entities/{legalEntityId}/invoice-payment-terms)
CreatePaymentTerm(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreatePaymentTermParams) error
// Get a payment term by ID
// (GET /legal-entities/{legalEntityId}/invoice-payment-terms/{paymentTermId})
GetPaymentTerm(ctx echo.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params GetPaymentTermParams) error
// Modify a payment term
// (PATCH /legal-entities/{legalEntityId}/invoice-payment-terms/{paymentTermId})
ModifyPaymentTerm(ctx echo.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params ModifyPaymentTermParams) error
// Update a payment term
// (PUT /legal-entities/{legalEntityId}/invoice-payment-terms/{paymentTermId})
PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId(ctx echo.Context, legalEntityId LegalEntityIdInPath, paymentTermId string, params PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermIdParams) error
// List all purchase orders
// (GET /legal-entities/{legalEntityId}/invoice-purchase-orders)
ListPOs(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListPOsParams) error
// Create a purchase order
// (POST /legal-entities/{legalEntityId}/invoice-purchase-orders)
CreatePO(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreatePOParams) error
// Get a purchase order by ID
// (GET /legal-entities/{legalEntityId}/invoice-purchase-orders/{purchaseOrderId})
GetPO(ctx echo.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params GetPOParams) error
// Modify a purchase order
// (PATCH /legal-entities/{legalEntityId}/invoice-purchase-orders/{purchaseOrderId})
ModifyPO(ctx echo.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params ModifyPOParams) error
// Update a purchase order
// (PUT /legal-entities/{legalEntityId}/invoice-purchase-orders/{purchaseOrderId})
UpdatePO(ctx echo.Context, legalEntityId LegalEntityIdInPath, purchaseOrderId string, params UpdatePOParams) error
// List all invoices
// (GET /legal-entities/{legalEntityId}/invoices)
ListInvoices(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListInvoicesParams) error
// Create an invoice
// (POST /legal-entities/{legalEntityId}/invoices)
CreateInvoice(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreateInvoiceParams) error
// Upload a new e-invoice to Yokoy
// (POST /legal-entities/{legalEntityId}/invoices/einvoice)
UploadEinvoice(ctx echo.Context, legalEntityId LegalEntityIdInPath, params UploadEinvoiceParams) error
// Upload a new invoice to be processed by Yokoy AI
// (POST /legal-entities/{legalEntityId}/invoices/upload)
UploadAiInvoice(ctx echo.Context, legalEntityId LegalEntityIdInPath, params UploadAiInvoiceParams) error
// Get an invoice
// (GET /legal-entities/{legalEntityId}/invoices/{invoiceId})
GetInvoice(ctx echo.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params GetInvoiceParams) error
// Update an invoice
// (PATCH /legal-entities/{legalEntityId}/invoices/{invoiceId})
UpdateInvoice(ctx echo.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params UpdateInvoiceParams) error
// Get the invoice PDF file (base64)
// (GET /legal-entities/{legalEntityId}/invoices/{invoiceId}/base64)
GetInvoiceBase64(ctx echo.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params GetInvoiceBase64Params) error
// Get the invoice file in PDF format
// (GET /legal-entities/{legalEntityId}/invoices/{invoiceId}/presentation)
GetInvoicePdf(ctx echo.Context, legalEntityId LegalEntityIdInPath, invoiceId string, params GetInvoicePdfParams) error
// List all policies for a legal entity
// (GET /legal-entities/{legalEntityId}/policies)
ListPolicies(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListPoliciesParams) error
// Create a policy
// (POST /legal-entities/{legalEntityId}/policies)
CreatePolicy(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreatePolicyParams) error
// Get a policy by ID
// (GET /legal-entities/{legalEntityId}/policies/{policyId})
GetPolicy(ctx echo.Context, legalEntityId LegalEntityIdInPath, policyId string, params GetPolicyParams) error
// Modify a policy
// (PATCH /legal-entities/{legalEntityId}/policies/{policyId})
ModifyPolicy(ctx echo.Context, legalEntityId LegalEntityIdInPath, policyId string, params ModifyPolicyParams) error
// Update a policy
// (PUT /legal-entities/{legalEntityId}/policies/{policyId})
UpdatePolicy(ctx echo.Context, legalEntityId LegalEntityIdInPath, policyId string, params UpdatePolicyParams) error
// List all suppliers (legal entity)
// (GET /legal-entities/{legalEntityId}/suppliers)
ListEntitySupplier(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListEntitySupplierParams) error
// Add a supplier (legal entity)
// (POST /legal-entities/{legalEntityId}/suppliers)
CreateEntitySupplier(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreateEntitySupplierParams) error
// Get a supplier by ID (legal entity)
// (GET /legal-entities/{legalEntityId}/suppliers/{supplierId})
GetEntitySupplier(ctx echo.Context, legalEntityId LegalEntityIdInPath, supplierId string, params GetEntitySupplierParams) error
// Modify a supplier (legal entity)
// (PATCH /legal-entities/{legalEntityId}/suppliers/{supplierId})
ModifyEntitySupplier(ctx echo.Context, legalEntityId LegalEntityIdInPath, supplierId string, params ModifyEntitySupplierParams) error
// Update a supplier (legal entity)
// (PUT /legal-entities/{legalEntityId}/suppliers/{supplierId})
UpdateEntitySupplier(ctx echo.Context, legalEntityId LegalEntityIdInPath, supplierId string, params UpdateEntitySupplierParams) error
// List all tags
// (GET /legal-entities/{legalEntityId}/tags)
ListTags(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListTagsParams) error
// Create a tag
// (POST /legal-entities/{legalEntityId}/tags)
CreateTag(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreateTagParams) error
// Remove a tag
// (DELETE /legal-entities/{legalEntityId}/tags/{tagId})
DeleteTag(ctx echo.Context, legalEntityId LegalEntityIdInPath, tagId string, params DeleteTagParams) error
// Get tag by ID
// (GET /legal-entities/{legalEntityId}/tags/{tagId})
GetTag(ctx echo.Context, legalEntityId LegalEntityIdInPath, tagId string, params GetTagParams) error
// Modify a tag
// (PATCH /legal-entities/{legalEntityId}/tags/{tagId})
ModifyTag(ctx echo.Context, legalEntityId LegalEntityIdInPath, tagId string, params ModifyTagParams) error
// Update a tag
// (PUT /legal-entities/{legalEntityId}/tags/{tagId})
UpdateTag(ctx echo.Context, legalEntityId LegalEntityIdInPath, tagId string, params UpdateTagParams) error
// List all tax rates
// (GET /legal-entities/{legalEntityId}/tax-rates)
ListTaxRates(ctx echo.Context, legalEntityId LegalEntityIdInPath, params ListTaxRatesParams) error
// Create a tax rate
// (POST /legal-entities/{legalEntityId}/tax-rates)
CreateTaxRate(ctx echo.Context, legalEntityId LegalEntityIdInPath, params CreateTaxRateParams) error
// Get a tax rate by ID
// (GET /legal-entities/{legalEntityId}/tax-rates/{taxRateId})
GetTaxRate(ctx echo.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params GetTaxRateParams) error
// Modify a tax rate
// (PATCH /legal-entities/{legalEntityId}/tax-rates/{taxRateId})
ModifyTaxRate(ctx echo.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params ModifyTaxRateParams) error
// Update a tax rate
// (PUT /legal-entities/{legalEntityId}/tax-rates/{taxRateId})
UpdateTaxRate(ctx echo.Context, legalEntityId LegalEntityIdInPath, taxRateId string, params UpdateTaxRateParams) error
// List all suppliers (organization)
// (GET /suppliers)
ListOrgSuppliers(ctx echo.Context, params ListOrgSuppliersParams) error
// Create a supplier (organization)
// (POST /suppliers)
CreateOrgSupplier(ctx echo.Context, params CreateOrgSupplierParams) error
// Get an organization supplier by ID
// (GET /suppliers/{supplierId})
GetOrgSupplier(ctx echo.Context, supplierId string, params GetOrgSupplierParams) error
// Modify a supplier (organization)
// (PATCH /suppliers/{supplierId})
ModifyOrgSupplier(ctx echo.Context, supplierId string, params ModifyOrgSupplierParams) error
// Update a supplier (organization)
// (PUT /suppliers/{supplierId})
UpdateOrgSupplier(ctx echo.Context, supplierId string, params UpdateOrgSupplierParams) error
// List all transactions
// (GET /transactions)
ListTransactions(ctx echo.Context, params ListTransactionsParams) error
// Create a card transaction
// (POST /transactions)
AddTransaction(ctx echo.Context, params AddTransactionParams) error
// Get transaction by ID
// (GET /transactions/{transactionId})
GetTransaction(ctx echo.Context, transactionId string) error
// List all trips for the organization
// (GET /trips)
ListTrips(ctx echo.Context, params ListTripsParams) error
// Get a trip by ID
// (GET /trips/{tripId})
GetTrip(ctx echo.Context, tripId string, params GetTripParams) error
// List all users for the organization
// (GET /users)
ListUsers(ctx echo.Context, params ListUsersParams) error
// Create a user
// (POST /users)
CreateUser(ctx echo.Context, params CreateUserParams) error
// Delete a user
// (DELETE /users/{userId})
DeleteUser(ctx echo.Context, userId string, params DeleteUserParams) error
// Get a user by ID
// (GET /users/{userId})
GetUser(ctx echo.Context, userId string, params GetUserParams) error
// Modify a user
// (PATCH /users/{userId})
ModifyUser(ctx echo.Context, userId string, params ModifyUserParams) error
// Update a user
// (PUT /users/{userId})
UpdateUser(ctx echo.Context, userId string, params UpdateUserParams) error
}
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct {
Handler ServerInterface
}
ServerInterfaceWrapper converts echo contexts to parameters.
func (*ServerInterfaceWrapper) AddTransaction ¶
func (w *ServerInterfaceWrapper) AddTransaction(ctx echo.Context) error
AddTransaction converts echo context to params.
func (*ServerInterfaceWrapper) ApplyFxRate ¶
func (w *ServerInterfaceWrapper) ApplyFxRate(ctx echo.Context) error
ApplyFxRate converts echo context to params.
func (*ServerInterfaceWrapper) CreateCompanyCard ¶
func (w *ServerInterfaceWrapper) CreateCompanyCard(ctx echo.Context) error
CreateCompanyCard converts echo context to params.
func (*ServerInterfaceWrapper) CreateCostObject ¶
func (w *ServerInterfaceWrapper) CreateCostObject(ctx echo.Context) error
CreateCostObject converts echo context to params.
func (*ServerInterfaceWrapper) CreateEntitySupplier ¶
func (w *ServerInterfaceWrapper) CreateEntitySupplier(ctx echo.Context) error
CreateEntitySupplier converts echo context to params.
func (*ServerInterfaceWrapper) CreateExpenseCategory ¶
func (w *ServerInterfaceWrapper) CreateExpenseCategory(ctx echo.Context) error
CreateExpenseCategory converts echo context to params.
func (*ServerInterfaceWrapper) CreateExternalInvoice ¶
func (w *ServerInterfaceWrapper) CreateExternalInvoice(ctx echo.Context) error
CreateExternalInvoice converts echo context to params.
func (*ServerInterfaceWrapper) CreateFxRateSource ¶
func (w *ServerInterfaceWrapper) CreateFxRateSource(ctx echo.Context) error
CreateFxRateSource converts echo context to params.
func (*ServerInterfaceWrapper) CreateGR ¶
func (w *ServerInterfaceWrapper) CreateGR(ctx echo.Context) error
CreateGR converts echo context to params.
func (*ServerInterfaceWrapper) CreateInvoice ¶
func (w *ServerInterfaceWrapper) CreateInvoice(ctx echo.Context) error
CreateInvoice converts echo context to params.
func (*ServerInterfaceWrapper) CreateInvoiceCategory ¶
func (w *ServerInterfaceWrapper) CreateInvoiceCategory(ctx echo.Context) error
CreateInvoiceCategory converts echo context to params.
func (*ServerInterfaceWrapper) CreateOrgSupplier ¶
func (w *ServerInterfaceWrapper) CreateOrgSupplier(ctx echo.Context) error
CreateOrgSupplier converts echo context to params.
func (*ServerInterfaceWrapper) CreatePO ¶
func (w *ServerInterfaceWrapper) CreatePO(ctx echo.Context) error
CreatePO converts echo context to params.
func (*ServerInterfaceWrapper) CreatePaymentTerm ¶
func (w *ServerInterfaceWrapper) CreatePaymentTerm(ctx echo.Context) error
CreatePaymentTerm converts echo context to params.
func (*ServerInterfaceWrapper) CreatePolicy ¶
func (w *ServerInterfaceWrapper) CreatePolicy(ctx echo.Context) error
CreatePolicy converts echo context to params.
func (*ServerInterfaceWrapper) CreateTag ¶
func (w *ServerInterfaceWrapper) CreateTag(ctx echo.Context) error
CreateTag converts echo context to params.
func (*ServerInterfaceWrapper) CreateTaxRate ¶
func (w *ServerInterfaceWrapper) CreateTaxRate(ctx echo.Context) error
CreateTaxRate converts echo context to params.
func (*ServerInterfaceWrapper) CreateUser ¶
func (w *ServerInterfaceWrapper) CreateUser(ctx echo.Context) error
CreateUser converts echo context to params.
func (*ServerInterfaceWrapper) DeleteCostObject ¶
func (w *ServerInterfaceWrapper) DeleteCostObject(ctx echo.Context) error
DeleteCostObject converts echo context to params.
func (*ServerInterfaceWrapper) DeleteTag ¶
func (w *ServerInterfaceWrapper) DeleteTag(ctx echo.Context) error
DeleteTag converts echo context to params.
func (*ServerInterfaceWrapper) DeleteUser ¶
func (w *ServerInterfaceWrapper) DeleteUser(ctx echo.Context) error
DeleteUser converts echo context to params.
func (*ServerInterfaceWrapper) GetBalance ¶
func (w *ServerInterfaceWrapper) GetBalance(ctx echo.Context) error
GetBalance converts echo context to params.
func (*ServerInterfaceWrapper) GetCardAccount ¶
func (w *ServerInterfaceWrapper) GetCardAccount(ctx echo.Context) error
GetCardAccount converts echo context to params.
func (*ServerInterfaceWrapper) GetCompanyCard ¶
func (w *ServerInterfaceWrapper) GetCompanyCard(ctx echo.Context) error
GetCompanyCard converts echo context to params.
func (*ServerInterfaceWrapper) GetCostObject ¶
func (w *ServerInterfaceWrapper) GetCostObject(ctx echo.Context) error
GetCostObject converts echo context to params.
func (*ServerInterfaceWrapper) GetEntitySupplier ¶
func (w *ServerInterfaceWrapper) GetEntitySupplier(ctx echo.Context) error
GetEntitySupplier converts echo context to params.
func (*ServerInterfaceWrapper) GetExpense ¶
func (w *ServerInterfaceWrapper) GetExpense(ctx echo.Context) error
GetExpense converts echo context to params.
func (*ServerInterfaceWrapper) GetExpenseAttachment ¶
func (w *ServerInterfaceWrapper) GetExpenseAttachment(ctx echo.Context) error
GetExpenseAttachment converts echo context to params.
func (*ServerInterfaceWrapper) GetExpenseCategory ¶
func (w *ServerInterfaceWrapper) GetExpenseCategory(ctx echo.Context) error
GetExpenseCategory converts echo context to params.
func (*ServerInterfaceWrapper) GetExpenseReceipt ¶
func (w *ServerInterfaceWrapper) GetExpenseReceipt(ctx echo.Context) error
GetExpenseReceipt converts echo context to params.
func (*ServerInterfaceWrapper) GetExportArefacts ¶
func (w *ServerInterfaceWrapper) GetExportArefacts(ctx echo.Context) error
GetExportArefacts converts echo context to params.
func (*ServerInterfaceWrapper) GetExportStatus ¶
func (w *ServerInterfaceWrapper) GetExportStatus(ctx echo.Context) error
GetExportStatus converts echo context to params.
func (*ServerInterfaceWrapper) GetExternalInvoice ¶
func (w *ServerInterfaceWrapper) GetExternalInvoice(ctx echo.Context) error
GetExternalInvoice converts echo context to params.
func (*ServerInterfaceWrapper) GetGR ¶
func (w *ServerInterfaceWrapper) GetGR(ctx echo.Context) error
GetGR converts echo context to params.
func (*ServerInterfaceWrapper) GetInvoice ¶
func (w *ServerInterfaceWrapper) GetInvoice(ctx echo.Context) error
GetInvoice converts echo context to params.
func (*ServerInterfaceWrapper) GetInvoiceBase64 ¶
func (w *ServerInterfaceWrapper) GetInvoiceBase64(ctx echo.Context) error
GetInvoiceBase64 converts echo context to params.
func (*ServerInterfaceWrapper) GetInvoiceCategory ¶
func (w *ServerInterfaceWrapper) GetInvoiceCategory(ctx echo.Context) error
GetInvoiceCategory converts echo context to params.
func (*ServerInterfaceWrapper) GetInvoicePdf ¶
func (w *ServerInterfaceWrapper) GetInvoicePdf(ctx echo.Context) error
GetInvoicePdf converts echo context to params.
func (*ServerInterfaceWrapper) GetLegalEntity ¶
func (w *ServerInterfaceWrapper) GetLegalEntity(ctx echo.Context) error
GetLegalEntity converts echo context to params.
func (*ServerInterfaceWrapper) GetOrgSupplier ¶
func (w *ServerInterfaceWrapper) GetOrgSupplier(ctx echo.Context) error
GetOrgSupplier converts echo context to params.
func (*ServerInterfaceWrapper) GetPO ¶
func (w *ServerInterfaceWrapper) GetPO(ctx echo.Context) error
GetPO converts echo context to params.
func (*ServerInterfaceWrapper) GetPaymentTerm ¶
func (w *ServerInterfaceWrapper) GetPaymentTerm(ctx echo.Context) error
GetPaymentTerm converts echo context to params.
func (*ServerInterfaceWrapper) GetPolicy ¶
func (w *ServerInterfaceWrapper) GetPolicy(ctx echo.Context) error
GetPolicy converts echo context to params.
func (*ServerInterfaceWrapper) GetTag ¶
func (w *ServerInterfaceWrapper) GetTag(ctx echo.Context) error
GetTag converts echo context to params.
func (*ServerInterfaceWrapper) GetTaxRate ¶
func (w *ServerInterfaceWrapper) GetTaxRate(ctx echo.Context) error
GetTaxRate converts echo context to params.
func (*ServerInterfaceWrapper) GetTransaction ¶
func (w *ServerInterfaceWrapper) GetTransaction(ctx echo.Context) error
GetTransaction converts echo context to params.
func (*ServerInterfaceWrapper) GetTrip ¶
func (w *ServerInterfaceWrapper) GetTrip(ctx echo.Context) error
GetTrip converts echo context to params.
func (*ServerInterfaceWrapper) GetUser ¶
func (w *ServerInterfaceWrapper) GetUser(ctx echo.Context) error
GetUser converts echo context to params.
func (*ServerInterfaceWrapper) ListCardAccounts ¶
func (w *ServerInterfaceWrapper) ListCardAccounts(ctx echo.Context) error
ListCardAccounts converts echo context to params.
func (*ServerInterfaceWrapper) ListCompanyCards ¶
func (w *ServerInterfaceWrapper) ListCompanyCards(ctx echo.Context) error
ListCompanyCards converts echo context to params.
func (*ServerInterfaceWrapper) ListCostObjects ¶
func (w *ServerInterfaceWrapper) ListCostObjects(ctx echo.Context) error
ListCostObjects converts echo context to params.
func (*ServerInterfaceWrapper) ListEntitySupplier ¶
func (w *ServerInterfaceWrapper) ListEntitySupplier(ctx echo.Context) error
ListEntitySupplier converts echo context to params.
func (*ServerInterfaceWrapper) ListExpenseCategories ¶
func (w *ServerInterfaceWrapper) ListExpenseCategories(ctx echo.Context) error
ListExpenseCategories converts echo context to params.
func (*ServerInterfaceWrapper) ListExpenses ¶
func (w *ServerInterfaceWrapper) ListExpenses(ctx echo.Context) error
ListExpenses converts echo context to params.
func (*ServerInterfaceWrapper) ListExportJobs ¶
func (w *ServerInterfaceWrapper) ListExportJobs(ctx echo.Context) error
ListExportJobs converts echo context to params.
func (*ServerInterfaceWrapper) ListExternalInvoices ¶
func (w *ServerInterfaceWrapper) ListExternalInvoices(ctx echo.Context) error
ListExternalInvoices converts echo context to params.
func (*ServerInterfaceWrapper) ListFxRateSources ¶
func (w *ServerInterfaceWrapper) ListFxRateSources(ctx echo.Context) error
ListFxRateSources converts echo context to params.
func (*ServerInterfaceWrapper) ListGRs ¶
func (w *ServerInterfaceWrapper) ListGRs(ctx echo.Context) error
ListGRs converts echo context to params.
func (*ServerInterfaceWrapper) ListInvoiceCategories ¶
func (w *ServerInterfaceWrapper) ListInvoiceCategories(ctx echo.Context) error
ListInvoiceCategories converts echo context to params.
func (*ServerInterfaceWrapper) ListInvoices ¶
func (w *ServerInterfaceWrapper) ListInvoices(ctx echo.Context) error
ListInvoices converts echo context to params.
func (*ServerInterfaceWrapper) ListLegalEntities ¶
func (w *ServerInterfaceWrapper) ListLegalEntities(ctx echo.Context) error
ListLegalEntities converts echo context to params.
func (*ServerInterfaceWrapper) ListOrgSuppliers ¶
func (w *ServerInterfaceWrapper) ListOrgSuppliers(ctx echo.Context) error
ListOrgSuppliers converts echo context to params.
func (*ServerInterfaceWrapper) ListPOs ¶
func (w *ServerInterfaceWrapper) ListPOs(ctx echo.Context) error
ListPOs converts echo context to params.
func (*ServerInterfaceWrapper) ListPaymentTerms ¶
func (w *ServerInterfaceWrapper) ListPaymentTerms(ctx echo.Context) error
ListPaymentTerms converts echo context to params.
func (*ServerInterfaceWrapper) ListPolicies ¶
func (w *ServerInterfaceWrapper) ListPolicies(ctx echo.Context) error
ListPolicies converts echo context to params.
func (*ServerInterfaceWrapper) ListTags ¶
func (w *ServerInterfaceWrapper) ListTags(ctx echo.Context) error
ListTags converts echo context to params.
func (*ServerInterfaceWrapper) ListTaxRates ¶
func (w *ServerInterfaceWrapper) ListTaxRates(ctx echo.Context) error
ListTaxRates converts echo context to params.
func (*ServerInterfaceWrapper) ListTransactions ¶
func (w *ServerInterfaceWrapper) ListTransactions(ctx echo.Context) error
ListTransactions converts echo context to params.
func (*ServerInterfaceWrapper) ListTrips ¶
func (w *ServerInterfaceWrapper) ListTrips(ctx echo.Context) error
ListTrips converts echo context to params.
func (*ServerInterfaceWrapper) ListUsers ¶
func (w *ServerInterfaceWrapper) ListUsers(ctx echo.Context) error
ListUsers converts echo context to params.
func (*ServerInterfaceWrapper) ModifyCompanyCard ¶
func (w *ServerInterfaceWrapper) ModifyCompanyCard(ctx echo.Context) error
ModifyCompanyCard converts echo context to params.
func (*ServerInterfaceWrapper) ModifyCostObject ¶
func (w *ServerInterfaceWrapper) ModifyCostObject(ctx echo.Context) error
ModifyCostObject converts echo context to params.
func (*ServerInterfaceWrapper) ModifyEntitySupplier ¶
func (w *ServerInterfaceWrapper) ModifyEntitySupplier(ctx echo.Context) error
ModifyEntitySupplier converts echo context to params.
func (*ServerInterfaceWrapper) ModifyExpenseCategory ¶
func (w *ServerInterfaceWrapper) ModifyExpenseCategory(ctx echo.Context) error
ModifyExpenseCategory converts echo context to params.
func (*ServerInterfaceWrapper) ModifyExternalInvoice ¶
func (w *ServerInterfaceWrapper) ModifyExternalInvoice(ctx echo.Context) error
ModifyExternalInvoice converts echo context to params.
func (*ServerInterfaceWrapper) ModifyGR ¶
func (w *ServerInterfaceWrapper) ModifyGR(ctx echo.Context) error
ModifyGR converts echo context to params.
func (*ServerInterfaceWrapper) ModifyInvoiceCategory ¶
func (w *ServerInterfaceWrapper) ModifyInvoiceCategory(ctx echo.Context) error
ModifyInvoiceCategory converts echo context to params.
func (*ServerInterfaceWrapper) ModifyOrgSupplier ¶
func (w *ServerInterfaceWrapper) ModifyOrgSupplier(ctx echo.Context) error
ModifyOrgSupplier converts echo context to params.
func (*ServerInterfaceWrapper) ModifyPO ¶
func (w *ServerInterfaceWrapper) ModifyPO(ctx echo.Context) error
ModifyPO converts echo context to params.
func (*ServerInterfaceWrapper) ModifyPaymentTerm ¶
func (w *ServerInterfaceWrapper) ModifyPaymentTerm(ctx echo.Context) error
ModifyPaymentTerm converts echo context to params.
func (*ServerInterfaceWrapper) ModifyPolicy ¶
func (w *ServerInterfaceWrapper) ModifyPolicy(ctx echo.Context) error
ModifyPolicy converts echo context to params.
func (*ServerInterfaceWrapper) ModifyTag ¶
func (w *ServerInterfaceWrapper) ModifyTag(ctx echo.Context) error
ModifyTag converts echo context to params.
func (*ServerInterfaceWrapper) ModifyTaxRate ¶
func (w *ServerInterfaceWrapper) ModifyTaxRate(ctx echo.Context) error
ModifyTaxRate converts echo context to params.
func (*ServerInterfaceWrapper) ModifyUser ¶
func (w *ServerInterfaceWrapper) ModifyUser(ctx echo.Context) error
ModifyUser converts echo context to params.
func (*ServerInterfaceWrapper) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId ¶
func (w *ServerInterfaceWrapper) PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId(ctx echo.Context) error
PutLegalEntitiesLegalEntityIdInvoicePaymentTermsPaymentTermId converts echo context to params.
func (*ServerInterfaceWrapper) TriggerExpenseExport ¶
func (w *ServerInterfaceWrapper) TriggerExpenseExport(ctx echo.Context) error
TriggerExpenseExport converts echo context to params.
func (*ServerInterfaceWrapper) TriggerInvoiceExport ¶
func (w *ServerInterfaceWrapper) TriggerInvoiceExport(ctx echo.Context) error
TriggerInvoiceExport converts echo context to params.
func (*ServerInterfaceWrapper) UpdateCompanyCard ¶
func (w *ServerInterfaceWrapper) UpdateCompanyCard(ctx echo.Context) error
UpdateCompanyCard converts echo context to params.
func (*ServerInterfaceWrapper) UpdateCostObject ¶
func (w *ServerInterfaceWrapper) UpdateCostObject(ctx echo.Context) error
UpdateCostObject converts echo context to params.
func (*ServerInterfaceWrapper) UpdateEntitySupplier ¶
func (w *ServerInterfaceWrapper) UpdateEntitySupplier(ctx echo.Context) error
UpdateEntitySupplier converts echo context to params.
func (*ServerInterfaceWrapper) UpdateExpenseCategory ¶
func (w *ServerInterfaceWrapper) UpdateExpenseCategory(ctx echo.Context) error
UpdateExpenseCategory converts echo context to params.
func (*ServerInterfaceWrapper) UpdateExternalInvoice ¶
func (w *ServerInterfaceWrapper) UpdateExternalInvoice(ctx echo.Context) error
UpdateExternalInvoice converts echo context to params.
func (*ServerInterfaceWrapper) UpdateGR ¶
func (w *ServerInterfaceWrapper) UpdateGR(ctx echo.Context) error
UpdateGR converts echo context to params.
func (*ServerInterfaceWrapper) UpdateInvoice ¶
func (w *ServerInterfaceWrapper) UpdateInvoice(ctx echo.Context) error
UpdateInvoice converts echo context to params.
func (*ServerInterfaceWrapper) UpdateInvoiceCategory ¶
func (w *ServerInterfaceWrapper) UpdateInvoiceCategory(ctx echo.Context) error
UpdateInvoiceCategory converts echo context to params.
func (*ServerInterfaceWrapper) UpdateOrgSupplier ¶
func (w *ServerInterfaceWrapper) UpdateOrgSupplier(ctx echo.Context) error
UpdateOrgSupplier converts echo context to params.
func (*ServerInterfaceWrapper) UpdatePO ¶
func (w *ServerInterfaceWrapper) UpdatePO(ctx echo.Context) error
UpdatePO converts echo context to params.
func (*ServerInterfaceWrapper) UpdatePolicy ¶
func (w *ServerInterfaceWrapper) UpdatePolicy(ctx echo.Context) error
UpdatePolicy converts echo context to params.
func (*ServerInterfaceWrapper) UpdateTag ¶
func (w *ServerInterfaceWrapper) UpdateTag(ctx echo.Context) error
UpdateTag converts echo context to params.
func (*ServerInterfaceWrapper) UpdateTaxRate ¶
func (w *ServerInterfaceWrapper) UpdateTaxRate(ctx echo.Context) error
UpdateTaxRate converts echo context to params.
func (*ServerInterfaceWrapper) UpdateUser ¶
func (w *ServerInterfaceWrapper) UpdateUser(ctx echo.Context) error
UpdateUser converts echo context to params.
func (*ServerInterfaceWrapper) UploadAiInvoice ¶
func (w *ServerInterfaceWrapper) UploadAiInvoice(ctx echo.Context) error
UploadAiInvoice converts echo context to params.
func (*ServerInterfaceWrapper) UploadEinvoice ¶
func (w *ServerInterfaceWrapper) UploadEinvoice(ctx echo.Context) error
UploadEinvoice converts echo context to params.
type ServiceUnavailable ¶
type ServiceUnavailable = Error
ServiceUnavailable defines model for ServiceUnavailable.
type Supplier ¶
type Supplier struct {
AutoSubmissionSettings *SupplierAutoSubmissionSettings `json:"autoSubmissionSettings,omitempty"`
BankAccounts *[]InvoiceBankAccount `json:"bankAccounts"`
// City City where the supplier is located.
City *string `json:"city"`
// CodingType Determines how invoices from this supplier should be processed by Yokoy.
// - `smart`: If selected, Yokoy tries to smart-code all invoices for the supplier.
// - `supplierDefault`: If selected, Yokoy picks the default cost object and category that you have set up in the supplier settings.
// - `entity`: If this option is selected, Yokoy follows whatever coding logic is determined for the company. If smart coding is enabled for the legal entity, Yokoy performs smart coding of the invoice. If smart coding is not enabled for the legal entity, then no smart coding is performed.
CodingType *SupplierCodingType `json:"codingType"`
Contacts *[]SupplierContact `json:"contacts"`
// CountryCode Country where the supplier is located. Expressed as an ISO 3166 Alpha-2 code.
CountryCode *string `json:"countryCode"`
CustomInformation *map[string]interface{} `json:"customInformation"`
// DefaultApproverFirstName The first name of the default invoice approver.
DefaultApproverFirstName *string `json:"defaultApproverFirstName"`
// DefaultApproverId Yokoy unique ID of the default approver.
DefaultApproverId *string `json:"defaultApproverId"`
// DefaultApproverLastName The last name of the default invoice approver.
DefaultApproverLastName *string `json:"defaultApproverLastName"`
// DefaultCategoryId Yokoy unique ID of the default invoice category.
DefaultCategoryId *string `json:"defaultCategoryId"`
// DefaultCategoryName Name of the default invoice category for this supplier.
DefaultCategoryName *string `json:"defaultCategoryName"`
// DefaultCostCenterId Yokoy unique ID of the default cost object.
DefaultCostCenterId *string `json:"defaultCostCenterId"`
// DefaultCostCenterName Name of the default cost object.
DefaultCostCenterName *string `json:"defaultCostCenterName"`
// DefaultPaymentTermId Yokoy unique ID of the default payment term.
DefaultPaymentTermId *string `json:"defaultPaymentTermId"`
// ExternalId External ID of the organization supplier. This must be unique within the organization and cannot be changed after creation.
ExternalId string `json:"externalId"`
// Id Yokoy unique ID of supplier linked to a specific legal entity.
Id *string `json:"id,omitempty"`
// InternalSupplierId ID of the internal supplier. Only mandatory when the `Enable InternalSupplierID` setting is active at organization level, | It must have the format of the organization supplier's external identifier + '_' + Yokoy legal entity ID.
InternalSupplierId *string `json:"internalSupplierId,omitempty"`
// IsInternalSupplier Identifies the supplier as intercompany supplier.
IsInternalSupplier *bool `json:"isInternalSupplier"`
// IsPurchaseOrderSupplier Indicates if the supplier requires a purchase order for each invoice.
IsPurchaseOrderSupplier *bool `json:"isPurchaseOrderSupplier"`
// IsTemplateOneTimeSupplier Determines whether the supplier is to be imported as a one-time vendor or not. One-time vendors are only supported in SAP systems. If the supplier is a template to be used for non-recurring one-time suppliers, you must set this attribute as `true`.
IsTemplateOneTimeSupplier *bool `json:"isTemplateOneTimeSupplier,omitempty"`
// Name Full company name of the supplier.
Name string `json:"name"`
// PaymentTermIds Array of Yokoy IDs of payment terms.
PaymentTermIds *[]string `json:"paymentTermIds"`
// SecondaryName Additional information about the supplier name.
SecondaryName *string `json:"secondaryName"`
// ShortName Short name of the supplier for display.
ShortName *string `json:"shortName"`
StatusActive bool `json:"statusActive"`
// Street Street where the supplier is located.
Street *string `json:"street"`
// SupplierId Yokoy ID of the organization supplier. It must reference an existing organization-level supplier.
SupplierId string `json:"supplierId"`
// TaxNumber Legal tax number of the supplier. Use `taxNumbers` instead.
// Deprecated: this property has been marked as deprecated upstream, but no `x-deprecated-reason` was set
TaxNumber *string `json:"taxNumber"`
// TaxNumbers An array of the supplier's legal tax numbers. Use this attribute instead of `taxNumber` after setting `taxNumber` to null.
TaxNumbers *[]string `json:"taxNumbers"`
// TriggerAutoMatchWithoutPO Trigger auto-match without purchase order number data. For PO suppliers (i.e. suppliers with invoices that must always have an associated PO), if set as `true`, Yokoy tries to match the invoice to a purchase order if no purchase order data is provided.
TriggerAutoMatchWithoutPO *bool `json:"triggerAutoMatchWithoutPO"`
// Url Website of the supplier.
Url *string `json:"url"`
// ZipCode Postal code where the supplier is located.
ZipCode *string `json:"zipCode"`
}
Supplier defines model for Supplier.
type SupplierAutoSubmissionDocumentSettings ¶
type SupplierAutoSubmissionDocumentSettings struct {
// Amount Threshold amount (**Max. allowed amount**) below which the supplier document is submitted automatically by Yokoy when all other conditions are met.
// The amount is converted to the currency of the legal entity.
// A 0 or `null` amount means that all documents are auto-submitted.
Amount *float32 `json:"amount"`
Enabled bool `json:"enabled"`
}
SupplierAutoSubmissionDocumentSettings defines model for SupplierAutoSubmissionDocumentSettings.
type SupplierAutoSubmissionSettings ¶
type SupplierAutoSubmissionSettings struct {
NonPoCreditNotes *SupplierAutoSubmissionDocumentSettings `json:"nonPoCreditNotes,omitempty"`
NonPoInvoices *SupplierAutoSubmissionDocumentSettings `json:"nonPoInvoices,omitempty"`
PoCreditNotes *SupplierAutoSubmissionDocumentSettings `json:"poCreditNotes,omitempty"`
PoInvoices *SupplierAutoSubmissionDocumentSettings `json:"poInvoices,omitempty"`
// Status Status of the auto-submission settings.
// - `disabled`: Invoices and/or credit notes for the supplier are not auto-submitted. This overrides any auto-submission settings defined at company level.
// - `enabled`: Invoices and/or credit notes for the supplier are auto-submitted using the auto-submission settings specified.
// - `entity`: Invoices and/or credit notes may be auto-submitted according to the setting defined at company level.
Status SupplierAutoSubmissionSettingsStatus `json:"status"`
}
SupplierAutoSubmissionSettings defines model for SupplierAutoSubmissionSettings.
type SupplierAutoSubmissionSettingsStatus ¶
type SupplierAutoSubmissionSettingsStatus string
SupplierAutoSubmissionSettingsStatus Status of the auto-submission settings. - `disabled`: Invoices and/or credit notes for the supplier are not auto-submitted. This overrides any auto-submission settings defined at company level. - `enabled`: Invoices and/or credit notes for the supplier are auto-submitted using the auto-submission settings specified. - `entity`: Invoices and/or credit notes may be auto-submitted according to the setting defined at company level.
const ( SupplierAutoSubmissionSettingsStatusDisabled SupplierAutoSubmissionSettingsStatus = "disabled" SupplierAutoSubmissionSettingsStatusEnabled SupplierAutoSubmissionSettingsStatus = "enabled" SupplierAutoSubmissionSettingsStatusEntity SupplierAutoSubmissionSettingsStatus = "entity" )
Defines values for SupplierAutoSubmissionSettingsStatus.
type SupplierCodingType ¶
type SupplierCodingType string
SupplierCodingType Determines how invoices from this supplier should be processed by Yokoy. - `smart`: If selected, Yokoy tries to smart-code all invoices for the supplier. - `supplierDefault`: If selected, Yokoy picks the default cost object and category that you have set up in the supplier settings. - `entity`: If this option is selected, Yokoy follows whatever coding logic is determined for the company. If smart coding is enabled for the legal entity, Yokoy performs smart coding of the invoice. If smart coding is not enabled for the legal entity, then no smart coding is performed.
const ( SupplierCodingTypeEntity SupplierCodingType = "entity" SupplierCodingTypeSmart SupplierCodingType = "smart" SupplierCodingTypeSupplierDefault SupplierCodingType = "supplierDefault" )
Defines values for SupplierCodingType.
type SupplierContact ¶
type SupplierContact struct {
// Email Email address of the supplier's contact.
Email string `json:"email"`
// FirstName Given name of the supplier's contact.
FirstName string `json:"firstName"`
// LastName Family name of the supplier's contact.
LastName string `json:"lastName"`
// Phone Phone number of the supplier's contact.
Phone string `json:"phone"`
// Role Contact's role in the supplier company.
Role string `json:"role"`
}
SupplierContact defines model for SupplierContact.
type Tag ¶
type Tag struct {
// Code External reference used by the ERP. If not required, it can be the same as the dimension code.
Code string `json:"code"`
// CustomInformation Dictionary of custom information attributes associated with the tag.
CustomInformation *map[string]string `json:"customInformation"`
// DimensionCode Dimension code associated with the tag.
DimensionCode string `json:"dimensionCode"`
// ExpenseApproverIds List of expense approvers identified by their Yokoy unique ID. This is used in expense-based workflows.
ExpenseApproverIds *[]string `json:"expenseApproverIds"`
// Id Yokoy unique ID of the tag.
Id *string `json:"id,omitempty"`
// InvoiceApproverIds List of invoice approvers identified by their Yokoy unique ID. This is used in invoice-based workflows.
InvoiceApproverIds *[]string `json:"invoiceApproverIds"`
// Name Descriptive name of the tag.
Name string `json:"name"`
// StatusActive Status of the tag.
StatusActive bool `json:"statusActive"`
}
Tag defines model for Tag.
type TaxComponents ¶
type TaxComponents struct {
// AssessmentType Whether the tax component is self-assessed or seller-assessed.
AssessmentType TaxComponentsAssessmentType `json:"assessmentType"`
// ExpenseAccount Expense account to be used to post the tax component.
ExpenseAccount *string `json:"expenseAccount,omitempty"`
// InputAccount Input account for the tax component
InputAccount *string `json:"inputAccount,omitempty"`
// Name Name of the tax rate component.
Name string `json:"name"`
// OutputAccount The output account for the tax component
OutputAccount *string `json:"outputAccount,omitempty"`
// Rate Rate of the tax component.
Rate *float32 `json:"rate"`
// RecoverablePercentage Recoverable percentage of the tax component. 100 is interpreted as 100%
RecoverablePercentage float32 `json:"recoverablePercentage"`
}
TaxComponents Advanced tax configuration has to be enabled for the legal entity to use tax rate components. Applicable only for invoices. If tax components are present, tax rate version is set to `two` internally.
type TaxComponentsAssessmentType ¶
type TaxComponentsAssessmentType string
TaxComponentsAssessmentType Whether the tax component is self-assessed or seller-assessed.
const ( SelfAssessed TaxComponentsAssessmentType = "selfAssessed" SellerAssessed TaxComponentsAssessmentType = "sellerAssessed" )
Defines values for TaxComponentsAssessmentType.
type TaxItem ¶
type TaxItem struct {
// Gross Gross amount subject to the tax rate in the expense currency.
Gross *float32 `json:"gross,omitempty"`
// RateId Yokoy's unique ID of the tax rate.
RateId *string `json:"rateId,omitempty"`
// Tax Tax amount in the expense currency.
Tax *float32 `json:"tax,omitempty"`
}
TaxItem defines model for TaxItem.
type TaxRate ¶
type TaxRate struct {
// AccountReference Account (ERP) associated with the tax rate. Relevant for posting bookings.
AccountReference string `json:"accountReference"`
// Code Code (ERP). External reference of the tax rate.
Code string `json:"code"`
// Country Country of the tax rate. Expressed as an ISO 3166 Alpha-2 code.
Country string `json:"country"`
// CustomInformation Dictionary of custom information attributes associated with the tax rate.
CustomInformation *map[string]string `json:"customInformation"`
// Id Yokoy unique ID of the tax rate.
Id *string `json:"id,omitempty"`
// Name Name of the tax rate.
Name string `json:"name"`
// Rate Tax rate in percentage. Used to match tax rate when digitizing expenses. Accepts numbers up to 15 decimal places.
Rate float32 `json:"rate"`
// StatusActive Status of the tax rate. Only active rates are considered in expenses and invoices.
StatusActive bool `json:"statusActive"`
// Type Category that classifies the tax rate. Used to determine the tax rate in e-invoices.
Type *TaxRateType `json:"type,omitempty"`
// ValidityEndDate Validity end date for the tax rate.
ValidityEndDate *openapi_types.Date `json:"validityEndDate"`
// ValidityStartDate Validity start date for the tax rate.
ValidityStartDate *openapi_types.Date `json:"validityStartDate"`
// Version Applicable only for invoices. Version set to `two` internally if tax rate has components; otherwise `one`. If no version is present, the version is considered to be `one`.
Version *TaxRateVersion `json:"version,omitempty"`
}
TaxRate defines model for TaxRate.
type TaxRateType ¶
type TaxRateType string
TaxRateType Category that classifies the tax rate. Used to determine the tax rate in e-invoices.
const ( DomesticReverseCharge TaxRateType = "domesticReverseCharge" Exempt TaxRateType = "exempt" Reduced TaxRateType = "reduced" SpecialReduced TaxRateType = "specialReduced" Standard TaxRateType = "standard" Zero TaxRateType = "zero" )
Defines values for TaxRateType.
type TaxRateVersion ¶
type TaxRateVersion string
TaxRateVersion Applicable only for invoices. Version set to `two` internally if tax rate has components; otherwise `one`. If no version is present, the version is considered to be `one`.
const ( One TaxRateVersion = "one" Two TaxRateVersion = "two" )
Defines values for TaxRateVersion.
type TooManyRequests ¶
type TooManyRequests = Error
TooManyRequests defines model for TooManyRequests.
type Transaction ¶
type Transaction struct {
// BillingAmount Amount of the transaction, expressed in the billing currency.
BillingAmount float32 `json:"billingAmount"`
// BillingCurrency Billing currency of the transaction. ISO 4217 three-letter code.
BillingCurrency string `json:"billingCurrency"`
// BookingDate Date when the transaction was booked, also known as posting date. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
BookingDate *time.Time `json:"bookingDate"`
// CardId Yokoy unique ID of the card to which the transaction is associated.
CardId string `json:"cardId"`
// Country Code of the country where the transaction took place. Expressed as an ISO 3166 Alpha-2 code.
Country *string `json:"country"`
// Created Timestamp (date and time) when the transaction was created. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
Created *time.Time `json:"created,omitempty"`
// ExpenseId Yokoy unique ID of the expense to which the transaction is associated.
ExpenseId *string `json:"expenseId"`
// ExpenseStatus Read-only field.
// Whenever a transaction is matched to an expense, this attribute indicates the status of the associated expense:
// - `0`: Expense is not ready for export.
// - `1`: Expense is ready for export.
// - `2`: Expense is exported.
ExpenseStatus *TransactionExpenseStatus `json:"expenseStatus"`
// Id Yokoy unique ID of a transaction.
Id *string `json:"id,omitempty"`
// IsCreditNote Indicates whether the transaction is a credit note or a refund.
IsCreditNote *bool `json:"isCreditNote,omitempty"`
// LegalEntityId Yokoy unique ID of the legal entity to which the transaction is assigned.
LegalEntityId string `json:"legalEntityId"`
// MatchingStatus Indicates whether a transaction document is matched with an expense document.
// - `0`: Transaction is not matched.
// - `1`: Transaction is matched.
// - `2`: [deprecated] Transaction is private.
// - `5`: Transaction is archived. Archived transactions cannot be matched against expenses and are ignored by Yokoy in auto-matching.
MatchingStatus *TransactionMatchingStatus `json:"matchingStatus,omitempty"`
// MccSicCode Merchant category transaction classification. ISO 18245.
MccSicCode *string `json:"mccSicCode"`
// Merchant Merchant or description of the transaction.
Merchant string `json:"merchant"`
// SourceAmount Amount of the transaction, expressed in the source currency.
SourceAmount *float32 `json:"sourceAmount"`
// SourceCurrency Source currency of the transaction (i.e. a foreign currency). ISO 4217 three-letter code.
SourceCurrency *string `json:"sourceCurrency"`
// StatementReference External reference to the associated statement. Depending on the provider, this information may or may not be provided. Not available for Yokoy's Platinum Visa and Business Mastercard products.
StatementReference *string `json:"statementReference,omitempty"`
// TransactionDate Date when the transaction occurred. Expressed in `YYYY-MM-DD` format.
TransactionDate string `json:"transactionDate"`
}
Transaction defines model for Transaction.
type TransactionExpenseStatus ¶
type TransactionExpenseStatus float32
TransactionExpenseStatus Read-only field. Whenever a transaction is matched to an expense, this attribute indicates the status of the associated expense:
- `0`: Expense is not ready for export.
- `1`: Expense is ready for export.
- `2`: Expense is exported.
const ( TransactionExpenseStatusN0 TransactionExpenseStatus = 0 TransactionExpenseStatusN1 TransactionExpenseStatus = 1 TransactionExpenseStatusN2 TransactionExpenseStatus = 2 )
Defines values for TransactionExpenseStatus.
type TransactionMatchingStatus ¶
type TransactionMatchingStatus float32
TransactionMatchingStatus Indicates whether a transaction document is matched with an expense document.
- `0`: Transaction is not matched.
- `1`: Transaction is matched.
- `2`: [deprecated] Transaction is private.
- `5`: Transaction is archived. Archived transactions cannot be matched against expenses and are ignored by Yokoy in auto-matching.
const ( TransactionMatchingStatusN0 TransactionMatchingStatus = 0 TransactionMatchingStatusN1 TransactionMatchingStatus = 1 TransactionMatchingStatusN2 TransactionMatchingStatus = 2 TransactionMatchingStatusN5 TransactionMatchingStatus = 5 )
Defines values for TransactionMatchingStatus.
type TriggerExpenseExportJSONBody ¶
type TriggerExpenseExportJSONBody struct {
// DocumentIds List of Yokoy expense IDs to be exported.
// Required if `exportScope` is `documentIds`. It returns an error if the array length is less than one.
DocumentIds *[]string `json:"documentIds,omitempty"`
// EarliestPostingDate Earliest allowed posting date. For expenses with an earlier posting date, the posting date is replaced with the earliest allowed posting date (to avoid posting to already closed books).
// The earlier posting date must follow these rules:
// - it must be an ISO date in the format YYYY-MM-DD (e.g. 2025-03-18)
// - it must be within 1 year (both past and future) of when an export was triggered.
// For example, if the date on which you trigger the export job is 2025-03-18, then any date between `2024-03-18` and `2026-03-18` is valid.
EarliestPostingDate string `json:"earliestPostingDate"`
// ExportScope Determines the expenses to be exported. You can export either all expenses in the scope of the export facility that are ready for export (`all`) or a determined set of expenses that are specified by their Yokoy unique IDs (`documentIds`).
ExportScope TriggerExpenseExportJSONBodyExportScope `json:"exportScope"`
// ExporterId Yokoy unique ID of the user on behalf of which the export job is run. The user must have the finance role for the legal entity to trigger an export.
ExporterId string `json:"exporterId"`
}
TriggerExpenseExportJSONBody defines parameters for TriggerExpenseExport.
type TriggerExpenseExportJSONBodyExportScope ¶
type TriggerExpenseExportJSONBodyExportScope string
TriggerExpenseExportJSONBodyExportScope defines parameters for TriggerExpenseExport.
const ( TriggerExpenseExportJSONBodyExportScopeAll TriggerExpenseExportJSONBodyExportScope = "all" TriggerExpenseExportJSONBodyExportScopeDocumentIds TriggerExpenseExportJSONBodyExportScope = "documentIds" )
Defines values for TriggerExpenseExportJSONBodyExportScope.
type TriggerExpenseExportJSONRequestBody ¶
type TriggerExpenseExportJSONRequestBody TriggerExpenseExportJSONBody
TriggerExpenseExportJSONRequestBody defines body for TriggerExpenseExport for application/json ContentType.
type TriggerExpenseExportResponse ¶
type TriggerExpenseExportResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Resource Task ID of the export job
Resource *string `json:"resource,omitempty"`
}
JSON400 *Error
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON422 *InsufficientData
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseTriggerExpenseExportResponse ¶
func ParseTriggerExpenseExportResponse(rsp *http.Response) (*TriggerExpenseExportResponse, error)
ParseTriggerExpenseExportResponse parses an HTTP response from a TriggerExpenseExportWithResponse call
func (TriggerExpenseExportResponse) Status ¶
func (r TriggerExpenseExportResponse) Status() string
Status returns HTTPResponse.Status
func (TriggerExpenseExportResponse) StatusCode ¶
func (r TriggerExpenseExportResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type TriggerInvoiceExportJSONBody ¶
type TriggerInvoiceExportJSONBody struct {
// DocumentIds List of Yokoy invoice IDs to be exported (only required if `exportScope` is `documentIds`)
DocumentIds *[]string `json:"documentIds,omitempty"`
// EarliestPostingDate Earliest allowed posting date. For invoices with an earlier posting date, the posting date is replaced with the earliest allowed posting date (to avoid posting to already closed books).
// The earlier posting date must follow these rules:
// - it must be an ISO date in the format YYYY-MM-DD (e.g. 2025-03-18)
// - it must be within 1 year (both past and future) of when an export was triggered.
// For example, if the date on which you trigger the export job is 2025-03-18, then any date between `2024-03-18` and `2026-03-18` is valid.
EarliestPostingDate string `json:"earliestPostingDate"`
// ExportScope Determines the expenses to be exported. You can export either all invoices in the scope of the export facility that are ready for export are exported (`all`) or a determined set of invoices that are specified by their Yokoy unique IDs (`documentIds`).
ExportScope TriggerInvoiceExportJSONBodyExportScope `json:"exportScope"`
// ExporterId Yokoy unique ID of the user on behalf of which the export job is run. The user must have the finance role for the legal entity to trigger an export.
ExporterId string `json:"exporterId"`
}
TriggerInvoiceExportJSONBody defines parameters for TriggerInvoiceExport.
type TriggerInvoiceExportJSONBodyExportScope ¶
type TriggerInvoiceExportJSONBodyExportScope string
TriggerInvoiceExportJSONBodyExportScope defines parameters for TriggerInvoiceExport.
const ( All TriggerInvoiceExportJSONBodyExportScope = "all" DocumentIds TriggerInvoiceExportJSONBodyExportScope = "documentIds" )
Defines values for TriggerInvoiceExportJSONBodyExportScope.
type TriggerInvoiceExportJSONRequestBody ¶
type TriggerInvoiceExportJSONRequestBody TriggerInvoiceExportJSONBody
TriggerInvoiceExportJSONRequestBody defines body for TriggerInvoiceExport for application/json ContentType.
type TriggerInvoiceExportParams ¶
type TriggerInvoiceExportParams struct {
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
TriggerInvoiceExportParams defines parameters for TriggerInvoiceExport.
type TriggerInvoiceExportResponse ¶
type TriggerInvoiceExportResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// Resource Task ID of the export job
Resource *string `json:"resource,omitempty"`
}
JSON400 *Error
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseTriggerInvoiceExportResponse ¶
func ParseTriggerInvoiceExportResponse(rsp *http.Response) (*TriggerInvoiceExportResponse, error)
ParseTriggerInvoiceExportResponse parses an HTTP response from a TriggerInvoiceExportWithResponse call
func (TriggerInvoiceExportResponse) Status ¶
func (r TriggerInvoiceExportResponse) Status() string
Status returns HTTPResponse.Status
func (TriggerInvoiceExportResponse) StatusCode ¶
func (r TriggerInvoiceExportResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Trip ¶
type Trip struct {
// Created Timestamp (date and time) of when the trip was created. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
Created *time.Time `json:"created,omitempty"`
// Currency Original trip currency. ISO 4217 three-letter code.
Currency *string `json:"currency,omitempty"`
// CustomInformation Dictionary of custom information associated with the trip.
CustomInformation *map[string]string `json:"customInformation"`
// EndDatetime End timestamp of the trip. Expressed in `YYYY-MM-DDThh:mm` format.
EndDatetime *string `json:"endDatetime,omitempty"`
// Id Yokoy unique ID of the trip.
Id *string `json:"id,omitempty"`
// LastModified Timestamp (date and time) of when the trip was last modified. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
LastModified *time.Time `json:"lastModified,omitempty"`
// LegalEntityId Yokoy unique ID of the legal entity to which the trip is assigned.
LegalEntityId *string `json:"legalEntityId,omitempty"`
// Name Name or short description of the trip (free text descriptions added by users).
Name *string `json:"name,omitempty"`
// StartDatetime Start date timestamp (date and time) of the trip. Expressed in `YYYY-MM-DDThh:mm` format.
StartDatetime *string `json:"startDatetime,omitempty"`
// Status Status of the trip. Indicates the overall status of all expenses included in the trip.
Status TripStatus `json:"status"`
// TotalClaim Total claim of the trip.
TotalClaim *float32 `json:"totalClaim"`
// UserId Yokoy unique ID of the user.
UserId *string `json:"userId"`
}
Trip defines model for Trip.
type TripStatus ¶
type TripStatus string
TripStatus Status of the trip. Indicates the overall status of all expenses included in the trip.
const ( Draft TripStatus = "draft" ExpenseExported TripStatus = "expenseExported" ForApproval TripStatus = "forApproval" ForExpenseExport TripStatus = "forExpenseExport" ForReview TripStatus = "forReview" ForTransactionExport TripStatus = "forTransactionExport" NeedsRevision TripStatus = "needsRevision" ReadyForTripSubmission TripStatus = "readyForTripSubmission" Rejected TripStatus = "rejected" TransactionExported TripStatus = "transactionExported" TravelDraft TripStatus = "travelDraft" TripPreApprovalDraft TripStatus = "tripPreApprovalDraft" TripPreApprovalInPreApproval TripStatus = "tripPreApprovalInPreApproval" TripPreApprovalNeedsRevision TripStatus = "tripPreApprovalNeedsRevision" TripPreApprovalPreApproved TripStatus = "tripPreApprovalPreApproved" TripPreApprovalRejected TripStatus = "tripPreApprovalRejected" )
Defines values for TripStatus.
type UpdateCompanyCardJSONRequestBody ¶
type UpdateCompanyCardJSONRequestBody = CompanyCard
UpdateCompanyCardJSONRequestBody defines body for UpdateCompanyCard for application/json ContentType.
type UpdateCompanyCardParams ¶
type UpdateCompanyCardParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateCompanyCardParams defines parameters for UpdateCompanyCard.
type UpdateCompanyCardResponse ¶
type UpdateCompanyCardResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CompanyCard
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateCompanyCardResponse ¶
func ParseUpdateCompanyCardResponse(rsp *http.Response) (*UpdateCompanyCardResponse, error)
ParseUpdateCompanyCardResponse parses an HTTP response from a UpdateCompanyCardWithResponse call
func (UpdateCompanyCardResponse) Status ¶
func (r UpdateCompanyCardResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateCompanyCardResponse) StatusCode ¶
func (r UpdateCompanyCardResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateCostObjectJSONRequestBody ¶
type UpdateCostObjectJSONRequestBody = CostCenter
UpdateCostObjectJSONRequestBody defines body for UpdateCostObject for application/json ContentType.
type UpdateCostObjectParams ¶
type UpdateCostObjectParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateCostObjectParams defines parameters for UpdateCostObject.
type UpdateCostObjectResponse ¶
type UpdateCostObjectResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *CostCenter
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateCostObjectResponse ¶
func ParseUpdateCostObjectResponse(rsp *http.Response) (*UpdateCostObjectResponse, error)
ParseUpdateCostObjectResponse parses an HTTP response from a UpdateCostObjectWithResponse call
func (UpdateCostObjectResponse) Status ¶
func (r UpdateCostObjectResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateCostObjectResponse) StatusCode ¶
func (r UpdateCostObjectResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateEntitySupplierJSONRequestBody ¶
type UpdateEntitySupplierJSONRequestBody = LegalEntitySupplier
UpdateEntitySupplierJSONRequestBody defines body for UpdateEntitySupplier for application/json ContentType.
type UpdateEntitySupplierParams ¶
type UpdateEntitySupplierParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateEntitySupplierParams defines parameters for UpdateEntitySupplier.
type UpdateEntitySupplierResponse ¶
type UpdateEntitySupplierResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Supplier
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateEntitySupplierResponse ¶
func ParseUpdateEntitySupplierResponse(rsp *http.Response) (*UpdateEntitySupplierResponse, error)
ParseUpdateEntitySupplierResponse parses an HTTP response from a UpdateEntitySupplierWithResponse call
func (UpdateEntitySupplierResponse) Status ¶
func (r UpdateEntitySupplierResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateEntitySupplierResponse) StatusCode ¶
func (r UpdateEntitySupplierResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateExpenseCategoryJSONRequestBody ¶
type UpdateExpenseCategoryJSONRequestBody = Category
UpdateExpenseCategoryJSONRequestBody defines body for UpdateExpenseCategory for application/json ContentType.
type UpdateExpenseCategoryParams ¶
type UpdateExpenseCategoryParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateExpenseCategoryParams defines parameters for UpdateExpenseCategory.
type UpdateExpenseCategoryResponse ¶
type UpdateExpenseCategoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Category
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateExpenseCategoryResponse ¶
func ParseUpdateExpenseCategoryResponse(rsp *http.Response) (*UpdateExpenseCategoryResponse, error)
ParseUpdateExpenseCategoryResponse parses an HTTP response from a UpdateExpenseCategoryWithResponse call
func (UpdateExpenseCategoryResponse) Status ¶
func (r UpdateExpenseCategoryResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateExpenseCategoryResponse) StatusCode ¶
func (r UpdateExpenseCategoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateExternalInvoiceJSONRequestBody ¶
type UpdateExternalInvoiceJSONRequestBody = ExternalInvoice
UpdateExternalInvoiceJSONRequestBody defines body for UpdateExternalInvoice for application/json ContentType.
type UpdateExternalInvoiceParams ¶
type UpdateExternalInvoiceParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateExternalInvoiceParams defines parameters for UpdateExternalInvoice.
type UpdateExternalInvoiceResponse ¶
type UpdateExternalInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *ExternalInvoice
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateExternalInvoiceResponse ¶
func ParseUpdateExternalInvoiceResponse(rsp *http.Response) (*UpdateExternalInvoiceResponse, error)
ParseUpdateExternalInvoiceResponse parses an HTTP response from a UpdateExternalInvoiceWithResponse call
func (UpdateExternalInvoiceResponse) Status ¶
func (r UpdateExternalInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateExternalInvoiceResponse) StatusCode ¶
func (r UpdateExternalInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateGRJSONRequestBody ¶
type UpdateGRJSONRequestBody = GoodsReceipt
UpdateGRJSONRequestBody defines body for UpdateGR for application/json ContentType.
type UpdateGRParams ¶
type UpdateGRParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateGRParams defines parameters for UpdateGR.
type UpdateGRResponse ¶
type UpdateGRResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *GoodsReceipt
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateGRResponse ¶
func ParseUpdateGRResponse(rsp *http.Response) (*UpdateGRResponse, error)
ParseUpdateGRResponse parses an HTTP response from a UpdateGRWithResponse call
func (UpdateGRResponse) Status ¶
func (r UpdateGRResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateGRResponse) StatusCode ¶
func (r UpdateGRResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateInvoice ¶
type UpdateInvoice struct {
// CustomInformation Dictionary of custom information associated with the invoice.
// The data of the object is merged with the existing values on a top level.
// Deeper levels are overwritten by the new data and not merged.
// To reset a specific attribute, set it to `null`. Yokoy treats empty values as `null`.
CustomInformation *map[string]interface{} `json:"customInformation"`
// LineItems List of changes to custom information to update at line item level.
// Line items are identified by their index in the list.
// The list must contain exactly the same number of items as line items of the invoice.
LineItems *[]UpdateInvoiceLineItem `json:"lineItems"`
}
UpdateInvoice Update the custom information associated with the invoice. Any attributes are added to existing attributes. To reset or delete a specific attribute, set it to `null`.
type UpdateInvoiceCategoryJSONRequestBody ¶
type UpdateInvoiceCategoryJSONRequestBody = InvoiceCategory
UpdateInvoiceCategoryJSONRequestBody defines body for UpdateInvoiceCategory for application/json ContentType.
type UpdateInvoiceCategoryParams ¶
type UpdateInvoiceCategoryParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateInvoiceCategoryParams defines parameters for UpdateInvoiceCategory.
type UpdateInvoiceCategoryResponse ¶
type UpdateInvoiceCategoryResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InvoiceCategory
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateInvoiceCategoryResponse ¶
func ParseUpdateInvoiceCategoryResponse(rsp *http.Response) (*UpdateInvoiceCategoryResponse, error)
ParseUpdateInvoiceCategoryResponse parses an HTTP response from a UpdateInvoiceCategoryWithResponse call
func (UpdateInvoiceCategoryResponse) Status ¶
func (r UpdateInvoiceCategoryResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateInvoiceCategoryResponse) StatusCode ¶
func (r UpdateInvoiceCategoryResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateInvoiceJSONBody ¶
type UpdateInvoiceJSONBody struct {
// CustomInformation Dictionary of custom information associated with the invoice.
// The data of the object is merged with the existing values on a top level.
// Deeper levels are overwritten by the new data and not merged.
// To reset a specific attribute, set it to `null`. Yokoy treats empty values as `null`.
CustomInformation *map[string]interface{} `json:"customInformation"`
// LineItems List of changes to custom information to update at line item level.
// Line items are identified by their index in the list.
// The list must contain exactly the same number of items as line items of the invoice.
LineItems *[]UpdateInvoiceLineItem `json:"lineItems"`
}
UpdateInvoiceJSONBody defines parameters for UpdateInvoice.
type UpdateInvoiceJSONRequestBody ¶
type UpdateInvoiceJSONRequestBody UpdateInvoiceJSONBody
UpdateInvoiceJSONRequestBody defines body for UpdateInvoice for application/json ContentType.
type UpdateInvoiceLineItem ¶
type UpdateInvoiceLineItem struct {
// CustomInformation Dictionary of custom information associated with the invoice.
// The data of the object is merged with the existing values on a top level.
// Deeper levels are overwritten by the new data and not merged.
// To reset a specific attribute, set it to `null`. Yokoy treats empty values as `null`.
CustomInformation *map[string]interface{} `json:"customInformation"`
}
UpdateInvoiceLineItem defines model for UpdateInvoiceLineItem.
type UpdateInvoiceParams ¶
type UpdateInvoiceParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateInvoiceParams defines parameters for UpdateInvoice.
type UpdateInvoiceResponse ¶
type UpdateInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Invoice
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateInvoiceResponse ¶
func ParseUpdateInvoiceResponse(rsp *http.Response) (*UpdateInvoiceResponse, error)
ParseUpdateInvoiceResponse parses an HTTP response from a UpdateInvoiceWithResponse call
func (UpdateInvoiceResponse) Status ¶
func (r UpdateInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateInvoiceResponse) StatusCode ¶
func (r UpdateInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateOrgSupplierJSONRequestBody ¶
type UpdateOrgSupplierJSONRequestBody = OrganizationSupplier
UpdateOrgSupplierJSONRequestBody defines body for UpdateOrgSupplier for application/json ContentType.
type UpdateOrgSupplierParams ¶
type UpdateOrgSupplierParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateOrgSupplierParams defines parameters for UpdateOrgSupplier.
type UpdateOrgSupplierResponse ¶
type UpdateOrgSupplierResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OrganizationSupplier
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateOrgSupplierResponse ¶
func ParseUpdateOrgSupplierResponse(rsp *http.Response) (*UpdateOrgSupplierResponse, error)
ParseUpdateOrgSupplierResponse parses an HTTP response from a UpdateOrgSupplierWithResponse call
func (UpdateOrgSupplierResponse) Status ¶
func (r UpdateOrgSupplierResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateOrgSupplierResponse) StatusCode ¶
func (r UpdateOrgSupplierResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdatePOJSONRequestBody ¶
type UpdatePOJSONRequestBody = PurchaseOrder
UpdatePOJSONRequestBody defines body for UpdatePO for application/json ContentType.
type UpdatePOParams ¶
type UpdatePOParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdatePOParams defines parameters for UpdatePO.
type UpdatePOResponse ¶
type UpdatePOResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *PurchaseOrder
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdatePOResponse ¶
func ParseUpdatePOResponse(rsp *http.Response) (*UpdatePOResponse, error)
ParseUpdatePOResponse parses an HTTP response from a UpdatePOWithResponse call
func (UpdatePOResponse) Status ¶
func (r UpdatePOResponse) Status() string
Status returns HTTPResponse.Status
func (UpdatePOResponse) StatusCode ¶
func (r UpdatePOResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdatePolicyJSONRequestBody ¶
type UpdatePolicyJSONRequestBody = Policy
UpdatePolicyJSONRequestBody defines body for UpdatePolicy for application/json ContentType.
type UpdatePolicyParams ¶
type UpdatePolicyParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdatePolicyParams defines parameters for UpdatePolicy.
type UpdatePolicyResponse ¶
type UpdatePolicyResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Policy
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdatePolicyResponse ¶
func ParseUpdatePolicyResponse(rsp *http.Response) (*UpdatePolicyResponse, error)
ParseUpdatePolicyResponse parses an HTTP response from a UpdatePolicyWithResponse call
func (UpdatePolicyResponse) Status ¶
func (r UpdatePolicyResponse) Status() string
Status returns HTTPResponse.Status
func (UpdatePolicyResponse) StatusCode ¶
func (r UpdatePolicyResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTagJSONRequestBody ¶
type UpdateTagJSONRequestBody = Tag
UpdateTagJSONRequestBody defines body for UpdateTag for application/json ContentType.
type UpdateTagParams ¶
type UpdateTagParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateTagParams defines parameters for UpdateTag.
type UpdateTagResponse ¶
type UpdateTagResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Tag
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateTagResponse ¶
func ParseUpdateTagResponse(rsp *http.Response) (*UpdateTagResponse, error)
ParseUpdateTagResponse parses an HTTP response from a UpdateTagWithResponse call
func (UpdateTagResponse) Status ¶
func (r UpdateTagResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTagResponse) StatusCode ¶
func (r UpdateTagResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateTaxRateJSONBody ¶
type UpdateTaxRateJSONBody struct {
// contains filtered or unexported fields
}
UpdateTaxRateJSONBody defines parameters for UpdateTaxRate.
type UpdateTaxRateJSONRequestBody ¶
type UpdateTaxRateJSONRequestBody UpdateTaxRateJSONBody
UpdateTaxRateJSONRequestBody defines body for UpdateTaxRate for application/json ContentType.
type UpdateTaxRateParams ¶
type UpdateTaxRateParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateTaxRateParams defines parameters for UpdateTaxRate.
type UpdateTaxRateResponse ¶
type UpdateTaxRateResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *struct {
// contains filtered or unexported fields
}
JSON400 *ValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateTaxRateResponse ¶
func ParseUpdateTaxRateResponse(rsp *http.Response) (*UpdateTaxRateResponse, error)
ParseUpdateTaxRateResponse parses an HTTP response from a UpdateTaxRateWithResponse call
func (UpdateTaxRateResponse) Status ¶
func (r UpdateTaxRateResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateTaxRateResponse) StatusCode ¶
func (r UpdateTaxRateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUserJSONBody ¶
type UpdateUserJSONBody struct {
// BIC Branch Identifier Code of the user‘s bank account.
BIC *string `json:"BIC"`
// IBAN IBAN of the user‘s bank account.
IBAN *string `json:"IBAN"`
// AccountHolderName Account holder name associated with the user‘s bank account.
AccountHolderName *string `json:"accountHolderName"`
// CostCenterId Yokoy unique ID of the associated cost object.
CostCenterId *string `json:"costCenterId"`
// Created Timestamp (date and time) when the user was created. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
Created *time.Time `json:"created,omitempty"`
// Currency User's currency. Relevant when bookings are converted to the employee's currency. ISO 4217 three-letter code.
Currency *string `json:"currency"`
// CustomInformation Dictionary of custom information attributes associated with the user.
CustomInformation *map[string]string `json:"customInformation"`
// Email User's email address. Used to log into Yokoy. The email address must be unique for the organization.
Email *openapi_types.Email `json:"email"`
// EmployeeId Creditor account number of the user to be used to book any privately paid expenses. It can be a vendor account (for expenses booked on Accounts Payable) or a transit account (for General Ledger). Otherwise, this field can be used for a unique identifier.
EmployeeId string `json:"employeeId"`
// FirstName Given name or preferred name of the user.
FirstName string `json:"firstName"`
// Id Yokoy ID of the user.
Id *string `json:"id,omitempty"`
// InvitationOnCreation Send an invitation to access Yokoy to the user when created.
InvitationOnCreation *bool `json:"invitationOnCreation"`
// Language Preferred language for using Yokoy. Expressed as ISO 639 two-letter language code (except German (CH) and English (UK)).
Language *UpdateUserJSONBodyLanguage `json:"language"`
// LastModified Timestamp (date and time) when the user was last modified. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
LastModified *time.Time `json:"lastModified,omitempty"`
// LastName Family name of the user.
LastName string `json:"lastName"`
// LegalEntityId Yokoy ID of the legal entity to which the user belongs.
LegalEntityId string `json:"legalEntityId"`
// LineManagerDelegateId Yokoy unique ID of the user who can approve on behalf of the line manager.
LineManagerDelegateId *string `json:"lineManagerDelegateId"`
// LineManagerId Yokoy unique ID of the user who is the user's line manager.
LineManagerId *string `json:"lineManagerId"`
// LineManagerThreshold Approval limit in the legal entity's currency.
LineManagerThreshold *float32 `json:"lineManagerThreshold"`
// NotifyAssistant Send a notification (if enabled in Company settings) to the assistant identified in `submissionDelegateId`.
NotifyAssistant *bool `json:"notifyAssistant"`
// PolicyId Yokoy unique ID of the associated employee policy ID.
PolicyId *string `json:"policyId"`
// StatusActive Status of the user. If active, the user can log into Yokoy.
StatusActive bool `json:"statusActive"`
// SubmissionDelegateId Yokoy unique ID of the user who can act on the user's behalf as an assistant.
SubmissionDelegateId *string `json:"submissionDelegateId"`
}
UpdateUserJSONBody defines parameters for UpdateUser.
type UpdateUserJSONBodyLanguage ¶
type UpdateUserJSONBodyLanguage string
UpdateUserJSONBodyLanguage defines parameters for UpdateUser.
const ( UpdateUserJSONBodyLanguageDe UpdateUserJSONBodyLanguage = "de" UpdateUserJSONBodyLanguageDeCh UpdateUserJSONBodyLanguage = "de-ch" UpdateUserJSONBodyLanguageEn UpdateUserJSONBodyLanguage = "en" UpdateUserJSONBodyLanguageEnGb UpdateUserJSONBodyLanguage = "en-gb" UpdateUserJSONBodyLanguageEs UpdateUserJSONBodyLanguage = "es" UpdateUserJSONBodyLanguageFr UpdateUserJSONBodyLanguage = "fr" UpdateUserJSONBodyLanguageJa UpdateUserJSONBodyLanguage = "ja" UpdateUserJSONBodyLanguageNl UpdateUserJSONBodyLanguage = "nl" UpdateUserJSONBodyLanguagePl UpdateUserJSONBodyLanguage = "pl" UpdateUserJSONBodyLanguageZh UpdateUserJSONBodyLanguage = "zh" )
Defines values for UpdateUserJSONBodyLanguage.
type UpdateUserJSONRequestBody ¶
type UpdateUserJSONRequestBody UpdateUserJSONBody
UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.
type UpdateUserParams ¶
type UpdateUserParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UpdateUserParams defines parameters for UpdateUser.
type UpdateUserResponse ¶
type UpdateUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *User
JSON400 *Error
JSON401 *Unauthorized
JSON403 *Forbidden
JSON404 *NotFound
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUpdateUserResponse ¶
func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error)
ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call
func (UpdateUserResponse) Status ¶
func (r UpdateUserResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateUserResponse) StatusCode ¶
func (r UpdateUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadAiInvoiceMultipartBody ¶
type UploadAiInvoiceMultipartBody struct {
File openapi_types.File `json:"file"`
}
UploadAiInvoiceMultipartBody defines parameters for UploadAiInvoice.
type UploadAiInvoiceMultipartRequestBody ¶
type UploadAiInvoiceMultipartRequestBody UploadAiInvoiceMultipartBody
UploadAiInvoiceMultipartRequestBody defines body for UploadAiInvoice for multipart/form-data ContentType.
type UploadAiInvoiceParams ¶
type UploadAiInvoiceParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UploadAiInvoiceParams defines parameters for UploadAiInvoice.
type UploadAiInvoiceResponse ¶
type UploadAiInvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Invoice
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUploadAiInvoiceResponse ¶
func ParseUploadAiInvoiceResponse(rsp *http.Response) (*UploadAiInvoiceResponse, error)
ParseUploadAiInvoiceResponse parses an HTTP response from a UploadAiInvoiceWithResponse call
func (UploadAiInvoiceResponse) Status ¶
func (r UploadAiInvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (UploadAiInvoiceResponse) StatusCode ¶
func (r UploadAiInvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UploadEinvoiceMultipartBody ¶
type UploadEinvoiceMultipartBody struct {
// InvoiceData All e-invoice structure data, according to the selected standard.
// It can be expressed as a string as-is or as a base64 encoded version of the data to be used to create the invoice.
InvoiceData string `json:"invoiceData"`
// Pdf The PDF file to be used as the preview file for the invoice within Yokoy.
Pdf openapi_types.File `json:"pdf"`
// Standard Provides the standard format to which the invoiceData field adheres.
// `peppolBis` means the e-invoice is in UBL XML format following the Peppol BIS 3.0 specification.
Standard UploadEinvoiceMultipartBodyStandard `json:"standard"`
}
UploadEinvoiceMultipartBody defines parameters for UploadEinvoice.
type UploadEinvoiceMultipartBodyStandard ¶
type UploadEinvoiceMultipartBodyStandard string
UploadEinvoiceMultipartBodyStandard defines parameters for UploadEinvoice.
const (
PeppolBis UploadEinvoiceMultipartBodyStandard = "peppolBis"
)
Defines values for UploadEinvoiceMultipartBodyStandard.
type UploadEinvoiceMultipartRequestBody ¶
type UploadEinvoiceMultipartRequestBody UploadEinvoiceMultipartBody
UploadEinvoiceMultipartRequestBody defines body for UploadEinvoice for multipart/form-data ContentType.
type UploadEinvoiceParams ¶
type UploadEinvoiceParams struct {
XYkAuthMethod YokoyAuthMethod `json:"X-Yk-Auth-Method"`
// XYkCorrelationId Correlation ID that can be used to trace a request in the flow.
XYkCorrelationId *YokoyCorrelationId `json:"X-Yk-Correlation-Id,omitempty"`
}
UploadEinvoiceParams defines parameters for UploadEinvoice.
type UploadEinvoiceResponse ¶
type UploadEinvoiceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Invoice
JSON400 *HttpValidationError
JSON401 *Unauthorized
JSON403 *Forbidden
JSON429 *TooManyRequests
JSON500 *InternalError
JSON502 *GatewayError
JSON503 *ServiceUnavailable
}
func ParseUploadEinvoiceResponse ¶
func ParseUploadEinvoiceResponse(rsp *http.Response) (*UploadEinvoiceResponse, error)
ParseUploadEinvoiceResponse parses an HTTP response from a UploadEinvoiceWithResponse call
func (UploadEinvoiceResponse) Status ¶
func (r UploadEinvoiceResponse) Status() string
Status returns HTTPResponse.Status
func (UploadEinvoiceResponse) StatusCode ¶
func (r UploadEinvoiceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type User ¶
type User struct {
// CostCenterId Yokoy unique ID of the associated cost object.
CostCenterId *string `json:"costCenterId"`
// Created Timestamp (date and time) when the user was created. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
Created *time.Time `json:"created,omitempty"`
// Currency User's currency. Relevant when bookings are converted to the employee's currency. ISO 4217 three-letter code.
Currency *string `json:"currency"`
// CustomInformation Dictionary of custom information attributes associated with the user.
CustomInformation *map[string]string `json:"customInformation"`
// Email User's email address. Used to log into Yokoy. The email address must be unique for the organization.
Email *openapi_types.Email `json:"email"`
// EmployeeId Creditor account number of the user to be used to book any privately paid expenses. It can be a vendor account (for expenses booked on Accounts Payable) or a transit account (for General Ledger). Otherwise, this field can be used for a unique identifier.
EmployeeId string `json:"employeeId"`
// FirstName Given name or preferred name of the user.
FirstName string `json:"firstName"`
// Id Yokoy ID of the user.
Id *string `json:"id,omitempty"`
// InvitationOnCreation Send an invitation to access Yokoy to the user when created.
InvitationOnCreation *bool `json:"invitationOnCreation"`
// Language Preferred language for using Yokoy. Expressed as ISO 639 two-letter language code (except German (CH) and English (UK)).
Language *UserLanguage `json:"language"`
// LastModified Timestamp (date and time) when the user was last modified. Expressed in ISO 8601 format. Coordinated Universal Time (UTC).
LastModified *time.Time `json:"lastModified,omitempty"`
// LastName Family name of the user.
LastName string `json:"lastName"`
// LegalEntityId Yokoy ID of the legal entity to which the user belongs.
LegalEntityId string `json:"legalEntityId"`
// LineManagerDelegateId Yokoy unique ID of the user who can approve on behalf of the line manager.
LineManagerDelegateId *string `json:"lineManagerDelegateId"`
// LineManagerId Yokoy unique ID of the user who is the user's line manager.
LineManagerId *string `json:"lineManagerId"`
// LineManagerThreshold Approval limit in the legal entity's currency.
LineManagerThreshold *float32 `json:"lineManagerThreshold"`
// NotifyAssistant Send a notification (if enabled in Company settings) to the assistant identified in `submissionDelegateId`.
NotifyAssistant *bool `json:"notifyAssistant"`
// PolicyId Yokoy unique ID of the associated employee policy ID.
PolicyId *string `json:"policyId"`
// StatusActive Status of the user. If active, the user can log into Yokoy.
StatusActive bool `json:"statusActive"`
// SubmissionDelegateId Yokoy unique ID of the user who can act on the user's behalf as an assistant.
SubmissionDelegateId *string `json:"submissionDelegateId"`
}
User defines model for User.
type UserBankInformation ¶
type UserBankInformation struct {
// BIC Branch Identifier Code of the user‘s bank account.
BIC *string `json:"BIC"`
// IBAN IBAN of the user‘s bank account.
IBAN *string `json:"IBAN"`
// AccountHolderName Account holder name associated with the user‘s bank account.
AccountHolderName *string `json:"accountHolderName"`
}
UserBankInformation defines model for UserBankInformation.
type UserLanguage ¶
type UserLanguage string
UserLanguage Preferred language for using Yokoy. Expressed as ISO 639 two-letter language code (except German (CH) and English (UK)).
const ( UserLanguageDe UserLanguage = "de" UserLanguageDeCh UserLanguage = "de-ch" UserLanguageEn UserLanguage = "en" UserLanguageEnGb UserLanguage = "en-gb" UserLanguageEs UserLanguage = "es" UserLanguageFr UserLanguage = "fr" UserLanguageJa UserLanguage = "ja" UserLanguageNl UserLanguage = "nl" UserLanguagePl UserLanguage = "pl" UserLanguageZh UserLanguage = "zh" )
Defines values for UserLanguage.
type ValidationError ¶
type ValidationError = Error
ValidationError defines model for ValidationError.
type YokoyAuthMethod ¶
type YokoyAuthMethod string
YokoyAuthMethod defines model for YokoyAuthMethod.
const (
YokoyAuthMethodYokoy YokoyAuthMethod = "yokoy"
)
Defines values for YokoyAuthMethod.
type YokoyCorrelationId ¶
type YokoyCorrelationId = string
YokoyCorrelationId defines model for YokoyCorrelationId.