modern_treasury 0.5.0 → 0.7.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 +49 -0
- data/README.md +9 -9
- data/lib/modern_treasury/errors.rb +25 -11
- data/lib/modern_treasury/file_part.rb +10 -7
- data/lib/modern_treasury/internal/page.rb +3 -3
- data/lib/modern_treasury/internal/transport/base_client.rb +11 -7
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +7 -10
- data/lib/modern_treasury/internal/type/base_page.rb +1 -1
- data/lib/modern_treasury/internal/type/file_input.rb +7 -4
- data/lib/modern_treasury/internal/util.rb +5 -5
- data/lib/modern_treasury/models/bulk_request_create_params.rb +155 -2
- data/lib/modern_treasury/models/counterparty.rb +5 -18
- data/lib/modern_treasury/models/counterparty_create_params.rb +7 -16
- data/lib/modern_treasury/models/incoming_payment_detail.rb +23 -1
- data/lib/modern_treasury/models/internal_account.rb +25 -1
- data/lib/modern_treasury/models/internal_account_list_params.rb +23 -1
- data/lib/modern_treasury/models/invoice_list_params.rb +17 -1
- data/lib/modern_treasury/models/line_item.rb +55 -1
- data/lib/modern_treasury/models/payment_order.rb +226 -1
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +72 -1
- data/lib/modern_treasury/models/payment_order_create_params.rb +71 -1
- data/lib/modern_treasury/models/payment_order_list_params.rb +1 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +72 -1
- data/lib/modern_treasury/models/payment_orders/reversal.rb +24 -1
- data/lib/modern_treasury/models/payment_reference.rb +1 -0
- data/lib/modern_treasury/models/return_create_params.rb +21 -1
- data/lib/modern_treasury/models/return_object.rb +25 -1
- data/lib/modern_treasury/models/transaction.rb +1 -0
- data/lib/modern_treasury/resources/counterparties.rb +1 -1
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/invoices.rb +5 -1
- data/lib/modern_treasury/resources/payment_orders.rb +21 -3
- data/lib/modern_treasury/resources/returns.rb +3 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/rbi/modern_treasury/errors.rbi +29 -2
- data/rbi/modern_treasury/file_part.rbi +1 -1
- data/rbi/modern_treasury/internal/transport/base_client.rbi +4 -5
- data/rbi/modern_treasury/internal/type/base_page.rbi +1 -1
- data/rbi/modern_treasury/internal/util.rbi +1 -1
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +289 -0
- data/rbi/modern_treasury/models/counterparty.rbi +3 -49
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +4 -62
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +54 -0
- data/rbi/modern_treasury/models/internal_account.rbi +52 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +66 -0
- data/rbi/modern_treasury/models/invoice_list_params.rbi +22 -0
- data/rbi/modern_treasury/models/line_item.rbi +69 -0
- data/rbi/modern_treasury/models/payment_order.rbi +374 -0
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +140 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +137 -0
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +142 -0
- data/rbi/modern_treasury/models/payment_orders/reversal.rbi +54 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +5 -0
- data/rbi/modern_treasury/models/return_create_params.rbi +64 -0
- data/rbi/modern_treasury/models/return_object.rbi +58 -0
- data/rbi/modern_treasury/models/transaction.rbi +5 -0
- data/rbi/modern_treasury/resources/counterparties.rbi +1 -2
- data/rbi/modern_treasury/resources/internal_accounts.rbi +3 -0
- data/rbi/modern_treasury/resources/invoices.rbi +6 -0
- data/rbi/modern_treasury/resources/payment_orders.rbi +33 -0
- data/rbi/modern_treasury/resources/returns.rbi +4 -0
- data/sig/modern_treasury/errors.rbs +7 -0
- data/sig/modern_treasury/file_part.rbs +1 -1
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +98 -0
- data/sig/modern_treasury/models/counterparty.rbs +4 -18
- data/sig/modern_treasury/models/counterparty_create_params.rbs +5 -21
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +18 -0
- data/sig/modern_treasury/models/internal_account.rbs +20 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +25 -1
- data/sig/modern_treasury/models/invoice_list_params.rbs +14 -0
- data/sig/modern_treasury/models/line_item.rbs +22 -0
- data/sig/modern_treasury/models/payment_order.rbs +154 -0
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +48 -0
- data/sig/modern_treasury/models/payment_order_create_params.rbs +48 -0
- data/sig/modern_treasury/models/payment_order_list_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +50 -0
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +18 -0
- data/sig/modern_treasury/models/payment_reference.rbs +2 -0
- data/sig/modern_treasury/models/return_create_params.rbs +23 -1
- data/sig/modern_treasury/models/return_object.rbs +22 -0
- data/sig/modern_treasury/models/transaction.rbs +2 -0
- data/sig/modern_treasury/resources/counterparties.rbs +1 -1
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/invoices.rbs +2 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +9 -0
- data/sig/modern_treasury/resources/returns.rbs +1 -0
- metadata +2 -2
|
@@ -274,11 +274,33 @@ module ModernTreasury
|
|
|
274
274
|
sig { returns(ModernTreasury::PaymentOrderType::OrSymbol) }
|
|
275
275
|
attr_accessor :type
|
|
276
276
|
|
|
277
|
+
sig do
|
|
278
|
+
returns(
|
|
279
|
+
T.nilable(
|
|
280
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting
|
|
281
|
+
)
|
|
282
|
+
)
|
|
283
|
+
end
|
|
284
|
+
attr_reader :accounting
|
|
285
|
+
|
|
286
|
+
sig do
|
|
287
|
+
params(
|
|
288
|
+
accounting:
|
|
289
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting::OrHash
|
|
290
|
+
).void
|
|
291
|
+
end
|
|
292
|
+
attr_writer :accounting
|
|
293
|
+
|
|
277
294
|
# The ID of one of your accounting categories. Note that these will only be
|
|
278
295
|
# accessible if your accounting system has been connected.
|
|
279
296
|
sig { returns(T.nilable(String)) }
|
|
280
297
|
attr_accessor :accounting_category_id
|
|
281
298
|
|
|
299
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
300
|
+
# accessible if your accounting system has been connected.
|
|
301
|
+
sig { returns(T.nilable(String)) }
|
|
302
|
+
attr_accessor :accounting_ledger_class_id
|
|
303
|
+
|
|
282
304
|
# The party that will pay the fees for the payment order. See
|
|
283
305
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
284
306
|
# differences between the options.
|
|
@@ -487,6 +509,24 @@ module ModernTreasury
|
|
|
487
509
|
sig { params(receiving_account_id: String).void }
|
|
488
510
|
attr_writer :receiving_account_id
|
|
489
511
|
|
|
512
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
513
|
+
sig do
|
|
514
|
+
returns(
|
|
515
|
+
T.nilable(
|
|
516
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReconciliationStatus::OrSymbol
|
|
517
|
+
)
|
|
518
|
+
)
|
|
519
|
+
end
|
|
520
|
+
attr_reader :reconciliation_status
|
|
521
|
+
|
|
522
|
+
sig do
|
|
523
|
+
params(
|
|
524
|
+
reconciliation_status:
|
|
525
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReconciliationStatus::OrSymbol
|
|
526
|
+
).void
|
|
527
|
+
end
|
|
528
|
+
attr_writer :reconciliation_status
|
|
529
|
+
|
|
490
530
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
491
531
|
# payments the field will be passed through as the "Originator to Beneficiary
|
|
492
532
|
# Information", also known as OBI or Fedwire tag 6000.
|
|
@@ -547,7 +587,10 @@ module ModernTreasury
|
|
|
547
587
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Direction::OrSymbol,
|
|
548
588
|
originating_account_id: String,
|
|
549
589
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
590
|
+
accounting:
|
|
591
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting::OrHash,
|
|
550
592
|
accounting_category_id: T.nilable(String),
|
|
593
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
551
594
|
charge_bearer:
|
|
552
595
|
T.nilable(
|
|
553
596
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer::OrSymbol
|
|
@@ -580,6 +623,8 @@ module ModernTreasury
|
|
|
580
623
|
receiving_account:
|
|
581
624
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::OrHash,
|
|
582
625
|
receiving_account_id: String,
|
|
626
|
+
reconciliation_status:
|
|
627
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReconciliationStatus::OrSymbol,
|
|
583
628
|
remittance_information: T.nilable(String),
|
|
584
629
|
send_remittance_advice: T.nilable(T::Boolean),
|
|
585
630
|
statement_descriptor: T.nilable(String),
|
|
@@ -606,9 +651,13 @@ module ModernTreasury
|
|
|
606
651
|
# `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
|
|
607
652
|
# `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
|
|
608
653
|
type:,
|
|
654
|
+
accounting: nil,
|
|
609
655
|
# The ID of one of your accounting categories. Note that these will only be
|
|
610
656
|
# accessible if your accounting system has been connected.
|
|
611
657
|
accounting_category_id: nil,
|
|
658
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
659
|
+
# accessible if your accounting system has been connected.
|
|
660
|
+
accounting_ledger_class_id: nil,
|
|
612
661
|
# The party that will pay the fees for the payment order. See
|
|
613
662
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
614
663
|
# differences between the options.
|
|
@@ -679,6 +728,8 @@ module ModernTreasury
|
|
|
679
728
|
# `receiving_account_id`, you may pass the id of an external account or an
|
|
680
729
|
# internal account.
|
|
681
730
|
receiving_account_id: nil,
|
|
731
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
732
|
+
reconciliation_status: nil,
|
|
682
733
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
683
734
|
# payments the field will be passed through as the "Originator to Beneficiary
|
|
684
735
|
# Information", also known as OBI or Fedwire tag 6000.
|
|
@@ -720,7 +771,10 @@ module ModernTreasury
|
|
|
720
771
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Direction::OrSymbol,
|
|
721
772
|
originating_account_id: String,
|
|
722
773
|
type: ModernTreasury::PaymentOrderType::OrSymbol,
|
|
774
|
+
accounting:
|
|
775
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting,
|
|
723
776
|
accounting_category_id: T.nilable(String),
|
|
777
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
724
778
|
charge_bearer:
|
|
725
779
|
T.nilable(
|
|
726
780
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer::OrSymbol
|
|
@@ -753,6 +807,8 @@ module ModernTreasury
|
|
|
753
807
|
receiving_account:
|
|
754
808
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount,
|
|
755
809
|
receiving_account_id: String,
|
|
810
|
+
reconciliation_status:
|
|
811
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReconciliationStatus::OrSymbol,
|
|
756
812
|
remittance_information: T.nilable(String),
|
|
757
813
|
send_remittance_advice: T.nilable(T::Boolean),
|
|
758
814
|
statement_descriptor: T.nilable(String),
|
|
@@ -807,6 +863,52 @@ module ModernTreasury
|
|
|
807
863
|
end
|
|
808
864
|
end
|
|
809
865
|
|
|
866
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
867
|
+
OrHash =
|
|
868
|
+
T.type_alias do
|
|
869
|
+
T.any(
|
|
870
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Accounting,
|
|
871
|
+
ModernTreasury::Internal::AnyHash
|
|
872
|
+
)
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
876
|
+
# accessible if your accounting system has been connected.
|
|
877
|
+
sig { returns(T.nilable(String)) }
|
|
878
|
+
attr_accessor :account_id
|
|
879
|
+
|
|
880
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
881
|
+
# track segments of your business independent of client or project. Note that
|
|
882
|
+
# these will only be accessible if your accounting system has been connected.
|
|
883
|
+
sig { returns(T.nilable(String)) }
|
|
884
|
+
attr_accessor :class_id
|
|
885
|
+
|
|
886
|
+
sig do
|
|
887
|
+
params(
|
|
888
|
+
account_id: T.nilable(String),
|
|
889
|
+
class_id: T.nilable(String)
|
|
890
|
+
).returns(T.attached_class)
|
|
891
|
+
end
|
|
892
|
+
def self.new(
|
|
893
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
894
|
+
# accessible if your accounting system has been connected.
|
|
895
|
+
account_id: nil,
|
|
896
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
897
|
+
# track segments of your business independent of client or project. Note that
|
|
898
|
+
# these will only be accessible if your accounting system has been connected.
|
|
899
|
+
class_id: nil
|
|
900
|
+
)
|
|
901
|
+
end
|
|
902
|
+
|
|
903
|
+
sig do
|
|
904
|
+
override.returns(
|
|
905
|
+
{ account_id: T.nilable(String), class_id: T.nilable(String) }
|
|
906
|
+
)
|
|
907
|
+
end
|
|
908
|
+
def to_hash
|
|
909
|
+
end
|
|
910
|
+
end
|
|
911
|
+
|
|
810
912
|
# The party that will pay the fees for the payment order. See
|
|
811
913
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
812
914
|
# differences between the options.
|
|
@@ -1854,6 +1956,46 @@ module ModernTreasury
|
|
|
1854
1956
|
end
|
|
1855
1957
|
end
|
|
1856
1958
|
end
|
|
1959
|
+
|
|
1960
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
1961
|
+
module ReconciliationStatus
|
|
1962
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
1963
|
+
|
|
1964
|
+
TaggedSymbol =
|
|
1965
|
+
T.type_alias do
|
|
1966
|
+
T.all(
|
|
1967
|
+
Symbol,
|
|
1968
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReconciliationStatus
|
|
1969
|
+
)
|
|
1970
|
+
end
|
|
1971
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1972
|
+
|
|
1973
|
+
UNRECONCILED =
|
|
1974
|
+
T.let(
|
|
1975
|
+
:unreconciled,
|
|
1976
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReconciliationStatus::TaggedSymbol
|
|
1977
|
+
)
|
|
1978
|
+
TENTATIVELY_RECONCILED =
|
|
1979
|
+
T.let(
|
|
1980
|
+
:tentatively_reconciled,
|
|
1981
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReconciliationStatus::TaggedSymbol
|
|
1982
|
+
)
|
|
1983
|
+
RECONCILED =
|
|
1984
|
+
T.let(
|
|
1985
|
+
:reconciled,
|
|
1986
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReconciliationStatus::TaggedSymbol
|
|
1987
|
+
)
|
|
1988
|
+
|
|
1989
|
+
sig do
|
|
1990
|
+
override.returns(
|
|
1991
|
+
T::Array[
|
|
1992
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReconciliationStatus::TaggedSymbol
|
|
1993
|
+
]
|
|
1994
|
+
)
|
|
1995
|
+
end
|
|
1996
|
+
def self.values
|
|
1997
|
+
end
|
|
1998
|
+
end
|
|
1857
1999
|
end
|
|
1858
2000
|
|
|
1859
2001
|
class ExpectedPaymentCreateRequest < ModernTreasury::Internal::Type::BaseModel
|
|
@@ -2631,11 +2773,33 @@ module ModernTreasury
|
|
|
2631
2773
|
sig { params(id: String).void }
|
|
2632
2774
|
attr_writer :id
|
|
2633
2775
|
|
|
2776
|
+
sig do
|
|
2777
|
+
returns(
|
|
2778
|
+
T.nilable(
|
|
2779
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting
|
|
2780
|
+
)
|
|
2781
|
+
)
|
|
2782
|
+
end
|
|
2783
|
+
attr_reader :accounting
|
|
2784
|
+
|
|
2785
|
+
sig do
|
|
2786
|
+
params(
|
|
2787
|
+
accounting:
|
|
2788
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting::OrHash
|
|
2789
|
+
).void
|
|
2790
|
+
end
|
|
2791
|
+
attr_writer :accounting
|
|
2792
|
+
|
|
2634
2793
|
# The ID of one of your accounting categories. Note that these will only be
|
|
2635
2794
|
# accessible if your accounting system has been connected.
|
|
2636
2795
|
sig { returns(T.nilable(String)) }
|
|
2637
2796
|
attr_accessor :accounting_category_id
|
|
2638
2797
|
|
|
2798
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
2799
|
+
# accessible if your accounting system has been connected.
|
|
2800
|
+
sig { returns(T.nilable(String)) }
|
|
2801
|
+
attr_accessor :accounting_ledger_class_id
|
|
2802
|
+
|
|
2639
2803
|
# Value in specified currency's smallest unit. e.g. $10 would be represented as
|
|
2640
2804
|
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
|
2641
2805
|
sig { returns(T.nilable(Integer)) }
|
|
@@ -2857,6 +3021,24 @@ module ModernTreasury
|
|
|
2857
3021
|
sig { params(receiving_account_id: String).void }
|
|
2858
3022
|
attr_writer :receiving_account_id
|
|
2859
3023
|
|
|
3024
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
3025
|
+
sig do
|
|
3026
|
+
returns(
|
|
3027
|
+
T.nilable(
|
|
3028
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReconciliationStatus::OrSymbol
|
|
3029
|
+
)
|
|
3030
|
+
)
|
|
3031
|
+
end
|
|
3032
|
+
attr_reader :reconciliation_status
|
|
3033
|
+
|
|
3034
|
+
sig do
|
|
3035
|
+
params(
|
|
3036
|
+
reconciliation_status:
|
|
3037
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReconciliationStatus::OrSymbol
|
|
3038
|
+
).void
|
|
3039
|
+
end
|
|
3040
|
+
attr_writer :reconciliation_status
|
|
3041
|
+
|
|
2860
3042
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
2861
3043
|
# payments the field will be passed through as the "Originator to Beneficiary
|
|
2862
3044
|
# Information", also known as OBI or Fedwire tag 6000.
|
|
@@ -2942,7 +3124,10 @@ module ModernTreasury
|
|
|
2942
3124
|
sig do
|
|
2943
3125
|
params(
|
|
2944
3126
|
id: String,
|
|
3127
|
+
accounting:
|
|
3128
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting::OrHash,
|
|
2945
3129
|
accounting_category_id: T.nilable(String),
|
|
3130
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
2946
3131
|
amount: Integer,
|
|
2947
3132
|
charge_bearer:
|
|
2948
3133
|
T.nilable(
|
|
@@ -2977,6 +3162,8 @@ module ModernTreasury
|
|
|
2977
3162
|
receiving_account:
|
|
2978
3163
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::OrHash,
|
|
2979
3164
|
receiving_account_id: String,
|
|
3165
|
+
reconciliation_status:
|
|
3166
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReconciliationStatus::OrSymbol,
|
|
2980
3167
|
remittance_information: T.nilable(String),
|
|
2981
3168
|
send_remittance_advice: T.nilable(T::Boolean),
|
|
2982
3169
|
statement_descriptor: T.nilable(String),
|
|
@@ -2992,9 +3179,13 @@ module ModernTreasury
|
|
|
2992
3179
|
end
|
|
2993
3180
|
def self.new(
|
|
2994
3181
|
id: nil,
|
|
3182
|
+
accounting: nil,
|
|
2995
3183
|
# The ID of one of your accounting categories. Note that these will only be
|
|
2996
3184
|
# accessible if your accounting system has been connected.
|
|
2997
3185
|
accounting_category_id: nil,
|
|
3186
|
+
# The ID of one of your accounting ledger classes. Note that these will only be
|
|
3187
|
+
# accessible if your accounting system has been connected.
|
|
3188
|
+
accounting_ledger_class_id: nil,
|
|
2998
3189
|
# Value in specified currency's smallest unit. e.g. $10 would be represented as
|
|
2999
3190
|
# 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
|
3000
3191
|
amount: nil,
|
|
@@ -3067,6 +3258,8 @@ module ModernTreasury
|
|
|
3067
3258
|
# `receiving_account_id`, you may pass the id of an external account or an
|
|
3068
3259
|
# internal account.
|
|
3069
3260
|
receiving_account_id: nil,
|
|
3261
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
3262
|
+
reconciliation_status: nil,
|
|
3070
3263
|
# For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
3071
3264
|
# payments the field will be passed through as the "Originator to Beneficiary
|
|
3072
3265
|
# Information", also known as OBI or Fedwire tag 6000.
|
|
@@ -3117,7 +3310,10 @@ module ModernTreasury
|
|
|
3117
3310
|
override.returns(
|
|
3118
3311
|
{
|
|
3119
3312
|
id: String,
|
|
3313
|
+
accounting:
|
|
3314
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting,
|
|
3120
3315
|
accounting_category_id: T.nilable(String),
|
|
3316
|
+
accounting_ledger_class_id: T.nilable(String),
|
|
3121
3317
|
amount: Integer,
|
|
3122
3318
|
charge_bearer:
|
|
3123
3319
|
T.nilable(
|
|
@@ -3152,6 +3348,8 @@ module ModernTreasury
|
|
|
3152
3348
|
receiving_account:
|
|
3153
3349
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount,
|
|
3154
3350
|
receiving_account_id: String,
|
|
3351
|
+
reconciliation_status:
|
|
3352
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReconciliationStatus::OrSymbol,
|
|
3155
3353
|
remittance_information: T.nilable(String),
|
|
3156
3354
|
send_remittance_advice: T.nilable(T::Boolean),
|
|
3157
3355
|
statement_descriptor: T.nilable(String),
|
|
@@ -3170,6 +3368,52 @@ module ModernTreasury
|
|
|
3170
3368
|
def to_hash
|
|
3171
3369
|
end
|
|
3172
3370
|
|
|
3371
|
+
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
|
3372
|
+
OrHash =
|
|
3373
|
+
T.type_alias do
|
|
3374
|
+
T.any(
|
|
3375
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Accounting,
|
|
3376
|
+
ModernTreasury::Internal::AnyHash
|
|
3377
|
+
)
|
|
3378
|
+
end
|
|
3379
|
+
|
|
3380
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
3381
|
+
# accessible if your accounting system has been connected.
|
|
3382
|
+
sig { returns(T.nilable(String)) }
|
|
3383
|
+
attr_accessor :account_id
|
|
3384
|
+
|
|
3385
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
3386
|
+
# track segments of your business independent of client or project. Note that
|
|
3387
|
+
# these will only be accessible if your accounting system has been connected.
|
|
3388
|
+
sig { returns(T.nilable(String)) }
|
|
3389
|
+
attr_accessor :class_id
|
|
3390
|
+
|
|
3391
|
+
sig do
|
|
3392
|
+
params(
|
|
3393
|
+
account_id: T.nilable(String),
|
|
3394
|
+
class_id: T.nilable(String)
|
|
3395
|
+
).returns(T.attached_class)
|
|
3396
|
+
end
|
|
3397
|
+
def self.new(
|
|
3398
|
+
# The ID of one of your accounting categories. Note that these will only be
|
|
3399
|
+
# accessible if your accounting system has been connected.
|
|
3400
|
+
account_id: nil,
|
|
3401
|
+
# The ID of one of the class objects in your accounting system. Class objects
|
|
3402
|
+
# track segments of your business independent of client or project. Note that
|
|
3403
|
+
# these will only be accessible if your accounting system has been connected.
|
|
3404
|
+
class_id: nil
|
|
3405
|
+
)
|
|
3406
|
+
end
|
|
3407
|
+
|
|
3408
|
+
sig do
|
|
3409
|
+
override.returns(
|
|
3410
|
+
{ account_id: T.nilable(String), class_id: T.nilable(String) }
|
|
3411
|
+
)
|
|
3412
|
+
end
|
|
3413
|
+
def to_hash
|
|
3414
|
+
end
|
|
3415
|
+
end
|
|
3416
|
+
|
|
3173
3417
|
# The party that will pay the fees for the payment order. See
|
|
3174
3418
|
# https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
|
|
3175
3419
|
# differences between the options.
|
|
@@ -4256,6 +4500,46 @@ module ModernTreasury
|
|
|
4256
4500
|
end
|
|
4257
4501
|
end
|
|
4258
4502
|
|
|
4503
|
+
# One of `unreconciled`, `tentatively_reconciled` or `reconciled`.
|
|
4504
|
+
module ReconciliationStatus
|
|
4505
|
+
extend ModernTreasury::Internal::Type::Enum
|
|
4506
|
+
|
|
4507
|
+
TaggedSymbol =
|
|
4508
|
+
T.type_alias do
|
|
4509
|
+
T.all(
|
|
4510
|
+
Symbol,
|
|
4511
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReconciliationStatus
|
|
4512
|
+
)
|
|
4513
|
+
end
|
|
4514
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
4515
|
+
|
|
4516
|
+
UNRECONCILED =
|
|
4517
|
+
T.let(
|
|
4518
|
+
:unreconciled,
|
|
4519
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReconciliationStatus::TaggedSymbol
|
|
4520
|
+
)
|
|
4521
|
+
TENTATIVELY_RECONCILED =
|
|
4522
|
+
T.let(
|
|
4523
|
+
:tentatively_reconciled,
|
|
4524
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReconciliationStatus::TaggedSymbol
|
|
4525
|
+
)
|
|
4526
|
+
RECONCILED =
|
|
4527
|
+
T.let(
|
|
4528
|
+
:reconciled,
|
|
4529
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReconciliationStatus::TaggedSymbol
|
|
4530
|
+
)
|
|
4531
|
+
|
|
4532
|
+
sig do
|
|
4533
|
+
override.returns(
|
|
4534
|
+
T::Array[
|
|
4535
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReconciliationStatus::TaggedSymbol
|
|
4536
|
+
]
|
|
4537
|
+
)
|
|
4538
|
+
end
|
|
4539
|
+
def self.values
|
|
4540
|
+
end
|
|
4541
|
+
end
|
|
4542
|
+
|
|
4259
4543
|
# To cancel a payment order, use `cancelled`. To redraft a returned payment order,
|
|
4260
4544
|
# use `approved`. To undo approval on a denied or approved payment order, use
|
|
4261
4545
|
# `needs_approval`.
|
|
@@ -4296,6 +4580,11 @@ module ModernTreasury
|
|
|
4296
4580
|
:failed,
|
|
4297
4581
|
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Status::TaggedSymbol
|
|
4298
4582
|
)
|
|
4583
|
+
HELD =
|
|
4584
|
+
T.let(
|
|
4585
|
+
:held,
|
|
4586
|
+
ModernTreasury::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Status::TaggedSymbol
|
|
4587
|
+
)
|
|
4299
4588
|
NEEDS_APPROVAL =
|
|
4300
4589
|
T.let(
|
|
4301
4590
|
:needs_approval,
|
|
@@ -59,9 +59,7 @@ module ModernTreasury
|
|
|
59
59
|
attr_accessor :updated_at
|
|
60
60
|
|
|
61
61
|
# The verification status of the counterparty.
|
|
62
|
-
sig
|
|
63
|
-
returns(ModernTreasury::Counterparty::VerificationStatus::TaggedSymbol)
|
|
64
|
-
end
|
|
62
|
+
sig { returns(String) }
|
|
65
63
|
attr_accessor :verification_status
|
|
66
64
|
|
|
67
65
|
sig do
|
|
@@ -79,8 +77,7 @@ module ModernTreasury
|
|
|
79
77
|
object: String,
|
|
80
78
|
send_remittance_advice: T::Boolean,
|
|
81
79
|
updated_at: Time,
|
|
82
|
-
verification_status:
|
|
83
|
-
ModernTreasury::Counterparty::VerificationStatus::OrSymbol
|
|
80
|
+
verification_status: String
|
|
84
81
|
).returns(T.attached_class)
|
|
85
82
|
end
|
|
86
83
|
def self.new(
|
|
@@ -129,8 +126,7 @@ module ModernTreasury
|
|
|
129
126
|
object: String,
|
|
130
127
|
send_remittance_advice: T::Boolean,
|
|
131
128
|
updated_at: Time,
|
|
132
|
-
verification_status:
|
|
133
|
-
ModernTreasury::Counterparty::VerificationStatus::TaggedSymbol
|
|
129
|
+
verification_status: String
|
|
134
130
|
}
|
|
135
131
|
)
|
|
136
132
|
end
|
|
@@ -509,48 +505,6 @@ module ModernTreasury
|
|
|
509
505
|
end
|
|
510
506
|
end
|
|
511
507
|
end
|
|
512
|
-
|
|
513
|
-
# The verification status of the counterparty.
|
|
514
|
-
module VerificationStatus
|
|
515
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
516
|
-
|
|
517
|
-
TaggedSymbol =
|
|
518
|
-
T.type_alias do
|
|
519
|
-
T.all(Symbol, ModernTreasury::Counterparty::VerificationStatus)
|
|
520
|
-
end
|
|
521
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
522
|
-
|
|
523
|
-
DENIED =
|
|
524
|
-
T.let(
|
|
525
|
-
:denied,
|
|
526
|
-
ModernTreasury::Counterparty::VerificationStatus::TaggedSymbol
|
|
527
|
-
)
|
|
528
|
-
NEEDS_APPROVAL =
|
|
529
|
-
T.let(
|
|
530
|
-
:needs_approval,
|
|
531
|
-
ModernTreasury::Counterparty::VerificationStatus::TaggedSymbol
|
|
532
|
-
)
|
|
533
|
-
UNVERIFIED =
|
|
534
|
-
T.let(
|
|
535
|
-
:unverified,
|
|
536
|
-
ModernTreasury::Counterparty::VerificationStatus::TaggedSymbol
|
|
537
|
-
)
|
|
538
|
-
VERIFIED =
|
|
539
|
-
T.let(
|
|
540
|
-
:verified,
|
|
541
|
-
ModernTreasury::Counterparty::VerificationStatus::TaggedSymbol
|
|
542
|
-
)
|
|
543
|
-
|
|
544
|
-
sig do
|
|
545
|
-
override.returns(
|
|
546
|
-
T::Array[
|
|
547
|
-
ModernTreasury::Counterparty::VerificationStatus::TaggedSymbol
|
|
548
|
-
]
|
|
549
|
-
)
|
|
550
|
-
end
|
|
551
|
-
def self.values
|
|
552
|
-
end
|
|
553
|
-
end
|
|
554
508
|
end
|
|
555
509
|
end
|
|
556
510
|
end
|
|
@@ -117,21 +117,10 @@ module ModernTreasury
|
|
|
117
117
|
attr_writer :taxpayer_identifier
|
|
118
118
|
|
|
119
119
|
# The verification status of the counterparty.
|
|
120
|
-
sig
|
|
121
|
-
returns(
|
|
122
|
-
T.nilable(
|
|
123
|
-
ModernTreasury::CounterpartyCreateParams::VerificationStatus::OrSymbol
|
|
124
|
-
)
|
|
125
|
-
)
|
|
126
|
-
end
|
|
120
|
+
sig { returns(T.nilable(String)) }
|
|
127
121
|
attr_reader :verification_status
|
|
128
122
|
|
|
129
|
-
sig
|
|
130
|
-
params(
|
|
131
|
-
verification_status:
|
|
132
|
-
ModernTreasury::CounterpartyCreateParams::VerificationStatus::OrSymbol
|
|
133
|
-
).void
|
|
134
|
-
end
|
|
123
|
+
sig { params(verification_status: String).void }
|
|
135
124
|
attr_writer :verification_status
|
|
136
125
|
|
|
137
126
|
sig do
|
|
@@ -151,8 +140,7 @@ module ModernTreasury
|
|
|
151
140
|
metadata: T::Hash[Symbol, String],
|
|
152
141
|
send_remittance_advice: T::Boolean,
|
|
153
142
|
taxpayer_identifier: String,
|
|
154
|
-
verification_status:
|
|
155
|
-
ModernTreasury::CounterpartyCreateParams::VerificationStatus::OrSymbol,
|
|
143
|
+
verification_status: String,
|
|
156
144
|
request_options: ModernTreasury::RequestOptions::OrHash
|
|
157
145
|
).returns(T.attached_class)
|
|
158
146
|
end
|
|
@@ -202,8 +190,7 @@ module ModernTreasury
|
|
|
202
190
|
metadata: T::Hash[Symbol, String],
|
|
203
191
|
send_remittance_advice: T::Boolean,
|
|
204
192
|
taxpayer_identifier: String,
|
|
205
|
-
verification_status:
|
|
206
|
-
ModernTreasury::CounterpartyCreateParams::VerificationStatus::OrSymbol,
|
|
193
|
+
verification_status: String,
|
|
207
194
|
request_options: ModernTreasury::RequestOptions
|
|
208
195
|
}
|
|
209
196
|
)
|
|
@@ -1824,51 +1811,6 @@ module ModernTreasury
|
|
|
1824
1811
|
end
|
|
1825
1812
|
end
|
|
1826
1813
|
end
|
|
1827
|
-
|
|
1828
|
-
# The verification status of the counterparty.
|
|
1829
|
-
module VerificationStatus
|
|
1830
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
1831
|
-
|
|
1832
|
-
TaggedSymbol =
|
|
1833
|
-
T.type_alias do
|
|
1834
|
-
T.all(
|
|
1835
|
-
Symbol,
|
|
1836
|
-
ModernTreasury::CounterpartyCreateParams::VerificationStatus
|
|
1837
|
-
)
|
|
1838
|
-
end
|
|
1839
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1840
|
-
|
|
1841
|
-
DENIED =
|
|
1842
|
-
T.let(
|
|
1843
|
-
:denied,
|
|
1844
|
-
ModernTreasury::CounterpartyCreateParams::VerificationStatus::TaggedSymbol
|
|
1845
|
-
)
|
|
1846
|
-
NEEDS_APPROVAL =
|
|
1847
|
-
T.let(
|
|
1848
|
-
:needs_approval,
|
|
1849
|
-
ModernTreasury::CounterpartyCreateParams::VerificationStatus::TaggedSymbol
|
|
1850
|
-
)
|
|
1851
|
-
UNVERIFIED =
|
|
1852
|
-
T.let(
|
|
1853
|
-
:unverified,
|
|
1854
|
-
ModernTreasury::CounterpartyCreateParams::VerificationStatus::TaggedSymbol
|
|
1855
|
-
)
|
|
1856
|
-
VERIFIED =
|
|
1857
|
-
T.let(
|
|
1858
|
-
:verified,
|
|
1859
|
-
ModernTreasury::CounterpartyCreateParams::VerificationStatus::TaggedSymbol
|
|
1860
|
-
)
|
|
1861
|
-
|
|
1862
|
-
sig do
|
|
1863
|
-
override.returns(
|
|
1864
|
-
T::Array[
|
|
1865
|
-
ModernTreasury::CounterpartyCreateParams::VerificationStatus::TaggedSymbol
|
|
1866
|
-
]
|
|
1867
|
-
)
|
|
1868
|
-
end
|
|
1869
|
-
def self.values
|
|
1870
|
-
end
|
|
1871
|
-
end
|
|
1872
1814
|
end
|
|
1873
1815
|
end
|
|
1874
1816
|
end
|