Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { Country string `json:"country"` Region string `json:"region"` RegionCode string `json:"region_code"` City string `json:"city"` PostalCode string `json:"postal_code"` Street string `json:"street"` Number string `json:"number"` Locality string `json:"locality"` }
Address represents the charge payment method holder address.
type Amount ¶
type Amount struct { Value int `json:"value"` Currency string `json:"currency,omitempty"` Summary *Summary `json:"summary,omitempty"` }
Amount represents the charge amount.
type Boleto ¶
type Boleto struct { ID string `json:"id"` Barcode string `json:"barcode"` FormattedBarcode string `json:"formatted_barcode"` DueDate string `json:"due_date"` InstructionLines *InstructionLines `json:"instruction_lines"` Holder Holder `json:"holder"` }
Boleto represents the charge payment method boleto.
type Card ¶
type Card struct { ID string `json:"id,omitempty"` Store bool `json:"store,omitempty"` Number string `json:"number,omitempty"` SecurityCode string `json:"security_code,omitempty"` Encrypted string `json:"encrypted,omitempty"` Brand string `json:"brand,omitempty"` FirstDigits string `json:"first_digits,omitempty"` LastDigits string `json:"last_digits,omitempty"` ExpMonth string `json:"exp_month,omitempty"` ExpYear string `json:"exp_year,omitempty"` Holder *Holder `json:"holder,omitempty"` }
Card represents the charge payment method card.
type Charge ¶
type Charge struct { ID string `json:"id,omitempty"` ReferenceID string `json:"reference_id,omitempty"` Status string `json:"status,omitempty"` Description string `json:"description,omitempty"` Amount Amount `json:"amount"` PaymentMethod *PaymentMethod `json:"payment_method,omitempty"` PaymentResponse *PaymentResponse `json:"payment_response,omitempty"` Links []Links `json:"links,omitempty"` NotificationUrls []string `json:"notification_urls,omitempty"` CreatedAt string `json:"created_at,omitempty"` PaidAt string `json:"paid_at,omitempty"` }
Charge represents the PagSeguro v4 API charge payload.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents PagSeguro v4 API client.
type Holder ¶
type Holder struct { Name string `json:"name"` TaxID string `json:"tax_id"` Email string `json:"email"` Address *Address `json:"address"` }
Holder represents the charge card payment method holder.
type InstructionLines ¶
InstructionLines represents the charge payment method boleto instruction lines.
type Links ¶
type Links struct { Rel string `json:"rel"` Href string `json:"href"` Media string `json:"media"` Type string `json:"type"` }
Links represents the charge links response.
type PaymentMethod ¶
type PaymentMethod struct { Type string `json:"type"` Installments int `json:"installments,omitempty"` Capture bool `json:"capture"` Card *Card `json:"card,omitempty"` CaptureBefore string `json:"capture_before,omitempty"` SoftDescriptor string `json:"soft_descriptor,omitempty"` Boleto *Boleto `json:"boleto,omitempty"` }
PaymentMethod represents the charge payment method.
type PaymentResponse ¶
type PaymentResponse struct { Code string `json:"code"` Message string `json:"message"` Reference string `json:"reference"` }
PaymentResponse represents the charge payment method response.
Click to show internal directories.
Click to hide internal directories.