resources

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account added in v1.2.0

type Account struct {
	Request *requests.Request
}

Account ...

func (*Account) Create added in v1.2.0

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

Create creates a new account for the given data.

func (*Account) Delete added in v1.2.0

func (acc *Account) Delete(accountId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Delete deletes the account having the given accountId.

func (*Account) Edit added in v1.2.0

func (acc *Account) Edit(accountId string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Edit updates the account having the given accountId.

func (*Account) Fetch added in v1.2.0

func (acc *Account) Fetch(accountId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches account having the given accountId.

func (*Account) FetchAccountDoc added in v1.2.0

func (acc *Account) FetchAccountDoc(accountId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

FetchAccountDoc fetches the account documents.

func (*Account) UploadAccountDoc added in v1.2.0

func (acc *Account) UploadAccountDoc(accountId string, params requests.FileUploadParams, extraHeaders map[string]string) (map[string]interface{}, error)

UploadAccountDoc upload the account documents.

type Addon

type Addon struct {
	Request *requests.Request
}

Addon ...

func (*Addon) All

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

All fetches collection of addon for the given queryParams.

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.

func (*Card) RequestCardReference added in v1.2.0

func (card *Card) RequestCardReference(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

type Customer

type Customer struct {
	Request *requests.Request
}

Customer ...

func (*Customer) AddBankAccount added in v1.3.2

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

func (*Customer) All

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

All fetches collection of customer for the given queryParams.

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) DeleteBankAccount added in v1.3.2

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

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.

func (*Customer) FetchEligibility added in v1.3.2

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

func (*Customer) RequestEligibilityCheck added in v1.3.2

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

type Dispute added in v1.3.2

type Dispute struct {
	Request *requests.Request
}

Dispute ...

func (*Dispute) Accept added in v1.3.2

func (acc *Dispute) Accept(disputeId string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

func (*Dispute) All added in v1.3.2

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

func (*Dispute) Contest added in v1.3.2

func (acc *Dispute) Contest(disputeId string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

func (*Dispute) Fetch added in v1.3.2

func (acc *Dispute) Fetch(disputeId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

type Document added in v1.3.2

type Document struct {
	Request *requests.Request
}

Document ...

func (*Document) Create added in v1.3.2

func (doc *Document) Create(params requests.FileUploadParams, extraHeaders map[string]string) (map[string]interface{}, error)

Create a Document

func (*Document) Fetch added in v1.3.2

func (doc *Document) Fetch(documentId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch document by given documentId.

type FundAccount

type FundAccount struct {
	Request *requests.Request
}

FundAccount ...

func (*FundAccount) All

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

All fetches collection of fund accounts for the given queryParams.

func (*FundAccount) Create

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

Create creates a fund account for the given data.

type Iin added in v1.2.0

type Iin struct {
	Request *requests.Request
}

Iin ...

func (*Iin) All added in v1.3.2

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

func (*Iin) Fetch added in v1.2.0

func (i *Iin) Fetch(tokenIin string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

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

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

Cancel cancels a invoice having the given invoiceID.

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 (s *Invoice) CreateRegistrationLink(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

CreateRegistrationLink creates a registration link

func (*Invoice) Delete

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

Delete delete a draft invoice having the given invoiceID.

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.

func (*Invoice) Issue

func (s *Invoice) Issue(invoiceID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Issue issue an invoice having the given invoiceID.

func (*Invoice) Notify

func (s *Invoice) Notify(invoiceID string, medium string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Notify notify to customer via email or sms by the given invoiceID.

func (*Invoice) Update

func (s *Invoice) Update(invoiceID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Update updates the invoice having the given invoiceID.

type Item

type Item struct {
	Request *requests.Request
}

Item ...

func (*Item) All

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

All fetches collection of items for the given queryParams.

func (*Item) Create

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

Create creates a new item for the given data.

func (*Item) Delete

func (item *Item) Delete(itemID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Delete deletes an item having the given itemID.

func (*Item) Fetch

func (item *Item) Fetch(itemID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches an item having the given itemID.

func (*Item) Update

func (item *Item) Update(itemID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Update updates an item for the given data.

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) EditFulfillment added in v1.3.2

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

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.

func (*Order) Update

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

Update updates an order having the given orderID.

func (*Order) ViewRtoReview added in v1.3.2

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

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

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

CreatePaymentJson creates a json payment for the given data.

func (*Payment) CreateRecurringPayment

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

CreateRecurringPayment creates a recurring payment for the given data.

func (*Payment) CreateUpi

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

func (*Payment) Edit

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

Edit updates 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) FetchCardDetails

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

FetchCardDetails fetches card details with the given paymentID.

func (*Payment) FetchMethods

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

func (*Payment) FetchMultipleRefund

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

FetchMultipleRefund fetches multiple refunds details with the given paymentID.

func (*Payment) FetchPaymentDowntime

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

FetchPaymentDowntime fetches downtime details.

func (*Payment) FetchPaymentDowntimeById

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

FetchPaymentDowntimeById fetches downtime details with the given downtimeID.

func (*Payment) FetchRefund

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

FetchRefund fetches refund detail with the given paymentId and refundId

func (*Payment) OtpGenerate

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

func (*Payment) OtpResend

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

func (*Payment) OtpSubmit

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

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.

func (*Payment) ValidateVpa

func (p *Payment) ValidateVpa(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)
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) Cancel

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

Cancel cancels paymentLink

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.

func (*PaymentLink) NotifyBy

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

NotifyBy Send/re-send notification by given medium

func (*PaymentLink) Update

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

Edit updates the paymentLink for the given data.

type Payout added in v1.3.3

type Payout struct {
	Request *requests.Request
}

Payout represents the payout resource

func (*Payout) All added in v1.3.3

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

All fetches multiple payouts for the given query params

func (*Payout) Fetch added in v1.3.3

func (payout *Payout) Fetch(id string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches a payout having the given payoutID

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 Product added in v1.2.0

type Product struct {
	Request *requests.Request
}

Product ...

func (*Product) Edit added in v1.2.0

func (prod *Product) Edit(accountId string, productId string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Edit updates the product's configuration.

func (*Product) Fetch added in v1.2.0

func (prod *Product) Fetch(accountId string, productId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches the details of a product.

func (*Product) FetchTnc added in v1.2.0

func (prod *Product) FetchTnc(productname string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

FetchTnc fetches the terms and conditions.

func (*Product) RequestProductConfiguration added in v1.2.0

func (prod *Product) RequestProductConfiguration(accountId string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

RequestProductConfiguration creates a request for a product configuration for the given data.

type QrCode

type QrCode struct {
	Request *requests.Request
}

QrCode ...

func (*QrCode) All

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

All fetches collection of QrCode for the given queryParams.

func (*QrCode) Close

func (q *QrCode) Close(QrCodeID string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Close close a QrCode for the given QrCodeID.

func (*QrCode) Create

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

Create creates a new qrcode for the given data.

func (*QrCode) Fetch

func (q *QrCode) Fetch(QrCodeID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches the QrCode entity having the given QrCodeID.

func (*QrCode) FetchPayments

func (q *QrCode) FetchPayments(QrCodeID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches the qrcode entity having the given QrCodeID.

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.

func (*Refund) Update

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

Update updates the Refund having the given refundID.

type Settlement

type Settlement struct {
	Request *requests.Request
}

Settlement ...

func (*Settlement) All

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

All fetches collection of settlements for the given queryParams.

func (*Settlement) CreateOnDemandSettlement

func (settlement *Settlement) CreateOnDemandSettlement(data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

CreateOnDemandSettlement creates a On-demand Settlement for the given data.

func (*Settlement) Fetch

func (settlement *Settlement) Fetch(settlementID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches a settlement having the given settlementID.

func (*Settlement) FetchAllOnDemandSettlement

func (settlement *Settlement) FetchAllOnDemandSettlement(queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

FetchAllOnDemandSettlement fetches all On-demand Settlements.

func (*Settlement) FetchOnDemandSettlementById

func (settlement *Settlement) FetchOnDemandSettlementById(settlementID string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

FetchOnDemandSettlementById fetches On-demand Settlement by settlementID.

func (*Settlement) Reports

func (settlement *Settlement) Reports(queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Reports to get combined report of settlements.

type Stakeholder added in v1.2.0

type Stakeholder struct {
	Request *requests.Request
}

Stakeholder ...

func (*Stakeholder) All added in v1.2.0

func (stake *Stakeholder) All(accountId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches collection of stakeholder for the given accountId.

func (*Stakeholder) Create added in v1.2.0

func (stake *Stakeholder) Create(accountId string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Create creates a new stakeholder for the given data.

func (*Stakeholder) Edit added in v1.2.0

func (stake *Stakeholder) Edit(accountId string, stakeholderId string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Edit updates the stakeholder having the given accountId & stakeholderId.

func (*Stakeholder) Fetch added in v1.2.0

func (stake *Stakeholder) Fetch(accountId string, stakeholderId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch fetches stakeholder having the given accountId & stakeholderId.

func (*Stakeholder) FetchStakeholderDoc added in v1.2.0

func (stake *Stakeholder) FetchStakeholderDoc(accountId string, stakeholderId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

FetchStakeholderDoc fetches the stakeholder documents.

func (*Stakeholder) UploadStakeholderDoc added in v1.2.0

func (stake *Stakeholder) UploadStakeholderDoc(accountId string, stakeholderId string, params requests.FileUploadParams, extraHeaders map[string]string) (map[string]interface{}, error)

UploadStakeholderDoc upload stakeholder documents.

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

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

CancelScheduledChanges cancels a pending update.

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

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

DeleteOffer deletes a offer linked to subscription.

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.

func (*Subscription) Pause

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

Pause a subscription having the given subscriptionID.

func (*Subscription) PendingUpdate

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

PendingUpdate fetches details of a pending update.

func (*Subscription) Resume

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

Resume resumes a subscription having the given subscriptionID.

func (*Subscription) Update

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

Update updates a subscription for the given data.

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) Create added in v1.2.0

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

Create creates a new token for the given data.

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) DeleteToken added in v1.2.0

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

DeleteToken deletes a token.

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.

func (*Token) FetchCardPropertiesByToken added in v1.2.0

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

FetchCardPropertiesByToken fetches card properties of an existing token.

func (*Token) ProcessPaymentOnAlternatePAorPG added in v1.2.0

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

ProcessPaymentOnAlternatePAorPG process a payment on the tokenised card on another PA/PG with token created on razorpay

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

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

Create add receiver to an existing virtual account by virtual Id and data

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

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

Allowedpayer add allowed payers account detail by virtualId and data

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

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

Delete delete allowed payers account details by virtualId and allowed Payer id

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.

type Webhook added in v1.2.0

type Webhook struct {
	Request *requests.Request
}

Product ...

func (*Webhook) All added in v1.2.0

func (wh *Webhook) All(accountId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

All fetches collection of webhook.

func (*Webhook) Create added in v1.2.0

func (wh *Webhook) Create(accountId string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Webhook creates a new webhook for the given data.

func (*Webhook) Delete added in v1.2.0

func (wh *Webhook) Delete(webhookId string, accountId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Delete deletes a webhook having the given invoiceID.

func (*Webhook) Edit added in v1.2.0

func (wh *Webhook) Edit(webhookId string, accountId string, data map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Edit updates the details of a webhook.

func (*Webhook) Fetch added in v1.2.0

func (wh *Webhook) Fetch(webhookId string, accountId string, queryParams map[string]interface{}, extraHeaders map[string]string) (map[string]interface{}, error)

Fetch retrieve and view the details of a webhook.

Jump to

Keyboard shortcuts

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