modern_treasury 0.29.0 → 0.29.2

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.
Files changed (165) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +19 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/client.rb +12 -0
  5. data/lib/modern_treasury/models/bulk_request.rb +0 -1
  6. data/lib/modern_treasury/models/bulk_request_create_params.rb +149 -6
  7. data/lib/modern_treasury/models/bulk_request_list_params.rb +0 -1
  8. data/lib/modern_treasury/models/bulk_result.rb +0 -1
  9. data/lib/modern_treasury/models/bulk_result_list_params.rb +0 -1
  10. data/lib/modern_treasury/models/case_.rb +318 -0
  11. data/lib/modern_treasury/models/case_list_params.rb +73 -0
  12. data/lib/modern_treasury/models/case_retrieve_params.rb +20 -0
  13. data/lib/modern_treasury/models/child_legal_entity.rb +24 -1
  14. data/lib/modern_treasury/models/child_legal_entity_create.rb +24 -1
  15. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +26 -1
  16. data/lib/modern_treasury/models/counterparty.rb +8 -1
  17. data/lib/modern_treasury/models/counterparty_create_params.rb +24 -1
  18. data/lib/modern_treasury/models/document.rb +5 -4
  19. data/lib/modern_treasury/models/document_create_params.rb +1 -0
  20. data/lib/modern_treasury/models/document_list_params.rb +5 -4
  21. data/lib/modern_treasury/models/external_account.rb +8 -1
  22. data/lib/modern_treasury/models/internal_account_create_params.rb +2 -2
  23. data/lib/modern_treasury/models/internal_account_update_params.rb +21 -1
  24. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +2 -3
  25. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +2 -3
  26. data/lib/modern_treasury/models/invoice_update_params.rb +1 -1
  27. data/lib/modern_treasury/models/journal_source_list_params.rb +62 -0
  28. data/lib/modern_treasury/models/journal_source_retrieve_params.rb +20 -0
  29. data/lib/modern_treasury/models/legal_entity.rb +26 -1
  30. data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
  31. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +66 -0
  32. data/lib/modern_treasury/models/legal_entity_association_delete_params.rb +20 -0
  33. data/lib/modern_treasury/models/legal_entity_create_params.rb +22 -1
  34. data/lib/modern_treasury/models/legal_entity_update_params.rb +22 -1
  35. data/lib/modern_treasury/models/legal_entity_update_status_params.rb +46 -0
  36. data/lib/modern_treasury/models/payment_order.rb +90 -2
  37. data/lib/modern_treasury/models/payment_order_create_async_params.rb +70 -1
  38. data/lib/modern_treasury/models/payment_order_create_params.rb +71 -1
  39. data/lib/modern_treasury/models/payment_order_update_params.rb +70 -1
  40. data/lib/modern_treasury/models/payment_reference.rb +3 -1
  41. data/lib/modern_treasury/models/payment_reference_list_params.rb +2 -0
  42. data/lib/modern_treasury/models/return_object.rb +1 -1
  43. data/lib/modern_treasury/models/transaction.rb +6 -7
  44. data/lib/modern_treasury/models/transaction_create_params.rb +3 -3
  45. data/lib/modern_treasury/models/virtual_account_create_params.rb +9 -1
  46. data/lib/modern_treasury/models/virtual_account_setting.rb +57 -0
  47. data/lib/modern_treasury/models/virtual_account_setting_create_params.rb +81 -0
  48. data/lib/modern_treasury/models/virtual_account_setting_list_params.rb +36 -0
  49. data/lib/modern_treasury/models.rb +22 -0
  50. data/lib/modern_treasury/resources/cases.rb +66 -0
  51. data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
  52. data/lib/modern_treasury/resources/journal_sources.rb +67 -0
  53. data/lib/modern_treasury/resources/legal_entities.rb +33 -2
  54. data/lib/modern_treasury/resources/legal_entity_associations.rb +50 -0
  55. data/lib/modern_treasury/resources/payment_orders.rb +9 -3
  56. data/lib/modern_treasury/resources/virtual_account_settings.rb +81 -0
  57. data/lib/modern_treasury/resources/virtual_accounts.rb +3 -1
  58. data/lib/modern_treasury/version.rb +1 -1
  59. data/lib/modern_treasury.rb +14 -0
  60. data/rbi/modern_treasury/client.rbi +9 -0
  61. data/rbi/modern_treasury/models/bulk_request.rbi +0 -5
  62. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +224 -11
  63. data/rbi/modern_treasury/models/bulk_request_list_params.rbi +0 -5
  64. data/rbi/modern_treasury/models/bulk_result.rbi +0 -5
  65. data/rbi/modern_treasury/models/bulk_result_list_params.rbi +0 -5
  66. data/rbi/modern_treasury/models/case_.rbi +521 -0
  67. data/rbi/modern_treasury/models/case_list_params.rbi +145 -0
  68. data/rbi/modern_treasury/models/case_retrieve_params.rbi +38 -0
  69. data/rbi/modern_treasury/models/child_legal_entity.rbi +52 -0
  70. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +55 -0
  71. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +55 -0
  72. data/rbi/modern_treasury/models/counterparty.rbi +6 -0
  73. data/rbi/modern_treasury/models/counterparty_create_params.rbi +55 -0
  74. data/rbi/modern_treasury/models/document.rbi +11 -6
  75. data/rbi/modern_treasury/models/document_create_params.rbi +5 -0
  76. data/rbi/modern_treasury/models/document_list_params.rbi +11 -6
  77. data/rbi/modern_treasury/models/external_account.rbi +6 -0
  78. data/rbi/modern_treasury/models/internal_account_create_params.rbi +6 -6
  79. data/rbi/modern_treasury/models/internal_account_update_params.rbi +52 -0
  80. data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +4 -6
  81. data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +4 -6
  82. data/rbi/modern_treasury/models/invoice_update_params.rbi +2 -2
  83. data/rbi/modern_treasury/models/journal_source_list_params.rbi +104 -0
  84. data/rbi/modern_treasury/models/journal_source_retrieve_params.rbi +38 -0
  85. data/rbi/modern_treasury/models/legal_entity.rbi +52 -0
  86. data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +128 -0
  87. data/rbi/modern_treasury/models/legal_entity_association_delete_params.rbi +38 -0
  88. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +55 -0
  89. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +55 -0
  90. data/rbi/modern_treasury/models/legal_entity_update_status_params.rbi +96 -0
  91. data/rbi/modern_treasury/models/payment_order.rbi +153 -5
  92. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +109 -0
  93. data/rbi/modern_treasury/models/payment_order_create_params.rbi +114 -0
  94. data/rbi/modern_treasury/models/payment_order_update_params.rbi +109 -0
  95. data/rbi/modern_treasury/models/payment_reference.rbi +15 -5
  96. data/rbi/modern_treasury/models/payment_reference_list_params.rbi +10 -0
  97. data/rbi/modern_treasury/models/return_object.rbi +5 -5
  98. data/rbi/modern_treasury/models/transaction.rbi +9 -14
  99. data/rbi/modern_treasury/models/transaction_create_params.rbi +6 -6
  100. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +11 -0
  101. data/rbi/modern_treasury/models/virtual_account_setting.rbi +74 -0
  102. data/rbi/modern_treasury/models/virtual_account_setting_create_params.rbi +102 -0
  103. data/rbi/modern_treasury/models/virtual_account_setting_list_params.rbi +64 -0
  104. data/rbi/modern_treasury/models.rbi +28 -0
  105. data/rbi/modern_treasury/resources/cases.rbi +50 -0
  106. data/rbi/modern_treasury/resources/documents.rbi +2 -2
  107. data/rbi/modern_treasury/resources/internal_accounts.rbi +4 -0
  108. data/rbi/modern_treasury/resources/invoices.rbi +1 -1
  109. data/rbi/modern_treasury/resources/journal_sources.rbi +55 -0
  110. data/rbi/modern_treasury/resources/legal_entities.rbi +31 -0
  111. data/rbi/modern_treasury/resources/legal_entity_associations.rbi +42 -0
  112. data/rbi/modern_treasury/resources/payment_orders.rbi +21 -0
  113. data/rbi/modern_treasury/resources/transactions.rbi +3 -3
  114. data/rbi/modern_treasury/resources/virtual_account_settings.rbi +67 -0
  115. data/rbi/modern_treasury/resources/virtual_accounts.rbi +3 -0
  116. data/sig/modern_treasury/client.rbs +6 -0
  117. data/sig/modern_treasury/models/bulk_request.rbs +0 -2
  118. data/sig/modern_treasury/models/bulk_request_create_params.rbs +94 -2
  119. data/sig/modern_treasury/models/bulk_request_list_params.rbs +0 -2
  120. data/sig/modern_treasury/models/bulk_result.rbs +0 -2
  121. data/sig/modern_treasury/models/bulk_result_list_params.rbs +0 -2
  122. data/sig/modern_treasury/models/case_.rbs +266 -0
  123. data/sig/modern_treasury/models/case_list_params.rbs +79 -0
  124. data/sig/modern_treasury/models/case_retrieve_params.rbs +23 -0
  125. data/sig/modern_treasury/models/child_legal_entity.rbs +17 -0
  126. data/sig/modern_treasury/models/child_legal_entity_create.rbs +17 -0
  127. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +17 -0
  128. data/sig/modern_treasury/models/counterparty.rbs +5 -0
  129. data/sig/modern_treasury/models/counterparty_create_params.rbs +17 -0
  130. data/sig/modern_treasury/models/document.rbs +2 -0
  131. data/sig/modern_treasury/models/document_create_params.rbs +2 -0
  132. data/sig/modern_treasury/models/document_list_params.rbs +2 -0
  133. data/sig/modern_treasury/models/external_account.rbs +5 -0
  134. data/sig/modern_treasury/models/internal_account_create_params.rbs +3 -3
  135. data/sig/modern_treasury/models/internal_account_update_params.rbs +20 -1
  136. data/sig/modern_treasury/models/journal_source_list_params.rbs +63 -0
  137. data/sig/modern_treasury/models/journal_source_retrieve_params.rbs +23 -0
  138. data/sig/modern_treasury/models/legal_entity.rbs +17 -0
  139. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +59 -0
  140. data/sig/modern_treasury/models/legal_entity_association_delete_params.rbs +23 -0
  141. data/sig/modern_treasury/models/legal_entity_create_params.rbs +17 -0
  142. data/sig/modern_treasury/models/legal_entity_update_params.rbs +17 -0
  143. data/sig/modern_treasury/models/legal_entity_update_status_params.rbs +43 -0
  144. data/sig/modern_treasury/models/payment_order.rbs +65 -2
  145. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +47 -0
  146. data/sig/modern_treasury/models/payment_order_create_params.rbs +49 -0
  147. data/sig/modern_treasury/models/payment_order_update_params.rbs +47 -0
  148. data/sig/modern_treasury/models/payment_reference.rbs +10 -3
  149. data/sig/modern_treasury/models/payment_reference_list_params.rbs +8 -1
  150. data/sig/modern_treasury/models/return_object.rbs +2 -2
  151. data/sig/modern_treasury/models/transaction.rbs +0 -2
  152. data/sig/modern_treasury/models/virtual_account_create_params.rbs +8 -1
  153. data/sig/modern_treasury/models/virtual_account_setting.rbs +45 -0
  154. data/sig/modern_treasury/models/virtual_account_setting_create_params.rbs +61 -0
  155. data/sig/modern_treasury/models/virtual_account_setting_list_params.rbs +36 -0
  156. data/sig/modern_treasury/models.rbs +22 -0
  157. data/sig/modern_treasury/resources/cases.rbs +21 -0
  158. data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
  159. data/sig/modern_treasury/resources/journal_sources.rbs +22 -0
  160. data/sig/modern_treasury/resources/legal_entities.rbs +8 -0
  161. data/sig/modern_treasury/resources/legal_entity_associations.rbs +14 -0
  162. data/sig/modern_treasury/resources/payment_orders.rbs +3 -0
  163. data/sig/modern_treasury/resources/virtual_account_settings.rbs +26 -0
  164. data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -0
  165. metadata +44 -2
