-
-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(customer): correctly handle missing customer address ID (#2515)
yes this can really happen
- Loading branch information
Showing
3 changed files
with
26 additions
and
13 deletions.
There are no files selected for viewing
24 changes: 12 additions & 12 deletions
24
libs/customer/driver/magento/src/models/responses/customer-address.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
export interface MagentoCustomerAddress { | ||
id: number; | ||
id?: number; | ||
region: { | ||
region_code: string; | ||
region_id: number; | ||
}; | ||
country_code: string; | ||
street: string[]; | ||
company: string; | ||
telephone: string; | ||
postcode: string; | ||
city: string; | ||
firstname: string; | ||
lastname: string; | ||
email: string; | ||
default_billing: boolean; | ||
default_shipping: boolean; | ||
country_code?: string; | ||
street?: string[]; | ||
company?: string; | ||
telephone?: string; | ||
postcode?: string; | ||
city?: string; | ||
firstname?: string; | ||
lastname?: string; | ||
email?: string; | ||
default_billing?: boolean; | ||
default_shipping?: boolean; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters