CardService class

URL: https://developer.intuit.com/app/developer/qbpayments/docs/api/resources/all-entities/cards Store credit cards and debit cards for processing future payments. Note that storing cards for swiped transactions is not currently supported by the payments API. Applicable for US and Canada only

Constructors

CardService.new({required String baseUrl, required AuthenticationService authenticationService})

Properties

authenticationService AuthenticationService
final
baseUrl String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCard({required String requestId, required String customerId, required Card card, String? realmId, String? authToken}) Future<Card>
This operation allows you to store a new card object. Note that this card is only accessible via the Payments API. It will not appear in QuickBooks Online.
createCardFromToken({required String requestId, required String customerId, required String cardToken, String? realmId, String? authToken}) Future<Card>
This operation allows you to store a new card object from a token.
deleteCard({required String requestId, required String cardId, required String customerId, String? realmId, String? authToken}) Future<bool>
Deletes a specified card object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readAllCards({required String requestId, required String customerId, String? realmId, String? authToken}) Future<List<Card>>
Returns a list of up to ten cards for the company specified with the id parameter. The cards are returned in descending order with most recent entry first. This operation cannot retrieve cards created via the QuickBooks Online interface. If more than 10 cards are needed, specify the number to be retrieved using ?count=number appended to the end of the query. For example, /cards?count=100 would retrieve 100 cards.
readCard({required String cardId, required String customerId, String? realmId, String? authToken}) Future<Card>
Retrieves a specified card object. This operation cannot retrieve cards created via the QuickBooks Online interface.
toString() String
A string representation of this object.
inherited

Operators

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