Skip to content

Commit

Permalink
add support for shipping address
Browse files Browse the repository at this point in the history
  • Loading branch information
lovrocolic committed Jun 28, 2024
1 parent 02e5845 commit bde1846
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ type CustomerInput struct {
Timezone string `json:"timezone,omitempty"`
Metadata []CustomerMetadataInput `json:"metadata,omitempty"`
BillingConfiguration CustomerBillingConfigurationInput `json:"billing_configuration,omitempty"`
ShippingAddress Address `json:"shipping_address,omitempty"`
IntegrationCustomers []IntegrationCustomer `json:"integration_customers,omitempty"`
TaxCodes []string `json:"tax_codes,omitempty"`
}
Expand Down Expand Up @@ -113,6 +114,15 @@ type CustomerBillingConfiguration struct {
DocumentLocale string `json:"document_locale,omitempty"`
}

type Address struct {
AddressLine1 string `json:"address_line1,omitempty"`
AddressLine2 string `json:"address_line2,omitempty"`
City string `json:"city,omitempty"`
Zipcode string `json:"zipcode,omitempty"`
State string `json:"state,omitempty"`
Country string `json:"country,omitempty"`
}

type IntegrationCustomer struct {
LagoID uuid.UUID `json:"id,omitempty"`
ExternalCustomerId string `json:"external_customer_id,omitempty"`
Expand Down Expand Up @@ -223,6 +233,7 @@ type Customer struct {
Phone string `json:"phone,omitempty"`
URL string `json:"url,omitempty"`
BillingConfiguration CustomerBillingConfiguration `json:"billing_configuration,omitempty"`
ShippingAddress Address `json:"shipping_address,omitempty"`
IntegrationCustomers []IntegrationCustomersResponse `json:"integration_customers,omitempty"`
Metadata []MetadataResponse `json:"metadata,omitempty"`
Currency Currency `json:"currency,omitempty"`
Expand Down

0 comments on commit bde1846

Please sign in to comment.