Skip to content

Commit

Permalink
feat(customer-type): Add customer type, firstname and lastname to cus…
Browse files Browse the repository at this point in the history
…tomer (#205)
  • Loading branch information
ivannovosad authored Sep 17, 2024
1 parent 0c2a6b0 commit 2573e16
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,13 @@ const (
IntegrationXero IntegrationType = "xero"
)

type CustomerType string

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

type CustomerParams struct {
Customer *CustomerInput `json:"customer"`
}
Expand Down Expand Up @@ -78,6 +85,9 @@ 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"`
CustomerType CustomerType `json:"customer_type,omitempty"`
Email string `json:"email,omitempty"`
AddressLine1 string `json:"address_line1,omitempty"`
AddressLine2 string `json:"address_line2,omitempty"`
Expand Down Expand Up @@ -218,6 +228,9 @@ 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"`
CustomerType string `json:"customer_type,omitempty"`
Email string `json:"email,omitempty"`
AddressLine1 string `json:"address_line1,omitempty"`
AddressLine2 string `json:"address_line2,omitempty"`
Expand Down

0 comments on commit 2573e16

Please sign in to comment.