Skip to content

Instantly share code, notes, and snippets.

@simplement-e
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save simplement-e/4153d635b9f98252d814 to your computer and use it in GitHub Desktop.

Select an option

Save simplement-e/4153d635b9f98252d814 to your computer and use it in GitHub Desktop.
class Customer
{
string Id { get; set; }
string ExternalId { get; set; }
string Name { get; set; }
string Email { get; set; }
bool IsAnonymous { get; set; }
CustomerAddress MainAddress { get; set; }
CustomerNewsletterStatus[] Optins { get; set; }
CustomerLoyaltyData[] LoyaltyData { get; set; }
}
class CustomerNewsletterStatus
{
string NewsletterId { get; set; }
string NewsletterLabel { get; set; }
bool Optin { get; set; }
DateTime? LastUpdate { get; set; }
}
class CustomerAddress
{
string FirstName { get; set; }
string LastName { get; set; }
string CompanyName { get; set; }
string Address { get; set; }
string City { get; set; }
string Zone { get; set; }
string ZipCode { get; set; }
string CountryIsoCode { get; set; }
string Phone { get; set; }
string Phone2 { get; set; }
}
class CustomerLoyaltyData
{
decimal CurrentBalance { get; set; }
List<LoyaltyEventData> LatestEvents { get; set; }
List<Coupon> ActiveCoupons { get; set; }
List<Coupon> AvailableCoupons { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment