Skip to content

Commit 4d28130

Browse files
committed
Add card api
1 parent ff14705 commit 4d28130

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

src/stripe/api/CardApi.hx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package stripe.api;
2+
3+
import stripe.types.*;
4+
5+
interface CardApi {
6+
7+
@:get('/')
8+
public function get():Card;
9+
10+
}

src/stripe/api/CardsApi.hx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ import stripe.types.*;
44

55
interface CardsApi {
66

7+
@:sub('/$id')
8+
function ofId(id:String):CardApi;
9+
710
@:post('/')
811
@:consumes('application/x-www-form-urlencoded')
912
public function create(body:{

src/stripe/api/CustomersApi.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface CustomersApi {
1010
@:get('/')
1111
@:consumes('application/x-www-form-urlencoded')
1212
function list(query:{
13-
?created:Date, // timestamp
13+
?created:Timestamp,
1414
?ending_before:String,
1515
?starting_after:String,
1616
?limit:Int,

0 commit comments

Comments
 (0)