Skip to content

Commit

Permalink
fix(Verify): Correct field names
Browse files Browse the repository at this point in the history
  • Loading branch information
cblanc committed May 14, 2024
1 parent 5727941 commit b1b52fe
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 34 deletions.
42 changes: 28 additions & 14 deletions dist/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -9492,28 +9492,29 @@
"count",
"fit",
"confidence",
"address1",
"address2",
"address_line_one",
"address_line_two",
"city",
"state",
"zip_code"
"zip_code",
"iso_country_2"
],
"properties": {
"query": {
"type": "string",
"description": "Originally submitted query"
"description": "Submitted query"
},
"query_city": {
"type": "string",
"description": "Originally submitted city. If not provided this may be inferred from the query"
"description": "Submitted city"
},
"query_state": {
"type": "string",
"description": "Originally submitted state. If not provided this may be inferred from the query"
"description": "Submitted state"
},
"query_zip_code": {
"type": "string",
"description": "Originally submitted zip_code. If not provided this may be inferred from the query"
"description": "Submitted zip_code"
},
"match": {
"description": "Nearest matching address",
Expand Down Expand Up @@ -9556,12 +9557,12 @@
"minimum": 0,
"description": "A confidence score represented as number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements.\n"
},
"address1": {
"address_line_one": {
"type": "string",
"description": "Primary delivery address\n",
"example": "123 Main St"
},
"address2": {
"address_line_two": {
"type": "string",
"description": "Secondary address information\n",
"example": ""
Expand All @@ -9580,6 +9581,11 @@
"type": "string",
"description": "Zip code\n",
"example": "81073-1119"
},
"iso_country_2": {
"type": "string",
"description": "2 letter ISO country code\n",
"example": "US"
}
}
},
Expand All @@ -9595,11 +9601,12 @@
"count",
"fit",
"confidence",
"address1",
"address2",
"address_line_one",
"address_line_two",
"city",
"state",
"zip_code"
"zip_code",
"iso_country_2"
],
"properties": {
"query": {
Expand Down Expand Up @@ -9649,14 +9656,14 @@
0
]
},
"address1": {
"address_line_one": {
"type": "string",
"description": "Empty if no match\n",
"enum": [
""
]
},
"address2": {
"address_line_two": {
"type": "string",
"description": "Empty if no match\n",
"enum": [
Expand All @@ -9683,6 +9690,13 @@
"enum": [
""
]
},
"iso_country_2": {
"type": "string",
"description": "Empty if no match\n",
"enum": [
""
]
}
}
},
Expand Down
37 changes: 25 additions & 12 deletions dist/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8303,24 +8303,25 @@ components:
- count
- fit
- confidence
- address1
- address2
- address_line_one
- address_line_two
- city
- state
- zip_code
- iso_country_2
properties:
query:
type: string
description: Originally submitted query
description: Submitted query
query_city:
type: string
description: Originally submitted city. If not provided this may be inferred from the query
description: Submitted city
query_state:
type: string
description: Originally submitted state. If not provided this may be inferred from the query
description: Submitted state
query_zip_code:
type: string
description: Originally submitted zip_code. If not provided this may be inferred from the query
description: Submitted zip_code
match:
description: Nearest matching address
oneOf:
Expand Down Expand Up @@ -8348,12 +8349,12 @@ components:
minimum: 0
description: |
A confidence score represented as number between 1 and 0. 1 indicates a full match. 0 indicates no complete matching elements.
address1:
address_line_one:
type: string
description: |
Primary delivery address
example: 123 Main St
address2:
address_line_two:
type: string
description: |
Secondary address information
Expand All @@ -8373,6 +8374,11 @@ components:
description: |
Zip code
example: 81073-1119
iso_country_2:
type: string
description: |
2 letter ISO country code
example: US
UsaVerifyNoMatch:
type: object
title: No Address Match
Expand All @@ -8385,11 +8391,12 @@ components:
- count
- fit
- confidence
- address1
- address2
- address_line_one
- address_line_two
- city
- state
- zip_code
- iso_country_2
properties:
query:
type: string
Expand Down Expand Up @@ -8426,13 +8433,13 @@ components:
description: ''
enum:
- 0
address1:
address_line_one:
type: string
description: |
Empty if no match
enum:
- ''
address2:
address_line_two:
type: string
description: |
Empty if no match
Expand All @@ -8456,6 +8463,12 @@ components:
Empty if no match
enum:
- ''
iso_country_2:
type: string
description: |
Empty if no match
enum:
- ''
VerifyResponse:
title: Address Verify Response
type: object
Expand Down
28 changes: 20 additions & 8 deletions openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4952,13 +4952,13 @@ export interface components {
};
/** Address Match */
UsaVerifyMatch: {
/** @description Originally submitted query */
/** @description Submitted query */
query: string;
/** @description Originally submitted city. If not provided this may be inferred from the query */
/** @description Submitted city */
query_city: string;
/** @description Originally submitted state. If not provided this may be inferred from the query */
/** @description Submitted state */
query_state: string;
/** @description Originally submitted zip_code. If not provided this may be inferred from the query */
/** @description Submitted zip_code */
query_zip_code: string;
/** @description Nearest matching address */
match:
Expand All @@ -4979,13 +4979,13 @@ export interface components {
*
* @example 123 Main St
*/
address1: string;
address_line_one: string;
/**
* @description Secondary address information
*
* @example
*/
address2: string;
address_line_two: string;
/**
* @description City name
*
Expand All @@ -5004,6 +5004,12 @@ export interface components {
* @example 81073-1119
*/
zip_code: string;
/**
* @description 2 letter ISO country code
*
* @example US
*/
iso_country_2: string;
};
/** No Address Match */
UsaVerifyNoMatch: {
Expand Down Expand Up @@ -5037,13 +5043,13 @@ export interface components {
*
* @enum {string}
*/
address1: "";
address_line_one: "";
/**
* @description Empty if no match
*
* @enum {string}
*/
address2: "";
address_line_two: "";
/**
* @description Empty if no match
*
Expand All @@ -5062,6 +5068,12 @@ export interface components {
* @enum {string}
*/
zip_code: "";
/**
* @description Empty if no match
*
* @enum {string}
*/
iso_country_2: "";
};
/** Address Verify Response */
VerifyResponse: {
Expand Down

0 comments on commit b1b52fe

Please sign in to comment.