payments

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package payments provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.0 DO NOT EDIT.

Index

Constants

View Source
const (
	OAuthScopes = "OAuth.Scopes"
)

Variables

This section is empty.

Functions

func NewGetPaymentAccountAccountNumberRequest

func NewGetPaymentAccountAccountNumberRequest(server string, accountNumber string, params *GetPaymentAccountAccountNumberParams) (*http.Request, error)

NewGetPaymentAccountAccountNumberRequest generates requests for GetPaymentAccountAccountNumber

func NewPostPaymentsPaymentAuthorizationRequest

func NewPostPaymentsPaymentAuthorizationRequest(server string, body PostPaymentsPaymentAuthorizationJSONRequestBody) (*http.Request, error)

NewPostPaymentsPaymentAuthorizationRequest calls the generic PostPaymentsPaymentAuthorization builder with application/json body

func NewPostPaymentsPaymentAuthorizationRequestWithBody

func NewPostPaymentsPaymentAuthorizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewPostPaymentsPaymentAuthorizationRequestWithBody generates requests for PostPaymentsPaymentAuthorization with any type of body

Types

type CRID

type CRID = string

CRID A Customer Registration Identification number (CRID) is a USPS-generated numeric code that uniquely identifies a business at a location.

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) GetPaymentAccountAccountNumber

