Skip to content

Commit

Permalink
Merge pull request veritrans#22 from adkarta/master
Browse files Browse the repository at this point in the history
Omitempty for keys in `customer_details` to prevent validation error
  • Loading branch information
rizdaprasetya authored Aug 7, 2018
2 parents d244b01 + 7915ed8 commit dec72af
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ type CustAddress struct {
// CustDetail : Represent the customer detail
type CustDetail struct {
// first name
FName string `json:"first_name"`
FName string `json:"first_name,omitempty"`

// last name
LName string `json:"last_name"`
LName string `json:"last_name,omitempty"`

Email string `json:"email"`
Phone string `json:"phone"`
Email string `json:"email,omitempty"`
Phone string `json:"phone,omitempty"`
BillAddr *CustAddress `json:"billing_address,omitempty"`
ShipAddr *CustAddress `json:"customer_address,omitempty"`
}
Expand Down

0 comments on commit dec72af

Please sign in to comment.