From e33141b60142c1691350c14d155d7816188c6343 Mon Sep 17 00:00:00 2001 From: baros6647 Date: Thu, 14 Nov 2024 21:12:16 -0500 Subject: [PATCH 1/2] Rename PaginationToken to paginationToken --- .../v20240320/ParameterListShipmentBase.cs | 6 ++++-- .../Services/FulFillmentInboundServicev20240320.cs | 12 ++++++------ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/Source/FikaAmazonAPI/Parameter/FulFillmentInbound/v20240320/ParameterListShipmentBase.cs b/Source/FikaAmazonAPI/Parameter/FulFillmentInbound/v20240320/ParameterListShipmentBase.cs index 3ca31cda..91f54f7d 100644 --- a/Source/FikaAmazonAPI/Parameter/FulFillmentInbound/v20240320/ParameterListShipmentBase.cs +++ b/Source/FikaAmazonAPI/Parameter/FulFillmentInbound/v20240320/ParameterListShipmentBase.cs @@ -1,9 +1,11 @@ -namespace FikaAmazonAPI.Parameter.FulFillmentInbound.v20240320 +using System.Text.Json; + +namespace FikaAmazonAPI.Parameter.FulFillmentInbound.v20240320 { public class ParameterListShipmentBase : PaginationParameter { public string InboundPlanId { get; set; } public string ShipmentId { get; set; } - public string PaginationToken { get; set; } + public string paginationToken { get; set; } } } diff --git a/Source/FikaAmazonAPI/Services/FulFillmentInboundServicev20240320.cs b/Source/FikaAmazonAPI/Services/FulFillmentInboundServicev20240320.cs index 3464355c..e567d692 100644 --- a/Source/FikaAmazonAPI/Services/FulFillmentInboundServicev20240320.cs +++ b/Source/FikaAmazonAPI/Services/FulFillmentInboundServicev20240320.cs @@ -463,7 +463,7 @@ public async Task> ListShipmentBoxesAsync(ParameterListShipmentBase pa var nextToken = response.Pagination.NextToken; while (!string.IsNullOrEmpty(nextToken) && (!parameterListShipmentBase.maxPages.HasValue || totalPages < parameterListShipmentBase.maxPages.Value)) { - parameterListShipmentBase.PaginationToken = nextToken; + parameterListShipmentBase.paginationToken = nextToken; var getItemNextPage = await ListShipmentBoxesByNextTokenAsync(parameterListShipmentBase, cancellationToken); list.AddRange(getItemNextPage.Boxes); nextToken = getItemNextPage.Pagination?.NextToken; @@ -513,7 +513,7 @@ public async Task> ListShipmentContentUpdatePreviewsA var nextToken = response.Pagination.NextToken; while (!string.IsNullOrEmpty(nextToken) && (!parameterListShipmentBase.maxPages.HasValue || totalPages < parameterListShipmentBase.maxPages.Value)) { - parameterListShipmentBase.PaginationToken = nextToken; + parameterListShipmentBase.paginationToken = nextToken; var getItemNextPage = await ListShipmentContentUpdatePreviewsByNextTokenAsync(parameterListShipmentBase, cancellationToken); list.AddRange(getItemNextPage.ContentUpdatePreviews); nextToken = getItemNextPage.Pagination?.NextToken; @@ -596,7 +596,7 @@ public async Task> ListDeliveryWindowOptionsAsync(Par var nextToken = response.Pagination.NextToken; while (!string.IsNullOrEmpty(nextToken) && (!parameterListShipmentBase.maxPages.HasValue || totalPages < parameterListShipmentBase.maxPages.Value)) { - parameterListShipmentBase.PaginationToken = nextToken; + parameterListShipmentBase.paginationToken = nextToken; var getItemNextPage = await ListDeliveryWindowOptionsByNextTokenAsync(parameterListShipmentBase, cancellationToken); list.AddRange(getItemNextPage.DeliveryWindowOptions); nextToken = getItemNextPage.Pagination?.NextToken; @@ -646,7 +646,7 @@ public async Task> ListShipmentItemsAsync(ParameterListShipmentBase p var nextToken = response.Pagination.NextToken; while (!string.IsNullOrEmpty(nextToken) && (!parameterListShipmentBase.maxPages.HasValue || totalPages < parameterListShipmentBase.maxPages.Value)) { - parameterListShipmentBase.PaginationToken = nextToken; + parameterListShipmentBase.paginationToken = nextToken; var getItemNextPage = await ListShipmentItemsByNextTokenAsync(parameterListShipmentBase, cancellationToken); list.AddRange(getItemNextPage.Items); nextToken = getItemNextPage.Pagination?.NextToken; @@ -700,7 +700,7 @@ public async Task> ListShipmentPalletsAsync(ParameterListShipmentBa var nextToken = response.Pagination.NextToken; while (!string.IsNullOrEmpty(nextToken) && (!parameterListShipmentBase.maxPages.HasValue || totalPages < parameterListShipmentBase.maxPages.Value)) { - parameterListShipmentBase.PaginationToken = nextToken; + parameterListShipmentBase.paginationToken = nextToken; var getItemNextPage = await ListShipmentPalletsByNextTokenAsync(parameterListShipmentBase, cancellationToken); list.AddRange(getItemNextPage.Pallets); nextToken = getItemNextPage.Pagination?.NextToken; @@ -751,7 +751,7 @@ public async Task> GetSelfShipAppoint var nextToken = response.Pagination.NextToken; while (!string.IsNullOrEmpty(nextToken) && (!parameterListShipmentBase.maxPages.HasValue || totalPages < parameterListShipmentBase.maxPages.Value)) { - parameterListShipmentBase.PaginationToken = nextToken; + parameterListShipmentBase.paginationToken = nextToken; var getItemNextPage = await GetSelfShipAppointmentSlotsByNextTokenAsync(parameterListShipmentBase, cancellationToken); list.Add(getItemNextPage.SelfShipAppointmentSlotsAvailability); nextToken = getItemNextPage.Pagination?.NextToken; From 46d7763184a2051ed900b755a88d101ab5725d86 Mon Sep 17 00:00:00 2001 From: baros6647 Date: Thu, 14 Nov 2024 21:16:35 -0500 Subject: [PATCH 2/2] deleted unused --- .../FulFillmentInbound/v20240320/ParameterListShipmentBase.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Source/FikaAmazonAPI/Parameter/FulFillmentInbound/v20240320/ParameterListShipmentBase.cs b/Source/FikaAmazonAPI/Parameter/FulFillmentInbound/v20240320/ParameterListShipmentBase.cs index 91f54f7d..bee463a7 100644 --- a/Source/FikaAmazonAPI/Parameter/FulFillmentInbound/v20240320/ParameterListShipmentBase.cs +++ b/Source/FikaAmazonAPI/Parameter/FulFillmentInbound/v20240320/ParameterListShipmentBase.cs @@ -1,6 +1,4 @@ -using System.Text.Json; - -namespace FikaAmazonAPI.Parameter.FulFillmentInbound.v20240320 +namespace FikaAmazonAPI.Parameter.FulFillmentInbound.v20240320 { public class ParameterListShipmentBase : PaginationParameter {