paymenttermep

package
v1.1.11 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: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreatePaymentTermEndpoint

type CreatePaymentTermEndpoint struct{}

Creates a payment term.

The new term is owned by your account and starts with status `active`.

func (*CreatePaymentTermEndpoint) Materialize

type CreatePaymentTermRequest

type CreatePaymentTermRequest struct {
	// Display name (e.g. `Net 30`).
	//
	// Must be unique among the payment terms visible to your account, including system defaults.
	Name string `json:"name" validate:"required,max=255"`
}

Request to create a payment term.

func (*CreatePaymentTermRequest) SchemaExample

func (*CreatePaymentTermRequest) SchemaExample() any

type DeletePaymentTermEndpoint

type DeletePaymentTermEndpoint struct{}

Deletes a payment term.

Only payment terms created by your account can be deleted; system-owned default terms cannot be.

func (*DeletePaymentTermEndpoint) Materialize

type DeletePaymentTermRequest

type DeletePaymentTermRequest struct {
	// Payment term ID.
	PaymentTermID string `path:"id" validate:"required"`
}

Request to delete a payment term.

type ListPaymentTermsEndpoint

type ListPaymentTermsEndpoint struct{}

Returns a paginated list of payment terms.

The list includes both payment terms created by your account and OpenMRP-provided system defaults.

type ListPaymentTermsRequest

type ListPaymentTermsRequest struct {
	apiresource.PaginationRequest
}

Request to list payment terms.

type PaymentTermSvcConfig

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

type RetrievePaymentTermEndpoint

type RetrievePaymentTermEndpoint struct{}

Returns a payment term by ID.

Both payment terms created by your account and OpenMRP-provided system defaults can be retrieved.

func (*RetrievePaymentTermEndpoint) Materialize

type RetrievePaymentTermRequest

type RetrievePaymentTermRequest struct {
	// Payment term ID.
	PaymentTermID string `path:"id" validate:"required"`
}

Request to retrieve a payment term.

type UpdatePaymentTermEndpoint

type UpdatePaymentTermEndpoint struct{}

Partially updates a payment term.

Only payment terms created by your account can be updated; system-owned default terms cannot be.

func (*UpdatePaymentTermEndpoint) Materialize

type UpdatePaymentTermRequest

type UpdatePaymentTermRequest struct {
	// Payment term ID.
	PaymentTermID string `path:"id" validate:"required"`
	// New display name for the payment term.
	//
	// Must be unique among the payment terms visible to your account, including system defaults.
	Name field.Optional[string] `json:"name,omitzero" validate:"omitempty,max=255"`
}

Request to partially update a payment term.

func (*UpdatePaymentTermRequest) SchemaExample

func (*UpdatePaymentTermRequest) SchemaExample() any

Jump to

Keyboard shortcuts

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