@xsolla/payment-client-core 0.0.11 → 0.0.13

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,6 +1,7 @@
1
1
  import { CartLine } from './cart-line.interface';
2
2
  import { Price } from './price.interface';
3
3
  export interface CartItem {
4
+ key?: string;
4
5
  imgSrc?: string;
5
6
  hasDefaultImg?: boolean;
6
7
  title: string;
@@ -4,5 +4,6 @@ export interface CartLine {
4
4
  title?: string;
5
5
  content?: string;
6
6
  money?: Price;
7
+ rate?: number;
7
8
  isDateLine?: boolean;
8
9
  }
@@ -1,23 +1,27 @@
1
1
  import { XpsFinance } from '../xps-finance.interface';
2
2
  import { XpsPurchase } from '../xps-purchase.interface';
3
3
  import { CartItem } from './cart-item.interface';
4
- import { CartSummary } from './cart-pricing.interface';
4
+ import { CartSummary } from './cart-summary.interface';
5
5
  export declare class FinanceDetails {
6
6
  readonly purchase: XpsPurchase;
7
7
  readonly finance: XpsFinance;
8
+ readonly cartItems: CartItem[];
9
+ readonly cartSummary: CartSummary;
10
+ readonly paymentCountry: string;
8
11
  private get shouldShowZeroIndirectTaxRate();
9
12
  private get isSalesTaxes();
10
13
  constructor(parameters: {
11
14
  purchase: XpsPurchase;
12
15
  finance: XpsFinance;
13
16
  });
14
- getFormattedPurchaseForCart(): CartItem[];
15
- getFormattedPricingForCart(): CartSummary;
16
- getPaymentCountry(): string;
17
+ private getFormattedPurchaseForCart;
18
+ private getFormattedPricingForCart;
19
+ private getPaymentCountry;
17
20
  private getTaxForItem;
18
21
  private getTaxesForSubtotalDetails;
19
22
  private getVatLabelForSubtotalDetails;
20
23
  private getTaxesForTotalDetails;
24
+ private getVatKeyForDetails;
21
25
  private getVatLabelForTotalDetails;
22
26
  private isIndia;
23
27
  private isGhana;
@@ -1,11 +1,9 @@
1
1
  import { CheckoutItem } from './checkout-item.interface';
2
2
  import { VirtualCurrency } from './virtual-currency.interface';
3
- import { XpsSubscriptionItem } from './xps-subscription-item.interface';
4
3
  export interface XpsPurchase {
5
4
  virtual_currency?: VirtualCurrency[];
6
5
  checkout_items?: CheckoutItem[];
7
6
  virtual_items?: VirtualCurrency[];
8
- subscriptions?: XpsSubscriptionItem[];
9
7
  checkout?: {
10
8
  amount: number;
11
9
  currency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/payment-client-core",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoieHBzLXN1YnNjcmlwdGlvbi1pdGVtLmludGVyZmFjZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL3BheW1lbnQtY2xpZW50LWNvcmUvc3JjL2xpYi9jb3JlL3BheW1lbnQveHBzLXN1YnNjcmlwdGlvbi1pdGVtLmludGVyZmFjZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBYcHNTdWJzY3JpcHRpb25JdGVtIHtcbiAgYW1vdW50OiBudW1iZXI7XG4gIGlzX3RyaWFsOiBib29sZWFuO1xuICB0cmlhbF9wZXJpb2Q6IG51bWJlcjtcbiAgcGVyaW9kOiBudW1iZXI7XG4gIGN1cnJlbmN5OiBzdHJpbmc7XG4gIGRlc2NyaXB0aW9uOiBzdHJpbmc7XG4gIHBhY2thZ2VfaW5mbzogc3RyaW5nO1xuICBwZXJpb2RfdHlwZTogc3RyaW5nO1xuICBleHBpcmF0aW9uX3BlcmlvZF90eXBlOiBzdHJpbmc7XG4gIHJlY3VycmVudF90eXBlOiBzdHJpbmc7XG4gIGRhdGVfbmV4dF9jaGFyZ2U6IHN0cmluZztcbiAgYW1vdW50X25leHRfY2hhcmdlOiBzdHJpbmc7XG4gIHNldHVwX2ZlZTogbnVtYmVyO1xuICBjdXJyZW5jeV9uZXh0X2NoYXJnZTogc3RyaW5nO1xuICBwcm9tb3Rpb25fZGV0YWlsczogdW5rbm93bjtcbiAgaXNfYWxsb3dfdXNlcl9zZWxlY3RfcmVjdXJyZW50X3R5cGU6IHN0cmluZztcbiAgZGF0ZV9zdGFydDogc3RyaW5nO1xuICBkYXRlX2VuZDogc3RyaW5nO1xufVxuIl19
@@ -1,20 +0,0 @@
1
- export interface XpsSubscriptionItem {
2
- amount: number;
3
- is_trial: boolean;
4
- trial_period: number;
5
- period: number;
6
- currency: string;
7
- description: string;
8
- package_info: string;
9
- period_type: string;
10
- expiration_period_type: string;
11
- recurrent_type: string;
12
- date_next_charge: string;
13
- amount_next_charge: string;
14
- setup_fee: number;
15
- currency_next_charge: string;
16
- promotion_details: unknown;
17
- is_allow_user_select_recurrent_type: string;
18
- date_start: string;
19
- date_end: string;
20
- }