increase 1.347.0 → 1.349.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 (124) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/increase/models/account_create_params.rb +15 -15
  4. data/lib/increase/models/ach_prenotification_create_params.rb +2 -2
  5. data/lib/increase/models/ach_transfer.rb +2 -2
  6. data/lib/increase/models/ach_transfer_create_params.rb +1 -24
  7. data/lib/increase/models/balance_lookup.rb +49 -1
  8. data/lib/increase/models/beneficial_owner_update_params.rb +9 -1
  9. data/lib/increase/models/card.rb +43 -1
  10. data/lib/increase/models/card_create_params.rb +42 -1
  11. data/lib/increase/models/card_dispute.rb +1 -1
  12. data/lib/increase/models/card_dispute_list_params.rb +1 -1
  13. data/lib/increase/models/card_payment.rb +18 -1
  14. data/lib/increase/models/check_transfer.rb +13 -1
  15. data/lib/increase/models/check_transfer_create_params.rb +25 -13
  16. data/lib/increase/models/entity.rb +315 -5
  17. data/lib/increase/models/entity_update_params.rb +754 -1
  18. data/lib/increase/models/event.rb +12 -0
  19. data/lib/increase/models/event_list_params.rb +12 -0
  20. data/lib/increase/models/event_subscription.rb +12 -0
  21. data/lib/increase/models/event_subscription_create_params.rb +12 -0
  22. data/lib/increase/models/file.rb +7 -6
  23. data/lib/increase/models/inbound_ach_transfer.rb +6 -6
  24. data/lib/increase/models/inbound_check_deposit.rb +5 -2
  25. data/lib/increase/models/inbound_fednow_transfer.rb +18 -1
  26. data/lib/increase/models/pending_transaction.rb +25 -8
  27. data/lib/increase/models/pending_transaction_list_params.rb +1 -1
  28. data/lib/increase/models/physical_card_create_params.rb +6 -3
  29. data/lib/increase/models/real_time_decision.rb +18 -1
  30. data/lib/increase/models/real_time_payments_transfer.rb +30 -19
  31. data/lib/increase/models/real_time_payments_transfer_create_params.rb +12 -1
  32. data/lib/increase/models/simulations/card_dispute_action_params.rb +30 -1
  33. data/lib/increase/models/simulations/entity_update_validation_params.rb +3 -0
  34. data/lib/increase/models/simulations/inbound_check_deposit_adjustment_params.rb +8 -11
  35. data/lib/increase/models/simulations/real_time_payments_transfer_complete_params.rb +18 -18
  36. data/lib/increase/models/transaction.rb +5 -2
  37. data/lib/increase/models/unwrap_webhook_event.rb +12 -0
  38. data/lib/increase/models/wire_transfer_create_params.rb +100 -42
  39. data/lib/increase/resources/ach_prenotifications.rb +1 -1
  40. data/lib/increase/resources/ach_transfers.rb +1 -4
  41. data/lib/increase/resources/beneficial_owners.rb +3 -1
  42. data/lib/increase/resources/cards.rb +5 -1
  43. data/lib/increase/resources/physical_cards.rb +2 -1
  44. data/lib/increase/resources/real_time_payments_transfers.rb +5 -1
  45. data/lib/increase/resources/simulations/inbound_check_deposits.rb +4 -1
  46. data/lib/increase/version.rb +1 -1
  47. data/rbi/increase/models/account_create_params.rbi +37 -21
  48. data/rbi/increase/models/ach_prenotification_create_params.rbi +2 -2
  49. data/rbi/increase/models/ach_transfer.rbi +2 -2
  50. data/rbi/increase/models/ach_transfer_create_params.rbi +0 -59
  51. data/rbi/increase/models/balance_lookup.rbi +48 -0
  52. data/rbi/increase/models/beneficial_owner_update_params.rbi +11 -0
  53. data/rbi/increase/models/card.rbi +63 -0
  54. data/rbi/increase/models/card_create_params.rbi +65 -0
  55. data/rbi/increase/models/card_dispute.rbi +1 -1
  56. data/rbi/increase/models/card_dispute_list_params.rbi +1 -1
  57. data/rbi/increase/models/card_payment.rbi +16 -0
  58. data/rbi/increase/models/check_transfer.rbi +15 -0
  59. data/rbi/increase/models/check_transfer_create_params.rbi +26 -12
  60. data/rbi/increase/models/entity.rbi +552 -3
  61. data/rbi/increase/models/entity_update_params.rbi +1326 -3
  62. data/rbi/increase/models/event.rbi +28 -0
  63. data/rbi/increase/models/event_list_params.rbi +28 -0
  64. data/rbi/increase/models/event_subscription.rbi +28 -0
  65. data/rbi/increase/models/event_subscription_create_params.rbi +28 -0
  66. data/rbi/increase/models/file.rbi +7 -6
  67. data/rbi/increase/models/inbound_ach_transfer.rbi +6 -6
  68. data/rbi/increase/models/inbound_check_deposit.rbi +4 -2
  69. data/rbi/increase/models/inbound_fednow_transfer.rbi +16 -0
  70. data/rbi/increase/models/pending_transaction.rbi +23 -7
  71. data/rbi/increase/models/pending_transaction_list_params.rbi +1 -1
  72. data/rbi/increase/models/physical_card_create_params.rbi +6 -3
  73. data/rbi/increase/models/real_time_decision.rbi +16 -0
  74. data/rbi/increase/models/real_time_payments_transfer.rbi +29 -18
  75. data/rbi/increase/models/real_time_payments_transfer_create_params.rbi +15 -0
  76. data/rbi/increase/models/simulations/card_dispute_action_params.rbi +60 -0
  77. data/rbi/increase/models/simulations/entity_update_validation_params.rbi +7 -0
  78. data/rbi/increase/models/simulations/inbound_check_deposit_adjustment_params.rbi +8 -23
  79. data/rbi/increase/models/simulations/real_time_payments_transfer_complete_params.rbi +18 -18
  80. data/rbi/increase/models/transaction.rbi +4 -2
  81. data/rbi/increase/models/unwrap_webhook_event.rbi +28 -0
  82. data/rbi/increase/models/wire_transfer_create_params.rbi +146 -62
  83. data/rbi/increase/resources/ach_prenotifications.rbi +1 -1
  84. data/rbi/increase/resources/ach_transfers.rbi +0 -4
  85. data/rbi/increase/resources/beneficial_owners.rbi +3 -0
  86. data/rbi/increase/resources/cards.rbi +4 -0
  87. data/rbi/increase/resources/physical_cards.rbi +2 -1
  88. data/rbi/increase/resources/real_time_payments_transfers.rbi +4 -0
  89. data/rbi/increase/resources/simulations/inbound_check_deposits.rbi +4 -1
  90. data/sig/increase/models/account_create_params.rbs +20 -12
  91. data/sig/increase/models/ach_transfer_create_params.rbs +1 -24
  92. data/sig/increase/models/balance_lookup.rbs +30 -0
  93. data/sig/increase/models/beneficial_owner_update_params.rbs +7 -0
  94. data/sig/increase/models/card.rbs +19 -0
  95. data/sig/increase/models/card_create_params.rbs +25 -0
  96. data/sig/increase/models/card_dispute.rbs +1 -1
  97. data/sig/increase/models/card_dispute_list_params.rbs +1 -1
  98. data/sig/increase/models/card_payment.rbs +5 -0
  99. data/sig/increase/models/check_transfer.rbs +9 -0
  100. data/sig/increase/models/check_transfer_create_params.rbs +7 -0
  101. data/sig/increase/models/entity.rbs +248 -5
  102. data/sig/increase/models/entity_update_params.rbs +585 -3
  103. data/sig/increase/models/event.rbs +16 -0
  104. data/sig/increase/models/event_list_params.rbs +16 -0
  105. data/sig/increase/models/event_subscription.rbs +16 -0
  106. data/sig/increase/models/event_subscription_create_params.rbs +16 -0
  107. data/sig/increase/models/inbound_ach_transfer.rbs +2 -2
  108. data/sig/increase/models/inbound_fednow_transfer.rbs +10 -0
  109. data/sig/increase/models/pending_transaction.rbs +6 -1
  110. data/sig/increase/models/pending_transaction_list_params.rbs +1 -1
  111. data/sig/increase/models/real_time_decision.rbs +5 -0
  112. data/sig/increase/models/real_time_payments_transfer.rbs +23 -18
  113. data/sig/increase/models/real_time_payments_transfer_create_params.rbs +7 -0
  114. data/sig/increase/models/simulations/card_dispute_action_params.rbs +23 -0
  115. data/sig/increase/models/simulations/entity_update_validation_params.rbs +4 -0
  116. data/sig/increase/models/simulations/inbound_check_deposit_adjustment_params.rbs +1 -15
  117. data/sig/increase/models/simulations/real_time_payments_transfer_complete_params.rbs +18 -18
  118. data/sig/increase/models/unwrap_webhook_event.rbs +16 -0
  119. data/sig/increase/models/wire_transfer_create_params.rbs +78 -32
  120. data/sig/increase/resources/ach_transfers.rbs +0 -1
  121. data/sig/increase/resources/beneficial_owners.rbs +1 -0
  122. data/sig/increase/resources/cards.rbs +1 -0
  123. data/sig/increase/resources/real_time_payments_transfers.rbs +1 -0
  124. metadata +2 -2
