@xsolla/payment-client-core 0.2.69 → 0.2.71
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-configuration.interface.mjs +1 -1
- package/esm2022/lib/core/payment/payment-configurations/types/credit-card-form-configuration.interface.mjs +2 -0
- 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 +13 -6
- package/esm2022/lib/core/web-socket/centrifugo-web-socket.service.mjs +6 -1
- package/esm2022/lib/core/web-socket/nchan-web-socket.service.mjs +13 -1
- package/fesm2022/xsolla-payment-client-core.mjs +29 -5
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/payment-configuration.interface.d.ts +1 -7
- package/lib/core/payment/payment-configurations/types/credit-card-form-configuration.interface.d.ts +24 -0
- package/lib/core/payment/payment-settings/payment-settings-request-params.interface.d.ts +2 -0
- package/lib/core/payment/payment-settings/payment-settings.service.d.ts +1 -0
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.2.71.tgz +0 -0
- package/xsolla-payment-client-core-0.2.69.tgz +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { XpsBoolean } from '../xps-boolean.enum';
|
|
2
2
|
import { creditCardPaymentMethodId } from './credit-card-payment-methods-id.variable';
|
|
3
|
+
import { PaymentConfigurationCreditCardSettings } from './payment-configurations/types/credit-card-form-configuration.interface';
|
|
3
4
|
export interface OverridedField {
|
|
4
5
|
initialValue: XpsBoolean | string;
|
|
5
6
|
}
|
|
@@ -14,13 +15,6 @@ export interface BasePaymentConfiguration {
|
|
|
14
15
|
[key: string]: OverridedField;
|
|
15
16
|
};
|
|
16
17
|
}
|
|
17
|
-
interface SpecialPaymentSettings {
|
|
18
|
-
useSingleExpirationDateField?: boolean;
|
|
19
|
-
}
|
|
20
|
-
interface PaymentConfigurationCreditCardSettings extends BasePaymentConfiguration {
|
|
21
|
-
paymentMethodId: typeof creditCardPaymentMethodId;
|
|
22
|
-
paymentMethodSettings: SpecialPaymentSettings;
|
|
23
|
-
}
|
|
24
18
|
interface PaymentConfigurationWithGeneralSettings extends BasePaymentConfiguration {
|
|
25
19
|
paymentMethodId: Exclude<number, typeof creditCardPaymentMethodId>;
|
|
26
20
|
paymentMethodSettings?: never;
|
package/lib/core/payment/payment-configurations/types/credit-card-form-configuration.interface.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { creditCardPaymentMethodId } from '../../credit-card-payment-methods-id.variable';
|
|
2
|
+
import { BasePaymentConfiguration } from '../../payment-configuration.interface';
|
|
3
|
+
interface SpecialPaymentSettingsBase {
|
|
4
|
+
useSingleExpirationDateField?: boolean;
|
|
5
|
+
}
|
|
6
|
+
type SpecialPaymentSettings = SpecialPaymentSettingsBase & {
|
|
7
|
+
useExternalVault?: false;
|
|
8
|
+
isPaymentViaSavedMethod?: never;
|
|
9
|
+
};
|
|
10
|
+
type SpecialPaymentSettingsWithVault = SpecialPaymentSettingsBase & {
|
|
11
|
+
useExternalVault: true;
|
|
12
|
+
isPaymentViaSavedMethod: boolean;
|
|
13
|
+
};
|
|
14
|
+
type PaymentConfigurationCreditCardBase = BasePaymentConfiguration & {
|
|
15
|
+
paymentMethodId: typeof creditCardPaymentMethodId;
|
|
16
|
+
};
|
|
17
|
+
type PaymentConfigurationCreditCard = PaymentConfigurationCreditCardBase & {
|
|
18
|
+
paymentMethodSettings: SpecialPaymentSettings;
|
|
19
|
+
};
|
|
20
|
+
type PaymentConfigurationCreditCardWithVault = PaymentConfigurationCreditCardBase & {
|
|
21
|
+
paymentMethodSettings: SpecialPaymentSettingsWithVault;
|
|
22
|
+
};
|
|
23
|
+
export type PaymentConfigurationCreditCardSettings = PaymentConfigurationCreditCard | PaymentConfigurationCreditCardWithVault;
|
|
24
|
+
export {};
|
|
@@ -3,6 +3,7 @@ import { PaymentSettingsRequestParams } from './payment-settings-request-params.
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PaymentSettingsService {
|
|
5
5
|
getPaymentSettingsParams(config: PaymentConfiguration | null): PaymentSettingsRequestParams;
|
|
6
|
+
private toXps;
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentSettingsService, never>;
|
|
7
8
|
static ɵprov: i0.ɵɵInjectableDeclaration<PaymentSettingsService>;
|
|
8
9
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|