Skip to content

Commit 4ab94f9

Browse files
committed
Update version and base template
1 parent e7be7d1 commit 4ab94f9

File tree

5 files changed

+71
-110
lines changed

5 files changed

+71
-110
lines changed

src/api/EstimatesApi.js

Lines changed: 30 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -19,33 +19,9 @@ import EstimateResponse from '../model/EstimateResponse';
1919
export default class EstimatesApi {
2020
constructor(apiClient) {
2121
this.apiClient = apiClient || ApiClient.instance;
22-
this.createBitcoinEstimate = this.createBitcoinEstimate.bind(this);
23-
this.createBitcoinEstimateWithHttpInfo =
24-
this.createBitcoinEstimateWithHttpInfo.bind(this);
25-
this.createEthereumEstimate = this.createEthereumEstimate.bind(this);
26-
this.createEthereumEstimateWithHttpInfo =
27-
this.createEthereumEstimateWithHttpInfo.bind(this);
28-
this.createFlightEstimate = this.createFlightEstimate.bind(this);
29-
this.createFlightEstimateWithHttpInfo =
30-
this.createFlightEstimateWithHttpInfo.bind(this);
31-
this.createMassEstimate = this.createMassEstimate.bind(this);
32-
this.createMassEstimateWithHttpInfo =
33-
this.createMassEstimateWithHttpInfo.bind(this);
34-
this.createShippingEstimate = this.createShippingEstimate.bind(this);
35-
this.createShippingEstimateWithHttpInfo =
36-
this.createShippingEstimateWithHttpInfo.bind(this);
37-
this.createVehicleEstimate = this.createVehicleEstimate.bind(this);
38-
this.createVehicleEstimateWithHttpInfo =
39-
this.createVehicleEstimateWithHttpInfo.bind(this);
40-
this.retrieveEstimate = this.retrieveEstimate.bind(this);
41-
this.retrieveEstimateWithHttpInfo =
42-
this.retrieveEstimateWithHttpInfo.bind(this);
43-
this.retrieveEstimates = this.retrieveEstimates.bind(this);
44-
this.retrieveEstimatesWithHttpInfo =
45-
this.retrieveEstimatesWithHttpInfo.bind(this);
4622
}
4723

48-
createBitcoinEstimateWithHttpInfo() {
24+
createBitcoinEstimateWithHttpInfo(createBitcoinEstimateRequest) {
4925
let postBody = createBitcoinEstimateRequest;
5026

5127
// verify the required parameter 'createBitcoinEstimateRequest' is set
@@ -83,11 +59,11 @@ export default class EstimatesApi {
8359
);
8460
}
8561

86-
createBitcoinEstimate() {
87-
return this.createBitcoinEstimateWithHttpInfo();
62+
createBitcoinEstimate(createBitcoinEstimateRequest) {
63+
return this.createBitcoinEstimateWithHttpInfo(createBitcoinEstimateRequest);
8864
}
8965

90-
createEthereumEstimateWithHttpInfo() {
66+
createEthereumEstimateWithHttpInfo(createEthereumEstimateRequest) {
9167
let postBody = createEthereumEstimateRequest;
9268

9369
// verify the required parameter 'createEthereumEstimateRequest' is set
@@ -125,11 +101,13 @@ export default class EstimatesApi {
125101
);
126102
}
127103

128-
createEthereumEstimate() {
129-
return this.createEthereumEstimateWithHttpInfo();
104+
createEthereumEstimate(createEthereumEstimateRequest) {
105+
return this.createEthereumEstimateWithHttpInfo(
106+
createEthereumEstimateRequest
107+
);
130108
}
131109

132-
createFlightEstimateWithHttpInfo() {
110+
createFlightEstimateWithHttpInfo(createFlightEstimateRequest) {
133111
let postBody = createFlightEstimateRequest;
134112

135113
// verify the required parameter 'createFlightEstimateRequest' is set
@@ -167,11 +145,11 @@ export default class EstimatesApi {
167145
);
168146
}
169147

170-
createFlightEstimate() {
171-
return this.createFlightEstimateWithHttpInfo();
148+
createFlightEstimate(createFlightEstimateRequest) {
149+
return this.createFlightEstimateWithHttpInfo(createFlightEstimateRequest);
172150
}
173151

174-
createMassEstimateWithHttpInfo() {
152+
createMassEstimateWithHttpInfo(createMassEstimateRequest) {
175153
let postBody = createMassEstimateRequest;
176154

177155
// verify the required parameter 'createMassEstimateRequest' is set
@@ -209,11 +187,11 @@ export default class EstimatesApi {
209187
);
210188
}
211189

212-
createMassEstimate() {
213-
return this.createMassEstimateWithHttpInfo();
190+
createMassEstimate(createMassEstimateRequest) {
191+
return this.createMassEstimateWithHttpInfo(createMassEstimateRequest);
214192
}
215193

216-
createShippingEstimateWithHttpInfo() {
194+
createShippingEstimateWithHttpInfo(createShippingEstimateRequest) {
217195
let postBody = createShippingEstimateRequest;
218196

219197
// verify the required parameter 'createShippingEstimateRequest' is set
@@ -251,11 +229,13 @@ export default class EstimatesApi {
251229
);
252230
}
253231

254-
createShippingEstimate() {
255-
return this.createShippingEstimateWithHttpInfo();
232+
createShippingEstimate(createShippingEstimateRequest) {
233+
return this.createShippingEstimateWithHttpInfo(
234+
createShippingEstimateRequest
235+
);
256236
}
257237

258-
createVehicleEstimateWithHttpInfo() {
238+
createVehicleEstimateWithHttpInfo(createVehicleEstimateRequest) {
259239
let postBody = createVehicleEstimateRequest;
260240

261241
// verify the required parameter 'createVehicleEstimateRequest' is set
@@ -293,11 +273,11 @@ export default class EstimatesApi {
293273
);
294274
}
295275

296-
createVehicleEstimate() {
297-
return this.createVehicleEstimateWithHttpInfo();
276+
createVehicleEstimate(createVehicleEstimateRequest) {
277+
return this.createVehicleEstimateWithHttpInfo(createVehicleEstimateRequest);
298278
}
299279

300-
retrieveEstimateWithHttpInfo() {
280+
retrieveEstimateWithHttpInfo(id) {
301281
let postBody = null;
302282

303283
// verify the required parameter 'id' is set
@@ -334,11 +314,13 @@ export default class EstimatesApi {
334314
);
335315
}
336316

337-
retrieveEstimate() {
338-
return this.retrieveEstimateWithHttpInfo();
317+
retrieveEstimate(id) {
318+
return this.retrieveEstimateWithHttpInfo(id);
339319
}
340320

341-
retrieveEstimatesWithHttpInfo() {
321+
retrieveEstimatesWithHttpInfo(opts) {
322+
opts = opts || {};
323+
342324
let postBody = null;
343325

344326
let pathParams = {};
@@ -368,7 +350,7 @@ export default class EstimatesApi {
368350
);
369351
}
370352

371-
retrieveEstimates() {
372-
return this.retrieveEstimatesWithHttpInfo();
353+
retrieveEstimates(opts) {
354+
return this.retrieveEstimatesWithHttpInfo(opts);
373355
}
374356
}

src/api/OrdersApi.js

Lines changed: 17 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,9 @@ import OrderResponse from '../model/OrderResponse';
1414
export default class OrdersApi {
1515
constructor(apiClient) {
1616
this.apiClient = apiClient || ApiClient.instance;
17-
this.cancelOrder = this.cancelOrder.bind(this);
18-
this.cancelOrderWithHttpInfo = this.cancelOrderWithHttpInfo.bind(this);
19-
this.createOrder = this.createOrder.bind(this);
20-
this.createOrderWithHttpInfo = this.createOrderWithHttpInfo.bind(this);
21-
this.placeOrder = this.placeOrder.bind(this);
22-
this.placeOrderWithHttpInfo = this.placeOrderWithHttpInfo.bind(this);
23-
this.retrieveOrder = this.retrieveOrder.bind(this);
24-
this.retrieveOrderWithHttpInfo = this.retrieveOrderWithHttpInfo.bind(this);
25-
this.retrieveOrders = this.retrieveOrders.bind(this);
26-
this.retrieveOrdersWithHttpInfo =
27-
this.retrieveOrdersWithHttpInfo.bind(this);
2817
}
2918

30-
cancelOrderWithHttpInfo() {
19+
cancelOrderWithHttpInfo(id) {
3120
let postBody = null;
3221

3322
// verify the required parameter 'id' is set
@@ -64,11 +53,11 @@ export default class OrdersApi {
6453
);
6554
}
6655

67-
cancelOrder() {
68-
return this.cancelOrderWithHttpInfo();
56+
cancelOrder(id) {
57+
return this.cancelOrderWithHttpInfo(id);
6958
}
7059

71-
createOrderWithHttpInfo() {
60+
createOrderWithHttpInfo(createOrderRequest) {
7261
let postBody = createOrderRequest;
7362

7463
// verify the required parameter 'createOrderRequest' is set
@@ -103,11 +92,11 @@ export default class OrdersApi {
10392
);
10493
}
10594

106-
createOrder() {
107-
return this.createOrderWithHttpInfo();
95+
createOrder(createOrderRequest) {
96+
return this.createOrderWithHttpInfo(createOrderRequest);
10897
}
10998

110-
placeOrderWithHttpInfo() {
99+
placeOrderWithHttpInfo(id) {
111100
let postBody = null;
112101

113102
// verify the required parameter 'id' is set
@@ -144,11 +133,11 @@ export default class OrdersApi {
144133
);
145134
}
146135

147-
placeOrder() {
148-
return this.placeOrderWithHttpInfo();
136+
placeOrder(id) {
137+
return this.placeOrderWithHttpInfo(id);
149138
}
150139

151-
retrieveOrderWithHttpInfo() {
140+
retrieveOrderWithHttpInfo(id) {
152141
let postBody = null;
153142

154143
// verify the required parameter 'id' is set
@@ -185,11 +174,13 @@ export default class OrdersApi {
185174
);
186175
}
187176

188-
retrieveOrder() {
189-
return this.retrieveOrderWithHttpInfo();
177+
retrieveOrder(id) {
178+
return this.retrieveOrderWithHttpInfo(id);
190179
}
191180

192-
retrieveOrdersWithHttpInfo() {
181+
retrieveOrdersWithHttpInfo(opts) {
182+
opts = opts || {};
183+
193184
let postBody = null;
194185

195186
let pathParams = {};
@@ -225,7 +216,7 @@ export default class OrdersApi {
225216
);
226217
}
227218

228-
retrieveOrders() {
229-
return this.retrieveOrdersWithHttpInfo();
219+
retrieveOrders(opts) {
220+
return this.retrieveOrdersWithHttpInfo(opts);
230221
}
231222
}

src/api/PreferencesApi.js

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,9 @@ import PreferenceResponse from '../model/PreferenceResponse';
1414
export default class PreferencesApi {
1515
constructor(apiClient) {
1616
this.apiClient = apiClient || ApiClient.instance;
17-
this.createPreference = this.createPreference.bind(this);
18-
this.createPreferenceWithHttpInfo =
19-
this.createPreferenceWithHttpInfo.bind(this);
20-
this.deletePreference = this.deletePreference.bind(this);
21-
this.deletePreferenceWithHttpInfo =
22-
this.deletePreferenceWithHttpInfo.bind(this);
23-
this.retrievePreference = this.retrievePreference.bind(this);
24-
this.retrievePreferenceWithHttpInfo =
25-
this.retrievePreferenceWithHttpInfo.bind(this);
26-
this.retrievePreferences = this.retrievePreferences.bind(this);
27-
this.retrievePreferencesWithHttpInfo =
28-
this.retrievePreferencesWithHttpInfo.bind(this);
2917
}
3018

31-
createPreferenceWithHttpInfo() {
19+
createPreferenceWithHttpInfo(createPreferenceRequest) {
3220
let postBody = createPreferenceRequest;
3321

3422
// verify the required parameter 'createPreferenceRequest' is set
@@ -66,11 +54,11 @@ export default class PreferencesApi {
6654
);
6755
}
6856

69-
createPreference() {
70-
return this.createPreferenceWithHttpInfo();
57+
createPreference(createPreferenceRequest) {
58+
return this.createPreferenceWithHttpInfo(createPreferenceRequest);
7159
}
7260

73-
deletePreferenceWithHttpInfo() {
61+
deletePreferenceWithHttpInfo(id) {
7462
let postBody = null;
7563

7664
// verify the required parameter 'id' is set
@@ -107,11 +95,11 @@ export default class PreferencesApi {
10795
);
10896
}
10997

110-
deletePreference() {
111-
return this.deletePreferenceWithHttpInfo();
98+
deletePreference(id) {
99+
return this.deletePreferenceWithHttpInfo(id);
112100
}
113101

114-
retrievePreferenceWithHttpInfo() {
102+
retrievePreferenceWithHttpInfo(id) {
115103
let postBody = null;
116104

117105
// verify the required parameter 'id' is set
@@ -148,11 +136,13 @@ export default class PreferencesApi {
148136
);
149137
}
150138

151-
retrievePreference() {
152-
return this.retrievePreferenceWithHttpInfo();
139+
retrievePreference(id) {
140+
return this.retrievePreferenceWithHttpInfo(id);
153141
}
154142

155-
retrievePreferencesWithHttpInfo() {
143+
retrievePreferencesWithHttpInfo(opts) {
144+
opts = opts || {};
145+
156146
let postBody = null;
157147

158148
let pathParams = {};
@@ -182,7 +172,7 @@ export default class PreferencesApi {
182172
);
183173
}
184174

185-
retrievePreferences() {
186-
return this.retrievePreferencesWithHttpInfo();
175+
retrievePreferences(opts) {
176+
return this.retrievePreferencesWithHttpInfo(opts);
187177
}
188178
}

src/api/ProjectsApi.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,9 @@ import ProjectResponse from '../model/ProjectResponse';
1313
export default class ProjectsApi {
1414
constructor(apiClient) {
1515
this.apiClient = apiClient || ApiClient.instance;
16-
this.retrieveProject = this.retrieveProject.bind(this);
17-
this.retrieveProjectWithHttpInfo =
18-
this.retrieveProjectWithHttpInfo.bind(this);
19-
this.retrieveProjects = this.retrieveProjects.bind(this);
20-
this.retrieveProjectsWithHttpInfo =
21-
this.retrieveProjectsWithHttpInfo.bind(this);
2216
}
2317

24-
retrieveProjectWithHttpInfo() {
18+
retrieveProjectWithHttpInfo(id) {
2519
let postBody = null;
2620

2721
// verify the required parameter 'id' is set
@@ -58,11 +52,13 @@ export default class ProjectsApi {
5852
);
5953
}
6054

61-
retrieveProject() {
62-
return this.retrieveProjectWithHttpInfo();
55+
retrieveProject(id) {
56+
return this.retrieveProjectWithHttpInfo(id);
6357
}
6458

65-
retrieveProjectsWithHttpInfo() {
59+
retrieveProjectsWithHttpInfo(opts) {
60+
opts = opts || {};
61+
6662
let postBody = null;
6763

6864
let pathParams = {};
@@ -98,7 +94,7 @@ export default class ProjectsApi {
9894
);
9995
}
10096

101-
retrieveProjects() {
102-
return this.retrieveProjectsWithHttpInfo();
97+
retrieveProjects(opts) {
98+
return this.retrieveProjectsWithHttpInfo(opts);
10399
}
104100
}

test/integration/preferences.test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ describe('Preferences Integration', async function () {
3131
project_id: projectId
3232
});
3333

34+
console.log(createdPreference);
35+
3436
expect(createdPreference.data.projectId).to.eq(projectId);
3537

3638
const preferencesList2 = await patch.preferences.retrievePreferences();

0 commit comments

Comments
 (0)