@@ -15,7 +15,10 @@ public MessagingService(AmazonCredential amazonCredential) : base(amazonCredenti
15
15
16
16
public GetMessagingActionsForOrderResponse GetMessagingActionsForOrder ( string amazonOrderId )
17
17
{
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 ) ;
19
22
20
23
var response = ExecuteRequest < GetMessagingActionsForOrderResponse > ( ) ;
21
24
@@ -27,7 +30,7 @@ public bool ConfirmCustomizationDetails(string amazonOrderId, CreateConfirmCusto
27
30
List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
28
31
queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
29
32
30
- CreateAuthorizedRequest ( MessaginApiUrls . ConfirmCustomizationDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmCustomizationDetailsRequest ) ;
33
+ CreateAuthorizedRequest ( MessaginApiUrls . ConfirmCustomizationDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmCustomizationDetailsRequest ) ;
31
34
32
35
var response = ExecuteRequest < CreateConfirmCustomizationDetailsResponse > ( ) ;
33
36
if ( response != null )
@@ -40,21 +43,21 @@ public bool CreateConfirmDeliveryDetails(string amazonOrderId, CreateConfirmCust
40
43
List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
41
44
queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
42
45
43
- CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmDeliveryDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmCustomizationDetailsRequest ) ;
46
+ CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmDeliveryDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmCustomizationDetailsRequest ) ;
44
47
45
48
var response = ExecuteRequest < CreateConfirmCustomizationDetailsResponse > ( ) ;
46
49
if ( response != null )
47
50
return true ;
48
51
return false ;
49
52
50
53
}
51
-
54
+
52
55
public bool CreateLegalDisclosure ( string amazonOrderId , CreateLegalDisclosureRequest createLegalDisclosureRequest )
53
56
{
54
57
List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
55
58
queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
56
59
57
- CreateAuthorizedRequest ( MessaginApiUrls . CreateLegalDisclosure ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createLegalDisclosureRequest ) ;
60
+ CreateAuthorizedRequest ( MessaginApiUrls . CreateLegalDisclosure ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createLegalDisclosureRequest ) ;
58
61
59
62
var response = ExecuteRequest < CreateLegalDisclosureResponse > ( ) ;
60
63
if ( response != null )
@@ -80,7 +83,7 @@ public bool CreateConfirmOrderDetails(string amazonOrderId, CreateConfirmOrderDe
80
83
List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
81
84
queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
82
85
83
- CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmOrderDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmOrderDetailsRequest ) ;
86
+ CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmOrderDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmOrderDetailsRequest ) ;
84
87
85
88
var response = ExecuteRequest < CreateConfirmOrderDetailsResponse > ( ) ;
86
89
if ( response != null )
@@ -93,7 +96,7 @@ public bool CreateConfirmServiceDetails(string amazonOrderId, CreateConfirmServi
93
96
List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
94
97
queryParameters . Add ( new KeyValuePair < string , string > ( "marketplaceIds" , MarketPlace . ID ) ) ;
95
98
96
- CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmServiceDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmServiceDetailsRequest ) ;
99
+ CreateAuthorizedRequest ( MessaginApiUrls . CreateConfirmServiceDetails ( amazonOrderId ) , RestSharp . Method . POST , queryParameters , postJsonObj : createConfirmServiceDetailsRequest ) ;
97
100
98
101
var response = ExecuteRequest < CreateConfirmOrderDetailsResponse > ( ) ;
99
102
if ( response != null )
@@ -105,7 +108,7 @@ public bool CreateAmazonMotors(string amazonOrderId, CreateAmazonMotorsRequest c
105
108
{
106
109
List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
107
110
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 ) ;
109
112
110
113
var response = ExecuteRequest < CreateConfirmOrderDetailsResponse > ( ) ;
111
114
if ( response != null )
@@ -116,7 +119,7 @@ public bool CreateWarranty(string amazonOrderId, CreateWarrantyRequest createWar
116
119
{
117
120
List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
118
121
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 ) ;
120
123
121
124
var response = ExecuteRequest < CreateConfirmOrderDetailsResponse > ( ) ;
122
125
if ( response != null )
@@ -139,7 +142,7 @@ public bool CreateDigitalAccessKey(string amazonOrderId, CreateDigitalAccessKeyR
139
142
{
140
143
List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
141
144
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 ) ;
143
146
144
147
var response = ExecuteRequest < CreateConfirmOrderDetailsResponse > ( ) ;
145
148
if ( response != null )
@@ -150,7 +153,7 @@ public bool CreateUnexpectedProblem(string amazonOrderId, CreateUnexpectedProble
150
153
{
151
154
List < KeyValuePair < string , string > > queryParameters = new List < KeyValuePair < string , string > > ( ) ;
152
155
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 ) ;
154
157
155
158
var response = ExecuteRequest < CreateUnexpectedProblemResponse > ( ) ;
156
159
if ( response != null )
@@ -159,6 +162,6 @@ public bool CreateUnexpectedProblem(string amazonOrderId, CreateUnexpectedProble
159
162
}
160
163
161
164
162
-
165
+
163
166
}
164
167
}
0 commit comments