File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "version" : " 0.28.3 " ,
2
+ "version" : " 0.28.4 " ,
3
3
"license" : " MIT" ,
4
4
"main" : " dist/index.js" ,
5
5
"typings" : " dist/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -51,16 +51,17 @@ export class Order {
51
51
}
52
52
53
53
public async generatePaymentIntent (
54
- id : string
54
+ amount : number
55
55
) : Promise < GeneratePaymentIntentResult > {
56
56
const response = await this . client . mutate ( {
57
57
mutation : GENERATE_ORDER_PAYMENT_INTENT_MUTATION ,
58
- variables : { id } ,
58
+ variables : { amount } ,
59
59
} ) ;
60
60
61
61
return response . data
62
62
. generateOrderPaymentIntent as GeneratePaymentIntentResult ;
63
63
}
64
+
64
65
public async getOrders (
65
66
options : {
66
67
first ?: number ;
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ export const CREATE_ORDER_FROM_APPLE_IN_APP_PURCHASE = gql`
67
67
` ;
68
68
69
69
export const GENERATE_ORDER_PAYMENT_INTENT_MUTATION = gql `
70
- mutation($id: ID !) {
71
- generateOrderPaymentIntent(id : $id ) {
70
+ mutation($amount: Money !) {
71
+ generateOrderPaymentIntent(amount : $amount ) {
72
72
client_secret
73
73
status
74
74
message
You can’t perform that action at this time.
0 commit comments