@@ -593,6 +593,13 @@ module Increase
593
593
  Increase::Event::Category::TaggedSymbol
594
594
  )
595
595
 
596
+ # Occurs whenever a Loan Obligation is created.
597
+ LOAN_OBLIGATION_CREATED =
598
+ T.let(
599
+ :"loan_obligation.created",
600
+ Increase::Event::Category::TaggedSymbol
601
+ )
602
+
596
603
  # Occurs whenever a Loan Offer is created.
597
604
  LOAN_OFFER_CREATED =
598
605
  T.let(:"loan_offer.created", Increase::Event::Category::TaggedSymbol)
@@ -616,6 +623,20 @@ module Increase
616
623
  LOCKBOX_UPDATED =
617
624
  T.let(:"lockbox.updated", Increase::Event::Category::TaggedSymbol)
618
625
 
626
+ # Occurs whenever a Lockbox Address is created.
627
+ LOCKBOX_ADDRESS_CREATED =
628
+ T.let(
629
+ :"lockbox_address.created",
630
+ Increase::Event::Category::TaggedSymbol
631
+ )
632
+
633
+ # Occurs whenever a Lockbox Address is updated.
634
+ LOCKBOX_ADDRESS_UPDATED =
635
+ T.let(
636
+ :"lockbox_address.updated",
637
+ Increase::Event::Category::TaggedSymbol
638
+ )
639
+
619
640
  # Occurs whenever an OAuth Connection is created.
