api

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package api 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 (
	GNAPScopes = "GNAP.Scopes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount struct {
	// AssetCode The assetCode is a code that indicates the underlying asset. An ISO4217 currency code should be used whenever possible. The ISO4217 representation of the US Dollar is USD.
	AssetCode string `json:"assetCode"`

	// AssetScale The number of decimal places that defines the scale of the smallest divisible unit for the given asset code. It determines how an integer amount is scaled to derive the actual monetary value. For example, USD has an asset scale of 2 with the smallest unit being 0.01. An integer amount of `1000` with an `assetCode` of `USD` and `assetScale` of `2` translates to $10.00.
	AssetScale int `json:"assetScale"`

	// Value The value is an unsigned 64-bit integer amount, represented as a string.
	Value string `json:"value"`
}

Amount defines model for amount.

type CompleteIncomingPaymentParams

type CompleteIncomingPaymentParams struct {
	// SignatureInput The Signature-Input field is a Dictionary structured field containing the metadata for one or more message signatures generated from components within the HTTP message.  Each member describes a single message signature.  The member's key is the label that uniquely identifies the message signature within the context of the HTTP message.  The member's value is the serialization of the covered components Inner List plus all signature metadata parameters identified by the label.  The following components MUST be included: - "@method" - "@target-uri" - "authorization".  When the message contains a request body, the covered components MUST also include the following: - "content-digest"  The keyid parameter of the signature MUST be set to the kid value of the JWK.      See [ietf-httpbis-message-signatures](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures#section-4.1) for more details.
	SignatureInput SignatureInput `json:"Signature-Input"`

	// Signature The signature generated based on the Signature-Input, using the signing algorithm specified in the "alg" field of the JWK.
	Signature Signature `json:"Signature"`
}

CompleteIncomingPaymentParams defines parameters for CompleteIncomingPayment.

type CreateIncomingPaymentJSONRequestBody

type CreateIncomingPaymentJSONRequestBody = CreateIncomingPaymentRequest

CreateIncomingPaymentJSONRequestBody defines body for CreateIncomingPayment for application/json ContentType.

type CreateIncomingPaymentParams

type CreateIncomingPaymentParams struct {
	// SignatureInput The Signature-Input field is a Dictionary structured field containing the metadata for one or more message signatures generated from components within the HTTP message.  Each member describes a single message signature.  The member's key is the label that uniquely identifies the message signature within the context of the HTTP message.  The member's value is the serialization of the covered components Inner List plus all signature metadata parameters identified by the label.  The following components MUST be included: - "@method" - "@target-uri" - "authorization".  When the message contains a request body, the covered components MUST also include the following: - "content-digest"  The keyid parameter of the signature MUST be set to the kid value of the JWK.      See [ietf-httpbis-message-signatures](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures#section-4.1) for more details.
	SignatureInput SignatureInput `json:"Signature-Input"`

	// Signature The signature generated based on the Signature-Input, using the signing algorithm specified in the "alg" field of the JWK.
	Signature Signature `json:"Signature"`
}

CreateIncomingPaymentParams defines parameters for CreateIncomingPayment.

type CreateIncomingPaymentRequest

type CreateIncomingPaymentRequest struct {
	// ExpiresAt The date and time when payments into the incoming payment must no longer be accepted.
	ExpiresAt      *time.Time `json:"expiresAt,omitempty"`
	IncomingAmount *Amount    `json:"incomingAmount,omitempty"`

	// Metadata Additional metadata associated with the incoming payment. (Optional)
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// WalletAddressSchema The URL of an Open Payments wallet address
	WalletAddressSchema WalletAddressSchema `json:"walletAddress"`
}

CreateIncomingPaymentRequest defines model for create-incoming-payment-request.

type CreateOutgoingPaymentJSONRequestBody

type CreateOutgoingPaymentJSONRequestBody = CreateOutgoingPaymentRequest

CreateOutgoingPaymentJSONRequestBody defines body for CreateOutgoingPayment for application/json ContentType.

type CreateOutgoingPaymentParams

