Skip to content

Commit

Permalink
fix: change double to number to follow ts types
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-haripriyan committed Apr 28, 2023
1 parent 87fce9b commit 62a0b84
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Purchases.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Platform } from 'react-native';
import type { Double } from 'react-native/Libraries/Types/CodegenTypes';

/**
* Chargebee SDK Config parameters.
Expand All @@ -20,7 +19,7 @@ export interface AuthenticationDetail {
export interface Product {
readonly id: string;
readonly title: string;
readonly price: Double;
readonly price: number;
readonly currencyCode: string;
}

Expand All @@ -35,10 +34,10 @@ export interface Subscription {
readonly customerId: string;
readonly status: string;
readonly planId: string | null;
readonly planAmount: Double | null;
readonly activatedAt: Double | null;
readonly currentTermStart: Double | null;
readonly currentTermEnd: Double | null;
readonly planAmount: number | null;
readonly activatedAt: number | null;
readonly currentTermStart: number | null;
readonly currentTermEnd: number | null;
}

export interface SubscriptionsRequest {
Expand Down

0 comments on commit 62a0b84

Please sign in to comment.