Documentation ¶
Index ¶
- type Action
- type Breakdown
- type Client
- func (c *Client) PaymentReport(paymentID *string, request *Request) (*Response, error)
- func (c *Client) PaymentsReport(request *Request) (*Response, error)
- func (c *Client) PaymentsReportCSV(request *Request) (*Response, error)
- func (c *Client) StatementPaymentReport(statementID string, request *Request) (*Response, error)
- func (c *Client) StatementPaymentReportCSV(statementID *string) (*Response, error)
- func (c *Client) StatementsReport(request *Request) (*Response, error)
- func (c *Client) StatementsReportCSV(request *Request) (*Response, error)
- type CurrentPeriodBreakdown
- type Payment
- type PaymentParameter
- type PaymentsParameter
- type PaymentsReport
- type Payout
- type ProcessingFeesBreakdown
- type Request
- type Response
- type Statement
- type StatementParameter
- type StatementsParameter
- type StatementsReport
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 (*Client) PaymentReport ¶
PaymentReport -
func (*Client) PaymentsReport ¶
PaymentsReport -
func (*Client) PaymentsReportCSV ¶
PaymentsReportCSV -
func (*Client) StatementPaymentReport ¶
StatementPaymentReport -
func (*Client) StatementPaymentReportCSV ¶
StatementPaymentReportCSV -
func (*Client) StatementsReport ¶
StatementsReport -
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 Request ¶
type Request struct { *PaymentsParameter *PaymentParameter *StatementsParameter *StatementParameter }
Request -
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 -
Click to show internal directories.
Click to hide internal directories.