reconciliation

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2023 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 Action

type Action struct {
	Type                string      `json:"type,omitempty"`
	Id                  string      `json:"id,omitempty"`
	ProcessedOn         string      `json:"processed_on,omitempty"`
	ResponseCode        string      `json:"response_code,omitempty"`
	ResponseDescription string      `json:"response_description,omitempty"`
	Breakdown           []Breakdown `json:"breakdown,omitempty"`
}

type Breakdown

type Breakdown struct {
	Type                     string  `json:"type,omitempty"`
	Date                     string  `json:"date,omitempty"`
	ProcessingCurrencyAmount float64 `json:"processing_currency_amount,omitempty"`
	PayoutCurrencyAmount     float64 `json:"payout_currency_amount,omitempty"`
}

type Client

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

func NewClient

func NewClient(configuration *configuration.Configuration, apiClient client.HttpClient) *Client

func (*Client) GetSinglePaymentReport added in v1.0.2

func (c *Client) GetSinglePaymentReport(paymentId string) (*PaymentReportsResponse, error)

func (*Client) QueryPaymentsReport added in v1.0.2

func (c *Client) QueryPaymentsReport(query PaymentReportsQuery) (*PaymentReportsResponse, error)

func (*Client) QueryStatementsReport added in v1.0.2

func (c *Client) QueryStatementsReport(query common.DateRangeQuery) (*StatementReportsResponse, error)

func (*Client) RetrieveCVSPaymentsReport added in v1.0.2

func (c *Client) RetrieveCVSPaymentsReport(query common.DateRangeQuery) (*common.ContentResponse, error)

func (*Client) RetrieveCVSSingleStatementReport added in v1.0.2

func (c *Client) RetrieveCVSSingleStatementReport(statementId string) (*common.ContentResponse, error)

func (*Client) RetrieveCVSStatementsReport added in v1.0.2

func (c *Client) RetrieveCVSStatementsReport(query common.DateRangeQuery) (*common.ContentResponse, error)

type PaymentReportData added in v1.0.2

type PaymentReportData struct {
	Id                 string                 `json:"id,omitempty"`
	ProcessingCurrency common.Currency        `json:"processing_currency,omitempty"`
	PayoutCurrency     common.Currency        `json:"payout_currency,omitempty"`
	RequestedOn        string                 `json:"requested_on,omitempty"`
	ChannelName        string                 `json:"channel_name,omitempty"`
	Reference          string                 `json:"reference,omitempty"`
	PaymentMethod      string                 `json:"payment_method,omitempty"`
	CardType           string                 `json:"card_type,omitempty"`
	CardCategory       string                 `json:"card_category,omitempty"`
	IssuerCountry      common.Country         `json:"issuer_country,omitempty"`
	MerchantCountry    common.Country         `json:"merchant_country,omitempty"`
	Mid                string                 `json:"mid,omitempty"`
	Actions            []Action               `json:"actions,omitempty"`
	Links              map[string]common.Link `json:"_links"`
}

type PaymentReportsQuery added in v1.0.2

type PaymentReportsQuery struct {
	From      time.Time `url:"from,omitempty" layout:"2006-01-02T15:04:05Z"`
	To        time.Time `url:"to,omitempty" layout:"2006-01-02T15:04:05Z"`
	Reference string    `url:"reference,omitempty"`
	Limit     int       `url:"limit,omitempty"`
}

type PaymentReportsResponse added in v1.0.2

type PaymentReportsResponse struct {
	HttpMetadata common.HttpMetadata
	Count        int                    `json:"count,omitempty"`
	Data         []PaymentReportData    `json:"data,omitempty"`
	Links        map[string]common.Link `json:"_links"`
}

type PayoutStatement added in v1.0.2

type PayoutStatement struct {
	Id                   string                 `json:"id,omitempty"`
	Currency             common.Currency        `json:"currency,omitempty"`
	CarriedForwardAmount float64                `json:"carried_forward_amount,omitempty"`
	CurrentPeriodAmount  float64                `json:"current_period_amount,omitempty"`
	NetAmount            float64                `json:"net_amount,omitempty"`
	Date                 string                 `json:"date,omitempty"`
	PeriodStart          string                 `json:"period_start,omitempty"`
	PeriodEnd            string                 `json:"period_end,omitempty"`
	Status               string                 `json:"status,omitempty"`
	PayoutFee            float64                `json:"payout_fee,omitempty"`
	Links                map[string]common.Link `json:"_links"`
}

type StatementReportsData added in v1.0.2

type StatementReportsData struct {
	Id          string                 `json:"id,omitempty"`
	PeriodStart string                 `json:"period_start,omitempty"`
	PeriodEnd   string                 `json:"period_end,omitempty"`
	Date        string                 `json:"date,omitempty"`
	Payouts     []PayoutStatement      `json:"payouts,omitempty"`
	Links       map[string]common.Link `json:"_links"`
}

type StatementReportsResponse added in v1.0.2

type StatementReportsResponse struct {
	HttpMetadata common.HttpMetadata
	Count        int                    `json:"count,omitempty"`
	Data         []StatementReportsData `json:"data,omitempty"`
	Links        map[string]common.Link `json:"_links"`
}

Jump to

Keyboard shortcuts

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