orb-billing 1.28.1 → 1.30.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/CHANGELOG.md +32 -0
- package/package.json +27 -23
- package/resources/customers/credits/ledger.d.ts +142 -66
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/customers.d.ts +13 -5
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/invoices.d.ts +46 -4
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs.map +1 -1
- package/resources/metrics.d.ts +15 -7
- package/resources/metrics.d.ts.map +1 -1
- package/resources/metrics.js.map +1 -1
- package/resources/metrics.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +3 -1
- package/resources/plans/external-plan-id.d.ts.map +1 -1
- package/resources/plans/external-plan-id.js.map +1 -1
- package/resources/plans/external-plan-id.mjs.map +1 -1
- package/resources/plans/plans.d.ts +10 -4
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/subscriptions.d.ts +7 -3
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/resources/customers/credits/ledger.ts +142 -66
- package/src/resources/customers/customers.ts +13 -5
- package/src/resources/invoices.ts +54 -4
- package/src/resources/metrics.ts +15 -7
- package/src/resources/plans/external-plan-id.ts +3 -1
- package/src/resources/plans/plans.ts +10 -4
- package/src/resources/subscriptions.ts +7 -3
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.30.0 (2023-11-28)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.29.0...v1.30.0](https://github.com/orbcorp/orb-node/compare/v1.29.0...v1.30.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** updates ([#45](https://github.com/orbcorp/orb-node/issues/45)) ([7a04e1a](https://github.com/orbcorp/orb-node/commit/7a04e1aab11063627d2ef73701864d60d0c1cbbe))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Chores
|
|
13
|
+
|
|
14
|
+
* **internal:** remove file import and conditionally run prepare ([#43](https://github.com/orbcorp/orb-node/issues/43)) ([c65b596](https://github.com/orbcorp/orb-node/commit/c65b5961a26fa2eda9fe806a2214dfe518f6e447))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
* **api:** update metadata docstrings ([#41](https://github.com/orbcorp/orb-node/issues/41)) ([4334af2](https://github.com/orbcorp/orb-node/commit/4334af25186dae687ad96ab323d5fa53d15b220f))
|
|
20
|
+
|
|
21
|
+
## 1.29.0 (2023-11-22)
|
|
22
|
+
|
|
23
|
+
Full Changelog: [v1.28.1...v1.29.0](https://github.com/orbcorp/orb-node/compare/v1.28.1...v1.29.0)
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* allow installing package directly from github ([#37](https://github.com/orbcorp/orb-node/issues/37)) ([8791b26](https://github.com/orbcorp/orb-node/commit/8791b26c93d33807434ad51f40f4e998567216f7))
|
|
28
|
+
* **api:** updates ([#40](https://github.com/orbcorp/orb-node/issues/40)) ([2a17035](https://github.com/orbcorp/orb-node/commit/2a1703539b5c4df7c2b1dc6a5a10b720fa53fa0d))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Chores
|
|
32
|
+
|
|
33
|
+
* **internal:** don't call prepare in dist ([#39](https://github.com/orbcorp/orb-node/issues/39)) ([986847c](https://github.com/orbcorp/orb-node/commit/986847ce30bdf30bb5e8b8f5e7269b146e726a9c))
|
|
34
|
+
|
|
3
35
|
## 1.28.1 (2023-11-20)
|
|
4
36
|
|
|
5
37
|
Full Changelog: [v1.28.0...v1.28.1](https://github.com/orbcorp/orb-node/compare/v1.28.0...v1.28.1)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "orb-billing",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.30.0",
|
|
4
|
+
"description": "The official TypeScript library for the Orb API",
|
|
5
5
|
"author": "Orb <team@withorb.com>",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"main": "./index.js",
|
|
@@ -9,6 +9,27 @@
|
|
|
9
9
|
"repository": "github:orbcorp/orb-node",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"private": false,
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "bin/check-test-server && yarn jest",
|
|
14
|
+
"build": "bash ./build",
|
|
15
|
+
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
16
|
+
"tsn": "ts-node -r tsconfig-paths/register",
|
|
17
|
+
"lint": "eslint --ext ts,js .",
|
|
18
|
+
"fix": "eslint --fix --ext ts,js ."
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@types/node": "^18.11.18",
|
|
22
|
+
"@types/node-fetch": "^2.6.4",
|
|
23
|
+
"@types/qs": "^6.9.7",
|
|
24
|
+
"abort-controller": "^3.0.0",
|
|
25
|
+
"agentkeepalive": "^4.2.1",
|
|
26
|
+
"digest-fetch": "^1.3.0",
|
|
27
|
+
"form-data-encoder": "1.7.2",
|
|
28
|
+
"formdata-node": "^4.3.2",
|
|
29
|
+
"node-fetch": "^2.6.7",
|
|
30
|
+
"qs": "^6.10.3",
|
|
31
|
+
"web-streams-polyfill": "^3.2.1"
|
|
32
|
+
},
|
|
12
33
|
"sideEffects": [
|
|
13
34
|
"./_shims/index.js",
|
|
14
35
|
"./_shims/index.mjs",
|
|
@@ -17,6 +38,10 @@
|
|
|
17
38
|
"./shims/web.js",
|
|
18
39
|
"./shims/web.mjs"
|
|
19
40
|
],
|
|
41
|
+
"imports": {
|
|
42
|
+
"orb-billing": ".",
|
|
43
|
+
"orb-billing/*": "./src/*"
|
|
44
|
+
},
|
|
20
45
|
"exports": {
|
|
21
46
|
"./_shims/auto/*": {
|
|
22
47
|
"deno": {
|
|
@@ -74,26 +99,5 @@
|
|
|
74
99
|
"require": "./*.js",
|
|
75
100
|
"default": "./*.mjs"
|
|
76
101
|
}
|
|
77
|
-
},
|
|
78
|
-
"scripts": {
|
|
79
|
-
"test": "bin/check-test-server && yarn jest",
|
|
80
|
-
"build": "bash ./build",
|
|
81
|
-
"format": "prettier --write --cache --cache-strategy metadata . !dist",
|
|
82
|
-
"tsn": "ts-node -r tsconfig-paths/register",
|
|
83
|
-
"lint": "eslint --ext ts,js .",
|
|
84
|
-
"fix": "eslint --fix --ext ts,js ."
|
|
85
|
-
},
|
|
86
|
-
"dependencies": {
|
|
87
|
-
"@types/node": "^18.11.18",
|
|
88
|
-
"@types/node-fetch": "^2.6.4",
|
|
89
|
-
"@types/qs": "^6.9.7",
|
|
90
|
-
"abort-controller": "^3.0.0",
|
|
91
|
-
"agentkeepalive": "^4.2.1",
|
|
92
|
-
"digest-fetch": "^1.3.0",
|
|
93
|
-
"form-data-encoder": "1.7.2",
|
|
94
|
-
"formdata-node": "^4.3.2",
|
|
95
|
-
"node-fetch": "^2.6.7",
|
|
96
|
-
"qs": "^6.10.3",
|
|
97
|
-
"web-streams-polyfill": "^3.2.1"
|
|
98
102
|
}
|
|
99
103
|
}
|
|
@@ -420,8 +420,10 @@ export declare namespace LedgerListResponse {
|
|
|
420
420
|
entry_type: 'increment';
|
|
421
421
|
ledger_sequence_number: number;
|
|
422
422
|
/**
|
|
423
|
-
* User specified key-value pairs. If not
|
|
424
|
-
* dictionary.
|
|
423
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
424
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
425
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
426
|
+
* `null`.
|
|
425
427
|
*/
|
|
426
428
|
metadata: Record<string, string>;
|
|
427
429
|
starting_balance: number;
|
|
@@ -449,8 +451,10 @@ export declare namespace LedgerListResponse {
|
|
|
449
451
|
entry_type: 'decrement';
|
|
450
452
|
ledger_sequence_number: number;
|
|
451
453
|
/**
|
|
452
|
-
* User specified key-value pairs. If not
|
|
453
|
-
* dictionary.
|
|
454
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
455
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
456
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
457
|
+
* `null`.
|
|
454
458
|
*/
|
|
455
459
|
metadata: Record<string, string>;
|
|
456
460
|
starting_balance: number;
|
|
@@ -481,8 +485,10 @@ export declare namespace LedgerListResponse {
|
|
|
481
485
|
entry_type: 'expiration_change';
|
|
482
486
|
ledger_sequence_number: number;
|
|
483
487
|
/**
|
|
484
|
-
* User specified key-value pairs. If not
|
|
485
|
-
* dictionary.
|
|
488
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
489
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
490
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
491
|
+
* `null`.
|
|
486
492
|
*/
|
|
487
493
|
metadata: Record<string, string>;
|
|
488
494
|
new_block_expiry_date: string;
|
|
@@ -511,8 +517,10 @@ export declare namespace LedgerListResponse {
|
|
|
511
517
|
entry_type: 'credit_block_expiry';
|
|
512
518
|
ledger_sequence_number: number;
|
|
513
519
|
/**
|
|
514
|
-
* User specified key-value pairs. If not
|
|
515
|
-
* dictionary.
|
|
520
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
521
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
522
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
523
|
+
* `null`.
|
|
516
524
|
*/
|
|
517
525
|
metadata: Record<string, string>;
|
|
518
526
|
starting_balance: number;
|
|
@@ -540,8 +548,10 @@ export declare namespace LedgerListResponse {
|
|
|
540
548
|
entry_type: 'void';
|
|
541
549
|
ledger_sequence_number: number;
|
|
542
550
|
/**
|
|
543
|
-
* User specified key-value pairs. If not
|
|
544
|
-
* dictionary.
|
|
551
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
552
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
553
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
554
|
+
* `null`.
|
|
545
555
|
*/
|
|
546
556
|
metadata: Record<string, string>;
|
|
547
557
|
starting_balance: number;
|
|
@@ -571,8 +581,10 @@ export declare namespace LedgerListResponse {
|
|
|
571
581
|
entry_type: 'void_initiated';
|
|
572
582
|
ledger_sequence_number: number;
|
|
573
583
|
/**
|
|
574
|
-
* User specified key-value pairs. If not
|
|
575
|
-
* dictionary.
|
|
584
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
585
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
586
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
587
|
+
* `null`.
|
|
576
588
|
*/
|
|
577
589
|
metadata: Record<string, string>;
|
|
578
590
|
new_block_expiry_date: string;
|
|
@@ -603,8 +615,10 @@ export declare namespace LedgerListResponse {
|
|
|
603
615
|
entry_type: 'amendment';
|
|
604
616
|
ledger_sequence_number: number;
|
|
605
617
|
/**
|
|
606
|
-
* User specified key-value pairs. If not
|
|
607
|
-
* dictionary.
|
|
618
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
619
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
620
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
621
|
+
* `null`.
|
|
608
622
|
*/
|
|
609
623
|
metadata: Record<string, string>;
|
|
610
624
|
starting_balance: number;
|
|
@@ -639,8 +653,10 @@ export declare namespace LedgerCreateEntryResponse {
|
|
|
639
653
|
entry_type: 'increment';
|
|
640
654
|
ledger_sequence_number: number;
|
|
641
655
|
/**
|
|
642
|
-
* User specified key-value pairs. If not
|
|
643
|
-
* dictionary.
|
|
656
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
657
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
658
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
659
|
+
* `null`.
|
|
644
660
|
*/
|
|
645
661
|
metadata: Record<string, string>;
|
|
646
662
|
starting_balance: number;
|
|
@@ -668,8 +684,10 @@ export declare namespace LedgerCreateEntryResponse {
|
|
|
668
684
|
entry_type: 'decrement';
|
|
669
685
|
ledger_sequence_number: number;
|
|
670
686
|
/**
|
|
671
|
-
* User specified key-value pairs. If not
|
|
672
|
-
* dictionary.
|
|
687
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
688
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
689
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
690
|
+
* `null`.
|
|
673
691
|
*/
|
|
674
692
|
metadata: Record<string, string>;
|
|
675
693
|
starting_balance: number;
|
|
@@ -700,8 +718,10 @@ export declare namespace LedgerCreateEntryResponse {
|
|
|
700
718
|
entry_type: 'expiration_change';
|
|
701
719
|
ledger_sequence_number: number;
|
|
702
720
|
/**
|
|
703
|
-
* User specified key-value pairs. If not
|
|
704
|
-
* dictionary.
|
|
721
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
722
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
723
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
724
|
+
* `null`.
|
|
705
725
|
*/
|
|
706
726
|
metadata: Record<string, string>;
|
|
707
727
|
new_block_expiry_date: string;
|
|
@@ -730,8 +750,10 @@ export declare namespace LedgerCreateEntryResponse {
|
|
|
730
750
|
entry_type: 'credit_block_expiry';
|
|
731
751
|
ledger_sequence_number: number;
|
|
732
752
|
/**
|
|
733
|
-
* User specified key-value pairs. If not
|
|
734
|
-
* dictionary.
|
|
753
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
754
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
755
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
756
|
+
* `null`.
|
|
735
757
|
*/
|
|
736
758
|
metadata: Record<string, string>;
|
|
737
759
|
starting_balance: number;
|
|
@@ -759,8 +781,10 @@ export declare namespace LedgerCreateEntryResponse {
|
|
|
759
781
|
entry_type: 'void';
|
|
760
782
|
ledger_sequence_number: number;
|
|
761
783
|
/**
|
|
762
|
-
* User specified key-value pairs. If not
|
|
763
|
-
* dictionary.
|
|
784
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
785
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
786
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
787
|
+
* `null`.
|
|
764
788
|
*/
|
|
765
789
|
metadata: Record<string, string>;
|
|
766
790
|
starting_balance: number;
|
|
@@ -790,8 +814,10 @@ export declare namespace LedgerCreateEntryResponse {
|
|
|
790
814
|
entry_type: 'void_initiated';
|
|
791
815
|
ledger_sequence_number: number;
|
|
792
816
|
/**
|
|
793
|
-
* User specified key-value pairs. If not
|
|
794
|
-
* dictionary.
|
|
817
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
818
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
819
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
820
|
+
* `null`.
|
|
795
821
|
*/
|
|
796
822
|
metadata: Record<string, string>;
|
|
797
823
|
new_block_expiry_date: string;
|
|
@@ -822,8 +848,10 @@ export declare namespace LedgerCreateEntryResponse {
|
|
|
822
848
|
entry_type: 'amendment';
|
|
823
849
|
ledger_sequence_number: number;
|
|
824
850
|
/**
|
|
825
|
-
* User specified key-value pairs. If not
|
|
826
|
-
* dictionary.
|
|
851
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
852
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
853
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
854
|
+
* `null`.
|
|
827
855
|
*/
|
|
828
856
|
metadata: Record<string, string>;
|
|
829
857
|
starting_balance: number;
|
|
@@ -858,8 +886,10 @@ export declare namespace LedgerCreateEntryByExternalIDResponse {
|
|
|
858
886
|
entry_type: 'increment';
|
|
859
887
|
ledger_sequence_number: number;
|
|
860
888
|
/**
|
|
861
|
-
* User specified key-value pairs. If not
|
|
862
|
-
* dictionary.
|
|
889
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
890
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
891
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
892
|
+
* `null`.
|
|
863
893
|
*/
|
|
864
894
|
metadata: Record<string, string>;
|
|
865
895
|
starting_balance: number;
|
|
@@ -887,8 +917,10 @@ export declare namespace LedgerCreateEntryByExternalIDResponse {
|
|
|
887
917
|
entry_type: 'decrement';
|
|
888
918
|
ledger_sequence_number: number;
|
|
889
919
|
/**
|
|
890
|
-
* User specified key-value pairs. If not
|
|
891
|
-
* dictionary.
|
|
920
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
921
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
922
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
923
|
+
* `null`.
|
|
892
924
|
*/
|
|
893
925
|
metadata: Record<string, string>;
|
|
894
926
|
starting_balance: number;
|
|
@@ -919,8 +951,10 @@ export declare namespace LedgerCreateEntryByExternalIDResponse {
|
|
|
919
951
|
entry_type: 'expiration_change';
|
|
920
952
|
ledger_sequence_number: number;
|
|
921
953
|
/**
|
|
922
|
-
* User specified key-value pairs. If not
|
|
923
|
-
* dictionary.
|
|
954
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
955
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
956
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
957
|
+
* `null`.
|
|
924
958
|
*/
|
|
925
959
|
metadata: Record<string, string>;
|
|
926
960
|
new_block_expiry_date: string;
|
|
@@ -949,8 +983,10 @@ export declare namespace LedgerCreateEntryByExternalIDResponse {
|
|
|
949
983
|
entry_type: 'credit_block_expiry';
|
|
950
984
|
ledger_sequence_number: number;
|
|
951
985
|
/**
|
|
952
|
-
* User specified key-value pairs. If not
|
|
953
|
-
* dictionary.
|
|
986
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
987
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
988
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
989
|
+
* `null`.
|
|
954
990
|
*/
|
|
955
991
|
metadata: Record<string, string>;
|
|
956
992
|
starting_balance: number;
|
|
@@ -978,8 +1014,10 @@ export declare namespace LedgerCreateEntryByExternalIDResponse {
|
|
|
978
1014
|
entry_type: 'void';
|
|
979
1015
|
ledger_sequence_number: number;
|
|
980
1016
|
/**
|
|
981
|
-
* User specified key-value pairs. If not
|
|
982
|
-
* dictionary.
|
|
1017
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1018
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1019
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1020
|
+
* `null`.
|
|
983
1021
|
*/
|
|
984
1022
|
metadata: Record<string, string>;
|
|
985
1023
|
starting_balance: number;
|
|
@@ -1009,8 +1047,10 @@ export declare namespace LedgerCreateEntryByExternalIDResponse {
|
|
|
1009
1047
|
entry_type: 'void_initiated';
|
|
1010
1048
|
ledger_sequence_number: number;
|
|
1011
1049
|
/**
|
|
1012
|
-
* User specified key-value pairs. If not
|
|
1013
|
-
* dictionary.
|
|
1050
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1051
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1052
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1053
|
+
* `null`.
|
|
1014
1054
|
*/
|
|
1015
1055
|
metadata: Record<string, string>;
|
|
1016
1056
|
new_block_expiry_date: string;
|
|
@@ -1041,8 +1081,10 @@ export declare namespace LedgerCreateEntryByExternalIDResponse {
|
|
|
1041
1081
|
entry_type: 'amendment';
|
|
1042
1082
|
ledger_sequence_number: number;
|
|
1043
1083
|
/**
|
|
1044
|
-
* User specified key-value pairs. If not
|
|
1045
|
-
* dictionary.
|
|
1084
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1085
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1086
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1087
|
+
* `null`.
|
|
1046
1088
|
*/
|
|
1047
1089
|
metadata: Record<string, string>;
|
|
1048
1090
|
starting_balance: number;
|
|
@@ -1077,8 +1119,10 @@ export declare namespace LedgerListByExternalIDResponse {
|
|
|
1077
1119
|
entry_type: 'increment';
|
|
1078
1120
|
ledger_sequence_number: number;
|
|
1079
1121
|
/**
|
|
1080
|
-
* User specified key-value pairs. If not
|
|
1081
|
-
* dictionary.
|
|
1122
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1123
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1124
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1125
|
+
* `null`.
|
|
1082
1126
|
*/
|
|
1083
1127
|
metadata: Record<string, string>;
|
|
1084
1128
|
starting_balance: number;
|
|
@@ -1106,8 +1150,10 @@ export declare namespace LedgerListByExternalIDResponse {
|
|
|
1106
1150
|
entry_type: 'decrement';
|
|
1107
1151
|
ledger_sequence_number: number;
|
|
1108
1152
|
/**
|
|
1109
|
-
* User specified key-value pairs. If not
|
|
1110
|
-
* dictionary.
|
|
1153
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1154
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1155
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1156
|
+
* `null`.
|
|
1111
1157
|
*/
|
|
1112
1158
|
metadata: Record<string, string>;
|
|
1113
1159
|
starting_balance: number;
|
|
@@ -1138,8 +1184,10 @@ export declare namespace LedgerListByExternalIDResponse {
|
|
|
1138
1184
|
entry_type: 'expiration_change';
|
|
1139
1185
|
ledger_sequence_number: number;
|
|
1140
1186
|
/**
|
|
1141
|
-
* User specified key-value pairs. If not
|
|
1142
|
-
* dictionary.
|
|
1187
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1188
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1189
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1190
|
+
* `null`.
|
|
1143
1191
|
*/
|
|
1144
1192
|
metadata: Record<string, string>;
|
|
1145
1193
|
new_block_expiry_date: string;
|
|
@@ -1168,8 +1216,10 @@ export declare namespace LedgerListByExternalIDResponse {
|
|
|
1168
1216
|
entry_type: 'credit_block_expiry';
|
|
1169
1217
|
ledger_sequence_number: number;
|
|
1170
1218
|
/**
|
|
1171
|
-
* User specified key-value pairs. If not
|
|
1172
|
-
* dictionary.
|
|
1219
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1220
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1221
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1222
|
+
* `null`.
|
|
1173
1223
|
*/
|
|
1174
1224
|
metadata: Record<string, string>;
|
|
1175
1225
|
starting_balance: number;
|
|
@@ -1197,8 +1247,10 @@ export declare namespace LedgerListByExternalIDResponse {
|
|
|
1197
1247
|
entry_type: 'void';
|
|
1198
1248
|
ledger_sequence_number: number;
|
|
1199
1249
|
/**
|
|
1200
|
-
* User specified key-value pairs. If not
|
|
1201
|
-
* dictionary.
|
|
1250
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1251
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1252
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1253
|
+
* `null`.
|
|
1202
1254
|
*/
|
|
1203
1255
|
metadata: Record<string, string>;
|
|
1204
1256
|
starting_balance: number;
|
|
@@ -1228,8 +1280,10 @@ export declare namespace LedgerListByExternalIDResponse {
|
|
|
1228
1280
|
entry_type: 'void_initiated';
|
|
1229
1281
|
ledger_sequence_number: number;
|
|
1230
1282
|
/**
|
|
1231
|
-
* User specified key-value pairs. If not
|
|
1232
|
-
* dictionary.
|
|
1283
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1284
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1285
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1286
|
+
* `null`.
|
|
1233
1287
|
*/
|
|
1234
1288
|
metadata: Record<string, string>;
|
|
1235
1289
|
new_block_expiry_date: string;
|
|
@@ -1260,8 +1314,10 @@ export declare namespace LedgerListByExternalIDResponse {
|
|
|
1260
1314
|
entry_type: 'amendment';
|
|
1261
1315
|
ledger_sequence_number: number;
|
|
1262
1316
|
/**
|
|
1263
|
-
* User specified key-value pairs. If not
|
|
1264
|
-
* dictionary.
|
|
1317
|
+
* User specified key-value pairs for the resource. If not present, this defaults
|
|
1318
|
+
* to an empty dictionary. Individual keys can be removed by setting the value to
|
|
1319
|
+
* `null`, and the entire metadata mapping can be cleared by setting `metadata` to
|
|
1320
|
+
* `null`.
|
|
1265
1321
|
*/
|
|
1266
1322
|
metadata: Record<string, string>;
|
|
1267
1323
|
starting_balance: number;
|
|
@@ -1321,7 +1377,9 @@ export declare namespace LedgerCreateEntryParams {
|
|
|
1321
1377
|
*/
|
|
1322
1378
|
invoice_settings?: LedgerCreateEntryParams.AddIncrementCreditLedgerEntryRequestParams.InvoiceSettings | null;
|
|
1323
1379
|
/**
|
|
1324
|
-
* User-specified key/value pairs for the resource.
|
|
1380
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1381
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1382
|
+
* by setting `metadata` to `null`.
|
|
1325
1383
|
*/
|
|
1326
1384
|
metadata?: Record<string, string | null> | null;
|
|
1327
1385
|
/**
|
|
@@ -1369,7 +1427,9 @@ export declare namespace LedgerCreateEntryParams {
|
|
|
1369
1427
|
*/
|
|
1370
1428
|
description?: string | null;
|
|
1371
1429
|
/**
|
|
1372
|
-
* User-specified key/value pairs for the resource.
|
|
1430
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1431
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1432
|
+
* by setting `metadata` to `null`.
|
|
1373
1433
|
*/
|
|
1374
1434
|
metadata?: Record<string, string | null> | null;
|
|
1375
1435
|
}
|
|
@@ -1403,7 +1463,9 @@ export declare namespace LedgerCreateEntryParams {
|
|
|
1403
1463
|
*/
|
|
1404
1464
|
description?: string | null;
|
|
1405
1465
|
/**
|
|
1406
|
-
* User-specified key/value pairs for the resource.
|
|
1466
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1467
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1468
|
+
* by setting `metadata` to `null`.
|
|
1407
1469
|
*/
|
|
1408
1470
|
metadata?: Record<string, string | null> | null;
|
|
1409
1471
|
}
|
|
@@ -1425,7 +1487,9 @@ export declare namespace LedgerCreateEntryParams {
|
|
|
1425
1487
|
*/
|
|
1426
1488
|
description?: string | null;
|
|
1427
1489
|
/**
|
|
1428
|
-
* User-specified key/value pairs for the resource.
|
|
1490
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1491
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1492
|
+
* by setting `metadata` to `null`.
|
|
1429
1493
|
*/
|
|
1430
1494
|
metadata?: Record<string, string | null> | null;
|
|
1431
1495
|
/**
|
|
@@ -1451,7 +1515,9 @@ export declare namespace LedgerCreateEntryParams {
|
|
|
1451
1515
|
*/
|
|
1452
1516
|
description?: string | null;
|
|
1453
1517
|
/**
|
|
1454
|
-
* User-specified key/value pairs for the resource.
|
|
1518
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1519
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1520
|
+
* by setting `metadata` to `null`.
|
|
1455
1521
|
*/
|
|
1456
1522
|
metadata?: Record<string, string | null> | null;
|
|
1457
1523
|
}
|
|
@@ -1489,7 +1555,9 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
|
|
|
1489
1555
|
*/
|
|
1490
1556
|
invoice_settings?: LedgerCreateEntryByExternalIDParams.AddIncrementCreditLedgerEntryRequestParams.InvoiceSettings | null;
|
|
1491
1557
|
/**
|
|
1492
|
-
* User-specified key/value pairs for the resource.
|
|
1558
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1559
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1560
|
+
* by setting `metadata` to `null`.
|
|
1493
1561
|
*/
|
|
1494
1562
|
metadata?: Record<string, string | null> | null;
|
|
1495
1563
|
/**
|
|
@@ -1537,7 +1605,9 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
|
|
|
1537
1605
|
*/
|
|
1538
1606
|
description?: string | null;
|
|
1539
1607
|
/**
|
|
1540
|
-
* User-specified key/value pairs for the resource.
|
|
1608
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1609
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1610
|
+
* by setting `metadata` to `null`.
|
|
1541
1611
|
*/
|
|
1542
1612
|
metadata?: Record<string, string | null> | null;
|
|
1543
1613
|
}
|
|
@@ -1571,7 +1641,9 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
|
|
|
1571
1641
|
*/
|
|
1572
1642
|
description?: string | null;
|
|
1573
1643
|
/**
|
|
1574
|
-
* User-specified key/value pairs for the resource.
|
|
1644
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1645
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1646
|
+
* by setting `metadata` to `null`.
|
|
1575
1647
|
*/
|
|
1576
1648
|
metadata?: Record<string, string | null> | null;
|
|
1577
1649
|
}
|
|
@@ -1593,7 +1665,9 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
|
|
|
1593
1665
|
*/
|
|
1594
1666
|
description?: string | null;
|
|
1595
1667
|
/**
|
|
1596
|
-
* User-specified key/value pairs for the resource.
|
|
1668
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1669
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1670
|
+
* by setting `metadata` to `null`.
|
|
1597
1671
|
*/
|
|
1598
1672
|
metadata?: Record<string, string | null> | null;
|
|
1599
1673
|
/**
|
|
@@ -1619,7 +1693,9 @@ export declare namespace LedgerCreateEntryByExternalIDParams {
|
|
|
1619
1693
|
*/
|
|
1620
1694
|
description?: string | null;
|
|
1621
1695
|
/**
|
|
1622
|
-
* User-specified key/value pairs for the resource.
|
|
1696
|
+
* User-specified key/value pairs for the resource. Individual keys can be removed
|
|
1697
|
+
* by setting the value to `null`, and the entire metadata mapping can be cleared
|
|
1698
|
+
* by setting `metadata` to `null`.
|
|
1623
1699
|
*/
|
|
1624
1700
|
metadata?: Record<string, string | null> | null;
|
|
1625
1701
|
}
|