Skip to content

Commit b1b52fe

Browse files
committed
fix(Verify): Correct field names
1 parent 5727941 commit b1b52fe

File tree

3 files changed

+73
-34
lines changed

3 files changed

+73
-34
lines changed

dist/openapi.json

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9492,28 +9492,29 @@
94929492
"count",
94939493
"fit",
94949494
"confidence",
9495-
"address1",
9496-
"address2",
9495+
"address_line_one",
9496+
"address_line_two",
94979497
"city",
94989498
"state",
9499-
"zip_code"
9499+
"zip_code",
9500+
"iso_country_2"
95009501
],
95019502
"properties": {
95029503
"query": {
95039504
"type": "string",
9504-
"description": "Originally submitted query"
9505+
"description": "Submitted query"
95059506
},
95069507
"query_city": {
95079508
"type": "string",
9508-
"description": "Originally submitted city. If not provided this may be inferred from the query"
9509+
"description": "Submitted city"
95099510
},
95109511
"query_state": {
95119512
"type": "string",
9512-
"description": "Originally submitted state. If not provided this may be inferred from the query"
9513+
"description": "Submitted state"
95139514
},
95149515
"query_zip_code": {
95159516
"type": "string",
9516-
"description": "Originally submitted zip_code. If not provided this may be inferred from the query"
9517+
"description": "Submitted zip_code"
95179518
},
95189519
"match": {
95199520
"description": "Nearest matching address",
@@ -9556,12 +9557,12 @@
95569557
"minimum": 0,
95579558
"description": "A confidence score represented as number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements.\n"
95589559
},
9559-
"address1": {
9560+
"address_line_one": {
95609561
"type": "string",
95619562
"description": "Primary delivery address\n",
95629563
"example": "123 Main St"
95639564
},
9564-
"address2": {
9565+
"address_line_two": {
95659566
"type": "string",
95669567
"description": "Secondary address information\n",
95679568
"example": ""
@@ -9580,6 +9581,11 @@
95809581
"type": "string",
95819582
"description": "Zip code\n",
95829583
"example": "81073-1119"
9584+
},
9585+
"iso_country_2": {
9586+
"type": "string",
9587+
"description": "2 letter ISO country code\n",
9588+
"example": "US"
95839589
}
95849590
}
95859591
},
@@ -9595,11 +9601,12 @@
95959601
"count",
95969602
"fit",
95979603
"confidence",
9598-
"address1",
9599-
"address2",
9604+
"address_line_one",
9605+
"address_line_two",
96009606
"city",
96019607
"state",
9602-
"zip_code"
9608+
"zip_code",
9609+
"iso_country_2"
96039610
],
96049611
"properties": {
96059612
"query": {
@@ -9649,14 +9656,14 @@
96499656
0
96509657
]
96519658
},
9652-
"address1": {
9659+
"address_line_one": {
96539660
"type": "string",
96549661
"description": "Empty if no match\n",
96559662
"enum": [
96569663
""
96579664
]
96589665
},
9659-
"address2": {
9666+
"address_line_two": {
96609667
"type": "string",
96619668
"description": "Empty if no match\n",
96629669
"enum": [
@@ -9683,6 +9690,13 @@
96839690
"enum": [
96849691
""
96859692
]
9693+
},
9694+
"iso_country_2": {
9695+
"type": "string",
9696+
"description": "Empty if no match\n",
9697+
"enum": [
9698+
""
9699+
]
96869700
}
96879701
}
96889702
},

dist/openapi.yaml

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8303,24 +8303,25 @@ components:
83038303
- count
83048304
- fit
83058305
- confidence
8306-
- address1
8307-
- address2
8306+
- address_line_one
8307+
- address_line_two
83088308
- city
83098309
- state
83108310
- zip_code
8311+
- iso_country_2
83118312
properties:
83128313
query:
83138314
type: string
8314-
description: Originally submitted query
8315+
description: Submitted query
83158316
query_city:
83168317
type: string
8317-
description: Originally submitted city. If not provided this may be inferred from the query
8318+
description: Submitted city
83188319
query_state:
83198320
type: string
8320-
description: Originally submitted state. If not provided this may be inferred from the query
8321+
description: Submitted state
83218322
query_zip_code:
83228323
type: string
8323-
description: Originally submitted zip_code. If not provided this may be inferred from the query
8324+
description: Submitted zip_code
83248325
match:
83258326
description: Nearest matching address
83268327
oneOf:
@@ -8348,12 +8349,12 @@ components:
83488349
minimum: 0
83498350
description: |
83508351
A confidence score represented as number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements.
8351-
address1:
8352+
address_line_one:
83528353
type: string
83538354
description: |
83548355
Primary delivery address
83558356
example: 123 Main St
8356-
address2:
8357+
address_line_two:
83578358
type: string
83588359
description: |
83598360
Secondary address information
@@ -8373,6 +8374,11 @@ components:
83738374
description: |
83748375
Zip code
83758376
example: 81073-1119
8377+
iso_country_2:
8378+
type: string
8379+
description: |
8380+
2 letter ISO country code
8381+
example: US
83768382
UsaVerifyNoMatch:
83778383
type: object
83788384
title: No Address Match
@@ -8385,11 +8391,12 @@ components:
83858391
- count
83868392
- fit
83878393
- confidence
8388-
- address1
8389-
- address2
8394+
- address_line_one
8395+
- address_line_two
83908396
- city
83918397
- state
83928398
- zip_code
8399+
- iso_country_2
83938400
properties:
83948401
query:
83958402
type: string
@@ -8426,13 +8433,13 @@ components:
84268433
description: ''
84278434
enum:
84288435
- 0
8429-
address1:
8436+
address_line_one:
84308437
type: string
84318438
description: |
84328439
Empty if no match
84338440
enum:
84348441
- ''
8435-
address2:
8442+
address_line_two:
84368443
type: string
84378444
description: |
84388445
Empty if no match
@@ -8456,6 +8463,12 @@ components:
84568463
Empty if no match
84578464
enum:
84588465
- ''
8466+
iso_country_2:
8467+
type: string
8468+
description: |
8469+
Empty if no match
8470+
enum:
8471+
- ''
84598472
VerifyResponse:
84608473
title: Address Verify Response
84618474
type: object

openapi.ts

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4952,13 +4952,13 @@ export interface components {
49524952
};
49534953
/** Address Match */
49544954
UsaVerifyMatch: {
4955-
/** @description Originally submitted query */
4955+
/** @description Submitted query */
49564956
query: string;
4957-
/** @description Originally submitted city. If not provided this may be inferred from the query */
4957+
/** @description Submitted city */
49584958
query_city: string;
4959-
/** @description Originally submitted state. If not provided this may be inferred from the query */
4959+
/** @description Submitted state */
49604960
query_state: string;
4961-
/** @description Originally submitted zip_code. If not provided this may be inferred from the query */
4961+
/** @description Submitted zip_code */
49624962
query_zip_code: string;
49634963
/** @description Nearest matching address */
49644964
match:
@@ -4979,13 +4979,13 @@ export interface components {
49794979
*
49804980
* @example 123 Main St
49814981
*/
4982-
address1: string;
4982+
address_line_one: string;
49834983
/**
49844984
* @description Secondary address information
49854985
*
49864986
* @example
49874987
*/
4988-
address2: string;
4988+
address_line_two: string;
49894989
/**
49904990
* @description City name
49914991
*
@@ -5004,6 +5004,12 @@ export interface components {
50045004
* @example 81073-1119
50055005
*/
50065006
zip_code: string;
5007+
/**
5008+
* @description 2 letter ISO country code
5009+
*
5010+
* @example US
5011+
*/
5012+
iso_country_2: string;
50075013
};
50085014
/** No Address Match */
50095015
UsaVerifyNoMatch: {
@@ -5037,13 +5043,13 @@ export interface components {
50375043
*
50385044
* @enum {string}
50395045
*/
5040-
address1: "";
5046+
address_line_one: "";
50415047
/**
50425048
* @description Empty if no match
50435049
*
50445050
* @enum {string}
50455051
*/
5046-
address2: "";
5052+
address_line_two: "";
50475053
/**
50485054
* @description Empty if no match
50495055
*
@@ -5062,6 +5068,12 @@ export interface components {
50625068
* @enum {string}
50635069
*/
50645070
zip_code: "";
5071+
/**
5072+
* @description Empty if no match
5073+
*
5074+
* @enum {string}
5075+
*/
5076+
iso_country_2: "";
50655077
};
50665078
/** Address Verify Response */
50675079
VerifyResponse: {

0 commit comments

Comments
 (0)