@xsolla/payment-client-core 0.2.12 → 0.2.14
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/combined-payment-methods/combined-payment-methods.interface.mjs +2 -0
- package/esm2020/lib/core/combined-payment-methods/combined-payment-methods.service.mjs +32 -0
- 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/xps-api/xps-api.service.mjs +2 -1
- package/esm2020/lib/core/payment-methods/payment-methods.service.mjs +4 -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 +7 -4
- package/fesm2015/xsolla-payment-client-core.mjs +45 -7
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +41 -6
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/combined-payment-methods/combined-payment-methods.interface.d.ts +9 -0
- package/lib/core/combined-payment-methods/combined-payment-methods.service.d.ts +12 -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-methods/payment-methods.service.d.ts +2 -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 +5 -1
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.2.14.tgz +0 -0
- package/xsolla-payment-client-core-0.2.12.tgz +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PaymentMethod } from '../payment-methods/payment-method.interface';
|
|
2
|
+
import { SavedMethod } from '../saved-methods/saved-method.interface';
|
|
3
|
+
export interface CombinedPaymentMethods {
|
|
4
|
+
paymentMethods: {
|
|
5
|
+
quick: PaymentMethod[];
|
|
6
|
+
remained: PaymentMethod[];
|
|
7
|
+
};
|
|
8
|
+
savedMethods: SavedMethod[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SavedMethodsService } from '../saved-methods/saved-methods.service';
|
|
2
|
+
import { PaymentMethodsService } from '../payment-methods/payment-methods.service';
|
|
3
|
+
import { CombinedPaymentMethods } from './combined-payment-methods.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CombinedPaymentMethodsService {
|
|
6
|
+
private readonly paymentMethodsService;
|
|
7
|
+
private readonly savedMethodsService;
|
|
8
|
+
constructor(paymentMethodsService: PaymentMethodsService, savedMethodsService: SavedMethodsService);
|
|
9
|
+
getCombinedPaymentMethods(): Promise<CombinedPaymentMethods>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CombinedPaymentMethodsService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CombinedPaymentMethodsService>;
|
|
12
|
+
}
|
|
@@ -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;
|
|
@@ -2,6 +2,7 @@ import { CountryService } from '../country/country.service';
|
|
|
2
2
|
import { SecureApiClient } from '../http/secure-api/secure-api.service';
|
|
3
3
|
import { SettingsService } from '../settings/settings.service';
|
|
4
4
|
import { PaymentMethod } from './payment-method.interface';
|
|
5
|
+
import { PaymentMethodsResponse } from './payment-methods-response.class';
|
|
5
6
|
import { PaymentMethodsResponseFactory } from './payment-methods-response.token';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class PaymentMethodsService {
|
|
@@ -12,6 +13,7 @@ export declare class PaymentMethodsService {
|
|
|
12
13
|
private readonly apiRoute;
|
|
13
14
|
private readonly cache;
|
|
14
15
|
constructor(responseFactory: PaymentMethodsResponseFactory, settingsService: SettingsService, countryService: CountryService, secureApi: SecureApiClient);
|
|
16
|
+
getAllMethods(): Promise<PaymentMethodsResponse>;
|
|
15
17
|
getList(isSaveMethodMode?: boolean): Promise<PaymentMethod[]>;
|
|
16
18
|
getQuickMethods(): Promise<PaymentMethod[]>;
|
|
17
19
|
private request;
|
|
@@ -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>;
|
|
@@ -36,6 +36,8 @@ import { UserBehaviourAnalyticsService } from './core/user-behaviour-analytics/u
|
|
|
36
36
|
import { userBehaviourEventTypes } from './core/user-behaviour-analytics/user-behaviour-event/user-behaviour-event-types';
|
|
37
37
|
import { SendEventMethodOptionsInterface } from './core/user-behaviour-analytics/user-behaviour-analytics.interface';
|
|
38
38
|
import { PerformanceService } from './core/performance/performance.service';
|
|
39
|
+
import { CombinedPaymentMethods } from './core/combined-payment-methods/combined-payment-methods.interface';
|
|
40
|
+
import { CombinedPaymentMethodsService } from './core/combined-payment-methods/combined-payment-methods.service';
|
|
39
41
|
import * as i0 from "@angular/core";
|
|
40
42
|
export declare class CoreLibraryService {
|
|
41
43
|
private readonly settingsService;
|
|
@@ -56,15 +58,17 @@ export declare class CoreLibraryService {
|
|
|
56
58
|
private readonly editSavedMethodsService;
|
|
57
59
|
private readonly userBehaviourAnalyticsService;
|
|
58
60
|
private readonly performanceService;
|
|
61
|
+
private readonly combinedPaymentMethodsService;
|
|
59
62
|
paymentMethods: {
|
|
60
63
|
getList: (isSaveMethodMode?: boolean) => Promise<PaymentMethod[]>;
|
|
61
64
|
getQuickMethods: () => Promise<PaymentMethod[]>;
|
|
62
65
|
getSavedMethods: () => Promise<SavedMethod[]>;
|
|
66
|
+
getCombinedPaymentMethods: () => Promise<CombinedPaymentMethods>;
|
|
63
67
|
getUserBalance: () => Promise<UserBalanceResponse>;
|
|
64
68
|
deleteSavedMethod: (id: number, type: string) => Promise<boolean>;
|
|
65
69
|
};
|
|
66
70
|
sdkPaymentSystems: SdkPaymentSystems;
|
|
67
|
-
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);
|
|
71
|
+
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);
|
|
68
72
|
init(configuration: InitConfiguration): Promise<void>;
|
|
69
73
|
getStatus(url?: string): Promise<Status>;
|
|
70
74
|
sendAnalytics(action: string, type: keyof typeof userBehaviourEventTypes, options?: SendEventMethodOptionsInterface): void;
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|