modern_treasury 0.28.0 → 0.29.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.
Files changed (76) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +18 -0
  3. data/README.md +3 -3
  4. data/lib/modern_treasury/models/address.rb +6 -4
  5. data/lib/modern_treasury/models/address_request.rb +9 -4
  6. data/lib/modern_treasury/models/bulk_request_create_params.rb +176 -11
  7. data/lib/modern_treasury/models/child_legal_entity.rb +21 -11
  8. data/lib/modern_treasury/models/child_legal_entity_create.rb +13 -7
  9. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +14 -7
  10. data/lib/modern_treasury/models/counterparty_create_params.rb +14 -7
  11. data/lib/modern_treasury/models/identification_create_request.rb +2 -0
  12. data/lib/modern_treasury/models/internal_account_create_params.rb +32 -5
  13. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +2 -0
  14. data/lib/modern_treasury/models/invoice.rb +27 -12
  15. data/lib/modern_treasury/models/invoice_create_params.rb +29 -12
  16. data/lib/modern_treasury/models/invoice_update_params.rb +29 -12
  17. data/lib/modern_treasury/models/ledger_entry_create_request.rb +2 -0
  18. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +2 -0
  19. data/lib/modern_treasury/models/legal_entity.rb +21 -11
  20. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +6 -4
  21. data/lib/modern_treasury/models/legal_entity_create_params.rb +13 -7
  22. data/lib/modern_treasury/models/legal_entity_update_params.rb +13 -7
  23. data/lib/modern_treasury/models/legal_entity_wealth_employment_detail.rb +3 -2
  24. data/lib/modern_treasury/models/payment_order_create_async_params.rb +14 -7
  25. data/lib/modern_treasury/models/payment_order_create_params.rb +14 -7
  26. data/lib/modern_treasury/models/wealth_and_employment_details.rb +3 -2
  27. data/lib/modern_treasury/models.rb +0 -2
  28. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  29. data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
  30. data/lib/modern_treasury/resources/legal_entities.rb +5 -32
  31. data/lib/modern_treasury/resources/payment_orders.rb +2 -2
  32. data/lib/modern_treasury/version.rb +1 -1
  33. data/lib/modern_treasury.rb +0 -1
  34. data/rbi/modern_treasury/models/address.rbi +8 -4
  35. data/rbi/modern_treasury/models/address_request.rbi +8 -4
  36. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +339 -12
  37. data/rbi/modern_treasury/models/child_legal_entity.rbi +35 -13
  38. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +17 -9
  39. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -9
  40. data/rbi/modern_treasury/models/counterparty_create_params.rbi +17 -9
  41. data/rbi/modern_treasury/models/identification_create_request.rbi +10 -0
  42. data/rbi/modern_treasury/models/internal_account_create_params.rbi +84 -4
  43. data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +1 -0
  44. data/rbi/modern_treasury/models/invoice.rbi +24 -12
  45. data/rbi/modern_treasury/models/invoice_create_params.rbi +24 -12
  46. data/rbi/modern_treasury/models/invoice_update_params.rbi +24 -12
  47. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +1 -0
  48. data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +1 -0
  49. data/rbi/modern_treasury/models/legal_entity.rbi +35 -13
  50. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +8 -4
  51. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -9
  52. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +17 -9
  53. data/rbi/modern_treasury/models/legal_entity_wealth_employment_detail.rbi +4 -2
  54. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +12 -8
  55. data/rbi/modern_treasury/models/payment_order_create_params.rbi +12 -8
  56. data/rbi/modern_treasury/models/wealth_and_employment_details.rbi +4 -2
  57. data/rbi/modern_treasury/models.rbi +0 -3
  58. data/rbi/modern_treasury/resources/bulk_requests.rbi +1 -1
  59. data/rbi/modern_treasury/resources/internal_accounts.rbi +6 -0
  60. data/rbi/modern_treasury/resources/legal_entities.rbi +9 -28
  61. data/rbi/modern_treasury/resources/payment_orders.rbi +2 -2
  62. data/sig/modern_treasury/models/bulk_request_create_params.rbs +147 -6
  63. data/sig/modern_treasury/models/child_legal_entity.rbs +4 -0
  64. data/sig/modern_treasury/models/identification_create_request.rbs +4 -0
  65. data/sig/modern_treasury/models/internal_account_create_params.rbs +23 -0
  66. data/sig/modern_treasury/models/legal_entity.rbs +4 -0
  67. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +5 -5
  68. data/sig/modern_treasury/models/payment_order_create_params.rbs +5 -5
  69. data/sig/modern_treasury/models.rbs +0 -2
  70. data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
  71. data/sig/modern_treasury/resources/legal_entities.rbs +0 -6
  72. data/sig/modern_treasury/resources/payment_orders.rbs +2 -2
  73. metadata +2 -5
  74. data/lib/modern_treasury/models/legal_entity_update_status_params.rb +0 -46
  75. data/rbi/modern_treasury/models/legal_entity_update_status_params.rbi +0 -96
  76. data/sig/modern_treasury/models/legal_entity_update_status_params.rbs +0 -43
