@opusdns/api 0.62.0 → 0.64.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/package.json +1 -1
- package/src/helpers/constants.ts +51 -57
- package/src/helpers/keys.ts +605 -50
- package/src/helpers/requests.d.ts +220 -2
- package/src/helpers/responses.d.ts +259 -2
- package/src/helpers/schemas-arrays.d.ts +15 -1
- package/src/helpers/schemas.d.ts +108 -28
- package/src/openapi.yaml +325 -18
- package/src/schema.d.ts +354 -11
package/src/helpers/schemas.d.ts
CHANGED
|
@@ -202,6 +202,38 @@ export type BillingTransactionStatus = components['schemas']['BillingTransaction
|
|
|
202
202
|
* @see {@link components} - The OpenAPI components schema definition
|
|
203
203
|
*/
|
|
204
204
|
export type Body_issue_organization_token_v1_auth_token_post = components['schemas']['Body_issue_organization_token_v1_auth_token_post'];
|
|
205
|
+
/**
|
|
206
|
+
* CheckoutSessionRequest
|
|
207
|
+
*
|
|
208
|
+
* @remarks
|
|
209
|
+
* Type alias for the `CheckoutSessionRequest` OpenAPI schema.
|
|
210
|
+
* This type represents checkoutsessionrequest data structures used in API requests and responses.
|
|
211
|
+
*
|
|
212
|
+
* @example
|
|
213
|
+
* ```typescript
|
|
214
|
+
* const response = await api.getCheckoutSessionRequest();
|
|
215
|
+
* const item: CheckoutSessionRequest = response.results;
|
|
216
|
+
* ```
|
|
217
|
+
*
|
|
218
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
219
|
+
*/
|
|
220
|
+
export type CheckoutSessionRequest = components['schemas']['CheckoutSessionRequest'];
|
|
221
|
+
/**
|
|
222
|
+
* CheckoutSessionResponse
|
|
223
|
+
*
|
|
224
|
+
* @remarks
|
|
225
|
+
* Type alias for the `CheckoutSessionResponse` OpenAPI schema.
|
|
226
|
+
* This type represents checkoutsessionresponse data structures used in API requests and responses.
|
|
227
|
+
*
|
|
228
|
+
* @example
|
|
229
|
+
* ```typescript
|
|
230
|
+
* const response = await api.getCheckoutSession();
|
|
231
|
+
* const item: CheckoutSession = response.results;
|
|
232
|
+
* ```
|
|
233
|
+
*
|
|
234
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
235
|
+
*/
|
|
236
|
+
export type CheckoutSession = components['schemas']['CheckoutSessionResponse'];
|
|
205
237
|
/**
|
|
206
238
|
* ContactConfigBase
|
|
207
239
|
*
|
|
@@ -410,6 +442,22 @@ export type ContactsBase = components['schemas']['ContactsBase'];
|
|
|
410
442
|
* @see {@link components} - The OpenAPI components schema definition
|
|
411
443
|
*/
|
|
412
444
|
export type Currency = components['schemas']['Currency'];
|
|
445
|
+
/**
|
|
446
|
+
* CustomerCreditCardPaymentMethod
|
|
447
|
+
*
|
|
448
|
+
* @remarks
|
|
449
|
+
* Type alias for the `CustomerCreditCardPaymentMethod` OpenAPI schema.
|
|
450
|
+
* This type represents customercreditcardpaymentmethod data structures used in API requests and responses.
|
|
451
|
+
*
|
|
452
|
+
* @example
|
|
453
|
+
* ```typescript
|
|
454
|
+
* const response = await api.getCustomerCreditCardPaymentMethod();
|
|
455
|
+
* const item: CustomerCreditCardPaymentMethod = response.results;
|
|
456
|
+
* ```
|
|
457
|
+
*
|
|
458
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
459
|
+
*/
|
|
460
|
+
export type CustomerCreditCardPaymentMethod = components['schemas']['CustomerCreditCardPaymentMethod'];
|
|
413
461
|
/**
|
|
414
462
|
* DeletePolicyType
|
|
415
463
|
*
|
|
@@ -2208,53 +2256,37 @@ export type Permission = components['schemas']['Permission'];
|
|
|
2208
2256
|
*/
|
|
2209
2257
|
export type PermissionSet = components['schemas']['PermissionSet'];
|
|
2210
2258
|
/**
|
|
2211
|
-
*
|
|
2212
|
-
*
|
|
2213
|
-
* @remarks
|
|
2214
|
-
* Type alias for the `PlanInfo` OpenAPI schema.
|
|
2215
|
-
* This type represents planinfo data structures used in API requests and responses.
|
|
2216
|
-
*
|
|
2217
|
-
* @example
|
|
2218
|
-
* ```typescript
|
|
2219
|
-
* const response = await api.getPlanInfo();
|
|
2220
|
-
* const item: PlanInfo = response.results;
|
|
2221
|
-
* ```
|
|
2222
|
-
*
|
|
2223
|
-
* @see {@link components} - The OpenAPI components schema definition
|
|
2224
|
-
*/
|
|
2225
|
-
export type PlanInfo = components['schemas']['PlanInfo'];
|
|
2226
|
-
/**
|
|
2227
|
-
* PlanRelation
|
|
2259
|
+
* PlanIdRequest
|
|
2228
2260
|
*
|
|
2229
2261
|
* @remarks
|
|
2230
|
-
* Type alias for the `
|
|
2231
|
-
* This type represents
|
|
2262
|
+
* Type alias for the `PlanIdRequest` OpenAPI schema.
|
|
2263
|
+
* This type represents planidrequest data structures used in API requests and responses.
|
|
2232
2264
|
*
|
|
2233
2265
|
* @example
|
|
2234
2266
|
* ```typescript
|
|
2235
|
-
* const response = await api.
|
|
2236
|
-
* const item:
|
|
2267
|
+
* const response = await api.getPlanIdRequest();
|
|
2268
|
+
* const item: PlanIdRequest = response.results;
|
|
2237
2269
|
* ```
|
|
2238
2270
|
*
|
|
2239
2271
|
* @see {@link components} - The OpenAPI components schema definition
|
|
2240
2272
|
*/
|
|
2241
|
-
export type
|
|
2273
|
+
export type PlanIdRequest = components['schemas']['PlanIdRequest'];
|
|
2242
2274
|
/**
|
|
2243
|
-
*
|
|
2275
|
+
* PlanInfo
|
|
2244
2276
|
*
|
|
2245
2277
|
* @remarks
|
|
2246
|
-
* Type alias for the `
|
|
2247
|
-
* This type represents
|
|
2278
|
+
* Type alias for the `PlanInfo` OpenAPI schema.
|
|
2279
|
+
* This type represents planinfo data structures used in API requests and responses.
|
|
2248
2280
|
*
|
|
2249
2281
|
* @example
|
|
2250
2282
|
* ```typescript
|
|
2251
|
-
* const response = await api.
|
|
2252
|
-
* const item:
|
|
2283
|
+
* const response = await api.getPlanInfo();
|
|
2284
|
+
* const item: PlanInfo = response.results;
|
|
2253
2285
|
* ```
|
|
2254
2286
|
*
|
|
2255
2287
|
* @see {@link components} - The OpenAPI components schema definition
|
|
2256
2288
|
*/
|
|
2257
|
-
export type
|
|
2289
|
+
export type PlanInfo = components['schemas']['PlanInfo'];
|
|
2258
2290
|
/**
|
|
2259
2291
|
* PostTransferRequirements
|
|
2260
2292
|
*
|
|
@@ -2927,6 +2959,54 @@ export type ValidationError = components['schemas']['ValidationError'];
|
|
|
2927
2959
|
* @see {@link components} - The OpenAPI components schema definition
|
|
2928
2960
|
*/
|
|
2929
2961
|
export type VerificationType = components['schemas']['VerificationType'];
|
|
2962
|
+
/**
|
|
2963
|
+
* WalletCreditRequest
|
|
2964
|
+
*
|
|
2965
|
+
* @remarks
|
|
2966
|
+
* Type alias for the `WalletCreditRequest` OpenAPI schema.
|
|
2967
|
+
* This type represents walletcreditrequest data structures used in API requests and responses.
|
|
2968
|
+
*
|
|
2969
|
+
* @example
|
|
2970
|
+
* ```typescript
|
|
2971
|
+
* const response = await api.getWalletCreditRequest();
|
|
2972
|
+
* const item: WalletCreditRequest = response.results;
|
|
2973
|
+
* ```
|
|
2974
|
+
*
|
|
2975
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
2976
|
+
*/
|
|
2977
|
+
export type WalletCreditRequest = components['schemas']['WalletCreditRequest'];
|
|
2978
|
+
/**
|
|
2979
|
+
* WalletCreditResponseStatus
|
|
2980
|
+
*
|
|
2981
|
+
* @remarks
|
|
2982
|
+
* Type alias for the `WalletCreditResponseStatus` OpenAPI schema.
|
|
2983
|
+
* This type represents walletcreditresponsestatus data structures used in API requests and responses.
|
|
2984
|
+
*
|
|
2985
|
+
* @example
|
|
2986
|
+
* ```typescript
|
|
2987
|
+
* const response = await api.getWalletCreditResponseStatus();
|
|
2988
|
+
* const item: WalletCreditResponseStatus = response.results;
|
|
2989
|
+
* ```
|
|
2990
|
+
*
|
|
2991
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
2992
|
+
*/
|
|
2993
|
+
export type WalletCreditResponseStatus = components['schemas']['WalletCreditResponseStatus'];
|
|
2994
|
+
/**
|
|
2995
|
+
* WalletCreditResponseWithBalance
|
|
2996
|
+
*
|
|
2997
|
+
* @remarks
|
|
2998
|
+
* Type alias for the `WalletCreditResponseWithBalance` OpenAPI schema.
|
|
2999
|
+
* This type represents walletcreditresponsewithbalance data structures used in API requests and responses.
|
|
3000
|
+
*
|
|
3001
|
+
* @example
|
|
3002
|
+
* ```typescript
|
|
3003
|
+
* const response = await api.getWalletCreditResponseWithBalance();
|
|
3004
|
+
* const item: WalletCreditResponseWithBalance = response.results;
|
|
3005
|
+
* ```
|
|
3006
|
+
*
|
|
3007
|
+
* @see {@link components} - The OpenAPI components schema definition
|
|
3008
|
+
*/
|
|
3009
|
+
export type WalletCreditResponseWithBalance = components['schemas']['WalletCreditResponseWithBalance'];
|
|
2930
3010
|
/**
|
|
2931
3011
|
* WhoisBase
|
|
2932
3012
|
*
|
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
|
|
@@ -3729,6 +3791,16 @@ components:
|
|
|
3729
3791
|
type: array
|
|
3730
3792
|
title: PermissionSet
|
|
3731
3793
|
type: object
|
|
3794
|
+
PlanIdRequest:
|
|
3795
|
+
properties:
|
|
3796
|
+
plan_id:
|
|
3797
|
+
description: Plan ID from available plans
|
|
3798
|
+
title: Plan Id
|
|
3799
|
+
type: string
|
|
3800
|
+
required:
|
|
3801
|
+
- plan_id
|
|
3802
|
+
title: PlanIdRequest
|
|
3803
|
+
type: object
|
|
3732
3804
|
PlanInfo:
|
|
3733
3805
|
properties:
|
|
3734
3806
|
amount:
|
|
@@ -3767,22 +3839,6 @@ components:
|
|
|
3767
3839
|
- amount
|
|
3768
3840
|
title: PlanInfo
|
|
3769
3841
|
type: object
|
|
3770
|
-
PlanRelation:
|
|
3771
|
-
enum:
|
|
3772
|
-
- basic
|
|
3773
|
-
- enterprise
|
|
3774
|
-
- corporate
|
|
3775
|
-
- premium
|
|
3776
|
-
- starter
|
|
3777
|
-
title: PlanRelation
|
|
3778
|
-
type: string
|
|
3779
|
-
PlanUpdate:
|
|
3780
|
-
properties:
|
|
3781
|
-
plan:
|
|
3782
|
-
$ref: '#/components/schemas/PlanRelation'
|
|
3783
|
-
default: basic
|
|
3784
|
-
title: PlanUpdate
|
|
3785
|
-
type: object
|
|
3786
3842
|
PostTransferRequirements:
|
|
3787
3843
|
enum:
|
|
3788
3844
|
- update_contacts
|
|
@@ -4905,6 +4961,59 @@ components:
|
|
|
4905
4961
|
- email
|
|
4906
4962
|
title: VerificationType
|
|
4907
4963
|
type: string
|
|
4964
|
+
WalletCreditRequest:
|
|
4965
|
+
properties:
|
|
4966
|
+
amount:
|
|
4967
|
+
anyOf:
|
|
4968
|
+
- type: number
|
|
4969
|
+
- type: string
|
|
4970
|
+
description: Amount to credit the customer wallet
|
|
4971
|
+
title: Amount
|
|
4972
|
+
payment_method_id:
|
|
4973
|
+
description: Payment method ID that should be used
|
|
4974
|
+
title: Payment Method Id
|
|
4975
|
+
type: string
|
|
4976
|
+
required:
|
|
4977
|
+
- amount
|
|
4978
|
+
- payment_method_id
|
|
4979
|
+
title: WalletCreditRequest
|
|
4980
|
+
type: object
|
|
4981
|
+
WalletCreditResponseStatus:
|
|
4982
|
+
enum:
|
|
4983
|
+
- success
|
|
4984
|
+
- failed
|
|
4985
|
+
title: WalletCreditResponseStatus
|
|
4986
|
+
type: string
|
|
4987
|
+
WalletCreditResponseWithBalance:
|
|
4988
|
+
properties:
|
|
4989
|
+
amount:
|
|
4990
|
+
description: Amount credited to the customer wallet
|
|
4991
|
+
title: Amount
|
|
4992
|
+
type: string
|
|
4993
|
+
balance:
|
|
4994
|
+
description: Updated wallet balance after the credit
|
|
4995
|
+
title: Balance
|
|
4996
|
+
type: string
|
|
4997
|
+
credit_id:
|
|
4998
|
+
description: Unique identifier of the wallet credit transaction
|
|
4999
|
+
title: Credit Id
|
|
5000
|
+
type: string
|
|
5001
|
+
message:
|
|
5002
|
+
anyOf:
|
|
5003
|
+
- type: string
|
|
5004
|
+
- type: 'null'
|
|
5005
|
+
description: Optional human-readable message describing the result
|
|
5006
|
+
title: Message
|
|
5007
|
+
status:
|
|
5008
|
+
$ref: '#/components/schemas/WalletCreditResponseStatus'
|
|
5009
|
+
description: Status of the credit operation
|
|
5010
|
+
required:
|
|
5011
|
+
- credit_id
|
|
5012
|
+
- amount
|
|
5013
|
+
- status
|
|
5014
|
+
- balance
|
|
5015
|
+
title: WalletCreditResponseWithBalance
|
|
5016
|
+
type: object
|
|
4908
5017
|
WhoisBase:
|
|
4909
5018
|
properties:
|
|
4910
5019
|
whois_server:
|
|
@@ -5009,7 +5118,7 @@ info:
|
|
|
5009
5118
|
'
|
|
5010
5119
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
5011
5120
|
title: OpusDNS API
|
|
5012
|
-
version: 2025-09-24-
|
|
5121
|
+
version: 2025-09-24-220429
|
|
5013
5122
|
x-logo:
|
|
5014
5123
|
altText: OpusDNS API Reference
|
|
5015
5124
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
|
@@ -8617,6 +8726,204 @@ paths:
|
|
|
8617
8726
|
summary: Update Organization
|
|
8618
8727
|
tags:
|
|
8619
8728
|
- organization
|
|
8729
|
+
/v1/organizations/{organization_id}/billing/checkout-sessions:
|
|
8730
|
+
post:
|
|
8731
|
+
operationId: get_checkout_session_v1_organizations__organization_id__billing_checkout_sessions_post
|
|
8732
|
+
parameters:
|
|
8733
|
+
- in: path
|
|
8734
|
+
name: organization_id
|
|
8735
|
+
required: true
|
|
8736
|
+
schema:
|
|
8737
|
+
examples:
|
|
8738
|
+
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
8739
|
+
format: typeid
|
|
8740
|
+
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8741
|
+
title: Organization Id
|
|
8742
|
+
type: string
|
|
8743
|
+
x-typeid-prefix: organization
|
|
8744
|
+
requestBody:
|
|
8745
|
+
content:
|
|
8746
|
+
application/json:
|
|
8747
|
+
schema:
|
|
8748
|
+
$ref: '#/components/schemas/CheckoutSessionRequest'
|
|
8749
|
+
required: true
|
|
8750
|
+
responses:
|
|
8751
|
+
'200':
|
|
8752
|
+
content:
|
|
8753
|
+
application/json:
|
|
8754
|
+
schema:
|
|
8755
|
+
$ref: '#/components/schemas/CheckoutSessionResponse'
|
|
8756
|
+
description: Successful Response
|
|
8757
|
+
'422':
|
|
8758
|
+
content:
|
|
8759
|
+
application/problem+json:
|
|
8760
|
+
schema:
|
|
8761
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
8762
|
+
description: Validation Error
|
|
8763
|
+
security:
|
|
8764
|
+
- OAuth2PasswordBearer: []
|
|
8765
|
+
summary: Get Checkout Session
|
|
8766
|
+
tags:
|
|
8767
|
+
- organization
|
|
8768
|
+
- organization
|
|
8769
|
+
/v1/organizations/{organization_id}/billing/payment-methods:
|
|
8770
|
+
get:
|
|
8771
|
+
operationId: list_payment_methods_v1_organizations__organization_id__billing_payment_methods_get
|
|
8772
|
+
parameters:
|
|
8773
|
+
- in: path
|
|
8774
|
+
name: organization_id
|
|
8775
|
+
required: true
|
|
8776
|
+
schema:
|
|
8777
|
+
examples:
|
|
8778
|
+
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
8779
|
+
format: typeid
|
|
8780
|
+
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8781
|
+
title: Organization Id
|
|
8782
|
+
type: string
|
|
8783
|
+
x-typeid-prefix: organization
|
|
8784
|
+
responses:
|
|
8785
|
+
'200':
|
|
8786
|
+
content:
|
|
8787
|
+
application/json:
|
|
8788
|
+
schema:
|
|
8789
|
+
items:
|
|
8790
|
+
$ref: '#/components/schemas/CustomerCreditCardPaymentMethod'
|
|
8791
|
+
title: Response List Payment Methods V1 Organizations Organization
|
|
8792
|
+
Id Billing Payment Methods Get
|
|
8793
|
+
type: array
|
|
8794
|
+
description: Successful Response
|
|
8795
|
+
'422':
|
|
8796
|
+
content:
|
|
8797
|
+
application/problem+json:
|
|
8798
|
+
schema:
|
|
8799
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
8800
|
+
description: Validation Error
|
|
8801
|
+
security:
|
|
8802
|
+
- OAuth2PasswordBearer: []
|
|
8803
|
+
summary: List Payment Methods
|
|
8804
|
+
tags:
|
|
8805
|
+
- organization
|
|
8806
|
+
- organization
|
|
8807
|
+
/v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}:
|
|
8808
|
+
delete:
|
|
8809
|
+
operationId: delete_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__delete
|
|
8810
|
+
parameters:
|
|
8811
|
+
- in: path
|
|
8812
|
+
name: payment_method_id
|
|
8813
|
+
required: true
|
|
8814
|
+
schema:
|
|
8815
|
+
title: Payment Method Id
|
|
8816
|
+
type: string
|
|
8817
|
+
- in: path
|
|
8818
|
+
name: organization_id
|
|
8819
|
+
required: true
|
|
8820
|
+
schema:
|
|
8821
|
+
examples:
|
|
8822
|
+
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
8823
|
+
format: typeid
|
|
8824
|
+
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8825
|
+
title: Organization Id
|
|
8826
|
+
type: string
|
|
8827
|
+
x-typeid-prefix: organization
|
|
8828
|
+
responses:
|
|
8829
|
+
'204':
|
|
8830
|
+
description: Successful Response
|
|
8831
|
+
'422':
|
|
8832
|
+
content:
|
|
8833
|
+
application/problem+json:
|
|
8834
|
+
schema:
|
|
8835
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
8836
|
+
description: Validation Error
|
|
8837
|
+
security:
|
|
8838
|
+
- OAuth2PasswordBearer: []
|
|
8839
|
+
summary: Delete Payment Method
|
|
8840
|
+
tags:
|
|
8841
|
+
- organization
|
|
8842
|
+
- organization
|
|
8843
|
+
/v1/organizations/{organization_id}/billing/payment-methods/{payment_method_id}/default:
|
|
8844
|
+
patch:
|
|
8845
|
+
operationId: update_default_payment_method_v1_organizations__organization_id__billing_payment_methods__payment_method_id__default_patch
|
|
8846
|
+
parameters:
|
|
8847
|
+
- in: path
|
|
8848
|
+
name: payment_method_id
|
|
8849
|
+
required: true
|
|
8850
|
+
schema:
|
|
8851
|
+
title: Payment Method Id
|
|
8852
|
+
type: string
|
|
8853
|
+
- in: path
|
|
8854
|
+
name: organization_id
|
|
8855
|
+
required: true
|
|
8856
|
+
schema:
|
|
8857
|
+
examples:
|
|
8858
|
+
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
8859
|
+
format: typeid
|
|
8860
|
+
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8861
|
+
title: Organization Id
|
|
8862
|
+
type: string
|
|
8863
|
+
x-typeid-prefix: organization
|
|
8864
|
+
responses:
|
|
8865
|
+
'200':
|
|
8866
|
+
content:
|
|
8867
|
+
application/json:
|
|
8868
|
+
schema:
|
|
8869
|
+
items:
|
|
8870
|
+
$ref: '#/components/schemas/CustomerCreditCardPaymentMethod'
|
|
8871
|
+
title: Response Update Default Payment Method V1 Organizations Organization
|
|
8872
|
+
Id Billing Payment Methods Payment Method Id Default Patch
|
|
8873
|
+
type: array
|
|
8874
|
+
description: Successful Response
|
|
8875
|
+
'422':
|
|
8876
|
+
content:
|
|
8877
|
+
application/problem+json:
|
|
8878
|
+
schema:
|
|
8879
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
8880
|
+
description: Validation Error
|
|
8881
|
+
security:
|
|
8882
|
+
- OAuth2PasswordBearer: []
|
|
8883
|
+
summary: Update Default Payment Method
|
|
8884
|
+
tags:
|
|
8885
|
+
- organization
|
|
8886
|
+
- organization
|
|
8887
|
+
/v1/organizations/{organization_id}/billing/wallet/credits:
|
|
8888
|
+
post:
|
|
8889
|
+
operationId: credit_wallet_v1_organizations__organization_id__billing_wallet_credits_post
|
|
8890
|
+
parameters:
|
|
8891
|
+
- in: path
|
|
8892
|
+
name: organization_id
|
|
8893
|
+
required: true
|
|
8894
|
+
schema:
|
|
8895
|
+
examples:
|
|
8896
|
+
- organization_01h45ytscbebyvny4gc8cr8ma2
|
|
8897
|
+
format: typeid
|
|
8898
|
+
pattern: ^organization_[0-7][0-9a-hjkmnpq-tv-z]{25}$
|
|
8899
|
+
title: Organization Id
|
|
8900
|
+
type: string
|
|
8901
|
+
x-typeid-prefix: organization
|
|
8902
|
+
requestBody:
|
|
8903
|
+
content:
|
|
8904
|
+
application/json:
|
|
8905
|
+
schema:
|
|
8906
|
+
$ref: '#/components/schemas/WalletCreditRequest'
|
|
8907
|
+
required: true
|
|
8908
|
+
responses:
|
|
8909
|
+
'200':
|
|
8910
|
+
content:
|
|
8911
|
+
application/json:
|
|
8912
|
+
schema:
|
|
8913
|
+
$ref: '#/components/schemas/WalletCreditResponseWithBalance'
|
|
8914
|
+
description: Successful Response
|
|
8915
|
+
'422':
|
|
8916
|
+
content:
|
|
8917
|
+
application/problem+json:
|
|
8918
|
+
schema:
|
|
8919
|
+
$ref: '#/components/schemas/HTTPValidationError'
|
|
8920
|
+
description: Validation Error
|
|
8921
|
+
security:
|
|
8922
|
+
- OAuth2PasswordBearer: []
|
|
8923
|
+
summary: Credit Wallet
|
|
8924
|
+
tags:
|
|
8925
|
+
- organization
|
|
8926
|
+
- organization
|
|
8620
8927
|
/v1/organizations/{organization_id}/plan:
|
|
8621
8928
|
patch:
|
|
8622
8929
|
operationId: change_plan_v1_organizations__organization_id__plan_patch
|
|
@@ -8636,7 +8943,7 @@ paths:
|
|
|
8636
8943
|
content:
|
|
8637
8944
|
application/json:
|
|
8638
8945
|
schema:
|
|
8639
|
-
$ref: '#/components/schemas/
|
|
8946
|
+
$ref: '#/components/schemas/PlanIdRequest'
|
|
8640
8947
|
required: true
|
|
8641
8948
|
responses:
|
|
8642
8949
|
'200':
|