Skip to content

Commit 176faab

Browse files
committed
Update PR template
1 parent 2bc2e3f commit 176faab

File tree

4 files changed

+209
-1
lines changed

4 files changed

+209
-1
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
### SDK Release Checklist
1010

1111
- [ ] Have you added an integration test for the changes?
12-
- [ ] Have you built the gem locally and made queries against it successfully?
12+
- [ ] Have you built the package locally and made queries against it successfully?
1313
- [ ] Did you update the changelog?
1414
- [ ] Did you bump the package version?
1515
- [ ] For breaking changes, did you plan for the release of the new SDK versions and deploy the API to production?
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/**
2+
* Patch API V1
3+
* The core API used to integrate with Patch's service
4+
*
5+
* Contact: [email protected]
6+
*/
7+
8+
import ApiClient from '../ApiClient';
9+
10+
class CreateFlightEstimateRequest {
11+
constructor(distanceM) {
12+
CreateFlightEstimateRequest.initialize(this, distanceM);
13+
}
14+
15+
static initialize(obj, distanceM) {
16+
obj['distance_m'] = distanceM;
17+
}
18+
19+
static constructFromObject(data, obj) {
20+
if (data) {
21+
obj = obj || new CreateFlightEstimateRequest();
22+
23+
if (data.hasOwnProperty('distance_m')) {
24+
obj['distance_m'] = ApiClient.convertToType(
25+
data['distance_m'],
26+
'Number'
27+
);
28+
}
29+
30+
if (data.hasOwnProperty('project_id')) {
31+
obj['project_id'] = ApiClient.convertToType(
32+
data['project_id'],
33+
'String'
34+
);
35+
}
36+
37+
if (data.hasOwnProperty('create_order')) {
38+
obj['create_order'] = ApiClient.convertToType(
39+
data['create_order'],
40+
'Boolean'
41+
);
42+
}
43+
}
44+
return obj;
45+
}
46+
}
47+
48+
CreateFlightEstimateRequest.prototype['distance_m'] = undefined;
49+
50+
CreateFlightEstimateRequest.prototype['project_id'] = undefined;
51+
52+
CreateFlightEstimateRequest.prototype['create_order'] = undefined;
53+
54+
export default CreateFlightEstimateRequest;
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
/**
2+
* Patch API V1
3+
* The core API used to integrate with Patch's service
4+
*
5+
* Contact: [email protected]
6+
*/
7+
8+
import ApiClient from '../ApiClient';
9+
10+
class CreateShippingEstimateRequest {
11+
constructor(distanceM, packageMassG, transportationMethod) {
12+
CreateShippingEstimateRequest.initialize(
13+
this,
14+
distanceM,
15+
packageMassG,
16+
transportationMethod
17+
);
18+
}
19+
20+
static initialize(obj, distanceM, packageMassG, transportationMethod) {
21+
obj['distance_m'] = distanceM;
22+
obj['package_mass_g'] = packageMassG;
23+
obj['transportation_method'] = transportationMethod;
24+
}
25+
26+
static constructFromObject(data, obj) {
27+
if (data) {
28+
obj = obj || new CreateShippingEstimateRequest();
29+
30+
if (data.hasOwnProperty('distance_m')) {
31+
obj['distance_m'] = ApiClient.convertToType(
32+
data['distance_m'],
33+
'Number'
34+
);
35+
}
36+
37+
if (data.hasOwnProperty('package_mass_g')) {
38+
obj['package_mass_g'] = ApiClient.convertToType(
39+
data['package_mass_g'],
40+
'Number'
41+
);
42+
}
43+
44+
if (data.hasOwnProperty('transportation_method')) {
45+
obj['transportation_method'] = ApiClient.convertToType(
46+
data['transportation_method'],
47+
'String'
48+
);
49+
}
50+
51+
if (data.hasOwnProperty('project_id')) {
52+
obj['project_id'] = ApiClient.convertToType(
53+
data['project_id'],
54+
'String'
55+
);
56+
}
57+
58+
if (data.hasOwnProperty('create_order')) {
59+
obj['create_order'] = ApiClient.convertToType(
60+
data['create_order'],
61+
'Boolean'
62+
);
63+
}
64+
}
65+
return obj;
66+
}
67+
}
68+
69+
CreateShippingEstimateRequest.prototype['distance_m'] = undefined;
70+
71+
CreateShippingEstimateRequest.prototype['package_mass_g'] = undefined;
72+
73+
CreateShippingEstimateRequest.prototype['transportation_method'] = undefined;
74+
75+
CreateShippingEstimateRequest.prototype['project_id'] = undefined;
76+
77+
CreateShippingEstimateRequest.prototype['create_order'] = undefined;
78+
79+
export default CreateShippingEstimateRequest;
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
/**
2+
* Patch API V1
3+
* The core API used to integrate with Patch's service
4+
*
5+
* Contact: [email protected]
6+
*/
7+
8+
import ApiClient from '../ApiClient';
9+
10+
class CreateVehicleEstimateRequest {
11+
constructor(distanceM, make, model, year) {
12+
CreateVehicleEstimateRequest.initialize(this, distanceM, make, model, year);
13+
}
14+
15+
static initialize(obj, distanceM, make, model, year) {
16+
obj['distance_m'] = distanceM;
17+
obj['make'] = make;
18+
obj['model'] = model;
19+
obj['year'] = year;
20+
}
21+
22+
static constructFromObject(data, obj) {
23+
if (data) {
24+
obj = obj || new CreateVehicleEstimateRequest();
25+
26+
if (data.hasOwnProperty('distance_m')) {
27+
obj['distance_m'] = ApiClient.convertToType(
28+
data['distance_m'],
29+
'Number'
30+
);
31+
}
32+
33+
if (data.hasOwnProperty('make')) {
34+
obj['make'] = ApiClient.convertToType(data['make'], 'String');
35+
}
36+
37+
if (data.hasOwnProperty('model')) {
38+
obj['model'] = ApiClient.convertToType(data['model'], 'String');
39+
}
40+
41+
if (data.hasOwnProperty('year')) {
42+
obj['year'] = ApiClient.convertToType(data['year'], 'Number');
43+
}
44+
45+
if (data.hasOwnProperty('project_id')) {
46+
obj['project_id'] = ApiClient.convertToType(
47+
data['project_id'],
48+
'String'
49+
);
50+
}
51+
52+
if (data.hasOwnProperty('create_order')) {
53+
obj['create_order'] = ApiClient.convertToType(
54+
data['create_order'],
55+
'Boolean'
56+
);
57+
}
58+
}
59+
return obj;
60+
}
61+
}
62+
63+
CreateVehicleEstimateRequest.prototype['distance_m'] = undefined;
64+
65+
CreateVehicleEstimateRequest.prototype['make'] = undefined;
66+
67+
CreateVehicleEstimateRequest.prototype['model'] = undefined;
68+
69+
CreateVehicleEstimateRequest.prototype['year'] = undefined;
70+
71+
CreateVehicleEstimateRequest.prototype['project_id'] = undefined;
72+
73+
CreateVehicleEstimateRequest.prototype['create_order'] = undefined;
74+
75+
export default CreateVehicleEstimateRequest;

0 commit comments

Comments
 (0)