@xsolla/payment-client-core 0.2.40 → 0.2.42

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.
@@ -0,0 +1 @@
1
+ export declare const getSctlLink: (pid?: number) => string;
@@ -4,9 +4,5 @@ export interface LegalComponentConfig {
4
4
  isJapanUser: boolean;
5
5
  refundPolicyUrl: string;
6
6
  sctlPolicyUrl?: string;
7
- secureConnection: {
8
- secureConnectionUrl?: string;
9
- isWhiteLabel?: boolean;
10
- };
11
7
  disclaimer?: string;
12
8
  }
@@ -1,7 +1,6 @@
1
1
  import { LegalComponentConfig } from './legal.component.config';
2
2
  import { SettingsService } from '../settings/settings.service';
3
3
  import { RefundPolicyService } from './refund-policy.service';
4
- import { SecureConnectionService } from './secure-connection.service';
5
4
  import { DisclaimerService } from './disclaimer.service';
6
5
  import { CountryService } from '../country/country.service';
7
6
  import * as i0 from "@angular/core";
@@ -9,13 +8,11 @@ export declare class LegalService {
9
8
  private readonly countryService;
10
9
  private readonly settingsService;
11
10
  private readonly refundPolicyService;
12
- private readonly secureConnectionService;
13
11
  private readonly disclaimerService;
14
- readonly sctlPolicyUrl = "https://xsolla.com/sctl";
15
12
  private get isJapanUser();
16
13
  private get legalArea();
17
- constructor(countryService: CountryService, settingsService: SettingsService, refundPolicyService: RefundPolicyService, secureConnectionService: SecureConnectionService, disclaimerService: DisclaimerService);
18
- getLegalComponentConfig(): LegalComponentConfig;
14
+ constructor(countryService: CountryService, settingsService: SettingsService, refundPolicyService: RefundPolicyService, disclaimerService: DisclaimerService);
15
+ getLegalComponentConfig(pid?: number): LegalComponentConfig;
19
16
  static ɵfac: i0.ɵɵFactoryDeclaration<LegalService, never>;
20
17
  static ɵprov: i0.ɵɵInjectableDeclaration<LegalService>;
21
18
  }
@@ -24,5 +24,6 @@ export interface SavedMethodApi {
24
24
  };
25
25
  date_last_charge: number;
26
26
  switch_icon_name: string | null;
27
+ user_email: string | null;
27
28
  partner?: string | null;
28
29
  }
@@ -23,5 +23,6 @@ export interface SavedMethod {
23
23
  };
24
24
  dateLastCharge: number;
25
25
  iconName: string | null;
26
+ userEmail: string | null;
26
27
  partner?: string | null;
27
28
  }