620
641
  OAUTH_CONNECTION_CREATED =
621
642
  T.let(
@@ -714,6 +735,13 @@ module Increase
714
735
  Increase::Event::Category::TaggedSymbol
715
736
  )
716
737
 
738
+ # Occurs whenever a Plaid Processor Token is created.
739
+ PLAID_PROCESSOR_TOKEN_CREATED =
740
+ T.let(
741
+ :"plaid_processor_token.created",
742
+ Increase::Event::Category::TaggedSymbol
743
+ )
744
+
717
745
  # Occurs whenever a Checkbook is created.
718
746
  CHECKBOOK_CREATED =
719
747
  T.let(:"checkbook.created", Increase::Event::Category::TaggedSymbol)
@@ -696,6 +696,13 @@ module Increase
696
696
  Increase::EventListParams::Category::In::TaggedSymbol
697
697
  )
698
698
 
699
+ # Occurs whenever a Loan Obligation is created.
700
+ LOAN_OBLIGATION_CREATED =
701
+ T.let(
702
+ :"loan_obligation.created",
703
+ Increase::EventListParams::Category::In::TaggedSymbol
704
+ )
705
+
699
706
  # Occurs whenever a Loan Offer is created.
700
707
  LOAN_OFFER_CREATED =
701
708
  T.let(
@@ -731,6 +738,20 @@ module Increase
731
738
  Increase::EventListParams::Category::In::TaggedSymbol
732
739
  )
733
740
 
741
+ # Occurs whenever a Lockbox Address is created.
742
+ LOCKBOX_ADDRESS_CREATED =
743
+ T.let(
744
+ :"lockbox_address.created",
745
+ Increase::EventListParams::Category::In::TaggedSymbol
746
+ )
747
+
748
+ # Occurs whenever a Lockbox Address is updated.
749
+ LOCKBOX_ADDRESS_UPDATED =
750
+ T.let(
751
+ :"lockbox_address.updated",
752
+ Increase::EventListParams::Category::In::TaggedSymbol
753
+ )
754
+
734
755
  # Occurs whenever an OAuth Connection is created.
