reconciliation

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 8 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        uint64      `json:"response_code,omitempty"`
	ResponseDescription string      `json:"response_description,omitempty"`
	Breakdown           []Breakdown `json:"breakdown,omitempty"`
}

Action -

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"`
}

Breakdown -

type Client

type Client struct {
	API checkout.HTTPClient
}

Client ...

func NewClient

func NewClient(config checkout.Config) *Client

NewClient ...

func (*Client) PaymentReport

func (c *Client) PaymentReport(paymentID *string, request *Request) (*Response, error)

PaymentReport -

func (*Client) PaymentsReport

func (c *Client) PaymentsReport(request *Request) (*Response, error)

PaymentsReport -

func (*Client) PaymentsReportCSV

func (c *Client) PaymentsReportCSV(request *Request) (*Response, error)

PaymentsReportCSV -

func (*Client) StatementPaymentReport

func (c *Client) StatementPaymentReport(statementID string, request *Request) (*Response, error)

StatementPaymentReport -

func (*Client) StatementPaymentReportCSV

func (c *Client) StatementPaymentReportCSV(statementID *string) (*Response, error)

StatementPaymentReportCSV -

func (*Client) StatementsReport

func (c *Client) StatementsReport(request *Request) (*Response, error)

StatementsReport -

func (*Client) StatementsReportCSV

func (c *Client) StatementsReportCSV(request *Request) (*Response, error)

StatementsReportCSV -

type CurrentPeriodBreakdown

type CurrentPeriodBreakdown struct {
	ProcessedAmount         *float64                 `json:"processed_amount,omitempty"`
	RefundAmount            *float64                 `json:"refund_amount,omitempty"`
	ChargebackAmount        *float64                 `json:"chargeback_amount,omitempty"`
	ProcessingFees          *float64                 `json:"processing_fees,omitempty"`
	ProcessingFeesBreakdown *ProcessingFeesBreakdown `json:"processing_fees_breakdown,omitempty"`
	RollingReserveAmount    *float64                 `json:"rolling_reserve_amount,omitempty"`
	Tax                     *float64                 `json:"tax,omitempty"`
	AdminFees               *float64                 `json:"admin_fees,omitempty"`
	GeneralAdjustments      *float64                 `json:"general_adjustments,omitempty"`
}

CurrentPeriodBreakdown -

type Payment

type Payment struct {
	ID                 string                 `json:"id,omitempty"`
	ProcessingCurrency string                 `json:"processing_currency,omitempty"`
	PayoutCurrency     string                 `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           common.CardType        `json:"card_type,omitempty"`
	CardCategory       common.CardCategory    `json:"card_category,omitempty"`
	IssuerCountry      string                 `json:"issuer_country,omitempty"`
	MerchantCountry    string                 `json:"merchant_country,omitempty"`
	MID                string                 `json:"mid,omitempty"`
	Actions            []Action               `json:"actions,omitempty"`
	Links              map[string]common.Link `json:"_links"`
}

Payment -

type PaymentParameter

type PaymentParameter struct {
	Reference string `url:"reference,omitempty"`
}

PaymentParameter -

type PaymentsParameter

type PaymentsParameter struct {
	From      time.Time `url:"from,omitempty"`
	To        time.Time `url:"to,omitempty"`
	Reference string    `url:"reference,omitempty"`
	Limit     uint64    `url:"limit,omitempty"`
}

PaymentsParameter -

type PaymentsReport

type PaymentsReport struct {
	Count uint64                 `json:"count,omitempty"`
	Data  []Payment              `json:"data,omitempty"`
	Links map[string]common.Link `json:"_links"`
}

PaymentsReport -

type Payout

type Payout struct {
	Currency               string                  `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"`
	ID                     string                  `json:"id,omitempty"`
	Status                 string                  `json:"status,omitempty"`
	PayoutFee              *float64                `json:"payout_fee,omitempty"`
	CurrentPeriodBreakdown *CurrentPeriodBreakdown `json:"current_period_breakdown,omitempty"`
	Links                  map[string]common.Link  `json:"_links"`
}

Payout -

type ProcessingFeesBreakdown

type ProcessingFeesBreakdown struct {
	InterchangeFees           *float64 `json:"interchange_fees,omitempty"`
	SchemeAndOtherNetworkFees *float64 `json:"scheme_and_other_network_fees,omitempty"`
	PremiumAndAPMFees         *float64 `json:"premium_and_apm_fees,omitempty"`
	ChargebackFees            *float64 `json:"chargeback_fees,omitempty"`
	PaymentGatewayFees        *float64 `json:"payment_gateway_fees,omitempty"`
	AccountUpdaterFees        *float64 `json:"account_updater_fees,omitempty"`
}

ProcessingFeesBreakdown -

type Response

type Response struct {
	StatusResponse   *checkout.StatusResponse `json:"api_response,omitempty"`
	PaymentsReport   *PaymentsReport          `json:"payments_report,omitempty"`
	StatementsReport *StatementsReport        `json:"statements_report,omitempty"`
	CSV              [][]string               `json:"csv,omitempty"`
}

Response -

type Statement

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

Statement -

type StatementParameter

type StatementParameter struct {
	PayoutID       string `url:"payout_id,omitempty"`
	PayoutCurrency string `url:"payout_currency,omitempty"`
	Limit          uint64 `url:"limit,omitempty"`
}

StatementParameter -

type StatementsParameter

type StatementsParameter struct {
	From    time.Time `url:"from,omitempty"`
	To      time.Time `url:"to,omitempty"`
	Include string    `url:"include,omitempty"`
}

StatementsParameter -

type StatementsReport

type StatementsReport struct {
	Count uint64                 `json:"count,omitempty"`
	Data  []Statement            `json:"data,omitempty"`
	Links map[string]common.Link `json:"_links"`
}

StatementsReport -

Jump to

Keyboard shortcuts

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