@@ -26,6 +26,16 @@ module ModernTreasury
26
26
  # @return [String, nil]
27
27
  required :business_description, String, nil?: true
28
28
 
29
+ # @!attribute business_designation
30
+ # Legal designation associated with the business.
31
+ #
32
+ # @return [Symbol, ModernTreasury::Models::LegalEntity::BusinessDesignation, nil]
33
+ required :business_designation,
34
+ enum: -> {
35
+ ModernTreasury::LegalEntity::BusinessDesignation
36
+ },
37
+ nil?: true
38
+
29
39
  # @!attribute business_name
30
40
  # The business's legal business name.
31
41
  #
@@ -299,7 +309,7 @@ module ModernTreasury
299
309
  -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation] },
300
310
  nil?: true
301
311
 
302
- # @!method initialize(id:, addresses:, bank_settings:, business_description:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, documents:, doing_business_as_names:, email:, expected_activity_volume:, external_id:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_type:, legal_structure:, listed_exchange:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, regulators:, risk_rating:, service_provider_legal_entity_id:, status:, suffix:, terms_of_use:, third_party_verification:, third_party_verifications:, ticker_symbol:, updated_at:, wealth_and_employment_details:, website:, legal_entity_associations: nil)
312
+ # @!method initialize(id:, addresses:, bank_settings:, business_description:, business_designation:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, documents:, doing_business_as_names:, email:, expected_activity_volume:, external_id:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_type:, legal_structure:, listed_exchange:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, regulators:, risk_rating:, service_provider_legal_entity_id:, status:, suffix:, terms_of_use:, third_party_verification:, third_party_verifications:, ticker_symbol:, updated_at:, wealth_and_employment_details:, website:, legal_entity_associations: nil)
303
313
  # Some parameter documentations has been truncated, see
