Documentation ¶
Index ¶
- type Amounts
- type Cart
- type Client
- func (c *Client) CancelInvoice(req *InvoiceCancelRequest) (*Invoice, error)
- func (c *Client) CreateInvoice(req *InvoiceCreateRequest) (*Invoice, error)
- func (c *Client) GetNavigation() (*NavigationResponse, error)
- func (c *Client) GetSubUnits() (*SubUnitResponse, error)
- func (c *Client) Invoices() ([]*Invoice, error)
- type Configuration
- type Discount
- type DiscountDetails
- type DueDate
- type Entity
- type Error
- type Invoice
- type InvoiceCancelRequest
- type InvoiceCreateRequest
- type InvoiceListRequest
- type InvoiceListResponse
- type InvoiceResponse
- type Item
- type LineItems
- type LoginRequest
- type Money
- type NavigationResponse
- type Options
- type Payer
- type SubUnitResponse
- type Time
- type WriteOnlyBackingDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Amounts ¶
type Amounts struct { AppliedMoney *Money `json:"applied_money,omitempty"` DiscountMoney *Money `json:"discount_money,omitempty"` GrossSalesMoney *Money `json:"gross_sales_money,omitempty"` ItemVariationPriceMoney *Money `json:"item_variation_price_money,omitempty"` ItemVariationPriceTimesQuantityMoney *Money `json:"item_variation_price_times_quantity_money,omitempty"` TaxMoney *Money `json:"tax_money,omitempty"` TipMoney *Money `json:"tip_money,omitempty"` TotalMoney *Money `json:"total_money,omitempty"` VariableAmountMoney *Money `json:"variable_amount_money,omitempty"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CancelInvoice ¶
func (c *Client) CancelInvoice(req *InvoiceCancelRequest) (*Invoice, error)
func (*Client) CreateInvoice ¶
func (c *Client) CreateInvoice(req *InvoiceCreateRequest) (*Invoice, error)
func (*Client) GetNavigation ¶
func (c *Client) GetNavigation() (*NavigationResponse, error)
func (*Client) GetSubUnits ¶
func (c *Client) GetSubUnits() (*SubUnitResponse, error)
type Configuration ¶
type Discount ¶
type Discount struct { WriteOnlyBackingDetails *WriteOnlyBackingDetails `json:"write_only_backing_details"` Amounts *Amounts `json:"amounts"` Configuration *Amounts `json:"configuration"` ApplicationScope string `json:"application_scope"` // CART_LEVEL }
type DiscountDetails ¶
type DueDate ¶
type Invoice ¶
type Invoice struct { BuyerEnteredInstrumentEnabled bool `json:"buyer_entered_instrument_enabled"` CanBeScheduled bool `json:"can_be_scheduled"` DeliveryStatus string `json:"delivery_status"` Description string `json:"description"` InvoiceName string `json:"invoice_name"` LockVersion int `json:"lock_version"` MerchantInvoiceNumber string `json:"merchant_invoice_number"` MerchantToken string `json:"merchant_token"` PayerEmail string `json:"payer_email"` PayerName string `json:"payer_name"` State string `json:"state"` TippingEnabled bool `json:"tipping_enabled"` Token string `json:"token"` UnitToken string `json:"unit_token"` RequestedMoney *Money `json:"requested_money"` Payer *Payer `json:"payer"` DueOn *DueDate `json:"due_on"` CreatedAt *Time `json:"created_at"` SentAt *Time `json:"sent_at"` UpdatedAt *Time `json:"updated_at"` Cart *Cart `json:"cart"` }
type InvoiceCancelRequest ¶
type InvoiceCreateRequest ¶
type InvoiceCreateRequest struct { AdditionalRecipientEmail []struct{} `json:"additional_recipient_email"` Cart *Cart `json:"cart"` Description string `json:"description"` DueOn *DueDate `json:"due_on"` InvoiceName string `json:"invoice_name"` MerchantInvoiceNumber string `json:"merchant_invoice_number"` Payer *Payer `json:"payer"` RequestedMoney *Money `json:"requested_money"` IsDraft bool `json:"is_draft"` UnitToken string `json:"unit_token"` }
type InvoiceListRequest ¶
type InvoiceListResponse ¶
type InvoiceResponse ¶
type Item ¶
type Item struct { Quantity string `json:"quantity"` CustomNote string `json:"custom_note"` Configuration *Configuration `json:"configuration"` Amounts *Amounts `json:"amounts"` }
type LoginRequest ¶
type NavigationResponse ¶
type NavigationResponse struct {}
type Options ¶
type Options struct { Discount []*Discount `json:"discount"` Fee []struct{} `json:"fee"` }
type SubUnitResponse ¶
type SubUnitResponse struct {
Entities []*Entity
}
type Time ¶
type WriteOnlyBackingDetails ¶
type WriteOnlyBackingDetails struct { Discount *DiscountDetails `json:"discount"` BackingType string `json:"backing_type"` // CUSTOM_DISCOUNT }
Click to show internal directories.
Click to hide internal directories.