From a1c9d407fffc7f71cd7cbec42e52ae544338912b Mon Sep 17 00:00:00 2001 From: Kieran Lewin Date: Thu, 14 Sep 2023 21:25:24 +0100 Subject: [PATCH 1/2] fix subscription request type --- src/types/Types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/Types.ts b/src/types/Types.ts index 51a2030c..a6b316fa 100644 --- a/src/types/Types.ts +++ b/src/types/Types.ts @@ -3984,7 +3984,7 @@ export interface ListMetaCursor { export interface Subscription { // Amount in the lowest denomination for the currency (e.g. pence in GBP, // cents in EUR). - amount?: string; + amount?: number; // The amount to be deducted from each payment as an app fee, to be paid to // the partner integration which created the subscription, in the lowest From f71dfd4f7fd23d9b699e48e9fad668cf6d778f7c Mon Sep 17 00:00:00 2001 From: Kieran Lewin Date: Thu, 14 Sep 2023 21:49:19 +0100 Subject: [PATCH 2/2] fix subscription create day_of_month type --- src/types/Types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/Types.ts b/src/types/Types.ts index a6b316fa..9e778fac 100644 --- a/src/types/Types.ts +++ b/src/types/Types.ts @@ -4005,7 +4005,7 @@ export interface Subscription { // As per RFC 2445. The day of the month to charge customers on. `1`-`28` or // `-1` to indicate the last day of the month. - day_of_month?: string | null; + day_of_month?: number | null; // The earliest date that will be used as a `charge_date` on payments // created for this subscription if it is resumed. Only present for `paused`