Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(customer): Firstname and Lastname must be sent as firstname and lastname #211

Merged
merged 1 commit into from
Oct 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading