Skip to content

Commit b2a2e38

Browse files
Cleaned-up address validation enumerations and specified the default value for validate_address
1 parent 6fadf91 commit b2a2e38

13 files changed

+34
-21
lines changed

requests/create_shipments_request_body.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@
441441
"enum": [
442442
"none",
443443
"shipsurance",
444-
"carrier"
444+
"carrier",
445+
"third_party"
445446
]
446447
},
447448
"tags": {

requests/purchase_label_request_body.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,8 @@
460460
"enum": [
461461
"none",
462462
"shipsurance",
463-
"carrier"
463+
"carrier",
464+
"third_party"
464465
]
465466
},
466467
"tags": {
@@ -668,6 +669,7 @@
668669
"type": "boolean"
669670
},
670671
"validate_address": {
672+
"default": "validate_and_clean",
671673
"title": "validate_address",
672674
"type": "string",
673675
"enum": [

requests/rate_shipment_request_body.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,8 @@
446446
"enum": [
447447
"none",
448448
"shipsurance",
449-
"carrier"
449+
"carrier",
450+
"third_party"
450451
]
451452
},
452453
"tags": {

requests/rate_shipments_request_body.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,8 @@
460460
"enum": [
461461
"none",
462462
"shipsurance",
463-
"carrier"
463+
"carrier",
464+
"third_party"
464465
]
465466
},
466467
"tags": {

requests/recognize_shipment_request_body.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,8 @@
447447
"enum": [
448448
"none",
449449
"shipsurance",
450-
"carrier"
450+
"carrier",
451+
"third_party"
451452
]
452453
},
453454
"tags": {

requests/update_shipment_request_body.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,8 @@
434434
"enum": [
435435
"none",
436436
"shipsurance",
437-
"carrier"
437+
"carrier",
438+
"third_party"
438439
]
439440
},
440441
"tags": {

responses/address_validation_response_body.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
"additionalProperties": false,
160160
"properties": {
161161
"code": {
162-
"title": "code",
162+
"title": "address_validation_code",
163163
"type": "string",
164164
"enum": [
165165
"a1000",
@@ -181,7 +181,7 @@
181181
"type": "string"
182182
},
183183
"type": {
184-
"title": "type",
184+
"title": "address_validation_message_type",
185185
"type": "string",
186186
"enum": [
187187
"error",
@@ -190,7 +190,7 @@
190190
]
191191
},
192192
"detail_code": {
193-
"title": "detail_code",
193+
"title": "address_validation_detail_code",
194194
"type": "string",
195195
"enum": [
196196
"unsupported_country",

responses/create_shipment_response_body.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
"additionalProperties": false,
168168
"properties": {
169169
"code": {
170-
"title": "code",
170+
"title": "address_validation_code",
171171
"type": "string",
172172
"enum": [
173173
"a1000",
@@ -189,7 +189,7 @@
189189
"type": "string"
190190
},
191191
"type": {
192-
"title": "type",
192+
"title": "address_validation_message_type",
193193
"type": "string",
194194
"enum": [
195195
"error",
@@ -198,7 +198,7 @@
198198
]
199199
},
200200
"detail_code": {
201-
"title": "detail_code",
201+
"title": "address_validation_detail_code",
202202
"type": "string",
203203
"enum": [
204204
"unsupported_country",
@@ -684,7 +684,8 @@
684684
"enum": [
685685
"none",
686686
"shipsurance",
687-
"carrier"
687+
"carrier",
688+
"third_party"
688689
]
689690
},
690691
"tags": {

responses/create_shipments_response_body.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
"additionalProperties": false,
178178
"properties": {
179179
"code": {
180-
"title": "code",
180+
"title": "address_validation_code",
181181
"type": "string",
182182
"enum": [
183183
"a1000",
@@ -199,7 +199,7 @@
199199
"type": "string"
200200
},
201201
"type": {
202-
"title": "type",
202+
"title": "address_validation_message_type",
203203
"type": "string",
204204
"enum": [
205205
"error",
@@ -208,7 +208,7 @@
208208
]
209209
},
210210
"detail_code": {
211-
"title": "detail_code",
211+
"title": "address_validation_detail_code",
212212
"type": "string",
213213
"enum": [
214214
"unsupported_country",
@@ -694,7 +694,8 @@
694694
"enum": [
695695
"none",
696696
"shipsurance",
697-
"carrier"
697+
"carrier",
698+
"third_party"
698699
]
699700
},
700701
"tags": {

responses/list_shipment_response_body.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,8 @@
462462
"enum": [
463463
"none",
464464
"shipsurance",
465-
"carrier"
465+
"carrier",
466+
"third_party"
466467
]
467468
},
468469
"tags": {

0 commit comments

Comments
 (0)