type CreateOutgoingPaymentParams struct {
	// SignatureInput The Signature-Input field is a Dictionary structured field containing the metadata for one or more message signatures generated from components within the HTTP message.  Each member describes a single message signature.  The member's key is the label that uniquely identifies the message signature within the context of the HTTP message.  The member's value is the serialization of the covered components Inner List plus all signature metadata parameters identified by the label.  The following components MUST be included: - "@method" - "@target-uri" - "authorization".  When the message contains a request body, the covered components MUST also include the following: - "content-digest"  The keyid parameter of the signature MUST be set to the kid value of the JWK.      See [ietf-httpbis-message-signatures](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures#section-4.1) for more details.
	SignatureInput SignatureInput `json:"Signature-Input"`

	// Signature The signature generated based on the Signature-Input, using the signing algorithm specified in the "alg" field of the JWK.
	Signature Signature `json:"Signature"`
}

CreateOutgoingPaymentParams defines parameters for CreateOutgoingPayment.

type CreateOutgoingPaymentRequest

type CreateOutgoingPaymentRequest struct {
	// contains filtered or unexported fields
}

CreateOutgoingPaymentRequest defines model for create-outgoing-payment-request.

func (CreateOutgoingPaymentRequest) AsCreateOutgoingPaymentRequestFromIncomingPayment

func (t CreateOutgoingPaymentRequest) AsCreateOutgoingPaymentRequestFromIncomingPayment() (CreateOutgoingPaymentRequestFromIncomingPayment, error)

AsCreateOutgoingPaymentRequestFromIncomingPayment returns the union data inside the CreateOutgoingPaymentRequest as a CreateOutgoingPaymentRequestFromIncomingPayment

func (CreateOutgoingPaymentRequest) AsCreateOutgoingPaymentRequestFromQuote

func (t CreateOutgoingPaymentRequest) AsCreateOutgoingPaymentRequestFromQuote() (CreateOutgoingPaymentRequestFromQuote, error)

AsCreateOutgoingPaymentRequestFromQuote returns the union data inside the CreateOutgoingPaymentRequest as a CreateOutgoingPaymentRequestFromQuote

func (*CreateOutgoingPaymentRequest) FromCreateOutgoingPaymentRequestFromIncomingPayment

func (t *CreateOutgoingPaymentRequest) FromCreateOutgoingPaymentRequestFromIncomingPayment(v CreateOutgoingPaymentRequestFromIncomingPayment) error

FromCreateOutgoingPaymentRequestFromIncomingPayment overwrites any union data inside the CreateOutgoingPaymentRequest as the provided CreateOutgoingPaymentRequestFromIncomingPayment

func (*CreateOutgoingPaymentRequest) FromCreateOutgoingPaymentRequestFromQuote

func (t *CreateOutgoingPaymentRequest) FromCreateOutgoingPaymentRequestFromQuote(v CreateOutgoingPaymentRequestFromQuote) error

FromCreateOutgoingPaymentRequestFromQuote overwrites any union data inside the CreateOutgoingPaymentRequest as the provided CreateOutgoingPaymentRequestFromQuote

func (CreateOutgoingPaymentRequest) MarshalJSON

func (t CreateOutgoingPaymentRequest) MarshalJSON() ([]byte, error)

func (*CreateOutgoingPaymentRequest) MergeCreateOutgoingPaymentRequestFromIncomingPayment

func (t *CreateOutgoingPaymentRequest) MergeCreateOutgoingPaymentRequestFromIncomingPayment(v CreateOutgoingPaymentRequestFromIncomingPayment) error

MergeCreateOutgoingPaymentRequestFromIncomingPayment performs a merge with any union data inside the CreateOutgoingPaymentRequest, using the provided CreateOutgoingPaymentRequestFromIncomingPayment

func (*CreateOutgoingPaymentRequest) MergeCreateOutgoingPaymentRequestFromQuote

func (t *CreateOutgoingPaymentRequest) MergeCreateOutgoingPaymentRequestFromQuote(v CreateOutgoingPaymentRequestFromQuote) error

MergeCreateOutgoingPaymentRequestFromQuote performs a merge with any union data inside the CreateOutgoingPaymentRequest, using the provided CreateOutgoingPaymentRequestFromQuote

func (*CreateOutgoingPaymentRequest) UnmarshalJSON

func (t *CreateOutgoingPaymentRequest) UnmarshalJSON(b []byte) error