@@ -474,8 +474,8 @@ module ModernTreasury
474
474
  optional :connection_id, String, nil?: true
475
475
 
476
476
  # @!attribute country_of_incorporation
477
- # The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
478
- # alpha-3 formats.
477
+ # The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
478
+ # code (e.g. US).
479
479
  #
480
480
  # @return [String, nil]
481
481
  optional :country_of_incorporation, String, nil?: true
@@ -593,8 +593,8 @@ module ModernTreasury
593
593
  optional :middle_name, String, nil?: true
594
594
 
595
595
  # @!attribute operating_jurisdictions
596
- # A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
597
- # codes).
596
+ # A list of countries where the business operates, as ISO 3166-1 alpha-2 country
597
+ # codes (e.g. ["US", "CA"]).
598
598
  #
599
599
  # @return [Array<String>, nil]
600
600
  optional :operating_jurisdictions, ModernTreasury::Internal::Type::ArrayOf[String]
@@ -722,7 +722,7 @@ module ModernTreasury
722
722
  #
723
723
  # @param connection_id [String, nil] The connection ID for the connection the legal entity is associated with. Defaul
724
724
  #
725
- # @param country_of_incorporation [String, nil] The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
725
+ # @param country_of_incorporation [String, nil] The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
726
726
  #
727
727
  # @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
728
728
  #
@@ -758,7 +758,7 @@ module ModernTreasury
758
758
  #
759
759
  # @param middle_name [String, nil] An individual's middle name.
760
760
  #
761
- # @param operating_jurisdictions [Array<String>] A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3 c
761
+ # @param operating_jurisdictions [Array<String>] A list of countries where the business operates, as ISO 3166-1 alpha-2 country c
762
762
  #
763
763
  # @param phone_numbers [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>]
764
764
  #
@@ -868,14 +868,21 @@ module ModernTreasury
868
868
 
869
869
  class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
870
870
  # @!attribute phone_number
871
+ # A phone number in E.164 format. This format is strictly validated: include a
872
+ # leading + and country code, followed by digits only (no spaces or dashes), e.g.
873
+ # +12025551234.
871
874
  #
872
875
  # @return [String, nil]
873
876
  optional :phone_number, String
874
877
 
875
878
  # @!method initialize(phone_number: nil)
879
+ # Some parameter documentations has been truncated, see
880
+ # {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber} for
881
+ # more details.
882
+ #
876
883
  # A list of phone numbers in E.164 format.
877
884
  #
878
- # @param phone_number [String]
885
+ # @param phone_number [String] A phone number in E.164 format. This format is strictly validated: include a lea
879
886
  end
880
887
 
881
888
  class Regulator < ModernTreasury::Internal::Type::BaseModel
@@ -105,6 +105,8 @@ module ModernTreasury
105
105
  GB_VAT = :gb_vat
106
106
  GENERIC_INTERNATIONAL = :generic_international
107
107
  GR_VAT = :gr_vat
108
+ HK_BRN = :hk_brn
109
+ HK_HKID = :hk_hkid
108
110
  HN_ID = :hn_id
109
111
  HN_RTN = :hn_rtn
