@posiwise/user-module 0.0.143 → 0.0.144
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/package.json
CHANGED
|
@@ -310,7 +310,15 @@ declare class SubscriptionCredentialComponent extends AppBaseComponent implement
|
|
|
310
310
|
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionCredentialComponent, "pw-subscription-credential", never, {}, {}, never, never, false, never>;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
|
|
313
|
+
interface BraintreeCardSummary {
|
|
314
|
+
provider: 'braintree';
|
|
315
|
+
token: string;
|
|
316
|
+
card_number: string;
|
|
317
|
+
exp_month: number;
|
|
318
|
+
exp_year: number;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
declare class UpdatePaymentDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
314
322
|
private readonly fb;
|
|
315
323
|
private readonly scriptLoader;
|
|
316
324
|
private readonly productService;
|
|
@@ -321,20 +329,30 @@ declare class UpdatePaymentDetailsComponent extends AppBaseComponent implements
|
|
|
321
329
|
months: any[];
|
|
322
330
|
busy: boolean;
|
|
323
331
|
isChangePayment: boolean;
|
|
324
|
-
cardDetails: CardDetails
|
|
332
|
+
cardDetails: CardDetails | null;
|
|
333
|
+
secondaryCard: BraintreeCardSummary | null;
|
|
334
|
+
showBraintreeForm: boolean;
|
|
335
|
+
braintreeBusy: boolean;
|
|
325
336
|
loading: boolean;
|
|
326
337
|
errorMessage: string;
|
|
327
338
|
stripePublishKey: string;
|
|
328
339
|
errorMsg: string;
|
|
329
340
|
subscriptionId: number;
|
|
330
341
|
productId: number;
|
|
342
|
+
braintreeContainer?: ElementRef<HTMLDivElement>;
|
|
343
|
+
private readonly braintreeHelper;
|
|
331
344
|
constructor(fb: UntypedFormBuilder, scriptLoader: ScriptLoaderService, productService: ProductService, subscriptionService: SubscriptionService, injector: Injector, cdr: ChangeDetectorRef);
|
|
332
345
|
ngOnInit(): void;
|
|
333
|
-
|
|
346
|
+
ngOnDestroy(): void;
|
|
347
|
+
private refreshPaymentMethods;
|
|
334
348
|
onUpdatePaymentDetailsCancel(): void;
|
|
335
349
|
onSave(): void;
|
|
350
|
+
private onStripeToken;
|
|
336
351
|
cancel(): void;
|
|
337
352
|
onChange(value: any): void;
|
|
353
|
+
startBraintreeFlow(): Promise<void>;
|
|
354
|
+
submitBraintree(): Promise<void>;
|
|
355
|
+
cancelBraintreeFlow(): void;
|
|
338
356
|
static ɵfac: i0.ɵɵFactoryDeclaration<UpdatePaymentDetailsComponent, never>;
|
|
339
357
|
static ɵcmp: i0.ɵɵComponentDeclaration<UpdatePaymentDetailsComponent, "pw-update-payment-details", never, {}, {}, never, never, false, never>;
|
|
340
358
|
}
|