You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
200 lines
7.3 KiB
C#
200 lines
7.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Web;
|
|
|
|
namespace TradeManageNew
|
|
{
|
|
public class SyncShopifyOrdersResult
|
|
{
|
|
public List<ShopifyOrdersModel> orders { get; set; }
|
|
}
|
|
public class ShopifyOrdersModel
|
|
{
|
|
public string id { get; set; }
|
|
public string created_at { get; set; }
|
|
public string name { get; set; }
|
|
public decimal? current_subtotal_price { get; set; }
|
|
public ShopAndPresentmentMoney current_subtotal_price_set { get; set; }
|
|
public decimal? current_total_discounts { get; set; }
|
|
public ShopAndPresentmentMoney current_total_discounts_set { get; set; }
|
|
public decimal? current_total_price { get; set; }
|
|
public ShopAndPresentmentMoney current_total_price_set { get; set; }
|
|
public decimal? subtotal_price { get; set; }
|
|
public ShopAndPresentmentMoney subtotal_price_set { get; set; }
|
|
public ShopifyOrder_Customer customer { get; set; }
|
|
public string financial_status { get; set; }
|
|
public string fulfillment_status { get; set; }
|
|
public string tags { get; set; }
|
|
public List<discount_applications> discount_applications { get; set; }
|
|
public List<ShopifyOrder_line_items> line_items { get; set; }
|
|
public ShopifyOrder_shipping_address shipping_address { get; set; }
|
|
public List<ShopifyOrder_shipping_lines> shipping_lines { get; set; }
|
|
}
|
|
|
|
public class ShopAndPresentmentMoney
|
|
{
|
|
public shop_money shop_Money { get; set; }
|
|
public presentment_money presentment_Money { get; set; }
|
|
}
|
|
public class shop_money
|
|
{
|
|
public decimal? amount { get; set; }
|
|
public string currency_code { get; set; }
|
|
}
|
|
public class presentment_money
|
|
{
|
|
public decimal? amount { get; set; }
|
|
public string currency_code { get; set; }
|
|
}
|
|
|
|
public class ShopifyOrder_Customer
|
|
{
|
|
public string id { get; set; }
|
|
public string email { get; set; }
|
|
public bool? accepts_marketing { get; set; }
|
|
public string created_at { get; set; }
|
|
public string updated_at { get; set; }
|
|
public string first_name { get; set; }
|
|
public string last_name { get; set; }
|
|
public string state { get; set; }
|
|
public string note { get; set; }
|
|
public bool verified_email { get; set; }
|
|
public string multipass_identifier { get; set; }
|
|
public bool tax_exempt { get; set; }
|
|
public string phone { get; set; }
|
|
public string tags { get; set; }
|
|
public string currency { get; set; }
|
|
public string accepts_marketing_updated_at { get; set; }
|
|
public string admin_graphql_api_id { get; set; }
|
|
public ShopifyOrder_Customer_Default_Address default_address { get; set; }
|
|
|
|
}
|
|
|
|
public class ShopifyOrder_Customer_Default_Address
|
|
{
|
|
public string id { get; set; }
|
|
public string customer_id { get; set; }
|
|
public string first_name { get; set; }
|
|
public string last_name { get; set; }
|
|
public string company { get; set; }
|
|
public string address1 { get; set; }
|
|
public string address2 { get; set; }
|
|
public string city { get; set; }
|
|
public string province { get; set; }
|
|
public string country { get; set; }
|
|
public string zip { get; set; }
|
|
public string phone { get; set; }
|
|
public string name { get; set; }
|
|
public string province_code { get; set; }
|
|
public string country_code { get; set; }
|
|
public string country_name { get; set; }
|
|
}
|
|
|
|
public class discount_applications
|
|
{
|
|
public string target_type { get; set; }
|
|
public string type { get; set; }
|
|
public decimal? value { get; set; }
|
|
public string value_type { get; set; }
|
|
public string allocation_method { get; set; }
|
|
public string target_selection { get; set; }
|
|
public string title { get; set; }
|
|
}
|
|
|
|
public class ShopifyOrder_line_items
|
|
{
|
|
public string id { get; set; }
|
|
public string admin_graphql_api_id { get; set; }
|
|
public int? fulfillable_quantity { get; set; }
|
|
public string fulfillment_service { get; set; }
|
|
public string fulfillment_status { get; set; }
|
|
public bool? gift_card { get; set; }
|
|
public int? grams { get; set; }
|
|
public string name { get; set; }
|
|
public decimal? price { get; set; }
|
|
public ShopAndPresentmentMoney price_set { get; set; }
|
|
public bool? product_exists { get; set; }
|
|
public string product_id { get; set; }
|
|
private List<NameAndValue> _properties =new List<NameAndValue>();
|
|
public List<NameAndValue> properties
|
|
{
|
|
get
|
|
{
|
|
return _properties;
|
|
}
|
|
set
|
|
{
|
|
_properties = value.Count > 0 ? value : null;
|
|
}
|
|
}
|
|
public int? quantity { get; set; }
|
|
public bool? requires_shipping { get; set; }
|
|
public string sku { get; set; }
|
|
public bool? taxable { get; set; }
|
|
public string title { get; set; }
|
|
public decimal? total_discount { get; set; }
|
|
public ShopAndPresentmentMoney total_discount_set { get; set; }
|
|
public string variant_id { get; set; }
|
|
public string variant_inventory_management { get; set; }
|
|
public string variant_title { get; set; }
|
|
public string vendor { get; set; }
|
|
public List<string> duties { get; set; }
|
|
|
|
}
|
|
|
|
public class ShopifyOrder_shipping_address
|
|
{
|
|
public string first_name { get; set; }
|
|
public string address1 { get; set; }
|
|
public string phone { get; set; }
|
|
public string city { get; set; }
|
|
public string zip { get; set; }
|
|
public string province { get; set; }
|
|
public string country { get; set; }
|
|
public string last_name { get; set; }
|
|
public string address2 { get; set; }
|
|
public string company { get; set; }
|
|
public decimal? latitude { get; set; }
|
|
public decimal? longitude { get; set; }
|
|
public string name { get; set; }
|
|
public string country_code { get; set; }
|
|
public string province_code { get; set; }
|
|
}
|
|
|
|
public class ShopifyOrder_shipping_lines
|
|
{
|
|
public string id { get; set; }
|
|
public string carrier_identifier { get; set; }
|
|
public string code { get; set; }
|
|
public string delivery_category { get; set; }
|
|
public decimal? discounted_price { get; set; }
|
|
public ShopAndPresentmentMoney discounted_price_set { get; set; }
|
|
public string phone { get; set; }
|
|
public decimal? price { get; set; }
|
|
public ShopAndPresentmentMoney price_set { get; set; }
|
|
public string requested_fulfillment_service_id { get; set; }
|
|
public string source { get; set; }
|
|
public string title { get; set; }
|
|
}
|
|
|
|
|
|
public class ShopifyOrdertTansactionsReturnModel
|
|
{
|
|
public List<ShopifyOrdertTansactions> transactions { get; set; }
|
|
}
|
|
|
|
public class ShopifyOrdertTansactions
|
|
{
|
|
public string order_id { get; set; }
|
|
public string kind { get; set; }
|
|
public DateTime? created_at { get; set; }
|
|
}
|
|
|
|
public class NameAndValue
|
|
{
|
|
public string name { get; set; }
|
|
public string value { get; set; }
|
|
}
|
|
} |