110
112
  HR_OIB = :hr_oib
@@ -94,6 +94,13 @@ module ModernTreasury
94
94
  # @return [String, nil]
95
95
  optional :party_name, String, nil?: true
96
96
 
97
+ # @!attribute requested_account_number_types
98
+ # An array of account number types requested for provisioning.
99
+ #
100
+ # @return [Array<Symbol, ModernTreasury::Models::InternalAccountCreateParams::RequestedAccountNumberType>, nil]
101
+ optional :requested_account_number_types,
102
+ -> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType] }
103
+
97
104
  # @!attribute vendor_attributes
98
105
  # A hash of vendor specific attributes that will be used when creating the account
99
106
  # at the vendor specified by the given connection.
@@ -101,7 +108,7 @@ module ModernTreasury
101
108
  # @return [Hash{Symbol=>String}, nil]
102
109
  optional :vendor_attributes, ModernTreasury::Internal::Type::HashOf[String]
103
110
 
104
- # @!method initialize(currency:, name:, account_capabilities: nil, account_type: nil, connection_id: nil, counterparty_id: nil, debitable: nil, external_id: nil, legal_entity_id: nil, metadata: nil, parent_account_id: nil, party_address: nil, party_name: nil, vendor_attributes: nil, request_options: {})
111
+ # @!method initialize(currency:, name:, account_capabilities: nil, account_type: nil, connection_id: nil, counterparty_id: nil, debitable: nil, external_id: nil, legal_entity_id: nil, metadata: nil, parent_account_id: nil, party_address: nil, party_name: nil, requested_account_number_types: nil, vendor_attributes: nil, request_options: {})
105
112
  # Some parameter documentations has been truncated, see
106
113
  # {ModernTreasury::Models::InternalAccountCreateParams} for more details.
107
114
  #
@@ -131,6 +138,8 @@ module ModernTreasury
131
138
  #
132
139
  # @param party_name [String, nil] The legal name of the entity which owns the account.
133
140
  #
141
+ # @param requested_account_number_types [Array<Symbol, ModernTreasury::Models::InternalAccountCreateParams::RequestedAccountNumberType>] An array of account number types requested for provisioning.
142
+ #
134
143
  # @param vendor_attributes [Hash{Symbol=>String}] A hash of vendor specific attributes that will be used when creating the account
135
144
  #
136
145
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
@@ -302,7 +311,8 @@ module ModernTreasury
302
311
  required :line1, String
303
312
 
304
313
  # @!attribute locality
305
- # Locality or City.
314
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
315
+ # Francisco).
306
316
  #
307
317
  # @return [String]
308
318
  required :locality, String
@@ -314,7 +324,8 @@ module ModernTreasury
314
324
  required :postal_code, String
315
325
 
316
326
  # @!attribute region
317
- # Region or State.
327
+ # Region or State. This field is free-form; for US states, we recommend a
328
+ # two-letter code (e.g. CA). Full state names are also accepted.
318
329
  #
319
330
  # @return [String]
320
331
  required :region, String
@@ -325,20 +336,36 @@ module ModernTreasury
325
336
  optional :line2, String
326
337
 
327
338
  # @!method initialize(country:, line1:, locality:, postal_code:, region:, line2: nil)
339
+ # Some parameter documentations has been truncated, see
340
+ # {ModernTreasury::Models::InternalAccountCreateParams::PartyAddress} for more
341
+ # details.
342
+ #
328
343
  # The address associated with the owner or null.
329
344
  #
330
345
  # @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
331
346
  #
332
347
  # @param line1 [String]
333
348
  #
334
- # @param locality [String] Locality or City.
349
+ # @param locality [String] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
335
350
  #
336
351
  # @param postal_code [String] The postal code of the address.
337
352
  #
338
- # @param region [String] Region or State.
353
+ # @param region [String] Region or State. This field is free-form; for US states, we recommend a two-lett
339
354
  #
340
355
  # @param line2 [String]
341
356
  end
