@ng-web-apis/payment-request
Advanced tools
Comparing version 3.0.6 to 4.0.0
@@ -7,3 +7,3 @@ import * as i0 from "@angular/core"; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentItemDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<PaymentItemDirective, "[waPaymentItem][paymentAmount][paymentLabel]", never, { "amount": "paymentAmount"; "label": "paymentLabel"; "pending": "paymentPending"; }, {}, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<PaymentItemDirective, "[waPaymentItem][paymentAmount][paymentLabel]", never, { "amount": { "alias": "paymentAmount"; "required": false; }; "label": { "alias": "paymentLabel"; "required": false; }; "pending": { "alias": "paymentPending"; "required": false; }; }, {}, never, never, true, never>; | ||
} |
@@ -1,11 +0,14 @@ | ||
import { ElementRef } from '@angular/core'; | ||
import { Observable } from 'rxjs'; | ||
import { PaymentRequestService } from '../../services/payment-request.service'; | ||
import type { Observable } from 'rxjs'; | ||
import * as i0 from "@angular/core"; | ||
export declare class PaymentSubmitDirective { | ||
waPaymentSubmit: Observable<PaymentResponse>; | ||
waPaymentError: Observable<Error | DOMException>; | ||
constructor(paymentHost: PaymentDetailsInit, paymentRequest: PaymentRequestService, { nativeElement }: ElementRef, methods: PaymentMethodData[], options: PaymentOptions); | ||
private readonly paymentHost; | ||
private readonly paymentRequest; | ||
private readonly nativeElement; | ||
private readonly methods; | ||
private readonly options; | ||
readonly waPaymentSubmit: Observable<PaymentResponse>; | ||
readonly waPaymentError: Observable<DOMException | Error>; | ||
constructor(); | ||
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentSubmitDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<PaymentSubmitDirective, "[waPaymentSubmit]", never, {}, { "waPaymentSubmit": "waPaymentSubmit"; "waPaymentError": "waPaymentError"; }, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<PaymentSubmitDirective, "[waPaymentSubmit]", never, {}, { "waPaymentSubmit": "waPaymentSubmit"; "waPaymentError": "waPaymentError"; }, never, never, true, never>; | ||
} |
@@ -1,2 +0,3 @@ | ||
import { QueryList } from '@angular/core'; | ||
import type { QueryList } from '@angular/core'; | ||
import type { PaymentShippingOption } from '../../tokens/payment-options'; | ||
import * as i0 from "@angular/core"; | ||
@@ -8,6 +9,6 @@ export declare class PaymentDirective implements PaymentDetailsInit { | ||
shippingOptions?: PaymentShippingOption[]; | ||
set paymentItems(items: QueryList<PaymentItem>); | ||
displayItems?: PaymentItem[]; | ||
protected set paymentItems(items: QueryList<PaymentItem>); | ||
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentDirective, never>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<PaymentDirective, "[waPayment][paymentTotal]", never, { "total": "paymentTotal"; "id": "paymentId"; "modifiers": "paymentModifiers"; "shippingOptions": "paymentShippingOptions"; }, {}, ["paymentItems"]>; | ||
static ɵdir: i0.ɵɵDirectiveDeclaration<PaymentDirective, "[waPayment][paymentTotal]", never, { "total": { "alias": "paymentTotal"; "required": false; }; "id": { "alias": "paymentId"; "required": false; }; "modifiers": { "alias": "paymentModifiers"; "required": false; }; "shippingOptions": { "alias": "paymentShippingOptions"; "required": false; }; }, {}, ["paymentItems"], never, true, never>; | ||
} |
@@ -1,7 +0,5 @@ | ||
/** | ||
* Public API Surface of payment-request | ||
*/ | ||
export * from './directives/payment/payment.directive'; | ||
export * from './directives/payment-item/payment-item.directive'; | ||
export * from './directives/payment-submit/payment-submit.directive'; | ||
export * from './module'; | ||
export * from './services/payment-request.service'; | ||
@@ -11,2 +9,1 @@ export * from './tokens/payment-methods'; | ||
export * from './tokens/payment-request-support'; | ||
export * from './module'; |
@@ -7,4 +7,4 @@ import * as i0 from "@angular/core"; | ||
static ɵfac: i0.ɵɵFactoryDeclaration<PaymentRequestModule, never>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<PaymentRequestModule, [typeof i1.PaymentDirective, typeof i2.PaymentItemDirective, typeof i3.PaymentSubmitDirective], never, [typeof i1.PaymentDirective, typeof i2.PaymentItemDirective, typeof i3.PaymentSubmitDirective]>; | ||
static ɵmod: i0.ɵɵNgModuleDeclaration<PaymentRequestModule, never, [typeof i1.PaymentDirective, typeof i2.PaymentItemDirective, typeof i3.PaymentSubmitDirective], [typeof i1.PaymentDirective, typeof i2.PaymentItemDirective, typeof i3.PaymentSubmitDirective]>; | ||
static ɵinj: i0.ɵɵInjectorDeclaration<PaymentRequestModule>; | ||
} |
{ | ||
"name": "@ng-web-apis/payment-request", | ||
"version": "3.0.6", | ||
"version": "4.0.0", | ||
"description": "This is a library for declarative use of Payment Request API with Angular", | ||
@@ -30,15 +30,22 @@ "keywords": [ | ||
"@angular/core": ">=6.0.0", | ||
"@ng-web-apis/common": ">=1.0.0", | ||
"rxjs": ">=6.0.0" | ||
"@ng-web-apis/common": ">=3.0.6", | ||
"rxjs": ">=7.0.0" | ||
}, | ||
"main": "bundles/ng-web-apis-payment-request.umd.js", | ||
"module": "fesm2015/ng-web-apis-payment-request.js", | ||
"es2015": "fesm2015/ng-web-apis-payment-request.js", | ||
"esm2015": "esm2015/ng-web-apis-payment-request.js", | ||
"fesm2015": "fesm2015/ng-web-apis-payment-request.js", | ||
"typings": "ng-web-apis-payment-request.d.ts", | ||
"module": "fesm2022/ng-web-apis-payment-request.mjs", | ||
"typings": "index.d.ts", | ||
"exports": { | ||
"./package.json": { | ||
"default": "./package.json" | ||
}, | ||
".": { | ||
"types": "./index.d.ts", | ||
"esm2022": "./esm2022/ng-web-apis-payment-request.mjs", | ||
"esm": "./esm2022/ng-web-apis-payment-request.mjs", | ||
"default": "./fesm2022/ng-web-apis-payment-request.mjs" | ||
} | ||
}, | ||
"sideEffects": false, | ||
"dependencies": { | ||
"tslib": "^2.2.0" | ||
"tslib": "^2.3.0" | ||
} | ||
} |
@@ -0,1 +1,2 @@ | ||
import type { PaymentOptions } from '../tokens/payment-options'; | ||
import * as i0 from "@angular/core"; | ||
@@ -6,3 +7,2 @@ export declare class PaymentRequestService { | ||
private readonly paymentOptions; | ||
constructor(supported: boolean, paymentMethods: PaymentMethodData[], paymentOptions: PaymentOptions); | ||
request(details: PaymentDetailsInit, methods?: PaymentMethodData[], options?: PaymentOptions): Promise<PaymentResponse>; | ||
@@ -9,0 +9,0 @@ static ɵfac: i0.ɵɵFactoryDeclaration<PaymentRequestService, never>; |
import { InjectionToken } from '@angular/core'; | ||
/** | ||
* @deprecated | ||
*/ | ||
export interface PaymentOptions { | ||
requestBillingAddress?: boolean; | ||
requestPayerEmail?: boolean; | ||
requestPayerName?: boolean; | ||
requestPayerPhone?: boolean; | ||
requestShipping?: boolean; | ||
shippingType?: 'delivery' | 'pickup' | 'shipping'; | ||
} | ||
/** | ||
* @deprecated | ||
*/ | ||
export interface PaymentShippingOption { | ||
amount: PaymentCurrencyAmount; | ||
id: string; | ||
label: string; | ||
selected?: boolean; | ||
} | ||
/** | ||
* @deprecated | ||
*/ | ||
export declare const PAYMENT_OPTIONS: InjectionToken<PaymentOptions>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
79810
27
432
1
Updatedtslib@^2.3.0