@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.
- package/esm2020/lib/core/payment/finance-details/cart-item.interface.mjs +1 -1
- package/esm2020/lib/core/payment/finance-details/cart-line.interface.mjs +1 -1
- package/esm2020/lib/core/payment/finance-details/{cart-pricing.interface.mjs → cart-summary.interface.mjs} +1 -1
- package/esm2020/lib/core/payment/finance-details/finance-details.class.mjs +35 -12
- package/esm2020/lib/core/payment/status/status.service.mjs +3 -3
- package/esm2020/lib/core/payment/xps-purchase.interface.mjs +1 -1
- package/fesm2015/xsolla-payment-client-core.mjs +40 -15
- package/fesm2015/xsolla-payment-client-core.mjs.map +1 -1
- package/fesm2020/xsolla-payment-client-core.mjs +36 -13
- package/fesm2020/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/payment/finance-details/cart-item.interface.d.ts +1 -0
- package/lib/core/payment/finance-details/cart-line.interface.d.ts +1 -0
- package/lib/core/payment/finance-details/finance-details.class.d.ts +8 -4
- package/lib/core/payment/xps-purchase.interface.d.ts +0 -2
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.0.13.tgz +0 -0
- package/esm2020/lib/core/payment/xps-subscription-item.interface.mjs +0 -2
- package/lib/core/payment/xps-subscription-item.interface.d.ts +0 -20
- package/xsolla-payment-client-core-0.0.11.tgz +0 -0
- /package/lib/core/payment/finance-details/{cart-pricing.interface.d.ts → cart-summary.interface.d.ts} +0 -0
|
@@ -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-
|
|
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
|
|
15
|
-
getFormattedPricingForCart
|
|
16
|
-
getPaymentCountry
|
|
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
|
Binary file
|
|
@@ -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
|
-
}
|
|
Binary file
|
|
File without changes
|