File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import 'dart:async' ;
22
33import 'package:stripe/messages.dart' ;
4- import 'package:stripe/src/resources/sources .dart' ;
4+ import 'package:stripe/src/resources/source .dart' ;
55
66import '../client.dart' ;
77import '_resource.dart' ;
@@ -50,7 +50,7 @@ class CustomerResource extends Resource<Customer> {
5050We recommend that you adopt the PaymentMethods API.
5151This newer API provides access to our latest features and payment method types.
5252''' )
53- SourcesResource sources (String customerId) {
54- return SourcesResource (_client, customerId);
53+ SourceResource sources (String customerId) {
54+ return SourceResource (_client, customerId);
5555 }
5656}
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ import '_resource.dart';
1313We recommend that you adopt the PaymentMethods API.
1414This newer API provides access to our latest features and payment method types.
1515''' )
16- class SourcesResource extends Resource <Subscription > {
16+ class SourceResource extends Resource <Subscription > {
1717 final String customerId;
1818
1919 String get _resourcePath => 'customers/$customerId /sources' ;
2020
21- SourcesResource (Client client, this .customerId) : super (client);
21+ SourceResource (Client client, this .customerId) : super (client);
2222
2323 Future <DataList <Source >> list () async {
2424 final map = await get (_resourcePath);
You can’t perform that action at this time.
0 commit comments