@xsolla/payment-client-core 0.2.31 → 0.2.32
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/actions/show-cash-payment-instruction/show-cash-payment-instruction.action.class.mjs +6 -7
- package/esm2022/lib/core/payment/payment.service.mjs +9 -10
- package/fesm2022/xsolla-payment-client-core.mjs +12 -41
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/actions/show-cash-payment-instruction/show-cash-payment-instruction.action.class.d.ts +0 -3
- package/lib/core/payment/payment.service.d.ts +1 -3
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.2.32.tgz +0 -0
- package/esm2022/lib/core/cash-payment/cash-payment-pids.const.mjs +0 -15
- package/esm2022/lib/core/cash-payment/cash-payment.service.mjs +0 -17
- package/lib/core/cash-payment/cash-payment-pids.const.d.ts +0 -1
- package/lib/core/cash-payment/cash-payment.service.d.ts +0 -6
- package/xsolla-payment-client-core-0.2.31.tgz +0 -0
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { SubmitResponse } from '../../submit/response/submit-response.class';
|
|
2
2
|
import { ActionCreator } from '../action.interface';
|
|
3
3
|
import { ShowCashPaymentInstructionAction, ShowCashPaymentInstructionActionType } from './show-cash-payment-instruction.action.type';
|
|
4
|
-
import { CashPaymentService } from '../../../cash-payment/cash-payment.service';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class ShowCashPaymentInstructionActionCreator implements ActionCreator {
|
|
7
|
-
private readonly cashPaymentService;
|
|
8
6
|
readonly type: ShowCashPaymentInstructionActionType;
|
|
9
|
-
constructor(cashPaymentService: CashPaymentService);
|
|
10
7
|
getActionData(): ShowCashPaymentInstructionAction;
|
|
11
8
|
isSuitable(response: SubmitResponse): boolean;
|
|
12
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShowCashPaymentInstructionActionCreator, never>;
|
|
@@ -30,7 +30,6 @@ import { CheckStatusActionCreator } from './actions/check-status/check-status.ac
|
|
|
30
30
|
import { ControlStatus } from './form/control-status.interface';
|
|
31
31
|
import { InitializedForm } from './initialized-form.inteface';
|
|
32
32
|
import { CashPaymentData } from './cash-payment-data.interface';
|
|
33
|
-
import { CashPaymentService } from '../cash-payment/cash-payment.service';
|
|
34
33
|
import { PrintInstructionService } from '../xsolla-number/api/print-instruction/print-instruction.service';
|
|
35
34
|
import * as i0 from "@angular/core";
|
|
36
35
|
export declare class PaymentService {
|
|
@@ -48,7 +47,6 @@ export declare class PaymentService {
|
|
|
48
47
|
private readonly settingsService;
|
|
49
48
|
private readonly countryService;
|
|
50
49
|
private readonly checkStatusActionCreator;
|
|
51
|
-
private readonly cashPaymentService;
|
|
52
50
|
private readonly printInstructionService;
|
|
53
51
|
form: UntypedFormGroup | null;
|
|
54
52
|
get formFieldsStatus$(): Observable<FormFieldsStatus>;
|
|
@@ -66,7 +64,7 @@ export declare class PaymentService {
|
|
|
66
64
|
private readonly formFieldsStatusSubject;
|
|
67
65
|
private readonly _formResponse$;
|
|
68
66
|
private isSavingMethodMode;
|
|
69
|
-
constructor(initializeService: InitializeService, submitService: SubmitService, syncService: SyncService, formService: FormService, statusService: StatusService, financeDetailsService: FinanceDetailsService, creditCardStateService: CreditCardStateService, nextActionService: NextActionService, controlConfigService: ControlConfigService, threeDsService: ThreeDsService, formMessagesService: FormMessagesService, settingsService: SettingsService, countryService: CountryService, checkStatusActionCreator: CheckStatusActionCreator,
|
|
67
|
+
constructor(initializeService: InitializeService, submitService: SubmitService, syncService: SyncService, formService: FormService, statusService: StatusService, financeDetailsService: FinanceDetailsService, creditCardStateService: CreditCardStateService, nextActionService: NextActionService, controlConfigService: ControlConfigService, threeDsService: ThreeDsService, formMessagesService: FormMessagesService, settingsService: SettingsService, countryService: CountryService, checkStatusActionCreator: CheckStatusActionCreator, printInstructionService: PrintInstructionService);
|
|
70
68
|
initialize(config: PaymentConfig): Promise<InitializedForm>;
|
|
71
69
|
submit(): Promise<NextAction | null | void>;
|
|
72
70
|
getFields(): Field[];
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const sevenEleven = 1776;
|
|
2
|
-
const caseysGeneralStores = 3412;
|
|
3
|
-
const cvsPharmacy1 = 1330;
|
|
4
|
-
const cvsPharmacy2 = 3339;
|
|
5
|
-
const familyDollar1 = 2931;
|
|
6
|
-
const familyDollar2 = 3380;
|
|
7
|
-
export const cashPaymentPids = [
|
|
8
|
-
sevenEleven,
|
|
9
|
-
caseysGeneralStores,
|
|
10
|
-
cvsPharmacy1,
|
|
11
|
-
cvsPharmacy2,
|
|
12
|
-
familyDollar1,
|
|
13
|
-
familyDollar2,
|
|
14
|
-
];
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FzaC1wYXltZW50LXBpZHMuY29uc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9wYXltZW50LWNsaWVudC1jb3JlL3NyYy9saWIvY29yZS9jYXNoLXBheW1lbnQvY2FzaC1wYXltZW50LXBpZHMuY29uc3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxXQUFXLEdBQUcsSUFBSSxDQUFDO0FBQ3pCLE1BQU0sbUJBQW1CLEdBQUcsSUFBSSxDQUFDO0FBQ2pDLE1BQU0sWUFBWSxHQUFHLElBQUksQ0FBQztBQUMxQixNQUFNLFlBQVksR0FBRyxJQUFJLENBQUM7QUFDMUIsTUFBTSxhQUFhLEdBQUcsSUFBSSxDQUFDO0FBQzNCLE1BQU0sYUFBYSxHQUFHLElBQUksQ0FBQztBQUUzQixNQUFNLENBQUMsTUFBTSxlQUFlLEdBQWE7SUFDdkMsV0FBVztJQUNYLG1CQUFtQjtJQUNuQixZQUFZO0lBQ1osWUFBWTtJQUNaLGFBQWE7SUFDYixhQUFhO0NBQ2QsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImNvbnN0IHNldmVuRWxldmVuID0gMTc3NjtcbmNvbnN0IGNhc2V5c0dlbmVyYWxTdG9yZXMgPSAzNDEyO1xuY29uc3QgY3ZzUGhhcm1hY3kxID0gMTMzMDtcbmNvbnN0IGN2c1BoYXJtYWN5MiA9IDMzMzk7XG5jb25zdCBmYW1pbHlEb2xsYXIxID0gMjkzMTtcbmNvbnN0IGZhbWlseURvbGxhcjIgPSAzMzgwO1xuXG5leHBvcnQgY29uc3QgY2FzaFBheW1lbnRQaWRzOiBudW1iZXJbXSA9IFtcbiAgc2V2ZW5FbGV2ZW4sXG4gIGNhc2V5c0dlbmVyYWxTdG9yZXMsXG4gIGN2c1BoYXJtYWN5MSxcbiAgY3ZzUGhhcm1hY3kyLFxuICBmYW1pbHlEb2xsYXIxLFxuICBmYW1pbHlEb2xsYXIyLFxuXTtcbiJdfQ==
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core';
|
|
2
|
-
import { cashPaymentPids } from './cash-payment-pids.const';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class CashPaymentService {
|
|
5
|
-
isCashPaymentMethod(paymentMethodId) {
|
|
6
|
-
return cashPaymentPids.includes(paymentMethodId);
|
|
7
|
-
}
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CashPaymentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CashPaymentService, providedIn: 'root' }); }
|
|
10
|
-
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CashPaymentService, decorators: [{
|
|
12
|
-
type: Injectable,
|
|
13
|
-
args: [{
|
|
14
|
-
providedI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4gY2FzaFBheW1lbnRQaWRzLmluY2x1ZGVzKHBheW1lbnRNZXRob2RJZCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const cashPaymentPids: number[];
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CashPaymentService {
|
|
3
|
-
isCashPaymentMethod(paymentMethodId: number): boolean;
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CashPaymentService, never>;
|
|
5
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CashPaymentService>;
|
|
6
|
-
}
|
|
Binary file
|