type CreateOutgoingPaymentRequestFromIncomingPayment

type CreateOutgoingPaymentRequestFromIncomingPayment struct {
	DebitAmount Amount `json:"debitAmount"`

	// IncomingPayment The URL of the incoming payment this outgoing payment will fulfill.
	IncomingPayment string `json:"incomingPayment"`

	// Metadata Additional metadata associated with the outgoing payment. (Optional)
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// WalletAddressSchema The URL of an Open Payments wallet address
	WalletAddressSchema WalletAddressSchema `json:"walletAddress"`
}

CreateOutgoingPaymentRequestFromIncomingPayment defines model for create-outgoing-payment-request-from-incoming-payment.

type CreateOutgoingPaymentRequestFromQuote

type CreateOutgoingPaymentRequestFromQuote struct {
	// Metadata Additional metadata associated with the outgoing payment. (Optional)
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// QuoteId The URL of the quote defining this payment's amounts.
	QuoteId string `json:"quoteId"`

	// WalletAddressSchema The URL of an Open Payments wallet address
	WalletAddressSchema WalletAddressSchema `json:"walletAddress"`
}

CreateOutgoingPaymentRequestFromQuote defines model for create-outgoing-payment-request-from-quote.

type CreateQuoteJSONRequestBody

type CreateQuoteJSONRequestBody = CreateQuoteRequest

CreateQuoteJSONRequestBody defines body for CreateQuote for application/json ContentType.

type CreateQuoteParams

type CreateQuoteParams struct {
	// SignatureInput The Signature-Input field is a Dictionary structured field containing the metadata for one or more message signatures generated from components within the HTTP message.  Each member describes a single message signature.  The member's key is the label that uniquely identifies the message signature within the context of the HTTP message.  The member's value is the serialization of the covered components Inner List plus all signature metadata parameters identified by the label.  The following components MUST be included: - "@method" - "@target-uri" - "authorization".  When the message contains a request body, the covered components MUST also include the following: - "content-digest"  The keyid parameter of the signature MUST be set to the kid value of the JWK.      See [ietf-httpbis-message-signatures](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures#section-4.1) for more details.
	SignatureInput SignatureInput `json:"Signature-Input"`

	// Signature The signature generated based on the Signature-Input, using the signing algorithm specified in the "alg" field of the JWK.
	Signature Signature `json:"Signature"`
}

CreateQuoteParams defines parameters for CreateQuote.

type CreateQuoteRequest

type CreateQuoteRequest struct {
	// contains filtered or unexported fields
}

CreateQuoteRequest defines model for create-quote-request.

func (CreateQuoteRequest) AsCreateQuoteRequestByReceiver

func (t CreateQuoteRequest) AsCreateQuoteRequestByReceiver() (CreateQuoteRequestByReceiver, error)

AsCreateQuoteRequestByReceiver returns the union data inside the CreateQuoteRequest as a CreateQuoteRequestByReceiver

func (CreateQuoteRequest) AsCreateQuoteRequestWithDebitAmount

func (t CreateQuoteRequest) AsCreateQuoteRequestWithDebitAmount() (CreateQuoteRequestWithDebitAmount, error)

AsCreateQuoteRequestWithDebitAmount returns the union data inside the CreateQuoteRequest as a CreateQuoteRequestWithDebitAmount

func (CreateQuoteRequest) AsCreateQuoteRequestWithReceiveAmount

func (t CreateQuoteRequest) AsCreateQuoteRequestWithReceiveAmount() (CreateQuoteRequestWithReceiveAmount, error)

AsCreateQuoteRequestWithReceiveAmount returns the union data inside the CreateQuoteRequest as a CreateQuoteRequestWithReceiveAmount

func (*CreateQuoteRequest) FromCreateQuoteRequestByReceiver

func (t *CreateQuoteRequest) FromCreateQuoteRequestByReceiver(v CreateQuoteRequestByReceiver) error

FromCreateQuoteRequestByReceiver overwrites any union data inside the CreateQuoteRequest as the provided CreateQuoteRequestByReceiver

func (*CreateQuoteRequest) FromCreateQuoteRequestWithDebitAmount

func (t *CreateQuoteRequest) FromCreateQuoteRequestWithDebitAmount(v CreateQuoteRequestWithDebitAmount) error

