-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
74 changed files
with
3,095 additions
and
6 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
479 changes: 479 additions & 0 deletions
479
...ent.ByteDance.TikTokGlobalShop/Extensions/TikTokShopClientExecuteFulfillmentExtensions.cs
Large diffs are not rendered by default.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
...e.TikTokGlobalShop/Models/Fulfillment/Orders/FulfillmentGetOrderSplitAttributesRequest.cs
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [GET] /fulfillment/{version}/orders/split_attributes 接口的请求。</para> | ||
/// </summary> | ||
public class FulfillmentGetOrderSplitAttributesRequest : TikTokShopRequest | ||
{ | ||
/// <summary> | ||
/// 获取或设置订单 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonIgnore] | ||
[System.Text.Json.Serialization.JsonIgnore] | ||
public string OrderId { get; set; } = string.Empty; | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
....TikTokGlobalShop/Models/Fulfillment/Orders/FulfillmentGetOrderSplitAttributesResponse.cs
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
namespace SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [GET] /fulfillment/{version}/orders/split_attributes 接口的响应。</para> | ||
/// </summary> | ||
public class FulfillmentGetOrderSplitAttributesResponse : TikTokShopResponse<FulfillmentGetOrderSplitAttributesResponse.Types.Data> | ||
{ | ||
public static class Types | ||
{ | ||
public class Data | ||
{ | ||
public static class Types | ||
{ | ||
public class SplitAttribute | ||
{ | ||
/// <summary> | ||
/// 获取或设置订单 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("order_id")] | ||
[System.Text.Json.Serialization.JsonPropertyName("order_id")] | ||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))] | ||
public string OrderId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 获取或设置是否可分单。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("can_split")] | ||
[System.Text.Json.Serialization.JsonPropertyName("can_split")] | ||
public bool CanSplit { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置原因。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("reason")] | ||
[System.Text.Json.Serialization.JsonPropertyName("reason")] | ||
public string? Reason { get; set; } | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// 获取或设置拆分属性列表。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("split_attributes")] | ||
[System.Text.Json.Serialization.JsonPropertyName("split_attributes")] | ||
public Types.SplitAttribute[] SplitAttributeList { get; set; } = default!; | ||
} | ||
} | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
...yteDance.TikTokGlobalShop/Models/Fulfillment/Orders/FulfillmentGetOrderTrackingRequest.cs
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [GET] /fulfillment/{version}/orders/{order_id}/tracking 接口的请求。</para> | ||
/// </summary> | ||
public class FulfillmentGetOrderTrackingRequest : TikTokShopRequest | ||
{ | ||
/// <summary> | ||
/// 获取或设置订单 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonIgnore] | ||
[System.Text.Json.Serialization.JsonIgnore] | ||
public string OrderId { get; set; } = string.Empty; | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
...teDance.TikTokGlobalShop/Models/Fulfillment/Orders/FulfillmentGetOrderTrackingResponse.cs
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
namespace SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [GET] /fulfillment/{version}/orders/{order_id}/tracking 接口的响应。</para> | ||
/// </summary> | ||
public class FulfillmentGetOrderTrackingResponse : TikTokShopResponse<FulfillmentGetOrderTrackingResponse.Types.Data> | ||
{ | ||
public static class Types | ||
{ | ||
public class Data | ||
{ | ||
public static class Types | ||
{ | ||
public class Tracking | ||
{ | ||
/// <summary> | ||
/// 获取或设置描述。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("description")] | ||
[System.Text.Json.Serialization.JsonPropertyName("description")] | ||
public string Description { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 获取或设置更新时间毫秒级时间戳。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("update_time_millis")] | ||
[System.Text.Json.Serialization.JsonPropertyName("update_time_millis")] | ||
public long UpdateTimeMilliseconds { get; set; } | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// 获取或设置物流轨迹列表。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("tracking")] | ||
[System.Text.Json.Serialization.JsonPropertyName("tracking")] | ||
public Types.Tracking[] TrackingList { get; set; } = default!; | ||
} | ||
} | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...kTokGlobalShop/Models/Fulfillment/Orders/FulfillmentSearchOrderShippingServicesRequest.cs
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [POST] /fulfillment/{version}/orders/{order_id}/shipping_services/query 接口的请求。</para> | ||
/// </summary> | ||
public class FulfillmentSearchOrderShippingServicesRequest : TikTokShopRequest | ||
{ | ||
public static class Types | ||
{ | ||
public class PackageDimension : FulfillmentCreatePackageRequest.Types.PackageDimension | ||
{ | ||
} | ||
|
||
public class PackageWeight : FulfillmentCreatePackageRequest.Types.PackageWeight | ||
{ | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// 获取或设置订单 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonIgnore] | ||
[System.Text.Json.Serialization.JsonIgnore] | ||
public string OrderId { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// 获取或设置订单行 ID 列表。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("order_line_item_ids")] | ||
[System.Text.Json.Serialization.JsonPropertyName("order_line_item_ids")] | ||
public IList<string>? OrderLineItemIdList { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置包裹尺寸信息。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("dimension")] | ||
[System.Text.Json.Serialization.JsonPropertyName("dimension")] | ||
public Types.PackageDimension? PackageDimension { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置包裹重量信息。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("weight")] | ||
[System.Text.Json.Serialization.JsonPropertyName("weight")] | ||
public Types.PackageWeight? PackageWeight { get; set; } | ||
} | ||
} |
130 changes: 130 additions & 0 deletions
130
...TokGlobalShop/Models/Fulfillment/Orders/FulfillmentSearchOrderShippingServicesResponse.cs
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 |
---|---|---|
@@ -0,0 +1,130 @@ | ||
namespace SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [POST] /fulfillment/{version}/orders/{order_id}/shipping_services/query 接口的响应。</para> | ||
/// </summary> | ||
public class FulfillmentSearchOrderShippingServicesResponse : TikTokShopResponse<FulfillmentSearchOrderShippingServicesResponse.Types.Data> | ||
{ | ||
public static class Types | ||
{ | ||
public class Data | ||
{ | ||
public static class Types | ||
{ | ||
public class PackageDimension : FulfillmentGetPackageDetailResponse.Types.Data.Types.PackageDimension | ||
{ | ||
} | ||
|
||
public class PackageWeight : FulfillmentGetPackageDetailResponse.Types.Data.Types.PackageWeight | ||
{ | ||
} | ||
|
||
public class ShippingService | ||
{ | ||
/// <summary> | ||
/// 获取或设置运输服务 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("id")] | ||
[System.Text.Json.Serialization.JsonPropertyName("id")] | ||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))] | ||
public string ShippingServiceId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 获取或设置运输服务名称。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("name")] | ||
[System.Text.Json.Serialization.JsonPropertyName("name")] | ||
public string Name { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 获取或设置币种。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("currency")] | ||
[System.Text.Json.Serialization.JsonPropertyName("currency")] | ||
public string Currency { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 获取或设置价格。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("price")] | ||
[Newtonsoft.Json.JsonConverter(typeof(Newtonsoft.Json.Converters.Common.TextualNumberConverter))] | ||
[System.Text.Json.Serialization.JsonPropertyName("price")] | ||
[System.Text.Json.Serialization.JsonNumberHandling(System.Text.Json.Serialization.JsonNumberHandling.AllowReadingFromString)] | ||
public decimal Price { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置最小运输天数。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("earliest_delivery_days")] | ||
[System.Text.Json.Serialization.JsonPropertyName("earliest_delivery_days")] | ||
public int EarliestDeliveryDays { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置最大运输天数。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("latest_delivery_days")] | ||
[System.Text.Json.Serialization.JsonPropertyName("latest_delivery_days")] | ||
public int LatestDeliveryDays { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置是否为默认服务。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("is_default")] | ||
[System.Text.Json.Serialization.JsonPropertyName("is_default")] | ||
public bool IsDefault { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置运输服务商 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("shipping_provider_id")] | ||
[System.Text.Json.Serialization.JsonPropertyName("shipping_provider_id")] | ||
public string? ShippingProviderId { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置运输服务商名称。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("shipping_provider_name")] | ||
[System.Text.Json.Serialization.JsonPropertyName("shipping_provider_name")] | ||
public string? ShippingProviderName { get; set; } | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// 获取或设置订单 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("order_id")] | ||
[System.Text.Json.Serialization.JsonPropertyName("order_id")] | ||
[System.Text.Json.Serialization.JsonConverter(typeof(System.Text.Json.Serialization.Common.NumericalStringReadOnlyConverter))] | ||
public string OrderId { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 获取或设置订单行 ID 列表。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("order_line_id")] | ||
[System.Text.Json.Serialization.JsonPropertyName("order_line_id")] | ||
public string[]? OrderLineItemIdList { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置包裹尺寸信息。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("dimension")] | ||
[System.Text.Json.Serialization.JsonPropertyName("dimension")] | ||
public Types.PackageDimension? PackageDimension { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置包裹重量信息。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("weight")] | ||
[System.Text.Json.Serialization.JsonPropertyName("weight")] | ||
public Types.PackageWeight? PackageWeight { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置运输服务列表。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("shipping_services")] | ||
[System.Text.Json.Serialization.JsonPropertyName("shipping_services")] | ||
public Types.ShippingService[] ShippingServiceList { get; set; } = default!; | ||
} | ||
} | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...ient.ByteDance.TikTokGlobalShop/Models/Fulfillment/Orders/FulfillmentSplitOrderRequest.cs
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace SKIT.FlurlHttpClient.ByteDance.TikTokGlobalShop.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [POST] /fulfillment/{version}/orders/{order_id}/split 接口的请求。</para> | ||
/// </summary> | ||
public class FulfillmentSplitOrderRequest : TikTokShopRequest | ||
{ | ||
public static class Types | ||
{ | ||
public class SplittableGroup | ||
{ | ||
/// <summary> | ||
/// 获取或设置分组 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("id")] | ||
[System.Text.Json.Serialization.JsonPropertyName("id")] | ||
public string SplittableGroupId { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// 获取或设置订单行 ID 列表。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("order_line_item_ids")] | ||
[System.Text.Json.Serialization.JsonPropertyName("order_line_item_ids")] | ||
public IList<string> OrderLineItemIdList { get; set; } = new List<string>(); | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// 获取或设置订单 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonIgnore] | ||
[System.Text.Json.Serialization.JsonIgnore] | ||
public string OrderId { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// 获取或设置分组列表。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("splittable_groups")] | ||
[System.Text.Json.Serialization.JsonPropertyName("splittable_groups")] | ||
public IList<Types.SplittableGroup> SplittableGroupList { get; set; } = new List<Types.SplittableGroup>(); | ||
} | ||
} |
Oops, something went wrong.