Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add billing addon plan addons to the SDK types #522

Merged
merged 1 commit into from Jun 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
22 changes: 22 additions & 0 deletions typings/resin-sdk.d.ts
Expand Up @@ -374,11 +374,33 @@ declare namespace ResinSdk {
billing: BillingPlanBillingInfo;
intervalUnit?: string;
intervalLength?: string;
addonPlan?: BillingAddonPlanInfo;
}

interface BillingAddonPlanInfo {
code: string;
currentPeriodEndDate?: string;
billing: BillingPlanBillingInfo;

addOns: Array<{
code: string;
unitCostCents?: string;
quantity?: string;
}>;
}

interface BillingPlanBillingInfo {
currency: string;
currencySymbol?: string;
totalCostCents: string;

charges: Array<{
itemType: string;
name: string;
code: string;
unitCostCents: string;
quantity: string;
}>;
}

interface InvoiceInfo {
Expand Down