@xsolla/payment-client-core 0.2.93 → 0.2.94
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/esm2022/lib/core/payment/payment-configurations/types/credit-card-form-configuration.interface.mjs +1 -1
- package/esm2022/lib/core/payment/payment-settings/payment-settings-request-params.interface.mjs +1 -1
- package/esm2022/lib/core/payment/payment-settings/payment-settings.service.mjs +16 -2
- package/esm2022/lib/core/transaction-initiation-type.enum.mjs +2 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/xsolla-payment-client-core.mjs +15 -1
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/payment-configurations/types/credit-card-form-configuration.interface.d.ts +7 -1
- package/lib/core/payment/payment-settings/payment-settings-request-params.interface.d.ts +5 -0
- package/lib/core/payment/payment-settings/payment-settings.service.d.ts +1 -0
- package/lib/core/transaction-initiation-type.enum.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/xsolla-payment-client-core-0.2.94.tgz +0 -0
- package/xsolla-payment-client-core-0.2.93.tgz +0 -0
package/lib/core/payment/payment-configurations/types/credit-card-form-configuration.interface.d.ts
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
import { creditCardPaymentMethodId } from '../../credit-card-payment-methods-id.variable';
|
|
2
2
|
import { BasePaymentConfiguration } from '../../payment-configuration.interface';
|
|
3
|
+
import { TransactionInitiationType } from '../../../transaction-initiation-type.enum';
|
|
3
4
|
interface SpecialPaymentSettingsBase {
|
|
4
5
|
useSingleExpirationDateField?: boolean;
|
|
5
6
|
}
|
|
6
7
|
type SpecialPaymentSettings = SpecialPaymentSettingsBase & {
|
|
7
8
|
useExternalVault?: false;
|
|
8
9
|
isPaymentViaSavedMethod?: never;
|
|
10
|
+
transactionInitiationType?: never;
|
|
9
11
|
};
|
|
10
12
|
type SpecialPaymentSettingsWithVault = SpecialPaymentSettingsBase & {
|
|
11
13
|
useExternalVault: true;
|
|
12
|
-
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use transactionInitiationType instead
|
|
16
|
+
*/
|
|
17
|
+
isPaymentViaSavedMethod?: boolean;
|
|
18
|
+
transactionInitiationType?: TransactionInitiationType;
|
|
13
19
|
};
|
|
14
20
|
type PaymentConfigurationCreditCardBase = BasePaymentConfiguration & {
|
|
15
21
|
paymentMethodId: typeof creditCardPaymentMethodId;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { XpsBoolean } from '../../xps-boolean.enum';
|
|
2
|
+
import { TransactionInitiationType } from '../../transaction-initiation-type.enum';
|
|
2
3
|
export interface PaymentSettingsRequestParams {
|
|
3
4
|
useSingleExpirationDateField?: XpsBoolean;
|
|
4
5
|
useExternalVault?: XpsBoolean;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Use transactionInitiationType instead
|
|
8
|
+
*/
|
|
5
9
|
isPaymentViaSavedMethod?: XpsBoolean;
|
|
10
|
+
transactionInitiationType?: TransactionInitiationType;
|
|
6
11
|
}
|
|
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class PaymentSettingsService {
|
|
5
5
|
getPaymentSettingsParams(config: PaymentConfiguration | null): PaymentSettingsRequestParams;
|
|
6
6
|
private toXps;
|
|
7
|
+
private resolveTransactionInitiationType;
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentSettingsService, never>;
|
|
8
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<PaymentSettingsService>;
|
|
9
10
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './lib/core/payment/form/control-status.interface';
|
|
|
11
11
|
export * from './lib/core/payment/field-names.enum';
|
|
12
12
|
export * from './lib/core/credit-card/credit-card-types.enum';
|
|
13
13
|
export * from './lib/core/countries-api/country-response.interface';
|
|
14
|
+
export * from './lib/core/transaction-initiation-type.enum';
|
|
14
15
|
export * from './lib/core/sdk-payment-systems/google-pay/google-pay-button-color.type';
|
|
15
16
|
export * from './lib/core/xsolla-number/api/send-instruction/response/send-instruction-response.interface';
|
|
16
17
|
export * from './lib/core/exceptions-handling/errors';
|
|
Binary file
|
|
Binary file
|