-
Notifications
You must be signed in to change notification settings - Fork 2
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
1 parent
2376b5a
commit cf78330
Showing
11 changed files
with
1,233 additions
and
247 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
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,20 @@ | ||
using EbaySharp.Entities.Commerce.Taxonomy; | ||
using EbaySharp.Entities.Sell.Stores.Store; | ||
using EbaySharp.Source; | ||
|
||
namespace EbaySharp.Controllers | ||
{ | ||
class StoresController | ||
{ | ||
private string accessToken; | ||
public StoresController(string accessToken) | ||
{ | ||
this.accessToken = accessToken; | ||
} | ||
public async Task<StoreCategories> GetStoreCategories() | ||
{ | ||
string requestUrl = $"{Constants.API_SERVER_URL}{Constants.SELL.ENDPOINT_URL}{Constants.SELL.STORES.ENDPOINT_URL}{Constants.SELL.STORES.STORE.ENDPOINT_URL}{Constants.SELL.STORES.STORE.METHODS.GET_STORE_CATEGORIES}"; | ||
return await new RequestExecuter().ExecuteGetRequest<StoreCategories>(requestUrl, $"Bearer {accessToken}"); | ||
} | ||
} | ||
} |
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
5 changes: 4 additions & 1 deletion
5
EbaySharp/Entities/Sell/Metadata/Marketplace/ReturnPolicies.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 |
---|---|---|
@@ -1,7 +1,10 @@ | ||
namespace EbaySharp.Entities.Sell.Metadata.Marketplace | ||
using System.Text.Json.Serialization; | ||
|
||
namespace EbaySharp.Entities.Sell.Metadata.Marketplace | ||
{ | ||
public class ReturnPolicies | ||
{ | ||
[JsonPropertyName("returnPolicies")] | ||
public ReturnPolicy[] ReturnPolicyList { get; set; } | ||
} | ||
} |
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,11 @@ | ||
namespace EbaySharp.Entities.Sell.Stores.Store | ||
{ | ||
public class ChildrenCategory | ||
{ | ||
public string CategoryId { get; set; } | ||
public string CategoryName { get; set; } | ||
public List<ChildrenCategory> ChildrenCategories { get; set; } | ||
public int? Level { get; set; } | ||
public int? Order { get; set; } | ||
} | ||
} |
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,10 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace EbaySharp.Entities.Sell.Stores.Store | ||
{ | ||
public class StoreCategories | ||
{ | ||
[JsonPropertyName("storeCategories")] | ||
public List<StoreCategory> StoreCategoriesList { get; set; } | ||
} | ||
} |
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,11 @@ | ||
namespace EbaySharp.Entities.Sell.Stores.Store | ||
{ | ||
public class StoreCategory | ||
{ | ||
public string CategoryId { get; set; } | ||
public string CategoryName { get; set; } | ||
public List<ChildrenCategory> ChildrenCategories { get; set; } | ||
public int? Level { get; set; } | ||
public int? Order { get; set; } | ||
} | ||
} |
Oops, something went wrong.