@rokt/dcui-orchestrator 1.2.1-rc.39 → 1.2.1-rc.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +14 -14
- package/dist/index.js +17 -17
- package/dist/libraries/domain/src/behaviors/custom-states.d.ts +1 -1
- package/dist/libraries/domain/src/models/purchase.d.ts +3 -0
- package/dist/modules/instant-purchase/src/models/state/device-pay-availability.d.ts +1 -0
- package/dist/modules/instant-purchase/src/sagas/device-pay/sagas.d.ts +2 -7
- package/dist/modules/instant-purchase/src/selectors/device-pay-availability/selectors.d.ts +1 -0
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ export declare function isValidSetCustomStatePayload(payload: unknown): payload
|
|
|
17
17
|
export declare const DEVICE_PAY_PROCESSING_STATE_KEY = "ProcessingState";
|
|
18
18
|
export declare const DEVICE_PAY_PROCESSING_IDLE = 0;
|
|
19
19
|
export declare const DEVICE_PAY_PROCESSING_IN_FLIGHT = 1;
|
|
20
|
-
export declare const DEVICE_PAY_AVAILABILITY_KEYS: readonly ["applePay", "afterpay", "paypal"];
|
|
20
|
+
export declare const DEVICE_PAY_AVAILABILITY_KEYS: readonly ["applePay", "afterpay", "paypal", "googlePay"];
|
|
21
21
|
export type DevicePayProviderKey = (typeof DEVICE_PAY_AVAILABILITY_KEYS)[number];
|
|
22
22
|
export declare const DEVICE_PAY_APPLE_PAY_AVAILABLE_STATE_KEY = "applePayAvailable";
|
|
23
23
|
export declare const DEVICE_PAY_ERROR_STATE_KEY = "DevicePayErrorState";
|
|
@@ -62,6 +62,9 @@ export interface ShippingAttributes {
|
|
|
62
62
|
postalCode: string;
|
|
63
63
|
}
|
|
64
64
|
export interface PrepareDevicePayEventPayload {
|
|
65
|
+
googlePayConfigJson?: string;
|
|
66
|
+
googlePayHandlerId?: string;
|
|
67
|
+
googlePayHandlerVersion?: string;
|
|
65
68
|
stripeAccountId?: string;
|
|
66
69
|
merchantName?: string;
|
|
67
70
|
countryCode?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CallEffect, PutEffect, ChannelTakeEffect } from 'redux-saga/effects';
|
|
2
2
|
import { EventChannel } from 'redux-saga';
|
|
3
|
-
import { Log, PaymentMethodType, PluginCatalogItem, ShippingAttributes } from '../../../../../libraries/domain/src/models';
|
|
3
|
+
import { Log, PaymentMethodType, PluginCatalogItem, PrepareDevicePayEventPayload, ShippingAttributes } from '../../../../../libraries/domain/src/models';
|
|
4
4
|
import { GlobalGateway } from '../../../../../libraries/module-connector/src/main';
|
|
5
5
|
import { OfferLifecycle } from '../../../../../libraries/domain/src/behaviors';
|
|
6
6
|
import { DevicePayPurchaseContext, DevicePayInteractionPayload, InitiateDevicePayAction, DevicePayResponsePayload, DevicePayResponse, DevicePayAvailableAction, DevicePayAvailablePayload } from '../../actions';
|
|
@@ -120,12 +120,7 @@ export declare function prepareDevicePay(gateway: GlobalGateway, logger: (log: L
|
|
|
120
120
|
type: string;
|
|
121
121
|
payload: {
|
|
122
122
|
name: string;
|
|
123
|
-
body:
|
|
124
|
-
stripeAccountId: string | undefined;
|
|
125
|
-
merchantName: string | undefined;
|
|
126
|
-
countryCode: string | undefined;
|
|
127
|
-
currency: string | undefined;
|
|
128
|
-
};
|
|
123
|
+
body: PrepareDevicePayEventPayload;
|
|
129
124
|
};
|
|
130
125
|
}>, void, AppState | undefined>;
|
|
131
126
|
export declare function processDevicePayResponse(logger: (log: Log) => void, action: DevicePayResponse): Generator<CallEffect<void> | PutEffect<{
|
|
@@ -2,6 +2,7 @@ import { DevicePayAvailabilityState } from '../../models';
|
|
|
2
2
|
import { AppState } from '../../reducers';
|
|
3
3
|
export declare function getDevicePayAvailability(state: AppState): DevicePayAvailabilityState;
|
|
4
4
|
export declare function isApplePayAvailable(state: AppState): boolean;
|
|
5
|
+
export declare function isGooglePayAvailable(state: AppState): boolean;
|
|
5
6
|
export declare function isAfterpayAvailable(state: AppState): boolean;
|
|
6
7
|
export declare function isPayPalAvailable(state: AppState): boolean;
|
|
7
8
|
/**
|