357
+
358
+ module RequestedAccountNumberType
359
+ extend ModernTreasury::Internal::Type::Enum
360
+
361
+ ETHEREUM_ADDRESS = :ethereum_address
362
+ SOLANA_ADDRESS = :solana_address
363
+ POLYGON_ADDRESS = :polygon_address
364
+ BASE_ADDRESS = :base_address
365
+
366
+ # @!method self.values
367
+ # @return [Array<Symbol>]
368
+ end
342
369
  end
343
370
  end
344
371
  end
@@ -115,6 +115,8 @@ module ModernTreasury
115
115
  # {ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance}
116
116
  # for more details.
117
117
  #
118
+ # At least one of "amount" or "amount_string" is required.
119
+ #
118
120
  # @param balance_type [Symbol, ModernTreasury::Models::InternalAccounts::BalanceReportCreateParams::Balance::BalanceType] The specific type of balance reported. One of `opening_ledger`, `closing_ledger`
119
121
  #
120
122
  # @param vendor_code [String] The code used by the bank when reporting this specific balance.
@@ -370,7 +370,8 @@ module ModernTreasury
370
370
  required :line1, String
371
371
 
372
372
  # @!attribute locality
373
- # Locality or City.
373
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
374
+ # Francisco).
374
375
  #
375
376
  # @return [String]
376
377
  required :locality, String
@@ -382,7 +383,8 @@ module ModernTreasury
382
383
  required :postal_code, String
383
384
 
384
385
  # @!attribute region
385
- # Region or State.
386
+ # Region or State. This field is free-form; for US states, we recommend a
387
+ # two-letter code (e.g. CA). Full state names are also accepted.
386
388
  #
387
389
  # @return [String]
388
390
  required :region, String
@@ -393,17 +395,20 @@ module ModernTreasury
393
395
  optional :line2, String
394
396
 
395
397
  # @!method initialize(country:, line1:, locality:, postal_code:, region:, line2: nil)
398
+ # Some parameter documentations has been truncated, see
399
+ # {ModernTreasury::Models::Invoice::CounterpartyBillingAddress} for more details.
400
+ #
396
401
  # The counterparty's billing address.
397
402
  #
398
403
  # @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
399
404
  #
400
405
  # @param line1 [String]
401
406
  #
402
- # @param locality [String] Locality or City.
407
+ # @param locality [String] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
403
408
  #
404
409
  # @param postal_code [String] The postal code of the address.
405
410
  #
406
- # @param region [String] Region or State.
411
+ # @param region [String] Region or State. This field is free-form; for US states, we recommend a two-lett
407
412
  #
408
413
  # @param line2 [String]
409
414
  end
@@ -422,7 +427,8 @@ module ModernTreasury
422
427
  required :line1, String
423
428
 
424
429
  # @!attribute locality
425
- # Locality or City.
430
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
431
+ # Francisco).
426
432
  #
427
433
  # @return [String]
428
434
  required :locality, String
@@ -434,7 +440,8 @@ module ModernTreasury
434
440
  required :postal_code, String
435
441
 
436
442
  # @!attribute region
437
- # Region or State.
443
+ # Region or State. This field is free-form; for US states, we recommend a
444
+ # two-letter code (e.g. CA). Full state names are also accepted.
438
445
  #
439
446
  # @return [String]
440
447
  required :region, String
@@ -445,17 +452,20 @@ module ModernTreasury
445
452
  optional :line2, String
446
453
 
447
454
  # @!method initialize(country:, line1:, locality:, postal_code:, region:, line2: nil)
455
+ # Some parameter documentations has been truncated, see
456
+ # {ModernTreasury::Models::Invoice::CounterpartyShippingAddress} for more details.
457
+ #
448
458
  # The counterparty's shipping address where physical goods should be delivered.
449
459
  #
450
460
  # @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
451
461
  #
452
462
  # @param line1 [String]
453
463
  #
454
- # @param locality [String] Locality or City.
464
+ # @param locality [String] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
455
465
  #
456
466
  # @param postal_code [String] The postal code of the address.
457
467
  #
458
- # @param region [String] Region or State.
468
+ # @param region [String] Region or State. This field is free-form; for US states, we recommend a two-lett
459
469
  #
460
470
  # @param line2 [String]
461
471
  end