304
314
  # {ModernTreasury::Models::LegalEntity} for more details.
305
315
  #
@@ -311,6 +321,8 @@ module ModernTreasury
311
321
  #
312
322
  # @param business_description [String, nil] A description of the business.
313
323
  #
324
+ # @param business_designation [Symbol, ModernTreasury::Models::LegalEntity::BusinessDesignation, nil] Legal designation associated with the business.
325
+ #
314
326
  # @param business_name [String, nil] The business's legal business name.
315
327
  #
316
328
  # @param citizenship_country [String, nil] The country of citizenship for an individual.
@@ -530,6 +542,19 @@ module ModernTreasury
530
542
  end
531
543
  end
532
544
 
545
+ # Legal designation associated with the business.
546
+ #
547
+ # @see ModernTreasury::Models::LegalEntity#business_designation
548
+ module BusinessDesignation
549
+ extend ModernTreasury::Internal::Type::Enum
550
+
551
+ EXEMPT_FINANCIAL_INSTITUTION = :exempt_financial_institution
552
+ NON_OPERATING_BUSINESS = :non_operating_business
553
+
554
+ # @!method self.values
555
+ # @return [Array<Symbol>]
556
+ end
557
+
533
558
  class Identification < ModernTreasury::Internal::Type::BaseModel
534
559
  # @!attribute id
535
560
  #
@@ -2,6 +2,7 @@
2
2
 
3
3
  module ModernTreasury
4
4
  module Models
5
+ # @see ModernTreasury::Resources::LegalEntityAssociations#create
5
6
  class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
6
7
  # @!attribute id
