diff --git a/index.js.flow b/index.js.flow index 0bc5d38e5..b5c5bc1f5 100644 --- a/index.js.flow +++ b/index.js.flow @@ -10,6 +10,16 @@ declare type Common = { declare type ID = string +declare type Discount = { + identifier: string, + type: string, + numberOfPeriods: string, + price: string, + localizedPrice: string, + paymentMode: string, + subscriptionPeriod: string, +} + export type Product = Common & { type: "inapp" | "iap", productId: ID, @@ -18,6 +28,7 @@ export type Product = Common & { export type Subscription = Common & { type: "subs" | "sub", productId: ID, + discounts?: Discount[], introductoryPrice?: string, introductoryPricePaymentModeIOS?: string,