Skip to content

Commit

Permalink
added attributes & GLN to customer model
Browse files Browse the repository at this point in the history
  • Loading branch information
Dysar committed Jul 23, 2020
1 parent 1820f57 commit 9a997ea
Showing 1 changed file with 38 additions and 36 deletions.
74 changes: 38 additions & 36 deletions pkg/api/customers/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,44 @@ import (

type (
Customer struct {
ID int `json:"id"`
PayerID int `json:"payerID,omitempty"`
CustomerID int `json:"customerID"`
TypeID string `json:"type_id"`
FullName string `json:"fullName"`
CompanyName string `json:"companyName"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
GroupID int `json:"groupID"`
EDI string `json:"EDI"`
IsPOSDefaultCustomer int `json:"isPOSDefaultCustomer"`
CountryID string `json:"countryID"`
Phone string `json:"phone"`
EInvoiceEmail string `json:"eInvoiceEmail"`
Email string `json:"email"`
Fax string `json:"fax"`
Code string `json:"code"`
ReferenceNumber string `json:"referenceNumber"`
VatNumber string `json:"vatNumber"`
BankName string `json:"bankName"`
BankAccountNumber string `json:"bankAccountNumber"`
BankIBAN string `json:"bankIBAN"`
BankSWIFT string `json:"bankSWIFT"`
PaymentDays int `json:"paymentDays"`
Notes string `json:"notes"`
LastModified int `json:"lastModified"`
CustomerType string `json:"customerType"`
Address string `json:"address"`
CustomerAddresses sharedCommon.Addresses `json:"addresses"`
Street string `json:"street"`
Address2 string `json:"address2"`
City string `json:"city"`
PostalCode string `json:"postalCode"`
Country string `json:"country"`
State string `json:"state"`
ContactPersons ContactPersons `json:"contactPersons"`
ID int `json:"id"`
PayerID int `json:"payerID,omitempty"`
CustomerID int `json:"customerID"`
TypeID string `json:"type_id"`
FullName string `json:"fullName"`
CompanyName string `json:"companyName"`
FirstName string `json:"firstName"`
LastName string `json:"lastName"`
GroupID int `json:"groupID"`
EDI string `json:"EDI"`
GLN string `json:"GLN"`
IsPOSDefaultCustomer int `json:"isPOSDefaultCustomer"`
CountryID string `json:"countryID"`
Phone string `json:"phone"`
EInvoiceEmail string `json:"eInvoiceEmail"`
Email string `json:"email"`
Fax string `json:"fax"`
Code string `json:"code"`
ReferenceNumber string `json:"referenceNumber"`
VatNumber string `json:"vatNumber"`
BankName string `json:"bankName"`
BankAccountNumber string `json:"bankAccountNumber"`
BankIBAN string `json:"bankIBAN"`
BankSWIFT string `json:"bankSWIFT"`
PaymentDays int `json:"paymentDays"`
Notes string `json:"notes"`
LastModified int `json:"lastModified"`
CustomerType string `json:"customerType"`
Address string `json:"address"`
CustomerAddresses sharedCommon.Addresses `json:"addresses"`
Street string `json:"street"`
Address2 string `json:"address2"`
City string `json:"city"`
PostalCode string `json:"postalCode"`
Country string `json:"country"`
State string `json:"state"`
ContactPersons ContactPersons `json:"contactPersons"`
Attributes []sharedCommon.ObjAttribute `json:"attributes"`

// Web-shop related fields
Username string `json:"webshopUsername"`
Expand Down

0 comments on commit 9a997ea

Please sign in to comment.