FromCreateQuoteRequestWithDebitAmount overwrites any union data inside the CreateQuoteRequest as the provided CreateQuoteRequestWithDebitAmount

func (*CreateQuoteRequest) FromCreateQuoteRequestWithReceiveAmount

func (t *CreateQuoteRequest) FromCreateQuoteRequestWithReceiveAmount(v CreateQuoteRequestWithReceiveAmount) error

FromCreateQuoteRequestWithReceiveAmount overwrites any union data inside the CreateQuoteRequest as the provided CreateQuoteRequestWithReceiveAmount

func (CreateQuoteRequest) MarshalJSON

func (t CreateQuoteRequest) MarshalJSON() ([]byte, error)

func (*CreateQuoteRequest) MergeCreateQuoteRequestByReceiver

func (t *CreateQuoteRequest) MergeCreateQuoteRequestByReceiver(v CreateQuoteRequestByReceiver) error

MergeCreateQuoteRequestByReceiver performs a merge with any union data inside the CreateQuoteRequest, using the provided CreateQuoteRequestByReceiver

func (*CreateQuoteRequest) MergeCreateQuoteRequestWithDebitAmount

func (t *CreateQuoteRequest) MergeCreateQuoteRequestWithDebitAmount(v CreateQuoteRequestWithDebitAmount) error

MergeCreateQuoteRequestWithDebitAmount performs a merge with any union data inside the CreateQuoteRequest, using the provided CreateQuoteRequestWithDebitAmount

func (*CreateQuoteRequest) MergeCreateQuoteRequestWithReceiveAmount

func (t *CreateQuoteRequest) MergeCreateQuoteRequestWithReceiveAmount(v CreateQuoteRequestWithReceiveAmount) error

MergeCreateQuoteRequestWithReceiveAmount performs a merge with any union data inside the CreateQuoteRequest, using the provided CreateQuoteRequestWithReceiveAmount

func (*CreateQuoteRequest) UnmarshalJSON

func (t *CreateQuoteRequest) UnmarshalJSON(b []byte) error

type CreateQuoteRequestByReceiver

type CreateQuoteRequestByReceiver struct {
	Method PaymentMethod `json:"method"`

	// Receiver The URL of the incoming payment that is being paid.
	Receiver Receiver `json:"receiver"`

	// WalletAddressSchema The URL of an Open Payments wallet address
	WalletAddressSchema WalletAddressSchema `json:"walletAddress"`
}

CreateQuoteRequestByReceiver Create quote for an `receiver` that is an Incoming Payment with an `incomingAmount`

type CreateQuoteRequestWithDebitAmount

type CreateQuoteRequestWithDebitAmount struct {
	DebitAmount Amount        `json:"debitAmount"`
	Method      PaymentMethod `json:"method"`

	// Receiver The URL of the incoming payment that is being paid.
	Receiver Receiver `json:"receiver"`

	// WalletAddressSchema The URL of an Open Payments wallet address
	WalletAddressSchema WalletAddressSchema `json:"walletAddress"`
}

CreateQuoteRequestWithDebitAmount Create a quote with a fixed-send amount

type CreateQuoteRequestWithReceiveAmount

type CreateQuoteRequestWithReceiveAmount struct {
	Method        PaymentMethod `json:"method"`
	ReceiveAmount Amount        `json:"receiveAmount"`

	// Receiver The URL of the incoming payment that is being paid.
	Receiver Receiver `json:"receiver"`

	// WalletAddressSchema The URL of an Open Payments wallet address
	WalletAddressSchema WalletAddressSchema `json:"walletAddress"`
}

CreateQuoteRequestWithReceiveAmount Create a quote with a fixed-receive amount

type Cursor

type Cursor = string

Cursor defines model for cursor.

type ErrorResponse

type ErrorResponse struct {
	Error struct {
		Code        string `json:"code"`
		Description string `json:"description"`

		// Details Additional details about the error.
		Details *map[string]interface{} `json:"details,omitempty"`
	} `json:"error"`
}

ErrorResponse defines model for error-response.

type First

type First = int

First defines model for first.

type GetIncomingPaymentParams

