From 9c40085643323fb4a10f3617f9cd34a6546b5b8f Mon Sep 17 00:00:00 2001 From: Jesse Evers Date: Sat, 24 Apr 2021 15:36:48 -0400 Subject: [PATCH] Remove trailing comma from header generation --- lib/Api/AplusContentApi.php | 20 ++++++++-------- lib/Api/AuthorizationApi.php | 2 +- lib/Api/CatalogApi.php | 6 ++--- lib/Api/FbaInboundApi.php | 34 ++++++++++++++-------------- lib/Api/FbaInboundEligibilityApi.php | 2 +- lib/Api/FbaInventoryApi.php | 2 +- lib/Api/FbaOutboundApi.php | 24 ++++++++++---------- lib/Api/FeedsApi.php | 12 +++++----- lib/Api/FeesApi.php | 4 ++-- lib/Api/FinancesApi.php | 8 +++---- lib/Api/MerchantFulfillmentApi.php | 16 ++++++------- lib/Api/MessagingApi.php | 24 ++++++++++---------- lib/Api/NotificationsApi.php | 16 ++++++------- lib/Api/OrdersApi.php | 12 +++++----- lib/Api/ProductPricingApi.php | 8 +++---- lib/Api/ReportsApi.php | 18 +++++++-------- lib/Api/SalesApi.php | 2 +- lib/Api/SellersApi.php | 2 +- lib/Api/ServiceApi.php | 12 +++++----- lib/Api/ShippingApi.php | 18 +++++++-------- lib/Api/SmallAndLightApi.php | 10 ++++---- lib/Api/SolicitationsApi.php | 4 ++-- lib/Api/UploadsApi.php | 2 +- 23 files changed, 129 insertions(+), 129 deletions(-) diff --git a/lib/Api/AplusContentApi.php b/lib/Api/AplusContentApi.php index da4c2db42..113f3f1c7 100644 --- a/lib/Api/AplusContentApi.php +++ b/lib/Api/AplusContentApi.php @@ -484,7 +484,7 @@ public function createContentDocumentRequest($marketplace_id, $post_content_docu } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -967,7 +967,7 @@ public function getContentDocumentRequest($content_reference_key, $marketplace_i } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1467,7 +1467,7 @@ public function listContentDocumentAsinRelationsRequest($content_reference_key, } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1922,7 +1922,7 @@ public function postContentDocumentApprovalSubmissionRequest($content_reference_ } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -2388,7 +2388,7 @@ public function postContentDocumentAsinRelationsRequest($content_reference_key, } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -2849,7 +2849,7 @@ public function postContentDocumentSuspendSubmissionRequest($content_reference_k } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -3297,7 +3297,7 @@ public function searchContentDocumentsRequest($marketplace_id, $page_token = nul } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -3747,7 +3747,7 @@ public function searchContentPublishRecordsRequest($marketplace_id, $asin, $page } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -4213,7 +4213,7 @@ public function updateContentDocumentRequest($content_reference_key, $marketplac } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -4655,7 +4655,7 @@ public function validateContentDocumentAsinRelationsRequest($marketplace_id, $po } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } diff --git a/lib/Api/AuthorizationApi.php b/lib/Api/AuthorizationApi.php index 0d26398ed..231066e69 100644 --- a/lib/Api/AuthorizationApi.php +++ b/lib/Api/AuthorizationApi.php @@ -530,7 +530,7 @@ public function getAuthorizationCodeRequest($selling_partner_id, $developer_id, $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload', 'errors'], [], - "sellingpartnerapi::migration", + "sellingpartnerapi::migration" ); } diff --git a/lib/Api/CatalogApi.php b/lib/Api/CatalogApi.php index 075b02d88..b31cb1f9b 100644 --- a/lib/Api/CatalogApi.php +++ b/lib/Api/CatalogApi.php @@ -488,7 +488,7 @@ public function getCatalogItemRequest($marketplace_id, $asin) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -920,7 +920,7 @@ public function listCatalogCategoriesRequest($marketplace_id, $asin = null, $sel } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1412,7 +1412,7 @@ public function listCatalogItemsRequest($marketplace_id, $query = null, $query_c } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } diff --git a/lib/Api/FbaInboundApi.php b/lib/Api/FbaInboundApi.php index 14e1a2a87..726522803 100644 --- a/lib/Api/FbaInboundApi.php +++ b/lib/Api/FbaInboundApi.php @@ -506,7 +506,7 @@ public function confirmPreorderRequest($shipment_id, $need_by_date, $marketplace } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -915,7 +915,7 @@ public function confirmTransportRequest($shipment_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1335,7 +1335,7 @@ public function createInboundShipmentRequest($shipment_id, $body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -1742,7 +1742,7 @@ public function createInboundShipmentPlanRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -2157,7 +2157,7 @@ public function estimateTransportRequest($shipment_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -2566,7 +2566,7 @@ public function getBillOfLadingRequest($shipment_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -3006,7 +3006,7 @@ public function getInboundGuidanceRequest($marketplace_id, $seller_sku_list = nu } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -3491,7 +3491,7 @@ public function getLabelsRequest($shipment_id, $page_type, $label_type, $number_ } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -3918,7 +3918,7 @@ public function getPreorderInfoRequest($shipment_id, $marketplace_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -4358,7 +4358,7 @@ public function getPrepInstructionsRequest($ship_to_country_code, $seller_sku_li } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -4820,7 +4820,7 @@ public function getShipmentItemsRequest($query_type, $marketplace_id, $last_upda } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -5247,7 +5247,7 @@ public function getShipmentItemsByShipmentIdRequest($shipment_id, $marketplace_i } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -5733,7 +5733,7 @@ public function getShipmentsRequest($query_type, $marketplace_id, $shipment_stat } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -6142,7 +6142,7 @@ public function getTransportDetailsRequest($shipment_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -6562,7 +6562,7 @@ public function putTransportDetailsRequest($shipment_id, $body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -6988,7 +6988,7 @@ public function updateInboundShipmentRequest($shipment_id, $body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -7403,7 +7403,7 @@ public function voidTransportRequest($shipment_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } diff --git a/lib/Api/FbaInboundEligibilityApi.php b/lib/Api/FbaInboundEligibilityApi.php index 708529cea..d1ac83149 100644 --- a/lib/Api/FbaInboundEligibilityApi.php +++ b/lib/Api/FbaInboundEligibilityApi.php @@ -503,7 +503,7 @@ public function getItemEligibilityPreviewRequest($asin, $program, $marketplace_i } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'ItemEligibilityPreview'], - [], + [] ); } diff --git a/lib/Api/FbaInventoryApi.php b/lib/Api/FbaInventoryApi.php index 2c4addf5d..8316aa606 100644 --- a/lib/Api/FbaInventoryApi.php +++ b/lib/Api/FbaInventoryApi.php @@ -541,7 +541,7 @@ public function getInventorySummariesRequest($granularity_type, $granularity_id, } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } diff --git a/lib/Api/FbaOutboundApi.php b/lib/Api/FbaOutboundApi.php index eec0dbbfc..f0b4977a7 100644 --- a/lib/Api/FbaOutboundApi.php +++ b/lib/Api/FbaOutboundApi.php @@ -474,7 +474,7 @@ public function cancelFulfillmentOrderRequest($seller_fulfillment_order_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -875,7 +875,7 @@ public function createFulfillmentOrderRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -1301,7 +1301,7 @@ public function createFulfillmentReturnRequest($seller_fulfillment_order_id, $bo } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload'], - ['application/json'], + ['application/json'] ); } @@ -1746,7 +1746,7 @@ public function getFeatureInventoryRequest($marketplace_id, $feature_name, $next } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload'], - [], + [] ); } @@ -2192,7 +2192,7 @@ public function getFeatureSKURequest($marketplace_id, $feature_name, $seller_sku } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload'], - [], + [] ); } @@ -2600,7 +2600,7 @@ public function getFeaturesRequest($marketplace_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload'], - [], + [] ); } @@ -3013,7 +3013,7 @@ public function getFulfillmentOrderRequest($seller_fulfillment_order_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload'], - [], + [] ); } @@ -3414,7 +3414,7 @@ public function getFulfillmentPreviewRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload'], - ['application/json'], + ['application/json'] ); } @@ -3828,7 +3828,7 @@ public function getPackageTrackingDetailsRequest($package_number) } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload'], - [], + [] ); } @@ -4242,7 +4242,7 @@ public function listAllFulfillmentOrdersRequest($query_start_date = null, $next_ } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload'], - [], + [] ); } @@ -4692,7 +4692,7 @@ public function listReturnReasonCodesRequest($seller_sku, $language, $marketplac } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload'], - [], + [] ); } @@ -5116,7 +5116,7 @@ public function updateFulfillmentOrderRequest($seller_fulfillment_order_id, $bod } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } diff --git a/lib/Api/FeedsApi.php b/lib/Api/FeedsApi.php index 75b347b2c..f6e408f13 100644 --- a/lib/Api/FeedsApi.php +++ b/lib/Api/FeedsApi.php @@ -490,7 +490,7 @@ public function cancelFeedRequest($feed_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -911,7 +911,7 @@ public function createFeedRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -1338,7 +1338,7 @@ public function createFeedDocumentRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -1773,7 +1773,7 @@ public function getFeedRequest($feed_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -2202,7 +2202,7 @@ public function getFeedDocumentRequest($feed_document_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -2721,7 +2721,7 @@ public function getFeedsRequest($feed_types = null, $marketplace_ids = null, $pa } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } diff --git a/lib/Api/FeesApi.php b/lib/Api/FeesApi.php index 6e651fbad..1a879df9b 100644 --- a/lib/Api/FeesApi.php +++ b/lib/Api/FeesApi.php @@ -481,7 +481,7 @@ public function getMyFeesEstimateForASINRequest($asin, $body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -907,7 +907,7 @@ public function getMyFeesEstimateForSKURequest($seller_sku, $body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } diff --git a/lib/Api/FinancesApi.php b/lib/Api/FinancesApi.php index e9f661560..88aa269d3 100644 --- a/lib/Api/FinancesApi.php +++ b/lib/Api/FinancesApi.php @@ -486,7 +486,7 @@ public function listFinancialEventGroupsRequest($max_results_per_page = 100, $fi } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -911,7 +911,7 @@ public function listFinancialEventsRequest($max_results_per_page = 100, $posted_ } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1331,7 +1331,7 @@ public function listFinancialEventsByGroupIdRequest($event_group_id, $max_result } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1751,7 +1751,7 @@ public function listFinancialEventsByOrderIdRequest($order_id, $max_results_per_ } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } diff --git a/lib/Api/MerchantFulfillmentApi.php b/lib/Api/MerchantFulfillmentApi.php index 50c43ba71..833c4b220 100644 --- a/lib/Api/MerchantFulfillmentApi.php +++ b/lib/Api/MerchantFulfillmentApi.php @@ -474,7 +474,7 @@ public function cancelShipmentRequest($shipment_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -887,7 +887,7 @@ public function cancelShipmentOldRequest($shipment_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1288,7 +1288,7 @@ public function createShipmentRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -1695,7 +1695,7 @@ public function getAdditionalSellerInputsRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -2102,7 +2102,7 @@ public function getAdditionalSellerInputsOldRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -2509,7 +2509,7 @@ public function getEligibleShipmentServicesRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -2916,7 +2916,7 @@ public function getEligibleShipmentServicesOldRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -3335,7 +3335,7 @@ public function getShipmentRequest($shipment_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } diff --git a/lib/Api/MessagingApi.php b/lib/Api/MessagingApi.php index c8486c370..b608cbca9 100644 --- a/lib/Api/MessagingApi.php +++ b/lib/Api/MessagingApi.php @@ -523,7 +523,7 @@ public function confirmCustomizationDetailsRequest($amazon_order_id, $marketplac } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - ['application/json'], + ['application/json'] ); } @@ -991,7 +991,7 @@ public function createAmazonMotorsRequest($amazon_order_id, $marketplace_ids, $b } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - ['application/json'], + ['application/json'] ); } @@ -1459,7 +1459,7 @@ public function createConfirmDeliveryDetailsRequest($amazon_order_id, $marketpla } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - ['application/json'], + ['application/json'] ); } @@ -1927,7 +1927,7 @@ public function createConfirmOrderDetailsRequest($amazon_order_id, $marketplace_ } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - ['application/json'], + ['application/json'] ); } @@ -2395,7 +2395,7 @@ public function createConfirmServiceDetailsRequest($amazon_order_id, $marketplac } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - ['application/json'], + ['application/json'] ); } @@ -2863,7 +2863,7 @@ public function createDigitalAccessKeyRequest($amazon_order_id, $marketplace_ids } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - ['application/json'], + ['application/json'] ); } @@ -3331,7 +3331,7 @@ public function createLegalDisclosureRequest($amazon_order_id, $marketplace_ids, } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - ['application/json'], + ['application/json'] ); } @@ -3788,7 +3788,7 @@ public function createNegativeFeedbackRemovalRequest($amazon_order_id, $marketpl } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - [], + [] ); } @@ -4250,7 +4250,7 @@ public function createUnexpectedProblemRequest($amazon_order_id, $marketplace_id } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - ['application/json'], + ['application/json'] ); } @@ -4718,7 +4718,7 @@ public function createWarrantyRequest($amazon_order_id, $marketplace_ids, $body) } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - ['application/json'], + ['application/json'] ); } @@ -5175,7 +5175,7 @@ public function getAttributesRequest($amazon_order_id, $marketplace_ids) } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - [], + [] ); } @@ -5626,7 +5626,7 @@ public function getMessagingActionsForOrderRequest($amazon_order_id, $marketplac } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - [], + [] ); } diff --git a/lib/Api/NotificationsApi.php b/lib/Api/NotificationsApi.php index a9d58c5e4..133c1c167 100644 --- a/lib/Api/NotificationsApi.php +++ b/lib/Api/NotificationsApi.php @@ -503,7 +503,7 @@ public function createDestinationRequest($body) $headers = $this->headerSelector->selectHeaders( ['application/json', 'Successful Response'], ['application/json'], - "sellingpartnerapi::notifications", + "sellingpartnerapi::notifications" ); } @@ -969,7 +969,7 @@ public function createSubscriptionRequest($notification_type, $body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'Successful Response'], - ['application/json'], + ['application/json'] ); } @@ -1425,7 +1425,7 @@ public function deleteDestinationRequest($destination_id) $headers = $this->headerSelector->selectHeaders( ['application/json', 'Successful Response'], [], - "sellingpartnerapi::notifications", + "sellingpartnerapi::notifications" ); } @@ -1894,7 +1894,7 @@ public function deleteSubscriptionByIdRequest($subscription_id, $notification_ty $headers = $this->headerSelector->selectHeaders( ['application/json', 'Successful Operation Response'], [], - "sellingpartnerapi::notifications", + "sellingpartnerapi::notifications" ); } @@ -2344,7 +2344,7 @@ public function getDestinationRequest($destination_id) $headers = $this->headerSelector->selectHeaders( ['application/json', 'Successful Response'], [], - "sellingpartnerapi::notifications", + "sellingpartnerapi::notifications" ); } @@ -2775,7 +2775,7 @@ public function getDestinationsRequest() $headers = $this->headerSelector->selectHeaders( ['application/json', 'Successful Response'], [], - "sellingpartnerapi::notifications", + "sellingpartnerapi::notifications" ); } @@ -3204,7 +3204,7 @@ public function getSubscriptionRequest($notification_type) } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'Successful Response'], - [], + [] ); } @@ -3673,7 +3673,7 @@ public function getSubscriptionByIdRequest($subscription_id, $notification_type) $headers = $this->headerSelector->selectHeaders( ['application/json', 'Successful Response'], [], - "sellingpartnerapi::notifications", + "sellingpartnerapi::notifications" ); } diff --git a/lib/Api/OrdersApi.php b/lib/Api/OrdersApi.php index 0531bc3d0..d790c405e 100644 --- a/lib/Api/OrdersApi.php +++ b/lib/Api/OrdersApi.php @@ -450,7 +450,7 @@ public function getOrderRequest($order_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -839,7 +839,7 @@ public function getOrderAddressRequest($order_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1228,7 +1228,7 @@ public function getOrderBuyerInfoRequest($order_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1629,7 +1629,7 @@ public function getOrderItemsRequest($order_id, $next_token = null) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -2030,7 +2030,7 @@ public function getOrderItemsBuyerInfoRequest($order_id, $next_token = null) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -2582,7 +2582,7 @@ public function getOrdersRequest($marketplace_ids, $created_after = null, $creat } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } diff --git a/lib/Api/ProductPricingApi.php b/lib/Api/ProductPricingApi.php index 5fe1e8308..bd9fc1538 100644 --- a/lib/Api/ProductPricingApi.php +++ b/lib/Api/ProductPricingApi.php @@ -519,7 +519,7 @@ public function getCompetitivePricingRequest($marketplace_id, $item_type, $asins } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -964,7 +964,7 @@ public function getItemOffersRequest($marketplace_id, $item_condition, $asin) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1409,7 +1409,7 @@ public function getListingOffersRequest($marketplace_id, $item_condition, $selle } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1879,7 +1879,7 @@ public function getPricingRequest($marketplace_id, $item_type, $asins = null, $s } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } diff --git a/lib/Api/ReportsApi.php b/lib/Api/ReportsApi.php index 518107602..c28f1d2f2 100644 --- a/lib/Api/ReportsApi.php +++ b/lib/Api/ReportsApi.php @@ -490,7 +490,7 @@ public function cancelReportRequest($report_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -919,7 +919,7 @@ public function cancelReportScheduleRequest($report_schedule_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1340,7 +1340,7 @@ public function createReportRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -1767,7 +1767,7 @@ public function createReportScheduleRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -2202,7 +2202,7 @@ public function getReportRequest($report_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -2631,7 +2631,7 @@ public function getReportDocumentRequest($report_document_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -3060,7 +3060,7 @@ public function getReportScheduleRequest($report_schedule_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -3495,7 +3495,7 @@ public function getReportSchedulesRequest($report_types) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -4014,7 +4014,7 @@ public function getReportsRequest($report_types = null, $processing_statuses = n } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } diff --git a/lib/Api/SalesApi.php b/lib/Api/SalesApi.php index 57e1779d1..6accaad22 100644 --- a/lib/Api/SalesApi.php +++ b/lib/Api/SalesApi.php @@ -597,7 +597,7 @@ public function getOrderMetricsRequest($marketplace_ids, $interval, $granularity } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload'], - [], + [] ); } diff --git a/lib/Api/SellersApi.php b/lib/Api/SellersApi.php index 6ed122420..5183f42d0 100644 --- a/lib/Api/SellersApi.php +++ b/lib/Api/SellersApi.php @@ -471,7 +471,7 @@ public function getMarketplaceParticipationsRequest() } else { $headers = $this->headerSelector->selectHeaders( ['application/json', 'payload'], - [], + [] ); } diff --git a/lib/Api/ServiceApi.php b/lib/Api/ServiceApi.php index 36f0b1a94..1de11b6bf 100644 --- a/lib/Api/ServiceApi.php +++ b/lib/Api/ServiceApi.php @@ -528,7 +528,7 @@ public function addAppointmentForServiceJobByServiceJobIdRequest($service_job_id } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -1018,7 +1018,7 @@ public function cancelServiceJobByServiceJobIdRequest($service_job_id, $cancella } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1474,7 +1474,7 @@ public function completeServiceJobByServiceJobIdRequest($service_job_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1930,7 +1930,7 @@ public function getServiceJobByServiceJobIdRequest($service_job_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -2520,7 +2520,7 @@ public function getServiceJobsRequest($marketplace_ids, $service_order_ids = nul } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -3013,7 +3013,7 @@ public function rescheduleAppointmentForServiceJobByServiceJobIdRequest($service } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } diff --git a/lib/Api/ShippingApi.php b/lib/Api/ShippingApi.php index 96d03486f..dab23b3f3 100644 --- a/lib/Api/ShippingApi.php +++ b/lib/Api/ShippingApi.php @@ -470,7 +470,7 @@ public function cancelShipmentRequest($shipment_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -871,7 +871,7 @@ public function createShipmentRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -1267,7 +1267,7 @@ public function getAccountRequest() } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1668,7 +1668,7 @@ public function getRatesRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -2083,7 +2083,7 @@ public function getShipmentRequest($shipment_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -2492,7 +2492,7 @@ public function getTrackingInformationRequest($tracking_id) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -2912,7 +2912,7 @@ public function purchaseLabelsRequest($shipment_id, $body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -3319,7 +3319,7 @@ public function purchaseShipmentRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -3764,7 +3764,7 @@ public function retrieveShippingLabelRequest($shipment_id, $tracking_id, $body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } diff --git a/lib/Api/SmallAndLightApi.php b/lib/Api/SmallAndLightApi.php index 4965232b5..218baebc3 100644 --- a/lib/Api/SmallAndLightApi.php +++ b/lib/Api/SmallAndLightApi.php @@ -368,7 +368,7 @@ public function deleteSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $ma } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -819,7 +819,7 @@ public function getSmallAndLightEligibilityBySellerSKURequest($seller_sku, $mark } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1270,7 +1270,7 @@ public function getSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marke } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } @@ -1671,7 +1671,7 @@ public function getSmallAndLightFeePreviewRequest($body) } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - ['application/json'], + ['application/json'] ); } @@ -2128,7 +2128,7 @@ public function putSmallAndLightEnrollmentBySellerSKURequest($seller_sku, $marke } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); } diff --git a/lib/Api/SolicitationsApi.php b/lib/Api/SolicitationsApi.php index a24578552..c7d62ed46 100644 --- a/lib/Api/SolicitationsApi.php +++ b/lib/Api/SolicitationsApi.php @@ -512,7 +512,7 @@ public function createProductReviewAndSellerFeedbackSolicitationRequest($amazon_ } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - [], + [] ); } @@ -963,7 +963,7 @@ public function getSolicitationActionsForOrderRequest($amazon_order_id, $marketp } else { $headers = $this->headerSelector->selectHeaders( ['application/hal+json'], - [], + [] ); } diff --git a/lib/Api/UploadsApi.php b/lib/Api/UploadsApi.php index f4b74ada8..323d93f63 100644 --- a/lib/Api/UploadsApi.php +++ b/lib/Api/UploadsApi.php @@ -542,7 +542,7 @@ public function createUploadDestinationForResourceRequest($marketplace_ids, $con } else { $headers = $this->headerSelector->selectHeaders( ['application/json'], - [], + [] ); }