Sub2ApiBillingClient class abstract interface

Typed authenticated Billing endpoints for the v0.1.183 user API.

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

cancelOrder(int id, {Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiPaymentMutationResult>
Cancels a pending owned order without automatic replay.
checkoutInfo({Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiCheckoutInfo>
Reads one-call data needed to render a checkout UI.
config({Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiPaymentConfig>
Reads payment configuration.
createBalanceOrder(Sub2ApiCreateBalanceOrderRequest request, {Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiCreateOrderResult>
Creates a balance recharge order without automatic replay.
createSubscriptionOrder(Sub2ApiCreateSubscriptionOrderRequest request, {Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiCreateOrderResult>
Creates a subscription order without automatic replay.
getRefundEligibleProviders({Sub2ApiRequestOptions? requestOptions}) → Future<List<String>>
Lists provider instance IDs that accept user refund requests.
limits({Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiPaymentLimits>
Reads limits for available payment methods.
listOwnOrders(Sub2ApiPaymentOrderQuery query, {Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiPage<Sub2ApiPaymentOrder>>
Lists orders owned by the authenticated user.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
order(int id, {Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiPaymentOrder>
Reads one owned order.
plans({Sub2ApiRequestOptions? requestOptions}) → Future<List<Sub2ApiSubscriptionPlan>>
Lists subscription plans currently available for purchase.
requestRefund(int id, Sub2ApiRefundRequest request, {Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiPaymentMutationResult>
Requests a refund for a completed owned order without automatic replay.
resolvePublicOrder(Sub2ApiCheckoutSecret resumeToken, {Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiPublicPaymentOrder>
Resolves a full public order snapshot from a signed resume token.
toString() → String
A string representation of this object.
inherited
verifyOrder(String outTradeNo, {Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiPaymentOrder>
Verifies an owned order by provider trade number.
verifyPublicOrder(String outTradeNo, {Sub2ApiRequestOptions? requestOptions}) → Future<Sub2ApiPublicOrderVerification>
Uses the legacy anonymous trade-number lookup contract.

Operators

operator ==(Object other) → bool
The equality operator.
inherited