Skip to content

Commit

Permalink
Merge pull request #765 from Baros6647/main
Browse files Browse the repository at this point in the history
Fixed project SampleCode
  • Loading branch information
abuzuhri authored Sep 23, 2024
2 parents 8b9a615 + e1651a4 commit e3a1867
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public void CreateShipmentPlan()
oCreateInboundShipmentPlanRequest.DestinationMarketplaces = new List<string> {amazonConnection.GetCurrentMarketplace.ID};


oCreateInboundShipmentPlanRequest.SourceAddress = new 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 e3a1867

Please sign in to comment.