diff --git a/customer_test.go b/customer_test.go index 016a8b07..157e2b62 100644 --- a/customer_test.go +++ b/customer_test.go @@ -353,26 +353,24 @@ func TestCustomerGet(t *testing.T) { } expectation := &Customer{ - Id: 1, - Email: "test@example.com", - 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: "test@example.com", + 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 {