Skip to content

Commit

Permalink
fix: Fix getSubscriptionModifiers response type (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-rogers committed Jun 22, 2023
1 parent 3b4cfd2 commit ffddc60
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types.ts
Expand Up @@ -193,7 +193,7 @@ export interface GetSubscriptionModifiersBody {
subscription_id?: string;
}

export interface GetSubscriptionModifiersResponse {
export interface SubscriptionModifier {
modifier_id: number;
subscription_id: number;
amount: number;
Expand All @@ -202,6 +202,8 @@ export interface GetSubscriptionModifiersResponse {
description: string;
}

export type GetSubscriptionModifiersResponse = Array<SubscriptionModifier>;

export interface CreateSubscriptionModifierBody {
modifier_amount: number;
modifier_description?: string;
Expand Down

0 comments on commit ffddc60

Please sign in to comment.