type GetIncomingPaymentParams struct {
	// SignatureInput The Signature-Input field is a Dictionary structured field containing the metadata for one or more message signatures generated from components within the HTTP message.  Each member describes a single message signature.  The member's key is the label that uniquely identifies the message signature within the context of the HTTP message.  The member's value is the serialization of the covered components Inner List plus all signature metadata parameters identified by the label.  The following components MUST be included: - "@method" - "@target-uri" - "authorization".  When the message contains a request body, the covered components MUST also include the following: - "content-digest"  The keyid parameter of the signature MUST be set to the kid value of the JWK.      See [ietf-httpbis-message-signatures](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures#section-4.1) for more details.
	SignatureInput *OptionalSignatureInput `json:"Signature-Input,omitempty"`

	// Signature The signature generated based on the Signature-Input, using the signing algorithm specified in the "alg" field of the JWK.
	Signature *OptionalSignature `json:"Signature,omitempty"`
}

GetIncomingPaymentParams defines parameters for GetIncomingPayment.

type GetOutgoingPaymentGrantParams

type GetOutgoingPaymentGrantParams struct {
	// SignatureInput The Signature-Input field is a Dictionary structured field containing the metadata for one or more message signatures generated from components within the HTTP message.  Each member describes a single message signature.  The member's key is the label that uniquely identifies the message signature within the context of the HTTP message.  The member's value is the serialization of the covered components Inner List plus all signature metadata parameters identified by the label.  The following components MUST be included: - "@method" - "@target-uri" - "authorization".  When the message contains a request body, the covered components MUST also include the following: - "content-digest"  The keyid parameter of the signature MUST be set to the kid value of the JWK.      See [ietf-httpbis-message-signatures](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures#section-4.1) for more details.
	SignatureInput SignatureInput `json:"Signature-Input"`

	// Signature The signature generated based on the Signature-Input, using the signing algorithm specified in the "alg" field of the JWK.
	Signature Signature `json:"Signature"`
}

GetOutgoingPaymentGrantParams defines parameters for GetOutgoingPaymentGrant.

type GetOutgoingPaymentParams

type GetOutgoingPaymentParams struct {
	// SignatureInput The Signature-Input field is a Dictionary structured field containing the metadata for one or more message signatures generated from components within the HTTP message.  Each member describes a single message signature.  The member's key is the label that uniquely identifies the message signature within the context of the HTTP message.  The member's value is the serialization of the covered components Inner List plus all signature metadata parameters identified by the label.  The following components MUST be included: - "@method" - "@target-uri" - "authorization".  When the message contains a request body, the covered components MUST also include the following: - "content-digest"  The keyid parameter of the signature MUST be set to the kid value of the JWK.      See [ietf-httpbis-message-signatures](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures#section-4.1) for more details.
	SignatureInput SignatureInput `json:"Signature-Input"`

	// Signature The signature generated based on the Signature-Input, using the signing algorithm specified in the "alg" field of the JWK.
	Signature Signature `json:"Signature"`
}

GetOutgoingPaymentParams defines parameters for GetOutgoingPayment.

type GetQuoteParams

type GetQuoteParams struct {
	// SignatureInput The Signature-Input field is a Dictionary structured field containing the metadata for one or more message signatures generated from components within the HTTP message.  Each member describes a single message signature.  The member's key is the label that uniquely identifies the message signature within the context of the HTTP message.  The member's value is the serialization of the covered components Inner List plus all signature metadata parameters identified by the label.  The following components MUST be included: - "@method" - "@target-uri" - "authorization".  When the message contains a request body, the covered components MUST also include the following: - "content-digest"  The keyid parameter of the signature MUST be set to the kid value of the JWK.      See [ietf-httpbis-message-signatures](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures#section-4.1) for more details.
	SignatureInput SignatureInput `json:"Signature-Input"`

	// Signature The signature generated based on the Signature-Input, using the signing algorithm specified in the "alg" field of the JWK.
	Signature Signature `json:"Signature"`
}

GetQuoteParams defines parameters for GetQuote.

type Id

type Id = string

Id defines model for id.

type IlpPaymentMethod

type IlpPaymentMethod struct {
	// IlpAddress The ILP address to use when establishing a STREAM connection.
	IlpAddress string `json:"ilpAddress"`

	// SharedSecret The base64 url-encoded shared secret to use when establishing a STREAM connection.
	SharedSecret string               `json:"sharedSecret"`
	Type         IlpPaymentMethodType `json:"type"`
}

