@archildata/api-types 0.0.45 → 0.0.46

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.
Files changed (2) hide show
  1. package/index.d.ts +70 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -58,6 +58,26 @@ export interface paths {
58
58
  patch?: never;
59
59
  trace?: never;
60
60
  };
61
+ "/api/billing/default-payment-method": {
62
+ parameters: {
63
+ query?: never;
64
+ header?: never;
65
+ path?: never;
66
+ cookie?: never;
67
+ };
68
+ get?: never;
69
+ /**
70
+ * Set the default method for customer invoices and the current subscription
71
+ * @description Provide a saved method ID or a succeeded SetupIntent ID. The method must belong to the authenticated account's Stripe customer. Existing invoice debt is not paid by this action. Accounts with multiple billable subscriptions require support review.
72
+ */
73
+ put: operations["setBillingDefaultPaymentMethod"];
74
+ post?: never;
75
+ delete?: never;
76
+ options?: never;
77
+ head?: never;
78
+ patch?: never;
79
+ trace?: never;
80
+ };
61
81
  "/api/activity": {
62
82
  parameters: {
63
83
  query?: never;
@@ -862,6 +882,16 @@ export interface components {
862
882
  clientSecret: string;
863
883
  };
864
884
  };
885
+ ApiResponse_BillingDefaultPaymentMethod: {
886
+ success: boolean;
887
+ data: {
888
+ paymentMethodId: string;
889
+ customerDefault: boolean;
890
+ subscriptionDefault: boolean;
891
+ /** @enum {string} */
892
+ scope: "customer" | "customer_and_subscription";
893
+ };
894
+ };
865
895
  ActivityEvent: {
866
896
  accountId: string;
867
897
  /**
@@ -2177,6 +2207,46 @@ export interface operations {
2177
2207
  };
2178
2208
  };
2179
2209
  };
2210
+ setBillingDefaultPaymentMethod: {
2211
+ parameters: {
2212
+ query?: never;
2213
+ header?: never;
2214
+ path?: never;
2215
+ cookie?: never;
2216
+ };
2217
+ requestBody: {
2218
+ content: {
2219
+ "application/json": {
2220
+ methodId?: string;
2221
+ setupIntentId?: string;
2222
+ };
2223
+ };
2224
+ };
2225
+ responses: {
2226
+ /** @description Stripe defaults were fetched again and verified */
2227
+ 200: {
2228
+ headers: {
2229
+ [name: string]: unknown;
2230
+ };
2231
+ content: {
2232
+ "application/json": components["schemas"]["ApiResponse_BillingDefaultPaymentMethod"];
2233
+ };
2234
+ };
2235
+ 400: components["responses"]["ValidationError"];
2236
+ /** @description Missing, invalid, or disallowed credential */
2237
+ 401: {
2238
+ headers: {
2239
+ [name: string]: unknown;
2240
+ };
2241
+ content: {
2242
+ "text/plain": string;
2243
+ };
2244
+ };
2245
+ 404: components["responses"]["NotFound"];
2246
+ 409: components["responses"]["ValidationError"];
2247
+ 502: components["responses"]["InternalError"];
2248
+ };
2249
+ };
2180
2250
  listActivity: {
2181
2251
  parameters: {
2182
2252
  query?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archildata/api-types",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "description": "API types for the Archil control plane",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",