@xsolla/payment-client-core 0.1.14-test22 → 0.1.14-test3

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.
Files changed (31) hide show
  1. package/esm2020/lib/core/payment/actions/status-updated/status-updated.action.class.mjs +2 -2
  2. package/esm2020/lib/core/payment/config/config.service.mjs +5 -5
  3. package/esm2020/lib/core/payment/initialize/initialize-request-params.interface.mjs +1 -1
  4. package/esm2020/lib/core/payment/initialize/initialize.service.mjs +4 -6
  5. package/esm2020/lib/core/payment/payment.service.mjs +3 -5
  6. package/esm2020/lib/core/payment/status/save-payment-method-status/api/saved-payment-account-changes.service.mjs +3 -6
  7. package/esm2020/lib/core/payment/status/save-payment-method-status/save-payment-method-status.enum.mjs +1 -1
  8. package/esm2020/lib/core/payment/status/save-payment-method-status/save-payment-method-status.service.mjs +27 -72
  9. package/esm2020/lib/core/payment/status/status-request/status-request-params.interface.mjs +1 -1
  10. package/esm2020/lib/core/payment/status/status-request/status-search-param.enum.mjs +2 -2
  11. package/esm2020/lib/core/payment/status/status-request/status-search-params.map.mjs +3 -3
  12. package/esm2020/lib/core/payment/status/status.interface.mjs +1 -1
  13. package/esm2020/lib/core/payment/status/status.service.mjs +5 -3
  14. package/esm2020/lib/core/payment/submit/response/submit-response.class.mjs +8 -2
  15. package/esm2020/lib/core/payment-methods/payment-methods-request-params.interface.mjs +1 -1
  16. package/esm2020/lib/core/payment-methods/payment-methods.service.mjs +2 -4
  17. package/fesm2015/xsolla-payment-client-core.mjs +51 -96
  18. package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
  19. package/fesm2020/xsolla-payment-client-core.mjs +51 -96
  20. package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
  21. package/lib/core/payment/initialize/initialize-request-params.interface.d.ts +1 -1
  22. package/lib/core/payment/payment.service.d.ts +0 -1
  23. package/lib/core/payment/status/save-payment-method-status/save-payment-method-status.service.d.ts +1 -11
  24. package/lib/core/payment/status/status-request/status-request-params.interface.d.ts +1 -1
  25. package/lib/core/payment/status/status-request/status-search-param.enum.d.ts +1 -1
  26. package/lib/core/payment/status/status.interface.d.ts +0 -1
  27. package/lib/core/payment/submit/response/submit-response.class.d.ts +1 -0
  28. package/lib/core/payment-methods/payment-methods-request-params.interface.d.ts +1 -1
  29. package/package.json +1 -1
  30. package/xsolla-payment-client-core-0.1.14-test3.tgz +0 -0
  31. package/xsolla-payment-client-core-0.1.14-test22.tgz +0 -0
@@ -1,4 +1,4 @@
1
- import { XpsBoolean } from '../../xps-boolean.enum';
1
+ import { XpsBoolean } from "../../xps-boolean.enum";
2
2
  export interface InitializeRequestParams {
3
3
  [fieldName: `xps_${string}`]: unknown;
4
4
  access_token: string;
@@ -44,7 +44,6 @@ export declare class PaymentService {
44
44
  private destroy$;
45
45
  private formDestroy$;
46
46
  private readonly formFieldsStatusSubject;
47
- private isSavingMethodMode;
48
47
  constructor(initializeService: InitializeService, submitService: SubmitService, syncService: SyncService, formService: FormService, statusService: StatusService, financeDetailsService: FinanceDetailsService, creditCardStateService: CreditCardStateService, nextActionService: NextActionService, controlConfigService: ControlConfigService, threeDsService: ThreeDsService, formMessagesService: FormMessagesService);
49
48
  initialize(config: PaymentConfig): Promise<Field[]>;
50
49
  submit(): Promise<NextAction | null | void>;
@@ -4,25 +4,15 @@ import { StatusRequestService } from '../status-request/status-request.service';
4
4
  import { ListenStatusService } from '../listen-status/listen-status.service';
5
5
  import { SavedPaymentAccountChangesService } from './api/saved-payment-account-changes.service';
6
6
  import { NextActionService } from '../../actions/next-action.service';
7
- import { CheckStatusService } from '../check-status/check-status.service';
8
7
  import * as i0 from "@angular/core";
9
8
  export declare class SavePaymentMethodStatusService {
10
9
  private readonly statusRequestService;
11
10
  private readonly listenStatusService;
12
11
  private readonly savedPaymentAccountChangesService;
13
12
  private readonly nextActionService;
14
- private readonly checkStatusService;
15
13
  private savePaymentMethodStatus?;
16
- private listenStatusSubscription;
17
- private statusChecked;
18
- private accountData?;
19
- private status?;
20
- constructor(statusRequestService: StatusRequestService, listenStatusService: ListenStatusService, savedPaymentAccountChangesService: SavedPaymentAccountChangesService, nextActionService: NextActionService, checkStatusService: CheckStatusService);
14
+ constructor(statusRequestService: StatusRequestService, listenStatusService: ListenStatusService, savedPaymentAccountChangesService: SavedPaymentAccountChangesService, nextActionService: NextActionService);
21
15
  getStatus(params: StatusRequestParams): Promise<Status>;
22
- private checkStatus;
23
- private savingFailedOrCancel;
24
- private savingSuccessful;
25
- private getPaymentAccountData;
26
16
  private startWaitingStatusUpdates;
27
17
  private loadNewPaymentAccountData;
28
18
  private handleSavingStatus;
@@ -8,5 +8,5 @@ export interface StatusRequestParams {
8
8
  testXsolla?: number;
9
9
  userReturnStatus?: string;
10
10
  token?: string | null;
11
- isSavePaymentAccount?: number;
11
+ savePaymentMethod?: number;
12
12
  }
@@ -8,5 +8,5 @@ export declare enum StatusSearchParam {
8
8
  testPs = "fix_testPs",
9
9
  testXsolla = "fix_testXsolla",
10
10
  userReturnStatus = "fix_userReturnStatus",
11
- isSavePaymentAccount = "isSavePaymentAccount"
11
+ savePaymentMethod = "savePaymentMethod"
12
12
  }
@@ -47,5 +47,4 @@ export interface Status {
47
47
  isCanceled?: boolean;
48
48
  paymentCountryIso: string;
49
49
  order?: StatusOrder;
50
- isSavePaymentAccount?: boolean;
51
50
  }
@@ -22,5 +22,6 @@ export declare class SubmitResponse {
22
22
  title: string;
23
23
  currentCommand: XpsCommand | null;
24
24
  messages: XpsResponse['messages'];
25
+ isSavingMethodMode: boolean;
25
26
  constructor(parameters: XpsResponse, responseNumber?: number);
26
27
  }
@@ -1,4 +1,4 @@
1
- import { XpsBoolean } from '../xps-boolean.enum';
1
+ import { XpsBoolean } from "../xps-boolean.enum";
2
2
  export interface PaymentMethodsRequestParams {
3
3
  access_token: string;
4
4
  country: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/payment-client-core",
3
- "version": "0.1.14-test22",
3
+ "version": "0.1.14-test3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",