reconciliation

package
v0.0.0-...-ff628f3 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 5 Imported by: 0

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

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

func (*Client) GetSinglePaymentReportWithContext

func (c *Client) GetSinglePaymentReportWithContext(ctx context.Context, paymentId string) (*PaymentReportsResponse, error)

func (*Client) QueryPaymentsReport

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

func (*Client) QueryPaymentsReportWithContext

func (c *Client) QueryPaymentsReportWithContext(ctx context.Context, query PaymentReportsQuery) (*PaymentReportsResponse, error)

func (*Client) QueryStatementsReport

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

func (*Client) QueryStatementsReportWithContext

func (c *Client) QueryStatementsReportWithContext(ctx context.Context, query common.DateRangeQuery) (*StatementReportsResponse, error)

func (*Client) RetrieveCVSPaymentsReport

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

func (*Client) RetrieveCVSPaymentsReportWithContext

func (c *Client) RetrieveCVSPaymentsReportWithContext(ctx context.Context, query common.DateRangeQuery) (*common.ContentResponse, error)

func (*Client) RetrieveCVSSingleStatementReport

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

func (*Client) RetrieveCVSSingleStatementReportWithContext

func (c *Client) RetrieveCVSSingleStatementReportWithContext(ctx context.Context, statementId string) (*common.ContentResponse, error)

func (*Client) RetrieveCVSStatementsReport

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

func (*Client) RetrieveCVSStatementsReportWithContext

func (c *Client) RetrieveCVSStatementsReportWithContext(ctx context.Context, query common.DateRangeQuery) (*common.ContentResponse, error)

type PaymentReportData

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

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

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

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

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

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