@xsolla/payment-client-core 0.3.13 → 0.4.0
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/status-updated/status-updated.action.class.mjs +9 -4
- package/esm2022/lib/core/payment/actions/status-updated/status-updated.action.type.mjs +1 -1
- package/esm2022/lib/core/payment/config/config.service.mjs +7 -6
- package/esm2022/lib/core/payment/status/status-request/response/status-response.class.mjs +3 -1
- package/esm2022/lib/core/payment/status/status.interface.mjs +1 -1
- package/esm2022/lib/core/payment/xps-response.interface.mjs +1 -1
- package/esm2022/lib/core/settings/project.interface.mjs +1 -1
- package/esm2022/lib/core-library.service.mjs +9 -2
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/xsolla-payment-client-core.mjs +23 -9
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/actions/status-updated/status-updated.action.class.d.ts +3 -0
- package/lib/core/payment/actions/status-updated/status-updated.action.type.d.ts +3 -0
- package/lib/core/payment/status/status.interface.d.ts +3 -0
- package/lib/core/payment/xps-response.interface.d.ts +2 -0
- package/lib/core/settings/project.interface.d.ts +1 -0
- package/lib/core-library.service.d.ts +1 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -3,9 +3,12 @@ import { StatusUpdatedAction, StatusUpdatedActionType } from './status-updated.a
|
|
|
3
3
|
import { StatusResponse } from '../../status/status-request/response/status-response.class';
|
|
4
4
|
import { Status } from '../../status/status.interface';
|
|
5
5
|
import { SavePaymentMethodStatus } from '../../status/save-payment-method-status/save-payment-method-status.enum';
|
|
6
|
+
import { SettingsService } from '../../../settings/settings.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class StatusUpdatedActionCreator implements ActionCreator {
|
|
9
|
+
private readonly settingsService;
|
|
8
10
|
type: StatusUpdatedActionType;
|
|
11
|
+
constructor(settingsService: SettingsService);
|
|
9
12
|
getActionData({ statusResponse, isSavePaymentMethodMode, savePaymentMethodStatus, }: {
|
|
10
13
|
statusResponse: StatusResponse | Status;
|
|
11
14
|
isSavePaymentMethodMode?: boolean;
|
|
@@ -11,5 +11,8 @@ export interface StatusUpdatedActionData {
|
|
|
11
11
|
invoice?: number;
|
|
12
12
|
isSavePaymentMethodMode: boolean;
|
|
13
13
|
savePaymentMethodStatus?: SavePaymentMethodStatus;
|
|
14
|
+
canRepeatPayment?: boolean;
|
|
15
|
+
canRepeatProcessingPayment?: boolean;
|
|
16
|
+
isRetryPaymentEnabled?: boolean;
|
|
14
17
|
}
|
|
15
18
|
export type StatusUpdatedAction = Action<StatusUpdatedActionType, StatusUpdatedActionData>;
|
|
@@ -98,6 +98,7 @@ export declare class CoreLibraryService {
|
|
|
98
98
|
constructor(settingsService: SettingsService, loggerService: LoggerService, 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, translateService: TranslateService, commonLogAttributesService: CommonLogAttributesService, capabilitiesService: CapabilitiesService);
|
|
99
99
|
init(configuration: InitConfiguration): Promise<void>;
|
|
100
100
|
getStatus(url?: string): Promise<Status>;
|
|
101
|
+
get isRetryPaymentEnabled(): boolean;
|
|
101
102
|
calculateField(changedField: Field, fields: Field[]): Promise<SyncResponse>;
|
|
102
103
|
submit(fields: Field[]): Promise<{
|
|
103
104
|
response: SubmitResponse;
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const PAYMENT_CLIENT_CORE_VERSION = "0.
|
|
1
|
+
export declare const PAYMENT_CLIENT_CORE_VERSION = "0.4.0";
|