receivableep

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmailReceivablesForCustomerEndpoint

type EmailReceivablesForCustomerEndpoint struct{}

Emails a statement of account for a specific customer to the provided recipients.

The email carries an Excel attachment listing the customer's outstanding receivables and its open credits, which are transactions such as payments and credit memos that still have an unapplied balance. The statement always reflects current balances; there is no cutoff date. Delivery is asynchronous: the endpoint returns `202 Accepted` once the email is queued.

type EmailReceivablesForCustomerRequest

type EmailReceivablesForCustomerRequest struct {
	// ID of the customer account the statement is prepared for.
	AccountID string `json:"-" path:"account_id" validate:"required"`
	// Email addresses to send the statement of account to.
	//
	// The statement goes only to these addresses; the customer's own notification contacts are not added.
	RecipientEmails []string `json:"recipient_emails" validate:"required,min=1"`
}

Request to email a statement of account for a specific customer.

func (*EmailReceivablesForCustomerRequest) SchemaExample

func (*EmailReceivablesForCustomerRequest) SchemaExample() any

type ExportReceivablesByCustomerEndpoint

type ExportReceivablesByCustomerEndpoint struct{}

Exports a single customer's outstanding receivable entries as a downloadable CSV file.

The response is the file itself rather than a JSON resource, and it covers every open invoice for the customer instead of one page of results. When a cutoff date is supplied, it is included in the generated file name.

type ExportReceivablesByCustomerRequest

type ExportReceivablesByCustomerRequest struct {
	// ID of the customer account whose outstanding balances are exported.
	AccountID string `json:"-" path:"account_id" validate:"required"`
	// Compute receivable balances as of this timestamp.
	//
	// Only invoices created before the cutoff are included, only payments whose funds had landed by then are subtracted from each remaining balance, and entries already settled by the cutoff drop out. When omitted, current balances are returned for every unpaid invoice.
	CutoffDate *time.Time `query:"cutoff_at"`
}

Request to export receivable entries for a specific customer as CSV.

type ListReceivablesByCustomerEndpoint

type ListReceivablesByCustomerEndpoint struct{}

Returns a paginated list of outstanding receivable entries for a single customer account, newest invoice first.

One entry is returned per invoice billed to that customer that is not marked paid in full. Invoices billed to the customer's child accounts are not included.

type ListReceivablesByCustomerRequest

type ListReceivablesByCustomerRequest struct {
	apiresource.PaginationRequest
	// ID of the customer account whose outstanding balances are listed.
	AccountID string `json:"-" path:"account_id" validate:"required"`
	// Compute receivable balances as of this timestamp.
	//
	// Only invoices created before the cutoff are included, only payments whose funds had landed by then are subtracted from each remaining balance, and entries already settled by the cutoff drop out. When omitted, current balances are returned for every unpaid invoice.
	CutoffDate *time.Time `query:"cutoff_at"`
}

Request to list receivable entries for a specific customer.

type ListReceivablesEndpoint

type ListReceivablesEndpoint struct{}

Returns a paginated list of outstanding receivable entries for the current account, newest invoice first.

One entry is returned per invoice that is not marked paid in full, across every customer. A free-text search term (`q`) is matched against the invoice number and the customer name.

type ListReceivablesRequest

type ListReceivablesRequest struct {
	apiresource.PaginationRequest
	// Compute receivable balances as of this timestamp.
	//
	// Only invoices created before the cutoff are included, only payments whose funds had landed by then are subtracted from each remaining balance, and entries already settled by the cutoff drop out. When omitted, current balances are returned for every unpaid invoice.
	CutoffDate *time.Time `query:"cutoff_at"`
}

Request to list all receivable entries.

type ReceivableSvcConfig

type ReceivableSvcConfig struct {
	// CoreClient (required) is the core-service gRPC client.
	CoreClient pb.CoreServiceClient
}

Jump to

Keyboard shortcuts

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