735
756
  OAUTH_CONNECTION_CREATED =
736
757
  T.let(
@@ -829,6 +850,13 @@ module Increase
829
850
  Increase::EventListParams::Category::In::TaggedSymbol
830
851
  )
831
852
 
853
+ # Occurs whenever a Plaid Processor Token is created.
854
+ PLAID_PROCESSOR_TOKEN_CREATED =
855
+ T.let(
856
+ :"plaid_processor_token.created",
857
+ Increase::EventListParams::Category::In::TaggedSymbol
858
+ )
859
+
832
860
  # Occurs whenever a Checkbook is created.
833
861
  CHECKBOOK_CREATED =
834
862
  T.let(
@@ -717,6 +717,13 @@ module Increase
717
717
  Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
718
718
  )
719
719
 
720
+ # Occurs whenever a Loan Obligation is created.
721
+ LOAN_OBLIGATION_CREATED =
722
+ T.let(
723
+ :"loan_obligation.created",
724
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
725
+ )
726
+
720
727
  # Occurs whenever a Loan Offer is created.
721
728
  LOAN_OFFER_CREATED =
722
729
  T.let(
@@ -752,6 +759,20 @@ module Increase
752
759
  Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
753
760
  )
754
761
 
762
+ # Occurs whenever a Lockbox Address is created.
763
+ LOCKBOX_ADDRESS_CREATED =
764
+ T.let(
765
+ :"lockbox_address.created",
766
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
767
+ )
768
+
769
+ # Occurs whenever a Lockbox Address is updated.
770
+ LOCKBOX_ADDRESS_UPDATED =
771
+ T.let(
772
+ :"lockbox_address.updated",
773
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
774
+ )
775
+
755
776
  # Occurs whenever an OAuth Connection is created.
756
777
  OAUTH_CONNECTION_CREATED =
757
778
  T.let(
@@ -850,6 +871,13 @@ module Increase
850
871
  Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
851
872
  )
852
873
 
874
+ # Occurs whenever a Plaid Processor Token is created.
875
+ PLAID_PROCESSOR_TOKEN_CREATED =
876
+ T.let(
877
+ :"plaid_processor_token.created",
878
+ Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
879
+ )
880
+
853
881
  # Occurs whenever a Checkbook is created.
854
882
  CHECKBOOK_CREATED =
855
883
  T.let(
@@ -715,6 +715,13 @@ module Increase
715
715
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
716
716
  )
717
717
 
718
+ # Occurs whenever a Loan Obligation is created.
719
+ LOAN_OBLIGATION_CREATED =
720
+ T.let(
721
+ :"loan_obligation.created",
722
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
723
+ )
724
+
718
725
  # Occurs whenever a Loan Offer is created.
719
726
  LOAN_OFFER_CREATED =
720
727
  T.let(
@@ -750,6 +757,20 @@ module Increase
750
757
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
751
758
  )
752
759
 
760
+ # Occurs whenever a Lockbox Address is created.
761
+ LOCKBOX_ADDRESS_CREATED =
762
+ T.let(
763
+ :"lockbox_address.created",
764
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
765
+ )
766
+
767
+ # Occurs whenever a Lockbox Address is updated.
768
+ LOCKBOX_ADDRESS_UPDATED =
769
+ T.let(
770
+ :"lockbox_address.updated",
771
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
772
+ )
773
+
753
774
  # Occurs whenever an OAuth Connection is created.
754
775
  OAUTH_CONNECTION_CREATED =
755
776
  T.let(
@@ -848,6 +869,13 @@ module Increase
848
869
  Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
849
870
  )
850
871
 
872
+ # Occurs whenever a Plaid Processor Token is created.
873
+ PLAID_PROCESSOR_TOKEN_CREATED =
874
+ T.let(
875
+ :"plaid_processor_token.created",
876
+ Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
877
+ )
878
+
851
879
  # Occurs whenever a Checkbook is created.
852
880
  CHECKBOOK_CREATED =