7
8
  #
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ # @see ModernTreasury::Resources::LegalEntityAssociations#create
6
+ class LegalEntityAssociationCreateParams < ModernTreasury::Internal::Type::BaseModel
7
+ extend ModernTreasury::Internal::Type::RequestParameters::Converter
8
+ include ModernTreasury::Internal::Type::RequestParameters
9
+
10
+ # @!attribute child_legal_entity_id
11
+ # The ID of the child legal entity.
12
+ #
13
+ # @return [String]
14
+ required :child_legal_entity_id, String
15
+
16
+ # @!attribute parent_legal_entity_id
17
+ # The ID of the parent legal entity. This must be a business legal entity.
18
+ #
19
+ # @return [String]
20
+ required :parent_legal_entity_id, String
21
+
22
+ # @!attribute relationship_types
23
+ #
24
+ # @return [Array<Symbol, ModernTreasury::Models::LegalEntityAssociationCreateParams::RelationshipType>]
25
+ required :relationship_types,
26
+ -> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType] }
27
+
28
+ # @!attribute ownership_percentage
29
+ # The child entity's ownership percentage iff they are a beneficial owner.
30
+ #
31
+ # @return [Integer, nil]
32
+ optional :ownership_percentage, Integer, nil?: true
33
+
34
+ # @!attribute title
35
+ # The job title of the child entity at the parent entity.
36
+ #
37
+ # @return [String, nil]
38
+ optional :title, String, nil?: true
39
+
40
+ # @!method initialize(child_legal_entity_id:, parent_legal_entity_id:, relationship_types:, ownership_percentage: nil, title: nil, request_options: {})
41
+ # @param child_legal_entity_id [String] The ID of the child legal entity.
42
+ #
43
+ # @param parent_legal_entity_id [String] The ID of the parent legal entity. This must be a business legal entity.
44
+ #
45
+ # @param relationship_types [Array<Symbol, ModernTreasury::Models::LegalEntityAssociationCreateParams::RelationshipType>]
46
+ #
47
+ # @param ownership_percentage [Integer, nil] The child entity's ownership percentage iff they are a beneficial owner.
48
+ #
49
+ # @param title [String, nil] The job title of the child entity at the parent entity.
50
+ #
51
+ # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
52
+
53
+ # A list of relationship types for how the child entity relates to parent entity.
54
+ module RelationshipType
55
+ extend ModernTreasury::Internal::Type::Enum
56
+
57
+ AUTHORIZED_SIGNER = :authorized_signer
58
+ BENEFICIAL_OWNER = :beneficial_owner
59
+ CONTROL_PERSON = :control_person
60
+
61
+ # @!method self.values
62
+ # @return [Array<Symbol>]
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ # @see ModernTreasury::Resources::LegalEntityAssociations#delete
6
+ class LegalEntityAssociationDeleteParams < ModernTreasury::Internal::Type::BaseModel
7
+ extend ModernTreasury::Internal::Type::RequestParameters::Converter
8
+ include ModernTreasury::Internal::Type::RequestParameters
9
+
10
+ # @!attribute id
11
+ #
12
+ # @return [String]
13
+ required :id, String
14
+
15
+ # @!method initialize(id:, request_options: {})
16
+ # @param id [String]
17
+ # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
18
+ end
19
+ end
20
+ end
@@ -31,6 +31,14 @@ module ModernTreasury
31
31
  # @return [String, nil]
32
32
  optional :business_description, String, nil?: true
33
33
 
34
+ # @!attribute business_designation
35
+ # Legal designation associated with the business.
36
+ #
37
+ # @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::BusinessDesignation, nil]
38
+ optional :business_designation,
39
+ enum: -> { ModernTreasury::LegalEntityCreateParams::BusinessDesignation },
40
+ nil?: true
41
+
34
42
  # @!attribute business_name
35
43
  # The business's legal business name.
36
44
  #
@@ -283,7 +291,7 @@ module ModernTreasury
283
291
  # @return [String, nil]
284
292
  optional :website, String, nil?: true
285
293
 
286
- # @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
294
+ # @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
287
295
  # Some parameter documentations has been truncated, see
288
296
  # {ModernTreasury::Models::LegalEntityCreateParams} for more details.
289
297
  #
@@ -295,6 +303,8 @@ module ModernTreasury
295
303
  #
296
304
  # @param business_description [String, nil] A description of the business.
297
305
  #
306
+ # @param business_designation [Symbol, ModernTreasury::Models::LegalEntityCreateParams::BusinessDesignation, nil] Legal designation associated with the business.
307
+ #
298
308
  # @param business_name [String, nil] The business's legal business name.
299
309
  #
300
310
  # @param citizenship_country [String, nil] The country of citizenship for an individual.
@@ -384,6 +394,17 @@ module ModernTreasury
384
394
  # @return [Array<Symbol>]
385
395
  end
386
396
 
397
+ # Legal designation associated with the business.
398
+ module BusinessDesignation
399
+ extend ModernTreasury::Internal::Type::Enum
400
+
401
+ EXEMPT_FINANCIAL_INSTITUTION = :exempt_financial_institution
402
+ NON_OPERATING_BUSINESS = :non_operating_business
403
+
404
+ # @!method self.values
405
+ # @return [Array<Symbol>]
406
+ end
407
+
387
408
  class Document < ModernTreasury::Internal::Type::BaseModel
