c5aecceb5a
* Allow observers to set billingAddress by returning billingData This is required since we didn't correctly deprecate billingData when we changed the name to billingAddress * Add link to original PR * Set billingAddress when observer errors * Rename shippingData to shippingAddress * Add isBillingAddress and isShippingAddress type guards * Add tests for new type guards * Only set billing and shipping if they are valid objects * Add tests for __internalEmitPaymentProcessingEvent thunk * Update deprecated version * Return promise from this function to aid with testability * Add tests for shippingAddress and paymentMethodData * Ensure correct value is used to set shipping address * Move test data out of tests to aid with reusability * Improve success callback name * Add mocked __internalSetPaymentMethodData to correct object It was in registry, but should be in dispatch as the action is on the same store as the thunk. Registry is used for actions on other stores. * Add test for failed observers * Add test for mixed observers * Add comments explaining the destructure & deprecation |
||
---|---|---|
.. | ||
test | ||
utils | ||
action-types.ts | ||
actions.ts | ||
constants.ts | ||
default-state.ts | ||
index.ts | ||
reducers.ts | ||
selectors.ts | ||
thunks.ts | ||
types.ts |