@@ -474,7 +484,8 @@ module ModernTreasury
474
484
  required :line1, String
475
485
 
476
486
  # @!attribute locality
477
- # Locality or City.
487
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
488
+ # Francisco).
478
489
  #
479
490
  # @return [String]
480
491
  required :locality, String
@@ -486,7 +497,8 @@ module ModernTreasury
486
497
  required :postal_code, String
487
498
 
488
499
  # @!attribute region
489
- # Region or State.
500
+ # Region or State. This field is free-form; for US states, we recommend a
501
+ # two-letter code (e.g. CA). Full state names are also accepted.
490
502
  #
491
503
  # @return [String]
492
504
  required :region, String
@@ -497,17 +509,20 @@ module ModernTreasury
497
509
  optional :line2, String
498
510
 
499
511
  # @!method initialize(country:, line1:, locality:, postal_code:, region:, line2: nil)
512
+ # Some parameter documentations has been truncated, see
513
+ # {ModernTreasury::Models::Invoice::InvoicerAddress} for more details.
514
+ #
500
515
  # The invoice issuer's business address.
501
516
  #
502
517
  # @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
503
518
  #
504
519
  # @param line1 [String]
505
520
  #
506
- # @param locality [String] Locality or City.
521
+ # @param locality [String] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
507
522
  #
508
523
  # @param postal_code [String] The postal code of the address.
509
524
  #
510
- # @param region [String] Region or State.
525
+ # @param region [String] Region or State. This field is free-form; for US states, we recommend a two-lett
511
526
  #
512
527
  # @param line2 [String]
513
528
  end
@@ -247,7 +247,8 @@ module ModernTreasury
247
247
  required :line1, String
248
248
 
249
249
  # @!attribute locality
250
- # Locality or City.
250
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
251
+ # Francisco).
251
252
  #
252
253
  # @return [String]
253
254
  required :locality, String
@@ -259,7 +260,8 @@ module ModernTreasury
259
260
  required :postal_code, String
260
261
 
261
262
  # @!attribute region
262
- # Region or State.
263
+ # Region or State. This field is free-form; for US states, we recommend a
264
+ # two-letter code (e.g. CA). Full state names are also accepted.
263
265
  #
264
266
  # @return [String]
265
267
  required :region, String
@@ -270,17 +272,21 @@ module ModernTreasury
270
272
  optional :line2, String
271
273
 
272
274
  # @!method initialize(country:, line1:, locality:, postal_code:, region:, line2: nil)
275
+ # Some parameter documentations has been truncated, see
276
+ # {ModernTreasury::Models::InvoiceCreateParams::CounterpartyBillingAddress} for
277
+ # more details.
278
+ #
273
279
  # The counterparty's billing address.
274
280
  #
275
281
  # @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
276
282
  #
277
283
  # @param line1 [String]
278
284
  #
279
- # @param locality [String] Locality or City.
285
+ # @param locality [String] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
280
286
  #
281
287
  # @param postal_code [String] The postal code of the address.
282
288
  #
283
- # @param region [String] Region or State.
289
+ # @param region [String] Region or State. This field is free-form; for US states, we recommend a two-lett
284
290
  #
285
291
  # @param line2 [String]
286
292
  end
@@ -298,7 +304,8 @@ module ModernTreasury
298
304
  required :line1, String
299
305
 
300
306
  # @!attribute locality
301
- # Locality or City.
307
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
308
+ # Francisco).
302
309
  #
303
310
  # @return [String]
304
311
  required :locality, String
@@ -310,7 +317,8 @@ module ModernTreasury
310
317
  required :postal_code, String
311
318
 
312
319
  # @!attribute region
313
- # Region or State.
320
+ # Region or State. This field is free-form; for US states, we recommend a
321
+ # two-letter code (e.g. CA). Full state names are also accepted.
314
322
  #
315
323
  # @return [String]
316
324
  required :region, String
@@ -321,17 +329,21 @@ module ModernTreasury
321
329
  optional :line2, String
322
330
 
323
331
  # @!method initialize(country:, line1:, locality:, postal_code:, region:, line2: nil)