388
409
  # @!attribute document_type
389
410
  # A category given to the document, can be `null`.
@@ -30,6 +30,14 @@ module ModernTreasury
30
30
  # @return [String, nil]
31
31
  optional :business_description, String, nil?: true
32
32
 
33
+ # @!attribute business_designation
34
+ # Legal designation associated with the business.
35
+ #
36
+ # @return [Symbol, ModernTreasury::Models::LegalEntityUpdateParams::BusinessDesignation, nil]
37
+ optional :business_designation,
38
+ enum: -> { ModernTreasury::LegalEntityUpdateParams::BusinessDesignation },
39
+ nil?: true
40
+
33
41
  # @!attribute business_name
34
42
  # The business's legal business name.
35
43
  #
@@ -248,7 +256,7 @@ module ModernTreasury
248
256
  # @return [String, nil]
249
257
  optional :website, String, nil?: true
250
258
 
251
- # @!method initialize(id:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
259
+ # @!method initialize(id:, addresses: nil, bank_settings: nil, business_description: nil, business_designation: nil, business_name: nil, citizenship_country: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
252
260
  # Some parameter documentations has been truncated, see
253
261
  # {ModernTreasury::Models::LegalEntityUpdateParams} for more details.
254
262
  #
@@ -260,6 +268,8 @@ module ModernTreasury
260
268
  #
261
269
  # @param business_description [String, nil] A description of the business.
262
270
  #
271
+ # @param business_designation [Symbol, ModernTreasury::Models::LegalEntityUpdateParams::BusinessDesignation, nil] Legal designation associated with the business.
272
+ #
263
273
  # @param business_name [String, nil] The business's legal business name.
264
274
  #
265
275
  # @param citizenship_country [String, nil] The country of citizenship for an individual.
@@ -330,6 +340,17 @@ module ModernTreasury
330
340
  #
331
341
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
332
342
 
343
+ # Legal designation associated with the business.
344
+ module BusinessDesignation
345
+ extend ModernTreasury::Internal::Type::Enum
346
+
347
+ EXEMPT_FINANCIAL_INSTITUTION = :exempt_financial_institution
348
+ NON_OPERATING_BUSINESS = :non_operating_business
349
+
350
+ # @!method self.values
351
+ # @return [Array<Symbol>]
352
+ end
353
+
333
354
  # The business's legal structure.
334
355
  module LegalStructure
335
356
  extend ModernTreasury::Internal::Type::Enum
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ # @see ModernTreasury::Resources::LegalEntities#update_status
6
+ class LegalEntityUpdateStatusParams < ModernTreasury::Internal::Type::BaseModel
7
+ extend ModernTreasury::Internal::Type::RequestParameters::Converter
8
+ include ModernTreasury::Internal::Type::RequestParameters
9
+
10
+ # @!attribute id
11
+ #
12
+ # @return [String]
13
+ required :id, String
14
+
15
+ # @!attribute status
16
+ # The target status for the legal entity. One of `active`, `suspended`, or
17
+ # `denied`. Valid transitions depend on the current status.
18
+ #
19
+ # @return [Symbol, ModernTreasury::Models::LegalEntityUpdateStatusParams::Status]
20
+ required :status, enum: -> { ModernTreasury::LegalEntityUpdateStatusParams::Status }
21
+
22
+ # @!method initialize(id:, status:, request_options: {})
23
+ # Some parameter documentations has been truncated, see
24
+ # {ModernTreasury::Models::LegalEntityUpdateStatusParams} for more details.
25
+ #
26
+ # @param id [String]
27
+ #
28
+ # @param status [Symbol, ModernTreasury::Models::LegalEntityUpdateStatusParams::Status] The target status for the legal entity. One of `active`, `suspended`, or `denied
29
+ #
30
+ # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
31
+
32
+ # The target status for the legal entity. One of `active`, `suspended`, or
33
+ # `denied`. Valid transitions depend on the current status.
34
+ module Status
35
+ extend ModernTreasury::Internal::Type::Enum
36
+
37
+ ACTIVE = :active
38
+ SUSPENDED = :suspended
39
+ DENIED = :denied
40
+
41
+ # @!method self.values
42
+ # @return [Array<Symbol>]
43
+ end
44
+ end
45
+ end
46
+ end
@@ -183,6 +183,20 @@ module ModernTreasury
183
183
  # @return [String]
184
184
  required :originating_account_id, String
185
185
 
186
+ # @!attribute originating_account_type
187
+ #
188
+ # @return [Symbol, ModernTreasury::Models::PaymentOrder::OriginatingAccountType]
189
+ required :originating_account_type, enum: -> { ModernTreasury::PaymentOrder::OriginatingAccountType }
190
+
191
+ # @!attribute originating_party_address
192
+ # If present, this address will override the default originating party address
193
+ # used on the payment order. This works across all payment types.
194
+ #
195
+ # @return [ModernTreasury::Models::PaymentOrder::OriginatingPartyAddress, nil]
196
+ required :originating_party_address,
197
+ -> { ModernTreasury::PaymentOrder::OriginatingPartyAddress },
198
+ nil?: true
199
+
186
200
  # @!attribute originating_party_name
187
201
  # If present, this will replace your default company name on receiver's bank
188
202
  # statement. This field can only be used for ACH payments currently. For ACH, only
