atmn 2.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +242 -26
- package/dist/index.js +40 -0
- package/package.json +3 -2
- package/src/generated/apiRoutes.ts +164 -14
- package/src/generated/client.ts +1015 -0
- package/src/generated/emit.ts +25 -0
- package/src/generated/licenses.ts +5 -0
- package/src/generated/lintRules.ts +40 -0
- package/src/generated/plans.ts +27 -2
- package/src/generated/skills.ts +11 -11
- package/src/generated/variants.ts +16 -1
|
@@ -1072,6 +1072,30 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
1072
1072
|
},
|
|
1073
1073
|
],
|
|
1074
1074
|
},
|
|
1075
|
+
{
|
|
1076
|
+
group: "billing",
|
|
1077
|
+
method: "advance_test_clock",
|
|
1078
|
+
path: "/v1/billing.advance_test_clock",
|
|
1079
|
+
description:
|
|
1080
|
+
"Advance a customer's Stripe test clock to a future time in milliseconds. Only Stripe test-mode customers with a test clock are supported. Advancement is asynchronous; Stripe enforces clock status and advancement limits.",
|
|
1081
|
+
body: "object",
|
|
1082
|
+
fields: [
|
|
1083
|
+
{
|
|
1084
|
+
name: "customer_id",
|
|
1085
|
+
type: "string",
|
|
1086
|
+
required: true,
|
|
1087
|
+
description:
|
|
1088
|
+
"The ID of the customer whose Stripe test clock to advance.",
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
name: "frozen_time",
|
|
1092
|
+
type: "number",
|
|
1093
|
+
required: true,
|
|
1094
|
+
description:
|
|
1095
|
+
"Target time as a Unix timestamp in milliseconds. Rounded down to whole seconds; must be later than the current clock time.",
|
|
1096
|
+
},
|
|
1097
|
+
],
|
|
1098
|
+
},
|
|
1075
1099
|
{
|
|
1076
1100
|
group: "billing",
|
|
1077
1101
|
method: "create_schedule",
|
|
@@ -1740,6 +1764,13 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
1740
1764
|
description:
|
|
1741
1765
|
"List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code.",
|
|
1742
1766
|
},
|
|
1767
|
+
{
|
|
1768
|
+
name: "custom_line_items",
|
|
1769
|
+
type: "json",
|
|
1770
|
+
required: false,
|
|
1771
|
+
description:
|
|
1772
|
+
"Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription.",
|
|
1773
|
+
},
|
|
1743
1774
|
{
|
|
1744
1775
|
name: "cancel_action",
|
|
1745
1776
|
type: "string",
|
|
@@ -1795,13 +1826,6 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
1795
1826
|
description:
|
|
1796
1827
|
"Total seat quantities (inclusive of the license's included count) per license plan offered by this plan. Licenses not listed keep their current paid quantity.",
|
|
1797
1828
|
},
|
|
1798
|
-
{
|
|
1799
|
-
name: "custom_line_items",
|
|
1800
|
-
type: "json",
|
|
1801
|
-
required: false,
|
|
1802
|
-
description:
|
|
1803
|
-
"Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription.",
|
|
1804
|
-
},
|
|
1805
1829
|
],
|
|
1806
1830
|
},
|
|
1807
1831
|
{
|
|
@@ -1893,6 +1917,13 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
1893
1917
|
description:
|
|
1894
1918
|
"List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code.",
|
|
1895
1919
|
},
|
|
1920
|
+
{
|
|
1921
|
+
name: "custom_line_items",
|
|
1922
|
+
type: "json",
|
|
1923
|
+
required: false,
|
|
1924
|
+
description:
|
|
1925
|
+
"Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription.",
|
|
1926
|
+
},
|
|
1896
1927
|
{
|
|
1897
1928
|
name: "cancel_action",
|
|
1898
1929
|
type: "string",
|
|
@@ -1948,13 +1979,6 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
1948
1979
|
description:
|
|
1949
1980
|
"Total seat quantities (inclusive of the license's included count) per license plan offered by this plan. Licenses not listed keep their current paid quantity.",
|
|
1950
1981
|
},
|
|
1951
|
-
{
|
|
1952
|
-
name: "custom_line_items",
|
|
1953
|
-
type: "json",
|
|
1954
|
-
required: false,
|
|
1955
|
-
description:
|
|
1956
|
-
"Custom line items that replace the auto-generated proration invoice, or bill a standalone invoice when nothing else changes. Only valid on an existing recurring subscription.",
|
|
1957
|
-
},
|
|
1958
1982
|
],
|
|
1959
1983
|
},
|
|
1960
1984
|
{
|
|
@@ -2931,6 +2955,79 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
2931
2955
|
},
|
|
2932
2956
|
],
|
|
2933
2957
|
},
|
|
2958
|
+
{
|
|
2959
|
+
group: "invoices",
|
|
2960
|
+
method: "create",
|
|
2961
|
+
path: "/v1/invoices.create",
|
|
2962
|
+
description:
|
|
2963
|
+
"Creates a standalone send-invoice Stripe invoice from catalog pricing and custom charges. Quantities are billable units, exclusive of any included usage; Autumn applies billing units and tiers. Nothing about the customer's plans, balances or subscriptions changes. Pass preview: true to get the calculated lines and totals without creating an invoice.",
|
|
2964
|
+
body: "object",
|
|
2965
|
+
fields: [
|
|
2966
|
+
{
|
|
2967
|
+
name: "customer_id",
|
|
2968
|
+
type: "string",
|
|
2969
|
+
required: true,
|
|
2970
|
+
description: "The customer to invoice.",
|
|
2971
|
+
},
|
|
2972
|
+
{
|
|
2973
|
+
name: "plans",
|
|
2974
|
+
type: "json",
|
|
2975
|
+
required: false,
|
|
2976
|
+
},
|
|
2977
|
+
{
|
|
2978
|
+
name: "custom_line_items",
|
|
2979
|
+
type: "json",
|
|
2980
|
+
required: false,
|
|
2981
|
+
description: "Charges that are not tied to any plan or feature.",
|
|
2982
|
+
},
|
|
2983
|
+
{
|
|
2984
|
+
name: "discounts",
|
|
2985
|
+
type: "json",
|
|
2986
|
+
required: false,
|
|
2987
|
+
description: "Discounts applied to the whole invoice.",
|
|
2988
|
+
},
|
|
2989
|
+
{
|
|
2990
|
+
name: "invoice_template_id",
|
|
2991
|
+
type: "string",
|
|
2992
|
+
required: false,
|
|
2993
|
+
description:
|
|
2994
|
+
"ID of an invoice template whose footer, memo and default payment terms are applied.",
|
|
2995
|
+
},
|
|
2996
|
+
{
|
|
2997
|
+
name: "net_terms_days",
|
|
2998
|
+
type: "number",
|
|
2999
|
+
required: false,
|
|
3000
|
+
description:
|
|
3001
|
+
"Days until the invoice is due. Defaults to the template's terms, then the org default.",
|
|
3002
|
+
},
|
|
3003
|
+
{
|
|
3004
|
+
name: "tax_rate_id",
|
|
3005
|
+
type: "string",
|
|
3006
|
+
required: false,
|
|
3007
|
+
description: "Stripe tax rate ID (txr_...) applied to every line.",
|
|
3008
|
+
},
|
|
3009
|
+
{
|
|
3010
|
+
name: "period_start",
|
|
3011
|
+
type: "number",
|
|
3012
|
+
required: false,
|
|
3013
|
+
description:
|
|
3014
|
+
"Start of the period being invoiced, in milliseconds. Prorated lines are charged for period_start → period_end against one price interval starting at period_start.",
|
|
3015
|
+
},
|
|
3016
|
+
{
|
|
3017
|
+
name: "period_end",
|
|
3018
|
+
type: "number",
|
|
3019
|
+
required: false,
|
|
3020
|
+
description: "End of the period being invoiced, in milliseconds.",
|
|
3021
|
+
},
|
|
3022
|
+
{
|
|
3023
|
+
name: "preview",
|
|
3024
|
+
type: "boolean",
|
|
3025
|
+
required: false,
|
|
3026
|
+
description:
|
|
3027
|
+
"If true, returns the calculated lines and totals without creating an invoice.",
|
|
3028
|
+
},
|
|
3029
|
+
],
|
|
3030
|
+
},
|
|
2934
3031
|
{
|
|
2935
3032
|
group: "invoices",
|
|
2936
3033
|
method: "insert",
|
|
@@ -3014,6 +3111,59 @@ export const API_ROUTES: readonly ApiRoute[] = [
|
|
|
3014
3111
|
},
|
|
3015
3112
|
],
|
|
3016
3113
|
},
|
|
3114
|
+
{
|
|
3115
|
+
group: "invoices",
|
|
3116
|
+
method: "reissue",
|
|
3117
|
+
path: "/v1/invoices.reissue",
|
|
3118
|
+
description:
|
|
3119
|
+
"Voids an open send-invoice Stripe invoice and issues a replacement with the same line items. An invoice template can supply the replacement's footer (e.g. bank details) and memo. The replacement keeps the original due date unless net_terms_days is passed, which is required once the original is past due. Pass update_customer_email to change the customer's billing email first so the replacement is sent there. The replacement stays linked to the same subscription and fulfils the same pending plan when paid.",
|
|
3120
|
+
body: "object",
|
|
3121
|
+
fields: [
|
|
3122
|
+
{
|
|
3123
|
+
name: "invoice_id",
|
|
3124
|
+
type: "string",
|
|
3125
|
+
required: true,
|
|
3126
|
+
description: "The Autumn invoice ID to void and replace.",
|
|
3127
|
+
},
|
|
3128
|
+
{
|
|
3129
|
+
name: "invoice_template_id",
|
|
3130
|
+
type: "string",
|
|
3131
|
+
required: false,
|
|
3132
|
+
description:
|
|
3133
|
+
"ID of an invoice template (configured in billing settings) whose footer and memo are applied to the replacement invoice.",
|
|
3134
|
+
},
|
|
3135
|
+
{
|
|
3136
|
+
name: "net_terms_days",
|
|
3137
|
+
type: "number",
|
|
3138
|
+
required: false,
|
|
3139
|
+
description:
|
|
3140
|
+
"Number of days the customer has to pay the replacement invoice. Defaults to the original invoice's due date; required when that date has already passed.",
|
|
3141
|
+
},
|
|
3142
|
+
{
|
|
3143
|
+
name: "update_customer_email",
|
|
3144
|
+
type: "string",
|
|
3145
|
+
required: false,
|
|
3146
|
+
description:
|
|
3147
|
+
"Updates the customer's billing email before the replacement is issued, so Stripe sends the new invoice to this address.",
|
|
3148
|
+
},
|
|
3149
|
+
],
|
|
3150
|
+
},
|
|
3151
|
+
{
|
|
3152
|
+
group: "invoices",
|
|
3153
|
+
method: "void",
|
|
3154
|
+
path: "/v1/invoices.void",
|
|
3155
|
+
description:
|
|
3156
|
+
"Voids an open or uncollectible Stripe invoice. Any plan still waiting on the invoice to be paid expires. Voiding an unpaid subscription invoice lets Stripe re-derive the subscription status from its remaining invoices, which can move a past-due subscription back to active. Already-void invoices are returned unchanged.",
|
|
3157
|
+
body: "object",
|
|
3158
|
+
fields: [
|
|
3159
|
+
{
|
|
3160
|
+
name: "invoice_id",
|
|
3161
|
+
type: "string",
|
|
3162
|
+
required: true,
|
|
3163
|
+
description: "The Autumn invoice ID to void.",
|
|
3164
|
+
},
|
|
3165
|
+
],
|
|
3166
|
+
},
|
|
3017
3167
|
{
|
|
3018
3168
|
group: "licenses",
|
|
3019
3169
|
method: "attach",
|