@xsolla/payment-client-core 0.2.43 → 0.2.45
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/environment.interface.mjs +2 -0
- package/esm2022/lib/core/payment/actions/action.interface.mjs +1 -1
- package/esm2022/lib/core/payment/actions/next-action.service.mjs +1 -1
- package/esm2022/lib/core/payment/field-names.enum.mjs +4 -1
- package/esm2022/lib/core/payment/field.interface.mjs +1 -1
- package/esm2022/lib/core/payment/finance-details/finance-details.service.mjs +4 -1
- package/esm2022/lib/core/payment/initialize-actions/action.interface.mjs +2 -0
- package/esm2022/lib/core/payment/initialize-actions/initialize-next-action.service.mjs +40 -0
- package/esm2022/lib/core/payment/initialize-actions/initialize-next-actions.mjs +7 -0
- package/esm2022/lib/core/payment/initialize-actions/next-action.interface.mjs +2 -0
- package/esm2022/lib/core/payment/initialize-actions/special-button/special-button.action.class.mjs +46 -0
- package/esm2022/lib/core/payment/initialize-actions/special-button/special-button.action.type.mjs +2 -0
- package/esm2022/lib/core/payment/initialized-form.inteface.mjs +1 -1
- package/esm2022/lib/core/payment/payment.service.mjs +72 -24
- package/esm2022/lib/core/payment/sync/request/sync-request.class.mjs +3 -1
- package/esm2022/lib/core/payment/sync/sync.service.mjs +4 -4
- package/esm2022/lib/core/payment/xps-error.interface.mjs +1 -1
- package/esm2022/lib/core/script-tracker/script-tracker.service.mjs +88 -0
- package/esm2022/lib/core/sdk-payment-systems/google-pay/check-payment-device-data.interface.mjs +2 -0
- package/esm2022/lib/core/sdk-payment-systems/google-pay/google-pay-init-params.interface.mjs +1 -1
- package/esm2022/lib/core/sdk-payment-systems/google-pay/google-pay-library.interface.mjs +1 -1
- package/esm2022/lib/core/sdk-payment-systems/google-pay/google-pay.service.mjs +70 -59
- package/esm2022/lib/core/sdk-payment-systems/google-pay/payment/google-pay-checkout-payment.service.mjs +75 -0
- package/esm2022/lib/core/sdk-payment-systems/google-pay/payment/google-pay-instant-payment.service.mjs +121 -0
- package/esm2022/lib/core/sdk-payment-systems/google-pay/payment/google-pay-payment-service.interface.mjs +2 -0
- package/esm2022/lib/core/sdk-payment-systems/google-pay/updated-price.interface.mjs +2 -0
- package/esm2022/lib/core/sdk-payment-systems/sdk-payment-systems-initial-data.interface.mjs +1 -1
- package/esm2022/lib/core/sdk-payment-systems/sdk-payment-systems.interface.mjs +1 -1
- package/esm2022/lib/core/settings/configuration.interface.mjs +1 -1
- package/esm2022/lib/core/user-behaviour-analytics/event-builder/event-builder.service.mjs +2 -1
- package/esm2022/lib/core/user-behaviour-analytics/event-builder/event-parameter-types.mjs +2 -1
- package/esm2022/lib/core/user-behaviour-analytics/user-behaviour-analytics.interface.mjs +1 -1
- package/esm2022/lib/core/user-behaviour-analytics/user-behaviour-event-name.enum.mjs +2 -1
- package/esm2022/lib/core-library.module.mjs +12 -1
- package/esm2022/lib/core-library.service.mjs +19 -5
- package/fesm2022/xsolla-payment-client-core.mjs +649 -213
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/environment.interface.d.ts +1 -0
- package/lib/core/payment/actions/action.interface.d.ts +2 -2
- package/lib/core/payment/actions/next-action.service.d.ts +1 -1
- package/lib/core/payment/actions/next-actions.d.ts +1 -1
- package/lib/core/payment/field-names.enum.d.ts +4 -1
- package/lib/core/payment/field.interface.d.ts +1 -1
- package/lib/core/payment/finance-details/finance-details.service.d.ts +1 -0
- package/lib/core/payment/initialize-actions/action.interface.d.ts +11 -0
- package/lib/core/payment/initialize-actions/initialize-next-action.service.d.ts +16 -0
- package/lib/core/payment/initialize-actions/initialize-next-actions.d.ts +5 -0
- package/lib/core/payment/initialize-actions/next-action.interface.d.ts +2 -0
- package/lib/core/payment/initialize-actions/special-button/special-button.action.class.d.ts +17 -0
- package/lib/core/payment/initialize-actions/special-button/special-button.action.type.d.ts +6 -0
- package/lib/core/payment/initialized-form.inteface.d.ts +2 -0
- package/lib/core/payment/payment.service.d.ts +11 -2
- package/lib/core/payment/sync/sync.service.d.ts +1 -1
- package/lib/core/payment/xps-error.interface.d.ts +1 -0
- package/lib/core/script-tracker/script-tracker.service.d.ts +19 -0
- package/lib/core/sdk-payment-systems/google-pay/check-payment-device-data.interface.d.ts +9 -0
- package/lib/core/sdk-payment-systems/google-pay/google-pay-init-params.interface.d.ts +6 -0
- package/lib/core/sdk-payment-systems/google-pay/google-pay-library.interface.d.ts +170 -52
- package/lib/core/sdk-payment-systems/google-pay/google-pay.service.d.ts +18 -10
- package/lib/core/sdk-payment-systems/google-pay/payment/google-pay-checkout-payment.service.d.ts +18 -0
- package/lib/core/sdk-payment-systems/google-pay/payment/google-pay-instant-payment.service.d.ts +18 -0
- package/lib/core/sdk-payment-systems/google-pay/payment/google-pay-payment-service.interface.d.ts +14 -0
- package/lib/core/sdk-payment-systems/google-pay/updated-price.interface.d.ts +7 -0
- package/lib/core/sdk-payment-systems/sdk-payment-systems-initial-data.interface.d.ts +7 -1
- package/lib/core/sdk-payment-systems/sdk-payment-systems.interface.d.ts +1 -1
- package/lib/core/settings/configuration.interface.d.ts +2 -0
- package/lib/core/user-behaviour-analytics/event-builder/event-parameter-types.d.ts +2 -1
- package/lib/core/user-behaviour-analytics/user-behaviour-analytics.interface.d.ts +2 -2
- package/lib/core/user-behaviour-analytics/user-behaviour-event-name.enum.d.ts +2 -1
- package/lib/core-library.service.d.ts +12 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.2.45.tgz +0 -0
- package/xsolla-payment-client-core-0.2.43.tgz +0 -0
|
@@ -3,7 +3,7 @@ import { userBehaviourEventTypes } from './user-behaviour-event/user-behaviour-e
|
|
|
3
3
|
import { Invoice } from './event-builder/invoice.interface';
|
|
4
4
|
import { EventParameterType } from './event-builder/event-parameter-types';
|
|
5
5
|
export interface SendEventMethodOptionsInterface {
|
|
6
|
-
value?: string | null | boolean | number | number[];
|
|
6
|
+
value?: string | string[] | null | boolean | number | number[];
|
|
7
7
|
valueType?: EventParameterType;
|
|
8
8
|
eventCategory?: keyof typeof eventCategories;
|
|
9
9
|
extraValue?: string | null;
|
|
@@ -20,7 +20,7 @@ export interface SendEventMethodOptionsInterface {
|
|
|
20
20
|
export interface CreateEventMethodOptionsInterface {
|
|
21
21
|
action: string;
|
|
22
22
|
type: keyof typeof userBehaviourEventTypes;
|
|
23
|
-
value: string | null | boolean | number | number[];
|
|
23
|
+
value: string | string[] | null | boolean | number | number[];
|
|
24
24
|
valueType: EventParameterType | null;
|
|
25
25
|
date: Date;
|
|
26
26
|
invoice: Invoice | null;
|
|
@@ -2,5 +2,6 @@ export declare enum UserBehaviourEventName {
|
|
|
2
2
|
openPaystation = "open-paystation",
|
|
3
3
|
showMethodHeader = "show-method-header",
|
|
4
4
|
showErrorMessage = "show-error-message",
|
|
5
|
-
openStatusError = "open-status-error"
|
|
5
|
+
openStatusError = "open-status-error",
|
|
6
|
+
sysTrackedScripts = "sys-tracked_scripts"
|
|
6
7
|
}
|
|
@@ -10,6 +10,7 @@ import { UserBalanceService } from './core/user-balance/user-balance.service';
|
|
|
10
10
|
import { PaymentConfiguration } from './core/payment/payment-configuration.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';
|
|
13
14
|
import { DeviceFingerPrintService } from './core/device-finger-print/device-finger-print.service';
|
|
14
15
|
import { LegalService } from './core/legal/legal.service';
|
|
15
16
|
import { LegalComponentConfig } from './core/legal/legal.component.config';
|
|
@@ -43,6 +44,10 @@ import { CashPaymentData } from './core/payment/cash-payment-data.interface';
|
|
|
43
44
|
import { SendInstructionService } from './core/xsolla-number/api/send-instruction/send-instruction.service';
|
|
44
45
|
import { SendInstructionResponseInterface } from './core/xsolla-number/api/send-instruction/response/send-instruction-response.interface';
|
|
45
46
|
import { SendInstructionParametersInterface } from './core/xsolla-number/api/send-instruction/send-instruction-parameters.interface';
|
|
47
|
+
import { ScriptTrackerService } from './core/script-tracker/script-tracker.service';
|
|
48
|
+
import { SyncResponse } from './core/payment/sync/response/sync-response.class';
|
|
49
|
+
import { XpsSummary } from './core/payment/xps-summary.interface';
|
|
50
|
+
import { SubmitResponse } from './core/payment/submit/response/submit-response.class';
|
|
46
51
|
import * as i0 from "@angular/core";
|
|
47
52
|
export declare class CoreLibraryService {
|
|
48
53
|
private readonly settingsService;
|
|
@@ -66,6 +71,7 @@ export declare class CoreLibraryService {
|
|
|
66
71
|
private readonly combinedPaymentMethodsService;
|
|
67
72
|
private readonly countriesApiService;
|
|
68
73
|
private readonly sendInstructionService;
|
|
74
|
+
private readonly scriptTrackerService;
|
|
69
75
|
paymentMethods: {
|
|
70
76
|
getList: (isSaveMethodMode?: boolean) => Promise<PaymentMethod[]>;
|
|
71
77
|
getQuickMethods: () => Promise<PaymentMethod[]>;
|
|
@@ -75,9 +81,14 @@ export declare class CoreLibraryService {
|
|
|
75
81
|
deleteSavedMethod: (id: number, type: string) => Promise<boolean>;
|
|
76
82
|
};
|
|
77
83
|
sdkPaymentSystems: SdkPaymentSystems;
|
|
78
|
-
|
|
84
|
+
finance: {
|
|
85
|
+
getDetailsFromSummary: (summary: XpsSummary) => FinanceDetails;
|
|
86
|
+
};
|
|
87
|
+
constructor(settingsService: SettingsService, countryService: CountryService, paymentMethodsService: PaymentMethodsService, savedMethodsService: SavedMethodsService, userBalanceService: UserBalanceService, paymentConfigService: PaymentConfigService, paymentService: PaymentService, deviceFingerPrintService: DeviceFingerPrintService, financeDetailsService: FinanceDetailsService, legalService: LegalService, statusService: StatusService, nextActionService: NextActionService, creditCardService: CreditCardService, creditCardStateService: CreditCardStateService, formMessagesService: FormMessagesService, editSavedMethodsService: EditSavedMethodsService, userBehaviourAnalyticsService: UserBehaviourAnalyticsService, performanceService: PerformanceService, combinedPaymentMethodsService: CombinedPaymentMethodsService, countriesApiService: CountriesApiService, sendInstructionService: SendInstructionService, scriptTrackerService: ScriptTrackerService);
|
|
79
88
|
init(configuration: InitConfiguration): Promise<void>;
|
|
80
89
|
getStatus(url?: string): Promise<Status>;
|
|
90
|
+
calculateField(changedField: Field, fields: Field[]): Promise<SyncResponse>;
|
|
91
|
+
submit(fields: Field[]): Promise<SubmitResponse>;
|
|
81
92
|
sendAnalytics(action: string, type: keyof typeof userBehaviourEventTypes, options?: SendEventMethodOptionsInterface): void;
|
|
82
93
|
getQrCodeInitialData(): {
|
|
83
94
|
qrCode: string;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|