Skip to content

Commit 8eac295

Browse files
committed
Re-add tax breakdown types
1 parent 134dfab commit 8eac295

File tree

2 files changed

+89
-0
lines changed

2 files changed

+89
-0
lines changed

clients/pricing-client/src/openapi.d.ts

+33
Original file line numberDiff line numberDiff line change
@@ -2668,6 +2668,35 @@ declare namespace Components {
26682668
*/
26692669
amount_tax?: number;
26702670
}
2671+
/**
2672+
* An amount associated with a specific recurrence.
2673+
*/
2674+
export interface RecurrenceAmountWithTax {
2675+
/**
2676+
* The price type.
2677+
*/
2678+
type?: string;
2679+
/**
2680+
* The price billing period.
2681+
*/
2682+
billing_period?: "weekly" | "monthly" | "every_quarter" | "every_6_months" | "yearly";
2683+
/**
2684+
* Total amount of items with same recurrence.
2685+
*/
2686+
amount_total?: number;
2687+
/**
2688+
* Total amount of items with same recurrence, excluding taxes.
2689+
*/
2690+
amount_subtotal?: number;
2691+
/**
2692+
* Total tax amount of items with same recurrence.
2693+
*/
2694+
amount_tax?: number;
2695+
/**
2696+
* The taxes applied to the price item.
2697+
*/
2698+
tax?: (/* A tax amount associated with a specific tax rate. */ TaxAmount)[];
2699+
}
26712700
export type SalesTax = "nontaxable" | "reduced" | "standard";
26722701
export type SaveIntegrationCredentialsParams = /* The basic auth credentials */ BasicAuthCredentials;
26732702
/**
@@ -2892,6 +2921,10 @@ declare namespace Components {
28922921
*/
28932922
recurrences?: (/* An amount associated with a specific recurrence. */ RecurrenceAmount)[];
28942923
};
2924+
/**
2925+
* The aggregated price items recurrences by tax rate
2926+
*/
2927+
recurrencesByTax?: (/* An amount associated with a specific recurrence. */ RecurrenceAmountWithTax)[];
28952928
}
28962929
/**
28972930
* The availability rule error

clients/pricing-client/src/openapi.json

+56
Original file line numberDiff line numberDiff line change
@@ -3654,6 +3654,51 @@
36543654
"amount_total_decimal"
36553655
]
36563656
},
3657+
"RecurrenceAmountWithTax": {
3658+
"type": "object",
3659+
"description": "An amount associated with a specific recurrence.",
3660+
"properties": {
3661+
"type": {
3662+
"type": "string",
3663+
"description": "The price type."
3664+
},
3665+
"billing_period": {
3666+
"type": "string",
3667+
"description": "The price billing period.",
3668+
"enum": [
3669+
"weekly",
3670+
"monthly",
3671+
"every_quarter",
3672+
"every_6_months",
3673+
"yearly"
3674+
]
3675+
},
3676+
"amount_total": {
3677+
"type": "integer",
3678+
"description": "Total amount of items with same recurrence."
3679+
},
3680+
"amount_subtotal": {
3681+
"type": "integer",
3682+
"description": "Total amount of items with same recurrence, excluding taxes."
3683+
},
3684+
"amount_tax": {
3685+
"type": "integer",
3686+
"description": "Total tax amount of items with same recurrence."
3687+
},
3688+
"tax": {
3689+
"type": "array",
3690+
"description": "The taxes applied to the price item.",
3691+
"readOnly": true,
3692+
"items": {
3693+
"oneOf": [
3694+
{
3695+
"$ref": "#/components/schemas/TaxAmount"
3696+
}
3697+
]
3698+
}
3699+
}
3700+
}
3701+
},
36573702
"TotalDetails": {
36583703
"type": "object",
36593704
"description": "The total details with tax (and discount) aggregated totals.",
@@ -3694,6 +3739,17 @@
36943739
}
36953740
}
36963741
}
3742+
},
3743+
"recurrencesByTax": {
3744+
"type": "array",
3745+
"description": "The aggregated price items recurrences by tax rate",
3746+
"items": {
3747+
"oneOf": [
3748+
{
3749+
"$ref": "#/components/schemas/RecurrenceAmountWithTax"
3750+
}
3751+
]
3752+
}
36973753
}
36983754
}
36993755
},

0 commit comments

Comments
 (0)