@@ -362,7 +376,7 @@ module ModernTreasury
362
376
  # @return [String, nil]
363
377
  required :vendor_failure_reason, String, nil?: true
364
378
 
365
- # @!method initialize(id:, accounting:, accounting_category_id:, accounting_ledger_class_id:, amount:, batch_id:, charge_bearer:, counterparty_id:, created_at:, currency:, current_hold:, current_return:, description:, direction:, effective_date:, expires_at:, external_id:, foreign_exchange_contract:, foreign_exchange_indicator:, foreign_exchange_rate:, ledger_transaction_id:, live_mode:, metadata:, nsf_protected:, object:, originating_account_id:, originating_party_name:, priority:, process_after:, purpose:, receiving_account_id:, receiving_account_type:, reconciliation_status:, reference_numbers:, remittance_information:, send_remittance_advice:, statement_descriptor:, status:, subtype:, transaction_ids:, type:, ultimate_originating_account:, ultimate_originating_account_id:, ultimate_originating_account_type:, ultimate_originating_party_identifier:, ultimate_originating_party_name:, ultimate_receiving_party_identifier:, ultimate_receiving_party_name:, updated_at:, vendor_attributes:, vendor_failure_reason:)
379
+ # @!method initialize(id:, accounting:, accounting_category_id:, accounting_ledger_class_id:, amount:, batch_id:, charge_bearer:, counterparty_id:, created_at:, currency:, current_hold:, current_return:, description:, direction:, effective_date:, expires_at:, external_id:, foreign_exchange_contract:, foreign_exchange_indicator:, foreign_exchange_rate:, ledger_transaction_id:, live_mode:, metadata:, nsf_protected:, object:, originating_account_id:, originating_account_type:, originating_party_address:, originating_party_name:, priority:, process_after:, purpose:, receiving_account_id:, receiving_account_type:, reconciliation_status:, reference_numbers:, remittance_information:, send_remittance_advice:, statement_descriptor:, status:, subtype:, transaction_ids:, type:, ultimate_originating_account:, ultimate_originating_account_id:, ultimate_originating_account_type:, ultimate_originating_party_identifier:, ultimate_originating_party_name:, ultimate_receiving_party_identifier:, ultimate_receiving_party_name:, updated_at:, vendor_attributes:, vendor_failure_reason:)
366
380
  # Some parameter documentations has been truncated, see
367
381
  # {ModernTreasury::Models::PaymentOrder} for more details.
368
382
  #
@@ -418,6 +432,10 @@ module ModernTreasury
418
432
  #
419
433
  # @param originating_account_id [String] The ID of one of your organization's internal accounts.
420
434
  #
435
+ # @param originating_account_type [Symbol, ModernTreasury::Models::PaymentOrder::OriginatingAccountType]
436
+ #
437
+ # @param originating_party_address [ModernTreasury::Models::PaymentOrder::OriginatingPartyAddress, nil] If present, this address will override the default originating party address use
438
+ #
421
439
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
422
440
  #
423
441
  # @param priority [Symbol, ModernTreasury::Models::PaymentOrder::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
@@ -688,6 +706,76 @@ module ModernTreasury
688
706
  # @return [Array<Symbol>]
689
707
  end
690
708
 
709
+ # @see ModernTreasury::Models::PaymentOrder#originating_account_type
710
+ module OriginatingAccountType
711
+ extend ModernTreasury::Internal::Type::Enum
712
+
713
+ INTERNAL_ACCOUNT = :internal_account
714
+ VIRTUAL_ACCOUNT = :virtual_account
715
+
716
+ # @!method self.values
717
+ # @return [Array<Symbol>]
718
+ end
719
+
720
+ # @see ModernTreasury::Models::PaymentOrder#originating_party_address
721
+ class OriginatingPartyAddress < ModernTreasury::Internal::Type::BaseModel
722
+ # @!attribute country
723
+ # Country code conforms to [ISO 3166-1 alpha-2]
724
+ #
725
+ # @return [String, nil]
726
+ optional :country, String, nil?: true
727
+
728
+ # @!attribute line1
729
+ #
730
+ # @return [String, nil]
731
+ optional :line1, String, nil?: true
732
+
733
+ # @!attribute line2
734
+ #
735
+ # @return [String, nil]
736
+ optional :line2, String, nil?: true
737
+
738
+ # @!attribute locality
739
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
740
+ # Francisco).
741
+ #
742
+ # @return [String, nil]
743
+ optional :locality, String, nil?: true
744
+
745
+ # @!attribute postal_code
746
+ # The postal code of the address.
747
+ #
748
+ # @return [String, nil]
749
+ optional :postal_code, String, nil?: true
750
+
751
+ # @!attribute region
752
+ # Region or State. This field is free-form; for US states, we recommend a
753
+ # two-letter code (e.g. CA). Full state names are also accepted.
754
+ #
755
+ # @return [String, nil]
756
+ optional :region, String, nil?: true
757
+
758
+ # @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
759
+ # Some parameter documentations has been truncated, see
760
+ # {ModernTreasury::Models::PaymentOrder::OriginatingPartyAddress} for more
761
+ # details.
762
+ #
763
+ # If present, this address will override the default originating party address
764
+ # used on the payment order. This works across all payment types.
765
+ #
766
+ # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
767
+ #
768
+ # @param line1 [String, nil]
769
+ #
770
+ # @param line2 [String, nil]
771
+ #
772
+ # @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
773
+ #
774
+ # @param postal_code [String, nil] The postal code of the address.
775
+ #
776
+ # @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
777
+ end
778
+
691
779
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
692
780
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
693
781
  # an overnight check rather than standard mail.
