Skip to content

Commit e3a1867

Browse files
authored
Merge pull request #765 from Baros6647/main
Fixed project SampleCode
2 parents 8b9a615 + e1651a4 commit e3a1867

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

Source/FikaAmazonAPI.SampleCode/FulFillmentInboundv20240320Sample .cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public void CreateShipmentPlan()
1717
oCreateInboundShipmentPlanRequest.DestinationMarketplaces = new List<string> {amazonConnection.GetCurrentMarketplace.ID};
1818

1919

20-
oCreateInboundShipmentPlanRequest.SourceAddress = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320.Address();
20+
oCreateInboundShipmentPlanRequest.SourceAddress = new FikaAmazonAPI.AmazonSpApiSDK.Models.FulfillmentInboundv20240320.AddressInput();
2121
oCreateInboundShipmentPlanRequest.SourceAddress.AddressLine1 = "Add";
2222
oCreateInboundShipmentPlanRequest.SourceAddress.AddressLine2 = "ADD2";
2323
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)