Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Address ¶
type Address struct { StreetAddress string `json:"streetAddress"` // m PostalCode string `json:"postalCode"` // m City string `json:"city"` // m County string `json:"county"` Country string `json:"country"` // m }
Address represents ...
type CallbackURL ¶
CallbackURL represents ...
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an API client
func (*Client) CreatePayment ¶
func (c *Client) CreatePayment(p *Payment) (*PaymentResponse, error)
CreatePayment performs a POST request ...
type Commission ¶
Commission represents ...
type Customer ¶
type Customer struct { Email string `json:"email"` // m FirstName string `json:"firstName"` LastName string `json:"lastName"` Phone string `json:"phone"` VatID string `json:"vatId"` }
Customer represents ...
type Item ¶
type Item struct { UnitPrice int `json:"unitPrice"` // m Units int `json:"units"` // m VatPercentage int `json:"vatPercentage"` // m ProductCode string `json:"productCode"` // m DeliveryDate string `json:"deliveryDate"` // m Description string `json:"description"` Category string `json:"category"` Stamp string `json:"stamp"` Reference string `json:"reference"` // m for shop-in-shop Merchant string `json:"merchant,omitempty"` // only for shop-in-shop Commission *Commission `json:"commission,omitempty"` // only for shop-in-shop, pointer until omitempty works with structs }
Item represents ...
type Payment ¶
type Payment struct { Stamp string `json:"stamp"` // m Reference string `json:"reference"` // m Amount int `json:"amount"` // m Currency string `json:"currency"` // m, EUR Language string `json:"language"` // m, FI/SV/EN Items []Item `json:"items"` // m Customer Customer `json:"customer"` // m DeliveryAddress Address `json:"deliveryAddress"` InvoicingAddress Address `json:"invoicingAddress"` RedirectUrls CallbackURL `json:"redirectUrls"` // m CallbackUrls CallbackURL `json:"callbackUrls"` }
Payment represents ...
type PaymentResponse ¶
type PaymentResponse struct { TransactionID string `json:"transactionId"` Href string `json:"href"` Providers []Provider `json:"providers"` }
PaymentResponse represents ...
Click to show internal directories.
Click to hide internal directories.