Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EDISvc ¶
type EDISvc interface {
PullOrders(ctx context.Context, req *PullEDIOrdersRequest) (*apiresource.MessageResource, *apierror.APIError)
ResubmitInvoice(ctx context.Context, req *ResubmitEDIInvoiceRequest) (*apiresource.MessageResource, *apierror.APIError)
}
func NewEDISvc ¶
func NewEDISvc(config *EDISvcConfig) EDISvc
type EDISvcConfig ¶
type EDISvcConfig struct {
// CoreClient (required) is the core-service gRPC client.
CoreClient pb.CoreServiceClient
}
type PullEDIOrdersEndpoint ¶
type PullEDIOrdersEndpoint struct{}
Triggers EDI order intake for the target account.
func (*PullEDIOrdersEndpoint) Materialize ¶
func (e *PullEDIOrdersEndpoint) Materialize() *apiendpoint.APIEndpoint[*PullEDIOrdersRequest, *apiresource.MessageResource]
type PullEDIOrdersRequest ¶
type PullEDIOrdersRequest struct{}
Request to pull EDI orders for the target account.
func (*PullEDIOrdersRequest) SchemaExample ¶
func (*PullEDIOrdersRequest) SchemaExample() any
type ResubmitEDIInvoiceEndpoint ¶
type ResubmitEDIInvoiceEndpoint struct{}
Resubmits an invoice over EDI.
Use this to send an invoice again when its earlier EDI submission did not reach the customer.
func (*ResubmitEDIInvoiceEndpoint) Materialize ¶
func (e *ResubmitEDIInvoiceEndpoint) Materialize() *apiendpoint.APIEndpoint[*ResubmitEDIInvoiceRequest, *apiresource.MessageResource]
type ResubmitEDIInvoiceRequest ¶
type ResubmitEDIInvoiceRequest struct {
// ID of the invoice to resubmit.
InvoiceID string `json:"invoice_id" validate:"required"`
}
Request to resubmit an invoice via EDI.
func (*ResubmitEDIInvoiceRequest) SchemaExample ¶
func (*ResubmitEDIInvoiceRequest) SchemaExample() any
Click to show internal directories.
Click to hide internal directories.