@@ -822,7 +910,6 @@ module ModernTreasury
822
910
  CROSS_RIVER_TRANSACTION_ID = :cross_river_transaction_id
823
911
  CURRENCYCLOUD_CONVERSION_ID = :currencycloud_conversion_id
824
912
  CURRENCYCLOUD_PAYMENT_ID = :currencycloud_payment_id
825
- DC_BANK_TRANSACTION_ID = :dc_bank_transaction_id
826
913
  EFT_TRACE_NUMBER = :eft_trace_number
827
914
  EVOLVE_CORE_BATCH = :evolve_core_batch
828
915
  EVOLVE_CORE_FILE_KEY = :evolve_core_file_key
@@ -883,6 +970,7 @@ module ModernTreasury
883
970
  WESTERN_ALLIANCE_PAYMENT_ID = :western_alliance_payment_id
884
971
  WESTERN_ALLIANCE_TRANSACTION_ID = :western_alliance_transaction_id
885
972
  WESTERN_ALLIANCE_WIRE_CONFIRMATION_NUMBER = :western_alliance_wire_confirmation_number
973
+ WISE_TRANSFER_ID = :wise_transfer_id
886
974
 
887
975
  # @!method self.values
888
976
  # @return [Array<Symbol>]
@@ -166,6 +166,15 @@ module ModernTreasury
166
166
  # @return [Boolean, nil]
167
167
  optional :nsf_protected, ModernTreasury::Internal::Type::Boolean
168
168
 
169
+ # @!attribute originating_party_address
170
+ # If present, this address will override the default originating party address
171
+ # used on the payment order. This works across all payment types.
172
+ #
173
+ # @return [ModernTreasury::Models::PaymentOrderCreateAsyncParams::OriginatingPartyAddress, nil]
174
+ optional :originating_party_address,
175
+ -> { ModernTreasury::PaymentOrderCreateAsyncParams::OriginatingPartyAddress },
176
+ nil?: true
177
+
169
178
  # @!attribute originating_party_name
170
179
  # If present, this will replace your default company name on receiver's bank
171
180
  # statement. This field can only be used for ACH payments currently. For ACH, only
@@ -315,7 +324,7 @@ module ModernTreasury
315
324
  optional :vendor_attributes,
316
325
  ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown]
317
326
 
318
- # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
327
+ # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
319
328
  # Some parameter documentations has been truncated, see
320
329
  # {ModernTreasury::Models::PaymentOrderCreateAsyncParams} for more details.
321
330
  #
@@ -361,6 +370,8 @@ module ModernTreasury
361
370
  #
362
371
  # @param nsf_protected [Boolean] A boolean to determine if NSF Protection is enabled for this payment order. Note
363
372
  #
373
+ # @param originating_party_address [ModernTreasury::Models::PaymentOrderCreateAsyncParams::OriginatingPartyAddress, nil] If present, this address will override the default originating party address use
374
+ #
364
375
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
365
376
  #
366
377
  # @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
@@ -527,6 +538,64 @@ module ModernTreasury
527
538
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
528
539
  end
529
540
 
541
+ class OriginatingPartyAddress < ModernTreasury::Internal::Type::BaseModel
542
+ # @!attribute country
543
+ # Country code conforms to [ISO 3166-1 alpha-2]
544
+ #
545
+ # @return [String, nil]
546
+ optional :country, String, nil?: true
547
+
548
+ # @!attribute line1
549
+ #
550
+ # @return [String, nil]
551
+ optional :line1, String, nil?: true
552
+
553
+ # @!attribute line2
554
+ #
555
+ # @return [String, nil]
556
+ optional :line2, String, nil?: true
557
+
558
+ # @!attribute locality
559
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
560
+ # Francisco).
561
+ #
562
+ # @return [String, nil]
563
+ optional :locality, String, nil?: true
564
+
565
+ # @!attribute postal_code
566
+ # The postal code of the address.
567
+ #
568
+ # @return [String, nil]
569
+ optional :postal_code, String, nil?: true
570
+
571
+ # @!attribute region
572
+ # Region or State. This field is free-form; for US states, we recommend a
573
+ # two-letter code (e.g. CA). Full state names are also accepted.
574
+ #
575
+ # @return [String, nil]
576
+ optional :region, String, nil?: true
577
+
578
+ # @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
579
+ # Some parameter documentations has been truncated, see
580
+ # {ModernTreasury::Models::PaymentOrderCreateAsyncParams::OriginatingPartyAddress}
581
+ # for more details.
582
+ #
583
+ # If present, this address will override the default originating party address
584
+ # used on the payment order. This works across all payment types.
585
+ #
586
+ # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
587
+ #
588
+ # @param line1 [String, nil]
589
+ #
590
+ # @param line2 [String, nil]
591
+ #
592
+ # @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
593
+ #
594
+ # @param postal_code [String, nil] The postal code of the address.
595
+ #
596
+ # @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
597
+ end
598
+
530
599
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
531
600
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
532
601
  # an overnight check rather than standard mail.
