Documentation
¶
Index ¶
- Constants
- func CreateChargeResource() entity.ChargeResource
- func CreateCheckoutResource() entity.CheckoutResource
- func CreateErrResp(ctx context.Context) entity.ErrResp
- func CreateEventResource() entity.EventResource
- func CreateInvoiceResource() entity.InvoiceResource
- func CreatePagination() entity.PaginationResp
- func CreateWebhooksResource() entity.WebhookResource
- func Enable(ctx context.Context) context.Context
- func GetErrDetailResp(ctx context.Context) entity.ErrDetailResp
- func GetWebhookReq(ctx context.Context) *entity.WebhookReq
- func Ok(ctx context.Context) bool
- func SetErrDetailResp(ctx context.Context, err entity.ErrDetailResp) context.Context
- func SetWebhookReq(ctx context.Context, req *entity.WebhookReq) context.Context
- type Charges
- func (c *Charges) Cancel(ctx context.Context, req *entity.CancelChargeReq) (*entity.CancelChargeResp, error)
- func (c *Charges) Create(ctx context.Context, req *entity.CreateChargeReq) (*entity.CreateChargeResp, error)
- func (c *Charges) List(ctx context.Context, req *entity.ListChargesReq) (*entity.ListChargesResp, error)
- func (c *Charges) Resolve(ctx context.Context, req *entity.ResolveChargeReq) (*entity.ResolveChargeResp, error)
- func (c *Charges) Show(ctx context.Context, req *entity.ShowChargeReq) (*entity.ShowChargeResp, error)
- type Checkouts
- func (c *Checkouts) Create(ctx context.Context, req *entity.CreateCheckoutReq) (*entity.CreateCheckoutResp, error)
- func (c *Checkouts) Delete(ctx context.Context, req *entity.DeleteCheckoutReq) (*entity.DeleteCheckoutResp, error)
- func (c *Checkouts) List(ctx context.Context, req *entity.ListCheckoutsReq) (*entity.ListCheckoutsResp, error)
- func (c *Checkouts) Show(ctx context.Context, req *entity.ShowCheckoutReq) (*entity.ShowCheckoutResp, error)
- func (c *Checkouts) Update(ctx context.Context, req *entity.UpdateCheckoutReq) (*entity.UpdateCheckoutResp, error)
- type Events
- type Invoices
- func (c *Invoices) Create(ctx context.Context, req *entity.CreateInvoiceReq) (*entity.CreateInvoiceResp, error)
- func (c *Invoices) List(ctx context.Context, req *entity.ListInvoicesReq) (*entity.ListInvoicesResp, error)
- func (c *Invoices) Resolve(ctx context.Context, req *entity.ResolveInvoiceReq) (*entity.ResolveInvoiceResp, error)
- func (c *Invoices) Show(ctx context.Context, req *entity.ShowInvoiceReq) (*entity.ShowInvoiceResp, error)
- func (c *Invoices) Void(ctx context.Context, req *entity.VoidInvoiceReq) (*entity.VoidInvoiceResp, error)
- type Webhooks
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 CreateEventResource ¶
func CreateEventResource() entity.EventResource
func CreateInvoiceResource ¶
func CreateInvoiceResource() entity.InvoiceResource
func CreatePagination ¶
func CreatePagination() entity.PaginationResp
func CreateWebhooksResource ¶
func CreateWebhooksResource() entity.WebhookResource
func GetErrDetailResp ¶
func GetErrDetailResp(ctx context.Context) entity.ErrDetailResp
func GetWebhookReq ¶
func GetWebhookReq(ctx context.Context) *entity.WebhookReq
func SetErrDetailResp ¶
func SetWebhookReq ¶
Types ¶
type Charges ¶
type Charges struct {
// contains filtered or unexported fields
}
func NewCharges ¶
func (*Charges) Cancel ¶
func (c *Charges) Cancel(ctx context.Context, req *entity.CancelChargeReq) (*entity.CancelChargeResp, error)
func (*Charges) Create ¶
func (c *Charges) Create(ctx context.Context, req *entity.CreateChargeReq) (*entity.CreateChargeResp, error)
func (*Charges) List ¶
func (c *Charges) List(ctx context.Context, req *entity.ListChargesReq) (*entity.ListChargesResp, error)
func (*Charges) Resolve ¶
func (c *Charges) Resolve(ctx context.Context, req *entity.ResolveChargeReq) (*entity.ResolveChargeResp, error)
func (*Charges) Show ¶
func (c *Charges) Show(ctx context.Context, req *entity.ShowChargeReq) (*entity.ShowChargeResp, error)
type Checkouts ¶
type Checkouts struct{}
func NewCheckouts ¶
func NewCheckouts() *Checkouts
func (*Checkouts) Create ¶
func (c *Checkouts) Create(ctx context.Context, req *entity.CreateCheckoutReq) (*entity.CreateCheckoutResp, error)
func (*Checkouts) Delete ¶
func (c *Checkouts) Delete(ctx context.Context, req *entity.DeleteCheckoutReq) (*entity.DeleteCheckoutResp, error)
func (*Checkouts) List ¶
func (c *Checkouts) List(ctx context.Context, req *entity.ListCheckoutsReq) (*entity.ListCheckoutsResp, error)
func (*Checkouts) Show ¶
func (c *Checkouts) Show(ctx context.Context, req *entity.ShowCheckoutReq) (*entity.ShowCheckoutResp, error)
func (*Checkouts) Update ¶
func (c *Checkouts) Update(ctx context.Context, req *entity.UpdateCheckoutReq) (*entity.UpdateCheckoutResp, error)
type Events ¶
type Events struct{}
func (*Events) List ¶
func (c *Events) List(ctx context.Context, req *entity.ListEventsReq) (*entity.ListEventsResp, error)
func (*Events) Show ¶
func (c *Events) Show(ctx context.Context, req *entity.ShowEventReq) (*entity.ShowEventResp, error)
type Invoices ¶
type Invoices struct{}
func NewInvoices ¶
func NewInvoices() *Invoices
func (*Invoices) Create ¶
func (c *Invoices) Create(ctx context.Context, req *entity.CreateInvoiceReq) (*entity.CreateInvoiceResp, error)
func (*Invoices) List ¶
func (c *Invoices) List(ctx context.Context, req *entity.ListInvoicesReq) (*entity.ListInvoicesResp, error)
func (*Invoices) Resolve ¶
func (c *Invoices) Resolve(ctx context.Context, req *entity.ResolveInvoiceReq) (*entity.ResolveInvoiceResp, error)
func (*Invoices) Show ¶
func (c *Invoices) Show(ctx context.Context, req *entity.ShowInvoiceReq) (*entity.ShowInvoiceResp, error)
func (*Invoices) Void ¶
func (c *Invoices) Void(ctx context.Context, req *entity.VoidInvoiceReq) (*entity.VoidInvoiceResp, error)
Click to show internal directories.
Click to hide internal directories.