@posiwise/common-services 0.2.23 → 0.2.24
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
|
@@ -495,9 +495,18 @@ declare class UserService {
|
|
|
495
495
|
private readonly toast;
|
|
496
496
|
private readonly endpoint;
|
|
497
497
|
private isTosModalOpen;
|
|
498
|
+
private isSecondaryPaymentModalOpen;
|
|
498
499
|
constructor(api: MainApiHttpService, store: Store<AppState>, router: Router, appConfigService: AppConfigService, profileService: ProfileService, toast: CustomToastService);
|
|
499
500
|
getUserState(): Observable<UserState>;
|
|
500
501
|
getUserInfo(): Observable<User>;
|
|
502
|
+
/**
|
|
503
|
+
* Hard-gate the user when their active product requires a Braintree
|
|
504
|
+
* (secondary) payment method and they don't have one registered yet.
|
|
505
|
+
* Pattern mirrors checkAndHandleTosAcceptance — a non-dismissable
|
|
506
|
+
* SweetAlert2 modal that takes the user to the update-payment route.
|
|
507
|
+
* See main-api ticket #922.
|
|
508
|
+
*/
|
|
509
|
+
private checkAndHandleSecondaryPayment;
|
|
501
510
|
/**
|
|
502
511
|
* Ensure the current user has accepted the latest Terms of Service for this domain.
|
|
503
512
|
* If the domain has a newer TOS version than the user's accepted timestamp, a blocking
|
|
@@ -737,6 +746,9 @@ declare class SubscriptionService {
|
|
|
737
746
|
updateCardDetails(data: {
|
|
738
747
|
[key: string]: string;
|
|
739
748
|
}, subscription_id: number): rxjs.Observable<any>;
|
|
749
|
+
getPaymentMethods(subscriptionId: number): rxjs.Observable<any>;
|
|
750
|
+
getBraintreeClientToken(subscriptionId: number): rxjs.Observable<any>;
|
|
751
|
+
registerBraintreePaymentMethod(subscriptionId: number, paymentMethodNonce: string): rxjs.Observable<any>;
|
|
740
752
|
getEnterpriseInsight(subscriptionId: number, starting_at?: string, ending_at?: string): rxjs.Observable<any>;
|
|
741
753
|
postSubscriptionCredential(data: any): rxjs.Observable<any>;
|
|
742
754
|
editSubscriptionCredential(id: number, data: any): rxjs.Observable<any>;
|