@@ -172,6 +172,15 @@ module ModernTreasury
172
172
  # @return [Boolean, nil]
173
173
  optional :nsf_protected, ModernTreasury::Internal::Type::Boolean
174
174
 
175
+ # @!attribute originating_party_address
176
+ # If present, this address will override the default originating party address
177
+ # used on the payment order. This works across all payment types.
178
+ #
179
+ # @return [ModernTreasury::Models::PaymentOrderCreateParams::OriginatingPartyAddress, nil]
180
+ optional :originating_party_address,
181
+ -> { ModernTreasury::PaymentOrderCreateParams::OriginatingPartyAddress },
182
+ nil?: true
183
+
175
184
  # @!attribute originating_party_name
176
185
  # If present, this will replace your default company name on receiver's bank
177
186
  # statement. This field can only be used for ACH payments currently. For ACH, only
@@ -321,7 +330,7 @@ module ModernTreasury
321
330
  optional :vendor_attributes,
322
331
  ModernTreasury::Internal::Type::HashOf[ModernTreasury::Internal::Type::Unknown]
323
332
 
324
- # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
333
+ # @!method initialize(amount:, direction:, originating_account_id:, type:, accounting: nil, accounting_category_id: nil, accounting_ledger_class_id: nil, charge_bearer: nil, currency: nil, description: nil, documents: nil, effective_date: nil, expires_at: nil, external_id: nil, fallback_type: nil, foreign_exchange_contract: nil, foreign_exchange_indicator: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, nsf_protected: nil, originating_party_address: nil, originating_party_name: nil, priority: nil, process_after: nil, purpose: nil, receiving_account: nil, receiving_account_id: nil, reconciliation_status: nil, remittance_information: nil, send_remittance_advice: nil, statement_descriptor: nil, subtype: nil, transaction_monitoring_enabled: nil, ultimate_originating_account_id: nil, ultimate_originating_party_address: nil, ultimate_originating_party_identifier: nil, ultimate_originating_party_name: nil, ultimate_receiving_party_identifier: nil, ultimate_receiving_party_name: nil, vendor_attributes: nil, request_options: {})
325
334
  # Some parameter documentations has been truncated, see
326
335
  # {ModernTreasury::Models::PaymentOrderCreateParams} for more details.
327
336
  #
@@ -369,6 +378,8 @@ module ModernTreasury
369
378
  #
370
379
  # @param nsf_protected [Boolean] A boolean to determine if NSF Protection is enabled for this payment order. Note
371
380
  #
381
+ # @param originating_party_address [ModernTreasury::Models::PaymentOrderCreateParams::OriginatingPartyAddress, nil] If present, this address will override the default originating party address use
382
+ #
372
383
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
373
384
  #
374
385
  # @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
@@ -514,6 +525,7 @@ module ModernTreasury
514
525
  LEGAL_ENTITY = :legal_entity
515
526
  ORGANIZATION = :organization
516
527
  PAYMENT_ORDER = :payment_order
528
+ RETURN = :return
517
529
  TRANSACTION = :transaction
518
530
 
519
531
  # @!method self.values
@@ -587,6 +599,64 @@ module ModernTreasury
587
599
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
588
600
  end
589
601
 
602
+ class OriginatingPartyAddress < ModernTreasury::Internal::Type::BaseModel
603
+ # @!attribute country
604
+ # Country code conforms to [ISO 3166-1 alpha-2]
605
+ #
606
+ # @return [String, nil]
607
+ optional :country, String, nil?: true
608
+
609
+ # @!attribute line1
610
+ #
611
+ # @return [String, nil]
612
+ optional :line1, String, nil?: true
613
+
614
+ # @!attribute line2
615
+ #
616
+ # @return [String, nil]
617
+ optional :line2, String, nil?: true
618
+
619
+ # @!attribute locality
620
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
621
+ # Francisco).
622
+ #
623
+ # @return [String, nil]
624
+ optional :locality, String, nil?: true
625
+
626
+ # @!attribute postal_code
627
+ # The postal code of the address.
628
+ #
629
+ # @return [String, nil]
630
+ optional :postal_code, String, nil?: true
631
+
632
+ # @!attribute region
633
+ # Region or State. This field is free-form; for US states, we recommend a
634
+ # two-letter code (e.g. CA). Full state names are also accepted.
635
+ #
636
+ # @return [String, nil]
637
+ optional :region, String, nil?: true
638
+
639
+ # @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
640
+ # Some parameter documentations has been truncated, see
641
+ # {ModernTreasury::Models::PaymentOrderCreateParams::OriginatingPartyAddress} for
642
+ # more details.
643
+ #
644
+ # If present, this address will override the default originating party address
645
+ # used on the payment order. This works across all payment types.
646
+ #
647
+ # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
648
+ #
649
+ # @param line1 [String, nil]
650
+ #
651
+ # @param line2 [String, nil]
652
+ #
653
+ # @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
654
+ #
655
+ # @param postal_code [String, nil] The postal code of the address.
656
+ #
657
+ # @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
658
+ end
659
+
590
660
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
591
661
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
592
662
  # an overnight check rather than standard mail.