@xsolla/payment-client-core 0.2.13 → 0.2.15
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/esm2020/lib/core/payment/form/controls/search-select/select-control.config.mjs +8 -0
- package/esm2020/lib/core/payment/form/converters/cvv/cvv.converter.mjs +3 -3
- package/esm2020/lib/core/payment/form/converters/pricepoint/pricepoint.converter.mjs +2 -2
- package/esm2020/lib/core/payment/form/converters/select/select.converter.mjs +4 -3
- package/esm2020/lib/core/payment/form/converters/zip/zip.converter.mjs +2 -5
- package/esm2020/lib/core/payment/form/form.service.mjs +4 -1
- package/esm2020/lib/core/payment/initialize/initialize-request-params.interface.mjs +1 -1
- package/esm2020/lib/core/payment/initialize/initialize.service.mjs +1 -4
- package/esm2020/lib/core/payment/payment.interface.mjs +1 -1
- package/esm2020/lib/core/payment/payment.service.mjs +4 -1
- package/esm2020/lib/core/payment/xps-api/xps-api.service.mjs +2 -1
- package/esm2020/lib/core/settings/configuration.interface.mjs +1 -1
- package/esm2020/lib/core/settings/settings.service.mjs +5 -1
- package/esm2020/lib/core-library.service.mjs +2 -6
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/xsolla-payment-client-core.mjs +21 -24
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +20 -23
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/form/controls/search-select/{search-select-control.config.d.ts → select-control.config.d.ts} +2 -2
- package/lib/core/payment/form/converters/select/select.converter.d.ts +2 -2
- package/lib/core/payment/form/form.service.d.ts +2 -0
- package/lib/core/payment/initialize/initialize-request-params.interface.d.ts +0 -1
- package/lib/core/payment/initialize/initialize.service.d.ts +0 -1
- package/lib/core/payment/payment.interface.d.ts +1 -0
- package/lib/core/payment/payment.service.d.ts +1 -0
- package/lib/core/settings/configuration.interface.d.ts +1 -0
- package/lib/core/settings/settings.service.d.ts +2 -0
- package/lib/core-library.service.d.ts +0 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/xsolla-payment-client-core-0.2.15.tgz +0 -0
- package/esm2020/lib/core/payment/form/controls/search-select/search-select-control.config.mjs +0 -8
- package/esm2020/lib/core/payment/form/mask-config.interface.mjs +0 -2
- package/esm2020/lib/core/payment/form/masks-functions.map.mjs +0 -7
- package/lib/core/payment/form/mask-config.interface.d.ts +0 -6
- package/lib/core/payment/form/masks-functions.map.d.ts +0 -3
- package/xsolla-payment-client-core-0.2.13.tgz +0 -0
|
@@ -2,10 +2,10 @@ import { ControlConfig } from '../control-config';
|
|
|
2
2
|
import { SafeHtml } from '@angular/platform-browser';
|
|
3
3
|
import { SearchSelectOption } from './search-select-option.interface';
|
|
4
4
|
import { SelectOption } from './select-option.interface';
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class SelectControlConfig extends ControlConfig {
|
|
6
6
|
controlType: string;
|
|
7
7
|
name: string;
|
|
8
8
|
title?: string | SafeHtml;
|
|
9
9
|
options?: SelectOption[] | SearchSelectOption[];
|
|
10
|
-
|
|
10
|
+
initValue?: string;
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Converter } from '../converter.abstract';
|
|
2
2
|
import { SyncService } from '../../../sync/sync.service';
|
|
3
|
-
import {
|
|
3
|
+
import { SelectControlConfig } from '../../controls/search-select/select-control.config';
|
|
4
4
|
import { Field } from '../../../field.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SelectConverter extends Converter {
|
|
7
7
|
constructor(syncService: SyncService);
|
|
8
|
-
protected createControlConfig(field: Field):
|
|
8
|
+
protected createControlConfig(field: Field): SelectControlConfig;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<SelectConverter, never>;
|
|
10
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<SelectConverter>;
|
|
11
11
|
}
|
|
@@ -3,12 +3,14 @@ import { Field } from '../field.interface';
|
|
|
3
3
|
import { ControlConfigService } from './controls/control-config.service';
|
|
4
4
|
import { FieldFormStates } from './field-form-states.interface';
|
|
5
5
|
import { FormState } from './form-state.interface';
|
|
6
|
+
import { FieldNames } from '../field-names.enum';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class FormService {
|
|
8
9
|
protected readonly controlConfigService: ControlConfigService;
|
|
9
10
|
fieldFormStates: FieldFormStates;
|
|
10
11
|
constructor(controlConfigService: ControlConfigService);
|
|
11
12
|
createForm(fields: Field[]): UntypedFormGroup;
|
|
13
|
+
getFieldFormState(fieldName: FieldNames): FormState | null;
|
|
12
14
|
updateFieldFormState(form: UntypedFormGroup, fields: Field[], fieldName: string, formState: FormState): void;
|
|
13
15
|
private getVisibleFields;
|
|
14
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
|
|
@@ -20,7 +20,6 @@ export declare class InitializeService {
|
|
|
20
20
|
private readonly encryptCreditCardService;
|
|
21
21
|
private readonly showErrorsActionCreator;
|
|
22
22
|
private readonly userBehaviourAnalyticsService;
|
|
23
|
-
private readonly ps4ReferId;
|
|
24
23
|
constructor(responseFactory: InitializeResponseFactory, xpsApiService: XpsApiService, settingsService: SettingsService, countryService: CountryService, nextActionService: NextActionService, xpsResponseErrorsMappingService: XpsResponseErrorsMappingService, encryptCreditCardService: EncryptCreditCardService, showErrorsActionCreator: ShowErrorsActionCreator, userBehaviourAnalyticsService: UserBehaviourAnalyticsService);
|
|
25
24
|
request(config: PaymentConfig): Promise<InitializeResponse>;
|
|
26
25
|
private setCreditCardEncryptKey;
|
|
@@ -26,6 +26,7 @@ export interface Payment {
|
|
|
26
26
|
getControlConfig(field: Field): ControlConfig | null;
|
|
27
27
|
changeFieldState(name: string, state: InputEventName): void;
|
|
28
28
|
updateFieldFormState(fieldName: string, formState: FormState): void;
|
|
29
|
+
getFieldFormState(fieldName: FieldNames): FormState | null;
|
|
29
30
|
formMessages$: Observable<string[]>;
|
|
30
31
|
getFormStatus(): FormControlStatus | undefined;
|
|
31
32
|
getControlStatus(name: FieldNames): ControlStatus | null;
|
|
@@ -72,6 +72,7 @@ export declare class PaymentService {
|
|
|
72
72
|
runThreeDs(): void;
|
|
73
73
|
getFinanceDetails(): FinanceDetails | null;
|
|
74
74
|
updateFieldFormState(fieldName: string, formState: FormState): void;
|
|
75
|
+
getFieldFormState(fieldName: FieldNames): FormState | null;
|
|
75
76
|
getStatus(): Promise<Status>;
|
|
76
77
|
listenFinalStatus(): Promise<void>;
|
|
77
78
|
getFieldConfig(field: Field): ControlConfig | null;
|
|
@@ -22,9 +22,11 @@ export declare class SettingsService {
|
|
|
22
22
|
private response;
|
|
23
23
|
private _token;
|
|
24
24
|
private sandboxMode;
|
|
25
|
+
private _refer;
|
|
25
26
|
constructor(secureApi: SecureApiClient);
|
|
26
27
|
init(configuration: InitConfiguration): Promise<void>;
|
|
27
28
|
isSandboxMode(): boolean;
|
|
29
|
+
get refer(): number;
|
|
28
30
|
private sendRequest;
|
|
29
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsService, never>;
|
|
30
32
|
static ɵprov: i0.ɵɵInjectableDeclaration<SettingsService>;
|
|
@@ -10,7 +10,6 @@ import { UserBalanceService } from './core/user-balance/user-balance.service';
|
|
|
10
10
|
import { PaymentConfig } from './core/payment/payment-config.interface';
|
|
11
11
|
import { PaymentService } from './core/payment/payment.service';
|
|
12
12
|
import { Payment } from './core/payment/payment.interface';
|
|
13
|
-
import { Field } from './core/payment/field.interface';
|
|
14
13
|
import { DeviceFingerPrintService } from './core/device-finger-print/device-finger-print.service';
|
|
15
14
|
import { LegalService } from './core/legal/legal.service';
|
|
16
15
|
import { LegalComponentConfig } from './core/legal/legal.component.config';
|
|
@@ -84,7 +83,6 @@ export declare class CoreLibraryService {
|
|
|
84
83
|
get financeDetailsUpdates$(): Observable<FinanceDetails>;
|
|
85
84
|
get cardTypeUpdates$(): Observable<CreditCardState>;
|
|
86
85
|
getLegalComponentConfig(): LegalComponentConfig;
|
|
87
|
-
getFieldMask(field: Field): undefined | (() => string);
|
|
88
86
|
getUserBalanceValue(): Balance | null;
|
|
89
87
|
get paymentForm$(): Observable<FormControlStatus | null>;
|
|
90
88
|
get formResponse$(): Observable<FormResponse | null>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -8,3 +8,4 @@ export * from './lib/core/sdk-payment-systems/apple-pay/apple-pay-params.interfa
|
|
|
8
8
|
export * from './lib/core/user-behaviour-analytics/user-behaviour-event/user-behaviour-event-types';
|
|
9
9
|
export * from './lib/core/payment/form/control-status.interface';
|
|
10
10
|
export * from './lib/core/payment/field-names.enum';
|
|
11
|
+
export * from './lib/core/credit-card/credit-card-types.enum';
|
|
Binary file
|
package/esm2020/lib/core/payment/form/controls/search-select/search-select-control.config.mjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ControlConfig } from '../control-config';
|
|
2
|
-
export class SearchSelectControlConfig extends ControlConfig {
|
|
3
|
-
constructor() {
|
|
4
|
-
super(...arguments);
|
|
5
|
-
this.controlType = 'search-select';
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLXNlbGVjdC1jb250cm9sLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3BheW1lbnQtY2xpZW50LWNvcmUvc3JjL2xpYi9jb3JlL3BheW1lbnQvZm9ybS9jb250cm9scy9zZWFyY2gtc2VsZWN0L3NlYXJjaC1zZWxlY3QtY29udHJvbC5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBS2xELE1BQU0sT0FBTyx5QkFBMEIsU0FBUSxhQUFhO0lBQTVEOztRQUNTL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mdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBNYXNrQ29uZmlnIHtcbiAgZ3VpZGU6IGJvb2xlYW47XG4gIHVubWFza01vZGVsVmFsdWU6IGJvb2xlYW47XG4gIHNob3dNYXNrOiBib29sZWFuO1xuICBtYXNrPygpOiBzdHJpbmc7XG59XG4iXX0=
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export const masksFunctionsMap = {
|
|
2
|
-
zip: () => {
|
|
3
|
-
const zipLength = 5;
|
|
4
|
-
return new Array(zipLength).fill('9').join('');
|
|
5
|
-
},
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWFza3MtZnVuY3Rpb25zLm1hcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3BheW1lbnQtY2xpZW50LWNvcmUvc3JjL2xpYi9jb3JlL3BheW1lbnQvZm9ybS9tYXNrcy1mdW5jdGlvbnMubWFwLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBQyxNQUFNLGlCQUFpQixHQUFnRDtJQUM1RSxHQUFHLEVBQUUsR0FBRyxFQUFFO1FBQ1IsTUFBTSxTQUFTLEdBQUcsQ0FBQyxDQUFDO1FBQ3BCLE9BQU8sSUFBSSxLQUFLLENBQUMsU0FBUyxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztJQUNqRCxDQUFDO0NBQ0YsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBjb25zdCBtYXNrc0Z1bmN0aW9uc01hcDogeyBbZmllbGROYW1lT3JUeXBlOiBzdHJpbmddOiAoKSA9PiBzdHJpbmcgfSA9IHtcbiAgemlwOiAoKSA9PiB7XG4gICAgY29uc3QgemlwTGVuZ3RoID0gNTtcbiAgICByZXR1cm4gbmV3IEFycmF5KHppcExlbmd0aCkuZmlsbCgnOScpLmpvaW4oJycpO1xuICB9LFxufTtcbiJdfQ==
|
|
Binary file
|