@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/openapi.yaml CHANGED
@@ -204,6 +204,27 @@ components:
204
204
  title: Username
205
205
  title: Body_issue_organization_token_v1_auth_token_post
206
206
  type: object
207
+ CheckoutSessionRequest:
208
+ properties:
209
+ return_url:
210
+ description: Return URL that will be used
211
+ title: Return Url
212
+ type: string
213
+ required:
214
+ - return_url
215
+ title: CheckoutSessionRequest
216
+ type: object
217
+ CheckoutSessionResponse:
218
+ properties:
219
+ session_client_secret:
220
+ description: Checkout session client secret - meant to be used in the embedded
221
+ checkout
222
+ title: Session Client Secret
223
+ type: string
224
+ required:
225
+ - session_client_secret
226
+ title: CheckoutSessionResponse
227
+ type: object
207
228
  ContactConfigBase:
208
229
  properties:
209
230
  max:
@@ -813,6 +834,47 @@ components:
813
834
  - EUR
814
835
  title: Currency
815
836
  type: string
837
+ CustomerCreditCardPaymentMethod:
838
+ properties:
839
+ brand:
840
+ description: Card brand
841
+ title: Brand
842
+ type: string
843
+ country:
844
+ anyOf:
845
+ - type: string
846
+ - type: 'null'
847
+ description: Country code
848
+ title: Country
849
+ exp_month:
850
+ description: Expiration month
851
+ title: Exp Month
852
+ type: integer
853
+ exp_year:
854
+ description: Expiration year
855
+ title: Exp Year
856
+ type: integer
857
+ id:
858
+ description: Payment method ID
859
+ title: Id
860
+ type: string
861
+ is_default:
862
+ description: Whether this is the default payment method
863
+ title: Is Default
864
+ type: boolean
865
+ last4:
866
+ description: Last four digits of the card
867
+ title: Last4
868
+ type: string
869
+ required:
870
+ - id
871
+ - brand
872
+ - last4
873
+ - exp_month
874
+ - exp_year
875
+ - is_default
876
+ title: CustomerCreditCardPaymentMethod
877
+ type: object
816
878
  DeletePolicyType:
817
879
  enum:
818
880
  - immediate
@@ -4905,6 +4967,59 @@ components:
4905
4967
  - email
4906
4968
  title: VerificationType
4907
4969
  type: string
4970
+ WalletCreditRequest:
4971
+ properties:
4972
+ amount:
4973
+ anyOf:
4974
+ - type: number
4975
+ - type: string
4976
+ description: Amount to credit the customer wallet
4977
+ title: Amount
4978
+ payment_method_id:
4979
+ description: Payment method ID that should be used
4980
+ title: Payment Method Id
4981
+ type: string
4982
+ required:
4983
+ - amount
4984
+ - payment_method_id
4985
+ title: WalletCreditRequest
4986
+ type: object
4987
+ WalletCreditResponseStatus:
4988
+ enum:
4989
+ - success
4990
+ - failed
4991
+ title: WalletCreditResponseStatus
4992
+ type: string
4993
+ WalletCreditResponseWithBalance:
4994
+ properties:
4995
+ amount:
4996
+ description: Amount credited to the customer wallet
4997
+ title: Amount
4998
+ type: string
4999
+ balance:
5000
+ description: Updated wallet balance after the credit
5001
+ title: Balance
5002
+ type: string
5003
+ credit_id:
5004
+ description: Unique identifier of the wallet credit transaction
5005
+ title: Credit Id
5006
+ type: string
5007
+ message:
5008
+ anyOf:
5009
+ - type: string
5010
+ - type: 'null'
5011
+ description: Optional human-readable message describing the result
5012
+ title: Message
5013
+ status:
5014
+ $ref: '#/components/schemas/WalletCreditResponseStatus'
5015
+ description: Status of the credit operation
5016
+ required:
5017
+ - credit_id
5018
+ - amount
5019
+ - status
5020
+ - balance
5021
+ title: WalletCreditResponseWithBalance
5022
+ type: object
4908
5023
  WhoisBase:
4909
5024
  properties:
4910
5025
  whois_server:
@@ -5009,7 +5124,7 @@ info:
5009
5124
  '
5010
5125
  summary: OpusDNS - your gateway to a seamless domain management experience.
5011
5126
  title: OpusDNS API
5012
- version: 2025-09-24-153436
5127
+ version: 2025-09-24-162647
5013
5128
  x-logo:
5014
5129
  altText: OpusDNS API Reference
5015
5130
  url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
@@ -8617,6 +8732,204 @@ paths:
8617
8732
  summary: Update Organization
8618
8733
  tags:
8619
8734
  - organization
