forked from getconversio/go-shopify
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added Currency and UpdatedAt properties * Removed Deprecated fields accepts_marketing and accepts_marketing_updated_at from customer object * Exporting OrderFinancialStatus and OrderFulfillmentStatus from Order
- Loading branch information
1 parent
e0f9e0d
commit efec432
Showing
4 changed files
with
73 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -353,26 +353,24 @@ func TestCustomerGet(t *testing.T) { | |
} | ||
|
||
expectation := &Customer{ | ||
Id: 1, | ||
Email: "[email protected]", | ||
FirstName: "Test", | ||
LastName: "Citizen", | ||
AcceptsMarketing: true, | ||
VerifiedEmail: true, | ||
TaxExempt: false, | ||
OrdersCount: 4, | ||
State: "enabled", | ||
TotalSpent: &totalSpent, | ||
LastOrderId: 123, | ||
Note: "", | ||
Phone: "", | ||
AcceptsMarketingUpdatedAt: &updatedAt, | ||
EmailMarketingConsent: &emailMarketingConsent1, | ||
SMSMarketingConsent: &smsMarketingConsent1, | ||
DefaultAddress: address1, | ||
Addresses: []*CustomerAddress{address1}, | ||
CreatedAt: &createdAt, | ||
UpdatedAt: &updatedAt, | ||
Id: 1, | ||
Email: "[email protected]", | ||
FirstName: "Test", | ||
LastName: "Citizen", | ||
VerifiedEmail: true, | ||
TaxExempt: false, | ||
OrdersCount: 4, | ||
State: "enabled", | ||
TotalSpent: &totalSpent, | ||
LastOrderId: 123, | ||
Note: "", | ||
Phone: "", | ||
EmailMarketingConsent: &emailMarketingConsent1, | ||
SMSMarketingConsent: &smsMarketingConsent1, | ||
DefaultAddress: address1, | ||
Addresses: []*CustomerAddress{address1}, | ||
CreatedAt: &createdAt, | ||
UpdatedAt: &updatedAt, | ||
} | ||
|
||
if customer.Id != expectation.Id { | ||
|
@@ -387,9 +385,6 @@ func TestCustomerGet(t *testing.T) { | |
if customer.LastName != expectation.LastName { | ||
t.Errorf("Customer.LastName returned %+v, expected %+v", customer.LastName, expectation.LastName) | ||
} | ||
if customer.AcceptsMarketing != expectation.AcceptsMarketing { | ||
t.Errorf("Customer.AcceptsMarketing returned %+v, expected %+v", customer.AcceptsMarketing, expectation.AcceptsMarketing) | ||
} | ||
if !customer.CreatedAt.Equal(*expectation.CreatedAt) { | ||
t.Errorf("Customer.CreatedAt returned %+v, expected %+v", customer.CreatedAt, expectation.CreatedAt) | ||
} | ||
|
@@ -481,9 +476,6 @@ func TestCustomerGet(t *testing.T) { | |
if len(customer.Addresses) != len(expectation.Addresses) { | ||
t.Errorf("Customer.Addresses count returned %d, expected %d", len(customer.Addresses), len(expectation.Addresses)) | ||
} | ||
if !customer.AcceptsMarketingUpdatedAt.Equal(*expectation.AcceptsMarketingUpdatedAt) { | ||
t.Errorf("Customer.AcceptsMarketingUpdatedAt returned %+v, expected %+v", customer.AcceptsMarketingUpdatedAt, expectation.AcceptsMarketingUpdatedAt) | ||
} | ||
if customer.EmailMarketingConsent == nil { | ||
t.Errorf("Customer.EmailMarketingConsent is nil, expected not nil") | ||
} else { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters