@opusdns/api 0.73.0 → 0.75.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 +3 -1
- package/src/helpers/keys.ts +26 -0
- package/src/openapi.yaml +5 -1
- package/src/schema.d.ts +3 -1
package/package.json
CHANGED
package/src/helpers/constants.ts
CHANGED
|
@@ -2791,6 +2791,7 @@ export const VERIFICATION_TYPE_VALUES = [
|
|
|
2791
2791
|
export const WALLET_CREDIT_RESPONSE_STATUS = {
|
|
2792
2792
|
SUCCESS: "success",
|
|
2793
2793
|
FAILED: "failed",
|
|
2794
|
+
PENDING: "pending",
|
|
2794
2795
|
} as const satisfies Record<string, WalletCreditResponseStatus>;
|
|
2795
2796
|
|
|
2796
2797
|
/**
|
|
@@ -2816,7 +2817,8 @@ export const WALLET_CREDIT_RESPONSE_STATUS = {
|
|
|
2816
2817
|
*/
|
|
2817
2818
|
export const WALLET_CREDIT_RESPONSE_STATUS_VALUES = [
|
|
2818
2819
|
'success',
|
|
2819
|
-
'failed'
|
|
2820
|
+
'failed',
|
|
2821
|
+
'pending'
|
|
2820
2822
|
] as const satisfies [string, ...string[]] | WalletCreditResponseStatus[];
|
|
2821
2823
|
|
|
2822
2824
|
/**
|
package/src/helpers/keys.ts
CHANGED
|
@@ -619,6 +619,31 @@ export const KEY_BILLING_TRANSACTION_COMPLETED_ON = 'completed_on' as keyof Bill
|
|
|
619
619
|
* @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
|
|
620
620
|
*/
|
|
621
621
|
export const KEY_BILLING_TRANSACTION_CREATED_ON = 'created_on' as keyof BillingTransaction;
|
|
622
|
+
/**
|
|
623
|
+
* currency property
|
|
624
|
+
*
|
|
625
|
+
* The currency of the transaction
|
|
626
|
+
*
|
|
627
|
+
*
|
|
628
|
+
*
|
|
629
|
+
* @remarks
|
|
630
|
+
* This key constant provides type-safe access to the `currency` property of BillingTransaction objects.
|
|
631
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
632
|
+
*
|
|
633
|
+
* @example
|
|
634
|
+
* ```typescript
|
|
635
|
+
* // Direct property access
|
|
636
|
+
* const value = billingtransaction[KEY_BILLING_TRANSACTION_CURRENCY];
|
|
637
|
+
*
|
|
638
|
+
* // Dynamic property access
|
|
639
|
+
* const propertyName = KEY_BILLING_TRANSACTION_CURRENCY;
|
|
640
|
+
* const value = billingtransaction[propertyName];
|
|
641
|
+
* ```
|
|
642
|
+
*
|
|
643
|
+
* @see {@link BillingTransaction} - The TypeScript type definition
|
|
644
|
+
* @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
|
|
645
|
+
*/
|
|
646
|
+
export const KEY_BILLING_TRANSACTION_CURRENCY = 'currency' as keyof BillingTransaction;
|
|
622
647
|
/**
|
|
623
648
|
* Price
|
|
624
649
|
*
|
|
@@ -825,6 +850,7 @@ export const KEYS_BILLING_TRANSACTION = [
|
|
|
825
850
|
KEY_BILLING_TRANSACTION_BILLING_TRANSACTION_ID,
|
|
826
851
|
KEY_BILLING_TRANSACTION_COMPLETED_ON,
|
|
827
852
|
KEY_BILLING_TRANSACTION_CREATED_ON,
|
|
853
|
+
KEY_BILLING_TRANSACTION_CURRENCY,
|
|
828
854
|
KEY_BILLING_TRANSACTION_PRICE,
|
|
829
855
|
KEY_BILLING_TRANSACTION_PRODUCT_REFERENCE,
|
|
830
856
|
KEY_BILLING_TRANSACTION_PRODUCT_TYPE,
|
package/src/openapi.yaml
CHANGED
|
@@ -138,6 +138,9 @@ components:
|
|
|
138
138
|
format: date-time
|
|
139
139
|
title: Created On
|
|
140
140
|
type: string
|
|
141
|
+
currency:
|
|
142
|
+
$ref: '#/components/schemas/Currency'
|
|
143
|
+
description: The currency of the transaction
|
|
141
144
|
price:
|
|
142
145
|
description: The price of the product without sales tax
|
|
143
146
|
title: Price
|
|
@@ -5074,6 +5077,7 @@ components:
|
|
|
5074
5077
|
enum:
|
|
5075
5078
|
- success
|
|
5076
5079
|
- failed
|
|
5080
|
+
- pending
|
|
5077
5081
|
title: WalletCreditResponseStatus
|
|
5078
5082
|
type: string
|
|
5079
5083
|
WalletCreditResponseWithBalance:
|
|
@@ -5210,7 +5214,7 @@ info:
|
|
|
5210
5214
|
'
|
|
5211
5215
|
summary: OpusDNS - your gateway to a seamless domain management experience.
|
|
5212
5216
|
title: OpusDNS API
|
|
5213
|
-
version: 2025-09-
|
|
5217
|
+
version: 2025-09-30-073823
|
|
5214
5218
|
x-logo:
|
|
5215
5219
|
altText: OpusDNS API Reference
|
|
5216
5220
|
url: https://d24lr4zqs1tgqh.cloudfront.net/c9505a20-5ae1-406c-b060-d392569caebf.jpg
|
package/src/schema.d.ts
CHANGED
|
@@ -1406,6 +1406,8 @@ export interface components {
|
|
|
1406
1406
|
* @description The date/time the transaction was created
|
|
1407
1407
|
*/
|
|
1408
1408
|
created_on?: Date;
|
|
1409
|
+
/** @description The currency of the transaction */
|
|
1410
|
+
currency?: components["schemas"]["Currency"];
|
|
1409
1411
|
/**
|
|
1410
1412
|
* Price
|
|
1411
1413
|
* @description The price of the product without sales tax
|
|
@@ -4633,7 +4635,7 @@ export interface components {
|
|
|
4633
4635
|
* WalletCreditResponseStatus
|
|
4634
4636
|
* @enum {string}
|
|
4635
4637
|
*/
|
|
4636
|
-
WalletCreditResponseStatus: "success" | "failed";
|
|
4638
|
+
WalletCreditResponseStatus: "success" | "failed" | "pending";
|
|
4637
4639
|
/** WalletCreditResponseWithBalance */
|
|
4638
4640
|
WalletCreditResponseWithBalance: {
|
|
4639
4641
|
/**
|