@itentialopensource/adapter-easypost 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.jshintrc +3 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +206 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +43 -0
- package/CONTRIBUTING.md +172 -0
- package/ENHANCE.md +69 -0
- package/LICENSE +201 -0
- package/PROPERTIES.md +641 -0
- package/README.md +337 -0
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +1327 -0
- package/adapterBase.js +1787 -0
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/Addressses/action.json +45 -0
- package/entities/Addressses/schema.json +31 -0
- package/entities/Shipments/action.json +86 -0
- package/entities/Shipments/schema.json +33 -0
- package/error.json +190 -0
- package/package.json +86 -0
- package/pronghorn.json +869 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +1247 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +10 -0
- package/report/creationReport.json +250 -0
- package/report/easyPost-openapi3.json +424 -0
- package/sampleProperties.json +195 -0
- package/test/integration/adapterTestBasicGet.js +83 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +500 -0
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +1451 -0
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +178 -0
- package/utils/findPath.js +74 -0
- package/utils/methodDocumentor.js +225 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +32 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +246 -0
- package/utils/tbUtils.js +490 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +195 -0
- package/workflows/README.md +3 -0
|
Binary file
|
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
{
|
|
2
|
+
"errors": [],
|
|
3
|
+
"statistics": [
|
|
4
|
+
{
|
|
5
|
+
"owner": "errorJson",
|
|
6
|
+
"description": "Standard adapter errors available for use",
|
|
7
|
+
"value": 31
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"owner": "packageJson",
|
|
11
|
+
"description": "Number of production dependencies",
|
|
12
|
+
"value": 16
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"owner": "packageJson",
|
|
16
|
+
"description": "Number of development dependencies",
|
|
17
|
+
"value": 7
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"owner": "packageJson",
|
|
21
|
+
"description": "Number of npm scripts",
|
|
22
|
+
"value": 22
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"owner": "packageJson",
|
|
26
|
+
"description": "Runtime Library dependency",
|
|
27
|
+
"value": "^4.48.0"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"owner": "propertiesSchemaJson",
|
|
31
|
+
"description": "Adapter properties defined in the propertiesSchema file",
|
|
32
|
+
"value": 70
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"owner": "adapterJS",
|
|
36
|
+
"description": "Lines of code generated in adapter.js",
|
|
37
|
+
"value": 1246
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"owner": "adapterJS",
|
|
41
|
+
"description": "Number of Functions added to adapter.js",
|
|
42
|
+
"value": 5
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"owner": "pronghornJson",
|
|
46
|
+
"description": "Number of Methods added to pronghorn.json",
|
|
47
|
+
"value": 5
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"owner": "markdown",
|
|
51
|
+
"description": "Number of lines in the README.md",
|
|
52
|
+
"value": 338
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"owner": "markdown",
|
|
56
|
+
"description": "Number of lines in the SUMMARY.md",
|
|
57
|
+
"value": 9
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"owner": "markdown",
|
|
61
|
+
"description": "Number of lines in the PROPERTIES.md",
|
|
62
|
+
"value": 642
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"owner": "markdown",
|
|
66
|
+
"description": "Number of lines in the TROUBLESHOOT.md",
|
|
67
|
+
"value": 48
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"owner": "markdown",
|
|
71
|
+
"description": "Number of lines in the ENHANCE.md",
|
|
72
|
+
"value": 70
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"owner": "markdown",
|
|
76
|
+
"description": "Number of lines in the BROKER.md",
|
|
77
|
+
"value": 200
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"owner": "markdown",
|
|
81
|
+
"description": "Number of lines in the CALLS.md",
|
|
82
|
+
"value": 171
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"owner": "markdown",
|
|
86
|
+
"description": "Number of lines in the AUTH.md",
|
|
87
|
+
"value": 40
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"owner": "markdown",
|
|
91
|
+
"description": "Number of lines in the SYSTEMINFO.md",
|
|
92
|
+
"value": 11
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"owner": "unitTestJS",
|
|
96
|
+
"description": "Number of lines of code in unit tests",
|
|
97
|
+
"value": 1423
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"owner": "unitTestJS",
|
|
101
|
+
"description": "Number of unit tests",
|
|
102
|
+
"value": 63
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"owner": "integrationTestJS",
|
|
106
|
+
"description": "Number of lines of code in integration tests",
|
|
107
|
+
"value": 476
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"owner": "integrationTestJS",
|
|
111
|
+
"description": "Number of integration tests",
|
|
112
|
+
"value": 10
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"owner": "actionJson",
|
|
116
|
+
"description": "Number of actions for Shipments entity",
|
|
117
|
+
"value": 3
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"owner": "actionJson",
|
|
121
|
+
"description": "Number of actions for Addressses entity",
|
|
122
|
+
"value": 2
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"owner": "actionJson",
|
|
126
|
+
"description": "Total number of actions",
|
|
127
|
+
"value": 5
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"owner": "actionJson",
|
|
131
|
+
"description": "Total number of entities",
|
|
132
|
+
"value": 2
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"owner": "schemaJson",
|
|
136
|
+
"description": "Number of schemas for Shipments entity",
|
|
137
|
+
"value": 1
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"owner": "schemaJson",
|
|
141
|
+
"description": "Number of schemas for Addressses entity",
|
|
142
|
+
"value": 1
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"owner": "schemaJson",
|
|
146
|
+
"description": "Total number of schemas",
|
|
147
|
+
"value": 2
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"owner": "mockdata",
|
|
151
|
+
"description": "Number of mock data files for Shipments entity",
|
|
152
|
+
"value": 0
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"owner": "mockdata",
|
|
156
|
+
"description": "Number of mock data files for Addressses entity",
|
|
157
|
+
"value": 0
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"owner": "mockdata",
|
|
161
|
+
"description": "Total number of mock data files",
|
|
162
|
+
"value": 0
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"owner": "actionJson",
|
|
166
|
+
"description": "Number of actions for .system entity",
|
|
167
|
+
"value": 2
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"owner": "schemaJson",
|
|
171
|
+
"description": "Number of schemas for .system entity",
|
|
172
|
+
"value": 3
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"owner": "mockdata",
|
|
176
|
+
"description": "Number of mock data files for .system entity",
|
|
177
|
+
"value": 2
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"owner": "System",
|
|
181
|
+
"description": "System entity files",
|
|
182
|
+
"value": 6
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"owner": "usecases",
|
|
186
|
+
"description": "Number of workflows",
|
|
187
|
+
"value": 0
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"owner": "staticFile",
|
|
191
|
+
"description": "Number of lines of code in adapterBase.js",
|
|
192
|
+
"value": 1788
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"owner": "staticFile",
|
|
196
|
+
"description": "Number of static files added",
|
|
197
|
+
"value": 38
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"owner": "Overall",
|
|
201
|
+
"description": "Total lines of Code",
|
|
202
|
+
"value": 4933
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"owner": "Overall",
|
|
206
|
+
"description": "Total Tests",
|
|
207
|
+
"value": 73
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
"owner": "Overall",
|
|
211
|
+
"description": "Total Files",
|
|
212
|
+
"value": 56
|
|
213
|
+
}
|
|
214
|
+
],
|
|
215
|
+
"warnings": [],
|
|
216
|
+
"apiParsingReport": {
|
|
217
|
+
"no_mockdata": [
|
|
218
|
+
{
|
|
219
|
+
"fnName": "retrieveAllShipments",
|
|
220
|
+
"method": "get",
|
|
221
|
+
"path": "/shipments"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
"fnName": "oneCallBuyShipment",
|
|
225
|
+
"method": "post",
|
|
226
|
+
"path": "/shipments"
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"fnName": "retrieveShipment",
|
|
230
|
+
"method": "get",
|
|
231
|
+
"path": "/shipments/{shipmentId}"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"fnName": "createAddress",
|
|
235
|
+
"method": "post",
|
|
236
|
+
"path": "/addresses"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"fnName": "getAddresses",
|
|
240
|
+
"method": "get",
|
|
241
|
+
"path": "/addresses"
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"errors": [],
|
|
245
|
+
"warnings": [],
|
|
246
|
+
"callsTotal": 5,
|
|
247
|
+
"callsConverted": 5,
|
|
248
|
+
"no_mockdata_num": 5
|
|
249
|
+
}
|
|
250
|
+
}
|
|
@@ -0,0 +1,424 @@
|
|
|
1
|
+
{
|
|
2
|
+
"openapi": "3.0.0",
|
|
3
|
+
"info": {
|
|
4
|
+
"title": "easypost",
|
|
5
|
+
"contact": {},
|
|
6
|
+
"version": "1.0"
|
|
7
|
+
},
|
|
8
|
+
"servers": [
|
|
9
|
+
{
|
|
10
|
+
"url": "https://api.easypost.com/v2",
|
|
11
|
+
"variables": {}
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"paths": {
|
|
15
|
+
"/shipments": {
|
|
16
|
+
"get": {
|
|
17
|
+
"tags": [
|
|
18
|
+
"Shipments"
|
|
19
|
+
],
|
|
20
|
+
"summary": "RetrieveAllShipments",
|
|
21
|
+
"operationId": "RetrieveAllShipments",
|
|
22
|
+
"parameters": [
|
|
23
|
+
{
|
|
24
|
+
"name": "page_size",
|
|
25
|
+
"in": "query",
|
|
26
|
+
"description": "",
|
|
27
|
+
"required": false,
|
|
28
|
+
"schema": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"example": "5"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"responses": {
|
|
35
|
+
"200": {
|
|
36
|
+
"description": "",
|
|
37
|
+
"headers": {}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"deprecated": false
|
|
41
|
+
},
|
|
42
|
+
"post": {
|
|
43
|
+
"tags": [
|
|
44
|
+
"Shipments"
|
|
45
|
+
],
|
|
46
|
+
"summary": "OneCallBuyShipment",
|
|
47
|
+
"operationId": "OneCallBuyShipment",
|
|
48
|
+
"parameters": [],
|
|
49
|
+
"requestBody": {
|
|
50
|
+
"description": "create address body",
|
|
51
|
+
"content": {
|
|
52
|
+
"application/json": {
|
|
53
|
+
"schema": {
|
|
54
|
+
"title": "body",
|
|
55
|
+
"type" : "object"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"required": true
|
|
60
|
+
},
|
|
61
|
+
"responses": {
|
|
62
|
+
"200": {
|
|
63
|
+
"description": "",
|
|
64
|
+
"headers": {}
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"deprecated": false
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"/shipments/{shipmentId}": {
|
|
71
|
+
"get": {
|
|
72
|
+
"tags": [
|
|
73
|
+
"Shipments"
|
|
74
|
+
],
|
|
75
|
+
"summary": "RetrieveShipment",
|
|
76
|
+
"operationId": "RetrieveShipment",
|
|
77
|
+
"parameters": [
|
|
78
|
+
{
|
|
79
|
+
"name": "shipmentId",
|
|
80
|
+
"in": "path",
|
|
81
|
+
"description": "",
|
|
82
|
+
"required": true,
|
|
83
|
+
"style": "simple",
|
|
84
|
+
"schema": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"responses": {
|
|
90
|
+
"200": {
|
|
91
|
+
"description": "",
|
|
92
|
+
"headers": {}
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"deprecated": false
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"/addresses": {
|
|
99
|
+
"post": {
|
|
100
|
+
"tags": [
|
|
101
|
+
"Addressses"
|
|
102
|
+
],
|
|
103
|
+
"summary": "CreateAddress",
|
|
104
|
+
"operationId": "CreateAddress",
|
|
105
|
+
"parameters": [],
|
|
106
|
+
"requestBody": {
|
|
107
|
+
"description": "create address body",
|
|
108
|
+
"content": {
|
|
109
|
+
"application/json": {
|
|
110
|
+
"schema": {
|
|
111
|
+
"title": "body",
|
|
112
|
+
"type" : "object"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"required": true
|
|
117
|
+
},
|
|
118
|
+
"responses": {
|
|
119
|
+
"200": {
|
|
120
|
+
"description": "",
|
|
121
|
+
"headers": {}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"deprecated": false
|
|
125
|
+
},
|
|
126
|
+
"get": {
|
|
127
|
+
"tags": [
|
|
128
|
+
"Addressses"
|
|
129
|
+
],
|
|
130
|
+
"summary": "GetAddresses",
|
|
131
|
+
"operationId": "GetAddresses",
|
|
132
|
+
"parameters": [
|
|
133
|
+
{
|
|
134
|
+
"name": "page_size",
|
|
135
|
+
"in": "query",
|
|
136
|
+
"description": "",
|
|
137
|
+
"required": false,
|
|
138
|
+
"schema": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"example": "5"
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"responses": {
|
|
145
|
+
"200": {
|
|
146
|
+
"description": "",
|
|
147
|
+
"headers": {}
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"deprecated": false
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"components": {
|
|
155
|
+
"schemas": {
|
|
156
|
+
"OneCallBuyShipmentRequest": {
|
|
157
|
+
"title": "OneCallBuyShipmentRequest",
|
|
158
|
+
"required": [
|
|
159
|
+
"shipment"
|
|
160
|
+
],
|
|
161
|
+
"type": "object",
|
|
162
|
+
"properties": {
|
|
163
|
+
"shipment": {
|
|
164
|
+
"$ref": "#/components/schemas/Shipment"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"example": {
|
|
168
|
+
"shipment": {
|
|
169
|
+
"to_address": {
|
|
170
|
+
"name": "Dr. Steve Brule",
|
|
171
|
+
"street1": "179 N Harbor Dr",
|
|
172
|
+
"city": "Redondo Beach",
|
|
173
|
+
"state": "CA",
|
|
174
|
+
"zip": "90277",
|
|
175
|
+
"country": "US",
|
|
176
|
+
"phone": "8573875756",
|
|
177
|
+
"email": "dr_steve_brule@gmail.com"
|
|
178
|
+
},
|
|
179
|
+
"from_address": {
|
|
180
|
+
"name": "EasyPost",
|
|
181
|
+
"street1": "417 Montgomery Street",
|
|
182
|
+
"street2": "5th Floor",
|
|
183
|
+
"city": "San Francisco",
|
|
184
|
+
"state": "CA",
|
|
185
|
+
"zip": "94104",
|
|
186
|
+
"country": "US",
|
|
187
|
+
"phone": "4153334445",
|
|
188
|
+
"email": "support@easypost.com"
|
|
189
|
+
},
|
|
190
|
+
"parcel": {
|
|
191
|
+
"length": "20.2",
|
|
192
|
+
"width": "10.9",
|
|
193
|
+
"height": "5",
|
|
194
|
+
"weight": "65.9"
|
|
195
|
+
},
|
|
196
|
+
"service": "NextDayAir",
|
|
197
|
+
"carrier_accounts": [
|
|
198
|
+
"ca_..."
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"Shipment": {
|
|
204
|
+
"title": "Shipment",
|
|
205
|
+
"required": [
|
|
206
|
+
"to_address",
|
|
207
|
+
"from_address",
|
|
208
|
+
"parcel",
|
|
209
|
+
"service",
|
|
210
|
+
"carrier_accounts"
|
|
211
|
+
],
|
|
212
|
+
"type": "object",
|
|
213
|
+
"properties": {
|
|
214
|
+
"to_address": {
|
|
215
|
+
"$ref": "#/components/schemas/ToAddress"
|
|
216
|
+
},
|
|
217
|
+
"from_address": {
|
|
218
|
+
"$ref": "#/components/schemas/FromAddress"
|
|
219
|
+
},
|
|
220
|
+
"parcel": {
|
|
221
|
+
"$ref": "#/components/schemas/Parcel"
|
|
222
|
+
},
|
|
223
|
+
"service": {
|
|
224
|
+
"type": "string"
|
|
225
|
+
},
|
|
226
|
+
"carrier_accounts": {
|
|
227
|
+
"type": "array",
|
|
228
|
+
"items": {
|
|
229
|
+
"type": "string"
|
|
230
|
+
},
|
|
231
|
+
"description": ""
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"example": {
|
|
235
|
+
"to_address": {
|
|
236
|
+
"name": "Dr. Steve Brule",
|
|
237
|
+
"street1": "179 N Harbor Dr",
|
|
238
|
+
"city": "Redondo Beach",
|
|
239
|
+
"state": "CA",
|
|
240
|
+
"zip": "90277",
|
|
241
|
+
"country": "US",
|
|
242
|
+
"phone": "8573875756",
|
|
243
|
+
"email": "dr_steve_brule@gmail.com"
|
|
244
|
+
},
|
|
245
|
+
"from_address": {
|
|
246
|
+
"name": "EasyPost",
|
|
247
|
+
"street1": "417 Montgomery Street",
|
|
248
|
+
"street2": "5th Floor",
|
|
249
|
+
"city": "San Francisco",
|
|
250
|
+
"state": "CA",
|
|
251
|
+
"zip": "94104",
|
|
252
|
+
"country": "US",
|
|
253
|
+
"phone": "4153334445",
|
|
254
|
+
"email": "support@easypost.com"
|
|
255
|
+
},
|
|
256
|
+
"parcel": {
|
|
257
|
+
"length": "20.2",
|
|
258
|
+
"width": "10.9",
|
|
259
|
+
"height": "5",
|
|
260
|
+
"weight": "65.9"
|
|
261
|
+
},
|
|
262
|
+
"service": "NextDayAir",
|
|
263
|
+
"carrier_accounts": [
|
|
264
|
+
"ca_..."
|
|
265
|
+
]
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"ToAddress": {
|
|
269
|
+
"title": "ToAddress",
|
|
270
|
+
"required": [
|
|
271
|
+
"name",
|
|
272
|
+
"street1",
|
|
273
|
+
"city",
|
|
274
|
+
"state",
|
|
275
|
+
"zip",
|
|
276
|
+
"country",
|
|
277
|
+
"phone",
|
|
278
|
+
"email"
|
|
279
|
+
],
|
|
280
|
+
"type": "object",
|
|
281
|
+
"properties": {
|
|
282
|
+
"name": {
|
|
283
|
+
"type": "string"
|
|
284
|
+
},
|
|
285
|
+
"street1": {
|
|
286
|
+
"type": "string"
|
|
287
|
+
},
|
|
288
|
+
"city": {
|
|
289
|
+
"type": "string"
|
|
290
|
+
},
|
|
291
|
+
"state": {
|
|
292
|
+
"type": "string"
|
|
293
|
+
},
|
|
294
|
+
"zip": {
|
|
295
|
+
"type": "string"
|
|
296
|
+
},
|
|
297
|
+
"country": {
|
|
298
|
+
"type": "string"
|
|
299
|
+
},
|
|
300
|
+
"phone": {
|
|
301
|
+
"type": "string"
|
|
302
|
+
},
|
|
303
|
+
"email": {
|
|
304
|
+
"type": "string"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"example": {
|
|
308
|
+
"name": "Dr. Steve Brule",
|
|
309
|
+
"street1": "179 N Harbor Dr",
|
|
310
|
+
"city": "Redondo Beach",
|
|
311
|
+
"state": "CA",
|
|
312
|
+
"zip": "90277",
|
|
313
|
+
"country": "US",
|
|
314
|
+
"phone": "8573875756",
|
|
315
|
+
"email": "dr_steve_brule@gmail.com"
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
"FromAddress": {
|
|
319
|
+
"title": "FromAddress",
|
|
320
|
+
"required": [
|
|
321
|
+
"name",
|
|
322
|
+
"street1",
|
|
323
|
+
"street2",
|
|
324
|
+
"city",
|
|
325
|
+
"state",
|
|
326
|
+
"zip",
|
|
327
|
+
"country",
|
|
328
|
+
"phone",
|
|
329
|
+
"email"
|
|
330
|
+
],
|
|
331
|
+
"type": "object",
|
|
332
|
+
"properties": {
|
|
333
|
+
"name": {
|
|
334
|
+
"type": "string"
|
|
335
|
+
},
|
|
336
|
+
"street1": {
|
|
337
|
+
"type": "string"
|
|
338
|
+
},
|
|
339
|
+
"street2": {
|
|
340
|
+
"type": "string"
|
|
341
|
+
},
|
|
342
|
+
"city": {
|
|
343
|
+
"type": "string"
|
|
344
|
+
},
|
|
345
|
+
"state": {
|
|
346
|
+
"type": "string"
|
|
347
|
+
},
|
|
348
|
+
"zip": {
|
|
349
|
+
"type": "string"
|
|
350
|
+
},
|
|
351
|
+
"country": {
|
|
352
|
+
"type": "string"
|
|
353
|
+
},
|
|
354
|
+
"phone": {
|
|
355
|
+
"type": "string"
|
|
356
|
+
},
|
|
357
|
+
"email": {
|
|
358
|
+
"type": "string"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"example": {
|
|
362
|
+
"name": "EasyPost",
|
|
363
|
+
"street1": "417 Montgomery Street",
|
|
364
|
+
"street2": "5th Floor",
|
|
365
|
+
"city": "San Francisco",
|
|
366
|
+
"state": "CA",
|
|
367
|
+
"zip": "94104",
|
|
368
|
+
"country": "US",
|
|
369
|
+
"phone": "4153334445",
|
|
370
|
+
"email": "support@easypost.com"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"Parcel": {
|
|
374
|
+
"title": "Parcel",
|
|
375
|
+
"required": [
|
|
376
|
+
"length",
|
|
377
|
+
"width",
|
|
378
|
+
"height",
|
|
379
|
+
"weight"
|
|
380
|
+
],
|
|
381
|
+
"type": "object",
|
|
382
|
+
"properties": {
|
|
383
|
+
"length": {
|
|
384
|
+
"type": "string"
|
|
385
|
+
},
|
|
386
|
+
"width": {
|
|
387
|
+
"type": "string"
|
|
388
|
+
},
|
|
389
|
+
"height": {
|
|
390
|
+
"type": "string"
|
|
391
|
+
},
|
|
392
|
+
"weight": {
|
|
393
|
+
"type": "string"
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
"example": {
|
|
397
|
+
"length": "20.2",
|
|
398
|
+
"width": "10.9",
|
|
399
|
+
"height": "5",
|
|
400
|
+
"weight": "65.9"
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
"securitySchemes": {
|
|
405
|
+
"basic": {
|
|
406
|
+
"type": "http",
|
|
407
|
+
"scheme": "basic"
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"security": [
|
|
412
|
+
{
|
|
413
|
+
"basic": []
|
|
414
|
+
}
|
|
415
|
+
],
|
|
416
|
+
"tags": [
|
|
417
|
+
{
|
|
418
|
+
"name": "Shipments"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"name": "Addressses"
|
|
422
|
+
}
|
|
423
|
+
]
|
|
424
|
+
}
|