resources

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addon

type Addon struct {
	Request *requests.Request
}

Addon ...

func (*Addon) Delete

func (addon *Addon) Delete(addonID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Delete deletes the addon having the given addonID.

func (*Addon) Fetch

func (addon *Addon) Fetch(addonID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches addon having the given addonID.

type Card

type Card struct {
	Request *requests.Request
}

Card ...

func (*Card) Fetch

func (card *Card) Fetch(cardID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches card having the given cardID.

type Customer

type Customer struct {
	Request *requests.Request
}

Customer ...

func (*Customer) Create

func (cust *Customer) Create(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Create creates a new customer for the given data.

func (*Customer) Edit

func (cust *Customer) Edit(customerID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Edit updates the customer having the given customerID.

func (*Customer) Fetch

func (cust *Customer) Fetch(customerID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches customer having the given cutomerID.

type Invoice

type Invoice struct {
	Request *requests.Request
}

Invoice ...

func (*Invoice) All

func (inv *Invoice) All(queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches multiple invoices for the given queryParams.

func (*Invoice) Create

func (inv *Invoice) Create(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Create creates a new invoice for the given data.

func (*Invoice) Fetch

func (inv *Invoice) Fetch(invoiceID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches an invoice having the given invoiceID.

type Order

type Order struct {
	Request *requests.Request
}

Order ...

func (*Order) All

func (order *Order) All(queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches multiple orders for the given query params.

func (*Order) Create

func (order *Order) Create(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Create creates a new order for the given data

func (*Order) Edit

func (order *Order) Edit(orderID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Edit updates an order having the given orderID.

func (*Order) Fetch

func (order *Order) Fetch(orderID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches an order having the given orderID.

func (*Order) Payments

func (order *Order) Payments(orderID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Payments fetches the payments for the given orderID.

type Payment

type Payment struct {
	Request *requests.Request
}

Payment ...

func (*Payment) All

func (p *Payment) All(queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches multiple payment entities for the given queryParams.

func (*Payment) BankTransfer

func (p *Payment) BankTransfer(paymentID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

BankTransfer fetches BankTransfer associated with the given paymentID.

func (*Payment) Capture

func (p *Payment) Capture(paymentID string, amount int, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Capture captures the payment having the given paymentID.

func (*Payment) Fetch

func (p *Payment) Fetch(paymentID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches the payment entity for the given paymentID.

func (*Payment) Refund

func (p *Payment) Refund(paymentID string, amount int, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Refund initiates a refund for the given paymentID.

func (*Payment) Transfer

func (p *Payment) Transfer(paymentID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Transfer creates a transfer of the payment having the given paymentID.

func (*Payment) Transfers

func (p *Payment) Transfers(paymentID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Transfers fetches collection of all transfers associated with the given paymentID.

type PaymentLink struct {
	Request *requests.Request
}

PaymentLink ...

func (*PaymentLink) All

func (pl *PaymentLink) All(queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches multiple PaymentLink for the given queryParams.

func (*PaymentLink) Create

func (pl *PaymentLink) Create(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Create creates a new PaymentLink for the given data.

func (*PaymentLink) Fetch

func (pl *PaymentLink) Fetch(paymentLinkID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches an PaymentLink having the given paymentLinkID.

type Plan

type Plan struct {
	Request *requests.Request
}

Plan ...

func (*Plan) All

func (plan *Plan) All(queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches collection of plans for the given queryParams.

func (*Plan) Create

func (plan *Plan) Create(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Create creates a new plan for the given data.

func (*Plan) Fetch

func (plan *Plan) Fetch(planID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches the plan entity having the given planID.

type Refund

type Refund struct {
	Request *requests.Request
}

Refund ...

func (*Refund) All

func (refund *Refund) All(queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches colelction of Refund for the given queryParams

func (*Refund) Create

func (refund *Refund) Create(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Create creates a new Refund for the given data.

func (*Refund) Fetch

func (refund *Refund) Fetch(refundID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches the Refund having the given refundID.

type Subscription

type Subscription struct {
	Request *requests.Request
}

Subscription ...

func (*Subscription) All

func (s *Subscription) All(queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches collection of subscription for the given queryParams.

func (*Subscription) Cancel

func (s *Subscription) Cancel(subscriptionID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Cancel cancels a subscription having the given subscriptionID.

func (*Subscription) Create

func (s *Subscription) Create(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Create creates a new subscription for the given data.

func (*Subscription) CreateAddon

func (s *Subscription) CreateAddon(subscriptionID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

CreateAddon creates a new addon on the subscription having the given subscriptionID.

func (*Subscription) Fetch

func (s *Subscription) Fetch(subscriptionID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches a subscription having the given subscriptionID.

type Token

type Token struct {
	Request *requests.Request
}

Token ...

func (*Token) All

func (t *Token) All(customerID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches collection of tokens for associated with a customer having the given customerID.

func (*Token) Delete

func (t *Token) Delete(customerID string, tokenID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Delete deletes a token having the given tokenID associated with a customer having the given customerID.

func (*Token) Fetch

func (t *Token) Fetch(customerID string, tokenID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches a token having the given tokenID associated with a customer having the given customerID.

type Transfer

type Transfer struct {
	Request *requests.Request
}

Transfer ...

func (*Transfer) All

func (t *Transfer) All(queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches collection of transfer for the given queryParams.

func (*Transfer) Create

func (t *Transfer) Create(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Create creates a new transfer for the given data.

func (*Transfer) Edit

func (t *Transfer) Edit(transferID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Edit edits the transfer having the given transferID.

func (*Transfer) Fetch

func (t *Transfer) Fetch(transferID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches a transfer having the given transferID.

func (*Transfer) Reversals

func (t *Transfer) Reversals(transferID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Reversals fetches a collection of transfer associated with the given transferID.

func (*Transfer) Reverse

func (t *Transfer) Reverse(transferID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Reverse reverses the transfer having the given transferID.

type VirtualAccount

type VirtualAccount struct {
	Request *requests.Request
}

VirtualAccount ...

func (*VirtualAccount) All

func (v *VirtualAccount) All(queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches collection of virtual account for the given queryParams.

func (*VirtualAccount) Close

func (v *VirtualAccount) Close(virtualAccID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Close closes the virtual account having the given virtualAccID.

func (*VirtualAccount) Create

func (v *VirtualAccount) Create(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Create creates a new virtual account for the given data.

func (*VirtualAccount) Fetch

func (v *VirtualAccount) Fetch(virtualAccID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches a virtual account for the given virtualAccID.

func (*VirtualAccount) Payments

func (v *VirtualAccount) Payments(virtualAccID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Payments fetches a collection of payments associated with the virtual account having the given virtualAccID.

Jump to

Keyboard shortcuts

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