-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cart): Magento driver crashes while setting cart address by ID (#…
- Loading branch information
Showing
16 changed files
with
116 additions
and
32 deletions.
There are no files selected for viewing
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
6 changes: 2 additions & 4 deletions
6
libs/cart/driver/magento/src/models/requests/billing-address.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,8 +1,6 @@ | ||
import { MagentoCartAddressInput } from './cart-address'; | ||
import { MagentoCartAddressInputBase } from './cart-address-base'; | ||
|
||
export interface MagentoBillingAddressInput { | ||
address: MagentoCartAddressInput; | ||
customer_address_id?: number; | ||
export interface MagentoBillingAddressInput extends MagentoCartAddressInputBase { | ||
same_as_shipping?: boolean; | ||
use_for_shipping?: boolean; | ||
} |
6 changes: 6 additions & 0 deletions
6
libs/cart/driver/magento/src/models/requests/cart-address-base.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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { MagentoCartAddressInput } from './cart-address'; | ||
|
||
export interface MagentoCartAddressInputBase { | ||
address?: MagentoCartAddressInput; | ||
customer_address_id?: number; | ||
} |
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
6 changes: 2 additions & 4 deletions
6
libs/cart/driver/magento/src/models/requests/shipping-address.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,7 +1,5 @@ | ||
import { MagentoCartAddressInput } from './cart-address'; | ||
import { MagentoCartAddressInputBase } from './cart-address-base'; | ||
|
||
export interface MagentoShippingAddressInput { | ||
address: MagentoCartAddressInput; | ||
customer_address_id?: number; | ||
export interface MagentoShippingAddressInput extends MagentoCartAddressInputBase { | ||
customer_notes?: string; | ||
} |
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
3 changes: 3 additions & 0 deletions
3
libs/cart/driver/magento/src/queries/update-address-with-email/public_api.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './query'; | ||
export * from './variables.type'; | ||
export * from './response.type'; |
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
2 changes: 1 addition & 1 deletion
2
...es/responses/update-address-with-email.ts → ...pdate-address-with-email/response.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
8 changes: 8 additions & 0 deletions
8
libs/cart/driver/magento/src/queries/update-address-with-email/variables.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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { MagentoCartAddressInput } from '../../models/public_api'; | ||
|
||
export interface MagentoCartUpdateAddressWithEmailQueryVariables { | ||
cartId: string; | ||
email: string; | ||
address?: MagentoCartAddressInput; | ||
addressId?: number; | ||
} |
3 changes: 3 additions & 0 deletions
3
libs/cart/driver/magento/src/queries/update-address/public_api.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export * from './query'; | ||
export * from './variables.type'; | ||
export * from './response.type'; |
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
2 changes: 1 addition & 1 deletion
2
...o/src/queries/responses/update-address.ts → ...c/queries/update-address/response.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
7 changes: 7 additions & 0 deletions
7
libs/cart/driver/magento/src/queries/update-address/variables.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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { MagentoCartAddressInput } from '../../models/public_api'; | ||
|
||
export interface MagentoCartUpdateAddressQueryVariables { | ||
cartId: string; | ||
address?: MagentoCartAddressInput; | ||
addressId?: number; | ||
} |