modern_treasury 0.5.0 → 0.6.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/modern_treasury/models/bulk_request_create_params.rb +108 -2
- data/lib/modern_treasury/models/counterparty_create_params.rb +2 -0
- data/lib/modern_treasury/models/line_item.rb +55 -1
- data/lib/modern_treasury/models/payment_order.rb +52 -1
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +51 -1
- data/lib/modern_treasury/models/payment_order_create_params.rb +50 -1
- data/lib/modern_treasury/models/payment_order_update_params.rb +50 -1
- data/lib/modern_treasury/resources/payment_orders.rb +15 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +156 -0
- data/rbi/modern_treasury/models/line_item.rbi +69 -0
- data/rbi/modern_treasury/models/payment_order.rbi +69 -0
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +76 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +73 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +73 -0
- data/rbi/modern_treasury/resources/payment_orders.rbi +21 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +52 -0
- data/sig/modern_treasury/models/line_item.rbs +22 -0
- data/sig/modern_treasury/models/payment_order.rbs +22 -0
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +26 -0
- data/sig/modern_treasury/models/payment_order_create_params.rbs +26 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +26 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +6 -0
- metadata +2 -2
|
@@ -40,11 +40,31 @@ module ModernTreasury
|
|
|
40
40
|
sig { returns(ModernTreasury::PaymentOrderType::OrSymbol) }
|
|
41
41
|
attr_accessor :type
|
|
42
42
|
|
|
43
|
+
sig do
|
|
44
|
+
returns(
|
|
45
|
+
T.nilable(ModernTreasury::PaymentOrderCreateAsyncParams::Accounting)
|
|
46
|
+
)
|
|
47
|
+
end
|
|
48
|
+
attr_reader :accounting
|
|
49
|
+
|
|
50
|
+
sig do
|
|
51
|
+
params(
|
|
52
|
+
accounting:
|
|
53
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting::OrHash
|
|
54
|
+
).void
|
|
55
|
+
end
|
|
56
|
+
attr_writer :accounting
|
|
57
|
+
|
|
43
58
|
# The ID of one of your accounting categories. Note that these will only be
|
|
44
59
|
# accessible if your accounting system has been connected.
|
|
45
60
|
sig { returns(T.nilable(String)) }
|
|
46
61
|
attr_accessor :accounting_category_id
|
|
47
62
|
|
|
63
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
64
|
+
# accessible if your accounting system has been connected.
|
|
65
|
+
sig { returns(T.nilable(String)) }
|
|
66
|
+
attr_accessor :accounting_ledger_class_id
|
|
67
|
+
|
|
48
68
|
# The party that will pay the fees for the payment order. See
|
|
49
69
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
50
70
|
# differences between the options.
|
|
@@ -307,7 +327,10 @@ module ModernTreasury
|
|
|
307
327
|
ModernTreasury::PaymentOrderCreateAsyncParams::Direction::OrSymbol,
|
|
308
328
|
originating_account_id: String,
|
|
309
329
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
330
|
+
accounting:
|
|
331
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting::OrHash,
|
|
310
332
|
accounting_category_id: T.nilable(String),
|
|
333
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
311
334
|
charge_bearer:
|
|
312
335
|
T.nilable(
|
|
313
336
|
ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::OrSymbol
|
|
@@ -367,9 +390,13 @@ module ModernTreasury
|
|
|
367
390
|
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
|
368
391
|
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
|
369
392
|
type:,
|
|
393
|
+
accounting: nil,
|
|
370
394
|
# The ID of one of your accounting categories. Note that these will only be
|
|
371
395
|
# accessible if your accounting system has been connected.
|
|
372
396
|
accounting_category_id: nil,
|
|
397
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
398
|
+
# accessible if your accounting system has been connected.
|
|
399
|
+
accounting_ledger_class_id: nil,
|
|
373
400
|
# The party that will pay the fees for the payment order. See
|
|
374
401
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
375
402
|
# differences between the options.
|
|
@@ -482,7 +509,10 @@ module ModernTreasury
|
|
|
482
509
|
ModernTreasury::PaymentOrderCreateAsyncParams::Direction::OrSymbol,
|
|
483
510
|
originating_account_id: String,
|
|
484
511
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
512
|
+
accounting:
|
|
513
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting,
|
|
485
514
|
accounting_category_id: T.nilable(String),
|
|
515
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
486
516
|
charge_bearer:
|
|
487
517
|
T.nilable(
|
|
488
518
|
ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::OrSymbol
|
|
@@ -566,6 +596,52 @@ module ModernTreasury
|
|
|
566
596
|
end
|
|
567
597
|
end
|
|
568
598
|
|
|
599
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
600
|
+
OrHash =
|
|
601
|
+
T.type_alias do
|
|
602
|
+
T.any(
|
|
603
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting,
|
|
604
|
+
ModernTreasury::Internal::AnyHash
|
|
605
|
+
)
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
609
|
+
# accessible if your accounting system has been connected.
|
|
610
|
+
sig { returns(T.nilable(String)) }
|
|
611
|
+
attr_accessor :account_id
|
|
612
|
+
|
|
613
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
614
|
+
# track segments of your business independent of client or project. Note that
|
|
615
|
+
# these will only be accessible if your accounting system has been connected.
|
|
616
|
+
sig { returns(T.nilable(String)) }
|
|
617
|
+
attr_accessor :class_id
|
|
618
|
+
|
|
619
|
+
sig do
|
|
620
|
+
params(
|
|
621
|
+
account_id: T.nilable(String),
|
|
622
|
+
class_id: T.nilable(String)
|
|
623
|
+
).returns(T.attached_class)
|
|
624
|
+
end
|
|
625
|
+
def self.new(
|
|
626
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
627
|
+
# accessible if your accounting system has been connected.
|
|
628
|
+
account_id: nil,
|
|
629
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
630
|
+
# track segments of your business independent of client or project. Note that
|
|
631
|
+
# these will only be accessible if your accounting system has been connected.
|
|
632
|
+
class_id: nil
|
|
633
|
+
)
|
|
634
|
+
end
|
|
635
|
+
|
|
636
|
+
sig do
|
|
637
|
+
override.returns(
|
|
638
|
+
{ account_id: T.nilable(String), class_id: T.nilable(String) }
|
|
639
|
+
)
|
|
640
|
+
end
|
|
641
|
+
def to_hash
|
|
642
|
+
end
|
|
643
|
+
end
|
|
644
|
+
|
|
569
645
|
# The party that will pay the fees for the payment order. See
|
|
570
646
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
571
647
|
# differences between the options.
|
|
@@ -38,11 +38,29 @@ module ModernTreasury
|
|
|
38
38
|
sig { returns(ModernTreasury::PaymentOrderType::OrSymbol) }
|
|
39
39
|
attr_accessor :type
|
|
40
40
|
|
|
41
|
+
sig do
|
|
42
|
+
returns(T.nilable(ModernTreasury::PaymentOrderCreateParams::Accounting))
|
|
43
|
+
end
|
|
44
|
+
attr_reader :accounting
|
|
45
|
+
|
|
46
|
+
sig do
|
|
47
|
+
params(
|
|
48
|
+
accounting:
|
|
49
|
+
ModernTreasury::PaymentOrderCreateParams::Accounting::OrHash
|
|
50
|
+
).void
|
|
51
|
+
end
|
|
52
|
+
attr_writer :accounting
|
|
53
|
+
|
|
41
54
|
# The ID of one of your accounting categories. Note that these will only be
|
|
42
55
|
# accessible if your accounting system has been connected.
|
|
43
56
|
sig { returns(T.nilable(String)) }
|
|
44
57
|
attr_accessor :accounting_category_id
|
|
45
58
|
|
|
59
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
60
|
+
# accessible if your accounting system has been connected.
|
|
61
|
+
sig { returns(T.nilable(String)) }
|
|
62
|
+
attr_accessor :accounting_ledger_class_id
|
|
63
|
+
|
|
46
64
|
# The party that will pay the fees for the payment order. See
|
|
47
65
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
48
66
|
# differences between the options.
|
|
@@ -319,7 +337,10 @@ module ModernTreasury
|
|
|
319
337
|
ModernTreasury::PaymentOrderCreateParams::Direction::OrSymbol,
|
|
320
338
|
originating_account_id: String,
|
|
321
339
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
340
|
+
accounting:
|
|
341
|
+
ModernTreasury::PaymentOrderCreateParams::Accounting::OrHash,
|
|
322
342
|
accounting_category_id: T.nilable(String),
|
|
343
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
323
344
|
charge_bearer:
|
|
324
345
|
T.nilable(
|
|
325
346
|
ModernTreasury::PaymentOrderCreateParams::ChargeBearer::OrSymbol
|
|
@@ -383,9 +404,13 @@ module ModernTreasury
|
|
|
383
404
|
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
|
384
405
|
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
|
385
406
|
type:,
|
|
407
|
+
accounting: nil,
|
|
386
408
|
# The ID of one of your accounting categories. Note that these will only be
|
|
387
409
|
# accessible if your accounting system has been connected.
|
|
388
410
|
accounting_category_id: nil,
|
|
411
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
412
|
+
# accessible if your accounting system has been connected.
|
|
413
|
+
accounting_ledger_class_id: nil,
|
|
389
414
|
# The party that will pay the fees for the payment order. See
|
|
390
415
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
391
416
|
# differences between the options.
|
|
@@ -501,7 +526,9 @@ module ModernTreasury
|
|
|
501
526
|
ModernTreasury::PaymentOrderCreateParams::Direction::OrSymbol,
|
|
502
527
|
originating_account_id: String,
|
|
503
528
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
529
|
+
accounting: ModernTreasury::PaymentOrderCreateParams::Accounting,
|
|
504
530
|
accounting_category_id: T.nilable(String),
|
|
531
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
505
532
|
charge_bearer:
|
|
506
533
|
T.nilable(
|
|
507
534
|
ModernTreasury::PaymentOrderCreateParams::ChargeBearer::OrSymbol
|
|
@@ -584,6 +611,52 @@ module ModernTreasury
|
|
|
584
611
|
end
|
|
585
612
|
end
|
|
586
613
|
|
|
614
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
615
|
+
OrHash =
|
|
616
|
+
T.type_alias do
|
|
617
|
+
T.any(
|
|
618
|
+
ModernTreasury::PaymentOrderCreateParams::Accounting,
|
|
619
|
+
ModernTreasury::Internal::AnyHash
|
|
620
|
+
)
|
|
621
|
+
end
|
|
622
|
+
|
|
623
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
624
|
+
# accessible if your accounting system has been connected.
|
|
625
|
+
sig { returns(T.nilable(String)) }
|
|
626
|
+
attr_accessor :account_id
|
|
627
|
+
|
|
628
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
629
|
+
# track segments of your business independent of client or project. Note that
|
|
630
|
+
# these will only be accessible if your accounting system has been connected.
|
|
631
|
+
sig { returns(T.nilable(String)) }
|
|
632
|
+
attr_accessor :class_id
|
|
633
|
+
|
|
634
|
+
sig do
|
|
635
|
+
params(
|
|
636
|
+
account_id: T.nilable(String),
|
|
637
|
+
class_id: T.nilable(String)
|
|
638
|
+
).returns(T.attached_class)
|
|
639
|
+
end
|
|
640
|
+
def self.new(
|
|
641
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
642
|
+
# accessible if your accounting system has been connected.
|
|
643
|
+
account_id: nil,
|
|
644
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
645
|
+
# track segments of your business independent of client or project. Note that
|
|
646
|
+
# these will only be accessible if your accounting system has been connected.
|
|
647
|
+
class_id: nil
|
|
648
|
+
)
|
|
649
|
+
end
|
|
650
|
+
|
|
651
|
+
sig do
|
|
652
|
+
override.returns(
|
|
653
|
+
{ account_id: T.nilable(String), class_id: T.nilable(String) }
|
|
654
|
+
)
|
|
655
|
+
end
|
|
656
|
+
def to_hash
|
|
657
|
+
end
|
|
658
|
+
end
|
|
659
|
+
|
|
587
660
|
# The party that will pay the fees for the payment order. See
|
|
588
661
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
589
662
|
# differences between the options.
|
|
@@ -14,11 +14,29 @@ module ModernTreasury
|
|
|
14
14
|
)
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
sig do
|
|
18
|
+
returns(T.nilable(ModernTreasury::PaymentOrderUpdateParams::Accounting))
|
|
19
|
+
end
|
|
20
|
+
attr_reader :accounting
|
|
21
|
+
|
|
22
|
+
sig do
|
|
23
|
+
params(
|
|
24
|
+
accounting:
|
|
25
|
+
ModernTreasury::PaymentOrderUpdateParams::Accounting::OrHash
|
|
26
|
+
).void
|
|
27
|
+
end
|
|
28
|
+
attr_writer :accounting
|
|
29
|
+
|
|
17
30
|
# The ID of one of your accounting categories. Note that these will only be
|
|
18
31
|
# accessible if your accounting system has been connected.
|
|
19
32
|
sig { returns(T.nilable(String)) }
|
|
20
33
|
attr_accessor :accounting_category_id
|
|
21
34
|
|
|
35
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
36
|
+
# accessible if your accounting system has been connected.
|
|
37
|
+
sig { returns(T.nilable(String)) }
|
|
38
|
+
attr_accessor :accounting_ledger_class_id
|
|
39
|
+
|
|
22
40
|
# Value in specified currency's smallest unit. e.g. $10 would be represented as
|
|
23
41
|
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
|
24
42
|
sig { returns(T.nilable(Integer)) }
|
|
@@ -312,7 +330,10 @@ module ModernTreasury
|
|
|
312
330
|
|
|
313
331
|
sig do
|
|
314
332
|
params(
|
|
333
|
+
accounting:
|
|
334
|
+
ModernTreasury::PaymentOrderUpdateParams::Accounting::OrHash,
|
|
315
335
|
accounting_category_id: T.nilable(String),
|
|
336
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
316
337
|
amount: Integer,
|
|
317
338
|
charge_bearer:
|
|
318
339
|
T.nilable(
|
|
@@ -361,9 +382,13 @@ module ModernTreasury
|
|
|
361
382
|
).returns(T.attached_class)
|
|
362
383
|
end
|
|
363
384
|
def self.new(
|
|
385
|
+
accounting: nil,
|
|
364
386
|
# The ID of one of your accounting categories. Note that these will only be
|
|
365
387
|
# accessible if your accounting system has been connected.
|
|
366
388
|
accounting_category_id: nil,
|
|
389
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
390
|
+
# accessible if your accounting system has been connected.
|
|
391
|
+
accounting_ledger_class_id: nil,
|
|
367
392
|
# Value in specified currency's smallest unit. e.g. $10 would be represented as
|
|
368
393
|
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
|
369
394
|
amount: nil,
|
|
@@ -486,7 +511,9 @@ module ModernTreasury
|
|
|
486
511
|
sig do
|
|
487
512
|
override.returns(
|
|
488
513
|
{
|
|
514
|
+
accounting: ModernTreasury::PaymentOrderUpdateParams::Accounting,
|
|
489
515
|
accounting_category_id: T.nilable(String),
|
|
516
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
490
517
|
amount: Integer,
|
|
491
518
|
charge_bearer:
|
|
492
519
|
T.nilable(
|
|
@@ -536,6 +563,52 @@ module ModernTreasury
|
|
|
536
563
|
def to_hash
|
|
537
564
|
end
|
|
538
565
|
|
|
566
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
567
|
+
OrHash =
|
|
568
|
+
T.type_alias do
|
|
569
|
+
T.any(
|
|
570
|
+
ModernTreasury::PaymentOrderUpdateParams::Accounting,
|
|
571
|
+
ModernTreasury::Internal::AnyHash
|
|
572
|
+
)
|
|
573
|
+
end
|
|
574
|
+
|
|
575
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
576
|
+
# accessible if your accounting system has been connected.
|
|
577
|
+
sig { returns(T.nilable(String)) }
|
|
578
|
+
attr_accessor :account_id
|
|
579
|
+
|
|
580
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
581
|
+
# track segments of your business independent of client or project. Note that
|
|
582
|
+
# these will only be accessible if your accounting system has been connected.
|
|
583
|
+
sig { returns(T.nilable(String)) }
|
|
584
|
+
attr_accessor :class_id
|
|
585
|
+
|
|
586
|
+
sig do
|
|
587
|
+
params(
|
|
588
|
+
account_id: T.nilable(String),
|
|
589
|
+
class_id: T.nilable(String)
|
|
590
|
+
).returns(T.attached_class)
|
|
591
|
+
end
|
|
592
|
+
def self.new(
|
|
593
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
594
|
+
# accessible if your accounting system has been connected.
|
|
595
|
+
account_id: nil,
|
|
596
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
597
|
+
# track segments of your business independent of client or project. Note that
|
|
598
|
+
# these will only be accessible if your accounting system has been connected.
|
|
599
|
+
class_id: nil
|
|
600
|
+
)
|
|
601
|
+
end
|
|
602
|
+
|
|
603
|
+
sig do
|
|
604
|
+
override.returns(
|
|
605
|
+
{ account_id: T.nilable(String), class_id: T.nilable(String) }
|
|
606
|
+
)
|
|
607
|
+
end
|
|
608
|
+
def to_hash
|
|
609
|
+
end
|
|
610
|
+
end
|
|
611
|
+
|
|
539
612
|
# The party that will pay the fees for the payment order. See
|
|
540
613
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
541
614
|
# differences between the options.
|
|
@@ -14,7 +14,10 @@ module ModernTreasury
|
|
|
14
14
|
ModernTreasury::PaymentOrderCreateParams::Direction::OrSymbol,
|
|
15
15
|
originating_account_id: String,
|
|
16
16
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
17
|
+
accounting:
|
|
18
|
+
ModernTreasury::PaymentOrderCreateParams::Accounting::OrHash,
|
|
17
19
|
accounting_category_id: T.nilable(String),
|
|
20
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
18
21
|
charge_bearer:
|
|
19
22
|
T.nilable(
|
|
20
23
|
ModernTreasury::PaymentOrderCreateParams::ChargeBearer::OrSymbol
|
|
@@ -78,9 +81,13 @@ module ModernTreasury
|
|
|
78
81
|
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
|
79
82
|
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
|
80
83
|
type:,
|
|
84
|
+
accounting: nil,
|
|
81
85
|
# The ID of one of your accounting categories. Note that these will only be
|
|
82
86
|
# accessible if your accounting system has been connected.
|
|
83
87
|
accounting_category_id: nil,
|
|
88
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
89
|
+
# accessible if your accounting system has been connected.
|
|
90
|
+
accounting_ledger_class_id: nil,
|
|
84
91
|
# The party that will pay the fees for the payment order. See
|
|
85
92
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
86
93
|
# differences between the options.
|
|
@@ -202,7 +209,10 @@ module ModernTreasury
|
|
|
202
209
|
sig do
|
|
203
210
|
params(
|
|
204
211
|
id: String,
|
|
212
|
+
accounting:
|
|
213
|
+
ModernTreasury::PaymentOrderUpdateParams::Accounting::OrHash,
|
|
205
214
|
accounting_category_id: T.nilable(String),
|
|
215
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
206
216
|
amount: Integer,
|
|
207
217
|
charge_bearer:
|
|
208
218
|
T.nilable(
|
|
@@ -252,9 +262,13 @@ module ModernTreasury
|
|
|
252
262
|
end
|
|
253
263
|
def update(
|
|
254
264
|
id,
|
|
265
|
+
accounting: nil,
|
|
255
266
|
# The ID of one of your accounting categories. Note that these will only be
|
|
256
267
|
# accessible if your accounting system has been connected.
|
|
257
268
|
accounting_category_id: nil,
|
|
269
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
270
|
+
# accessible if your accounting system has been connected.
|
|
271
|
+
accounting_ledger_class_id: nil,
|
|
258
272
|
# Value in specified currency's smallest unit. e.g. $10 would be represented as
|
|
259
273
|
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
|
260
274
|
amount: nil,
|
|
@@ -443,7 +457,10 @@ module ModernTreasury
|
|
|
443
457
|
ModernTreasury::PaymentOrderCreateAsyncParams::Direction::OrSymbol,
|
|
444
458
|
originating_account_id: String,
|
|
445
459
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
460
|
+
accounting:
|
|
461
|
+
ModernTreasury::PaymentOrderCreateAsyncParams::Accounting::OrHash,
|
|
446
462
|
accounting_category_id: T.nilable(String),
|
|
463
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
447
464
|
charge_bearer:
|
|
448
465
|
T.nilable(
|
|
449
466
|
ModernTreasury::PaymentOrderCreateAsyncParams::ChargeBearer::OrSymbol
|
|
@@ -503,9 +520,13 @@ module ModernTreasury
|
|
|
503
520
|
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
|
504
521
|
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
|
505
522
|
type:,
|
|
523
|
+
accounting: nil,
|
|
506
524
|
# The ID of one of your accounting categories. Note that these will only be
|
|
507
525
|
# accessible if your accounting system has been connected.
|
|
508
526
|
accounting_category_id: nil,
|
|
527
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
528
|
+
# accessible if your accounting system has been connected.
|
|
529
|
+
accounting_ledger_class_id: nil,
|
|
509
530
|
# The party that will pay the fees for the payment order. See
|
|
510
531
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
511
532
|
# differences between the options.
|
|
@@ -95,7 +95,9 @@ module ModernTreasury
|
|
|
95
95
|
direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::direction,
|
|
96
96
|
originating_account_id: String,
|
|
97
97
|
type: ModernTreasury::Models::payment_order_type,
|
|
98
|
+
accounting: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting,
|
|
98
99
|
accounting_category_id: String?,
|
|
100
|
+
accounting_ledger_class_id: String?,
|
|
99
101
|
charge_bearer: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::charge_bearer?,
|
|
100
102
|
currency: ModernTreasury::Models::currency,
|
|
101
103
|
description: String?,
|
|
@@ -135,8 +137,16 @@ module ModernTreasury
|
|
|
135
137
|
|
|
136
138
|
attr_accessor type: ModernTreasury::Models::payment_order_type
|
|
137
139
|
|
|
140
|
+
attr_reader accounting: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting?
|
|
141
|
+
|
|
142
|
+
def accounting=: (
|
|
143
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting
|
|
144
|
+
) -> ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting
|
|
145
|
+
|
|
138
146
|
attr_accessor accounting_category_id: String?
|
|
139
147
|
|
|
148
|
+
attr_accessor accounting_ledger_class_id: String?
|
|
149
|
+
|
|
140
150
|
attr_accessor charge_bearer: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::charge_bearer?
|
|
141
151
|
|
|
142
152
|
attr_reader currency: ModernTreasury::Models::currency?
|
|
@@ -234,7 +244,9 @@ module ModernTreasury
|
|
|
234
244
|
direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::direction,
|
|
235
245
|
originating_account_id: String,
|
|
236
246
|
type: ModernTreasury::Models::payment_order_type,
|
|
247
|
+
?accounting: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting,
|
|
237
248
|
?accounting_category_id: String?,
|
|
249
|
+
?accounting_ledger_class_id: String?,
|
|
238
250
|
?charge_bearer: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::charge_bearer?,
|
|
239
251
|
?currency: ModernTreasury::Models::currency,
|
|
240
252
|
?description: String?,
|
|
@@ -270,7 +282,9 @@ module ModernTreasury
|
|
|
270
282
|
direction: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::direction,
|
|
271
283
|
originating_account_id: String,
|
|
272
284
|
type: ModernTreasury::Models::payment_order_type,
|
|
285
|
+
accounting: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting,
|
|
273
286
|
accounting_category_id: String?,
|
|
287
|
+
accounting_ledger_class_id: String?,
|
|
274
288
|
charge_bearer: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::charge_bearer?,
|
|
275
289
|
currency: ModernTreasury::Models::currency,
|
|
276
290
|
description: String?,
|
|
@@ -312,6 +326,18 @@ module ModernTreasury
|
|
|
312
326
|
def self?.values: -> ::Array[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::direction]
|
|
313
327
|
end
|
|
314
328
|
|
|
329
|
+
type accounting = { account_id: String?, class_id: String? }
|
|
330
|
+
|
|
331
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
332
|
+
attr_accessor account_id: String?
|
|
333
|
+
|
|
334
|
+
attr_accessor class_id: String?
|
|
335
|
+
|
|
336
|
+
def initialize: (?account_id: String?, ?class_id: String?) -> void
|
|
337
|
+
|
|
338
|
+
def to_hash: -> { account_id: String?, class_id: String? }
|
|
339
|
+
end
|
|
340
|
+
|
|
315
341
|
type charge_bearer = :shared | :sender | :receiver
|
|
316
342
|
|
|
317
343
|
module ChargeBearer
|
|
@@ -1074,7 +1100,9 @@ module ModernTreasury
|
|
|
1074
1100
|
type payment_order_update_request_with_id =
|
|
1075
1101
|
{
|
|
1076
1102
|
id: String,
|
|
1103
|
+
accounting: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting,
|
|
1077
1104
|
accounting_category_id: String?,
|
|
1105
|
+
accounting_ledger_class_id: String?,
|
|
1078
1106
|
amount: Integer,
|
|
1079
1107
|
charge_bearer: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::charge_bearer?,
|
|
1080
1108
|
counterparty_id: String?,
|
|
@@ -1113,8 +1141,16 @@ module ModernTreasury
|
|
|
1113
1141
|
|
|
1114
1142
|
def id=: (String) -> String
|
|
1115
1143
|
|
|
1144
|
+
attr_reader accounting: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting?
|
|
1145
|
+
|
|
1146
|
+
def accounting=: (
|
|
1147
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting
|
|
1148
|
+
) -> ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting
|
|
1149
|
+
|
|
1116
1150
|
attr_accessor accounting_category_id: String?
|
|
1117
1151
|
|
|
1152
|
+
attr_accessor accounting_ledger_class_id: String?
|
|
1153
|
+
|
|
1118
1154
|
attr_reader amount: Integer?
|
|
1119
1155
|
|
|
1120
1156
|
def amount=: (Integer) -> Integer
|
|
@@ -1223,7 +1259,9 @@ module ModernTreasury
|
|
|
1223
1259
|
|
|
1224
1260
|
def initialize: (
|
|
1225
1261
|
?id: String,
|
|
1262
|
+
?accounting: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting,
|
|
1226
1263
|
?accounting_category_id: String?,
|
|
1264
|
+
?accounting_ledger_class_id: String?,
|
|
1227
1265
|
?amount: Integer,
|
|
1228
1266
|
?charge_bearer: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::charge_bearer?,
|
|
1229
1267
|
?counterparty_id: String?,
|
|
@@ -1259,7 +1297,9 @@ module ModernTreasury
|
|
|
1259
1297
|
|
|
1260
1298
|
def to_hash: -> {
|
|
1261
1299
|
id: String,
|
|
1300
|
+
accounting: ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting,
|
|
1262
1301
|
accounting_category_id: String?,
|
|
1302
|
+
accounting_ledger_class_id: String?,
|
|
1263
1303
|
amount: Integer,
|
|
1264
1304
|
charge_bearer: ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::charge_bearer?,
|
|
1265
1305
|
counterparty_id: String?,
|
|
@@ -1293,6 +1333,18 @@ module ModernTreasury
|
|
|
1293
1333
|
ultimate_receiving_party_name: String?
|
|
1294
1334
|
}
|
|
1295
1335
|
|
|
1336
|
+
type accounting = { account_id: String?, class_id: String? }
|
|
1337
|
+
|
|
1338
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
1339
|
+
attr_accessor account_id: String?
|
|
1340
|
+
|
|
1341
|
+
attr_accessor class_id: String?
|
|
1342
|
+
|
|
1343
|
+
def initialize: (?account_id: String?, ?class_id: String?) -> void
|
|
1344
|
+
|
|
1345
|
+
def to_hash: -> { account_id: String?, class_id: String? }
|
|
1346
|
+
end
|
|
1347
|
+
|
|
1296
1348
|
type charge_bearer = :shared | :sender | :receiver
|
|
1297
1349
|
|
|
1298
1350
|
module ChargeBearer
|
|
@@ -3,7 +3,9 @@ module ModernTreasury
|
|
|
3
3
|
type line_item =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
accounting: ModernTreasury::LineItem::Accounting,
|
|
6
7
|
accounting_category_id: String?,
|
|
8
|
+
accounting_ledger_class_id: String?,
|
|
7
9
|
amount: Integer,
|
|
8
10
|
created_at: Time,
|
|
9
11
|
description: String?,
|
|
@@ -18,8 +20,12 @@ module ModernTreasury
|
|
|
18
20
|
class LineItem < ModernTreasury::Internal::Type::BaseModel
|
|
19
21
|
attr_accessor id: String
|
|
20
22
|
|
|
23
|
+
attr_accessor accounting: ModernTreasury::LineItem::Accounting
|
|
24
|
+
|
|
21
25
|
attr_accessor accounting_category_id: String?
|
|
22
26
|
|
|
27
|
+
attr_accessor accounting_ledger_class_id: String?
|
|
28
|
+
|
|
23
29
|
attr_accessor amount: Integer
|
|
24
30
|
|
|
25
31
|
attr_accessor created_at: Time
|
|
@@ -40,7 +46,9 @@ module ModernTreasury
|
|
|
40
46
|
|
|
41
47
|
def initialize: (
|
|
42
48
|
id: String,
|
|
49
|
+
accounting: ModernTreasury::LineItem::Accounting,
|
|
43
50
|
accounting_category_id: String?,
|
|
51
|
+
accounting_ledger_class_id: String?,
|
|
44
52
|
amount: Integer,
|
|
45
53
|
created_at: Time,
|
|
46
54
|
description: String?,
|
|
@@ -54,7 +62,9 @@ module ModernTreasury
|
|
|
54
62
|
|
|
55
63
|
def to_hash: -> {
|
|
56
64
|
id: String,
|
|
65
|
+
accounting: ModernTreasury::LineItem::Accounting,
|
|
57
66
|
accounting_category_id: String?,
|
|
67
|
+
accounting_ledger_class_id: String?,
|
|
58
68
|
amount: Integer,
|
|
59
69
|
created_at: Time,
|
|
60
70
|
description: String?,
|
|
@@ -66,6 +76,18 @@ module ModernTreasury
|
|
|
66
76
|
updated_at: Time
|
|
67
77
|
}
|
|
68
78
|
|
|
79
|
+
type accounting = { account_id: String?, class_id: String? }
|
|
80
|
+
|
|
81
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
82
|
+
attr_accessor account_id: String?
|
|
83
|
+
|
|
84
|
+
attr_accessor class_id: String?
|
|
85
|
+
|
|
86
|
+
def initialize: (?account_id: String?, ?class_id: String?) -> void
|
|
87
|
+
|
|
88
|
+
def to_hash: -> { account_id: String?, class_id: String? }
|
|
89
|
+
end
|
|
90
|
+
|
|
69
91
|
type itemizable_type = :ExpectedPayment | :PaymentOrder
|
|
70
92
|
|
|
71
93
|
module ItemizableType
|
|
@@ -3,7 +3,9 @@ module ModernTreasury
|
|
|
3
3
|
type payment_order =
|
|
4
4
|
{
|
|
5
5
|
id: String,
|
|
6
|
+
accounting: ModernTreasury::PaymentOrder::Accounting,
|
|
6
7
|
accounting_category_id: String?,
|
|
8
|
+
accounting_ledger_class_id: String?,
|
|
7
9
|
amount: Integer,
|
|
8
10
|
charge_bearer: ModernTreasury::Models::PaymentOrder::charge_bearer?,
|
|
9
11
|
counterparty_id: String?,
|
|
@@ -53,8 +55,12 @@ module ModernTreasury
|
|
|
53
55
|
class PaymentOrder < ModernTreasury::Internal::Type::BaseModel
|
|
54
56
|
attr_accessor id: String
|
|
55
57
|
|
|
58
|
+
attr_accessor accounting: ModernTreasury::PaymentOrder::Accounting
|
|
59
|
+
|
|
56
60
|
attr_accessor accounting_category_id: String?
|
|
57
61
|
|
|
62
|
+
attr_accessor accounting_ledger_class_id: String?
|
|
63
|
+
|
|
58
64
|
attr_accessor amount: Integer
|
|
59
65
|
|
|
60
66
|
attr_accessor charge_bearer: ModernTreasury::Models::PaymentOrder::charge_bearer?
|
|
@@ -145,7 +151,9 @@ module ModernTreasury
|
|
|
145
151
|
|
|
146
152
|
def initialize: (
|
|
147
153
|
id: String,
|
|
154
|
+
accounting: ModernTreasury::PaymentOrder::Accounting,
|
|
148
155
|
accounting_category_id: String?,
|
|
156
|
+
accounting_ledger_class_id: String?,
|
|
149
157
|
amount: Integer,
|
|
150
158
|
charge_bearer: ModernTreasury::Models::PaymentOrder::charge_bearer?,
|
|
151
159
|
counterparty_id: String?,
|
|
@@ -194,7 +202,9 @@ module ModernTreasury
|
|
|
194
202
|
|
|
195
203
|
def to_hash: -> {
|
|
196
204
|
id: String,
|
|
205
|
+
accounting: ModernTreasury::PaymentOrder::Accounting,
|
|
197
206
|
accounting_category_id: String?,
|
|
207
|
+
accounting_ledger_class_id: String?,
|
|
198
208
|
amount: Integer,
|
|
199
209
|
charge_bearer: ModernTreasury::Models::PaymentOrder::charge_bearer?,
|
|
200
210
|
counterparty_id: String?,
|
|
@@ -241,6 +251,18 @@ module ModernTreasury
|
|
|
241
251
|
vendor_failure_reason: String?
|
|
242
252
|
}
|
|
243
253
|
|
|
254
|
+
type accounting = { account_id: String?, class_id: String? }
|
|
255
|
+
|
|
256
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
257
|
+
attr_accessor account_id: String?
|
|
258
|
+
|
|
259
|
+
attr_accessor class_id: String?
|
|
260
|
+
|
|
261
|
+
def initialize: (?account_id: String?, ?class_id: String?) -> void
|
|
262
|
+
|
|
263
|
+
def to_hash: -> { account_id: String?, class_id: String? }
|
|
264
|
+
end
|
|
265
|
+
|
|
244
266
|
type charge_bearer = :shared | :sender | :receiver
|
|
245
267
|
|
|
246
268
|
module ChargeBearer
|