Shared request builders for QuickBooks company-scoped endpoints.
Request helpers return a struct that the shared HTTP pipeline can execute with
ExQuickbooks.request/2.
Summary
Functions
Builds a POST CDC request.
Builds a /v3/company/:realm_id/... path and appends query parameters.
Builds the company-scoped URL path for a request struct.
Builds a POST create request for a company-scoped entity endpoint.
Builds a GET request for a company-scoped entity endpoint.
Builds a POST operation request, such as void or delete.
Builds a POST query request with a plain-text QuickBooks query statement.
Builds a POST update request with operation=update.
Types
@type body_format() :: :json | :text
@type method() :: :get | :post
@type response_path() :: [String.t()] | nil
@type t() :: %ExQuickbooks.Request{ body: map() | String.t() | nil, body_format: body_format(), headers: [{String.t(), String.t()}], method: method(), path_segments: [path_segment()], query: keyword(), response_path: response_path() }
Functions
Builds a POST CDC request.
@spec company_path( ExQuickbooks.Client.t(), [path_segment()] | path_segment(), keyword() ) :: String.t()
Builds a /v3/company/:realm_id/... path and appends query parameters.
@spec company_url_path(ExQuickbooks.Client.t(), t()) :: String.t()
Builds the company-scoped URL path for a request struct.
@spec create([path_segment()] | path_segment(), map(), keyword()) :: t()
Builds a POST create request for a company-scoped entity endpoint.
@spec get( [path_segment()] | path_segment(), keyword() ) :: t()
Builds a GET request for a company-scoped entity endpoint.
@spec operation( [path_segment()] | path_segment(), String.t() | atom(), map(), keyword() ) :: t()
Builds a POST operation request, such as void or delete.
Builds a POST query request with a plain-text QuickBooks query statement.
@spec update([path_segment()] | path_segment(), map(), keyword()) :: t()
Builds a POST update request with operation=update.