@@ -94,7 +94,7 @@ export declare class CoreLibraryService {
94
94
  get flowUpdates$(): Observable<NextAction>;
95
95
  get financeDetailsUpdates$(): Observable<FinanceDetails>;
96
96
  get cardTypeUpdates$(): Observable<CreditCardState>;
97
- getLegalComponentConfig(): LegalComponentConfig;
97
+ getLegalComponentConfig(pid?: number): LegalComponentConfig;
98
98
  getUserBalanceValue(): Balance | null;
99
99
  get paymentForm$(): Observable<FormControlStatus | null>;
100
100
  get formResponse$(): Observable<FormResponse | null>;
@@ -0,0 +1,7 @@
1
+ export declare const payPayId = 3669;
2
+ export declare const linePayId = 3677;
3
+ export declare const auPayId = 3686;
4
+ export declare const docomoId = 3692;
5
+ export declare const softbankId = 3693;
6
+ export declare const auEasyPaymentId = 3694;
7
+ export declare const yMobileId = 3697;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/payment-client-core",
3
- "version": "0.2.40",
3
+ "version": "0.2.42",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.3",
6
6
  "@angular/core": "^17.3.3",
@@ -1,31 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "../settings/settings.service";
4
- export class SecureConnectionService {
5
- get isWhiteLabel() {
6
- return !!this.settingsService.settings?.white_label;
7
- }
8
- get secureConnectionUrl() {
9
- this.setSecureConnectionUrl();
10
- return this._secureConnectionUrl;
11
- }
12
- constructor(settingsService) {
13
- this.settingsService = settingsService;
14
- this.secureConnectionApi = 'https://verify.xsolla.com/?url=';
15
- }
16
- setSecureConnectionUrl() {
17
- const projectUrl = this.settingsService.project?.projectUrl;
18
- if (projectUrl) {
19
- this._secureConnectionUrl = `${this.secureConnectionApi}${encodeURIComponent(projectUrl)}`;
20
- }
21
- }
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SecureConnectionService, deps: [{ token: i1.SettingsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
23
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SecureConnectionService, providedIn: 'root' }); }
24
- }
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SecureConnectionService, decorators: [{
26
- type: Injectable,
27
- args: [{
28
- providedIn: 'root',
29
- }]
30
- }], ctorParameters: () => [{ type: i1.SettingsService }] });
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VjdXJlLWNvbm5lY3Rpb24uc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3BheW1lbnQtY2xpZW50LWNvcmUvc3JjL2xpYi9jb3JlL2xlZ2FsL3NlY3VyZS1jb25uZWN0aW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7O0FBTTNDLE1BQU0sT0FBTyx1QkFBdUI7SUFDbEMsSUFBVyxZQUFZO1FBQ3JCLE9BQU8sQ0FBQyxDQUFDLElBQUksQ0FBQyxlQUFlLENBQUMsUUFBUSxFQUFFLFdBQVcsQ0FBQztJQUN0RCxDQUFDO0lBQ0QsSUFBVyxtQkFBbUI7UUFDNUIsSUFBSSxDQUFDLHNCQUFzQixFQUFFLENBQUM7UUFDOUIsT0FBTyxJQUFJLENBQUMsb0JBQW9CLENBQUM7SUFDbkMsQ0FBQztJQU1ELFlBQW9DLGVBQWdDO1FBQWhDLG9CQUFlLEdBQWYsZUFBZSxDQUFpQjtRQUpwRCx3Qk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ljIHJlYWRvbmx5IHNlY3VyZUNvbm5lY3Rpb25BcGkgPSAnaHR0cHM6Ly92ZXJpZnkueHNvbGxhLmNvbS8/dXJsPSc7XG5cbiAgcHJpdmF0ZSBfc2VjdXJlQ29ubmVjdGlvblVybD86IHN0cmluZztcblxuICBwdWJsaWMgY29uc3RydWN0b3IocHJpdmF0ZSByZWFkb25seSBzZXR0aW5nc1NlcnZpY2U6IFNldHRpbmdzU2VydmljZSkge31cblxuICBwcml2YXRlIHNldFNlY3VyZUNvbm5lY3Rpb25VcmwoKTogdm9pZCB7XG4gICAgY29uc3QgcHJvamVjdFVybCA9IHRoaXMuc2V0dGluZ3NTZXJ2aWNlLnByb2plY3Q/LnByb2plY3RVcmw7XG5cbiAgICBpZiAocHJvamVjdFVybCkge1xuICAgICAgdGhpcy5fc2VjdXJlQ29ubmVjdGlvblVybCA9IGAke1xuICAgICAgICB0aGlzLnNlY3VyZUNvbm5lY3Rpb25BcGlcbiAgICAgIH0ke2VuY29kZVVSSUNvbXBvbmVudChwcm9qZWN0VXJsKX1gO1xuICAgIH1cbiAgfVxufVxuIl19
@@ -1,13 +0,0 @@
1
- import { SettingsService } from '../settings/settings.service';
2
- import * as i0 from "@angular/core";
3
- export declare class SecureConnectionService {
4
- private readonly settingsService;
5
- get isWhiteLabel(): boolean;
6
- get secureConnectionUrl(): string | undefined;
7
- readonly secureConnectionApi = "https://verify.xsolla.com/?url=";
8
- private _secureConnectionUrl?;
9
- constructor(settingsService: SettingsService);
10
- private setSecureConnectionUrl;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SecureConnectionService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<SecureConnectionService>;
13
- }