@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.
@@ -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>;
@@ -49,4 +49,7 @@ export interface Status {
49
49
  order?: StatusOrder;
50
50
  isSavePaymentAccount?: boolean;
51
51
  autoCancellation?: boolean;
52
+ canRepeatPayment?: boolean;
53
+ canRepeatProcessingPayment?: boolean;
54
+ isRetryPaymentEnabled?: boolean;
52
55
  }
@@ -99,6 +99,8 @@ export interface XpsStatus {
99
99
  time: number;
100
100
  };
101
101
  statusData: {
102
+ canRepeatPayment?: boolean;
103
+ canRepeatProcessingPayment?: boolean;
102
104
  project: number;
103
105
  pid: number;
104
106
  out: number;
@@ -30,4 +30,5 @@ export interface Project {
30
30
  trackingInfo: TrackingInfo[] | [];
31
31
  isSubtotalVisibleByDefault?: boolean;
32
32
  isApplePayIframeIntegrationTurnedOn?: boolean;
33
+ isRetryPaymentEnabled?: boolean;
33
34
  }
@@ -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.3.13";
1
+ export declare const PAYMENT_CLIENT_CORE_VERSION = "0.4.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/payment-client-core",
3
- "version": "0.3.13",
3
+ "version": "0.4.0",
4
4
  "engines": {
5
5
  "node": ">=16.10.0",
6
6
  "npm": ">=8.11.0"