@xsolla/payment-client-core 0.2.57 → 0.2.58
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/esm2022/lib/core/sdk-payment-systems/apple-pay/apple-pay-cart/apple-pay-cart.service.mjs +18 -5
- package/fesm2022/xsolla-payment-client-core.mjs +16 -4
- package/fesm2022/xsolla-payment-client-core.mjs.map +1 -1
- package/lib/core/sdk-payment-systems/apple-pay/apple-pay-cart/apple-pay-cart.service.d.ts +6 -2
- package/package.json +1 -1
- package/xsolla-payment-client-core-0.2.58.tgz +0 -0
- package/xsolla-payment-client-core-0.2.57.tgz +0 -0
|
@@ -4,22 +4,26 @@ import { ApplePayParams } from '../apple-pay-params.interface';
|
|
|
4
4
|
import { UpdatedPrice } from '../updated-price.interface';
|
|
5
5
|
import { ShippingAddress } from '../shipping-address.interface';
|
|
6
6
|
import { ApplePayExternalWindowCommunicationService } from '../external-window-communication/external-window-communication.service';
|
|
7
|
+
import { XpsResponse } from '../../../payment/xps-response.interface';
|
|
8
|
+
import { SummaryFinanceDetailsAdapterService } from '../../../payment/finance-details/summary/summary-finance-details-adapter.service';
|
|
7
9
|
import * as i0 from "@angular/core";
|
|
8
10
|
export declare class ApplePayCartService {
|
|
9
11
|
private readonly externalWindowCommunicationService;
|
|
12
|
+
private readonly summaryFinanceDetailsAdapterService;
|
|
10
13
|
private readonly cartSuccessfulRecalculated;
|
|
11
14
|
private readonly cartErrorRecalculated;
|
|
12
15
|
private readonly cartRecalculationRequest;
|
|
13
16
|
get cartSuccessfulRecalculated$(): Observable<UpdatedPrice>;
|
|
14
17
|
get cartErrorRecalculated$(): Observable<ApplePayError>;
|
|
15
18
|
get cartRecalculationRequest$(): Observable<ShippingAddress>;
|
|
16
|
-
constructor(externalWindowCommunicationService: ApplePayExternalWindowCommunicationService);
|
|
19
|
+
constructor(externalWindowCommunicationService: ApplePayExternalWindowCommunicationService, summaryFinanceDetailsAdapterService: SummaryFinanceDetailsAdapterService);
|
|
17
20
|
recalculateCartTaxes(shippingContact: ApplePayShippingContact): void;
|
|
18
21
|
buildShippingContactUpdate(paymentParams: ApplePayParams, updatedPrice: UpdatedPrice): ApplePayShippingContactUpdate;
|
|
19
|
-
sendSuccessfulRecalculatedCart(
|
|
22
|
+
sendSuccessfulRecalculatedCart(xpsResponse: XpsResponse): void;
|
|
20
23
|
sendErrorRecalculatedCart(error: ApplePayError): void;
|
|
21
24
|
isZipCountry(country: string): boolean;
|
|
22
25
|
private getLineItems;
|
|
26
|
+
private getTotalAmount;
|
|
23
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ApplePayCartService, never>;
|
|
24
28
|
static ɵprov: i0.ɵɵInjectableDeclaration<ApplePayCartService>;
|
|
25
29
|
}
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|