8735
+ /v1/organizations/{organization_id}/billing/checkout-sessions:
8736
+ post:
8737
+ operationId: get_checkout_session_v1_organizations__organization_id__billing_checkout_sessions_post
8738
+ parameters:
8739
+ - in: path
8740
+ name: organization_id
8741
+ required: true
8742
+ schema:
8743
+ examples:
8744
+ - organization_01h45ytscbebyvny4gc8cr8ma2
8745
+ format: typeid
8746
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8747
+ title: Organization Id
8748
+ type: string
8749
+ x-typeid-prefix: organization
8750
+ requestBody:
8751
+ content:
8752
+ application/json:
8753
+ schema:
8754
+ $ref: '#/components/schemas/CheckoutSessionRequest'
8755
+ required: true
8756
+ responses:
8757
+ '200':
8758
+ content:
8759
+ application/json:
8760
+ schema:
8761
+ $ref: '#/components/schemas/CheckoutSessionResponse'
8762
+ description: Successful Response
8763
+ '422':
8764
+ content:
8765
+ application/problem+json:
8766
+ schema:
8767
+ $ref: '#/components/schemas/HTTPValidationError'
8768
+ description: Validation Error
8769
+ security:
8770
+ - OAuth2PasswordBearer: []
8771
+ summary: Get Checkout Session
8772
+ tags:
8773
+ - organization
8774
+ - organization
8775
+ /v1/organizations/{organization_id}/billing/payment-methods:
8776
+ get:
8777
+ operationId: list_payment_methods_v1_organizations__organization_id__billing_payment_methods_get
8778
+ parameters:
8779
+ - in: path
8780
+ name: organization_id
8781
+ required: true
8782
+ schema:
8783
+ examples:
8784
+ - organization_01h45ytscbebyvny4gc8cr8ma2
8785
+ format: typeid
8786
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8787
+ title: Organization Id
8788
+ type: string
8789
+ x-typeid-prefix: organization
8790
+ responses:
8791
+ '200':
8792
+ content:
8793
+ application/json:
8794
+ schema:
8795
+ items:
8796
+ $ref: '#/components/schemas/CustomerCreditCardPaymentMethod'
8797
+ title: Response List Payment Methods V1 Organizations Organization
8798
+ Id Billing Payment Methods Get
8799
+ type: array
8800
+ description: Successful Response
8801
+ '422':
8802
+ content:
8803
+ application/problem+json:
8804
+ schema:
8805
+ $ref: '#/components/schemas/HTTPValidationError'
8806
+ description: Validation Error
8807
+ security:
8808
+ - OAuth2PasswordBearer: []
8809
+ summary: List Payment Methods
8810
+ tags:
8811
+ - organization
8812
+ - organization
8813
+ /v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}:
8814
+ delete:
8815
+ operationId: delete_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__delete
8816
+ parameters:
8817
+ - in: path
8818
+ name: payment_method_id
8819
+ required: true
8820
+ schema:
8821
+ title: Payment Method Id
8822
+ type: string
8823
+ - in: path
8824
+ name: organization_id
8825
+ required: true
8826
+ schema:
8827
+ examples:
8828
+ - organization_01h45ytscbebyvny4gc8cr8ma2
8829
+ format: typeid
8830
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8831
+ title: Organization Id
8832
+ type: string
8833
+ x-typeid-prefix: organization
8834
+ responses:
8835
+ '204':
8836
+ description: Successful Response
8837
+ '422':
8838
+ content:
8839
+ application/problem+json:
8840
+ schema:
8841
+ $ref: '#/components/schemas/HTTPValidationError'
8842
+ description: Validation Error
8843
+ security:
8844
+ - OAuth2PasswordBearer: []
8845
+ summary: Delete Payment Method
8846
+ tags:
8847
+ - organization
8848
+ - organization
8849
+ /v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}/default:
8850
+ patch:
8851
+ operationId: update_default_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__default_patch
8852
+ parameters:
8853
+ - in: path
8854
+ name: payment_method_id
8855
+ required: true
8856
+ schema:
8857
+ title: Payment Method Id
8858
+ type: string
8859
+ - in: path
8860
+ name: organization_id
8861
+ required: true
8862
+ schema:
8863
+ examples:
8864
+ - organization_01h45ytscbebyvny4gc8cr8ma2
8865
+ format: typeid
8866
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8867
+ title: Organization Id
8868
+ type: string
8869
+ x-typeid-prefix: organization
8870
+ responses:
8871
+ '200':
8872
+ content:
8873
+ application/json:
8874
+ schema:
8875
+ items:
8876
+ $ref: '#/components/schemas/CustomerCreditCardPaymentMethod'
8877
+ title: Response Update Default Payment Method V1 Organizations Organization
8878
+ Id Billing Payment Methods Payment Method Id Default Patch
8879
+ type: array
8880
+ description: Successful Response
8881
+ '422':
8882
+ content:
8883
+ application/problem+json:
8884
+ schema:
8885
+ $ref: '#/components/schemas/HTTPValidationError'
8886
+ description: Validation Error
8887
+ security:
8888
+ - OAuth2PasswordBearer: []
8889
+ summary: Update Default Payment Method
8890
+ tags:
8891
+ - organization
8892
+ - organization
8893
+ /v1/organizations/{organization_id}/billing/wallet/credits:
8894
+ post:
8895
+ operationId: credit_wallet_v1_organizations__organization_id__billing_wallet_credits_post
8896
+ parameters:
8897
+ - in: path
8898
+ name: organization_id
8899
+ required: true
8900
+ schema:
8901
+ examples:
8902
+ - organization_01h45ytscbebyvny4gc8cr8ma2
8903
+ format: typeid
8904
+ pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
8905
+ title: Organization Id
8906
+ type: string
8907
+ x-typeid-prefix: organization
8908
+ requestBody:
8909
+ content:
8910
+ application/json:
8911
+ schema:
8912
+ $ref: '#/components/schemas/WalletCreditRequest'
8913
+ required: true
8914
+ responses:
8915
+ '200':
8916
+ content:
8917
+ application/json:
8918
+ schema:
8919
+ $ref: '#/components/schemas/WalletCreditResponseWithBalance'
8920
+ description: Successful Response
8921
+ '422':
8922
+ content:
8923
+ application/problem+json:
8924
+ schema:
8925
+ $ref: '#/components/schemas/HTTPValidationError'
8926
+ description: Validation Error
8927
+ security:
8928
+ - OAuth2PasswordBearer: []
8929
+ summary: Credit Wallet
8930
+ tags:
8931
+ - organization
8932
+ - organization
8620
8933
  /v1/organizations/{organization_id}/plan:
8621
8934
  patch:
8622
8935
  operationId: change_plan_v1_organizations__organization_id__plan_patch