BillingServiceClient class
/ License CRUD and payment handling. Operates on Firm.licenses (embedded). / firmId is derived from the authenticated user's context.
Constructors
-
BillingServiceClient(ClientChannel channel, {CallOptions? options, Iterable<
ClientInterceptor> ? interceptors})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
$createCall<
Q, R> (ClientMethod< Q, R> method, Stream<Q> requests, {CallOptions? options}) → ClientCall<Q, R> -
inherited
-
$createStreamingCall<
Q, R> (ClientMethod< Q, R> method, Stream<Q> requests, {CallOptions? options}) → ResponseStream<R> -
inherited
-
$createUnaryCall<
Q, R> (ClientMethod< Q, R> method, Q request, {CallOptions? options}) → ResponseFuture<R> -
inherited
-
createCheckoutSession(
CreateCheckoutSessionRequest request, {CallOptions? options}) → ResponseFuture< CreateCheckoutSessionResponse> - / Create a Stripe Checkout Session for a license purchase. Returns URL to redirect the customer.
-
createLicense(
CreateLicenseRequest request, {CallOptions? options}) → ResponseFuture< CreateLicenseResponse> - / Create a license and append to firm.licenses.
-
createPawapayCheckout(
CreatePawapayCheckoutRequest request, {CallOptions? options}) → ResponseFuture< CreatePawapayCheckoutResponse> - / Create a PawaPay Checkout for a license / SYSCOHADA purchase. Returns hosted-page redirectUrl.
-
deleteLicense(
DeleteLicenseRequest request, {CallOptions? options}) → ResponseFuture< StatusResponse> - / Remove a license from firm.licenses.
-
fulfillFromPawapayCheckout(
FulfillFromPawapayCheckoutRequest request, {CallOptions? options}) → ResponseFuture< CreateLicenseResponse> - / User-facing: ensure license is created from a completed PawaPay checkout (e.g. after returnUrl). / Use when webhook may have failed or not yet run. Idempotent; validates checkout belongs to user's firm.
-
fulfillFromStripeCheckoutSession(
FulfillFromStripeCheckoutSessionRequest request, {CallOptions? options}) → ResponseFuture< CreateLicenseResponse> - / User-facing: ensure license is created from a paid Checkout Session (e.g. after redirect). / Use when webhook may have failed or not yet run. Idempotent; validates session belongs to user's firm.
-
fulfillLicenseFromPawapay(
FulfillLicenseFromPawapayRequest request, {CallOptions? options}) → ResponseFuture< CreateLicenseResponse> - / Internal: fulfill a license after PawaPay checkout COMPLETED. Called by weebi_express webhook handler. / Requires service account auth.
-
fulfillLicenseFromStripe(
FulfillLicenseFromStripeRequest request, {CallOptions? options}) → ResponseFuture< CreateLicenseResponse> - / Internal: fulfill a license after Stripe payment. Called by weebi_express webhook handler. / Requires service account auth.
-
getReferralInfo(
Empty request, {CallOptions? options}) → ResponseFuture< GetReferralInfoResponse> - / Get referral code and credit balance for the user's firm.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readAccountingYearPurchases(
Empty request, {CallOptions? options}) → ResponseFuture< ReadAccountingYearPurchasesResponse> - / Read punctual SYSCOHADA fiscal-year purchases for the user's firm (not a subscription).
-
readBillingProducts(
Empty request, {CallOptions? options}) → ResponseFuture< ReadBillingProductsResponse> - / Read available billing products (license plans). Used by webapp for checkout.
-
readLicenses(
Empty request, {CallOptions? options}) → ResponseFuture< ReadLicensesResponse> - / Read all licenses for the user's firm.
-
requestReferralPayout(
Empty request, {CallOptions? options}) → ResponseFuture< RequestReferralPayoutResponse> - / Request cash-out of referral credit. Requires balance >= 1500 (€15). Payout to same payment customer.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateLicense(
UpdateLicenseRequest request, {CallOptions? options}) → ResponseFuture< StatusResponse> - / Update an existing license by licenseId.
-
updatePaymentCustomerId(
UpdatePaymentCustomerIdRequest request, {CallOptions? options}) → ResponseFuture< StatusResponse> - / Set the customer ID for a payment provider on the firm.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultHost → const String
- The hostname for this service.
-
oauthScopes
→ const List<
String> - OAuth scopes needed for the client.