increase 0.348.0 → 0.349.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 +9 -0
- package/error.d.ts +3 -1
- package/error.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/account-numbers.d.ts +1 -0
- package/resources/account-numbers.d.ts.map +1 -1
- package/resources/account-numbers.js.map +1 -1
- package/resources/account-numbers.mjs.map +1 -1
- package/resources/account-transfers.d.ts +1 -0
- package/resources/account-transfers.d.ts.map +1 -1
- package/resources/account-transfers.js.map +1 -1
- package/resources/account-transfers.mjs.map +1 -1
- package/resources/accounts.d.ts +1 -0
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/ach-transfers.d.ts +3 -0
- package/resources/ach-transfers.d.ts.map +1 -1
- package/resources/ach-transfers.js.map +1 -1
- package/resources/ach-transfers.mjs.map +1 -1
- package/resources/card-disputes.d.ts +2 -14
- package/resources/card-disputes.d.ts.map +1 -1
- package/resources/card-disputes.js.map +1 -1
- package/resources/card-disputes.mjs.map +1 -1
- package/resources/card-payments.d.ts +11 -0
- package/resources/card-payments.d.ts.map +1 -1
- package/resources/card-payments.js.map +1 -1
- package/resources/card-payments.mjs.map +1 -1
- package/resources/card-purchase-supplements.d.ts +1 -0
- package/resources/card-purchase-supplements.d.ts.map +1 -1
- package/resources/card-purchase-supplements.js.map +1 -1
- package/resources/card-purchase-supplements.mjs.map +1 -1
- package/resources/card-push-transfers.d.ts +1 -0
- package/resources/card-push-transfers.d.ts.map +1 -1
- package/resources/card-push-transfers.js.map +1 -1
- package/resources/card-push-transfers.mjs.map +1 -1
- package/resources/card-validations.d.ts +1 -0
- package/resources/card-validations.d.ts.map +1 -1
- package/resources/card-validations.js.map +1 -1
- package/resources/card-validations.mjs.map +1 -1
- package/resources/cards.d.ts +1 -0
- package/resources/cards.d.ts.map +1 -1
- package/resources/cards.js.map +1 -1
- package/resources/cards.mjs.map +1 -1
- package/resources/check-deposits.d.ts +5 -0
- package/resources/check-deposits.d.ts.map +1 -1
- package/resources/check-deposits.js.map +1 -1
- package/resources/check-deposits.mjs.map +1 -1
- package/resources/check-transfers.d.ts +5 -0
- package/resources/check-transfers.d.ts.map +1 -1
- package/resources/check-transfers.js.map +1 -1
- package/resources/check-transfers.mjs.map +1 -1
- package/resources/declined-transactions.d.ts +8 -0
- package/resources/declined-transactions.d.ts.map +1 -1
- package/resources/declined-transactions.js.map +1 -1
- package/resources/declined-transactions.mjs.map +1 -1
- package/resources/entities.d.ts +5 -0
- package/resources/entities.d.ts.map +1 -1
- package/resources/entities.js.map +1 -1
- package/resources/entities.mjs.map +1 -1
- package/resources/external-accounts.d.ts +1 -0
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/files.d.ts +1 -0
- package/resources/files.d.ts.map +1 -1
- package/resources/files.js.map +1 -1
- package/resources/files.mjs.map +1 -1
- package/resources/inbound-fednow-transfers.d.ts +2 -0
- package/resources/inbound-fednow-transfers.d.ts.map +1 -1
- package/resources/inbound-fednow-transfers.js.map +1 -1
- package/resources/inbound-fednow-transfers.mjs.map +1 -1
- package/resources/inbound-mail-items.d.ts +1 -0
- package/resources/inbound-mail-items.d.ts.map +1 -1
- package/resources/inbound-mail-items.js.map +1 -1
- package/resources/inbound-mail-items.mjs.map +1 -1
- package/resources/inbound-wire-drawdown-requests.d.ts +1 -0
- package/resources/inbound-wire-drawdown-requests.d.ts.map +1 -1
- package/resources/inbound-wire-drawdown-requests.js.map +1 -1
- package/resources/inbound-wire-drawdown-requests.mjs.map +1 -1
- package/resources/inbound-wire-transfers.d.ts +1 -0
- package/resources/inbound-wire-transfers.d.ts.map +1 -1
- package/resources/inbound-wire-transfers.js.map +1 -1
- package/resources/inbound-wire-transfers.mjs.map +1 -1
- package/resources/pending-transactions.d.ts +15 -1
- package/resources/pending-transactions.d.ts.map +1 -1
- package/resources/pending-transactions.js.map +1 -1
- package/resources/pending-transactions.mjs.map +1 -1
- package/resources/physical-card-profiles.d.ts +1 -0
- package/resources/physical-card-profiles.d.ts.map +1 -1
- package/resources/physical-card-profiles.js.map +1 -1
- package/resources/physical-card-profiles.mjs.map +1 -1
- package/resources/real-time-decisions.d.ts +1 -0
- package/resources/real-time-decisions.d.ts.map +1 -1
- package/resources/real-time-payments-transfers.d.ts +1 -0
- package/resources/real-time-payments-transfers.d.ts.map +1 -1
- package/resources/real-time-payments-transfers.js.map +1 -1
- package/resources/real-time-payments-transfers.mjs.map +1 -1
- package/resources/transactions.d.ts +37 -0
- package/resources/transactions.d.ts.map +1 -1
- package/resources/transactions.js.map +1 -1
- package/resources/transactions.mjs.map +1 -1
- package/resources/wire-transfers.d.ts +197 -74
- package/resources/wire-transfers.d.ts.map +1 -1
- package/resources/wire-transfers.js +2 -1
- package/resources/wire-transfers.js.map +1 -1
- package/resources/wire-transfers.mjs +2 -1
- package/resources/wire-transfers.mjs.map +1 -1
- package/src/error.ts +1 -1
- package/src/resources/account-numbers.ts +2 -0
- package/src/resources/account-transfers.ts +2 -0
- package/src/resources/accounts.ts +2 -0
- package/src/resources/ach-transfers.ts +6 -0
- package/src/resources/card-disputes.ts +2 -14
- package/src/resources/card-payments.ts +22 -0
- package/src/resources/card-purchase-supplements.ts +2 -0
- package/src/resources/card-push-transfers.ts +2 -0
- package/src/resources/card-validations.ts +2 -0
- package/src/resources/cards.ts +2 -0
- package/src/resources/check-deposits.ts +10 -0
- package/src/resources/check-transfers.ts +10 -0
- package/src/resources/declined-transactions.ts +16 -0
- package/src/resources/entities.ts +10 -0
- package/src/resources/external-accounts.ts +2 -0
- package/src/resources/files.ts +2 -0
- package/src/resources/inbound-fednow-transfers.ts +4 -0
- package/src/resources/inbound-mail-items.ts +2 -0
- package/src/resources/inbound-wire-drawdown-requests.ts +2 -0
- package/src/resources/inbound-wire-transfers.ts +2 -0
- package/src/resources/pending-transactions.ts +25 -1
- package/src/resources/physical-card-profiles.ts +2 -0
- package/src/resources/real-time-decisions.ts +2 -0
- package/src/resources/real-time-payments-transfers.ts +2 -0
- package/src/resources/transactions.ts +74 -0
- package/src/resources/wire-transfers.ts +225 -89
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -126,6 +126,8 @@ export interface Transaction {
|
|
|
126
126
|
* `transaction`.
|
|
127
127
|
*/
|
|
128
128
|
type: 'transaction';
|
|
129
|
+
|
|
130
|
+
[k: string]: unknown;
|
|
129
131
|
}
|
|
130
132
|
|
|
131
133
|
export namespace Transaction {
|
|
@@ -540,6 +542,8 @@ export namespace Transaction {
|
|
|
540
542
|
* Transfer initiated via Increase and sent to a different bank.
|
|
541
543
|
*/
|
|
542
544
|
wire_transfer_intention: Source.WireTransferIntention | null;
|
|
545
|
+
|
|
546
|
+
[k: string]: unknown;
|
|
543
547
|
}
|
|
544
548
|
|
|
545
549
|
export namespace Source {
|
|
@@ -564,6 +568,8 @@ export namespace Transaction {
|
|
|
564
568
|
* The start of the period for which this transaction paid account revenue.
|
|
565
569
|
*/
|
|
566
570
|
period_start: string;
|
|
571
|
+
|
|
572
|
+
[k: string]: unknown;
|
|
567
573
|
}
|
|
568
574
|
|
|
569
575
|
/**
|
|
@@ -611,6 +617,8 @@ export namespace Transaction {
|
|
|
611
617
|
* The identifier of the Account Transfer that led to this Pending Transaction.
|
|
612
618
|
*/
|
|
613
619
|
transfer_id: string;
|
|
620
|
+
|
|
621
|
+
[k: string]: unknown;
|
|
614
622
|
}
|
|
615
623
|
|
|
616
624
|
/**
|
|
@@ -646,6 +654,8 @@ export namespace Transaction {
|
|
|
646
654
|
* The identifier of the ACH Transfer that led to this Transaction.
|
|
647
655
|
*/
|
|
648
656
|
transfer_id: string;
|
|
657
|
+
|
|
658
|
+
[k: string]: unknown;
|
|
649
659
|
}
|
|
650
660
|
|
|
651
661
|
/**
|
|
@@ -659,6 +669,8 @@ export namespace Transaction {
|
|
|
659
669
|
* The identifier of the ACH Transfer that led to this Transaction.
|
|
660
670
|
*/
|
|
661
671
|
transfer_id: string;
|
|
672
|
+
|
|
673
|
+
[k: string]: unknown;
|
|
662
674
|
}
|
|
663
675
|
|
|
664
676
|
/**
|
|
@@ -922,6 +934,8 @@ export namespace Transaction {
|
|
|
922
934
|
* The identifier of the ACH Transfer associated with this return.
|
|
923
935
|
*/
|
|
924
936
|
transfer_id: string;
|
|
937
|
+
|
|
938
|
+
[k: string]: unknown;
|
|
925
939
|
}
|
|
926
940
|
|
|
927
941
|
/**
|
|
@@ -941,6 +955,8 @@ export namespace Transaction {
|
|
|
941
955
|
* to your account.
|
|
942
956
|
*/
|
|
943
957
|
transaction_id: string;
|
|
958
|
+
|
|
959
|
+
[k: string]: unknown;
|
|
944
960
|
}
|
|
945
961
|
|
|
946
962
|
/**
|
|
@@ -974,6 +990,8 @@ export namespace Transaction {
|
|
|
974
990
|
* `network` is equal to `visa`.
|
|
975
991
|
*/
|
|
976
992
|
visa: CardDisputeFinancial.Visa | null;
|
|
993
|
+
|
|
994
|
+
[k: string]: unknown;
|
|
977
995
|
}
|
|
978
996
|
|
|
979
997
|
export namespace CardDisputeFinancial {
|
|
@@ -1030,6 +1048,8 @@ export namespace Transaction {
|
|
|
1030
1048
|
* from your account.
|
|
1031
1049
|
*/
|
|
1032
1050
|
transaction_id: string;
|
|
1051
|
+
|
|
1052
|
+
[k: string]: unknown;
|
|
1033
1053
|
}
|
|
1034
1054
|
|
|
1035
1055
|
/**
|
|
@@ -1234,6 +1254,8 @@ export namespace Transaction {
|
|
|
1234
1254
|
* Fields related to verification of cardholder-provided values.
|
|
1235
1255
|
*/
|
|
1236
1256
|
verification: CardFinancial.Verification;
|
|
1257
|
+
|
|
1258
|
+
[k: string]: unknown;
|
|
1237
1259
|
}
|
|
1238
1260
|
|
|
1239
1261
|
export namespace CardFinancial {
|
|
@@ -1746,6 +1768,8 @@ export namespace Transaction {
|
|
|
1746
1768
|
* The identifier of the Card Push Transfer that led to this Transaction.
|
|
1747
1769
|
*/
|
|
1748
1770
|
transfer_id: string;
|
|
1771
|
+
|
|
1772
|
+
[k: string]: unknown;
|
|
1749
1773
|
}
|
|
1750
1774
|
|
|
1751
1775
|
/**
|
|
@@ -1864,6 +1888,8 @@ export namespace Transaction {
|
|
|
1864
1888
|
* `card_refund`.
|
|
1865
1889
|
*/
|
|
1866
1890
|
type: 'card_refund';
|
|
1891
|
+
|
|
1892
|
+
[k: string]: unknown;
|
|
1867
1893
|
}
|
|
1868
1894
|
|
|
1869
1895
|
export namespace CardRefund {
|
|
@@ -2518,6 +2544,8 @@ export namespace Transaction {
|
|
|
2518
2544
|
* The account the card belonged to.
|
|
2519
2545
|
*/
|
|
2520
2546
|
transacted_on_account_id: string | null;
|
|
2547
|
+
|
|
2548
|
+
[k: string]: unknown;
|
|
2521
2549
|
}
|
|
2522
2550
|
|
|
2523
2551
|
/**
|
|
@@ -2662,6 +2690,8 @@ export namespace Transaction {
|
|
|
2662
2690
|
* `card_settlement`.
|
|
2663
2691
|
*/
|
|
2664
2692
|
type: 'card_settlement';
|
|
2693
|
+
|
|
2694
|
+
[k: string]: unknown;
|
|
2665
2695
|
}
|
|
2666
2696
|
|
|
2667
2697
|
export namespace CardSettlement {
|
|
@@ -3335,6 +3365,8 @@ export namespace Transaction {
|
|
|
3335
3365
|
* The start of the period for which this transaction paid cashback.
|
|
3336
3366
|
*/
|
|
3337
3367
|
period_start: string;
|
|
3368
|
+
|
|
3369
|
+
[k: string]: unknown;
|
|
3338
3370
|
}
|
|
3339
3371
|
|
|
3340
3372
|
/**
|
|
@@ -3392,6 +3424,8 @@ export namespace Transaction {
|
|
|
3392
3424
|
* the serial number is usually in the `auxiliary_on_us` field.
|
|
3393
3425
|
*/
|
|
3394
3426
|
serial_number: string | null;
|
|
3427
|
+
|
|
3428
|
+
[k: string]: unknown;
|
|
3395
3429
|
}
|
|
3396
3430
|
|
|
3397
3431
|
/**
|
|
@@ -3511,6 +3545,8 @@ export namespace Transaction {
|
|
|
3511
3545
|
* transaction.
|
|
3512
3546
|
*/
|
|
3513
3547
|
transaction_id: string;
|
|
3548
|
+
|
|
3549
|
+
[k: string]: unknown;
|
|
3514
3550
|
}
|
|
3515
3551
|
|
|
3516
3552
|
/**
|
|
@@ -3565,6 +3601,8 @@ export namespace Transaction {
|
|
|
3565
3601
|
* `check_transfer_deposit`.
|
|
3566
3602
|
*/
|
|
3567
3603
|
type: 'check_transfer_deposit';
|
|
3604
|
+
|
|
3605
|
+
[k: string]: unknown;
|
|
3568
3606
|
}
|
|
3569
3607
|
|
|
3570
3608
|
/**
|
|
@@ -3578,6 +3616,8 @@ export namespace Transaction {
|
|
|
3578
3616
|
* The identifier of the FedNow Transfer that led to this Transaction.
|
|
3579
3617
|
*/
|
|
3580
3618
|
transfer_id: string;
|
|
3619
|
+
|
|
3620
|
+
[k: string]: unknown;
|
|
3581
3621
|
}
|
|
3582
3622
|
|
|
3583
3623
|
/**
|
|
@@ -3614,6 +3654,8 @@ export namespace Transaction {
|
|
|
3614
3654
|
* The Program for which this fee was incurred.
|
|
3615
3655
|
*/
|
|
3616
3656
|
program_id: string | null;
|
|
3657
|
+
|
|
3658
|
+
[k: string]: unknown;
|
|
3617
3659
|
}
|
|
3618
3660
|
|
|
3619
3661
|
/**
|
|
@@ -3683,6 +3725,8 @@ export namespace Transaction {
|
|
|
3683
3725
|
* The Inbound ACH Transfer's identifier.
|
|
3684
3726
|
*/
|
|
3685
3727
|
transfer_id: string;
|
|
3728
|
+
|
|
3729
|
+
[k: string]: unknown;
|
|
3686
3730
|
}
|
|
3687
3731
|
|
|
3688
3732
|
export namespace InboundACHTransfer {
|
|
@@ -3737,6 +3781,8 @@ export namespace Transaction {
|
|
|
3737
3781
|
* The ID of the Inbound ACH Transfer that is being returned.
|
|
3738
3782
|
*/
|
|
3739
3783
|
inbound_ach_transfer_id: string;
|
|
3784
|
+
|
|
3785
|
+
[k: string]: unknown;
|
|
3740
3786
|
}
|
|
3741
3787
|
|
|
3742
3788
|
/**
|
|
@@ -3769,6 +3815,8 @@ export namespace Transaction {
|
|
|
3769
3815
|
* usually happens for e.g., low quality images.
|
|
3770
3816
|
*/
|
|
3771
3817
|
reason: 'late_return' | 'wrong_payee_credit' | 'adjusted_amount' | 'non_conforming_item';
|
|
3818
|
+
|
|
3819
|
+
[k: string]: unknown;
|
|
3772
3820
|
}
|
|
3773
3821
|
|
|
3774
3822
|
/**
|
|
@@ -3788,6 +3836,8 @@ export namespace Transaction {
|
|
|
3788
3836
|
* The identifier of the Check Transfer object that was deposited.
|
|
3789
3837
|
*/
|
|
3790
3838
|
transfer_id: string | null;
|
|
3839
|
+
|
|
3840
|
+
[k: string]: unknown;
|
|
3791
3841
|
}
|
|
3792
3842
|
|
|
3793
3843
|
/**
|
|
@@ -3802,6 +3852,8 @@ export namespace Transaction {
|
|
|
3802
3852
|
* The identifier of the FedNow Transfer that led to this Transaction.
|
|
3803
3853
|
*/
|
|
3804
3854
|
transfer_id: string;
|
|
3855
|
+
|
|
3856
|
+
[k: string]: unknown;
|
|
3805
3857
|
}
|
|
3806
3858
|
|
|
3807
3859
|
/**
|
|
@@ -3865,6 +3917,8 @@ export namespace Transaction {
|
|
|
3865
3917
|
* The identifier of the Real-Time Payments Transfer that led to this Transaction.
|
|
3866
3918
|
*/
|
|
3867
3919
|
transfer_id: string;
|
|
3920
|
+
|
|
3921
|
+
[k: string]: unknown;
|
|
3868
3922
|
}
|
|
3869
3923
|
|
|
3870
3924
|
/**
|
|
@@ -3948,6 +4002,8 @@ export namespace Transaction {
|
|
|
3948
4002
|
* The ID for the Wire Transfer that is being reversed.
|
|
3949
4003
|
*/
|
|
3950
4004
|
wire_transfer_id: string;
|
|
4005
|
+
|
|
4006
|
+
[k: string]: unknown;
|
|
3951
4007
|
}
|
|
3952
4008
|
|
|
3953
4009
|
/**
|
|
@@ -4046,6 +4102,8 @@ export namespace Transaction {
|
|
|
4046
4102
|
* A free-form message set by the sender.
|
|
4047
4103
|
*/
|
|
4048
4104
|
unstructured_remittance_information: string | null;
|
|
4105
|
+
|
|
4106
|
+
[k: string]: unknown;
|
|
4049
4107
|
}
|
|
4050
4108
|
|
|
4051
4109
|
/**
|
|
@@ -4060,6 +4118,8 @@ export namespace Transaction {
|
|
|
4060
4118
|
* The ID of the Inbound Wire Transfer that is being reversed.
|
|
4061
4119
|
*/
|
|
4062
4120
|
inbound_wire_transfer_id: string;
|
|
4121
|
+
|
|
4122
|
+
[k: string]: unknown;
|
|
4063
4123
|
}
|
|
4064
4124
|
|
|
4065
4125
|
/**
|
|
@@ -4102,6 +4162,8 @@ export namespace Transaction {
|
|
|
4102
4162
|
* The start of the period for which this transaction paid interest.
|
|
4103
4163
|
*/
|
|
4104
4164
|
period_start: string;
|
|
4165
|
+
|
|
4166
|
+
[k: string]: unknown;
|
|
4105
4167
|
}
|
|
4106
4168
|
|
|
4107
4169
|
/**
|
|
@@ -4169,6 +4231,8 @@ export namespace Transaction {
|
|
|
4169
4231
|
| 'negative_balance_forgiveness'
|
|
4170
4232
|
| 'sample_funds'
|
|
4171
4233
|
| 'sample_funds_return';
|
|
4234
|
+
|
|
4235
|
+
[k: string]: unknown;
|
|
4172
4236
|
}
|
|
4173
4237
|
|
|
4174
4238
|
/**
|
|
@@ -4203,6 +4267,8 @@ export namespace Transaction {
|
|
|
4203
4267
|
* The identifier of the Real-Time Payments Transfer that led to this Transaction.
|
|
4204
4268
|
*/
|
|
4205
4269
|
transfer_id: string;
|
|
4270
|
+
|
|
4271
|
+
[k: string]: unknown;
|
|
4206
4272
|
}
|
|
4207
4273
|
|
|
4208
4274
|
/**
|
|
@@ -4215,6 +4281,8 @@ export namespace Transaction {
|
|
|
4215
4281
|
* Where the sample funds came from.
|
|
4216
4282
|
*/
|
|
4217
4283
|
originator: string;
|
|
4284
|
+
|
|
4285
|
+
[k: string]: unknown;
|
|
4218
4286
|
}
|
|
4219
4287
|
|
|
4220
4288
|
/**
|
|
@@ -4227,6 +4295,8 @@ export namespace Transaction {
|
|
|
4227
4295
|
* The identifier of the Swift Transfer that led to this Transaction.
|
|
4228
4296
|
*/
|
|
4229
4297
|
transfer_id: string;
|
|
4298
|
+
|
|
4299
|
+
[k: string]: unknown;
|
|
4230
4300
|
}
|
|
4231
4301
|
|
|
4232
4302
|
/**
|
|
@@ -4239,6 +4309,8 @@ export namespace Transaction {
|
|
|
4239
4309
|
* The identifier of the Swift Transfer that led to this Transaction.
|
|
4240
4310
|
*/
|
|
4241
4311
|
transfer_id: string;
|
|
4312
|
+
|
|
4313
|
+
[k: string]: unknown;
|
|
4242
4314
|
}
|
|
4243
4315
|
|
|
4244
4316
|
/**
|
|
@@ -4271,6 +4343,8 @@ export namespace Transaction {
|
|
|
4271
4343
|
* The identifier of the Wire Transfer that led to this Transaction.
|
|
4272
4344
|
*/
|
|
4273
4345
|
transfer_id: string;
|
|
4346
|
+
|
|
4347
|
+
[k: string]: unknown;
|
|
4274
4348
|
}
|
|
4275
4349
|
}
|
|
4276
4350
|
}
|
|
@@ -14,7 +14,8 @@ export class WireTransfers extends APIResource {
|
|
|
14
14
|
* const wireTransfer = await client.wireTransfers.create({
|
|
15
15
|
* account_id: 'account_in71c4amph0vgo2qllky',
|
|
16
16
|
* amount: 100,
|
|
17
|
-
*
|
|
17
|
+
* creditor: { name: 'Ian Crease' },
|
|
18
|
+
* remittance: { category: 'unstructured' },
|
|
18
19
|
* });
|
|
19
20
|
* ```
|
|
20
21
|
*/
|
|
@@ -124,26 +125,6 @@ export interface WireTransfer {
|
|
|
124
125
|
*/
|
|
125
126
|
approval: WireTransfer.Approval | null;
|
|
126
127
|
|
|
127
|
-
/**
|
|
128
|
-
* The beneficiary's address line 1.
|
|
129
|
-
*/
|
|
130
|
-
beneficiary_address_line1: string | null;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* The beneficiary's address line 2.
|
|
134
|
-
*/
|
|
135
|
-
beneficiary_address_line2: string | null;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* The beneficiary's address line 3.
|
|
139
|
-
*/
|
|
140
|
-
beneficiary_address_line3: string | null;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* The beneficiary's name.
|
|
144
|
-
*/
|
|
145
|
-
beneficiary_name: string | null;
|
|
146
|
-
|
|
147
128
|
/**
|
|
148
129
|
* If your account requires approvals for transfers and the transfer was not
|
|
149
130
|
* approved, this will contain details of the cancellation.
|
|
@@ -161,6 +142,11 @@ export interface WireTransfer {
|
|
|
161
142
|
*/
|
|
162
143
|
created_by: WireTransfer.CreatedBy | null;
|
|
163
144
|
|
|
145
|
+
/**
|
|
146
|
+
* The person or business that is receiving the funds from the transfer.
|
|
147
|
+
*/
|
|
148
|
+
creditor: WireTransfer.Creditor | null;
|
|
149
|
+
|
|
164
150
|
/**
|
|
165
151
|
* The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
|
|
166
152
|
* currency. For wire transfers this is always equal to `usd`.
|
|
@@ -174,6 +160,11 @@ export interface WireTransfer {
|
|
|
174
160
|
*/
|
|
175
161
|
currency: 'CAD' | 'CHF' | 'EUR' | 'GBP' | 'JPY' | 'USD';
|
|
176
162
|
|
|
163
|
+
/**
|
|
164
|
+
* The person or business whose funds are being transferred.
|
|
165
|
+
*/
|
|
166
|
+
debtor: WireTransfer.Debtor | null;
|
|
167
|
+
|
|
177
168
|
/**
|
|
178
169
|
* The identifier of the External Account the transfer was made to, if any.
|
|
179
170
|
*/
|
|
@@ -192,36 +183,11 @@ export interface WireTransfer {
|
|
|
192
183
|
*/
|
|
193
184
|
inbound_wire_drawdown_request_id: string | null;
|
|
194
185
|
|
|
195
|
-
/**
|
|
196
|
-
* The message that will show on the recipient's bank statement.
|
|
197
|
-
*/
|
|
198
|
-
message_to_recipient: string;
|
|
199
|
-
|
|
200
186
|
/**
|
|
201
187
|
* The transfer's network.
|
|
202
188
|
*/
|
|
203
189
|
network: 'wire';
|
|
204
190
|
|
|
205
|
-
/**
|
|
206
|
-
* The originator's address line 1.
|
|
207
|
-
*/
|
|
208
|
-
originator_address_line1: string | null;
|
|
209
|
-
|
|
210
|
-
/**
|
|
211
|
-
* The originator's address line 2.
|
|
212
|
-
*/
|
|
213
|
-
originator_address_line2: string | null;
|
|
214
|
-
|
|
215
|
-
/**
|
|
216
|
-
* The originator's address line 3.
|
|
217
|
-
*/
|
|
218
|
-
originator_address_line3: string | null;
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* The originator's name.
|
|
222
|
-
*/
|
|
223
|
-
originator_name: string | null;
|
|
224
|
-
|
|
225
191
|
/**
|
|
226
192
|
* The ID for the pending transaction representing the transfer. A pending
|
|
227
193
|
* transaction is created when the transfer
|
|
@@ -292,6 +258,8 @@ export interface WireTransfer {
|
|
|
292
258
|
* `wire_transfer`.
|
|
293
259
|
*/
|
|
294
260
|
type: 'wire_transfer';
|
|
261
|
+
|
|
262
|
+
[k: string]: unknown;
|
|
295
263
|
}
|
|
296
264
|
|
|
297
265
|
export namespace WireTransfer {
|
|
@@ -394,6 +362,104 @@ export namespace WireTransfer {
|
|
|
394
362
|
}
|
|
395
363
|
}
|
|
396
364
|
|
|
365
|
+
/**
|
|
366
|
+
* The person or business that is receiving the funds from the transfer.
|
|
367
|
+
*/
|
|
368
|
+
export interface Creditor {
|
|
369
|
+
/**
|
|
370
|
+
* The person or business's address.
|
|
371
|
+
*/
|
|
372
|
+
address: Creditor.Address | null;
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* The person or business's name.
|
|
376
|
+
*/
|
|
377
|
+
name: string | null;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export namespace Creditor {
|
|
381
|
+
/**
|
|
382
|
+
* The person or business's address.
|
|
383
|
+
*/
|
|
384
|
+
export interface Address {
|
|
385
|
+
/**
|
|
386
|
+
* Unstructured address lines.
|
|
387
|
+
*/
|
|
388
|
+
unstructured: Address.Unstructured | null;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
export namespace Address {
|
|
392
|
+
/**
|
|
393
|
+
* Unstructured address lines.
|
|
394
|
+
*/
|
|
395
|
+
export interface Unstructured {
|
|
396
|
+
/**
|
|
397
|
+
* The first line.
|
|
398
|
+
*/
|
|
399
|
+
line1: string | null;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* The second line.
|
|
403
|
+
*/
|
|
404
|
+
line2: string | null;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* The third line.
|
|
408
|
+
*/
|
|
409
|
+
line3: string | null;
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* The person or business whose funds are being transferred.
|
|
416
|
+
*/
|
|
417
|
+
export interface Debtor {
|
|
418
|
+
/**
|
|
419
|
+
* The person or business's address.
|
|
420
|
+
*/
|
|
421
|
+
address: Debtor.Address | null;
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* The person or business's name.
|
|
425
|
+
*/
|
|
426
|
+
name: string | null;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export namespace Debtor {
|
|
430
|
+
/**
|
|
431
|
+
* The person or business's address.
|
|
432
|
+
*/
|
|
433
|
+
export interface Address {
|
|
434
|
+
/**
|
|
435
|
+
* Unstructured address lines.
|
|
436
|
+
*/
|
|
437
|
+
unstructured: Address.Unstructured | null;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
export namespace Address {
|
|
441
|
+
/**
|
|
442
|
+
* Unstructured address lines.
|
|
443
|
+
*/
|
|
444
|
+
export interface Unstructured {
|
|
445
|
+
/**
|
|
446
|
+
* The first line.
|
|
447
|
+
*/
|
|
448
|
+
line1: string | null;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* The second line.
|
|
452
|
+
*/
|
|
453
|
+
line2: string | null;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* The third line.
|
|
457
|
+
*/
|
|
458
|
+
line3: string | null;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
|
|
397
463
|
/**
|
|
398
464
|
* Remittance information sent with the wire transfer.
|
|
399
465
|
*/
|
|
@@ -534,6 +600,8 @@ export namespace WireTransfer {
|
|
|
534
600
|
* The ID for the Wire Transfer that is being reversed.
|
|
535
601
|
*/
|
|
536
602
|
wire_transfer_id: string;
|
|
603
|
+
|
|
604
|
+
[k: string]: unknown;
|
|
537
605
|
}
|
|
538
606
|
|
|
539
607
|
/**
|
|
@@ -565,29 +633,26 @@ export interface WireTransferCreateParams {
|
|
|
565
633
|
amount: number;
|
|
566
634
|
|
|
567
635
|
/**
|
|
568
|
-
* The
|
|
569
|
-
*/
|
|
570
|
-
beneficiary_name: string;
|
|
571
|
-
|
|
572
|
-
/**
|
|
573
|
-
* The account number for the destination account.
|
|
636
|
+
* The person or business that is receiving the funds from the transfer.
|
|
574
637
|
*/
|
|
575
|
-
|
|
638
|
+
creditor: WireTransferCreateParams.Creditor;
|
|
576
639
|
|
|
577
640
|
/**
|
|
578
|
-
*
|
|
641
|
+
* Additional remittance information related to the wire transfer.
|
|
579
642
|
*/
|
|
580
|
-
|
|
643
|
+
remittance: WireTransferCreateParams.Remittance;
|
|
581
644
|
|
|
582
645
|
/**
|
|
583
|
-
* The
|
|
646
|
+
* The account number for the destination account.
|
|
584
647
|
*/
|
|
585
|
-
|
|
648
|
+
account_number?: string;
|
|
586
649
|
|
|
587
650
|
/**
|
|
588
|
-
* The
|
|
651
|
+
* The person or business whose funds are being transferred. This is only necessary
|
|
652
|
+
* if you're transferring from a commingled account. Otherwise, we'll use the
|
|
653
|
+
* associated entity's details.
|
|
589
654
|
*/
|
|
590
|
-
|
|
655
|
+
debtor?: WireTransferCreateParams.Debtor;
|
|
591
656
|
|
|
592
657
|
/**
|
|
593
658
|
* The ID of an External Account to initiate a transfer to. If this parameter is
|
|
@@ -601,35 +666,6 @@ export interface WireTransferCreateParams {
|
|
|
601
666
|
*/
|
|
602
667
|
inbound_wire_drawdown_request_id?: string;
|
|
603
668
|
|
|
604
|
-
/**
|
|
605
|
-
* The originator's address line 1. This is only necessary if you're transferring
|
|
606
|
-
* from a commingled account. Otherwise, we'll use the associated entity's details.
|
|
607
|
-
*/
|
|
608
|
-
originator_address_line1?: string;
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* The originator's address line 2. This is only necessary if you're transferring
|
|
612
|
-
* from a commingled account. Otherwise, we'll use the associated entity's details.
|
|
613
|
-
*/
|
|
614
|
-
originator_address_line2?: string;
|
|
615
|
-
|
|
616
|
-
/**
|
|
617
|
-
* The originator's address line 3. This is only necessary if you're transferring
|
|
618
|
-
* from a commingled account. Otherwise, we'll use the associated entity's details.
|
|
619
|
-
*/
|
|
620
|
-
originator_address_line3?: string;
|
|
621
|
-
|
|
622
|
-
/**
|
|
623
|
-
* The originator's name. This is only necessary if you're transferring from a
|
|
624
|
-
* commingled account. Otherwise, we'll use the associated entity's details.
|
|
625
|
-
*/
|
|
626
|
-
originator_name?: string;
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* Additional remittance information related to the wire transfer.
|
|
630
|
-
*/
|
|
631
|
-
remittance?: WireTransferCreateParams.Remittance;
|
|
632
|
-
|
|
633
669
|
/**
|
|
634
670
|
* Whether the transfer requires explicit approval via the dashboard or API.
|
|
635
671
|
*/
|
|
@@ -648,6 +684,55 @@ export interface WireTransferCreateParams {
|
|
|
648
684
|
}
|
|
649
685
|
|
|
650
686
|
export namespace WireTransferCreateParams {
|
|
687
|
+
/**
|
|
688
|
+
* The person or business that is receiving the funds from the transfer.
|
|
689
|
+
*/
|
|
690
|
+
export interface Creditor {
|
|
691
|
+
/**
|
|
692
|
+
* The person or business's name.
|
|
693
|
+
*/
|
|
694
|
+
name: string;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* The person or business's address.
|
|
698
|
+
*/
|
|
699
|
+
address?: Creditor.Address;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
export namespace Creditor {
|
|
703
|
+
/**
|
|
704
|
+
* The person or business's address.
|
|
705
|
+
*/
|
|
706
|
+
export interface Address {
|
|
707
|
+
/**
|
|
708
|
+
* Unstructured address lines.
|
|
709
|
+
*/
|
|
710
|
+
unstructured: Address.Unstructured;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
export namespace Address {
|
|
714
|
+
/**
|
|
715
|
+
* Unstructured address lines.
|
|
716
|
+
*/
|
|
717
|
+
export interface Unstructured {
|
|
718
|
+
/**
|
|
719
|
+
* The address line 1.
|
|
720
|
+
*/
|
|
721
|
+
line1: string;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* The address line 2.
|
|
725
|
+
*/
|
|
726
|
+
line2?: string;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* The address line 3.
|
|
730
|
+
*/
|
|
731
|
+
line3?: string;
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
|
|
651
736
|
/**
|
|
652
737
|
* Additional remittance information related to the wire transfer.
|
|
653
738
|
*/
|
|
@@ -705,11 +790,62 @@ export namespace WireTransferCreateParams {
|
|
|
705
790
|
*/
|
|
706
791
|
export interface Unstructured {
|
|
707
792
|
/**
|
|
708
|
-
* The
|
|
793
|
+
* The information.
|
|
709
794
|
*/
|
|
710
795
|
message: string;
|
|
711
796
|
}
|
|
712
797
|
}
|
|
798
|
+
|
|
799
|
+
/**
|
|
800
|
+
* The person or business whose funds are being transferred. This is only necessary
|
|
801
|
+
* if you're transferring from a commingled account. Otherwise, we'll use the
|
|
802
|
+
* associated entity's details.
|
|
803
|
+
*/
|
|
804
|
+
export interface Debtor {
|
|
805
|
+
/**
|
|
806
|
+
* The person or business's name.
|
|
807
|
+
*/
|
|
808
|
+
name: string;
|
|
809
|
+
|
|
810
|
+
/**
|
|
811
|
+
* The person or business's address.
|
|
812
|
+
*/
|
|
813
|
+
address?: Debtor.Address;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
export namespace Debtor {
|
|
817
|
+
/**
|
|
818
|
+
* The person or business's address.
|
|
819
|
+
*/
|
|
820
|
+
export interface Address {
|
|
821
|
+
/**
|
|
822
|
+
* Unstructured address lines.
|
|
823
|
+
*/
|
|
824
|
+
unstructured: Address.Unstructured;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
export namespace Address {
|
|
828
|
+
/**
|
|
829
|
+
* Unstructured address lines.
|
|
830
|
+
*/
|
|
831
|
+
export interface Unstructured {
|
|
832
|
+
/**
|
|
833
|
+
* The address line 1.
|
|
834
|
+
*/
|
|
835
|
+
line1: string;
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* The address line 2.
|
|
839
|
+
*/
|
|
840
|
+
line2?: string;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* The address line 3.
|
|
844
|
+
*/
|
|
845
|
+
line3?: string;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
}
|
|
713
849
|
}
|
|
714
850
|
|
|
715
851
|
export interface WireTransferListParams extends PageParams {
|