@opusdns/api 0.61.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/package.json +1 -1
- package/src/helpers/constants.ts +161 -1
- package/src/helpers/keys.ts +788 -0
- package/src/helpers/requests.d.ts +309 -1
- package/src/helpers/responses.d.ts +369 -2
- package/src/helpers/schemas-arrays.d.ts +29 -1
- package/src/helpers/schemas.d.ts +160 -0
- package/src/openapi.yaml +570 -1
- package/src/schema.d.ts +510 -0
package/src/helpers/keys.ts
CHANGED
|
@@ -32,7 +32,10 @@
|
|
|
32
32
|
import { AllowedNumberOfNameserverBase } from './schemas';
|
|
33
33
|
import { BillingMetadata } from './schemas';
|
|
34
34
|
import { BillingPlan } from './schemas';
|
|
35
|
+
import { BillingTransaction } from './schemas';
|
|
35
36
|
import { Body_issue_organization_token_v1_auth_token_post } from './schemas';
|
|
37
|
+
import { CheckoutSessionRequest } from './schemas';
|
|
38
|
+
import { CheckoutSession } from './schemas';
|
|
36
39
|
import { ContactConfigBase } from './schemas';
|
|
37
40
|
import { ContactCreate } from './schemas';
|
|
38
41
|
import { ContactHandle } from './schemas';
|
|
@@ -42,6 +45,7 @@ import { ContactVerificationApi } from './schemas';
|
|
|
42
45
|
import { ContactVerificationEmail } from './schemas';
|
|
43
46
|
import { ContactVerification } from './schemas';
|
|
44
47
|
import { ContactsBase } from './schemas';
|
|
48
|
+
import { CustomerCreditCardPaymentMethod } from './schemas';
|
|
45
49
|
import { DnsChange } from './schemas';
|
|
46
50
|
import { DnsChanges } from './schemas';
|
|
47
51
|
import { DnsConfigurationBase } from './schemas';
|
|
@@ -145,6 +149,8 @@ import { UserUpdate } from './schemas';
|
|
|
145
149
|
import { UserWithAttributes } from './schemas';
|
|
146
150
|
import { UserWithRelationPermissions } from './schemas';
|
|
147
151
|
import { ValidationError } from './schemas';
|
|
152
|
+
import { WalletCreditRequest } from './schemas';
|
|
153
|
+
import { WalletCreditResponseWithBalance } from './schemas';
|
|
148
154
|
import { WhoisBase } from './schemas';
|
|
149
155
|
import { DomainAvailabilityList } from './schemas';
|
|
150
156
|
import { DomainAvailabilityCheck } from './schemas';
|
|
@@ -484,6 +490,240 @@ export const KEYS_BILLING_PLAN = [
|
|
|
484
490
|
KEY_BILLING_PLAN_TYPE,
|
|
485
491
|
] as const satisfies (keyof BillingPlan)[];
|
|
486
492
|
|
|
493
|
+
/**
|
|
494
|
+
* action property
|
|
495
|
+
*
|
|
496
|
+
* The action performed in the transaction
|
|
497
|
+
*
|
|
498
|
+
*
|
|
499
|
+
*
|
|
500
|
+
* @remarks
|
|
501
|
+
* This key constant provides type-safe access to the `action` property of BillingTransaction objects.
|
|
502
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
503
|
+
*
|
|
504
|
+
* @example
|
|
505
|
+
* ```typescript
|
|
506
|
+
* // Direct property access
|
|
507
|
+
* const value = billingtransaction[KEY_BILLING_TRANSACTION_ACTION];
|
|
508
|
+
*
|
|
509
|
+
* // Dynamic property access
|
|
510
|
+
* const propertyName = KEY_BILLING_TRANSACTION_ACTION;
|
|
511
|
+
* const value = billingtransaction[propertyName];
|
|
512
|
+
* ```
|
|
513
|
+
*
|
|
514
|
+
* @see {@link BillingTransaction} - The TypeScript type definition
|
|
515
|
+
* @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
|
|
516
|
+
*/
|
|
517
|
+
export const KEY_BILLING_TRANSACTION_ACTION = 'action' as keyof BillingTransaction;
|
|
518
|
+
/**
|
|
519
|
+
* Billing Transaction Id
|
|
520
|
+
*
|
|
521
|
+
*
|
|
522
|
+
* @type {string}
|
|
523
|
+
*
|
|
524
|
+
*
|
|
525
|
+
* @remarks
|
|
526
|
+
* This key constant provides type-safe access to the `billing_transaction_id` property of BillingTransaction objects.
|
|
527
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
528
|
+
*
|
|
529
|
+
* @example
|
|
530
|
+
* ```typescript
|
|
531
|
+
* // Direct property access
|
|
532
|
+
* const value = billingtransaction[KEY_BILLING_TRANSACTION_BILLING_TRANSACTION_ID];
|
|
533
|
+
*
|
|
534
|
+
* // Dynamic property access
|
|
535
|
+
* const propertyName = KEY_BILLING_TRANSACTION_BILLING_TRANSACTION_ID;
|
|
536
|
+
* const value = billingtransaction[propertyName];
|
|
537
|
+
* ```
|
|
538
|
+
*
|
|
539
|
+
* @see {@link BillingTransaction} - The TypeScript type definition
|
|
540
|
+
* @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
|
|
541
|
+
*/
|
|
542
|
+
export const KEY_BILLING_TRANSACTION_BILLING_TRANSACTION_ID = 'billing_transaction_id' as keyof BillingTransaction;
|
|
543
|
+
/**
|
|
544
|
+
* Completed On
|
|
545
|
+
*
|
|
546
|
+
* The date/time the transaction completed
|
|
547
|
+
*
|
|
548
|
+
*
|
|
549
|
+
*
|
|
550
|
+
* @remarks
|
|
551
|
+
* This key constant provides type-safe access to the `completed_on` property of BillingTransaction objects.
|
|
552
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
553
|
+
*
|
|
554
|
+
* @example
|
|
555
|
+
* ```typescript
|
|
556
|
+
* // Direct property access
|
|
557
|
+
* const value = billingtransaction[KEY_BILLING_TRANSACTION_COMPLETED_ON];
|
|
558
|
+
*
|
|
559
|
+
* // Dynamic property access
|
|
560
|
+
* const propertyName = KEY_BILLING_TRANSACTION_COMPLETED_ON;
|
|
561
|
+
* const value = billingtransaction[propertyName];
|
|
562
|
+
* ```
|
|
563
|
+
*
|
|
564
|
+
* @see {@link BillingTransaction} - The TypeScript type definition
|
|
565
|
+
* @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
|
|
566
|
+
*/
|
|
567
|
+
export const KEY_BILLING_TRANSACTION_COMPLETED_ON = 'completed_on' as keyof BillingTransaction;
|
|
568
|
+
/**
|
|
569
|
+
* Created On
|
|
570
|
+
*
|
|
571
|
+
* The date/time the transaction was created
|
|
572
|
+
*
|
|
573
|
+
* @type {string}
|
|
574
|
+
*
|
|
575
|
+
*
|
|
576
|
+
* @remarks
|
|
577
|
+
* This key constant provides type-safe access to the `created_on` property of BillingTransaction objects.
|
|
578
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
579
|
+
*
|
|
580
|
+
* @example
|
|
581
|
+
* ```typescript
|
|
582
|
+
* // Direct property access
|
|
583
|
+
* const value = billingtransaction[KEY_BILLING_TRANSACTION_CREATED_ON];
|
|
584
|
+
*
|
|
585
|
+
* // Dynamic property access
|
|
586
|
+
* const propertyName = KEY_BILLING_TRANSACTION_CREATED_ON;
|
|
587
|
+
* const value = billingtransaction[propertyName];
|
|
588
|
+
* ```
|
|
589
|
+
*
|
|
590
|
+
* @see {@link BillingTransaction} - The TypeScript type definition
|
|
591
|
+
* @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
|
|
592
|
+
*/
|
|
593
|
+
export const KEY_BILLING_TRANSACTION_CREATED_ON = 'created_on' as keyof BillingTransaction;
|
|
594
|
+
/**
|
|
595
|
+
* Product Reference
|
|
596
|
+
*
|
|
597
|
+
* The reference of the product
|
|
598
|
+
*
|
|
599
|
+
*
|
|
600
|
+
*
|
|
601
|
+
* @remarks
|
|
602
|
+
* This key constant provides type-safe access to the `product_reference` property of BillingTransaction objects.
|
|
603
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
604
|
+
*
|
|
605
|
+
* @example
|
|
606
|
+
* ```typescript
|
|
607
|
+
* // Direct property access
|
|
608
|
+
* const value = billingtransaction[KEY_BILLING_TRANSACTION_PRODUCT_REFERENCE];
|
|
609
|
+
*
|
|
610
|
+
* // Dynamic property access
|
|
611
|
+
* const propertyName = KEY_BILLING_TRANSACTION_PRODUCT_REFERENCE;
|
|
612
|
+
* const value = billingtransaction[propertyName];
|
|
613
|
+
* ```
|
|
614
|
+
*
|
|
615
|
+
* @see {@link BillingTransaction} - The TypeScript type definition
|
|
616
|
+
* @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
|
|
617
|
+
*/
|
|
618
|
+
export const KEY_BILLING_TRANSACTION_PRODUCT_REFERENCE = 'product_reference' as keyof BillingTransaction;
|
|
619
|
+
/**
|
|
620
|
+
* product_type property
|
|
621
|
+
*
|
|
622
|
+
* The type of product
|
|
623
|
+
*
|
|
624
|
+
*
|
|
625
|
+
*
|
|
626
|
+
* @remarks
|
|
627
|
+
* This key constant provides type-safe access to the `product_type` property of BillingTransaction objects.
|
|
628
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
629
|
+
*
|
|
630
|
+
* @example
|
|
631
|
+
* ```typescript
|
|
632
|
+
* // Direct property access
|
|
633
|
+
* const value = billingtransaction[KEY_BILLING_TRANSACTION_PRODUCT_TYPE];
|
|
634
|
+
*
|
|
635
|
+
* // Dynamic property access
|
|
636
|
+
* const propertyName = KEY_BILLING_TRANSACTION_PRODUCT_TYPE;
|
|
637
|
+
* const value = billingtransaction[propertyName];
|
|
638
|
+
* ```
|
|
639
|
+
*
|
|
640
|
+
* @see {@link BillingTransaction} - The TypeScript type definition
|
|
641
|
+
* @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
|
|
642
|
+
*/
|
|
643
|
+
export const KEY_BILLING_TRANSACTION_PRODUCT_TYPE = 'product_type' as keyof BillingTransaction;
|
|
644
|
+
/**
|
|
645
|
+
* status property
|
|
646
|
+
*
|
|
647
|
+
* The status of the transaction
|
|
648
|
+
*
|
|
649
|
+
*
|
|
650
|
+
*
|
|
651
|
+
* @remarks
|
|
652
|
+
* This key constant provides type-safe access to the `status` property of BillingTransaction objects.
|
|
653
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
654
|
+
*
|
|
655
|
+
* @example
|
|
656
|
+
* ```typescript
|
|
657
|
+
* // Direct property access
|
|
658
|
+
* const value = billingtransaction[KEY_BILLING_TRANSACTION_STATUS];
|
|
659
|
+
*
|
|
660
|
+
* // Dynamic property access
|
|
661
|
+
* const propertyName = KEY_BILLING_TRANSACTION_STATUS;
|
|
662
|
+
* const value = billingtransaction[propertyName];
|
|
663
|
+
* ```
|
|
664
|
+
*
|
|
665
|
+
* @see {@link BillingTransaction} - The TypeScript type definition
|
|
666
|
+
* @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
|
|
667
|
+
*/
|
|
668
|
+
export const KEY_BILLING_TRANSACTION_STATUS = 'status' as keyof BillingTransaction;
|
|
669
|
+
/**
|
|
670
|
+
* Updated On
|
|
671
|
+
*
|
|
672
|
+
* The date/time the transaction was updated
|
|
673
|
+
*
|
|
674
|
+
* @type {string}
|
|
675
|
+
*
|
|
676
|
+
*
|
|
677
|
+
* @remarks
|
|
678
|
+
* This key constant provides type-safe access to the `updated_on` property of BillingTransaction objects.
|
|
679
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
680
|
+
*
|
|
681
|
+
* @example
|
|
682
|
+
* ```typescript
|
|
683
|
+
* // Direct property access
|
|
684
|
+
* const value = billingtransaction[KEY_BILLING_TRANSACTION_UPDATED_ON];
|
|
685
|
+
*
|
|
686
|
+
* // Dynamic property access
|
|
687
|
+
* const propertyName = KEY_BILLING_TRANSACTION_UPDATED_ON;
|
|
688
|
+
* const value = billingtransaction[propertyName];
|
|
689
|
+
* ```
|
|
690
|
+
*
|
|
691
|
+
* @see {@link BillingTransaction} - The TypeScript type definition
|
|
692
|
+
* @see {@link KEYS_BILLING_TRANSACTION} - Array of all keys for this type
|
|
693
|
+
*/
|
|
694
|
+
export const KEY_BILLING_TRANSACTION_UPDATED_ON = 'updated_on' as keyof BillingTransaction;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Array of all BillingTransaction property keys
|
|
698
|
+
*
|
|
699
|
+
* @remarks
|
|
700
|
+
* This constant provides a readonly array containing all valid property keys for BillingTransaction objects.
|
|
701
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
702
|
+
*
|
|
703
|
+
* @example
|
|
704
|
+
* ```typescript
|
|
705
|
+
* // Iterating through all keys
|
|
706
|
+
* for (const key of KEYS_BILLING_TRANSACTION) {
|
|
707
|
+
* console.log(`Property: ${key}, Value: ${billingtransaction[key]}`);
|
|
708
|
+
* }
|
|
709
|
+
*
|
|
710
|
+
* // Validation
|
|
711
|
+
* const isValidKey = KEYS_BILLING_TRANSACTION.includes(someKey);
|
|
712
|
+
* ```
|
|
713
|
+
*
|
|
714
|
+
* @see {@link BillingTransaction} - The TypeScript type definition
|
|
715
|
+
*/
|
|
716
|
+
export const KEYS_BILLING_TRANSACTION = [
|
|
717
|
+
KEY_BILLING_TRANSACTION_ACTION,
|
|
718
|
+
KEY_BILLING_TRANSACTION_BILLING_TRANSACTION_ID,
|
|
719
|
+
KEY_BILLING_TRANSACTION_COMPLETED_ON,
|
|
720
|
+
KEY_BILLING_TRANSACTION_CREATED_ON,
|
|
721
|
+
KEY_BILLING_TRANSACTION_PRODUCT_REFERENCE,
|
|
722
|
+
KEY_BILLING_TRANSACTION_PRODUCT_TYPE,
|
|
723
|
+
KEY_BILLING_TRANSACTION_STATUS,
|
|
724
|
+
KEY_BILLING_TRANSACTION_UPDATED_ON,
|
|
725
|
+
] as const satisfies (keyof BillingTransaction)[];
|
|
726
|
+
|
|
487
727
|
/**
|
|
488
728
|
* Client Id
|
|
489
729
|
*
|
|
@@ -638,6 +878,108 @@ export const KEYS_BODY_ISSUE_ORGANIZATION_TOKEN_V1_AUTH_TOKEN_POST = [
|
|
|
638
878
|
KEY_BODY_ISSUE_ORGANIZATION_TOKEN_V1_AUTH_TOKEN_POST_USERNAME,
|
|
639
879
|
] as const satisfies (keyof Body_issue_organization_token_v1_auth_token_post)[];
|
|
640
880
|
|
|
881
|
+
/**
|
|
882
|
+
* Return Url
|
|
883
|
+
*
|
|
884
|
+
* Return URL that will be used
|
|
885
|
+
*
|
|
886
|
+
* @type {string}
|
|
887
|
+
*
|
|
888
|
+
*
|
|
889
|
+
* @remarks
|
|
890
|
+
* This key constant provides type-safe access to the `return_url` property of CheckoutSessionRequest objects.
|
|
891
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
892
|
+
*
|
|
893
|
+
* @example
|
|
894
|
+
* ```typescript
|
|
895
|
+
* // Direct property access
|
|
896
|
+
* const value = checkoutsessionrequest[KEY_CHECKOUT_SESSION_REQUEST_RETURN_URL];
|
|
897
|
+
*
|
|
898
|
+
* // Dynamic property access
|
|
899
|
+
* const propertyName = KEY_CHECKOUT_SESSION_REQUEST_RETURN_URL;
|
|
900
|
+
* const value = checkoutsessionrequest[propertyName];
|
|
901
|
+
* ```
|
|
902
|
+
*
|
|
903
|
+
* @see {@link CheckoutSessionRequest} - The TypeScript type definition
|
|
904
|
+
* @see {@link KEYS_CHECKOUT_SESSION_REQUEST} - Array of all keys for this type
|
|
905
|
+
*/
|
|
906
|
+
export const KEY_CHECKOUT_SESSION_REQUEST_RETURN_URL = 'return_url' as keyof CheckoutSessionRequest;
|
|
907
|
+
|
|
908
|
+
/**
|
|
909
|
+
* Array of all CheckoutSessionRequest property keys
|
|
910
|
+
*
|
|
911
|
+
* @remarks
|
|
912
|
+
* This constant provides a readonly array containing all valid property keys for CheckoutSessionRequest objects.
|
|
913
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
914
|
+
*
|
|
915
|
+
* @example
|
|
916
|
+
* ```typescript
|
|
917
|
+
* // Iterating through all keys
|
|
918
|
+
* for (const key of KEYS_CHECKOUT_SESSION_REQUEST) {
|
|
919
|
+
* console.log(`Property: ${key}, Value: ${checkoutsessionrequest[key]}`);
|
|
920
|
+
* }
|
|
921
|
+
*
|
|
922
|
+
* // Validation
|
|
923
|
+
* const isValidKey = KEYS_CHECKOUT_SESSION_REQUEST.includes(someKey);
|
|
924
|
+
* ```
|
|
925
|
+
*
|
|
926
|
+
* @see {@link CheckoutSessionRequest} - The TypeScript type definition
|
|
927
|
+
*/
|
|
928
|
+
export const KEYS_CHECKOUT_SESSION_REQUEST = [
|
|
929
|
+
KEY_CHECKOUT_SESSION_REQUEST_RETURN_URL,
|
|
930
|
+
] as const satisfies (keyof CheckoutSessionRequest)[];
|
|
931
|
+
|
|
932
|
+
/**
|
|
933
|
+
* Session Client Secret
|
|
934
|
+
*
|
|
935
|
+
* Checkout session client secret - meant to be used in the embedded checkout
|
|
936
|
+
*
|
|
937
|
+
* @type {string}
|
|
938
|
+
*
|
|
939
|
+
*
|
|
940
|
+
* @remarks
|
|
941
|
+
* This key constant provides type-safe access to the `session_client_secret` property of CheckoutSession objects.
|
|
942
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
943
|
+
*
|
|
944
|
+
* @example
|
|
945
|
+
* ```typescript
|
|
946
|
+
* // Direct property access
|
|
947
|
+
* const value = checkoutsession[KEY_CHECKOUT_SESSION_SESSION_CLIENT_SECRET];
|
|
948
|
+
*
|
|
949
|
+
* // Dynamic property access
|
|
950
|
+
* const propertyName = KEY_CHECKOUT_SESSION_SESSION_CLIENT_SECRET;
|
|
951
|
+
* const value = checkoutsession[propertyName];
|
|
952
|
+
* ```
|
|
953
|
+
*
|
|
954
|
+
* @see {@link CheckoutSession} - The TypeScript type definition
|
|
955
|
+
* @see {@link KEYS_CHECKOUT_SESSION} - Array of all keys for this type
|
|
956
|
+
*/
|
|
957
|
+
export const KEY_CHECKOUT_SESSION_SESSION_CLIENT_SECRET = 'session_client_secret' as keyof CheckoutSession;
|
|
958
|
+
|
|
959
|
+
/**
|
|
960
|
+
* Array of all CheckoutSession property keys
|
|
961
|
+
*
|
|
962
|
+
* @remarks
|
|
963
|
+
* This constant provides a readonly array containing all valid property keys for CheckoutSession objects.
|
|
964
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
965
|
+
*
|
|
966
|
+
* @example
|
|
967
|
+
* ```typescript
|
|
968
|
+
* // Iterating through all keys
|
|
969
|
+
* for (const key of KEYS_CHECKOUT_SESSION) {
|
|
970
|
+
* console.log(`Property: ${key}, Value: ${checkoutsession[key]}`);
|
|
971
|
+
* }
|
|
972
|
+
*
|
|
973
|
+
* // Validation
|
|
974
|
+
* const isValidKey = KEYS_CHECKOUT_SESSION.includes(someKey);
|
|
975
|
+
* ```
|
|
976
|
+
*
|
|
977
|
+
* @see {@link CheckoutSession} - The TypeScript type definition
|
|
978
|
+
*/
|
|
979
|
+
export const KEYS_CHECKOUT_SESSION = [
|
|
980
|
+
KEY_CHECKOUT_SESSION_SESSION_CLIENT_SECRET,
|
|
981
|
+
] as const satisfies (keyof CheckoutSession)[];
|
|
982
|
+
|
|
641
983
|
/**
|
|
642
984
|
* Max
|
|
643
985
|
*
|
|
@@ -3028,6 +3370,218 @@ export const KEYS_CONTACTS_BASE = [
|
|
|
3028
3370
|
KEY_CONTACTS_BASE_SUPPORTED_ROLES,
|
|
3029
3371
|
] as const satisfies (keyof ContactsBase)[];
|
|
3030
3372
|
|
|
3373
|
+
/**
|
|
3374
|
+
* Brand
|
|
3375
|
+
*
|
|
3376
|
+
* Card brand
|
|
3377
|
+
*
|
|
3378
|
+
* @type {string}
|
|
3379
|
+
*
|
|
3380
|
+
*
|
|
3381
|
+
* @remarks
|
|
3382
|
+
* This key constant provides type-safe access to the `brand` property of CustomerCreditCardPaymentMethod objects.
|
|
3383
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3384
|
+
*
|
|
3385
|
+
* @example
|
|
3386
|
+
* ```typescript
|
|
3387
|
+
* // Direct property access
|
|
3388
|
+
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_BRAND];
|
|
3389
|
+
*
|
|
3390
|
+
* // Dynamic property access
|
|
3391
|
+
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_BRAND;
|
|
3392
|
+
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3393
|
+
* ```
|
|
3394
|
+
*
|
|
3395
|
+
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3396
|
+
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3397
|
+
*/
|
|
3398
|
+
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_BRAND = 'brand' as keyof CustomerCreditCardPaymentMethod;
|
|
3399
|
+
/**
|
|
3400
|
+
* Country
|
|
3401
|
+
*
|
|
3402
|
+
* Country code
|
|
3403
|
+
*
|
|
3404
|
+
*
|
|
3405
|
+
*
|
|
3406
|
+
* @remarks
|
|
3407
|
+
* This key constant provides type-safe access to the `country` property of CustomerCreditCardPaymentMethod objects.
|
|
3408
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3409
|
+
*
|
|
3410
|
+
* @example
|
|
3411
|
+
* ```typescript
|
|
3412
|
+
* // Direct property access
|
|
3413
|
+
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_COUNTRY];
|
|
3414
|
+
*
|
|
3415
|
+
* // Dynamic property access
|
|
3416
|
+
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_COUNTRY;
|
|
3417
|
+
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3418
|
+
* ```
|
|
3419
|
+
*
|
|
3420
|
+
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3421
|
+
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3422
|
+
*/
|
|
3423
|
+
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_COUNTRY = 'country' as keyof CustomerCreditCardPaymentMethod;
|
|
3424
|
+
/**
|
|
3425
|
+
* Exp Month
|
|
3426
|
+
*
|
|
3427
|
+
* Expiration month
|
|
3428
|
+
*
|
|
3429
|
+
* @type {integer}
|
|
3430
|
+
*
|
|
3431
|
+
*
|
|
3432
|
+
* @remarks
|
|
3433
|
+
* This key constant provides type-safe access to the `exp_month` property of CustomerCreditCardPaymentMethod objects.
|
|
3434
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3435
|
+
*
|
|
3436
|
+
* @example
|
|
3437
|
+
* ```typescript
|
|
3438
|
+
* // Direct property access
|
|
3439
|
+
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_MONTH];
|
|
3440
|
+
*
|
|
3441
|
+
* // Dynamic property access
|
|
3442
|
+
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_MONTH;
|
|
3443
|
+
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3444
|
+
* ```
|
|
3445
|
+
*
|
|
3446
|
+
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3447
|
+
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3448
|
+
*/
|
|
3449
|
+
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_MONTH = 'exp_month' as keyof CustomerCreditCardPaymentMethod;
|
|
3450
|
+
/**
|
|
3451
|
+
* Exp Year
|
|
3452
|
+
*
|
|
3453
|
+
* Expiration year
|
|
3454
|
+
*
|
|
3455
|
+
* @type {integer}
|
|
3456
|
+
*
|
|
3457
|
+
*
|
|
3458
|
+
* @remarks
|
|
3459
|
+
* This key constant provides type-safe access to the `exp_year` property of CustomerCreditCardPaymentMethod objects.
|
|
3460
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3461
|
+
*
|
|
3462
|
+
* @example
|
|
3463
|
+
* ```typescript
|
|
3464
|
+
* // Direct property access
|
|
3465
|
+
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_YEAR];
|
|
3466
|
+
*
|
|
3467
|
+
* // Dynamic property access
|
|
3468
|
+
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_YEAR;
|
|
3469
|
+
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3470
|
+
* ```
|
|
3471
|
+
*
|
|
3472
|
+
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3473
|
+
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3474
|
+
*/
|
|
3475
|
+
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_YEAR = 'exp_year' as keyof CustomerCreditCardPaymentMethod;
|
|
3476
|
+
/**
|
|
3477
|
+
* Id
|
|
3478
|
+
*
|
|
3479
|
+
* Payment method ID
|
|
3480
|
+
*
|
|
3481
|
+
* @type {string}
|
|
3482
|
+
*
|
|
3483
|
+
*
|
|
3484
|
+
* @remarks
|
|
3485
|
+
* This key constant provides type-safe access to the `id` property of CustomerCreditCardPaymentMethod objects.
|
|
3486
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3487
|
+
*
|
|
3488
|
+
* @example
|
|
3489
|
+
* ```typescript
|
|
3490
|
+
* // Direct property access
|
|
3491
|
+
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_ID];
|
|
3492
|
+
*
|
|
3493
|
+
* // Dynamic property access
|
|
3494
|
+
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_ID;
|
|
3495
|
+
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3496
|
+
* ```
|
|
3497
|
+
*
|
|
3498
|
+
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3499
|
+
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3500
|
+
*/
|
|
3501
|
+
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_ID = 'id' as keyof CustomerCreditCardPaymentMethod;
|
|
3502
|
+
/**
|
|
3503
|
+
* Is Default
|
|
3504
|
+
*
|
|
3505
|
+
* Whether this is the default payment method
|
|
3506
|
+
*
|
|
3507
|
+
* @type {boolean}
|
|
3508
|
+
*
|
|
3509
|
+
*
|
|
3510
|
+
* @remarks
|
|
3511
|
+
* This key constant provides type-safe access to the `is_default` property of CustomerCreditCardPaymentMethod objects.
|
|
3512
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3513
|
+
*
|
|
3514
|
+
* @example
|
|
3515
|
+
* ```typescript
|
|
3516
|
+
* // Direct property access
|
|
3517
|
+
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_IS_DEFAULT];
|
|
3518
|
+
*
|
|
3519
|
+
* // Dynamic property access
|
|
3520
|
+
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_IS_DEFAULT;
|
|
3521
|
+
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3522
|
+
* ```
|
|
3523
|
+
*
|
|
3524
|
+
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3525
|
+
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3526
|
+
*/
|
|
3527
|
+
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_IS_DEFAULT = 'is_default' as keyof CustomerCreditCardPaymentMethod;
|
|
3528
|
+
/**
|
|
3529
|
+
* Last4
|
|
3530
|
+
*
|
|
3531
|
+
* Last four digits of the card
|
|
3532
|
+
*
|
|
3533
|
+
* @type {string}
|
|
3534
|
+
*
|
|
3535
|
+
*
|
|
3536
|
+
* @remarks
|
|
3537
|
+
* This key constant provides type-safe access to the `last4` property of CustomerCreditCardPaymentMethod objects.
|
|
3538
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
3539
|
+
*
|
|
3540
|
+
* @example
|
|
3541
|
+
* ```typescript
|
|
3542
|
+
* // Direct property access
|
|
3543
|
+
* const value = customercreditcardpaymentmethod[KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_LAST4];
|
|
3544
|
+
*
|
|
3545
|
+
* // Dynamic property access
|
|
3546
|
+
* const propertyName = KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_LAST4;
|
|
3547
|
+
* const value = customercreditcardpaymentmethod[propertyName];
|
|
3548
|
+
* ```
|
|
3549
|
+
*
|
|
3550
|
+
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3551
|
+
* @see {@link KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD} - Array of all keys for this type
|
|
3552
|
+
*/
|
|
3553
|
+
export const KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_LAST4 = 'last4' as keyof CustomerCreditCardPaymentMethod;
|
|
3554
|
+
|
|
3555
|
+
/**
|
|
3556
|
+
* Array of all CustomerCreditCardPaymentMethod property keys
|
|
3557
|
+
*
|
|
3558
|
+
* @remarks
|
|
3559
|
+
* This constant provides a readonly array containing all valid property keys for CustomerCreditCardPaymentMethod objects.
|
|
3560
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
3561
|
+
*
|
|
3562
|
+
* @example
|
|
3563
|
+
* ```typescript
|
|
3564
|
+
* // Iterating through all keys
|
|
3565
|
+
* for (const key of KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD) {
|
|
3566
|
+
* console.log(`Property: ${key}, Value: ${customercreditcardpaymentmethod[key]}`);
|
|
3567
|
+
* }
|
|
3568
|
+
*
|
|
3569
|
+
* // Validation
|
|
3570
|
+
* const isValidKey = KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD.includes(someKey);
|
|
3571
|
+
* ```
|
|
3572
|
+
*
|
|
3573
|
+
* @see {@link CustomerCreditCardPaymentMethod} - The TypeScript type definition
|
|
3574
|
+
*/
|
|
3575
|
+
export const KEYS_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD = [
|
|
3576
|
+
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_BRAND,
|
|
3577
|
+
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_COUNTRY,
|
|
3578
|
+
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_MONTH,
|
|
3579
|
+
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_EXP_YEAR,
|
|
3580
|
+
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_ID,
|
|
3581
|
+
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_IS_DEFAULT,
|
|
3582
|
+
KEY_CUSTOMER_CREDIT_CARD_PAYMENT_METHOD_LAST4,
|
|
3583
|
+
] as const satisfies (keyof CustomerCreditCardPaymentMethod)[];
|
|
3584
|
+
|
|
3031
3585
|
/**
|
|
3032
3586
|
* action property
|
|
3033
3587
|
*
|
|
@@ -18589,6 +19143,240 @@ export const KEYS_VALIDATION_ERROR = [
|
|
|
18589
19143
|
KEY_VALIDATION_ERROR_TYPE,
|
|
18590
19144
|
] as const satisfies (keyof ValidationError)[];
|
|
18591
19145
|
|
|
19146
|
+
/**
|
|
19147
|
+
* Amount
|
|
19148
|
+
*
|
|
19149
|
+
* Amount to credit the customer wallet
|
|
19150
|
+
*
|
|
19151
|
+
*
|
|
19152
|
+
*
|
|
19153
|
+
* @remarks
|
|
19154
|
+
* This key constant provides type-safe access to the `amount` property of WalletCreditRequest objects.
|
|
19155
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19156
|
+
*
|
|
19157
|
+
* @example
|
|
19158
|
+
* ```typescript
|
|
19159
|
+
* // Direct property access
|
|
19160
|
+
* const value = walletcreditrequest[KEY_WALLET_CREDIT_REQUEST_AMOUNT];
|
|
19161
|
+
*
|
|
19162
|
+
* // Dynamic property access
|
|
19163
|
+
* const propertyName = KEY_WALLET_CREDIT_REQUEST_AMOUNT;
|
|
19164
|
+
* const value = walletcreditrequest[propertyName];
|
|
19165
|
+
* ```
|
|
19166
|
+
*
|
|
19167
|
+
* @see {@link WalletCreditRequest} - The TypeScript type definition
|
|
19168
|
+
* @see {@link KEYS_WALLET_CREDIT_REQUEST} - Array of all keys for this type
|
|
19169
|
+
*/
|
|
19170
|
+
export const KEY_WALLET_CREDIT_REQUEST_AMOUNT = 'amount' as keyof WalletCreditRequest;
|
|
19171
|
+
/**
|
|
19172
|
+
* Payment Method Id
|
|
19173
|
+
*
|
|
19174
|
+
* Payment method ID that should be used
|
|
19175
|
+
*
|
|
19176
|
+
* @type {string}
|
|
19177
|
+
*
|
|
19178
|
+
*
|
|
19179
|
+
* @remarks
|
|
19180
|
+
* This key constant provides type-safe access to the `payment_method_id` property of WalletCreditRequest objects.
|
|
19181
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19182
|
+
*
|
|
19183
|
+
* @example
|
|
19184
|
+
* ```typescript
|
|
19185
|
+
* // Direct property access
|
|
19186
|
+
* const value = walletcreditrequest[KEY_WALLET_CREDIT_REQUEST_PAYMENT_METHOD_ID];
|
|
19187
|
+
*
|
|
19188
|
+
* // Dynamic property access
|
|
19189
|
+
* const propertyName = KEY_WALLET_CREDIT_REQUEST_PAYMENT_METHOD_ID;
|
|
19190
|
+
* const value = walletcreditrequest[propertyName];
|
|
19191
|
+
* ```
|
|
19192
|
+
*
|
|
19193
|
+
* @see {@link WalletCreditRequest} - The TypeScript type definition
|
|
19194
|
+
* @see {@link KEYS_WALLET_CREDIT_REQUEST} - Array of all keys for this type
|
|
19195
|
+
*/
|
|
19196
|
+
export const KEY_WALLET_CREDIT_REQUEST_PAYMENT_METHOD_ID = 'payment_method_id' as keyof WalletCreditRequest;
|
|
19197
|
+
|
|
19198
|
+
/**
|
|
19199
|
+
* Array of all WalletCreditRequest property keys
|
|
19200
|
+
*
|
|
19201
|
+
* @remarks
|
|
19202
|
+
* This constant provides a readonly array containing all valid property keys for WalletCreditRequest objects.
|
|
19203
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
19204
|
+
*
|
|
19205
|
+
* @example
|
|
19206
|
+
* ```typescript
|
|
19207
|
+
* // Iterating through all keys
|
|
19208
|
+
* for (const key of KEYS_WALLET_CREDIT_REQUEST) {
|
|
19209
|
+
* console.log(`Property: ${key}, Value: ${walletcreditrequest[key]}`);
|
|
19210
|
+
* }
|
|
19211
|
+
*
|
|
19212
|
+
* // Validation
|
|
19213
|
+
* const isValidKey = KEYS_WALLET_CREDIT_REQUEST.includes(someKey);
|
|
19214
|
+
* ```
|
|
19215
|
+
*
|
|
19216
|
+
* @see {@link WalletCreditRequest} - The TypeScript type definition
|
|
19217
|
+
*/
|
|
19218
|
+
export const KEYS_WALLET_CREDIT_REQUEST = [
|
|
19219
|
+
KEY_WALLET_CREDIT_REQUEST_AMOUNT,
|
|
19220
|
+
KEY_WALLET_CREDIT_REQUEST_PAYMENT_METHOD_ID,
|
|
19221
|
+
] as const satisfies (keyof WalletCreditRequest)[];
|
|
19222
|
+
|
|
19223
|
+
/**
|
|
19224
|
+
* Amount
|
|
19225
|
+
*
|
|
19226
|
+
* Amount credited to the customer wallet
|
|
19227
|
+
*
|
|
19228
|
+
* @type {string}
|
|
19229
|
+
*
|
|
19230
|
+
*
|
|
19231
|
+
* @remarks
|
|
19232
|
+
* This key constant provides type-safe access to the `amount` property of WalletCreditResponseWithBalance objects.
|
|
19233
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19234
|
+
*
|
|
19235
|
+
* @example
|
|
19236
|
+
* ```typescript
|
|
19237
|
+
* // Direct property access
|
|
19238
|
+
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_AMOUNT];
|
|
19239
|
+
*
|
|
19240
|
+
* // Dynamic property access
|
|
19241
|
+
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_AMOUNT;
|
|
19242
|
+
* const value = walletcreditresponsewithbalance[propertyName];
|
|
19243
|
+
* ```
|
|
19244
|
+
*
|
|
19245
|
+
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
19246
|
+
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
19247
|
+
*/
|
|
19248
|
+
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_AMOUNT = 'amount' as keyof WalletCreditResponseWithBalance;
|
|
19249
|
+
/**
|
|
19250
|
+
* Balance
|
|
19251
|
+
*
|
|
19252
|
+
* Updated wallet balance after the credit
|
|
19253
|
+
*
|
|
19254
|
+
* @type {string}
|
|
19255
|
+
*
|
|
19256
|
+
*
|
|
19257
|
+
* @remarks
|
|
19258
|
+
* This key constant provides type-safe access to the `balance` property of WalletCreditResponseWithBalance objects.
|
|
19259
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19260
|
+
*
|
|
19261
|
+
* @example
|
|
19262
|
+
* ```typescript
|
|
19263
|
+
* // Direct property access
|
|
19264
|
+
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_BALANCE];
|
|
19265
|
+
*
|
|
19266
|
+
* // Dynamic property access
|
|
19267
|
+
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_BALANCE;
|
|
19268
|
+
* const value = walletcreditresponsewithbalance[propertyName];
|
|
19269
|
+
* ```
|
|
19270
|
+
*
|
|
19271
|
+
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
19272
|
+
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
19273
|
+
*/
|
|
19274
|
+
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_BALANCE = 'balance' as keyof WalletCreditResponseWithBalance;
|
|
19275
|
+
/**
|
|
19276
|
+
* Credit Id
|
|
19277
|
+
*
|
|
19278
|
+
* Unique identifier of the wallet credit transaction
|
|
19279
|
+
*
|
|
19280
|
+
* @type {string}
|
|
19281
|
+
*
|
|
19282
|
+
*
|
|
19283
|
+
* @remarks
|
|
19284
|
+
* This key constant provides type-safe access to the `credit_id` property of WalletCreditResponseWithBalance objects.
|
|
19285
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19286
|
+
*
|
|
19287
|
+
* @example
|
|
19288
|
+
* ```typescript
|
|
19289
|
+
* // Direct property access
|
|
19290
|
+
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CREDIT_ID];
|
|
19291
|
+
*
|
|
19292
|
+
* // Dynamic property access
|
|
19293
|
+
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CREDIT_ID;
|
|
19294
|
+
* const value = walletcreditresponsewithbalance[propertyName];
|
|
19295
|
+
* ```
|
|
19296
|
+
*
|
|
19297
|
+
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
19298
|
+
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
19299
|
+
*/
|
|
19300
|
+
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CREDIT_ID = 'credit_id' as keyof WalletCreditResponseWithBalance;
|
|
19301
|
+
/**
|
|
19302
|
+
* Message
|
|
19303
|
+
*
|
|
19304
|
+
* Optional human-readable message describing the result
|
|
19305
|
+
*
|
|
19306
|
+
*
|
|
19307
|
+
*
|
|
19308
|
+
* @remarks
|
|
19309
|
+
* This key constant provides type-safe access to the `message` property of WalletCreditResponseWithBalance objects.
|
|
19310
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19311
|
+
*
|
|
19312
|
+
* @example
|
|
19313
|
+
* ```typescript
|
|
19314
|
+
* // Direct property access
|
|
19315
|
+
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_MESSAGE];
|
|
19316
|
+
*
|
|
19317
|
+
* // Dynamic property access
|
|
19318
|
+
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_MESSAGE;
|
|
19319
|
+
* const value = walletcreditresponsewithbalance[propertyName];
|
|
19320
|
+
* ```
|
|
19321
|
+
*
|
|
19322
|
+
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
19323
|
+
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
19324
|
+
*/
|
|
19325
|
+
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_MESSAGE = 'message' as keyof WalletCreditResponseWithBalance;
|
|
19326
|
+
/**
|
|
19327
|
+
* status property
|
|
19328
|
+
*
|
|
19329
|
+
* Status of the credit operation
|
|
19330
|
+
*
|
|
19331
|
+
*
|
|
19332
|
+
*
|
|
19333
|
+
* @remarks
|
|
19334
|
+
* This key constant provides type-safe access to the `status` property of WalletCreditResponseWithBalance objects.
|
|
19335
|
+
* Use this constant when you need to access properties dynamically or ensure type safety.
|
|
19336
|
+
*
|
|
19337
|
+
* @example
|
|
19338
|
+
* ```typescript
|
|
19339
|
+
* // Direct property access
|
|
19340
|
+
* const value = walletcreditresponsewithbalance[KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_STATUS];
|
|
19341
|
+
*
|
|
19342
|
+
* // Dynamic property access
|
|
19343
|
+
* const propertyName = KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_STATUS;
|
|
19344
|
+
* const value = walletcreditresponsewithbalance[propertyName];
|
|
19345
|
+
* ```
|
|
19346
|
+
*
|
|
19347
|
+
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
19348
|
+
* @see {@link KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE} - Array of all keys for this type
|
|
19349
|
+
*/
|
|
19350
|
+
export const KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_STATUS = 'status' as keyof WalletCreditResponseWithBalance;
|
|
19351
|
+
|
|
19352
|
+
/**
|
|
19353
|
+
* Array of all WalletCreditResponseWithBalance property keys
|
|
19354
|
+
*
|
|
19355
|
+
* @remarks
|
|
19356
|
+
* This constant provides a readonly array containing all valid property keys for WalletCreditResponseWithBalance objects.
|
|
19357
|
+
* Useful for iteration, validation, and generating dynamic UI components.
|
|
19358
|
+
*
|
|
19359
|
+
* @example
|
|
19360
|
+
* ```typescript
|
|
19361
|
+
* // Iterating through all keys
|
|
19362
|
+
* for (const key of KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE) {
|
|
19363
|
+
* console.log(`Property: ${key}, Value: ${walletcreditresponsewithbalance[key]}`);
|
|
19364
|
+
* }
|
|
19365
|
+
*
|
|
19366
|
+
* // Validation
|
|
19367
|
+
* const isValidKey = KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE.includes(someKey);
|
|
19368
|
+
* ```
|
|
19369
|
+
*
|
|
19370
|
+
* @see {@link WalletCreditResponseWithBalance} - The TypeScript type definition
|
|
19371
|
+
*/
|
|
19372
|
+
export const KEYS_WALLET_CREDIT_RESPONSE_WITH_BALANCE = [
|
|
19373
|
+
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_AMOUNT,
|
|
19374
|
+
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_BALANCE,
|
|
19375
|
+
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_CREDIT_ID,
|
|
19376
|
+
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_MESSAGE,
|
|
19377
|
+
KEY_WALLET_CREDIT_RESPONSE_WITH_BALANCE_STATUS,
|
|
19378
|
+
] as const satisfies (keyof WalletCreditResponseWithBalance)[];
|
|
19379
|
+
|
|
18592
19380
|
/**
|
|
18593
19381
|
* Whois Server
|
|
18594
19382
|
*
|