CustomersResource class
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
-
create({Map<String, Object?> params = const {}, String? idempotencyKey})
→ Future<Map<String, dynamic>>
-
Créer un client. POST /api/v1/customers
-
delete(String id, [Map<String, Object?> params = const {}])
→ Future<Map<String, dynamic>>
-
Supprimer un client. DELETE /api/v1/customers/{id}
-
list([Map<String, Object?> params = const {}])
→ Future<Page>
-
Lister les clients. GET /api/v1/customers
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
paymentMethods(String customerId, [Map<String, Object?> params = const {}])
→ Future<Page>
-
Moyens de paiement d'un client. GET /api/v1/customers/{id}/payment_methods
-
removePaymentMethod(String customerId, String paymentMethodId, [Map<String, Object?> params = const {}])
→ Future<Map<String, dynamic>>
-
Retirer un moyen de paiement. DELETE /api/v1/customers/{id}/payment_methods/{id}
-
retrieve(String id, [Map<String, Object?> params = const {}])
→ Future<Map<String, dynamic>>
-
Lire un client. GET /api/v1/customers/{id}
-
setDefaultPaymentMethod(String customerId, String paymentMethodId, {Map<String, Object?> params = const {}, String? idempotencyKey})
→ Future<Map<String, dynamic>>
-
Choisir le moyen par défaut. POST /api/v1/customers/{id}/payment_methods/{id}/default
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(String id, [Map<String, Object?> params = const {}])
→ Future<Map<String, dynamic>>
-
Modifier un client. PATCH /api/v1/customers/{id}