We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ab8c54 commit 9210c69Copy full SHA for 9210c69
1 file changed
ground_control_client/lib/src/protocol/client.dart
@@ -427,6 +427,15 @@ class EndpointBilling extends _i1.EndpointRef {
427
caller.callServerEndpoint<void>('billing', 'removePaymentMethod', {
428
'paymentMethodId': paymentMethodId,
429
});
430
+
431
+ /// Checks if a payment method is required for the authenticated user.
432
+ ///
433
+ /// This endpoint returns `true` if the user has active (non-archived) projects,
434
+ /// meaning they cannot delete their last payment method. Returns `false` otherwise.
435
436
+ /// Returns `true` if a payment method is required, `false` otherwise.
437
+ _i2.Future<bool> isPaymentMethodRequired() =>
438
+ caller.callServerEndpoint<bool>('billing', 'isPaymentMethodRequired', {});
439
}
440
441
/// {@category Endpoint}
0 commit comments