332
+ # Some parameter documentations has been truncated, see
333
+ # {ModernTreasury::Models::InvoiceCreateParams::CounterpartyShippingAddress} for
334
+ # more details.
335
+ #
324
336
  # The counterparty's shipping address where physical goods should be delivered.
325
337
  #
326
338
  # @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
327
339
  #
328
340
  # @param line1 [String]
329
341
  #
330
- # @param locality [String] Locality or City.
342
+ # @param locality [String] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
331
343
  #
332
344
  # @param postal_code [String] The postal code of the address.
333
345
  #
334
- # @param region [String] Region or State.
346
+ # @param region [String] Region or State. This field is free-form; for US states, we recommend a two-lett
335
347
  #
336
348
  # @param line2 [String]
337
349
  end
@@ -418,7 +430,8 @@ module ModernTreasury
418
430
  required :line1, String
419
431
 
420
432
  # @!attribute locality
421
- # Locality or City.
433
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
434
+ # Francisco).
422
435
  #
423
436
  # @return [String]
424
437
  required :locality, String
@@ -430,7 +443,8 @@ module ModernTreasury
430
443
  required :postal_code, String
431
444
 
432
445
  # @!attribute region
433
- # Region or State.
446
+ # Region or State. This field is free-form; for US states, we recommend a
447
+ # two-letter code (e.g. CA). Full state names are also accepted.
434
448
  #
435
449
  # @return [String]
436
450
  required :region, String
@@ -441,17 +455,20 @@ module ModernTreasury
441
455
  optional :line2, String
442
456
 
443
457
  # @!method initialize(country:, line1:, locality:, postal_code:, region:, line2: nil)
458
+ # Some parameter documentations has been truncated, see
459
+ # {ModernTreasury::Models::InvoiceCreateParams::InvoicerAddress} for more details.
460
+ #
444
461
  # The invoice issuer's business address.
445
462
  #
446
463
  # @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
447
464
  #
448
465
  # @param line1 [String]
449
466
  #
450
- # @param locality [String] Locality or City.
467
+ # @param locality [String] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
451
468
  #
452
469
  # @param postal_code [String] The postal code of the address.
453
470
  #
454
- # @param region [String] Region or State.
471
+ # @param region [String] Region or State. This field is free-form; for US states, we recommend a two-lett
455
472
  #
456
473
  # @param line2 [String]
457
474
  end
@@ -254,7 +254,8 @@ module ModernTreasury
254
254
  required :line1, String
255
255
 
256
256
  # @!attribute locality
257
- # Locality or City.
257
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
258
+ # Francisco).
258
259
  #
259
260
  # @return [String]
260
261
  required :locality, String
@@ -266,7 +267,8 @@ module ModernTreasury
266
267
  required :postal_code, String
267
268
 
268
269
  # @!attribute region
269
- # Region or State.
270
+ # Region or State. This field is free-form; for US states, we recommend a
271
+ # two-letter code (e.g. CA). Full state names are also accepted.
270
272
  #
271
273
  # @return [String]
272
274
  required :region, String
@@ -277,17 +279,21 @@ module ModernTreasury
277
279
  optional :line2, String
278
280
 
279
281
  # @!method initialize(country:, line1:, locality:, postal_code:, region:, line2: nil)
282
+ # Some parameter documentations has been truncated, see
283
+ # {ModernTreasury::Models::InvoiceUpdateParams::CounterpartyBillingAddress} for
284
+ # more details.
285
+ #
280
286
  # The counterparty's billing address.
281
287
  #
282
288
  # @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
283
289
  #
284
290
  # @param line1 [String]
285
291
  #
286
- # @param locality [String] Locality or City.
292
+ # @param locality [String] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
287
293
  #
288
294
  # @param postal_code [String] The postal code of the address.
289
295
  #
290
- # @param region [String] Region or State.
296
+ # @param region [String] Region or State. This field is free-form; for US states, we recommend a two-lett
291
297
  #
292
298
  # @param line2 [String]
293
299
  end
@@ -305,7 +311,8 @@ module ModernTreasury
305
311
  required :line1, String
306
312
 
