-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathexpectedpayment.go
850 lines (777 loc) · 44.2 KB
/
expectedpayment.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
package moderntreasury
import (
"context"
"errors"
"fmt"
"net/http"
"net/url"
"time"
"github.com/Modern-Treasury/modern-treasury-go/v2/internal/apijson"
"github.com/Modern-Treasury/modern-treasury-go/v2/internal/apiquery"
"github.com/Modern-Treasury/modern-treasury-go/v2/internal/param"
"github.com/Modern-Treasury/modern-treasury-go/v2/internal/requestconfig"
"github.com/Modern-Treasury/modern-treasury-go/v2/option"
"github.com/Modern-Treasury/modern-treasury-go/v2/packages/pagination"
"github.com/Modern-Treasury/modern-treasury-go/v2/shared"
)
// ExpectedPaymentService contains methods and other services that help with
// interacting with the Modern Treasury API.
//
// Note, unlike clients, this service does not read variables from the environment
// automatically. You should not instantiate this service directly, and instead use
// the [NewExpectedPaymentService] method instead.
type ExpectedPaymentService struct {
Options []option.RequestOption
}
// NewExpectedPaymentService generates a new service that applies the given options
// to each request. These options are applied after the parent client's options (if
// there is one), and before any request-specific options.
func NewExpectedPaymentService(opts ...option.RequestOption) (r *ExpectedPaymentService) {
r = &ExpectedPaymentService{}
r.Options = opts
return
}
// create expected payment
func (r *ExpectedPaymentService) New(ctx context.Context, body ExpectedPaymentNewParams, opts ...option.RequestOption) (res *ExpectedPayment, err error) {
opts = append(r.Options[:], opts...)
path := "api/expected_payments"
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
return
}
// get expected payment
func (r *ExpectedPaymentService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *ExpectedPayment, err error) {
opts = append(r.Options[:], opts...)
if id == "" {
err = errors.New("missing required id parameter")
return
}
path := fmt.Sprintf("api/expected_payments/%s", id)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
return
}
// update expected payment
func (r *ExpectedPaymentService) Update(ctx context.Context, id string, body ExpectedPaymentUpdateParams, opts ...option.RequestOption) (res *ExpectedPayment, err error) {
opts = append(r.Options[:], opts...)
if id == "" {
err = errors.New("missing required id parameter")
return
}
path := fmt.Sprintf("api/expected_payments/%s", id)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPatch, path, body, &res, opts...)
return
}
// list expected_payments
func (r *ExpectedPaymentService) List(ctx context.Context, query ExpectedPaymentListParams, opts ...option.RequestOption) (res *pagination.Page[ExpectedPayment], err error) {
var raw *http.Response
opts = append(r.Options[:], opts...)
opts = append([]option.RequestOption{option.WithResponseInto(&raw)}, opts...)
path := "api/expected_payments"
cfg, err := requestconfig.NewRequestConfig(ctx, http.MethodGet, path, query, &res, opts...)
if err != nil {
return nil, err
}
err = cfg.Execute()
if err != nil {
return nil, err
}
res.SetPageConfig(cfg, raw)
return res, nil
}
// list expected_payments
func (r *ExpectedPaymentService) ListAutoPaging(ctx context.Context, query ExpectedPaymentListParams, opts ...option.RequestOption) *pagination.PageAutoPager[ExpectedPayment] {
return pagination.NewPageAutoPager(r.List(ctx, query, opts...))
}
// delete expected payment
func (r *ExpectedPaymentService) Delete(ctx context.Context, id string, opts ...option.RequestOption) (res *ExpectedPayment, err error) {
opts = append(r.Options[:], opts...)
if id == "" {
err = errors.New("missing required id parameter")
return
}
path := fmt.Sprintf("api/expected_payments/%s", id)
err = requestconfig.ExecuteNewRequest(ctx, http.MethodDelete, path, nil, &res, opts...)
return
}
type ExpectedPayment struct {
ID string `json:"id,required" format:"uuid"`
// The lowest amount this expected payment may be equal to. Value in specified
// currency's smallest unit. e.g. $10 would be represented as 1000.
AmountLowerBound int64 `json:"amount_lower_bound,required,nullable"`
// The highest amount this expected payment may be equal to. Value in specified
// currency's smallest unit. e.g. $10 would be represented as 1000.
AmountUpperBound int64 `json:"amount_upper_bound,required,nullable"`
// The ID of the counterparty you expect for this payment.
CounterpartyID string `json:"counterparty_id,required,nullable" format:"uuid"`
CreatedAt time.Time `json:"created_at,required" format:"date-time"`
// Must conform to ISO 4217. Defaults to the currency of the internal account.
Currency shared.Currency `json:"currency,required,nullable"`
// The earliest date the payment may come in. Format: yyyy-mm-dd
DateLowerBound time.Time `json:"date_lower_bound,required,nullable" format:"date"`
// The latest date the payment may come in. Format: yyyy-mm-dd
DateUpperBound time.Time `json:"date_upper_bound,required,nullable" format:"date"`
// An optional description for internal use.
Description string `json:"description,required,nullable"`
// One of credit or debit. When you are receiving money, use credit. When you are
// being charged, use debit.
Direction ExpectedPaymentDirection `json:"direction,required,nullable"`
// The ID of the Internal Account for the expected payment.
InternalAccountID string `json:"internal_account_id,required,nullable" format:"uuid"`
// The ID of the ledger transaction linked to the expected payment.
LedgerTransactionID string `json:"ledger_transaction_id,required,nullable" format:"uuid"`
// This field will be true if this object exists in the live environment or false
// if it exists in the test environment.
LiveMode bool `json:"live_mode,required"`
// Additional data represented as key-value pairs. Both the key and value must be
// strings.
Metadata map[string]string `json:"metadata,required"`
Object string `json:"object,required"`
// The reconciliation filters you have for this payment.
ReconciliationFilters interface{} `json:"reconciliation_filters,required,nullable"`
// The reconciliation groups you have for this payment.
ReconciliationGroups interface{} `json:"reconciliation_groups,required,nullable"`
// One of manual if this expected payment was manually reconciled in the dashboard,
// automatic if it was automatically reconciled by Modern Treasury, or null if it
// is unreconciled.
ReconciliationMethod ExpectedPaymentReconciliationMethod `json:"reconciliation_method,required,nullable"`
// An array of reconciliation rule variables for this payment.
ReconciliationRuleVariables []ReconciliationRule `json:"reconciliation_rule_variables,required,nullable"`
// For `ach`, this field will be passed through on an addenda record. For `wire`
// payments the field will be passed through as the "Originator to Beneficiary
// Information", also known as OBI or Fedwire tag 6000.
RemittanceInformation string `json:"remittance_information,required,nullable"`
// The statement description you expect to see on the transaction. For ACH
// payments, this will be the full line item passed from the bank. For wire
// payments, this will be the OBI field on the wire. For check payments, this will
// be the memo field.
StatementDescriptor string `json:"statement_descriptor,required,nullable"`
// One of unreconciled, partially_reconciled, reconciled, or archived.
Status ExpectedPaymentStatus `json:"status,required"`
// The ID of the Transaction this expected payment object has been matched to.
TransactionID string `json:"transaction_id,required,nullable" format:"uuid"`
// The ID of the Transaction Line Item this expected payment has been matched to.
TransactionLineItemID string `json:"transaction_line_item_id,required,nullable" format:"uuid"`
// One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
// sepa, signet, wire.
Type ExpectedPaymentType `json:"type,required,nullable"`
UpdatedAt time.Time `json:"updated_at,required" format:"date-time"`
JSON expectedPaymentJSON `json:"-"`
}
// expectedPaymentJSON contains the JSON metadata for the struct [ExpectedPayment]
type expectedPaymentJSON struct {
ID apijson.Field
AmountLowerBound apijson.Field
AmountUpperBound apijson.Field
CounterpartyID apijson.Field
CreatedAt apijson.Field
Currency apijson.Field
DateLowerBound apijson.Field
DateUpperBound apijson.Field
Description apijson.Field
Direction apijson.Field
InternalAccountID apijson.Field
LedgerTransactionID apijson.Field
LiveMode apijson.Field
Metadata apijson.Field
Object apijson.Field
ReconciliationFilters apijson.Field
ReconciliationGroups apijson.Field
ReconciliationMethod apijson.Field
ReconciliationRuleVariables apijson.Field
RemittanceInformation apijson.Field
StatementDescriptor apijson.Field
Status apijson.Field
TransactionID apijson.Field
TransactionLineItemID apijson.Field
Type apijson.Field
UpdatedAt apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ExpectedPayment) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r expectedPaymentJSON) RawJSON() string {
return r.raw
}
func (r ExpectedPayment) implementsBulkResultEntity() {}
// One of credit or debit. When you are receiving money, use credit. When you are
// being charged, use debit.
type ExpectedPaymentDirection string
const (
ExpectedPaymentDirectionCredit ExpectedPaymentDirection = "credit"
ExpectedPaymentDirectionDebit ExpectedPaymentDirection = "debit"
)
func (r ExpectedPaymentDirection) IsKnown() bool {
switch r {
case ExpectedPaymentDirectionCredit, ExpectedPaymentDirectionDebit:
return true
}
return false
}
// One of manual if this expected payment was manually reconciled in the dashboard,
// automatic if it was automatically reconciled by Modern Treasury, or null if it
// is unreconciled.
type ExpectedPaymentReconciliationMethod string
const (
ExpectedPaymentReconciliationMethodAutomatic ExpectedPaymentReconciliationMethod = "automatic"
ExpectedPaymentReconciliationMethodManual ExpectedPaymentReconciliationMethod = "manual"
)
func (r ExpectedPaymentReconciliationMethod) IsKnown() bool {
switch r {
case ExpectedPaymentReconciliationMethodAutomatic, ExpectedPaymentReconciliationMethodManual:
return true
}
return false
}
// One of unreconciled, partially_reconciled, reconciled, or archived.
type ExpectedPaymentStatus string
const (
ExpectedPaymentStatusArchived ExpectedPaymentStatus = "archived"
ExpectedPaymentStatusPartiallyReconciled ExpectedPaymentStatus = "partially_reconciled"
ExpectedPaymentStatusReconciled ExpectedPaymentStatus = "reconciled"
ExpectedPaymentStatusUnreconciled ExpectedPaymentStatus = "unreconciled"
)
func (r ExpectedPaymentStatus) IsKnown() bool {
switch r {
case ExpectedPaymentStatusArchived, ExpectedPaymentStatusPartiallyReconciled, ExpectedPaymentStatusReconciled, ExpectedPaymentStatusUnreconciled:
return true
}
return false
}
// One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
// sepa, signet, wire.
type ExpectedPaymentType string
const (
ExpectedPaymentTypeACH ExpectedPaymentType = "ach"
ExpectedPaymentTypeAuBecs ExpectedPaymentType = "au_becs"
ExpectedPaymentTypeBacs ExpectedPaymentType = "bacs"
ExpectedPaymentTypeBook ExpectedPaymentType = "book"
ExpectedPaymentTypeCard ExpectedPaymentType = "card"
ExpectedPaymentTypeChats ExpectedPaymentType = "chats"
ExpectedPaymentTypeCheck ExpectedPaymentType = "check"
ExpectedPaymentTypeCrossBorder ExpectedPaymentType = "cross_border"
ExpectedPaymentTypeDkNets ExpectedPaymentType = "dk_nets"
ExpectedPaymentTypeEft ExpectedPaymentType = "eft"
ExpectedPaymentTypeHuIcs ExpectedPaymentType = "hu_ics"
ExpectedPaymentTypeInterac ExpectedPaymentType = "interac"
ExpectedPaymentTypeMasav ExpectedPaymentType = "masav"
ExpectedPaymentTypeMxCcen ExpectedPaymentType = "mx_ccen"
ExpectedPaymentTypeNeft ExpectedPaymentType = "neft"
ExpectedPaymentTypeNics ExpectedPaymentType = "nics"
ExpectedPaymentTypeNzBecs ExpectedPaymentType = "nz_becs"
ExpectedPaymentTypePlElixir ExpectedPaymentType = "pl_elixir"
ExpectedPaymentTypeProvxchange ExpectedPaymentType = "provxchange"
ExpectedPaymentTypeRoSent ExpectedPaymentType = "ro_sent"
ExpectedPaymentTypeRtp ExpectedPaymentType = "rtp"
ExpectedPaymentTypeSeBankgirot ExpectedPaymentType = "se_bankgirot"
ExpectedPaymentTypeSen ExpectedPaymentType = "sen"
ExpectedPaymentTypeSepa ExpectedPaymentType = "sepa"
ExpectedPaymentTypeSgGiro ExpectedPaymentType = "sg_giro"
ExpectedPaymentTypeSic ExpectedPaymentType = "sic"
ExpectedPaymentTypeSignet ExpectedPaymentType = "signet"
ExpectedPaymentTypeSknbi ExpectedPaymentType = "sknbi"
ExpectedPaymentTypeWire ExpectedPaymentType = "wire"
ExpectedPaymentTypeZengin ExpectedPaymentType = "zengin"
)
func (r ExpectedPaymentType) IsKnown() bool {
switch r {
case ExpectedPaymentTypeACH, ExpectedPaymentTypeAuBecs, ExpectedPaymentTypeBacs, ExpectedPaymentTypeBook, ExpectedPaymentTypeCard, ExpectedPaymentTypeChats, ExpectedPaymentTypeCheck, ExpectedPaymentTypeCrossBorder, ExpectedPaymentTypeDkNets, ExpectedPaymentTypeEft, ExpectedPaymentTypeHuIcs, ExpectedPaymentTypeInterac, ExpectedPaymentTypeMasav, ExpectedPaymentTypeMxCcen, ExpectedPaymentTypeNeft, ExpectedPaymentTypeNics, ExpectedPaymentTypeNzBecs, ExpectedPaymentTypePlElixir, ExpectedPaymentTypeProvxchange, ExpectedPaymentTypeRoSent, ExpectedPaymentTypeRtp, ExpectedPaymentTypeSeBankgirot, ExpectedPaymentTypeSen, ExpectedPaymentTypeSepa, ExpectedPaymentTypeSgGiro, ExpectedPaymentTypeSic, ExpectedPaymentTypeSignet, ExpectedPaymentTypeSknbi, ExpectedPaymentTypeWire, ExpectedPaymentTypeZengin:
return true
}
return false
}
type ReconciliationRule struct {
// The lowest amount this expected payment may be equal to. Value in specified
// currency's smallest unit. e.g. $10 would be represented as 1000.
AmountLowerBound int64 `json:"amount_lower_bound,required"`
// The highest amount this expected payment may be equal to. Value in specified
// currency's smallest unit. e.g. $10 would be represented as 1000.
AmountUpperBound int64 `json:"amount_upper_bound,required"`
// One of credit or debit. When you are receiving money, use credit. When you are
// being charged, use debit.
Direction ReconciliationRuleDirection `json:"direction,required"`
// The ID of the Internal Account for the expected payment
InternalAccountID string `json:"internal_account_id,required" format:"uuid"`
// The ID of the counterparty you expect for this payment
CounterpartyID string `json:"counterparty_id,nullable" format:"uuid"`
// Must conform to ISO 4217. Defaults to the currency of the internal account
Currency shared.Currency `json:"currency"`
// A hash of custom identifiers for this payment
CustomIdentifiers map[string]string `json:"custom_identifiers,nullable"`
// The earliest date the payment may come in. Format is yyyy-mm-dd
DateLowerBound time.Time `json:"date_lower_bound,nullable" format:"date"`
// The latest date the payment may come in. Format is yyyy-mm-dd
DateUpperBound time.Time `json:"date_upper_bound,nullable" format:"date"`
// One of ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
// sepa, signet wire
Type ReconciliationRuleType `json:"type,nullable"`
JSON reconciliationRuleJSON `json:"-"`
}
// reconciliationRuleJSON contains the JSON metadata for the struct
// [ReconciliationRule]
type reconciliationRuleJSON struct {
AmountLowerBound apijson.Field
AmountUpperBound apijson.Field
Direction apijson.Field
InternalAccountID apijson.Field
CounterpartyID apijson.Field
Currency apijson.Field
CustomIdentifiers apijson.Field
DateLowerBound apijson.Field
DateUpperBound apijson.Field
Type apijson.Field
raw string
ExtraFields map[string]apijson.Field
}
func (r *ReconciliationRule) UnmarshalJSON(data []byte) (err error) {
return apijson.UnmarshalRoot(data, r)
}
func (r reconciliationRuleJSON) RawJSON() string {
return r.raw
}
// One of credit or debit. When you are receiving money, use credit. When you are
// being charged, use debit.
type ReconciliationRuleDirection string
const (
ReconciliationRuleDirectionCredit ReconciliationRuleDirection = "credit"
ReconciliationRuleDirectionDebit ReconciliationRuleDirection = "debit"
)
func (r ReconciliationRuleDirection) IsKnown() bool {
switch r {
case ReconciliationRuleDirectionCredit, ReconciliationRuleDirectionDebit:
return true
}
return false
}
// One of ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
// sepa, signet wire
type ReconciliationRuleType string
const (
ReconciliationRuleTypeACH ReconciliationRuleType = "ach"
ReconciliationRuleTypeAuBecs ReconciliationRuleType = "au_becs"
ReconciliationRuleTypeBacs ReconciliationRuleType = "bacs"
ReconciliationRuleTypeBook ReconciliationRuleType = "book"
ReconciliationRuleTypeCard ReconciliationRuleType = "card"
ReconciliationRuleTypeChats ReconciliationRuleType = "chats"
ReconciliationRuleTypeCheck ReconciliationRuleType = "check"
ReconciliationRuleTypeCrossBorder ReconciliationRuleType = "cross_border"
ReconciliationRuleTypeDkNets ReconciliationRuleType = "dk_nets"
ReconciliationRuleTypeEft ReconciliationRuleType = "eft"
ReconciliationRuleTypeHuIcs ReconciliationRuleType = "hu_ics"
ReconciliationRuleTypeInterac ReconciliationRuleType = "interac"
ReconciliationRuleTypeMasav ReconciliationRuleType = "masav"
ReconciliationRuleTypeMxCcen ReconciliationRuleType = "mx_ccen"
ReconciliationRuleTypeNeft ReconciliationRuleType = "neft"
ReconciliationRuleTypeNics ReconciliationRuleType = "nics"
ReconciliationRuleTypeNzBecs ReconciliationRuleType = "nz_becs"
ReconciliationRuleTypePlElixir ReconciliationRuleType = "pl_elixir"
ReconciliationRuleTypeProvxchange ReconciliationRuleType = "provxchange"
ReconciliationRuleTypeRoSent ReconciliationRuleType = "ro_sent"
ReconciliationRuleTypeRtp ReconciliationRuleType = "rtp"
ReconciliationRuleTypeSeBankgirot ReconciliationRuleType = "se_bankgirot"
ReconciliationRuleTypeSen ReconciliationRuleType = "sen"
ReconciliationRuleTypeSepa ReconciliationRuleType = "sepa"
ReconciliationRuleTypeSgGiro ReconciliationRuleType = "sg_giro"
ReconciliationRuleTypeSic ReconciliationRuleType = "sic"
ReconciliationRuleTypeSignet ReconciliationRuleType = "signet"
ReconciliationRuleTypeSknbi ReconciliationRuleType = "sknbi"
ReconciliationRuleTypeWire ReconciliationRuleType = "wire"
ReconciliationRuleTypeZengin ReconciliationRuleType = "zengin"
)
func (r ReconciliationRuleType) IsKnown() bool {
switch r {
case ReconciliationRuleTypeACH, ReconciliationRuleTypeAuBecs, ReconciliationRuleTypeBacs, ReconciliationRuleTypeBook, ReconciliationRuleTypeCard, ReconciliationRuleTypeChats, ReconciliationRuleTypeCheck, ReconciliationRuleTypeCrossBorder, ReconciliationRuleTypeDkNets, ReconciliationRuleTypeEft, ReconciliationRuleTypeHuIcs, ReconciliationRuleTypeInterac, ReconciliationRuleTypeMasav, ReconciliationRuleTypeMxCcen, ReconciliationRuleTypeNeft, ReconciliationRuleTypeNics, ReconciliationRuleTypeNzBecs, ReconciliationRuleTypePlElixir, ReconciliationRuleTypeProvxchange, ReconciliationRuleTypeRoSent, ReconciliationRuleTypeRtp, ReconciliationRuleTypeSeBankgirot, ReconciliationRuleTypeSen, ReconciliationRuleTypeSepa, ReconciliationRuleTypeSgGiro, ReconciliationRuleTypeSic, ReconciliationRuleTypeSignet, ReconciliationRuleTypeSknbi, ReconciliationRuleTypeWire, ReconciliationRuleTypeZengin:
return true
}
return false
}
type ReconciliationRuleParam struct {
// The lowest amount this expected payment may be equal to. Value in specified
// currency's smallest unit. e.g. $10 would be represented as 1000.
AmountLowerBound param.Field[int64] `json:"amount_lower_bound,required"`
// The highest amount this expected payment may be equal to. Value in specified
// currency's smallest unit. e.g. $10 would be represented as 1000.
AmountUpperBound param.Field[int64] `json:"amount_upper_bound,required"`
// One of credit or debit. When you are receiving money, use credit. When you are
// being charged, use debit.
Direction param.Field[ReconciliationRuleDirection] `json:"direction,required"`
// The ID of the Internal Account for the expected payment
InternalAccountID param.Field[string] `json:"internal_account_id,required" format:"uuid"`
// The ID of the counterparty you expect for this payment
CounterpartyID param.Field[string] `json:"counterparty_id" format:"uuid"`
// Must conform to ISO 4217. Defaults to the currency of the internal account
Currency param.Field[shared.Currency] `json:"currency"`
// A hash of custom identifiers for this payment
CustomIdentifiers param.Field[map[string]string] `json:"custom_identifiers"`
// The earliest date the payment may come in. Format is yyyy-mm-dd
DateLowerBound param.Field[time.Time] `json:"date_lower_bound" format:"date"`
// The latest date the payment may come in. Format is yyyy-mm-dd
DateUpperBound param.Field[time.Time] `json:"date_upper_bound" format:"date"`
// One of ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
// sepa, signet wire
Type param.Field[ReconciliationRuleType] `json:"type"`
}
func (r ReconciliationRuleParam) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
type ExpectedPaymentNewParams struct {
// The lowest amount this expected payment may be equal to. Value in specified
// currency's smallest unit. e.g. $10 would be represented as 1000.
AmountLowerBound param.Field[int64] `json:"amount_lower_bound"`
// The highest amount this expected payment may be equal to. Value in specified
// currency's smallest unit. e.g. $10 would be represented as 1000.
AmountUpperBound param.Field[int64] `json:"amount_upper_bound"`
// The ID of the counterparty you expect for this payment.
CounterpartyID param.Field[string] `json:"counterparty_id" format:"uuid"`
// Must conform to ISO 4217. Defaults to the currency of the internal account.
Currency param.Field[shared.Currency] `json:"currency"`
// The earliest date the payment may come in. Format: yyyy-mm-dd
DateLowerBound param.Field[time.Time] `json:"date_lower_bound" format:"date"`
// The latest date the payment may come in. Format: yyyy-mm-dd
DateUpperBound param.Field[time.Time] `json:"date_upper_bound" format:"date"`
// An optional description for internal use.
Description param.Field[string] `json:"description"`
// One of credit or debit. When you are receiving money, use credit. When you are
// being charged, use debit.
Direction param.Field[ExpectedPaymentNewParamsDirection] `json:"direction"`
// The ID of the Internal Account for the expected payment.
InternalAccountID param.Field[string] `json:"internal_account_id" format:"uuid"`
// Specifies a ledger transaction object that will be created with the expected
// payment. If the ledger transaction cannot be created, then the expected payment
// creation will fail. The resulting ledger transaction will mirror the status of
// the expected payment.
LedgerTransaction param.Field[ExpectedPaymentNewParamsLedgerTransaction] `json:"ledger_transaction"`
// Either ledger_transaction or ledger_transaction_id can be provided. Only a
// pending ledger transaction can be attached upon expected payment creation. Once
// the expected payment is created, the status of the ledger transaction tracks the
// expected payment automatically.
LedgerTransactionID param.Field[string] `json:"ledger_transaction_id" format:"uuid"`
LineItems param.Field[[]ExpectedPaymentNewParamsLineItem] `json:"line_items"`
// Additional data represented as key-value pairs. Both the key and value must be
// strings.
Metadata param.Field[map[string]string] `json:"metadata"`
// The reconciliation filters you have for this payment.
ReconciliationFilters param.Field[interface{}] `json:"reconciliation_filters"`
// The reconciliation groups you have for this payment.
ReconciliationGroups param.Field[interface{}] `json:"reconciliation_groups"`
// An array of reconciliation rule variables for this payment.
ReconciliationRuleVariables param.Field[[]ReconciliationRuleParam] `json:"reconciliation_rule_variables"`
// For `ach`, this field will be passed through on an addenda record. For `wire`
// payments the field will be passed through as the "Originator to Beneficiary
// Information", also known as OBI or Fedwire tag 6000.
RemittanceInformation param.Field[string] `json:"remittance_information"`
// The statement description you expect to see on the transaction. For ACH
// payments, this will be the full line item passed from the bank. For wire
// payments, this will be the OBI field on the wire. For check payments, this will
// be the memo field.
StatementDescriptor param.Field[string] `json:"statement_descriptor"`
// One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
// sepa, signet, wire.
Type param.Field[ExpectedPaymentType] `json:"type"`
}
func (r ExpectedPaymentNewParams) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
// One of credit or debit. When you are receiving money, use credit. When you are
// being charged, use debit.
type ExpectedPaymentNewParamsDirection string
const (
ExpectedPaymentNewParamsDirectionCredit ExpectedPaymentNewParamsDirection = "credit"
ExpectedPaymentNewParamsDirectionDebit ExpectedPaymentNewParamsDirection = "debit"
)
func (r ExpectedPaymentNewParamsDirection) IsKnown() bool {
switch r {
case ExpectedPaymentNewParamsDirectionCredit, ExpectedPaymentNewParamsDirectionDebit:
return true
}
return false
}
// Specifies a ledger transaction object that will be created with the expected
// payment. If the ledger transaction cannot be created, then the expected payment
// creation will fail. The resulting ledger transaction will mirror the status of
// the expected payment.
type ExpectedPaymentNewParamsLedgerTransaction struct {
// An array of ledger entry objects.
LedgerEntries param.Field[[]ExpectedPaymentNewParamsLedgerTransactionLedgerEntry] `json:"ledger_entries,required"`
// An optional description for internal use.
Description param.Field[string] `json:"description"`
// The timestamp (ISO8601 format) at which the ledger transaction happened for
// reporting purposes.
EffectiveAt param.Field[time.Time] `json:"effective_at" format:"date-time"`
// The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
// purposes.
EffectiveDate param.Field[time.Time] `json:"effective_date" format:"date"`
// A unique string to represent the ledger transaction. Only one pending or posted
// ledger transaction may have this ID in the ledger.
ExternalID param.Field[string] `json:"external_id"`
// If the ledger transaction can be reconciled to another object in Modern
// Treasury, the id will be populated here, otherwise null.
LedgerableID param.Field[string] `json:"ledgerable_id" format:"uuid"`
// If the ledger transaction can be reconciled to another object in Modern
// Treasury, the type will be populated here, otherwise null. This can be one of
// payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
// reversal.
LedgerableType param.Field[ExpectedPaymentNewParamsLedgerTransactionLedgerableType] `json:"ledgerable_type"`
// Additional data represented as key-value pairs. Both the key and value must be
// strings.
Metadata param.Field[map[string]string] `json:"metadata"`
// To post a ledger transaction at creation, use `posted`.
Status param.Field[ExpectedPaymentNewParamsLedgerTransactionStatus] `json:"status"`
}
func (r ExpectedPaymentNewParamsLedgerTransaction) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
type ExpectedPaymentNewParamsLedgerTransactionLedgerEntry struct {
// Value in specified currency's smallest unit. e.g. $10 would be represented
// as 1000. Can be any integer up to 36 digits.
Amount param.Field[int64] `json:"amount,required"`
// One of `credit`, `debit`. Describes the direction money is flowing in the
// transaction. A `credit` moves money from your account to someone else's. A
// `debit` pulls money from someone else's account to your own. Note that wire,
// rtp, and check payments will always be `credit`.
Direction param.Field[shared.TransactionDirection] `json:"direction,required"`
// The ledger account that this ledger entry is associated with.
LedgerAccountID param.Field[string] `json:"ledger_account_id,required" format:"uuid"`
// Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
// account’s available balance. If any of these conditions would be false after the
// transaction is created, the entire call will fail with error code 422.
AvailableBalanceAmount param.Field[map[string]int64] `json:"available_balance_amount"`
// Lock version of the ledger account. This can be passed when creating a ledger
// transaction to only succeed if no ledger transactions have posted since the
// given version. See our post about Designing the Ledgers API with Optimistic
// Locking for more details.
LockVersion param.Field[int64] `json:"lock_version"`
// Additional data represented as key-value pairs. Both the key and value must be
// strings.
Metadata param.Field[map[string]string] `json:"metadata"`
// Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
// account’s pending balance. If any of these conditions would be false after the
// transaction is created, the entire call will fail with error code 422.
PendingBalanceAmount param.Field[map[string]int64] `json:"pending_balance_amount"`
// Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
// account’s posted balance. If any of these conditions would be false after the
// transaction is created, the entire call will fail with error code 422.
PostedBalanceAmount param.Field[map[string]int64] `json:"posted_balance_amount"`
// If true, response will include the balance of the associated ledger account for
// the entry.
ShowResultingLedgerAccountBalances param.Field[bool] `json:"show_resulting_ledger_account_balances"`
}
func (r ExpectedPaymentNewParamsLedgerTransactionLedgerEntry) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
// If the ledger transaction can be reconciled to another object in Modern
// Treasury, the type will be populated here, otherwise null. This can be one of
// payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
// reversal.
type ExpectedPaymentNewParamsLedgerTransactionLedgerableType string
const (
ExpectedPaymentNewParamsLedgerTransactionLedgerableTypeExpectedPayment ExpectedPaymentNewParamsLedgerTransactionLedgerableType = "expected_payment"
ExpectedPaymentNewParamsLedgerTransactionLedgerableTypeIncomingPaymentDetail ExpectedPaymentNewParamsLedgerTransactionLedgerableType = "incoming_payment_detail"
ExpectedPaymentNewParamsLedgerTransactionLedgerableTypePaperItem ExpectedPaymentNewParamsLedgerTransactionLedgerableType = "paper_item"
ExpectedPaymentNewParamsLedgerTransactionLedgerableTypePaymentOrder ExpectedPaymentNewParamsLedgerTransactionLedgerableType = "payment_order"
ExpectedPaymentNewParamsLedgerTransactionLedgerableTypeReturn ExpectedPaymentNewParamsLedgerTransactionLedgerableType = "return"
ExpectedPaymentNewParamsLedgerTransactionLedgerableTypeReversal ExpectedPaymentNewParamsLedgerTransactionLedgerableType = "reversal"
)
func (r ExpectedPaymentNewParamsLedgerTransactionLedgerableType) IsKnown() bool {
switch r {
case ExpectedPaymentNewParamsLedgerTransactionLedgerableTypeExpectedPayment, ExpectedPaymentNewParamsLedgerTransactionLedgerableTypeIncomingPaymentDetail, ExpectedPaymentNewParamsLedgerTransactionLedgerableTypePaperItem, ExpectedPaymentNewParamsLedgerTransactionLedgerableTypePaymentOrder, ExpectedPaymentNewParamsLedgerTransactionLedgerableTypeReturn, ExpectedPaymentNewParamsLedgerTransactionLedgerableTypeReversal:
return true
}
return false
}
// To post a ledger transaction at creation, use `posted`.
type ExpectedPaymentNewParamsLedgerTransactionStatus string
const (
ExpectedPaymentNewParamsLedgerTransactionStatusArchived ExpectedPaymentNewParamsLedgerTransactionStatus = "archived"
ExpectedPaymentNewParamsLedgerTransactionStatusPending ExpectedPaymentNewParamsLedgerTransactionStatus = "pending"
ExpectedPaymentNewParamsLedgerTransactionStatusPosted ExpectedPaymentNewParamsLedgerTransactionStatus = "posted"
)
func (r ExpectedPaymentNewParamsLedgerTransactionStatus) IsKnown() bool {
switch r {
case ExpectedPaymentNewParamsLedgerTransactionStatusArchived, ExpectedPaymentNewParamsLedgerTransactionStatusPending, ExpectedPaymentNewParamsLedgerTransactionStatusPosted:
return true
}
return false
}
type ExpectedPaymentNewParamsLineItem struct {
// Value in specified currency's smallest unit. e.g. $10 would be represented
// as 1000.
Amount param.Field[int64] `json:"amount,required"`
// The ID of one of your accounting categories. Note that these will only be
// accessible if your accounting system has been connected.
AccountingCategoryID param.Field[string] `json:"accounting_category_id"`
// A free-form description of the line item.
Description param.Field[string] `json:"description"`
// Additional data represented as key-value pairs. Both the key and value must be
// strings.
Metadata param.Field[map[string]string] `json:"metadata"`
}
func (r ExpectedPaymentNewParamsLineItem) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
type ExpectedPaymentUpdateParams struct {
// The lowest amount this expected payment may be equal to. Value in specified
// currency's smallest unit. e.g. $10 would be represented as 1000.
AmountLowerBound param.Field[int64] `json:"amount_lower_bound"`
// The highest amount this expected payment may be equal to. Value in specified
// currency's smallest unit. e.g. $10 would be represented as 1000.
AmountUpperBound param.Field[int64] `json:"amount_upper_bound"`
// The ID of the counterparty you expect for this payment.
CounterpartyID param.Field[string] `json:"counterparty_id" format:"uuid"`
// Must conform to ISO 4217. Defaults to the currency of the internal account.
Currency param.Field[shared.Currency] `json:"currency"`
// The earliest date the payment may come in. Format: yyyy-mm-dd
DateLowerBound param.Field[time.Time] `json:"date_lower_bound" format:"date"`
// The latest date the payment may come in. Format: yyyy-mm-dd
DateUpperBound param.Field[time.Time] `json:"date_upper_bound" format:"date"`
// An optional description for internal use.
Description param.Field[string] `json:"description"`
// One of credit or debit. When you are receiving money, use credit. When you are
// being charged, use debit.
Direction param.Field[ExpectedPaymentUpdateParamsDirection] `json:"direction"`
// The ID of the Internal Account for the expected payment.
InternalAccountID param.Field[string] `json:"internal_account_id" format:"uuid"`
// Additional data represented as key-value pairs. Both the key and value must be
// strings.
Metadata param.Field[map[string]string] `json:"metadata"`
// The reconciliation filters you have for this payment.
ReconciliationFilters param.Field[interface{}] `json:"reconciliation_filters"`
// The reconciliation groups you have for this payment.
ReconciliationGroups param.Field[interface{}] `json:"reconciliation_groups"`
// An array of reconciliation rule variables for this payment.
ReconciliationRuleVariables param.Field[[]ReconciliationRuleParam] `json:"reconciliation_rule_variables"`
// For `ach`, this field will be passed through on an addenda record. For `wire`
// payments the field will be passed through as the "Originator to Beneficiary
// Information", also known as OBI or Fedwire tag 6000.
RemittanceInformation param.Field[string] `json:"remittance_information"`
// The statement description you expect to see on the transaction. For ACH
// payments, this will be the full line item passed from the bank. For wire
// payments, this will be the OBI field on the wire. For check payments, this will
// be the memo field.
StatementDescriptor param.Field[string] `json:"statement_descriptor"`
// The Expected Payment's status can be updated from partially_reconciled to
// reconciled.
Status param.Field[ExpectedPaymentUpdateParamsStatus] `json:"status"`
// One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
// sepa, signet, wire.
Type param.Field[ExpectedPaymentType] `json:"type"`
}
func (r ExpectedPaymentUpdateParams) MarshalJSON() (data []byte, err error) {
return apijson.MarshalRoot(r)
}
// One of credit or debit. When you are receiving money, use credit. When you are
// being charged, use debit.
type ExpectedPaymentUpdateParamsDirection string
const (
ExpectedPaymentUpdateParamsDirectionCredit ExpectedPaymentUpdateParamsDirection = "credit"
ExpectedPaymentUpdateParamsDirectionDebit ExpectedPaymentUpdateParamsDirection = "debit"
)
func (r ExpectedPaymentUpdateParamsDirection) IsKnown() bool {
switch r {
case ExpectedPaymentUpdateParamsDirectionCredit, ExpectedPaymentUpdateParamsDirectionDebit:
return true
}
return false
}
// The Expected Payment's status can be updated from partially_reconciled to
// reconciled.
type ExpectedPaymentUpdateParamsStatus string
const (
ExpectedPaymentUpdateParamsStatusReconciled ExpectedPaymentUpdateParamsStatus = "reconciled"
)
func (r ExpectedPaymentUpdateParamsStatus) IsKnown() bool {
switch r {
case ExpectedPaymentUpdateParamsStatusReconciled:
return true
}
return false
}
type ExpectedPaymentListParams struct {
AfterCursor param.Field[string] `query:"after_cursor"`
// Specify counterparty_id to see expected_payments for a specific account.
CounterpartyID param.Field[string] `query:"counterparty_id"`
// Used to return expected payments created after some datetime
CreatedAtLowerBound param.Field[time.Time] `query:"created_at_lower_bound" format:"date-time"`
// Used to return expected payments created before some datetime
CreatedAtUpperBound param.Field[time.Time] `query:"created_at_upper_bound" format:"date-time"`
// One of credit, debit
Direction param.Field[shared.TransactionDirection] `query:"direction"`
// Specify internal_account_id to see expected_payments for a specific account.
InternalAccountID param.Field[string] `query:"internal_account_id"`
// For example, if you want to query for records with metadata key `Type` and value
// `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query
// parameters.
Metadata param.Field[map[string]string] `query:"metadata"`
PerPage param.Field[int64] `query:"per_page"`
// One of unreconciled, reconciled, or archived.
Status param.Field[ExpectedPaymentListParamsStatus] `query:"status"`
// One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen,
// sepa, signet, wire
Type param.Field[ExpectedPaymentListParamsType] `query:"type"`
}
// URLQuery serializes [ExpectedPaymentListParams]'s query parameters as
// `url.Values`.
func (r ExpectedPaymentListParams) URLQuery() (v url.Values) {
return apiquery.MarshalWithSettings(r, apiquery.QuerySettings{
ArrayFormat: apiquery.ArrayQueryFormatBrackets,
NestedFormat: apiquery.NestedQueryFormatBrackets,
})
}
// One of unreconciled, reconciled, or archived.
type ExpectedPaymentListParamsStatus string
const (
ExpectedPaymentListParamsStatusArchived ExpectedPaymentListParamsStatus = "archived"
ExpectedPaymentListParamsStatusPartiallyReconciled ExpectedPaymentListParamsStatus = "partially_reconciled"
ExpectedPaymentListParamsStatusReconciled ExpectedPaymentListParamsStatus = "reconciled"
ExpectedPaymentListParamsStatusUnreconciled ExpectedPaymentListParamsStatus = "unreconciled"
)
func (r ExpectedPaymentListParamsStatus) IsKnown() bool {
switch r {
case ExpectedPaymentListParamsStatusArchived, ExpectedPaymentListParamsStatusPartiallyReconciled, ExpectedPaymentListParamsStatusReconciled, ExpectedPaymentListParamsStatusUnreconciled:
return true
}
return false
}
// One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen,
// sepa, signet, wire
type ExpectedPaymentListParamsType string
const (
ExpectedPaymentListParamsTypeACH ExpectedPaymentListParamsType = "ach"
ExpectedPaymentListParamsTypeAuBecs ExpectedPaymentListParamsType = "au_becs"
ExpectedPaymentListParamsTypeBacs ExpectedPaymentListParamsType = "bacs"
ExpectedPaymentListParamsTypeBook ExpectedPaymentListParamsType = "book"
ExpectedPaymentListParamsTypeCard ExpectedPaymentListParamsType = "card"
ExpectedPaymentListParamsTypeChats ExpectedPaymentListParamsType = "chats"
ExpectedPaymentListParamsTypeCheck ExpectedPaymentListParamsType = "check"
ExpectedPaymentListParamsTypeCrossBorder ExpectedPaymentListParamsType = "cross_border"
ExpectedPaymentListParamsTypeDkNets ExpectedPaymentListParamsType = "dk_nets"
ExpectedPaymentListParamsTypeEft ExpectedPaymentListParamsType = "eft"
ExpectedPaymentListParamsTypeHuIcs ExpectedPaymentListParamsType = "hu_ics"
ExpectedPaymentListParamsTypeInterac ExpectedPaymentListParamsType = "interac"
ExpectedPaymentListParamsTypeMasav ExpectedPaymentListParamsType = "masav"
ExpectedPaymentListParamsTypeMxCcen ExpectedPaymentListParamsType = "mx_ccen"
ExpectedPaymentListParamsTypeNeft ExpectedPaymentListParamsType = "neft"
ExpectedPaymentListParamsTypeNics ExpectedPaymentListParamsType = "nics"
ExpectedPaymentListParamsTypeNzBecs ExpectedPaymentListParamsType = "nz_becs"
ExpectedPaymentListParamsTypePlElixir ExpectedPaymentListParamsType = "pl_elixir"
ExpectedPaymentListParamsTypeProvxchange ExpectedPaymentListParamsType = "provxchange"
ExpectedPaymentListParamsTypeRoSent ExpectedPaymentListParamsType = "ro_sent"
ExpectedPaymentListParamsTypeRtp ExpectedPaymentListParamsType = "rtp"
ExpectedPaymentListParamsTypeSeBankgirot ExpectedPaymentListParamsType = "se_bankgirot"
ExpectedPaymentListParamsTypeSen ExpectedPaymentListParamsType = "sen"
ExpectedPaymentListParamsTypeSepa ExpectedPaymentListParamsType = "sepa"
ExpectedPaymentListParamsTypeSgGiro ExpectedPaymentListParamsType = "sg_giro"
ExpectedPaymentListParamsTypeSic ExpectedPaymentListParamsType = "sic"
ExpectedPaymentListParamsTypeSignet ExpectedPaymentListParamsType = "signet"
ExpectedPaymentListParamsTypeSknbi ExpectedPaymentListParamsType = "sknbi"
ExpectedPaymentListParamsTypeWire ExpectedPaymentListParamsType = "wire"
ExpectedPaymentListParamsTypeZengin ExpectedPaymentListParamsType = "zengin"
)
func (r ExpectedPaymentListParamsType) IsKnown() bool {
switch r {
case ExpectedPaymentListParamsTypeACH, ExpectedPaymentListParamsTypeAuBecs, ExpectedPaymentListParamsTypeBacs, ExpectedPaymentListParamsTypeBook, ExpectedPaymentListParamsTypeCard, ExpectedPaymentListParamsTypeChats, ExpectedPaymentListParamsTypeCheck, ExpectedPaymentListParamsTypeCrossBorder, ExpectedPaymentListParamsTypeDkNets, ExpectedPaymentListParamsTypeEft, ExpectedPaymentListParamsTypeHuIcs, ExpectedPaymentListParamsTypeInterac, ExpectedPaymentListParamsTypeMasav, ExpectedPaymentListParamsTypeMxCcen, ExpectedPaymentListParamsTypeNeft, ExpectedPaymentListParamsTypeNics, ExpectedPaymentListParamsTypeNzBecs, ExpectedPaymentListParamsTypePlElixir, ExpectedPaymentListParamsTypeProvxchange, ExpectedPaymentListParamsTypeRoSent, ExpectedPaymentListParamsTypeRtp, ExpectedPaymentListParamsTypeSeBankgirot, ExpectedPaymentListParamsTypeSen, ExpectedPaymentListParamsTypeSepa, ExpectedPaymentListParamsTypeSgGiro, ExpectedPaymentListParamsTypeSic, ExpectedPaymentListParamsTypeSignet, ExpectedPaymentListParamsTypeSknbi, ExpectedPaymentListParamsTypeWire, ExpectedPaymentListParamsTypeZengin:
return true
}
return false
}