@opusdns/api 0.62.0 → 0.63.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
@@ -900,6 +900,91 @@ export interface paths {
900
900
  patch: operations["update_organization_v1_organizations__organization_id__patch"];
901
901
  trace?: never;
902
902
  };
903
+ "/v1/organizations/{organization_id}/billing/checkout-sessions": {
904
+ parameters: {
905
+ query?: never;
906
+ header?: never;
907
+ path?: never;
908
+ cookie?: never;
909
+ };
910
+ get?: never;
911
+ put?: never;
912
+ /** Get Checkout Session */
913
+ post: operations["get_checkout_session_v1_organizations__organization_id__billing_checkout_sessions_post"];
914
+ delete?: never;
915
+ options?: never;
916
+ head?: never;
917
+ patch?: never;
918
+ trace?: never;
919
+ };
920
+ "/v1/organizations/{organization_id}/billing/payment-methods": {
921
+ parameters: {
922
+ query?: never;
923
+ header?: never;
924
+ path?: never;
925
+ cookie?: never;
926
+ };
927
+ /** List Payment Methods */
928
+ get: operations["list_payment_methods_v1_organizations__organization_id__billing_payment_methods_get"];
929
+ put?: never;
930
+ post?: never;
931
+ delete?: never;
932
+ options?: never;
933
+ head?: never;
934
+ patch?: never;
935
+ trace?: never;
936
+ };
937
+ "/v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}": {
938
+ parameters: {
939
+ query?: never;
940
+ header?: never;
941
+ path?: never;
942
+ cookie?: never;
943
+ };
944
+ get?: never;
945
+ put?: never;
946
+ post?: never;
947
+ /** Delete Payment Method */
948
+ delete: operations["delete_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__delete"];
949
+ options?: never;
950
+ head?: never;
951
+ patch?: never;
952
+ trace?: never;
953
+ };
954
+ "/v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}/default": {
955
+ parameters: {
956
+ query?: never;
957
+ header?: never;
958
+ path?: never;
959
+ cookie?: never;
960
+ };
961
+ get?: never;
962
+ put?: never;
963
+ post?: never;
964
+ delete?: never;
965
+ options?: never;
966
+ head?: never;
967
+ /** Update Default Payment Method */
968
+ patch: operations["update_default_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__default_patch"];
969
+ trace?: never;
970
+ };
971
+ "/v1/organizations/{organization_id}/billing/wallet/credits": {
972
+ parameters: {
973
+ query?: never;
974
+ header?: never;
975
+ path?: never;
976
+ cookie?: never;
977
+ };
978
+ get?: never;
979
+ put?: never;
980
+ /** Credit Wallet */
981
+ post: operations["credit_wallet_v1_organizations__organization_id__billing_wallet_credits_post"];
982
+ delete?: never;
983
+ options?: never;
984
+ head?: never;
985
+ patch?: never;
986
+ trace?: never;
987
+ };
903
988
  "/v1/organizations/{organization_id}/plan": {
904
989
  parameters: {
905
990
  query?: never;
@@ -1278,6 +1363,22 @@ export interface components {
1278
1363
  */
1279
1364
  username?: string | null;
1280
1365
  };
1366
+ /** CheckoutSessionRequest */
1367
+ CheckoutSessionRequest: {
1368
+ /**
1369
+ * Return Url
1370
+ * @description Return URL that will be used
1371
+ */
1372
+ return_url: string;
1373
+ };
1374
+ /** CheckoutSessionResponse */
1375
+ CheckoutSessionResponse: {
1376
+ /**
1377
+ * Session Client Secret
1378
+ * @description Checkout session client secret - meant to be used in the embedded checkout
1379
+ */
1380
+ session_client_secret: string;
1381
+ };
1281
1382
  /** ContactConfigBase */
1282
1383
  ContactConfigBase: {
1283
1384
  /**
@@ -1742,6 +1843,44 @@ export interface components {
1742
1843
  * @enum {string}
1743
1844
  */
1744
1845
  Currency: "USD" | "EUR";
1846
+ /** CustomerCreditCardPaymentMethod */
1847
+ CustomerCreditCardPaymentMethod: {
1848
+ /**
1849
+ * Brand
1850
+ * @description Card brand
1851
+ */
1852
+ brand: string;
1853
+ /**
1854
+ * Country
1855
+ * @description Country code
1856
+ */
1857
+ country?: string | null;
1858
+ /**
1859
+ * Exp Month
1860
+ * @description Expiration month
1861
+ */
1862
+ exp_month: number;
1863
+ /**
1864
+ * Exp Year
1865
+ * @description Expiration year
1866
+ */
1867
+ exp_year: number;
1868
+ /**
1869
+ * Id
1870
+ * @description Payment method ID
1871
+ */
1872
+ id: string;
1873
+ /**
1874
+ * Is Default
1875
+ * @description Whether this is the default payment method
1876
+ */
1877
+ is_default: boolean;
1878
+ /**
1879
+ * Last4
1880
+ * @description Last four digits of the card
1881
+ */
1882
+ last4: string;
1883
+ };
1745
1884
  /**
1746
1885
  * DeletePolicyType
1747
1886
  * @enum {string}
@@ -4318,6 +4457,49 @@ export interface components {
4318
4457
  * @enum {string}
4319
4458
  */
4320
4459
  VerificationType: "api" | "email";
4460
+ /** WalletCreditRequest */
4461
+ WalletCreditRequest: {
4462
+ /**
4463
+ * Amount
4464
+ * @description Amount to credit the customer wallet
4465
+ */
4466
+ amount: number | string;
4467
+ /**
4468
+ * Payment Method Id
4469
+ * @description Payment method ID that should be used
4470
+ */
4471
+ payment_method_id: string;
4472
+ };
4473
+ /**
4474
+ * WalletCreditResponseStatus
4475
+ * @enum {string}
4476
+ */
4477
+ WalletCreditResponseStatus: "success" | "failed";
4478
+ /** WalletCreditResponseWithBalance */
4479
+ WalletCreditResponseWithBalance: {
4480
+ /**
4481
+ * Amount
4482
+ * @description Amount credited to the customer wallet
4483
+ */
4484
+ amount: string;
4485
+ /**
4486
+ * Balance
4487
+ * @description Updated wallet balance after the credit
4488
+ */
4489
+ balance: string;
4490
+ /**
4491
+ * Credit Id
4492
+ * @description Unique identifier of the wallet credit transaction
4493
+ */
4494
+ credit_id: string;
4495
+ /**
4496
+ * Message
4497
+ * @description Optional human-readable message describing the result
4498
+ */
4499
+ message?: string | null;
4500
+ /** @description Status of the credit operation */
4501
+ status: components["schemas"]["WalletCreditResponseStatus"];
4502
+ };
4321
4503
  /** WhoisBase */
4322
4504
  WhoisBase: {
4323
4505
  /**
@@ -7652,6 +7834,169 @@ export interface operations {
7652
7834
  };
7653
7835
  };
7654
7836
  };
7837
+ get_checkout_session_v1_organizations__organization_id__billing_checkout_sessions_post: {
7838
+ parameters: {
7839
+ query?: never;
7840
+ header?: never;
7841
+ path: {
7842
+ organization_id: TypeId<"organization">;
7843
+ };
7844
+ cookie?: never;
7845
+ };
7846
+ requestBody: {
7847
+ content: {
7848
+ "application/json": components["schemas"]["CheckoutSessionRequest"];
7849
+ };
7850
+ };
7851
+ responses: {
7852
+ /** @description Successful Response */
7853
+ 200: {
7854
+ headers: {
7855
+ [name: string]: unknown;
7856
+ };
7857
+ content: {
7858
+ "application/json": components["schemas"]["CheckoutSessionResponse"];
7859
+ };
7860
+ };
7861
+ /** @description Validation Error */
7862
+ 422: {
7863
+ headers: {
7864
+ [name: string]: unknown;
7865
+ };
7866
+ content: {
7867
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
7868
+ };
7869
+ };
7870
+ };
7871
+ };
7872
+ list_payment_methods_v1_organizations__organization_id__billing_payment_methods_get: {
7873
+ parameters: {
7874
+ query?: never;
7875
+ header?: never;
7876
+ path: {
7877
+ organization_id: TypeId<"organization">;
7878
+ };
7879
+ cookie?: never;
7880
+ };
7881
+ requestBody?: never;
7882
+ responses: {
7883
+ /** @description Successful Response */
7884
+ 200: {
7885
+ headers: {
7886
+ [name: string]: unknown;
7887
+ };
7888
+ content: {
7889
+ "application/json": components["schemas"]["CustomerCreditCardPaymentMethod"][];
7890
+ };
7891
+ };
7892
+ /** @description Validation Error */
7893
+ 422: {
7894
+ headers: {
7895
+ [name: string]: unknown;
7896
+ };
7897
+ content: {
7898
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
7899
+ };
7900
+ };
7901
+ };
7902
+ };
7903
+ delete_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__delete: {
7904
+ parameters: {
7905
+ query?: never;
7906
+ header?: never;
7907
+ path: {
7908
+ payment_method_id: string;
7909
+ organization_id: TypeId<"organization">;
7910
+ };
7911
+ cookie?: never;
7912
+ };
7913
+ requestBody?: never;
7914
+ responses: {
7915
+ /** @description Successful Response */
7916
+ 204: {
7917
+ headers: {
7918
+ [name: string]: unknown;
7919
+ };
7920
+ content?: never;
7921
+ };
7922
+ /** @description Validation Error */
7923
+ 422: {
7924
+ headers: {
7925
+ [name: string]: unknown;
7926
+ };
7927
+ content: {
7928
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
7929
+ };
7930
+ };
7931
+ };
7932
+ };
7933
+ update_default_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__default_patch: {
7934
+ parameters: {
7935
+ query?: never;
7936
+ header?: never;
7937
+ path: {
7938
+ payment_method_id: string;
7939
+ organization_id: TypeId<"organization">;
7940
+ };
7941
+ cookie?: never;
7942
+ };
7943
+ requestBody?: never;
7944
+ responses: {
7945
+ /** @description Successful Response */
7946
+ 200: {
7947
+ headers: {
7948
+ [name: string]: unknown;
7949
+ };
7950
+ content: {
7951
+ "application/json": components["schemas"]["CustomerCreditCardPaymentMethod"][];
7952
+ };
7953
+ };
7954
+ /** @description Validation Error */
7955
+ 422: {
7956
+ headers: {
7957
+ [name: string]: unknown;
7958
+ };
7959
+ content: {
7960
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
7961
+ };
7962
+ };
7963
+ };
7964
+ };
7965
+ credit_wallet_v1_organizations__organization_id__billing_wallet_credits_post: {
7966
+ parameters: {
7967
+ query?: never;
7968
+ header?: never;
7969
+ path: {
7970
+ organization_id: TypeId<"organization">;
7971
+ };
7972
+ cookie?: never;
7973
+ };
7974
+ requestBody: {
7975
+ content: {
7976
+ "application/json": components["schemas"]["WalletCreditRequest"];
7977
+ };
7978
+ };
7979
+ responses: {
7980
+ /** @description Successful Response */
7981
+ 200: {
7982
+ headers: {
7983
+ [name: string]: unknown;
7984
+ };
7985
+ content: {
7986
+ "application/json": components["schemas"]["WalletCreditResponseWithBalance"];
7987
+ };
7988
+ };
7989
+ /** @description Validation Error */
7990
+ 422: {
7991
+ headers: {
7992
+ [name: string]: unknown;
7993
+ };
7994
+ content: {
7995
+ "application/problem+json": components["schemas"]["HTTPValidationError"];
7996
+ };
7997
+ };
7998
+ };
7999
+ };
7655
8000
  change_plan_v1_organizations__organization_id__plan_patch: {
7656
8001
  parameters: {
7657
8002
  query?: never;