func (c *Client) GetPaymentAccountAccountNumber(ctx context.Context, accountNumber string, params *GetPaymentAccountAccountNumberParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPaymentsPaymentAuthorization

func (c *Client) PostPaymentsPaymentAuthorization(ctx context.Context, body PostPaymentsPaymentAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostPaymentsPaymentAuthorizationWithBody

func (c *Client) PostPaymentsPaymentAuthorizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetPaymentAccountAccountNumber request
	GetPaymentAccountAccountNumber(ctx context.Context, accountNumber string, params *GetPaymentAccountAccountNumberParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// PostPaymentsPaymentAuthorizationWithBody request with any body
	PostPaymentsPaymentAuthorizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	PostPaymentsPaymentAuthorization(ctx context.Context, body PostPaymentsPaymentAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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) GetPaymentAccountAccountNumberWithResponse

func (c *ClientWithResponses) GetPaymentAccountAccountNumberWithResponse(ctx context.Context, accountNumber string, params *GetPaymentAccountAccountNumberParams, reqEditors ...RequestEditorFn) (*GetPaymentAccountAccountNumberResponse, error)

GetPaymentAccountAccountNumberWithResponse request returning *GetPaymentAccountAccountNumberResponse

func (*ClientWithResponses) PostPaymentsPaymentAuthorizationWithBodyWithResponse

func (c *ClientWithResponses) PostPaymentsPaymentAuthorizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPaymentsPaymentAuthorizationResponse, error)

PostPaymentsPaymentAuthorizationWithBodyWithResponse request with arbitrary body returning *PostPaymentsPaymentAuthorizationResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetPaymentAccountAccountNumberWithResponse request
	GetPaymentAccountAccountNumberWithResponse(ctx context.Context, accountNumber string, params *GetPaymentAccountAccountNumberParams, reqEditors ...RequestEditorFn) (*GetPaymentAccountAccountNumberResponse, error)

	// PostPaymentsPaymentAuthorizationWithBodyWithResponse request with any body
	PostPaymentsPaymentAuthorizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostPaymentsPaymentAuthorizationResponse, error)

	PostPaymentsPaymentAuthorizationWithResponse(ctx context.Context, body PostPaymentsPaymentAuthorizationJSONRequestBody, reqEditors ...RequestEditorFn) (*PostPaymentsPaymentAuthorizationResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type ErrorMessage

type ErrorMessage struct {
	// ApiVersion The version of the API that was used and that raised the error.
	ApiVersion *string `json:"apiVersion,omitempty"`

	// Error The high-level error that has occurred as indicated by the status code.
	Error                *ErrorMessage_Error    `json:"error,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ErrorMessage Standard error message response.

func (ErrorMessage) Get

func (a ErrorMessage) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ErrorMessage. Returns the specified element and whether it was found

func (ErrorMessage) MarshalJSON

func (a ErrorMessage) MarshalJSON() ([]byte, error)

Override default JSON handling for ErrorMessage to handle AdditionalProperties

func (*ErrorMessage) Set

func (a *ErrorMessage) Set(fieldName string, value interface{})

Setter for additional properties for ErrorMessage

func (*ErrorMessage) UnmarshalJSON

func (a *ErrorMessage) UnmarshalJSON(b []byte) error

Override default JSON handling for ErrorMessage to handle AdditionalProperties

type ErrorMessage_Error

type ErrorMessage_Error struct {
	// Code The error status code that has been returned in response to the request.
	Code   *string                           `json:"code,omitempty"`
	Errors *[]ErrorMessage_Error_Errors_Item `json:"errors,omitempty"`

	// Message A human-readable message describing the error.
	Message              *string                `json:"message,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ErrorMessage_Error The high-level error that has occurred as indicated by the status code.

func (ErrorMessage_Error) Get

func (a ErrorMessage_Error) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ErrorMessage_Error. Returns the specified element and whether it was found

func (ErrorMessage_Error) MarshalJSON

func (a ErrorMessage_Error) MarshalJSON() ([]byte, error)

Override default JSON handling for ErrorMessage_Error to handle AdditionalProperties

func (*ErrorMessage_Error) Set

func (a *ErrorMessage_Error) Set(fieldName string, value interface{})

Setter for additional properties for ErrorMessage_Error

func (*ErrorMessage_Error) UnmarshalJSON

func (a *ErrorMessage_Error) UnmarshalJSON(b []byte) error

Override default JSON handling for ErrorMessage_Error to handle AdditionalProperties

type ErrorMessage_Error_Errors_Item

type ErrorMessage_Error_Errors_Item struct {
	// Code An internal subordinate code used for error diagnosis.
	Code *string `json:"code,omitempty"`

	// Detail A human-readable description of the error that occurred.
	Detail *string `json:"detail,omitempty"`

	// Source The element that is suspected of originating the error.  Helps to pinpoint the problem.
	Source *ErrorMessage_Error_Errors_Source `json:"source,omitempty"`

	// Status The status code response returned to the client.
	Status *string `json:"status,omitempty"`

	// Title A human-readable title that identifies the error.
	Title                *string                `json:"title,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ErrorMessage_Error_Errors_Item defines model for ErrorMessage.Error.Errors.Item.

func (ErrorMessage_Error_Errors_Item) Get

func (a ErrorMessage_Error_Errors_Item) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ErrorMessage_Error_Errors_Item. Returns the specified element and whether it was found

func (ErrorMessage_Error_Errors_Item) MarshalJSON

func (a ErrorMessage_Error_Errors_Item) MarshalJSON() ([]byte, error)

Override default JSON handling for ErrorMessage_Error_Errors_Item to handle AdditionalProperties

func (*ErrorMessage_Error_Errors_Item) Set

func (a *ErrorMessage_Error_Errors_Item) Set(fieldName string, value interface{})

Setter for additional properties for ErrorMessage_Error_Errors_Item

func (*ErrorMessage_Error_Errors_Item) UnmarshalJSON

func (a *ErrorMessage_Error_Errors_Item) UnmarshalJSON(b []byte) error

Override default JSON handling for ErrorMessage_Error_Errors_Item to handle AdditionalProperties

type ErrorMessage_Error_Errors_Source

type ErrorMessage_Error_Errors_Source struct {
	// Example An example of a valid value for the input parameter.
	Example *string `json:"example,omitempty"`

	// Parameter The input in the request which caused an error.
	Parameter            *string                `json:"parameter,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

ErrorMessage_Error_Errors_Source The element that is suspected of originating the error. Helps to pinpoint the problem.

func (ErrorMessage_Error_Errors_Source) Get

func (a ErrorMessage_Error_Errors_Source) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for ErrorMessage_Error_Errors_Source. Returns the specified element and whether it was found

func (ErrorMessage_Error_Errors_Source) MarshalJSON

func (a ErrorMessage_Error_Errors_Source) MarshalJSON() ([]byte, error)

Override default JSON handling for ErrorMessage_Error_Errors_Source to handle AdditionalProperties

func (*ErrorMessage_Error_Errors_Source) Set

func (a *ErrorMessage_Error_Errors_Source) Set(fieldName string, value interface{})

Setter for additional properties for ErrorMessage_Error_Errors_Source

func (*ErrorMessage_Error_Errors_Source) UnmarshalJSON

func (a *ErrorMessage_Error_Errors_Source) UnmarshalJSON(b []byte) error

Override default JSON handling for ErrorMessage_Error_Errors_Source to handle AdditionalProperties

type GetPaymentAccountAccountNumberParams

type GetPaymentAccountAccountNumberParams struct {
	// AccountType The type of payment account either Electronic Payment System account or Permit.
	AccountType GetPaymentAccountAccountNumberParamsAccountType `form:"accountType" json:"accountType"`

	// PermitZIPCode The ZIP Code™ associated to the permit number.  This value is required when the account-type is 'PERMIT'.
	PermitZIPCode *string `form:"permitZIPCode,omitempty" json:"permitZIPCode,omitempty"`

	// Amount If amount is supplied, the account will be checked to see if there are sufficient funds at present to process a payment transaction for that amount.
	Amount *float32 `form:"amount,omitempty" json:"amount,omitempty"`
}

GetPaymentAccountAccountNumberParams defines parameters for GetPaymentAccountAccountNumber.

type GetPaymentAccountAccountNumberParamsAccountType

type GetPaymentAccountAccountNumberParamsAccountType string

GetPaymentAccountAccountNumberParamsAccountType defines parameters for GetPaymentAccountAccountNumber.

Defines values for GetPaymentAccountAccountNumberParamsAccountType.

type GetPaymentAccountAccountNumberResponse

type GetPaymentAccountAccountNumberResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *PaymentAccount
	XML200       *PaymentAccount
	JSON400      *ErrorMessage
	XML400       *ErrorMessage
	JSON401      *ErrorMessage
	XML401       *ErrorMessage
	JSON403      *ErrorMessage
	XML403       *ErrorMessage
	JSON404      *ErrorMessage
	XML404       *ErrorMessage
	JSON429      *ErrorMessage
	XML429       *ErrorMessage
	JSON503      *ErrorMessage
	XML503       *ErrorMessage
}

func ParseGetPaymentAccountAccountNumberResponse

func ParseGetPaymentAccountAccountNumberResponse(rsp *http.Response) (*GetPaymentAccountAccountNumberResponse, error)

ParseGetPaymentAccountAccountNumberResponse parses an HTTP response from a GetPaymentAccountAccountNumberWithResponse call

func (GetPaymentAccountAccountNumberResponse) Status

Status returns HTTPResponse.Status

func (GetPaymentAccountAccountNumberResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type MID

type MID = string

MID The Mailer Identifier (MID) is a field within the Intelligent Mail barcode that is used to identify mailers. MIDs are assigned by the USPS® to a Mail Owner, Mailing Agent or other service providers who request them.

type ManifestMID

type ManifestMID = string

ManifestMID The unique mailer identifier designated for the manifest.

type Parties

type Parties struct {
	// PaymentAuthorizationToken The Payment Authorization Token is used in the labels and international-labels API calls to authorize payment, NSA contract Rates, and label MID ranges.
	PaymentAuthorizationToken *string `json:"paymentAuthorizationToken,omitempty"`

	// Roles Each Role represents a participant in the transaction and must only be used once.  The `LABEL_OWNER` Role must be specified. The `PAYER` role must be specified, unless following the PC Postage flow.
	Roles                []Role                 `json:"roles"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Parties This block identifies all interested parties involved in transaction.

func (Parties) Get

func (a Parties) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Parties. Returns the specified element and whether it was found

func (Parties) MarshalJSON

func (a Parties) MarshalJSON() ([]byte, error)

Override default JSON handling for Parties to handle AdditionalProperties

func (*Parties) Set

func (a *Parties) Set(fieldName string, value interface{})

Setter for additional properties for Parties

func (*Parties) UnmarshalJSON

func (a *Parties) UnmarshalJSON(b []byte) error

Override default JSON handling for Parties to handle AdditionalProperties

type PaymentAccount

type PaymentAccount struct {
	// AccountNumber The Enterprise Payment Account number or PC Postage meter number to use for payment. Required when `accountType` is `EPS` or `METER`.
	AccountNumber *string `json:"accountNumber,omitempty"`

	// AccountType The type of payment account.  METER pricing is only available to PC Postage providers.
	AccountType *PaymentAccountAccountType `json:"accountType,omitempty"`

	// NonProfitStatus This status is applicable only for permits and indicates whether the permit has been issued to a non-profit organization.
	NonProfitStatus *bool `json:"nonProfitStatus,omitempty"`

	// PermitNumber The permit number or Federal Agency Number to use for payment. Required when `accountType` is `PERMIT` or `OMAS`.
	PermitNumber *string `json:"permitNumber,omitempty"`

	// PermitZIP The ZIP Code™ associated to the permit number. Required when `accountType` is `PERMIT` or `OMAS`.
	PermitZIP *string `json:"permitZIP,omitempty"`

	// SufficientFunds This attribute is relevant only when an amount parameter is provided, and it informs the API caller whether the payment account holds sufficient funds to process the payment.
	SufficientFunds      *bool                  `json:"sufficientFunds,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

PaymentAccount Payment account information.

func (PaymentAccount) Get

func (a PaymentAccount) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for PaymentAccount. Returns the specified element and whether it was found

func (PaymentAccount) MarshalJSON

func (a PaymentAccount) MarshalJSON() ([]byte, error)

Override default JSON handling for PaymentAccount to handle AdditionalProperties

func (*PaymentAccount) Set

func (a *PaymentAccount) Set(fieldName string, value interface{})

Setter for additional properties for PaymentAccount

func (*PaymentAccount) UnmarshalJSON

func (a *PaymentAccount) UnmarshalJSON(b []byte) error

Override default JSON handling for PaymentAccount to handle AdditionalProperties

type PaymentAccountAccountType

type PaymentAccountAccountType string

PaymentAccountAccountType The type of payment account. METER pricing is only available to PC Postage providers.

const (
	PaymentAccountAccountTypeEPS    PaymentAccountAccountType = "EPS"
	PaymentAccountAccountTypeMETER  PaymentAccountAccountType = "METER"
	PaymentAccountAccountTypeOMAS   PaymentAccountAccountType = "OMAS"
	PaymentAccountAccountTypePERMIT PaymentAccountAccountType = "PERMIT"
)

Defines values for PaymentAccountAccountType.

type PostPaymentsPaymentAuthorizationJSONRequestBody

type PostPaymentsPaymentAuthorizationJSONRequestBody = Parties

PostPaymentsPaymentAuthorizationJSONRequestBody defines body for PostPaymentsPaymentAuthorization for application/json ContentType.

type PostPaymentsPaymentAuthorizationResponse

type PostPaymentsPaymentAuthorizationResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Parties
	XML200       *Parties
	JSON400      *ErrorMessage
	XML400       *ErrorMessage
	JSON401      *ErrorMessage
	XML401       *ErrorMessage
	JSON403      *ErrorMessage
	XML403       *ErrorMessage
	JSON429      *ErrorMessage
	XML429       *ErrorMessage
	JSON503      *ErrorMessage
	XML503       *ErrorMessage
}

func ParsePostPaymentsPaymentAuthorizationResponse

func ParsePostPaymentsPaymentAuthorizationResponse(rsp *http.Response) (*PostPaymentsPaymentAuthorizationResponse, error)

ParsePostPaymentsPaymentAuthorizationResponse parses an HTTP response from a PostPaymentsPaymentAuthorizationWithResponse call

func (PostPaymentsPaymentAuthorizationResponse) Status

Status returns HTTPResponse.Status

func (PostPaymentsPaymentAuthorizationResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type Role

type Role struct {
	// CRID A Customer Registration Identification number (CRID) is a USPS-generated numeric code that uniquely identifies a business at a location.
	CRID *CRID `json:"CRID,omitempty"`

	// MID The Mailer Identifier (MID) is a field within the Intelligent Mail barcode that is used to identify mailers. MIDs are assigned by the USPS® to a Mail Owner, Mailing Agent or other service providers who request them.
	MID *MID `json:"MID,omitempty"`

	// AccountNumber The Enterprise Payment Account number or PC Postage meter number to use for payment. Required when `accountType` is `EPS` or `METER`.
	AccountNumber *string `json:"accountNumber,omitempty"`

	// AccountType The type of payment account.  METER pricing is only available to PC Postage providers.
	AccountType *RoleAccountType `json:"accountType,omitempty"`

	// ManifestMID The unique mailer identifier designated for the manifest.
	ManifestMID *ManifestMID `json:"manifestMID,omitempty"`

	// NonProfitStatus This status is applicable only for permits and indicates whether the permit has been issued to a non-profit organization.
	NonProfitStatus *bool `json:"nonProfitStatus,omitempty"`

	// PermitNumber The permit number or Federal Agency Number to use for payment. Required when `accountType` is `PERMIT` or `OMAS`.
	PermitNumber *string `json:"permitNumber,omitempty"`

	// PermitZIP The ZIP Code™ associated to the permit number. Required when `accountType` is `PERMIT` or `OMAS`.
	PermitZIP *string `json:"permitZIP,omitempty"`

	// RoleName * PAYER - Payer of the Postage
	//
	// * RATE_HOLDER - Owner of the Contracted Postage Rates
	//
	// * LABEL_OWNER - Party supplying Label MIDs used for generating tracking numbers printed on physical label
	//
	// * SHIPPER - Party entering package into the mailstream
	//
	// * PLATFORM - Platform used
	//
	// * RETURN_LABEL_PAYER - Payer of the Postage for the return label in a combined outbound/return request. Optional if outbound and return label payer are the same.
	//
	// * RETURN_LABEL_RATE_HOLDER - Owner of the Contracted Postage Rates for the return label in a combined outbound/return request. Optional if outbound and return label rate holder are the same.
	//
	// * RETURN_LABEL_OWNER - Party supplying Label MIDs used for generating tracking numbers printed on physical label for the return label in a combined outbound/return request. Optional if outbound and return label owner are the same.
	//
	// * MAIL_OWNER - This role is used to specify who owns the package contents. When using the MAIL_OWNER role, the CRID must be specified.  This does not populate the mail owner field in the D1 record of the Shipping Service File (SSF).  Please use the `packageDescription.mailerOwnerMID` field to populate the D1 field.
	//
	// * LABEL_PROVIDER - This role is used to specify the label provider for the transaction. When using the LABEL_PROVIDER role, the CRID, accountNumber, and accountType must be specified and the only supported accountType is 'EPS'. The accountNumber must be active in the Enterprise Payment System (EPS).
	RoleName *RoleRoleName `json:"roleName,omitempty"`

	// SufficientFunds This attribute is relevant only when an amount parameter is provided, and it informs the API caller whether the payment account holds sufficient funds to process the payment.
	SufficientFunds      *bool                  `json:"sufficientFunds,omitempty"`
	AdditionalProperties map[string]interface{} `json:"-"`
}

Role defines model for Role.

func (Role) Get

func (a Role) Get(fieldName string) (value interface{}, found bool)

Getter for additional properties for Role. Returns the specified element and whether it was found

func (Role) MarshalJSON

func (a Role) MarshalJSON() ([]byte, error)

Override default JSON handling for Role to handle AdditionalProperties

func (*Role) Set

func (a *Role) Set(fieldName string, value interface{})

Setter for additional properties for Role

func (*Role) UnmarshalJSON

func (a *Role) UnmarshalJSON(b []byte) error

Override default JSON handling for Role to handle AdditionalProperties

type RoleAccountType

type RoleAccountType string

RoleAccountType The type of payment account. METER pricing is only available to PC Postage providers.

const (
	RoleAccountTypeEPS    RoleAccountType = "EPS"
	RoleAccountTypeMETER  RoleAccountType = "METER"
	RoleAccountTypeOMAS   RoleAccountType = "OMAS"
	RoleAccountTypePERMIT RoleAccountType = "PERMIT"
)

Defines values for RoleAccountType.

type RoleRoleName

type RoleRoleName string

RoleRoleName * PAYER - Payer of the Postage

* RATE_HOLDER - Owner of the Contracted Postage Rates

* LABEL_OWNER - Party supplying Label MIDs used for generating tracking numbers printed on physical label

* SHIPPER - Party entering package into the mailstream

* PLATFORM - Platform used

* RETURN_LABEL_PAYER - Payer of the Postage for the return label in a combined outbound/return request. Optional if outbound and return label payer are the same.

* RETURN_LABEL_RATE_HOLDER - Owner of the Contracted Postage Rates for the return label in a combined outbound/return request. Optional if outbound and return label rate holder are the same.

* RETURN_LABEL_OWNER - Party supplying Label MIDs used for generating tracking numbers printed on physical label for the return label in a combined outbound/return request. Optional if outbound and return label owner are the same.

* MAIL_OWNER - This role is used to specify who owns the package contents. When using the MAIL_OWNER role, the CRID must be specified. This does not populate the mail owner field in the D1 record of the Shipping Service File (SSF). Please use the `packageDescription.mailerOwnerMID` field to populate the D1 field.

* LABEL_PROVIDER - This role is used to specify the label provider for the transaction. When using the LABEL_PROVIDER role, the CRID, accountNumber, and accountType must be specified and the only supported accountType is 'EPS'. The accountNumber must be active in the Enterprise Payment System (EPS).

const (
	LABELOWNER            RoleRoleName = "LABEL_OWNER"
	LABELPROVIDER         RoleRoleName = "LABEL_PROVIDER"
	MAILOWNER             RoleRoleName = "MAIL_OWNER"
	PAYER                 RoleRoleName = "PAYER"
	PLATFORM              RoleRoleName = "PLATFORM"
	RATEHOLDER            RoleRoleName = "RATE_HOLDER"
	RETURNLABELOWNER      RoleRoleName = "RETURN_LABEL_OWNER"
	RETURNLABELPAYER      RoleRoleName = "RETURN_LABEL_PAYER"
	RETURNLABELRATEHOLDER RoleRoleName = "RETURN_LABEL_RATE_HOLDER"
	SHIPPER               RoleRoleName = "SHIPPER"
)

Defines values for RoleRoleName.

Jump to

Keyboard shortcuts

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