@xsolla/payment-client-core 0.3.1 → 0.3.2

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.
@@ -61,6 +61,7 @@ export declare enum FieldNames {
61
61
  psAccountCountry = "psAccountCountry",
62
62
  allowSave = "allowSave",
63
63
  koreaLimitsInstruction = "korea_limits_instruction",
64
+ koreaCashReceiptInstruction = "korea_cash_receipt_instruction",
64
65
  tokenApplePay = "token_applepay",
65
66
  fixInvoice = "fix_invoice",
66
67
  fixPid = "fix_pid",
@@ -7,4 +7,6 @@ export interface CartSummary {
7
7
  subtotalDetails?: CartLine[];
8
8
  total: CartLine;
9
9
  totalDetails?: CartLine[];
10
+ salesTax?: number | null;
11
+ currency?: string;
10
12
  }
@@ -10,6 +10,7 @@ export interface BasePaymentConfiguration {
10
10
  paymentMethodId: number;
11
11
  returnUrl: string;
12
12
  accountId?: number;
13
+ country?: string;
13
14
  paymentWithSavedMethod?: boolean;
14
15
  savedMethodId?: number;
15
16
  savePaymentMethod?: boolean;
@@ -113,6 +113,9 @@ export declare class PaymentService {
113
113
  private setupSyncService;
114
114
  private listenFinanceDetails;
115
115
  private listenFormStatusChanges;
116
+ /**
117
+ * In case the form pid changes despite the one passed during initialization
118
+ */
116
119
  private updatePidConfig;
117
120
  private emitFormResponse;
118
121
  private getInitializeMessages;
@@ -18,11 +18,9 @@ export declare class StatusService {
18
18
  private readonly nextActionService;
19
19
  private readonly savePaymentMethodStatusService;
20
20
  private readonly statusUpdatedActionCreator;
21
- private listenStatusSubscription;
22
21
  constructor(urlService: UrlService, statusRequestService: StatusRequestService, financeDetailsService: FinanceDetailsService, listenStatusService: ListenStatusService, nextActionService: NextActionService, savePaymentMethodStatusService: SavePaymentMethodStatusService, statusUpdatedActionCreator: StatusUpdatedActionCreator);
23
22
  getStatus(params: StatusRequestParams): Promise<Status>;
24
23
  getStatusWithUrlSearchParams(url?: string): Promise<Status>;
25
- stopListening(): void;
26
24
  listenFinalStatus(invoice: number): Observable<StatusSettings>;
27
25
  private getRequestParamsFromUrl;
28
26
  private startWaitingStatusUpdates;
@@ -96,7 +96,6 @@ export declare class CoreLibraryService {
96
96
  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);
97
97
  init(configuration: InitConfiguration): Promise<void>;
98
98
  getStatus(url?: string): Promise<Status>;
99
- stopStatusListening(): void;
100
99
  calculateField(changedField: Field, fields: Field[]): Promise<SyncResponse>;
101
100
  submit(fields: Field[]): Promise<{
102
101
  response: SubmitResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/payment-client-core",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "engines": {
5
5
  "node": ">=16.10.0",
6
6
  "npm": ">=8.11.0"