Skip to content

Commit

Permalink
fix(customer): Firstname and Lastname must be sent as firstname and l…
Browse files Browse the repository at this point in the history
…astname (#211)
  • Loading branch information
vincent-pochet authored Oct 17, 2024
1 parent cf353de commit 8ca492b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ const (
type FinalizeZeroAmountInvoice string

const (
FinalizeInvoice FinalizeZeroAmountInvoice = "finalize"
SkipInvoice FinalizeZeroAmountInvoice = "skip"
InheritInvoice FinalizeZeroAmountInvoice = "inherit"
FinalizeInvoice FinalizeZeroAmountInvoice = "finalize"
SkipInvoice FinalizeZeroAmountInvoice = "skip"
InheritInvoice FinalizeZeroAmountInvoice = "inherit"
)

type IntegrationType string
Expand All @@ -36,8 +36,8 @@ const (
type CustomerType string

const (
CompanyCustomerType CustomerType = "company"
IndividualCustomerType CustomerType = "individual"
CompanyCustomerType CustomerType = "company"
IndividualCustomerType CustomerType = "individual"
)

type CustomerParams struct {
Expand Down Expand Up @@ -85,8 +85,8 @@ type MetadataResponse struct {
type CustomerInput struct {
ExternalID string `json:"external_id,omitempty"`
Name string `json:"name,omitempty"`
Firstname string `json:"first_name,omitempty"`
Lastname string `json:"last_name,omitempty"`
Firstname string `json:"firstname,omitempty"`
Lastname string `json:"lastname,omitempty"`
CustomerType CustomerType `json:"customer_type,omitempty"`
Email string `json:"email,omitempty"`
AddressLine1 string `json:"address_line1,omitempty"`
Expand All @@ -108,7 +108,7 @@ type CustomerInput struct {
ShippingAddress Address `json:"shipping_address,omitempty"`
IntegrationCustomers []IntegrationCustomer `json:"integration_customers,omitempty"`
TaxCodes []string `json:"tax_codes,omitempty"`
FinalizeZeroAmountInvoice FinalizeZeroAmountInvoice `json:"finalize_zero_amount_invoice,omitempty"`
FinalizeZeroAmountInvoice FinalizeZeroAmountInvoice `json:"finalize_zero_amount_invoice,omitempty"`
}

type CustomerListInput struct {
Expand Down Expand Up @@ -228,8 +228,8 @@ type Customer struct {
Slug string `json:"slug,omitempty"`

Name string `json:"name,omitempty"`
Firstname string `json:"first_name,omitempty"`
Lastname string `json:"last_name,omitempty"`
Firstname string `json:"firstname,omitempty"`
Lastname string `json:"lastname,omitempty"`
CustomerType string `json:"customer_type,omitempty"`
Email string `json:"email,omitempty"`
AddressLine1 string `json:"address_line1,omitempty"`
Expand All @@ -245,7 +245,7 @@ type Customer struct {
LogoURL string `json:"logo_url,omitempty"`
Phone string `json:"phone,omitempty"`
URL string `json:"url,omitempty"`
FinalizeZeroAmountInvoice FinalizeZeroAmountInvoice `json:"finalize_zero_amount_invoice,omitempty"`
FinalizeZeroAmountInvoice FinalizeZeroAmountInvoice `json:"finalize_zero_amount_invoice,omitempty"`
BillingConfiguration CustomerBillingConfiguration `json:"billing_configuration,omitempty"`
ShippingAddress Address `json:"shipping_address,omitempty"`
IntegrationCustomers []IntegrationCustomersResponse `json:"integration_customers,omitempty"`
Expand Down

0 comments on commit 8ca492b

Please sign in to comment.