@cloudfleet/sdk 0.11.4 → 0.12.0
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/@tanstack/react-query.gen.d.ts +44 -20
- package/dist/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/@tanstack/react-query.gen.js +51 -15
- package/dist/@tanstack/react-query.gen.js.map +1 -1
- package/dist/schemas.gen.d.ts +102 -35
- package/dist/schemas.gen.d.ts.map +1 -1
- package/dist/schemas.gen.js +134 -51
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +24 -12
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +29 -13
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +162 -48
- package/dist/types.gen.d.ts.map +1 -1
- package/dist/zod.gen.d.ts +115 -55
- package/dist/zod.gen.d.ts.map +1 -1
- package/dist/zod.gen.js +62 -31
- package/dist/zod.gen.js.map +1 -1
- package/package.json +1 -1
package/dist/schemas.gen.d.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
export declare const BillingContactSchema: {
|
|
2
2
|
readonly type: "object";
|
|
3
3
|
readonly properties: {
|
|
4
|
+
readonly type: {
|
|
5
|
+
readonly type: "string";
|
|
6
|
+
readonly description: "Type of the organization. `business` for legal entities, `personal` for individuals.";
|
|
7
|
+
readonly example: "business";
|
|
8
|
+
readonly enum: readonly ["business", "personal"];
|
|
9
|
+
};
|
|
4
10
|
readonly company: {
|
|
5
11
|
readonly type: "string";
|
|
6
12
|
readonly maxLength: 120;
|
|
@@ -76,7 +82,7 @@ export declare const BillingContactSchema: {
|
|
|
76
82
|
readonly enum: readonly ["ad_nrt", "ae_trn", "al_tin", "am_tin", "ao_tin", "ar_cuit", "at_vat", "au_abn", "au_arn", "ba_tin", "bb_tin", "be_vat", "bg_uic", "bg_vat", "bh_vat", "bo_tin", "br_cnpj", "br_cpf", "bs_tin", "by_tin", "ca_bn", "ca_gst_hst", "ca_pst_bc", "ca_pst_mb", "ca_pst_sk", "ca_qst", "cd_nif", "ch_uid", "ch_vat", "cl_tin", "cn_tin", "co_nit", "cr_tin", "cy_vat", "cz_vat", "de_stn", "de_vat", "dk_vat", "do_rcn", "ec_ruc", "ee_vat", "eg_tin", "es_cif", "es_vat", "eu_oss_vat", "fi_vat", "fr_vat", "gb_vat", "ge_vat", "gn_nif", "gr_vat", "hk_br", "hr_oib", "hr_vat", "hu_tin", "hu_vat", "id_npwp", "ie_vat", "il_vat", "in_gst", "is_vat", "it_vat", "jp_cn", "jp_rn", "jp_trn", "ke_pin", "kh_tin", "kr_brn", "kz_bin", "li_uid", "li_vat", "lt_vat", "lu_vat", "lv_vat", "ma_vat", "md_vat", "me_pib", "mk_vat", "mr_nif", "mt_vat", "mx_rfc", "my_frp", "my_itn", "my_sst", "ng_tin", "nl_vat", "no_vat", "no_voec", "np_pan", "nz_gst", "om_vat", "pe_ruc", "ph_tin", "pl_vat", "pt_vat", "ro_tin", "ro_vat", "rs_pib", "ru_inn", "ru_kpp", "sa_vat", "se_vat", "sg_gst", "sg_uen", "si_tin", "si_vat", "sk_vat", "sn_ninea", "sr_fin", "sv_nit", "th_vat", "tj_tin", "tr_tin", "tw_vat", "tz_vat", "ua_vat", "ug_tin", "us_ein", "uy_ruc", "uz_tin", "uz_vat", "ve_rif", "vn_tin", "xi_vat", "za_vat", "zm_tin", "zw_tin", ""];
|
|
77
83
|
};
|
|
78
84
|
};
|
|
79
|
-
readonly required: readonly ["email", "individual_name"];
|
|
85
|
+
readonly required: readonly ["type", "email", "individual_name"];
|
|
80
86
|
readonly additionalProperties: false;
|
|
81
87
|
};
|
|
82
88
|
export declare const BillingCreditsSchema: {
|
|
@@ -864,6 +870,26 @@ export declare const FleetUpdateInputSchema: {
|
|
|
864
870
|
readonly required: readonly ["scalingProfile"];
|
|
865
871
|
readonly additionalProperties: false;
|
|
866
872
|
};
|
|
873
|
+
export declare const InviteCreateInputSchema: {
|
|
874
|
+
readonly type: "object";
|
|
875
|
+
readonly properties: {
|
|
876
|
+
readonly email: {
|
|
877
|
+
readonly type: "string";
|
|
878
|
+
readonly format: "email";
|
|
879
|
+
readonly description: "Email address of the user to invite.";
|
|
880
|
+
readonly example: "email@example.com";
|
|
881
|
+
};
|
|
882
|
+
readonly role: {
|
|
883
|
+
readonly type: "string";
|
|
884
|
+
readonly description: "Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.";
|
|
885
|
+
readonly default: "User";
|
|
886
|
+
readonly example: "User";
|
|
887
|
+
readonly enum: readonly ["Administrator", "User"];
|
|
888
|
+
};
|
|
889
|
+
};
|
|
890
|
+
readonly required: readonly ["email"];
|
|
891
|
+
readonly additionalProperties: false;
|
|
892
|
+
};
|
|
867
893
|
export declare const InviteSchema: {
|
|
868
894
|
readonly type: "object";
|
|
869
895
|
readonly properties: {
|
|
@@ -895,6 +921,13 @@ export declare const InviteSchema: {
|
|
|
895
921
|
readonly description: "Generated unique invite code.";
|
|
896
922
|
readonly example: "7kUZnH7nnKUFfvc4NK2KQF";
|
|
897
923
|
};
|
|
924
|
+
readonly role: {
|
|
925
|
+
readonly type: "string";
|
|
926
|
+
readonly description: "Role the invited user will be assigned on redemption. Can be 'Administrator' or 'User'.";
|
|
927
|
+
readonly default: "User";
|
|
928
|
+
readonly example: "User";
|
|
929
|
+
readonly enum: readonly ["Administrator", "User"];
|
|
930
|
+
};
|
|
898
931
|
};
|
|
899
932
|
readonly required: readonly ["date_created"];
|
|
900
933
|
readonly additionalProperties: false;
|
|
@@ -1092,6 +1125,12 @@ export declare const MarketplaceListingSchema: {
|
|
|
1092
1125
|
export declare const OrganizationCreateInputSchema: {
|
|
1093
1126
|
readonly type: "object";
|
|
1094
1127
|
readonly properties: {
|
|
1128
|
+
readonly type: {
|
|
1129
|
+
readonly type: "string";
|
|
1130
|
+
readonly description: "Type of the organization. `business` for legal entities, `personal` for individuals.";
|
|
1131
|
+
readonly example: "business";
|
|
1132
|
+
readonly enum: readonly ["business", "personal"];
|
|
1133
|
+
};
|
|
1095
1134
|
readonly email: {
|
|
1096
1135
|
readonly type: "string";
|
|
1097
1136
|
readonly format: "email";
|
|
@@ -1100,11 +1139,13 @@ export declare const OrganizationCreateInputSchema: {
|
|
|
1100
1139
|
};
|
|
1101
1140
|
readonly first_name: {
|
|
1102
1141
|
readonly type: "string";
|
|
1142
|
+
readonly minLength: 1;
|
|
1103
1143
|
readonly description: "First name of the billing contact person.";
|
|
1104
1144
|
readonly example: "John";
|
|
1105
1145
|
};
|
|
1106
1146
|
readonly last_name: {
|
|
1107
1147
|
readonly type: "string";
|
|
1148
|
+
readonly minLength: 1;
|
|
1108
1149
|
readonly description: "Last name of the billing contact person.";
|
|
1109
1150
|
readonly example: "Doe";
|
|
1110
1151
|
};
|
|
@@ -1122,7 +1163,19 @@ export declare const OrganizationCreateInputSchema: {
|
|
|
1122
1163
|
readonly description: "Password for the root account. Must be at least 8 characters long and contain at least one uppercase letter, one lowercase letter, one number and one special character.";
|
|
1123
1164
|
};
|
|
1124
1165
|
};
|
|
1125
|
-
readonly required: readonly ["email", "first_name", "last_name", "company_name", "password"];
|
|
1166
|
+
readonly required: readonly ["type", "email", "first_name", "last_name", "company_name", "password"];
|
|
1167
|
+
readonly additionalProperties: false;
|
|
1168
|
+
};
|
|
1169
|
+
export declare const OrganizationCreateOutputSchema: {
|
|
1170
|
+
readonly type: "object";
|
|
1171
|
+
readonly properties: {
|
|
1172
|
+
readonly id: {
|
|
1173
|
+
readonly type: "string";
|
|
1174
|
+
readonly description: "Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.";
|
|
1175
|
+
readonly example: "organization-id";
|
|
1176
|
+
};
|
|
1177
|
+
};
|
|
1178
|
+
readonly required: readonly ["id"];
|
|
1126
1179
|
readonly additionalProperties: false;
|
|
1127
1180
|
};
|
|
1128
1181
|
export declare const OrganizationSchema: {
|
|
@@ -1141,6 +1194,12 @@ export declare const OrganizationSchema: {
|
|
|
1141
1194
|
readonly description: "Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.";
|
|
1142
1195
|
readonly example: "ACME Corp.";
|
|
1143
1196
|
};
|
|
1197
|
+
readonly type: {
|
|
1198
|
+
readonly type: "string";
|
|
1199
|
+
readonly description: "Type of the organization. `business` for legal entities, `personal` for individuals.";
|
|
1200
|
+
readonly example: "business";
|
|
1201
|
+
readonly enum: readonly ["business", "personal"];
|
|
1202
|
+
};
|
|
1144
1203
|
readonly date_created: {
|
|
1145
1204
|
readonly type: "string";
|
|
1146
1205
|
readonly format: "date-time";
|
|
@@ -1234,8 +1293,14 @@ export declare const OrganizationSchema: {
|
|
|
1234
1293
|
readonly description: "Status of the organization. Can be `active` or `closed`, or `suspended`.";
|
|
1235
1294
|
readonly enum: readonly ["active", "closed", "suspended"];
|
|
1236
1295
|
};
|
|
1296
|
+
readonly verification: {
|
|
1297
|
+
readonly type: "string";
|
|
1298
|
+
readonly description: "Verification status of the organization, which determines the assigned quota. `none` when billing information is incomplete, `submitted` when billing information is complete but the organization is not yet verified, `verified` when the organization is verified.";
|
|
1299
|
+
readonly example: "verified";
|
|
1300
|
+
readonly enum: readonly ["none", "submitted", "verified"];
|
|
1301
|
+
};
|
|
1237
1302
|
};
|
|
1238
|
-
readonly required: readonly ["id", "date_created", "quota", "status"];
|
|
1303
|
+
readonly required: readonly ["id", "type", "date_created", "quota", "status", "verification"];
|
|
1239
1304
|
readonly additionalProperties: false;
|
|
1240
1305
|
};
|
|
1241
1306
|
export declare const PaymentMethodSchema: {
|
|
@@ -1243,26 +1308,19 @@ export declare const PaymentMethodSchema: {
|
|
|
1243
1308
|
readonly properties: {
|
|
1244
1309
|
readonly id: {
|
|
1245
1310
|
readonly type: "string";
|
|
1246
|
-
readonly
|
|
1247
|
-
readonly
|
|
1248
|
-
readonly example: "e94d30ec-a2dd-4dcb-832c-ac2be144ba91";
|
|
1249
|
-
};
|
|
1250
|
-
readonly setup: {
|
|
1251
|
-
readonly type: "boolean";
|
|
1252
|
-
readonly description: "Whether organization payment method was set up and ready to use for payments.";
|
|
1253
|
-
readonly example: true;
|
|
1311
|
+
readonly description: "Payment method identifier. Stripe payment method id for cards/SEPA; the constant `bank_transfer` for the invoice/bank-transfer method. Used to set as default or delete the payment method.";
|
|
1312
|
+
readonly example: "pm_1MtwBwLkdIwHu7ix28a3tqPa";
|
|
1254
1313
|
};
|
|
1255
1314
|
readonly type: {
|
|
1256
1315
|
readonly type: "string";
|
|
1257
|
-
readonly
|
|
1258
|
-
readonly description: "Payment method type type. Only `card` payments supported at the moment.";
|
|
1316
|
+
readonly description: "Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.";
|
|
1259
1317
|
readonly example: "card";
|
|
1260
|
-
readonly enum: readonly ["card"];
|
|
1318
|
+
readonly enum: readonly ["card", "sepa_debit", "bank_transfer"];
|
|
1261
1319
|
};
|
|
1262
1320
|
readonly last4: {
|
|
1263
1321
|
readonly type: "string";
|
|
1264
1322
|
readonly nullable: true;
|
|
1265
|
-
readonly description: "Last 4 digits of the payment card number.";
|
|
1323
|
+
readonly description: "Last 4 digits of the payment card number, of the bank account (IBAN) for SEPA Direct Debit, or of the destination IBAN for bank transfer.";
|
|
1266
1324
|
readonly example: "4242";
|
|
1267
1325
|
};
|
|
1268
1326
|
readonly exp_month: {
|
|
@@ -1270,25 +1328,46 @@ export declare const PaymentMethodSchema: {
|
|
|
1270
1328
|
readonly minimum: 1;
|
|
1271
1329
|
readonly maximum: 12;
|
|
1272
1330
|
readonly nullable: true;
|
|
1273
|
-
readonly description: "Two-digit number representing the card's expiration month.";
|
|
1274
|
-
readonly example:
|
|
1331
|
+
readonly description: "Two-digit number representing the card's expiration month. Null for SEPA Direct Debit and bank transfer.";
|
|
1332
|
+
readonly example: 12;
|
|
1275
1333
|
};
|
|
1276
1334
|
readonly exp_year: {
|
|
1277
1335
|
readonly type: "integer";
|
|
1278
|
-
readonly minimum: 2024;
|
|
1279
1336
|
readonly nullable: true;
|
|
1280
|
-
readonly description: "Four-digit number representing the card's expiration year.";
|
|
1281
|
-
readonly example:
|
|
1337
|
+
readonly description: "Four-digit number representing the card's expiration year. May be in the past for an expired card still on file. Null for SEPA Direct Debit and bank transfer.";
|
|
1338
|
+
readonly example: 2028;
|
|
1282
1339
|
};
|
|
1283
1340
|
readonly brand: {
|
|
1284
1341
|
readonly type: "string";
|
|
1285
1342
|
readonly nullable: true;
|
|
1286
|
-
readonly description: "Payment card brand
|
|
1343
|
+
readonly description: "Payment card brand as reported by Stripe, e.g. `visa`, `mastercard`, `amex`, `cartes_bancaires`, or `unknown`. Null for SEPA Direct Debit and bank transfer.";
|
|
1287
1344
|
readonly example: "visa";
|
|
1288
|
-
|
|
1345
|
+
};
|
|
1346
|
+
readonly iban: {
|
|
1347
|
+
readonly type: "string";
|
|
1348
|
+
readonly nullable: true;
|
|
1349
|
+
readonly description: "Full destination IBAN to send bank transfers to. Set only for `bank_transfer`; null otherwise. This is Cloudfleet's virtual receiving account, shown in full so the customer can pay into it.";
|
|
1350
|
+
readonly example: "DE11243015658023127510";
|
|
1351
|
+
};
|
|
1352
|
+
readonly bic: {
|
|
1353
|
+
readonly type: "string";
|
|
1354
|
+
readonly nullable: true;
|
|
1355
|
+
readonly description: "BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.";
|
|
1356
|
+
readonly example: "SOGEDEFFXXX";
|
|
1357
|
+
};
|
|
1358
|
+
readonly account_holder_name: {
|
|
1359
|
+
readonly type: "string";
|
|
1360
|
+
readonly nullable: true;
|
|
1361
|
+
readonly description: "Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.";
|
|
1362
|
+
readonly example: "Cloudfleet GmbH";
|
|
1363
|
+
};
|
|
1364
|
+
readonly is_default: {
|
|
1365
|
+
readonly type: "boolean";
|
|
1366
|
+
readonly description: "Whether this payment method is the default used for invoices and active subscriptions. Always false for `bank_transfer` (it cannot be a Stripe default payment method).";
|
|
1367
|
+
readonly example: true;
|
|
1289
1368
|
};
|
|
1290
1369
|
};
|
|
1291
|
-
readonly required: readonly ["id", "
|
|
1370
|
+
readonly required: readonly ["id", "type", "last4", "exp_month", "exp_year", "brand", "iban", "bic", "account_holder_name", "is_default"];
|
|
1292
1371
|
readonly additionalProperties: false;
|
|
1293
1372
|
};
|
|
1294
1373
|
export declare const PlatformQuotaSchema: {
|
|
@@ -2250,18 +2329,6 @@ export declare const UserCreateInputSchema: {
|
|
|
2250
2329
|
readonly minLength: 8;
|
|
2251
2330
|
readonly description: "User password. Must be at least 8 characters long.";
|
|
2252
2331
|
};
|
|
2253
|
-
readonly status: {
|
|
2254
|
-
readonly type: "string";
|
|
2255
|
-
readonly description: "Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.";
|
|
2256
|
-
readonly example: "active";
|
|
2257
|
-
readonly enum: readonly ["active", "inactive"];
|
|
2258
|
-
};
|
|
2259
|
-
readonly role: {
|
|
2260
|
-
readonly type: "string";
|
|
2261
|
-
readonly description: "User role. Can be 'Administrator', 'User'.";
|
|
2262
|
-
readonly example: "User";
|
|
2263
|
-
readonly enum: readonly ["Administrator", "User"];
|
|
2264
|
-
};
|
|
2265
2332
|
};
|
|
2266
2333
|
readonly required: readonly ["email", "first_name", "last_name", "code", "password"];
|
|
2267
2334
|
readonly additionalProperties: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.gen.d.ts","sourceRoot":"","sources":["../src/schemas.gen.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"schemas.gen.d.ts","sourceRoot":"","sources":["../src/schemas.gen.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8NvB,CAAC;AAEX,eAAO,MAAM,oB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;;;;;;;;;;;;;CAsBzB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;CA0BpB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuFtB,CAAC;AAEX,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Cd,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CxB,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgEb,CAAC;AAEX,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CxB,CAAC"}
|
package/dist/schemas.gen.js
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
export const BillingContactSchema = {
|
|
3
3
|
type: 'object',
|
|
4
4
|
properties: {
|
|
5
|
+
type: {
|
|
6
|
+
type: 'string',
|
|
7
|
+
description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
|
|
8
|
+
example: 'business',
|
|
9
|
+
enum: [
|
|
10
|
+
'business',
|
|
11
|
+
'personal'
|
|
12
|
+
]
|
|
13
|
+
},
|
|
5
14
|
company: {
|
|
6
15
|
type: 'string',
|
|
7
16
|
maxLength: 120,
|
|
@@ -207,6 +216,7 @@ export const BillingContactSchema = {
|
|
|
207
216
|
}
|
|
208
217
|
},
|
|
209
218
|
required: [
|
|
219
|
+
'type',
|
|
210
220
|
'email',
|
|
211
221
|
'individual_name'
|
|
212
222
|
],
|
|
@@ -1843,6 +1853,31 @@ export const FleetUpdateInputSchema = {
|
|
|
1843
1853
|
],
|
|
1844
1854
|
additionalProperties: false
|
|
1845
1855
|
};
|
|
1856
|
+
export const InviteCreateInputSchema = {
|
|
1857
|
+
type: 'object',
|
|
1858
|
+
properties: {
|
|
1859
|
+
email: {
|
|
1860
|
+
type: 'string',
|
|
1861
|
+
format: 'email',
|
|
1862
|
+
description: 'Email address of the user to invite.',
|
|
1863
|
+
example: 'email@example.com'
|
|
1864
|
+
},
|
|
1865
|
+
role: {
|
|
1866
|
+
type: 'string',
|
|
1867
|
+
description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
|
|
1868
|
+
default: 'User',
|
|
1869
|
+
example: 'User',
|
|
1870
|
+
enum: [
|
|
1871
|
+
'Administrator',
|
|
1872
|
+
'User'
|
|
1873
|
+
]
|
|
1874
|
+
}
|
|
1875
|
+
},
|
|
1876
|
+
required: [
|
|
1877
|
+
'email'
|
|
1878
|
+
],
|
|
1879
|
+
additionalProperties: false
|
|
1880
|
+
};
|
|
1846
1881
|
export const InviteSchema = {
|
|
1847
1882
|
type: 'object',
|
|
1848
1883
|
properties: {
|
|
@@ -1873,6 +1908,16 @@ export const InviteSchema = {
|
|
|
1873
1908
|
type: 'string',
|
|
1874
1909
|
description: 'Generated unique invite code.',
|
|
1875
1910
|
example: '7kUZnH7nnKUFfvc4NK2KQF'
|
|
1911
|
+
},
|
|
1912
|
+
role: {
|
|
1913
|
+
type: 'string',
|
|
1914
|
+
description: 'Role the invited user will be assigned on redemption. Can be \'Administrator\' or \'User\'.',
|
|
1915
|
+
default: 'User',
|
|
1916
|
+
example: 'User',
|
|
1917
|
+
enum: [
|
|
1918
|
+
'Administrator',
|
|
1919
|
+
'User'
|
|
1920
|
+
]
|
|
1876
1921
|
}
|
|
1877
1922
|
},
|
|
1878
1923
|
required: [
|
|
@@ -2093,6 +2138,15 @@ export const MarketplaceListingSchema = {
|
|
|
2093
2138
|
export const OrganizationCreateInputSchema = {
|
|
2094
2139
|
type: 'object',
|
|
2095
2140
|
properties: {
|
|
2141
|
+
type: {
|
|
2142
|
+
type: 'string',
|
|
2143
|
+
description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
|
|
2144
|
+
example: 'business',
|
|
2145
|
+
enum: [
|
|
2146
|
+
'business',
|
|
2147
|
+
'personal'
|
|
2148
|
+
]
|
|
2149
|
+
},
|
|
2096
2150
|
email: {
|
|
2097
2151
|
type: 'string',
|
|
2098
2152
|
format: 'email',
|
|
@@ -2101,11 +2155,13 @@ export const OrganizationCreateInputSchema = {
|
|
|
2101
2155
|
},
|
|
2102
2156
|
first_name: {
|
|
2103
2157
|
type: 'string',
|
|
2158
|
+
minLength: 1,
|
|
2104
2159
|
description: 'First name of the billing contact person.',
|
|
2105
2160
|
example: 'John'
|
|
2106
2161
|
},
|
|
2107
2162
|
last_name: {
|
|
2108
2163
|
type: 'string',
|
|
2164
|
+
minLength: 1,
|
|
2109
2165
|
description: 'Last name of the billing contact person.',
|
|
2110
2166
|
example: 'Doe'
|
|
2111
2167
|
},
|
|
@@ -2124,6 +2180,7 @@ export const OrganizationCreateInputSchema = {
|
|
|
2124
2180
|
}
|
|
2125
2181
|
},
|
|
2126
2182
|
required: [
|
|
2183
|
+
'type',
|
|
2127
2184
|
'email',
|
|
2128
2185
|
'first_name',
|
|
2129
2186
|
'last_name',
|
|
@@ -2132,6 +2189,20 @@ export const OrganizationCreateInputSchema = {
|
|
|
2132
2189
|
],
|
|
2133
2190
|
additionalProperties: false
|
|
2134
2191
|
};
|
|
2192
|
+
export const OrganizationCreateOutputSchema = {
|
|
2193
|
+
type: 'object',
|
|
2194
|
+
properties: {
|
|
2195
|
+
id: {
|
|
2196
|
+
type: 'string',
|
|
2197
|
+
description: 'Unique identifier of the newly created organization. Generated by the API and safe to use for client-side tracking immediately.',
|
|
2198
|
+
example: 'organization-id'
|
|
2199
|
+
}
|
|
2200
|
+
},
|
|
2201
|
+
required: [
|
|
2202
|
+
'id'
|
|
2203
|
+
],
|
|
2204
|
+
additionalProperties: false
|
|
2205
|
+
};
|
|
2135
2206
|
export const OrganizationSchema = {
|
|
2136
2207
|
type: 'object',
|
|
2137
2208
|
properties: {
|
|
@@ -2148,6 +2219,15 @@ export const OrganizationSchema = {
|
|
|
2148
2219
|
description: 'Name of the legal entity. This name will be used in invoices. Use your first and last name for individual accounts.',
|
|
2149
2220
|
example: 'ACME Corp.'
|
|
2150
2221
|
},
|
|
2222
|
+
type: {
|
|
2223
|
+
type: 'string',
|
|
2224
|
+
description: 'Type of the organization. `business` for legal entities, `personal` for individuals.',
|
|
2225
|
+
example: 'business',
|
|
2226
|
+
enum: [
|
|
2227
|
+
'business',
|
|
2228
|
+
'personal'
|
|
2229
|
+
]
|
|
2230
|
+
},
|
|
2151
2231
|
date_created: {
|
|
2152
2232
|
type: 'string',
|
|
2153
2233
|
format: 'date-time',
|
|
@@ -2257,13 +2337,25 @@ export const OrganizationSchema = {
|
|
|
2257
2337
|
'closed',
|
|
2258
2338
|
'suspended'
|
|
2259
2339
|
]
|
|
2340
|
+
},
|
|
2341
|
+
verification: {
|
|
2342
|
+
type: 'string',
|
|
2343
|
+
description: 'Verification status of the organization, which determines the assigned quota. `none` when billing information is incomplete, `submitted` when billing information is complete but the organization is not yet verified, `verified` when the organization is verified.',
|
|
2344
|
+
example: 'verified',
|
|
2345
|
+
enum: [
|
|
2346
|
+
'none',
|
|
2347
|
+
'submitted',
|
|
2348
|
+
'verified'
|
|
2349
|
+
]
|
|
2260
2350
|
}
|
|
2261
2351
|
},
|
|
2262
2352
|
required: [
|
|
2263
2353
|
'id',
|
|
2354
|
+
'type',
|
|
2264
2355
|
'date_created',
|
|
2265
2356
|
'quota',
|
|
2266
|
-
'status'
|
|
2357
|
+
'status',
|
|
2358
|
+
'verification'
|
|
2267
2359
|
],
|
|
2268
2360
|
additionalProperties: false
|
|
2269
2361
|
};
|
|
@@ -2272,28 +2364,23 @@ export const PaymentMethodSchema = {
|
|
|
2272
2364
|
properties: {
|
|
2273
2365
|
id: {
|
|
2274
2366
|
type: 'string',
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
example: 'e94d30ec-a2dd-4dcb-832c-ac2be144ba91'
|
|
2278
|
-
},
|
|
2279
|
-
setup: {
|
|
2280
|
-
type: 'boolean',
|
|
2281
|
-
description: 'Whether organization payment method was set up and ready to use for payments.',
|
|
2282
|
-
example: true
|
|
2367
|
+
description: 'Payment method identifier. Stripe payment method id for cards/SEPA; the constant `bank_transfer` for the invoice/bank-transfer method. Used to set as default or delete the payment method.',
|
|
2368
|
+
example: 'pm_1MtwBwLkdIwHu7ix28a3tqPa'
|
|
2283
2369
|
},
|
|
2284
2370
|
type: {
|
|
2285
2371
|
type: 'string',
|
|
2286
|
-
|
|
2287
|
-
description: 'Payment method type type. Only `card` payments supported at the moment.',
|
|
2372
|
+
description: 'Payment method type. `card`, `sepa_debit` for SEPA Direct Debit (business accounts only), or `bank_transfer` for paying invoices by bank transfer.',
|
|
2288
2373
|
example: 'card',
|
|
2289
2374
|
enum: [
|
|
2290
|
-
'card'
|
|
2375
|
+
'card',
|
|
2376
|
+
'sepa_debit',
|
|
2377
|
+
'bank_transfer'
|
|
2291
2378
|
]
|
|
2292
2379
|
},
|
|
2293
2380
|
last4: {
|
|
2294
2381
|
type: 'string',
|
|
2295
2382
|
nullable: true,
|
|
2296
|
-
description: 'Last 4 digits of the payment card number.',
|
|
2383
|
+
description: 'Last 4 digits of the payment card number, of the bank account (IBAN) for SEPA Direct Debit, or of the destination IBAN for bank transfer.',
|
|
2297
2384
|
example: '4242'
|
|
2298
2385
|
},
|
|
2299
2386
|
exp_month: {
|
|
@@ -2301,42 +2388,56 @@ export const PaymentMethodSchema = {
|
|
|
2301
2388
|
minimum: 1,
|
|
2302
2389
|
maximum: 12,
|
|
2303
2390
|
nullable: true,
|
|
2304
|
-
description: 'Two-digit number representing the card\'s expiration month.',
|
|
2305
|
-
example:
|
|
2391
|
+
description: 'Two-digit number representing the card\'s expiration month. Null for SEPA Direct Debit and bank transfer.',
|
|
2392
|
+
example: 12
|
|
2306
2393
|
},
|
|
2307
2394
|
exp_year: {
|
|
2308
2395
|
type: 'integer',
|
|
2309
|
-
minimum: 2024,
|
|
2310
2396
|
nullable: true,
|
|
2311
|
-
description: 'Four-digit number representing the card\'s expiration year.',
|
|
2312
|
-
example:
|
|
2397
|
+
description: 'Four-digit number representing the card\'s expiration year. May be in the past for an expired card still on file. Null for SEPA Direct Debit and bank transfer.',
|
|
2398
|
+
example: 2028
|
|
2313
2399
|
},
|
|
2314
2400
|
brand: {
|
|
2315
2401
|
type: 'string',
|
|
2316
2402
|
nullable: true,
|
|
2317
|
-
description: 'Payment card brand
|
|
2318
|
-
example: 'visa'
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2403
|
+
description: 'Payment card brand as reported by Stripe, e.g. `visa`, `mastercard`, `amex`, `cartes_bancaires`, or `unknown`. Null for SEPA Direct Debit and bank transfer.',
|
|
2404
|
+
example: 'visa'
|
|
2405
|
+
},
|
|
2406
|
+
iban: {
|
|
2407
|
+
type: 'string',
|
|
2408
|
+
nullable: true,
|
|
2409
|
+
description: 'Full destination IBAN to send bank transfers to. Set only for `bank_transfer`; null otherwise. This is Cloudfleet\'s virtual receiving account, shown in full so the customer can pay into it.',
|
|
2410
|
+
example: 'DE11243015658023127510'
|
|
2411
|
+
},
|
|
2412
|
+
bic: {
|
|
2413
|
+
type: 'string',
|
|
2414
|
+
nullable: true,
|
|
2415
|
+
description: 'BIC/SWIFT of the destination bank for bank transfers. Set only for `bank_transfer`; null otherwise.',
|
|
2416
|
+
example: 'SOGEDEFFXXX'
|
|
2417
|
+
},
|
|
2418
|
+
account_holder_name: {
|
|
2419
|
+
type: 'string',
|
|
2420
|
+
nullable: true,
|
|
2421
|
+
description: 'Account holder name of the destination bank account for bank transfers. Set only for `bank_transfer`; null otherwise.',
|
|
2422
|
+
example: 'Cloudfleet GmbH'
|
|
2423
|
+
},
|
|
2424
|
+
is_default: {
|
|
2425
|
+
type: 'boolean',
|
|
2426
|
+
description: 'Whether this payment method is the default used for invoices and active subscriptions. Always false for `bank_transfer` (it cannot be a Stripe default payment method).',
|
|
2427
|
+
example: true
|
|
2330
2428
|
}
|
|
2331
2429
|
},
|
|
2332
2430
|
required: [
|
|
2333
2431
|
'id',
|
|
2334
|
-
'setup',
|
|
2335
2432
|
'type',
|
|
2336
2433
|
'last4',
|
|
2337
2434
|
'exp_month',
|
|
2338
2435
|
'exp_year',
|
|
2339
|
-
'brand'
|
|
2436
|
+
'brand',
|
|
2437
|
+
'iban',
|
|
2438
|
+
'bic',
|
|
2439
|
+
'account_holder_name',
|
|
2440
|
+
'is_default'
|
|
2340
2441
|
],
|
|
2341
2442
|
additionalProperties: false
|
|
2342
2443
|
};
|
|
@@ -3473,24 +3574,6 @@ export const UserCreateInputSchema = {
|
|
|
3473
3574
|
type: 'string',
|
|
3474
3575
|
minLength: 8,
|
|
3475
3576
|
description: 'User password. Must be at least 8 characters long.'
|
|
3476
|
-
},
|
|
3477
|
-
status: {
|
|
3478
|
-
type: 'string',
|
|
3479
|
-
description: 'Status of the user. Can be `active` or `inactive`. Inactive users cannot log in or manage organization resources.',
|
|
3480
|
-
example: 'active',
|
|
3481
|
-
enum: [
|
|
3482
|
-
'active',
|
|
3483
|
-
'inactive'
|
|
3484
|
-
]
|
|
3485
|
-
},
|
|
3486
|
-
role: {
|
|
3487
|
-
type: 'string',
|
|
3488
|
-
description: 'User role. Can be \'Administrator\', \'User\'.',
|
|
3489
|
-
example: 'User',
|
|
3490
|
-
enum: [
|
|
3491
|
-
'Administrator',
|
|
3492
|
-
'User'
|
|
3493
|
-
]
|
|
3494
3577
|
}
|
|
3495
3578
|
},
|
|
3496
3579
|
required: [
|