307
313
  # @!attribute locality
308
- # Locality or City.
314
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
315
+ # Francisco).
309
316
  #
310
317
  # @return [String]
311
318
  required :locality, String
@@ -317,7 +324,8 @@ module ModernTreasury
317
324
  required :postal_code, String
318
325
 
319
326
  # @!attribute region
320
- # Region or State.
327
+ # Region or State. This field is free-form; for US states, we recommend a
328
+ # two-letter code (e.g. CA). Full state names are also accepted.
321
329
  #
322
330
  # @return [String]
323
331
  required :region, String
@@ -328,17 +336,21 @@ module ModernTreasury
328
336
  optional :line2, String
329
337
 
330
338
  # @!method initialize(country:, line1:, locality:, postal_code:, region:, line2: nil)
339
+ # Some parameter documentations has been truncated, see
340
+ # {ModernTreasury::Models::InvoiceUpdateParams::CounterpartyShippingAddress} for
341
+ # more details.
342
+ #
331
343
  # The counterparty's shipping address where physical goods should be delivered.
332
344
  #
333
345
  # @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
334
346
  #
335
347
  # @param line1 [String]
336
348
  #
337
- # @param locality [String] Locality or City.
349
+ # @param locality [String] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
338
350
  #
339
351
  # @param postal_code [String] The postal code of the address.
340
352
  #
341
- # @param region [String] Region or State.
353
+ # @param region [String] Region or State. This field is free-form; for US states, we recommend a two-lett
342
354
  #
343
355
  # @param line2 [String]
344
356
  end
@@ -425,7 +437,8 @@ module ModernTreasury
425
437
  required :line1, String
426
438
 
427
439
  # @!attribute locality
428
- # Locality or City.
440
+ # Locality or City. Use the full city name rather than an abbreviation (e.g. San
441
+ # Francisco).
429
442
  #
430
443
  # @return [String]
431
444
  required :locality, String
@@ -437,7 +450,8 @@ module ModernTreasury
437
450
  required :postal_code, String
438
451
 
439
452
  # @!attribute region
440
- # Region or State.
453
+ # Region or State. This field is free-form; for US states, we recommend a
454
+ # two-letter code (e.g. CA). Full state names are also accepted.
441
455
  #
442
456
  # @return [String]
443
457
  required :region, String
@@ -448,17 +462,20 @@ module ModernTreasury
448
462
  optional :line2, String
449
463
 
450
464
  # @!method initialize(country:, line1:, locality:, postal_code:, region:, line2: nil)
465
+ # Some parameter documentations has been truncated, see
466
+ # {ModernTreasury::Models::InvoiceUpdateParams::InvoicerAddress} for more details.
467
+ #
451
468
  # The invoice issuer's business address.
452
469
  #
453
470
  # @param country [String] Country code conforms to [ISO 3166-1 alpha-2]
454
471
  #
455
472
  # @param line1 [String]
456
473
  #
457
- # @param locality [String] Locality or City.
474
+ # @param locality [String] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
458
475
  #
459
476
  # @param postal_code [String] The postal code of the address.
460
477
  #
461
- # @param region [String] Region or State.
478
+ # @param region [String] Region or State. This field is free-form; for US states, we recommend a two-lett
462
479
  #
463
480
  # @param line2 [String]
464
481
  end
@@ -90,6 +90,8 @@ module ModernTreasury
90
90
  # Some parameter documentations has been truncated, see
91
91
  # {ModernTreasury::Models::LedgerEntryCreateRequest} for more details.
92
92
  #
93
+ # At least one of "amount" or "amount_string" is required.
94
+ #
93
95
  # @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
94
96
  #
95
97
  # @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
@@ -142,6 +142,8 @@ module ModernTreasury
142
142
  # {ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry}
143
143
  # for more details.
144
144
  #
145
+ # At least one of "amount" or "amount_string" is required.
146
+ #
145
147
  # @param direction [Symbol, ModernTreasury::Models::LedgerTransactionCreatePartialPostParams::PostedLedgerEntry::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
146
148
  #
147
149
  # @param ledger_account_id [String] The ledger account that this ledger entry is associated with.