@xsolla/payment-client-core 0.2.60 → 0.2.62

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.
@@ -1,3 +1,4 @@
1
1
  export interface CreditCardState {
2
2
  idCardType: string;
3
+ cardBinCountry?: string;
3
4
  }
@@ -11,6 +11,7 @@ import { FormState } from './form/form-state.interface';
11
11
  import { FieldNames } from './field-names.enum';
12
12
  import { ControlStatus } from './form/control-status.interface';
13
13
  import { InitializedForm } from './initialized-form.inteface';
14
+ import { CreditCardState } from './credit-card-state/credit-card-state.interface';
14
15
  export interface Payment {
15
16
  initialize(): Promise<InitializedForm>;
16
17
  submit(): Promise<NextAction | null | void>;
@@ -30,6 +31,7 @@ export interface Payment {
30
31
  updateFieldFormState(fieldName: string, formState: FormState): void;
31
32
  getFieldFormState(fieldName: FieldNames): FormState | null;
32
33
  formMessages$: Observable<string[]>;
34
+ cardTypeUpdates$: Observable<CreditCardState>;
33
35
  getFormStatus(): FormControlStatus | undefined;
34
36
  getControlStatus(name: FieldNames): ControlStatus | null;
35
37
  };
@@ -18,6 +18,7 @@ export interface XpsResponse {
18
18
  [key: string]: string;
19
19
  };
20
20
  };
21
+ cardBinCountry?: string;
21
22
  idCardType: string;
22
23
  summary: XpsSummary;
23
24
  buyData: {
@@ -4,7 +4,6 @@ export interface PaymentMethod {
4
4
  name: string;
5
5
  aliases: string;
6
6
  categories: number[];
7
- isVisible: boolean;
8
7
  recommended: boolean;
9
8
  enabledSaveAccount: null | unknown[];
10
9
  iconName: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/payment-client-core",
3
- "version": "0.2.60",
3
+ "version": "0.2.62",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.3",
6
6
  "@angular/core": "^17.3.3",