Skip to content

Commit

Permalink
Merge branch 'main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
abuzuhri authored Sep 23, 2024
2 parents 35855d4 + e3a1867 commit c3d18f2
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,7 @@ public void SubmitFeedOrderAdjustment()
## Usage Plans and Rate Limits in the Selling Partner API

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

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ public void CreateShipmentPlan()
oCreateInboundShipmentPlanRequest.DestinationMarketplaces = new List<string> {amazonConnection.GetCurrentMarketplace.ID};


oCreateInboundShipmentPlanRequest.SourceAddress = new AddressInput(); // FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320.Address();

oCreateInboundShipmentPlanRequest.SourceAddress = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320.AddressInput();
oCreateInboundShipmentPlanRequest.SourceAddress.AddressLine1 = "Add";
oCreateInboundShipmentPlanRequest.SourceAddress.AddressLine2 = "ADD2";
oCreateInboundShipmentPlanRequest.SourceAddress.City = "City";
Expand Down
7 changes: 6 additions & 1 deletion Source/FikaAmazonAPI/Utils/Country.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
namespace FikaAmazonAPI.Utils
using System.Text.Json.Serialization;

namespace FikaAmazonAPI.Utils
{
public class Country
{
[JsonConstructorAttribute]
public Country() { }

public string Code { get; set; }
public string Name { get; set; }
public string SellercentralURL { get; set; }
Expand Down
4 changes: 4 additions & 0 deletions Source/FikaAmazonAPI/Utils/MarketPlace.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using FikaAmazonAPI.AmazonSpApiSDK.Models.Exceptions;
using System.Collections.Generic;
using System.Linq;
using System.Text.Json.Serialization;
using static FikaAmazonAPI.ConstructFeed.BaseXML;

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

[JsonConstructorAttribute]
public MarketPlace() { }

public static MarketPlace GetMarketPlaceByID(string id)
{
var list = new List<MarketPlace>();
Expand Down
7 changes: 6 additions & 1 deletion Source/FikaAmazonAPI/Utils/Region.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
namespace FikaAmazonAPI.Utils
using System.Text.Json.Serialization;

namespace FikaAmazonAPI.Utils
{
public class Region
{
[JsonConstructorAttribute]
public Region() { }

private Region(string regionName, string hostUrl, string sandboxHostUrl)
{
RegionName = regionName;
Expand Down

0 comments on commit c3d18f2

Please sign in to comment.