Skip to content

Commit c3d18f2

Browse files
authored
Merge branch 'main' into main
2 parents 35855d4 + e3a1867 commit c3d18f2

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ public void SubmitFeedOrderAdjustment()
593593
## Usage Plans and Rate Limits in the Selling Partner API
594594

595595
Please read this doc to get all information about this limitation
596-
https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/usage-plans-rate-limits/Usage-Plans-and-Rate-Limits.md
596+
https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits
597597

598598
we calc waiting time by read x-amzn-RateLimit-Limit header
599599

Source/FikaAmazonAPI.SampleCode/FulFillmentInboundv20240320Sample .cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ public void CreateShipmentPlan()
1919
oCreateInboundShipmentPlanRequest.DestinationMarketplaces = new List<string> {amazonConnection.GetCurrentMarketplace.ID};
2020

2121

22-
oCreateInboundShipmentPlanRequest.SourceAddress = new AddressInput(); // FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320.Address();
22+
23+
oCreateInboundShipmentPlanRequest.SourceAddress = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320.AddressInput();
2324
oCreateInboundShipmentPlanRequest.SourceAddress.AddressLine1 = "Add";
2425
oCreateInboundShipmentPlanRequest.SourceAddress.AddressLine2 = "ADD2";
2526
oCreateInboundShipmentPlanRequest.SourceAddress.City = "City";

Source/FikaAmazonAPI/Utils/Country.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
namespace FikaAmazonAPI.Utils
1+
using System.Text.Json.Serialization;
2+
3+
namespace FikaAmazonAPI.Utils
24
{
35
public class Country
46
{
7+
[JsonConstructorAttribute]
8+
public Country() { }
9+
510
public string Code { get; set; }
611
public string Name { get; set; }
712
public string SellercentralURL { get; set; }

Source/FikaAmazonAPI/Utils/MarketPlace.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using FikaAmazonAPI.AmazonSpApiSDK.Models.Exceptions;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Text.Json.Serialization;
45
using static FikaAmazonAPI.ConstructFeed.BaseXML;
56

67
namespace FikaAmazonAPI.Utils
@@ -22,6 +23,9 @@ private MarketPlace(string id, Region region, Country country, BaseCurrencyCode
2223
CurrencyCode = currencyCode;
2324
}
2425

26+
[JsonConstructorAttribute]
27+
public MarketPlace() { }
28+
2529
public static MarketPlace GetMarketPlaceByID(string id)
2630
{
2731
var list = new List<MarketPlace>();

Source/FikaAmazonAPI/Utils/Region.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
namespace FikaAmazonAPI.Utils
1+
using System.Text.Json.Serialization;
2+
3+
namespace FikaAmazonAPI.Utils
24
{
35
public class Region
46
{
7+
[JsonConstructorAttribute]
8+
public Region() { }
9+
510
private Region(string regionName, string hostUrl, string sandboxHostUrl)
611
{
712
RegionName = regionName;

0 commit comments

Comments
 (0)