IlpPaymentMethod defines model for ilp-payment-method.

type IlpPaymentMethodType

type IlpPaymentMethodType string

IlpPaymentMethodType defines model for IlpPaymentMethod.Type.

const (
	IlpPaymentMethodTypeIlp IlpPaymentMethodType = "ilp"
)

Defines values for IlpPaymentMethodType.

type IncomingPayment

type IncomingPayment struct {
	// Completed Describes whether the incoming payment has completed receiving fund.
	Completed bool `json:"completed"`

	// CreatedAt The date and time when the incoming payment was created.
	CreatedAt time.Time `json:"createdAt"`

	// ExpiresAt The date and time when payments under this incoming payment will no longer be accepted.
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`

	// Id The URL identifying the incoming payment.
	Id             *string `json:"id,omitempty"`
	IncomingAmount *Amount `json:"incomingAmount,omitempty"`

	// Metadata Additional metadata associated with the incoming payment. (Optional)
	Metadata       *map[string]interface{} `json:"metadata,omitempty"`
	ReceivedAmount Amount                  `json:"receivedAmount"`

	// WalletAddress The URL of the wallet address this payment is being made into.
	WalletAddress *string `json:"walletAddress,omitempty"`
}

IncomingPayment An **incoming payment** resource represents a payment that will be, is currently being, or has been received by the account.

type IncomingPaymentWithMethods

type IncomingPaymentWithMethods struct {
	// Completed Describes whether the incoming payment has completed receiving fund.
	Completed bool `json:"completed"`

	// CreatedAt The date and time when the incoming payment was created.
	CreatedAt time.Time `json:"createdAt"`

	// ExpiresAt The date and time when payments under this incoming payment will no longer be accepted.
	ExpiresAt *time.Time `json:"expiresAt,omitempty"`

	// Id The URL identifying the incoming payment.
	Id             *string `json:"id,omitempty"`
	IncomingAmount *Amount `json:"incomingAmount,omitempty"`

	// Metadata Additional metadata associated with the incoming payment. (Optional)
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// Methods The list of payment methods supported by this incoming payment.
	Methods        []IncomingPaymentWithMethods_Methods_Item `json:"methods"`
	ReceivedAmount Amount                                    `json:"receivedAmount"`

	// WalletAddress The URL of the wallet address this payment is being made into.
	WalletAddress *string `json:"walletAddress,omitempty"`
}

IncomingPaymentWithMethods defines model for incoming-payment-with-methods.

type IncomingPaymentWithMethods_Methods_Item

type IncomingPaymentWithMethods_Methods_Item struct {
	// contains filtered or unexported fields
}

IncomingPaymentWithMethods_Methods_Item defines model for incoming-payment-with-methods.methods.Item.

func (IncomingPaymentWithMethods_Methods_Item) AsIlpPaymentMethod

AsIlpPaymentMethod returns the union data inside the IncomingPaymentWithMethods_Methods_Item as a IlpPaymentMethod

func (*IncomingPaymentWithMethods_Methods_Item) FromIlpPaymentMethod

FromIlpPaymentMethod overwrites any union data inside the IncomingPaymentWithMethods_Methods_Item as the provided IlpPaymentMethod

func (IncomingPaymentWithMethods_Methods_Item) MarshalJSON

func (t IncomingPaymentWithMethods_Methods_Item) MarshalJSON() ([]byte, error)

func (*IncomingPaymentWithMethods_Methods_Item) MergeIlpPaymentMethod

MergeIlpPaymentMethod performs a merge with any union data inside the IncomingPaymentWithMethods_Methods_Item, using the provided IlpPaymentMethod

func (*IncomingPaymentWithMethods_Methods_Item) UnmarshalJSON

func (t *IncomingPaymentWithMethods_Methods_Item) UnmarshalJSON(b []byte) error

type Last

type Last = int

Last defines model for last.

type ListIncomingPaymentsParams

type ListIncomingPaymentsParams struct {
	// WalletAddressParam URL of a wallet address hosted by a Rafiki instance.
	WalletAddressParam WalletAddressParam `form:"wallet-address" json:"wallet-address"`

	// Cursor The cursor key to list from.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// First The number of items to return after the cursor.
	First *First `form:"first,omitempty" json:"first,omitempty"`

	// Last The number of items to return before the cursor.
	Last *Last `form:"last,omitempty" json:"last,omitempty"`

	// SignatureInput The Signature-Input field is a Dictionary structured field containing the metadata for one or more message signatures generated from components within the HTTP message.  Each member describes a single message signature.  The member's key is the label that uniquely identifies the message signature within the context of the HTTP message.  The member's value is the serialization of the covered components Inner List plus all signature metadata parameters identified by the label.  The following components MUST be included: - "@method" - "@target-uri" - "authorization".  When the message contains a request body, the covered components MUST also include the following: - "content-digest"  The keyid parameter of the signature MUST be set to the kid value of the JWK.      See [ietf-httpbis-message-signatures](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures#section-4.1) for more details.
	SignatureInput SignatureInput `json:"Signature-Input"`

	// Signature The signature generated based on the Signature-Input, using the signing algorithm specified in the "alg" field of the JWK.
	Signature Signature `json:"Signature"`
}

ListIncomingPaymentsParams defines parameters for ListIncomingPayments.

type ListOutgoingPaymentsParams

type ListOutgoingPaymentsParams struct {
	// WalletAddressParam URL of a wallet address hosted by a Rafiki instance.
	WalletAddressParam WalletAddressParam `form:"wallet-address" json:"wallet-address"`

	// Cursor The cursor key to list from.
	Cursor *Cursor `form:"cursor,omitempty" json:"cursor,omitempty"`

	// First The number of items to return after the cursor.
	First *First `form:"first,omitempty" json:"first,omitempty"`

	// Last The number of items to return before the cursor.
	Last *Last `form:"last,omitempty" json:"last,omitempty"`

	// SignatureInput The Signature-Input field is a Dictionary structured field containing the metadata for one or more message signatures generated from components within the HTTP message.  Each member describes a single message signature.  The member's key is the label that uniquely identifies the message signature within the context of the HTTP message.  The member's value is the serialization of the covered components Inner List plus all signature metadata parameters identified by the label.  The following components MUST be included: - "@method" - "@target-uri" - "authorization".  When the message contains a request body, the covered components MUST also include the following: - "content-digest"  The keyid parameter of the signature MUST be set to the kid value of the JWK.      See [ietf-httpbis-message-signatures](https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-message-signatures#section-4.1) for more details.
	SignatureInput SignatureInput `json:"Signature-Input"`

	// Signature The signature generated based on the Signature-Input, using the signing algorithm specified in the "alg" field of the JWK.
	Signature Signature `json:"Signature"`
}

ListOutgoingPaymentsParams defines parameters for ListOutgoingPayments.

type N400

type N400 = ErrorResponse

N400 defines model for 400.

type N401

type N401 = ErrorResponse

N401 defines model for 401.

type N403

type N403 = ErrorResponse

N403 defines model for 403.

type N404

type N404 = ErrorResponse

N404 defines model for 404.

type OptionalSignature

type OptionalSignature = string

OptionalSignature defines model for optional-signature.

type OptionalSignatureInput

type OptionalSignatureInput = string

OptionalSignatureInput defines model for optional-signature-input.

type OutgoingPayment

type OutgoingPayment struct {
	// CreatedAt The date and time when the outgoing payment was created.
	CreatedAt   time.Time `json:"createdAt"`
	DebitAmount Amount    `json:"debitAmount"`

	// Failed Describes whether the payment failed to send its full amount.
	Failed *bool `json:"failed,omitempty"`

	// Id The URL identifying the outgoing payment.
	Id *string `json:"id,omitempty"`

	// Metadata Additional metadata associated with the outgoing payment. (Optional)
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// QuoteId The URL of the quote defining this payment's amounts.
	QuoteId       *string `json:"quoteId,omitempty"`
	ReceiveAmount Amount  `json:"receiveAmount"`

	// Receiver The URL of the incoming payment that is being paid.
	Receiver   Receiver `json:"receiver"`
	SentAmount Amount   `json:"sentAmount"`

	// WalletAddress The URL of the wallet address from which this payment is sent.
	WalletAddress *string `json:"walletAddress,omitempty"`
}

OutgoingPayment An **outgoing payment** resource represents a payment that will be, is currently being, or has previously been, sent from the wallet address.

type OutgoingPaymentWithSpentAmounts

type OutgoingPaymentWithSpentAmounts struct {
	// CreatedAt The date and time when the outgoing payment was created.
	CreatedAt   time.Time `json:"createdAt"`
	DebitAmount Amount    `json:"debitAmount"`

	// Failed Describes whether the payment failed to send its full amount.
	Failed                  *bool   `json:"failed,omitempty"`
	GrantSpentDebitAmount   *Amount `json:"grantSpentDebitAmount,omitempty"`
	GrantSpentReceiveAmount *Amount `json:"grantSpentReceiveAmount,omitempty"`

	// Id The URL identifying the outgoing payment.
	Id *string `json:"id,omitempty"`

	// Metadata Additional metadata associated with the outgoing payment. (Optional)
	Metadata *map[string]interface{} `json:"metadata,omitempty"`

	// QuoteId The URL of the quote defining this payment's amounts.
	QuoteId       *string `json:"quoteId,omitempty"`
	ReceiveAmount Amount  `json:"receiveAmount"`

	// Receiver The URL of the incoming payment that is being paid.
	Receiver   Receiver `json:"receiver"`
	SentAmount Amount   `json:"sentAmount"`

	// WalletAddress The URL of the wallet address from which this payment is sent.
	WalletAddress *string `json:"walletAddress,omitempty"`
}

OutgoingPaymentWithSpentAmounts An **outgoing payment** resource represents a payment that will be, is currently being, or has previously been, sent from the wallet address.

type PageInfo

type PageInfo struct {
	// EndCursor Cursor corresponding to the last element in the result array.
	EndCursor *string `json:"endCursor,omitempty"`

	// HasNextPage Describes whether the data set has further entries.
	HasNextPage bool `json:"hasNextPage"`

	// HasPreviousPage Describes whether the data set has previous entries.
	HasPreviousPage bool `json:"hasPreviousPage"`

	// StartCursor Cursor corresponding to the first element in the result array.
	StartCursor *string `json:"startCursor,omitempty"`
}

PageInfo defines model for page-info.

type PaymentMethod

type PaymentMethod string

PaymentMethod defines model for payment-method.

const (
	PaymentMethodIlp PaymentMethod = "ilp"
)

Defines values for PaymentMethod.

type PublicIncomingPayment

type PublicIncomingPayment struct {
	// AuthServer The URL of the authorization server endpoint for getting grants and access tokens for this wallet address.
	AuthServer     string  `json:"authServer"`
	ReceivedAmount *Amount `json:"receivedAmount,omitempty"`
}

PublicIncomingPayment An **incoming payment** resource with public details.

type Quote

type Quote struct {
	// CreatedAt The date and time when the quote was created.
	CreatedAt   time.Time `json:"createdAt"`
	DebitAmount Amount    `json:"debitAmount"`

	// ExpiresAt The date and time when the calculated `debitAmount` is no longer valid.
	ExpiresAt *string `json:"expiresAt,omitempty"`

	// Id The URL identifying the quote.
	Id            *string       `json:"id,omitempty"`
	Method        PaymentMethod `json:"method"`
	ReceiveAmount Amount        `json:"receiveAmount"`

	// Receiver The URL of the incoming payment that is being paid.
	Receiver Receiver `json:"receiver"`

	// WalletAddress The URL of the wallet address from which this quote's payment would be sent.
	WalletAddress *string `json:"walletAddress,omitempty"`
}

Quote A **quote** resource represents the quoted amount details with which an Outgoing Payment may be created.

type Receiver

type Receiver = string

Receiver The URL of the incoming payment that is being paid.

type Signature

type Signature = string

Signature defines model for signature.

type SignatureInput

type SignatureInput = string

SignatureInput defines model for signature-input.

type WalletAddressParam

type WalletAddressParam = string

WalletAddressParam defines model for wallet-address.

type WalletAddressSchema

type WalletAddressSchema = string

WalletAddressSchema The URL of an Open Payments wallet address

Jump to

Keyboard shortcuts

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