@opusdns/api 0.33.0 → 0.35.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/src/schema.d.ts CHANGED
@@ -940,23 +940,6 @@ export interface paths {
940
940
  patch: operations["update_organization_v1_organizations__organization_id__patch"];
941
941
  trace?: never;
942
942
  };
943
- "/v1/organizations/{organization_id}/plan": {
944
- parameters: {
945
- query?: never;
946
- header?: never;
947
- path?: never;
948
- cookie?: never;
949
- };
950
- get?: never;
951
- put?: never;
952
- post?: never;
953
- delete?: never;
954
- options?: never;
955
- head?: never;
956
- /** Change Plan */
957
- patch: operations["change_plan_v1_organizations__organization_id__plan_patch"];
958
- trace?: never;
959
- };
960
943
  "/v1/organizations/{organization_id}/plans": {
961
944
  parameters: {
962
945
  query?: never;
@@ -1226,6 +1209,45 @@ export interface components {
1226
1209
  */
1227
1210
  min: number;
1228
1211
  };
1212
+ /** BillingMetadata */
1213
+ BillingMetadata: {
1214
+ /**
1215
+ * Billing Model
1216
+ * @description Payment terms for the organization.
1217
+ */
1218
+ billing_model?: string | null;
1219
+ /**
1220
+ * Customer Number
1221
+ * @description Customer account number for the organization.
1222
+ */
1223
+ customer_number?: number | null;
1224
+ };
1225
+ /** BillingPlan */
1226
+ BillingPlan: {
1227
+ /**
1228
+ * Amount
1229
+ * @description Price of the billing plan.
1230
+ * @default 0.00
1231
+ */
1232
+ amount: string;
1233
+ /** @description Currency of the billing plan. */
1234
+ currency?: components["schemas"]["Currency"] | null;
1235
+ /**
1236
+ * Name
1237
+ * @description Name of the billing plan.
1238
+ */
1239
+ name?: string | null;
1240
+ /**
1241
+ * Plan Id
1242
+ * @description Billing plan ID for the organization.
1243
+ */
1244
+ plan_id?: string | null;
1245
+ /**
1246
+ * Type
1247
+ * @description Plan type or billing interval.
1248
+ */
1249
+ type?: string | null;
1250
+ };
1229
1251
  /**
1230
1252
  * BillingTransactionAction
1231
1253
  * @enum {string}
@@ -3417,8 +3439,11 @@ export interface components {
3417
3439
  */
3418
3440
  tax_rate?: number | string | null;
3419
3441
  };
3420
- /** OrganizationWithPlan */
3421
- OrganizationWithPlan: {
3442
+ /** OrganizationWithBillingData */
3443
+ OrganizationWithBillingData: {
3444
+ /** Account Balance */
3445
+ account_balance?: string | null;
3446
+ active_plan?: components["schemas"]["BillingPlan"];
3422
3447
  /**
3423
3448
  * Address 1
3424
3449
  * @description First line of the organization's address.
@@ -3431,6 +3456,7 @@ export interface components {
3431
3456
  address_2?: string | null;
3432
3457
  /** Attributes */
3433
3458
  attributes?: components["schemas"]["OrganizationAttribute"][];
3459
+ billing_metadata?: components["schemas"]["BillingMetadata"];
3434
3460
  /**
3435
3461
  * Business Number
3436
3462
  * @description Government issued business identifier for the organization issued.
@@ -3480,8 +3506,6 @@ export interface components {
3480
3506
  * @description ID of the parent organization.
3481
3507
  */
3482
3508
  parent_organization_id?: TypeID<"organization"> | null;
3483
- /** @default basic_plan */
3484
- plan: components["schemas"]["PlanRelation"];
3485
3509
  /**
3486
3510
  * Postal Code
3487
3511
  * @description Postal code of the organization's address.
@@ -3614,7 +3638,7 @@ export interface components {
3614
3638
  * Permission
3615
3639
  * @enum {string}
3616
3640
  */
3617
- Permission: "acknowledge" | "bulk_create" | "bulk_delete" | "bulk_renew_expire" | "bulk_transfer_trade" | "bulk_update" | "create" | "delete" | "enterprise" | "has_accepted_tos" | "manage_api_keys" | "manage_billing" | "manage_cms_content" | "manage_contacts" | "manage_dns_zones" | "manage_domains" | "manage_email_forwards" | "manage_opusdns_api_keys" | "manage_products" | "manage_reseller" | "manage_user_relations" | "manage_users" | "plan_manager" | "premium" | "premium_reseller" | "renew_expire" | "starter" | "transfer_trade" | "update" | "verify" | "view" | "view_audit_logs";
3641
+ Permission: "acknowledge" | "bulk_create" | "bulk_delete" | "bulk_renew_expire" | "bulk_transfer_trade" | "bulk_update" | "corporate_plan" | "create" | "delete" | "enterprise_plan" | "has_accepted_tos" | "manage_api_keys" | "manage_billing" | "manage_cms_content" | "manage_contacts" | "manage_dns_zones" | "manage_domains" | "manage_email_forwards" | "manage_opusdns_api_keys" | "manage_products" | "manage_reseller" | "manage_user_relations" | "manage_users" | "plan_manager" | "premium_plan" | "renew_expire" | "starter_plan" | "transfer_trade" | "update" | "verify" | "view" | "view_audit_logs";
3618
3642
  /** PermissionSet */
3619
3643
  PermissionSet: {
3620
3644
  /** Permissions */
@@ -3653,16 +3677,6 @@ export interface components {
3653
3677
  */
3654
3678
  plan_type?: string | null;
3655
3679
  };
3656
- /**
3657
- * PlanRelation
3658
- * @enum {string}
3659
- */
3660
- PlanRelation: "basic_plan" | "enterprise_plan" | "premium_plan" | "starter_plan";
3661
- /** PlanUpdate */
3662
- PlanUpdate: {
3663
- /** @default basic_plan */
3664
- plan: components["schemas"]["PlanRelation"];
3665
- };
3666
3680
  /**
3667
3681
  * PostTransferRequirements
3668
3682
  * @enum {string}
@@ -7929,7 +7943,7 @@ export interface operations {
7929
7943
  [name: string]: unknown;
7930
7944
  };
7931
7945
  content: {
7932
- "application/json": components["schemas"]["OrganizationWithPlan"];
7946
+ "application/json": components["schemas"]["OrganizationWithBillingData"];
7933
7947
  };
7934
7948
  };
7935
7949
  /** @description Validation Error */
@@ -8007,41 +8021,6 @@ export interface operations {
8007
8021
  };
8008
8022
  };
8009
8023
  };
8010
- change_plan_v1_organizations__organization_id__plan_patch: {
8011
- parameters: {
8012
- query?: never;
8013
- header?: never;
8014
- path: {
8015
- organization_id: TypeID<"organization">;
8016
- };
8017
- cookie?: never;
8018
- };
8019
- requestBody: {
8020
- content: {
8021
- "application/json": components["schemas"]["PlanUpdate"];
8022
- };
8023
- };
8024
- responses: {
8025
- /** @description Successful Response */
8026
- 200: {
8027
- headers: {
8028
- [name: string]: unknown;
8029
- };
8030
- content: {
8031
- "application/json": components["schemas"]["OrganizationWithPlan"];
8032
- };
8033
- };
8034
- /** @description Validation Error */
8035
- 422: {
8036
- headers: {
8037
- [name: string]: unknown;
8038
- };
8039
- content: {
8040
- "application/problem+json": components["schemas"]["HTTPValidationError"];
8041
- };
8042
- };
8043
- };
8044
- };
8045
8024
  get_current_available_plans_v1_organizations__organization_id__plans_get: {
8046
8025
  parameters: {
8047
8026
  query?: never;