stub

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CtxKeyStub              = contextKey("Coinbase-Commerce-Stub")
	CtxKeyStubErrDetailResp = contextKey("Coinbase-Commerce-Stub-ErrDetailResp")
	CtxKeyStubWebhookReq    = contextKey("Coinbase-Commerce-Stub-WebhookReq")
)

Variables

This section is empty.

Functions

func CreateChargeResource

func CreateChargeResource() entity.ChargeResource

func CreateCheckoutResource

func CreateCheckoutResource() entity.CheckoutResource

func CreateErrResp

func CreateErrResp(ctx context.Context) entity.ErrResp

func CreateEventResource

func CreateEventResource() entity.EventResource

func CreateInvoiceResource

func CreateInvoiceResource() entity.InvoiceResource

func CreatePagination

func CreatePagination() entity.PaginationResp

func CreateWebhooksResource

func CreateWebhooksResource() entity.WebhookResource

func Enable

func Enable(ctx context.Context) context.Context

func GetErrDetailResp

func GetErrDetailResp(ctx context.Context) entity.ErrDetailResp

func GetWebhookReq

func GetWebhookReq(ctx context.Context) *entity.WebhookReq

func Ok

func Ok(ctx context.Context) bool

func SetErrDetailResp

func SetErrDetailResp(ctx context.Context, err entity.ErrDetailResp) context.Context

func SetWebhookReq

func SetWebhookReq(ctx context.Context, req *entity.WebhookReq) context.Context

Types

type Charges

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

func NewCharges

func NewCharges(cfg api.Config) *Charges

func (*Charges) Cancel

func (*Charges) Create

func (*Charges) List

func (*Charges) Resolve

func (*Charges) Show

type Checkouts

type Checkouts struct{}

func NewCheckouts

func NewCheckouts() *Checkouts

func (*Checkouts) Create

func (*Checkouts) Delete

func (*Checkouts) List

func (*Checkouts) Show

func (*Checkouts) Update

type Events

type Events struct{}

func NewEvents

func NewEvents() *Events

func (*Events) List

func (*Events) Show

type Invoices

type Invoices struct{}

func NewInvoices

func NewInvoices() *Invoices

func (*Invoices) Create

func (*Invoices) List

func (*Invoices) Resolve

func (*Invoices) Show

func (*Invoices) Void

type Webhooks

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

func NewWebhooks

func NewWebhooks(cfg api.Config) *Webhooks

func (*Webhooks) Register

func (w *Webhooks) Register(ctx context.Context, req *entity.WebhookReq) error

Jump to

Keyboard shortcuts

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