Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/resources/customers/costs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ export namespace CostListResponse {
* }
* ```
*
* ### Fixed fees
* ## Fixed fees
*
* Fixed fees are prices that are applied independent of usage quantities, and
* follow unit pricing. They also have an additional parameter
Expand Down Expand Up @@ -836,7 +836,7 @@ export namespace CostListByExternalIDResponse {
* }
* ```
*
* ### Fixed fees
* ## Fixed fees
*
* Fixed fees are prices that are applied independent of usage quantities, and
* follow unit pricing. They also have an additional parameter
Expand Down
4 changes: 4 additions & 0 deletions src/resources/customers/credits/credits.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ export interface CreditListResponse {
expiry_date: string | null;

per_unit_cost_basis: string | null;

status: 'active' | 'pending_payment';
}

export interface CreditListByExternalIDResponse {
Expand All @@ -88,6 +90,8 @@ export interface CreditListByExternalIDResponse {
expiry_date: string | null;

per_unit_cost_basis: string | null;

status: 'active' | 'pending_payment';
}

export interface CreditListParams extends PageParams {
Expand Down
2 changes: 1 addition & 1 deletion src/resources/invoice-line-items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export interface InvoiceLineItemCreateResponse {
* }
* ```
*
* ### Fixed fees
* ## Fixed fees
*
* Fixed fees are prices that are applied independent of usage quantities, and
* follow unit pricing. They also have an additional parameter
Expand Down
21 changes: 8 additions & 13 deletions src/resources/invoices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ export namespace Invoice {
* }
* ```
*
* ### Fixed fees
* ## Fixed fees
*
* Fixed fees are prices that are applied independent of usage quantities, and
* follow unit pricing. They also have an additional parameter
Expand Down Expand Up @@ -2050,7 +2050,7 @@ export namespace InvoiceFetchUpcomingResponse {
* }
* ```
*
* ### Fixed fees
* ## Fixed fees
*
* Fixed fees are prices that are applied independent of usage quantities, and
* follow unit pricing. They also have an additional parameter
Expand Down Expand Up @@ -2373,11 +2373,6 @@ export namespace InvoiceCreateParams {
* Rate per unit of usage
*/
unit_amount: string;

/**
* Multiplier to scale rated quantity by
*/
scaling_factor?: number | null;
}
}
}
Expand Down Expand Up @@ -2424,19 +2419,19 @@ export interface InvoiceFetchUpcomingParams {

export interface InvoiceMarkPaidParams {
/**
* An optional external ID to associate with the payment.
* A date string to specify the date of the payment.
*/
external_id: string | null;
payment_received_date: string;

/**
* An optional note to associate with the payment.
* An optional external ID to associate with the payment.
*/
notes: string | null;
external_id?: string | null;

/**
* A date string to specify the date of the payment.
* An optional note to associate with the payment.
*/
payment_received_date: string;
notes?: string | null;
}

export namespace Invoices {
Expand Down
16 changes: 0 additions & 16 deletions src/resources/plans/plans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -396,11 +396,6 @@ export namespace PlanCreateParams {
* Rate per unit of usage
*/
unit_amount: string;

/**
* Multiplier to scale rated quantity by
*/
scaling_factor?: number | null;
}
}

Expand Down Expand Up @@ -533,12 +528,6 @@ export namespace PlanCreateParams {
* Matrix values for specified matrix grouping keys
*/
matrix_values: Array<MatrixConfig.MatrixValue>;

/**
* Default optional multiplier to scale rated quantities that fall into the default
* bucket by
*/
scaling_factor?: number | null;
}

export namespace MatrixConfig {
Expand All @@ -554,11 +543,6 @@ export namespace PlanCreateParams {
* Unit price for the specified dimension_values
*/
unit_amount: string;

/**
* Optional multiplier to scale rated quantities by
*/
scaling_factor?: number | null;
}
}
}
Expand Down
56 changes: 1 addition & 55 deletions src/resources/prices/prices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ export class PricesPage extends Page<Price> {}
* }
* ```
*
* ### Fixed fees
* ## Fixed fees
*
* Fixed fees are prices that are applied independent of usage quantities, and
* follow unit pricing. They also have an additional parameter
Expand Down Expand Up @@ -383,11 +383,6 @@ export namespace Price {
* Rate per unit of usage
*/
unit_amount: string;

/**
* Multiplier to scale rated quantity by
*/
scaling_factor?: number | null;
}
}

Expand Down Expand Up @@ -544,12 +539,6 @@ export namespace Price {
* Matrix values for specified matrix grouping keys
*/
matrix_values: Array<MatrixConfig.MatrixValue>;

/**
* Default optional multiplier to scale rated quantities that fall into the default
* bucket by
*/
scaling_factor?: number | null;
}

export namespace MatrixConfig {
Expand All @@ -565,11 +554,6 @@ export namespace Price {
* Unit price for the specified dimension_values
*/
unit_amount: string;

/**
* Optional multiplier to scale rated quantities by
*/
scaling_factor?: number | null;
}
}

Expand Down Expand Up @@ -1547,12 +1531,6 @@ export namespace Price {
* Matrix values for specified matrix grouping keys
*/
matrix_values: Array<MatrixWithAllocationConfig.MatrixValue>;

/**
* Default optional multiplier to scale rated quantities that fall into the default
* bucket by
*/
scaling_factor?: number | null;
}

export namespace MatrixWithAllocationConfig {
Expand All @@ -1568,11 +1546,6 @@ export namespace Price {
* Unit price for the specified dimension_values
*/
unit_amount: string;

/**
* Optional multiplier to scale rated quantities by
*/
scaling_factor?: number | null;
}
}

Expand Down Expand Up @@ -1682,11 +1655,6 @@ export namespace PriceCreateParams {
* Rate per unit of usage
*/
unit_amount: string;

/**
* Multiplier to scale rated quantity by
*/
scaling_factor?: number | null;
}
}

Expand Down Expand Up @@ -1829,12 +1797,6 @@ export namespace PriceCreateParams {
* Matrix values for specified matrix grouping keys
*/
matrix_values: Array<MatrixConfig.MatrixValue>;

/**
* Default optional multiplier to scale rated quantities that fall into the default
* bucket by
*/
scaling_factor?: number | null;
}

export namespace MatrixConfig {
Expand All @@ -1850,11 +1812,6 @@ export namespace PriceCreateParams {
* Unit price for the specified dimension_values
*/
unit_amount: string;

/**
* Optional multiplier to scale rated quantities by
*/
scaling_factor?: number | null;
}
}
}
Expand Down Expand Up @@ -1934,12 +1891,6 @@ export namespace PriceCreateParams {
* Matrix values for specified matrix grouping keys
*/
matrix_values: Array<MatrixWithAllocationConfig.MatrixValue>;

/**
* Default optional multiplier to scale rated quantities that fall into the default
* bucket by
*/
scaling_factor?: number | null;
}

export namespace MatrixWithAllocationConfig {
Expand All @@ -1955,11 +1906,6 @@ export namespace PriceCreateParams {
* Unit price for the specified dimension_values
*/
unit_amount: string;

/**
* Optional multiplier to scale rated quantities by
*/
scaling_factor?: number | null;
}
}
}
Expand Down
Loading