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.
134 lines
4.2 KiB
C#
134 lines
4.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace TradeManageNew.Models.ShopifyUsedSale
|
|
{
|
|
public partial class ShopifyUsedSaleOrderDto
|
|
{
|
|
[JsonProperty("order")] public Order Order { get; set; }
|
|
|
|
[JsonProperty("recipient")] public Recipient Recipient { get; set; }
|
|
|
|
[JsonProperty("items")] public List<Item> Items { get; set; }
|
|
|
|
[JsonProperty("financial")] public Financial Financial { get; set; }
|
|
|
|
[JsonProperty("customer")] public Customer Customer { get; set; }
|
|
|
|
[JsonProperty("remark")] public Remark Remark { get; set; }
|
|
}
|
|
|
|
public class Customer
|
|
{
|
|
[JsonProperty("email")] public string Email { get; set; }
|
|
|
|
[JsonProperty("phone")] public string Phone { get; set; }
|
|
|
|
[JsonProperty("first_name")] public string FirstName { get; set; }
|
|
|
|
[JsonProperty("last_name")] public string LastName { get; set; }
|
|
|
|
[JsonProperty("customer_id")] public string CustomerId { get; set; }
|
|
}
|
|
|
|
public class Financial
|
|
{
|
|
[JsonProperty("currency")] public string Currency { get; set; }
|
|
|
|
[JsonProperty("total_price")] public decimal TotalPrice { get; set; }
|
|
|
|
[JsonProperty("subtotal_price")] public decimal SubtotalPrice { get; set; }
|
|
|
|
[JsonProperty("total_tax")] public decimal TotalTax { get; set; }
|
|
|
|
[JsonProperty("total_discounts")] public decimal TotalDiscounts { get; set; }
|
|
|
|
[JsonProperty("shipping_price")] public decimal ShippingPrice { get; set; }
|
|
|
|
[JsonProperty("payment_method")] public string PaymentMethod { get; set; }
|
|
|
|
[JsonProperty("financial_status")] public string FinancialStatus { get; set; }
|
|
|
|
[JsonProperty("refunded_amount")] public decimal RefundedAmount { get; set; }
|
|
}
|
|
|
|
public class Item
|
|
{
|
|
[JsonProperty("origin_sku")] public string OriginSku { get; set; }
|
|
|
|
[JsonProperty("sku")] public string Sku { get; set; }
|
|
|
|
[JsonProperty("product_code")] public string ProductCode { get; set; }
|
|
|
|
[JsonProperty("quantity")] public int Quantity { get; set; }
|
|
|
|
[JsonProperty("price")] public decimal Price { get; set; }
|
|
|
|
[JsonProperty("title")] public string Title { get; set; }
|
|
|
|
[JsonProperty("variant_title")] public string VariantTitle { get; set; }
|
|
|
|
[JsonProperty("product_id")] public string ProductId { get; set; }
|
|
|
|
[JsonProperty("variant_id")] public string VariantId { get; set; }
|
|
|
|
[JsonProperty("properties")] public List<string> Properties { get; set; }
|
|
|
|
[JsonProperty("image")] public string Image { get; set; }
|
|
|
|
[JsonProperty("shipping_method")] public string ShippingMethod { get; set; }
|
|
}
|
|
|
|
public class Order
|
|
{
|
|
[JsonProperty("order_id")] public string OrderId { get; set; }
|
|
|
|
[JsonProperty("order_number")] public string OrderNumber { get; set; }
|
|
|
|
[JsonProperty("order_name")] public string OrderName { get; set; }
|
|
|
|
[JsonProperty("created_at")] public DateTimeOffset CreatedAt { get; set; }
|
|
|
|
[JsonProperty("updated_at")] public DateTimeOffset UpdatedAt { get; set; }
|
|
|
|
[JsonProperty("processed_at")] public DateTimeOffset ProcessedAt { get; set; }
|
|
}
|
|
|
|
public class Recipient
|
|
{
|
|
[JsonProperty("name")] public string Name { get; set; }
|
|
|
|
[JsonProperty("phone")] public string Phone { get; set; }
|
|
|
|
[JsonProperty("address")] public Address Address { get; set; }
|
|
}
|
|
|
|
public class Address
|
|
{
|
|
[JsonProperty("full")] public string Full { get; set; }
|
|
|
|
[JsonProperty("detail")] public string Detail { get; set; }
|
|
|
|
[JsonProperty("detail2")] public string Detail2 { get; set; }
|
|
|
|
[JsonProperty("city")] public string City { get; set; }
|
|
|
|
[JsonProperty("province")] public string Province { get; set; }
|
|
|
|
[JsonProperty("province_code")] public string ProvinceCode { get; set; }
|
|
|
|
[JsonProperty("zip")] public string Zip { get; set; }
|
|
|
|
[JsonProperty("country")] public string Country { get; set; }
|
|
|
|
[JsonProperty("country_code")] public string CountryCode { get; set; }
|
|
}
|
|
|
|
public partial class Remark
|
|
{
|
|
[JsonProperty("note")] public string Note { get; set; }
|
|
|
|
[JsonProperty("tags")] public string Tags { get; set; }
|
|
}
|
|
} |