package main import "time" type KlarnaOrderResponse struct { OrderID string `json:"order_id"` Status string `json:"status"` PurchaseCountry string `json:"purchase_country"` PurchaseCurrency string `json:"purchase_currency"` Locale string `json:"locale"` BillingAddress struct { GivenName string `json:"given_name"` FamilyName string `json:"family_name"` Email string `json:"email"` StreetAddress string `json:"street_address"` PostalCode string `json:"postal_code"` City string `json:"city"` Phone string `json:"phone"` Country string `json:"country"` } `json:"billing_address"` Customer struct { DateOfBirth string `json:"date_of_birth"` Type string `json:"type"` Gender string `json:"gender"` } `json:"customer"` ShippingAddress struct { GivenName string `json:"given_name"` FamilyName string `json:"family_name"` Email string `json:"email"` StreetAddress string `json:"street_address"` PostalCode string `json:"postal_code"` City string `json:"city"` Phone string `json:"phone"` Country string `json:"country"` } `json:"shipping_address"` OrderAmount int `json:"order_amount"` OrderTaxAmount int `json:"order_tax_amount"` OrderLines []struct { Type string `json:"type"` Reference string `json:"reference"` Name string `json:"name"` Quantity int `json:"quantity"` QuantityUnit string `json:"quantity_unit"` UnitPrice int `json:"unit_price"` TaxRate int `json:"tax_rate"` TotalAmount int `json:"total_amount"` TotalDiscountAmount int `json:"total_discount_amount"` TotalTaxAmount int `json:"total_tax_amount"` ImageURL string `json:"image_url"` } `json:"order_lines"` MerchantUrls struct { Terms string `json:"terms"` Checkout string `json:"checkout"` Confirmation string `json:"confirmation"` Push string `json:"push"` } `json:"merchant_urls"` MerchantReference1 string `json:"merchant_reference1"` HTMLSnippet string `json:"html_snippet"` StartedAt time.Time `json:"started_at"` CompletedAt time.Time `json:"completed_at"` LastModifiedAt time.Time `json:"last_modified_at"` Options struct { AllowSeparateShippingAddress bool `json:"allow_separate_shipping_address"` DateOfBirthMandatory bool `json:"date_of_birth_mandatory"` RequireValidateCallbackSuccess bool `json:"require_validate_callback_success"` } `json:"options"` ExternalPaymentMethods []interface{} `json:"external_payment_methods"` ExternalCheckouts []interface{} `json:"external_checkouts"` PaymentTypeAllowsIncrease bool `json:"payment_type_allows_increase"` }