853
881
  T.let(
@@ -47,12 +47,13 @@ module Increase
47
47
  sig { returns(Increase::File::Type::TaggedSymbol) }
48
48
  attr_accessor :type
49
49
 
50
- # Files are objects that represent a file hosted on Increase's servers. The file
51
- # may have been uploaded by you (for example, when uploading a check image) or it
52
- # may have been created by Increase (for example, an autogenerated statement PDF).
53
- # If you need to download a File, use the `/files/{file_id}/contents` endpoint. If
54
- # you need to share a File with someone who doesn't have access to your API key,
55
- # create a File Link.
50
+ # Files are objects that represent a file hosted on Increase's servers. Each File
51
+ # has a `purpose` that determines how Increase will use it. You upload a File so
52
+ # it can be attached to another object in the API (for example, when uploading a
53
+ # check image), or Increase creates one for you to download (for example, an
54
+ # autogenerated statement PDF). If you need to download a File, use the
55
+ # `/files/{file_id}/contents` endpoint. If you need to share a File with someone
56
+ # who doesn't have access to your API key, create a File Link.
56
57
  sig do
57
58
  params(
58
59
  id: String,
@@ -830,7 +830,7 @@ module Increase
830
830
  attr_accessor :originating_depository_financial_institution_branch_country
831
831
 
832
832
  # An identifier for the originating bank. One of an International Bank Account
833
- # Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
833
+ # Number (IBAN) bank identifier, Swift Bank Identification Code (BIC), or a
834
834
  # domestic identifier like a US Routing Number.
835
835
  sig { returns(String) }
836
836
  attr_accessor :originating_depository_financial_institution_id
@@ -924,7 +924,7 @@ module Increase
924
924
  attr_accessor :receiving_depository_financial_institution_country
925
925
 
926
926
  # An identifier for the receiving bank. One of an International Bank Account
927
- # Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
927
+ # Number (IBAN) bank identifier, Swift Bank Identification Code (BIC), or a
928
928
  # domestic identifier like a US Routing Number.
929
929
  sig { returns(String) }
930
930
  attr_accessor :receiving_depository_financial_institution_id
@@ -1015,7 +1015,7 @@ module Increase
1015
1015
  # country code of the originating branch country.
1016
1016
  originating_depository_financial_institution_branch_country:,
1017
1017
  # An identifier for the originating bank. One of an International Bank Account
1018
- # Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
1018
+ # Number (IBAN) bank identifier, Swift Bank Identification Code (BIC), or a
1019
1019
  # domestic identifier like a US Routing Number.
1020
1020
  originating_depository_financial_institution_id:,
1021
1021
  # An instruction of how to interpret the
@@ -1065,7 +1065,7 @@ module Increase
1065
1065
  # country code of the receiving bank country.
1066
1066
  receiving_depository_financial_institution_country:,
1067
1067
  # An identifier for the receiving bank. One of an International Bank Account
1068
- # Number (IBAN) bank identifier, SWIFT Bank Identification Code (BIC), or a
1068
+ # Number (IBAN) bank identifier, Swift Bank Identification Code (BIC), or a
1069
1069
  # domestic identifier like a US Routing Number.
1070
1070
  receiving_depository_financial_institution_id:,
1071
1071
  # An instruction of how to interpret the
@@ -1400,7 +1400,7 @@ module Increase
1400
1400
  Increase::InboundACHTransfer::InternationalAddenda::OriginatingDepositoryFinancialInstitutionIDQualifier::TaggedSymbol
1401
1401
  )
1402
1402
 
1403
- # The SWIFT Bank Identifier Code (BIC) of the bank.
1403
+ # The Swift Bank Identifier Code (BIC) of the bank.
1404
1404
  BIC_CODE =
1405
1405
  T.let(
1406
1406
  :bic_code,
@@ -1446,7 +1446,7 @@ module Increase
1446
1446
  Increase::InboundACHTransfer::InternationalAddenda::ReceivingDepositoryFinancialInstitutionIDQualifier::TaggedSymbol
1447
1447
  )
1448
1448
 
1449
- # The SWIFT Bank Identifier Code (BIC) of the bank.
1449
+ # The Swift Bank Identifier Code (BIC) of the bank.
1450
1450
  BIC_CODE =
1451
1451
  T.let(
1452
1452
  :bic_code,
@@ -255,7 +255,8 @@ module Increase
255
255
  sig { returns(Time) }
256
256
  attr_accessor :adjusted_at
257
257
 
258
- # The amount of the adjustment.
258
+ # The amount of the adjustment in USD cents. A positive amount is a credit to your
259
+ # account and a negative amount is a debit.
259
260
  sig { returns(Integer) }
260
261
  attr_accessor :amount
261
262
 
@@ -282,7 +283,8 @@ module Increase
282
283
  def self.new(
283
284
  # The time at which the return adjustment was received.
284
285
  adjusted_at:,
285
- # The amount of the adjustment.
286
+ # The amount of the adjustment in USD cents. A positive amount is a credit to your
287
+ # account and a negative amount is a debit.
286
288
  amount:,
287
289
  # The reason for the adjustment.
288
290
  reason:,
@@ -73,6 +73,10 @@ module Increase
73
73
  end
74
74
  attr_writer :decline
75
75
 
76
+ # A free-form reference string set by the sender, to help identify the transfer.
77
+ sig { returns(T.nilable(String)) }
78
+ attr_accessor :end_to_end_identification
79
+
76
80
  # The lifecycle status of the transfer.
77
81
  sig { returns(Increase::InboundFednowTransfer::Status::TaggedSymbol) }
78
82
  attr_accessor :status
@@ -82,6 +86,10 @@ module Increase
82
86
  sig { returns(T.nilable(String)) }
83
87
  attr_accessor :transaction_id
84
88
 
89
+ # The FedNow network identification of the transfer.
90
+ sig { returns(T.nilable(String)) }
91
+ attr_accessor :transaction_identification
92
+
85
93
  # A constant representing the object's type. For this resource it will always be
86
94
  # `inbound_fednow_transfer`.
87
95
  sig { returns(Increase::InboundFednowTransfer::Type::TaggedSymbol) }
@@ -114,8 +122,10 @@ module Increase
114
122
  debtor_name: String,
115
123
  debtor_routing_number: String,
116
124
  decline: T.nilable(Increase::InboundFednowTransfer::Decline::OrHash),
125
+ end_to_end_identification: T.nilable(String),
117
126
  status: Increase::InboundFednowTransfer::Status::OrSymbol,
118
127
  transaction_id: T.nilable(String),
128
+ transaction_identification: T.nilable(String),
119
129
  type: Increase::InboundFednowTransfer::Type::OrSymbol,
120
130
  unique_end_to_end_transaction_reference: T.nilable(String),
121
131
  unstructured_remittance_information: T.nilable(String)
@@ -148,11 +158,15 @@ module Increase
148
158
  debtor_routing_number:,
149
159
  # If your transfer is declined, this will contain details of the decline.
150
160
  decline:,
161
+ # A free-form reference string set by the sender, to help identify the transfer.
162
+ end_to_end_identification:,
151
163
  # The lifecycle status of the transfer.
152
164
  status:,
153
165
  # The identifier of the Transaction object created when the transfer was
154
166
  # confirmed.
155
167
  transaction_id:,
168
+ # The FedNow network identification of the transfer.
169
+ transaction_identification:,
156
170
  # A constant representing the object's type. For this resource it will always be
157
171
  # `inbound_fednow_transfer`.
158
172
  type:,
@@ -181,8 +195,10 @@ module Increase
181
195
  debtor_name: String,
182
196
  debtor_routing_number: String,
183
197
  decline: T.nilable(Increase::InboundFednowTransfer::Decline),
198
+ end_to_end_identification: T.nilable(String),
184
199
  status: Increase::InboundFednowTransfer::Status::TaggedSymbol,
185
200
  transaction_id: T.nilable(String),
201
+ transaction_identification: T.nilable(String),
186
202
  type: Increase::InboundFednowTransfer::Type::TaggedSymbol,
187
203
  unique_end_to_end_transaction_reference: T.nilable(String),
188
204
  unstructured_remittance_information: T.nilable(String)
@@ -17,9 +17,9 @@ module Increase
17
17
  attr_accessor :account_id
18
18
 
19
19
  # The Pending Transaction amount in the minor unit of its currency. For dollars,
20
- # for example, this is cents. This amount does not change after the Pending
21
- # Transaction is created. If a card authorization settles for a different amount,
22
- # the settled amount is available on the resulting Transaction and on the Card
20
+ # for example, this is cents. For a card authorization this is the amount still
21
+ # held: it decreases when the merchant reverses part of the authorization. The
22
+ # amount that settled is available on the resulting Transaction and on the Card
23
23
  # Payment's `state.settled_amount`.
24
24
  sig { returns(Integer) }
25
25
  attr_accessor :amount
@@ -112,9 +112,9 @@ module Increase
112
112
  # The identifier for the account this Pending Transaction belongs to.
113
113
  account_id:,
114
114
  # The Pending Transaction amount in the minor unit of its currency. For dollars,
115
- # for example, this is cents. This amount does not change after the Pending
116
- # Transaction is created. If a card authorization settles for a different amount,
117
- # the settled amount is available on the resulting Transaction and on the Card
115
+ # for example, this is cents. For a card authorization this is the amount still
116
+ # held: it decreases when the merchant reverses part of the authorization. The
117
+ # amount that settled is available on the resulting Transaction and on the Card
118
118
  # Payment's `state.settled_amount`.
119
119
  amount:,
120
120
  # The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date on which the Pending
@@ -1491,6 +1491,14 @@ module Increase
1491
1491
  sig { returns(T.nilable(Integer)) }
1492
1492
  attr_accessor :network_risk_score
1493
1493
 
1494
+ # The ID of the Card Payment containing the original authorization or card
1495
+ # validation this transaction references. For a merchant-initiated transaction,
1496
+ # this is the Card Payment from when the card was first stored, which is typically
1497
+ # where the CVV2 was verified. The reference this is derived from is supplied by
1498
+ # the merchant or their acquirer, so it is not guaranteed to be present.
1499
+ sig { returns(T.nilable(String)) }
1500
+ attr_accessor :original_card_payment_id
1501
+
1494
1502
  # The identifier of the Pending Transaction associated with this Transaction.
1495
1503
  sig { returns(T.nilable(String)) }
1496
1504
  attr_accessor :pending_transaction_id
@@ -1598,6 +1606,7 @@ module Increase
1598
1606
  network_identifiers:
1599
1607
  Increase::PendingTransaction::Source::CardAuthorization::NetworkIdentifiers::OrHash,
1600
1608
  network_risk_score: T.nilable(Integer),
1609
+ original_card_payment_id: T.nilable(String),
1601
1610
  pending_transaction_id: T.nilable(String),
1602
1611
  physical_card_id: T.nilable(String),
1603
1612
  presentment_amount: Integer,
@@ -1671,6 +1680,12 @@ module Increase
1671
1680
  # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
1672
1681
  # score is from 0 to 999, where 999 is the riskiest.
1673
1682
  network_risk_score:,
1683
+ # The ID of the Card Payment containing the original authorization or card
1684
+ # validation this transaction references. For a merchant-initiated transaction,
1685
+ # this is the Card Payment from when the card was first stored, which is typically
1686
+ # where the CVV2 was verified. The reference this is derived from is supplied by
1687
+ # the merchant or their acquirer, so it is not guaranteed to be present.
1688
+ original_card_payment_id:,
1674
1689
  # The identifier of the Pending Transaction associated with this Transaction.
1675
1690
  pending_transaction_id:,
1676
1691
  # If the authorization was made in-person with a physical card, the Physical Card
@@ -1732,6 +1747,7 @@ module Increase
1732
1747
  network_identifiers:
1733
1748
  Increase::PendingTransaction::Source::CardAuthorization::NetworkIdentifiers,
1734
1749
  network_risk_score: T.nilable(Integer),
1750
+ original_card_payment_id: T.nilable(String),
1735
1751
  pending_transaction_id: T.nilable(String),
1736
1752
  physical_card_id: T.nilable(String),
1737
1753
  presentment_amount: Integer,
@@ -4988,7 +5004,7 @@ module Increase
4988
5004
  PENDING =
4989
5005
  T.let(:pending, Increase::PendingTransaction::Status::TaggedSymbol)
4990
5006
 
4991
- # The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is not updated if the associated Transaction settles for a different amount.
5007
+ # The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is the amount that was still held when it completed, which can differ from the amount of the associated Transaction.
4992
5008
  COMPLETE =
4993
5009
  T.let(:complete, Increase::PendingTransaction::Status::TaggedSymbol)
4994
5010
 
@@ -477,7 +477,7 @@ module Increase
477
477
  Increase::PendingTransactionListParams::Status::In::TaggedSymbol
478
478
  )
479
479
 
480
- # The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is not updated if the associated Transaction settles for a different amount.
480
+ # The Pending Transaction is confirmed. An associated Transaction exists for this object. The Pending Transaction will no longer count against your balance and can generally be hidden from UIs, etc. The Pending Transaction's `amount` is the amount that was still held when it completed, which can differ from the amount of the associated Transaction.
481
481
  COMPLETE =
482
482
  T.let(
483
483
  :complete,
@@ -15,7 +15,8 @@ module Increase
15
15
  sig { returns(String) }
16
16
  attr_accessor :card_id
17
17
 
18
- # Details about the cardholder, as it will appear on the physical card.
18
+ # Details about the cardholder, as it will appear on the physical card. The
19
+ # combined first name and last name cannot exceed 25 characters.
19
20
  sig { returns(Increase::PhysicalCardCreateParams::Cardholder) }
20
21
  attr_reader :cardholder
21
22
 
@@ -57,7 +58,8 @@ module Increase
57
58
  def self.new(
58
59
  # The underlying card representing this physical card.
59
60
  card_id:,
60
- # Details about the cardholder, as it will appear on the physical card.
61
+ # Details about the cardholder, as it will appear on the physical card. The
62
+ # combined first name and last name cannot exceed 25 characters.
61
63
  cardholder:,
62
64
  # The details used to ship this physical card.
63
65
  shipment:,
@@ -99,7 +101,8 @@ module Increase
99
101
  sig { returns(String) }
100
102
  attr_accessor :last_name
101
103
 
102
- # Details about the cardholder, as it will appear on the physical card.
104
+ # Details about the cardholder, as it will appear on the physical card. The
105
+ # combined first name and last name cannot exceed 25 characters.
103
106
  sig do
104
107
  params(first_name: String, last_name: String).returns(
105
108
  T.attached_class
@@ -1870,6 +1870,14 @@ module Increase
1870
1870
  sig { returns(T.nilable(Integer)) }
1871
1871
  attr_accessor :network_risk_score
1872
1872
 
1873
+ # The identifier of the Card Payment containing the original authorization or card
1874
+ # validation this transaction references. For a merchant-initiated transaction,
1875
+ # this is the Card Payment from when the card was first stored, which is typically
1876
+ # where the CVV2 was verified. The reference this is derived from is supplied by
1877
+ # the merchant or their acquirer, so it is not guaranteed to be present.
1878
+ sig { returns(T.nilable(String)) }
1879
+ attr_accessor :original_card_payment_id
1880
+
1873
1881
  # Whether or not the authorization supports partial approvals.
1874
1882
  sig do
1875
1883
  returns(
@@ -1989,6 +1997,7 @@ module Increase
1989
1997
  network_identifiers:
1990
1998
  Increase::RealTimeDecision::CardAuthorization::NetworkIdentifiers::OrHash,
1991
1999
  network_risk_score: T.nilable(Integer),
2000
+ original_card_payment_id: T.nilable(String),
1992
2001
  partial_approval_capability:
1993
2002
  Increase::RealTimeDecision::CardAuthorization::PartialApprovalCapability::OrSymbol,
1994
2003
  physical_card_id: T.nilable(String),
@@ -2057,6 +2066,12 @@ module Increase
2057
2066
  # Authorization risk score, from 0 to 99, where 99 is the riskiest. For Pulse the
2058
2067
  # score is from 0 to 999, where 999 is the riskiest.
2059
2068
  network_risk_score:,
2069
+ # The identifier of the Card Payment containing the original authorization or card
2070
+ # validation this transaction references. For a merchant-initiated transaction,
2071
+ # this is the Card Payment from when the card was first stored, which is typically
2072
+ # where the CVV2 was verified. The reference this is derived from is supplied by
2073
+ # the merchant or their acquirer, so it is not guaranteed to be present.
2074
+ original_card_payment_id:,
2060
2075
  # Whether or not the authorization supports partial approvals.
2061
2076
  partial_approval_capability:,
2062
2077
  # If the authorization was made in-person with a physical card, the Physical Card
@@ -2129,6 +2144,7 @@ module Increase
2129
2144
  network_identifiers:
2130
2145
  Increase::RealTimeDecision::CardAuthorization::NetworkIdentifiers,
2131
2146
  network_risk_score: T.nilable(Integer),
2147
+ original_card_payment_id: T.nilable(String),
2132
2148
  partial_approval_capability:
2133
2149
  Increase::RealTimeDecision::CardAuthorization::PartialApprovalCapability::TaggedSymbol,
2134
2150
  physical_card_id: T.nilable(String),