Documentation ¶
Index ¶
- type Client
- func (c *Client) AcceptDispute(disputeID string) (*Response, error)
- func (c *Client) GetDispute(disputeID string) (*Response, error)
- func (c *Client) GetDisputeEvidence(disputeID string) (*Response, error)
- func (c *Client) GetDisputes(request *Request) (*Response, error)
- func (c *Client) ProvideDisputeEvidence(disputeID string, request *Request) (*Response, error)
- func (c *Client) SubmitDisputeEvidence(disputeID string) (*Response, error)
- type Dispute
- type DisputeEvidence
- type DisputeSummary
- type Disputes
- type Evidence
- type Payment
- type QueryParameter
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
API checkout.HTTPClient
}
Client ...
func (*Client) AcceptDispute ¶
AcceptDispute -
func (*Client) GetDispute ¶
GetDispute ...
func (*Client) GetDisputeEvidence ¶
GetDisputeEvidence ...
func (*Client) GetDisputes ¶
GetDisputes ...
func (*Client) ProvideDisputeEvidence ¶
ProvideDisputeEvidence ...
type Dispute ¶
type Dispute struct { ID string `json:"id,omitempty"` Category string `json:"category,omitempty"` Currency string `json:"currency,omitempty"` ReasonCode string `json:"reason_code,omitempty"` RelevantEvidence []string `json:"relevant_evidence,omitempty"` EvidenceRequiredBy time.Time `json:"evidence_required_by,omitempty"` ReceivedOn time.Time `json:"received_on,omitempty"` LastUpdate time.Time `json:"last_update,omitempty"` Payment *Payment `json:"payment,omitempty"` Links map[string]common.Link `json:"_links,omitempty"` }
Dispute -
type DisputeEvidence ¶
type DisputeEvidence struct { Links map[string]common.Link `json:"_links,omitempty"` ProofOfDeliveryOrServiceFile string `json:"proof_of_delivery_or_service_file,omitempty"` ProofOfDeliveryOrServiceText string `json:"proof_of_delivery_or_service_text,omitempty"` InvoiceOrReceiptFile string `json:"invoice_or_receipt_file,omitempty"` InvoiceOrReceiptText string `json:"invoice_or_receipt_text,omitempty"` InvoiceShowingDistinctTransactionsFile string `json:"invoice_showing_distinct_transactions_file,omitempty"` InvoiceShowingDistinctTransactionsText string `json:"invoice_showing_distinct_transactions_text,omitempty"` CustomerCommunicationFile string `json:"customer_communication_file,omitempty"` CustomerCommunicationText string `json:"customer_communication_text,omitempty"` RefundOrCancellationPolicyFile string `json:"refund_or_cancellation_policy_file,omitempty"` RefundOrCancellationPolicyText string `json:"refund_or_cancellation_policy_text,omitempty"` RecurringTransactionAgreementFile string `json:"recurring_transaction_agreement_file,omitempty"` RecurringTransactionAgreementText string `json:"recurring_transaction_agreement_text,omitempty"` AdditionalEvidenceFile string `json:"additional_evidence_file,omitempty"` AdditionalEvidenceText string `json:"additional_evidence_text,omitempty"` ProofOfDeliveryOrServiceDateFile string `json:"proof_of_delivery_or_service_date_file,omitempty"` ProofOfDeliveryOrServiceDateText string `json:"proof_of_delivery_or_service_date_text,omitempty"` }
DisputeEvidence -
type DisputeSummary ¶
type DisputeSummary struct { ID string `json:"id,omitempty"` Category string `json:"category,omitempty"` Status string `json:"status,omitempty"` Amount uint64 `json:"amount,omitempty"` Currency string `json:"currency,omitempty"` PaymentID string `json:"payment_id,omitempty"` PaymentReference string `json:"payment_reference,omitempty"` PaymentARN string `json:"payment_arn,omitempty"` PaymentMethod string `json:"payment_method,omitempty"` EvidenceRequiredBy time.Time `json:"evidence_required_by,omitempty"` ReceivedOn time.Time `json:"received_on,omitempty"` LastUpdate time.Time `json:"last_update,omitempty"` Links map[string]common.Link `json:"_links,omitempty"` }
DisputeSummary -
type Disputes ¶
type Disputes struct { Limit uint64 `json:"limit,omitempty"` Skip uint64 `json:"skip,omitempty"` From time.Time `json:"from,omitempty"` To time.Time `json:"to,omitempty"` Statuses string `json:"statuses,omitempty"` ID string `json:"id,omitempty"` PaymentID string `json:"payment_id,omitempty"` PaymentReference string `json:"payment_reference,omitempty"` PaymentARN string `json:"payment_arn,omitempty"` ThisChannelOnly *bool `json:"this_channel_only,omitempty"` TotalCount uint64 `json:"total_count,omitempty"` Data []DisputeSummary `json:"data,omitempty"` }
Disputes -
type Payment ¶
type Payment struct { ID string `json:"id,omitempty"` Amount uint64 `json:"amount,omitempty"` Currency string `json:"currency,omitempty"` Method string `json:"method,omitempty"` ARN string `json:"arn,omitempty"` ProcessedOn time.Time `json:"processed_on,omitempty"` }
Payment -
type QueryParameter ¶
type QueryParameter struct { Limit uint64 `url:"limit,omitempty"` Skip uint64 `url:"skip,omitempty"` From time.Time `url:"from,omitempty"` To time.Time `url:"to,omitempty"` ID string `url:"id,omitempty"` Statuses string `url:"statuses,omitempty"` PaymentID string `url:"payment_id,omitempty"` PaymentReference string `url:"payment_reference,omitempty"` PaymentARN string `url:"payment_arn,omitempty"` ThisChannelOnly *bool `url:"this_channel_only,omitempty"` }
QueryParameter -
type Response ¶
type Response struct { StatusResponse *checkout.StatusResponse `json:"api_response,omitempty"` Disputes *Disputes `json:"disputes,omitempty"` Dispute *Dispute `json:"dispute,omitempty"` Evidences *DisputeEvidence `json:"evidences,omitempty"` }
Response -
Click to show internal directories.
Click to hide internal directories.