@xsolla/payment-client-core 0.2.35 → 0.2.37

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.
@@ -2,6 +2,7 @@ import { SettingsService } from '../settings/settings.service';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class CountryService {
4
4
  private readonly settingsService;
5
+ get userIpCountry(): string;
5
6
  private userDefinedCountry;
6
7
  constructor(settingsService: SettingsService);
7
8
  setCountry(country: string): void;
@@ -0,0 +1 @@
1
+ export declare const euCountries: Set<string>;
@@ -1,4 +1,6 @@
1
+ export type LegalArea = 'EU' | 'US' | 'other';
1
2
  export interface LegalComponentConfig {
3
+ legalArea?: LegalArea;
2
4
  isJapanUser: boolean;
3
5
  refundPolicyUrl: string;
4
6
  sctlPolicyUrl?: string;
@@ -3,15 +3,18 @@ import { SettingsService } from '../settings/settings.service';
3
3
  import { RefundPolicyService } from './refund-policy.service';
4
4
  import { SecureConnectionService } from './secure-connection.service';
5
5
  import { DisclaimerService } from './disclaimer.service';
6
+ import { CountryService } from '../country/country.service';
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class LegalService {
9
+ private readonly countryService;
8
10
  private readonly settingsService;
9
11
  private readonly refundPolicyService;
10
12
  private readonly secureConnectionService;
11
13
  private readonly disclaimerService;
12
14
  readonly sctlPolicyUrl = "https://xsolla.com/sctl";
13
15
  private get isJapanUser();
14
- constructor(settingsService: SettingsService, refundPolicyService: RefundPolicyService, secureConnectionService: SecureConnectionService, disclaimerService: DisclaimerService);
16
+ private get legalArea();
17
+ constructor(countryService: CountryService, settingsService: SettingsService, refundPolicyService: RefundPolicyService, secureConnectionService: SecureConnectionService, disclaimerService: DisclaimerService);
15
18
  getLegalComponentConfig(): LegalComponentConfig;
16
19
  static ɵfac: i0.ɵɵFactoryDeclaration<LegalService, never>;
17
20
  static ɵprov: i0.ɵɵInjectableDeclaration<LegalService>;
@@ -17,6 +17,12 @@ export interface SavedMethodApi {
17
17
  month: string;
18
18
  year: string;
19
19
  };
20
+ date_create: {
21
+ date: string;
22
+ timezone: string;
23
+ timezone_type: number;
24
+ };
25
+ date_last_charge: number;
20
26
  switch_icon_name: string | null;
21
27
  partner?: string | null;
22
28
  }
@@ -16,6 +16,12 @@ export interface SavedMethod {
16
16
  month: string;
17
17
  year: string;
18
18
  };
19
+ dateCreate: {
20
+ date: string;
21
+ timezone: string;
22
+ timezone_type: number;
23
+ };
24
+ dateLastCharge: number;
19
25
  iconName: string | null;
20
26
  partner?: string | null;
21
27
  }
@@ -11,6 +11,7 @@ export interface User {
11
11
  localized_name: string;
12
12
  value: string;
13
13
  };
14
+ ip_country?: string;
14
15
  local: string;
15
16
  age: number | null;
16
17
  email: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/payment-client-core",
3
- "version": "0.2.35",
3
+ "version": "0.2.37",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.3",
6
6
  "@angular/core": "^17.3.3",