@@ -15,7 +15,10 @@ public MessagingService(AmazonCredential amazonCredential) : base(amazonCredenti
1515
1616 public GetMessagingActionsForOrderResponse GetMessagingActionsForOrder ( string amazonOrderId )
1717 {
18- CreateAuthorizedRequest ( MessaginApiUrls . GetMessagingActionsForOrder ( amazonOrderId , MarketPlace . ID ) , RestSharp . Method . GET ) ;
18+ List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
19+ queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
20+
21+ CreateAuthorizedRequest ( MessaginApiUrls . GetMessagingActionsForOrder ( amazonOrderId ) , RestSharp . Method . GET , queryParameters ) ;
1922
2023 var response = ExecuteRequest < GetMessagingActionsForOrderResponse > ( ) ;
2124
@@ -27,7 +30,7 @@ public bool ConfirmCustomizationDetails(string amazonOrderId, CreateConfirmCusto
2730 List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
2831 queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
2932
30- CreateAuthorizedRequest ( MessaginApiUrls . ConfirmCustomizationDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmCustomizationDetailsRequest ) ;
33+ CreateAuthorizedRequest ( MessaginApiUrls . ConfirmCustomizationDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmCustomizationDetailsRequest ) ;
3134
3235 var response = ExecuteRequest < CreateConfirmCustomizationDetailsResponse > ( ) ;
3336 if ( response != null )
@@ -40,21 +43,21 @@ public bool CreateConfirmDeliveryDetails(string amazonOrderId, CreateConfirmCust
4043 List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
4144 queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
4245
43- CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmDeliveryDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmCustomizationDetailsRequest ) ;
46+ CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmDeliveryDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmCustomizationDetailsRequest ) ;
4447
4548 var response = ExecuteRequest < CreateConfirmCustomizationDetailsResponse > ( ) ;
4649 if ( response != null )
4750 return true ;
4851 return false ;
4952
5053 }
51-
54+
5255 public bool CreateLegalDisclosure ( string amazonOrderId , CreateLegalDisclosureRequest createLegalDisclosureRequest )
5356 {
5457 List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
5558 queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
5659
57- CreateAuthorizedRequest ( MessaginApiUrls . CreateLegalDisclosure ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createLegalDisclosureRequest ) ;
60+ CreateAuthorizedRequest ( MessaginApiUrls . CreateLegalDisclosure ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createLegalDisclosureRequest ) ;
5861
5962 var response = ExecuteRequest < CreateLegalDisclosureResponse > ( ) ;
6063 if ( response != null )
@@ -80,7 +83,7 @@ public bool CreateConfirmOrderDetails(string amazonOrderId, CreateConfirmOrderDe
8083 List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
8184 queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
8285
83- CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmOrderDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmOrderDetailsRequest ) ;
86+ CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmOrderDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmOrderDetailsRequest ) ;
8487
8588 var response = ExecuteRequest < CreateConfirmOrderDetailsResponse > ( ) ;
8689 if ( response != null )
@@ -93,7 +96,7 @@ public bool CreateConfirmServiceDetails(string amazonOrderId, CreateConfirmServi
9396 List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
9497 queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
9598
96- CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmServiceDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmServiceDetailsRequest ) ;
99+ CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmServiceDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmServiceDetailsRequest ) ;
97100
98101 var response = ExecuteRequest < CreateConfirmOrderDetailsResponse > ( ) ;
99102 if ( response != null )
@@ -105,7 +108,7 @@ public bool CreateAmazonMotors(string amazonOrderId, CreateAmazonMotorsRequest c
105108 {
106109 List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
107110 queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
108- CreateAuthorizedRequest ( MessaginApiUrls . CreateAmazonMotors ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createAmazonMotorsRequest ) ;
111+ CreateAuthorizedRequest ( MessaginApiUrls . CreateAmazonMotors ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createAmazonMotorsRequest ) ;
109112
110113 var response = ExecuteRequest < CreateConfirmOrderDetailsResponse > ( ) ;
111114 if ( response != null )
@@ -116,7 +119,7 @@ public bool CreateWarranty(string amazonOrderId, CreateWarrantyRequest createWar
116119 {
117120 List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
118121 queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
119- CreateAuthorizedRequest ( MessaginApiUrls . CreateWarranty ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createWarrantyRequest ) ;
122+ CreateAuthorizedRequest ( MessaginApiUrls . CreateWarranty ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createWarrantyRequest ) ;
120123
121124 var response = ExecuteRequest < CreateConfirmOrderDetailsResponse > ( ) ;
122125 if ( response != null )
@@ -139,7 +142,7 @@ public bool CreateDigitalAccessKey(string amazonOrderId, CreateDigitalAccessKeyR
139142 {
140143 List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
141144 queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
142- CreateAuthorizedRequest ( MessaginApiUrls . CreateDigitalAccessKey ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createDigitalAccessKeyRequest ) ;
145+ CreateAuthorizedRequest ( MessaginApiUrls . CreateDigitalAccessKey ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createDigitalAccessKeyRequest ) ;
143146
144147 var response = ExecuteRequest < CreateConfirmOrderDetailsResponse > ( ) ;
145148 if ( response != null )
@@ -150,7 +153,7 @@ public bool CreateUnexpectedProblem(string amazonOrderId, CreateUnexpectedProble
150153 {
151154 List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
152155 queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
153- CreateAuthorizedRequest ( MessaginApiUrls . CreateUnexpectedProblem ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createUnexpectedProblemRequest ) ;
156+ CreateAuthorizedRequest ( MessaginApiUrls . CreateUnexpectedProblem ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createUnexpectedProblemRequest ) ;
154157
155158 var response = ExecuteRequest < CreateUnexpectedProblemResponse > ( ) ;
156159 if ( response != null )
@@ -159,6 +162,6 @@ public bool CreateUnexpectedProblem(string amazonOrderId, CreateUnexpectedProble
159162 }
160163
161164
162-
165+
163166 }
164167}
0 commit comments