increase 1.368.0 → 1.370.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/increase/errors.rb +6 -0
- data/lib/increase/models/checkbook.rb +3 -0
- data/lib/increase/models/checkbook_create_params.rb +24 -1
- data/lib/increase/models/digital_wallet_token.rb +63 -1
- data/lib/increase/models/digital_wallet_token_request.rb +327 -1
- data/lib/increase/models/event.rb +15 -0
- data/lib/increase/models/event_list_params.rb +15 -0
- data/lib/increase/models/event_subscription.rb +15 -0
- data/lib/increase/models/event_subscription_create_params.rb +15 -0
- data/lib/increase/models/inbound_wire_transfer.rb +12 -1
- data/lib/increase/models/inbound_wire_transfer_reverse_params.rb +17 -1
- data/lib/increase/models/real_time_decision.rb +330 -1
- data/lib/increase/models/real_time_payments_transfer.rb +75 -1
- data/lib/increase/models/real_time_payments_transfer_create_params.rb +82 -1
- data/lib/increase/models/unwrap_webhook_event.rb +15 -0
- data/lib/increase/resources/checkbooks.rb +4 -1
- data/lib/increase/resources/inbound_wire_transfers.rb +6 -1
- data/lib/increase/resources/real_time_payments_transfers.rb +5 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/errors.rbi +4 -0
- data/rbi/increase/models/checkbook.rbi +4 -0
- data/rbi/increase/models/checkbook_create_params.rbi +39 -0
- data/rbi/increase/models/digital_wallet_token.rbi +114 -3
- data/rbi/increase/models/digital_wallet_token_request.rbi +589 -3
- data/rbi/increase/models/event.rbi +26 -0
- data/rbi/increase/models/event_list_params.rbi +35 -0
- data/rbi/increase/models/event_subscription.rbi +35 -0
- data/rbi/increase/models/event_subscription_create_params.rbi +35 -0
- data/rbi/increase/models/inbound_wire_transfer.rbi +15 -0
- data/rbi/increase/models/inbound_wire_transfer_reverse_params.rbi +22 -0
- data/rbi/increase/models/real_time_decision.rbi +623 -3
- data/rbi/increase/models/real_time_payments_transfer.rbi +108 -0
- data/rbi/increase/models/real_time_payments_transfer_create_params.rbi +123 -0
- data/rbi/increase/models/unwrap_webhook_event.rbi +35 -0
- data/rbi/increase/resources/checkbooks.rbi +3 -0
- data/rbi/increase/resources/inbound_wire_transfers.rbi +5 -0
- data/rbi/increase/resources/real_time_payments_transfers.rbi +5 -0
- data/sig/increase/errors.rbs +4 -0
- data/sig/increase/models/checkbook.rbs +4 -1
- data/sig/increase/models/checkbook_create_params.rbs +20 -1
- data/sig/increase/models/digital_wallet_token.rbs +40 -3
- data/sig/increase/models/digital_wallet_token_request.rbs +245 -3
- data/sig/increase/models/event.rbs +20 -0
- data/sig/increase/models/event_list_params.rbs +20 -0
- data/sig/increase/models/event_subscription.rbs +20 -0
- data/sig/increase/models/event_subscription_create_params.rbs +20 -0
- data/sig/increase/models/inbound_wire_transfer.rbs +10 -1
- data/sig/increase/models/inbound_wire_transfer_reverse_params.rbs +13 -2
- data/sig/increase/models/real_time_decision.rbs +245 -3
- data/sig/increase/models/real_time_payments_transfer.rbs +52 -0
- data/sig/increase/models/real_time_payments_transfer_create_params.rbs +60 -0
- data/sig/increase/models/unwrap_webhook_event.rbs +20 -0
- data/sig/increase/resources/checkbooks.rbs +1 -0
- data/sig/increase/resources/inbound_wire_transfers.rbs +1 -0
- data/sig/increase/resources/real_time_payments_transfers.rbs +1 -0
- metadata +2 -2
|
@@ -600,6 +600,18 @@ module Increase
|
|
|
600
600
|
Increase::Event::Category::TaggedSymbol
|
|
601
601
|
)
|
|
602
602
|
|
|
603
|
+
# Occurs whenever a Loan Draw is created.
|
|
604
|
+
LOAN_DRAW_CREATED =
|
|
605
|
+
T.let(:"loan_draw.created", Increase::Event::Category::TaggedSymbol)
|
|
606
|
+
|
|
607
|
+
# Occurs whenever a Loan Hold is created.
|
|
608
|
+
LOAN_HOLD_CREATED =
|
|
609
|
+
T.let(:"loan_hold.created", Increase::Event::Category::TaggedSymbol)
|
|
610
|
+
|
|
611
|
+
# Occurs whenever a Loan Hold is updated.
|
|
612
|
+
LOAN_HOLD_UPDATED =
|
|
613
|
+
T.let(:"loan_hold.updated", Increase::Event::Category::TaggedSymbol)
|
|
614
|
+
|
|
603
615
|
# Occurs whenever a Loan Obligation is created.
|
|
604
616
|
LOAN_OBLIGATION_CREATED =
|
|
605
617
|
T.let(
|
|
@@ -615,6 +627,13 @@ module Increase
|
|
|
615
627
|
LOAN_OFFER_UPDATED =
|
|
616
628
|
T.let(:"loan_offer.updated", Increase::Event::Category::TaggedSymbol)
|
|
617
629
|
|
|
630
|
+
# Occurs whenever a Loan Payment is created.
|
|
631
|
+
LOAN_PAYMENT_CREATED =
|
|
632
|
+
T.let(
|
|
633
|
+
:"loan_payment.created",
|
|
634
|
+
Increase::Event::Category::TaggedSymbol
|
|
635
|
+
)
|
|
636
|
+
|
|
618
637
|
# Occurs whenever a Loan Purchase Offer is created.
|
|
619
638
|
LOAN_PURCHASE_OFFER_CREATED =
|
|
620
639
|
T.let(
|
|
@@ -629,6 +648,13 @@ module Increase
|
|
|
629
648
|
Increase::Event::Category::TaggedSymbol
|
|
630
649
|
)
|
|
631
650
|
|
|
651
|
+
# Occurs whenever a Loan Statement is created.
|
|
652
|
+
LOAN_STATEMENT_CREATED =
|
|
653
|
+
T.let(
|
|
654
|
+
:"loan_statement.created",
|
|
655
|
+
Increase::Event::Category::TaggedSymbol
|
|
656
|
+
)
|
|
657
|
+
|
|
632
658
|
# Occurs whenever a Lockbox is created.
|
|
633
659
|
LOCKBOX_CREATED =
|
|
634
660
|
T.let(:"lockbox.created", Increase::Event::Category::TaggedSymbol)
|
|
@@ -703,6 +703,27 @@ module Increase
|
|
|
703
703
|
Increase::EventListParams::Category::In::TaggedSymbol
|
|
704
704
|
)
|
|
705
705
|
|
|
706
|
+
# Occurs whenever a Loan Draw is created.
|
|
707
|
+
LOAN_DRAW_CREATED =
|
|
708
|
+
T.let(
|
|
709
|
+
:"loan_draw.created",
|
|
710
|
+
Increase::EventListParams::Category::In::TaggedSymbol
|
|
711
|
+
)
|
|
712
|
+
|
|
713
|
+
# Occurs whenever a Loan Hold is created.
|
|
714
|
+
LOAN_HOLD_CREATED =
|
|
715
|
+
T.let(
|
|
716
|
+
:"loan_hold.created",
|
|
717
|
+
Increase::EventListParams::Category::In::TaggedSymbol
|
|
718
|
+
)
|
|
719
|
+
|
|
720
|
+
# Occurs whenever a Loan Hold is updated.
|
|
721
|
+
LOAN_HOLD_UPDATED =
|
|
722
|
+
T.let(
|
|
723
|
+
:"loan_hold.updated",
|
|
724
|
+
Increase::EventListParams::Category::In::TaggedSymbol
|
|
725
|
+
)
|
|
726
|
+
|
|
706
727
|
# Occurs whenever a Loan Obligation is created.
|
|
707
728
|
LOAN_OBLIGATION_CREATED =
|
|
708
729
|
T.let(
|
|
@@ -724,6 +745,13 @@ module Increase
|
|
|
724
745
|
Increase::EventListParams::Category::In::TaggedSymbol
|
|
725
746
|
)
|
|
726
747
|
|
|
748
|
+
# Occurs whenever a Loan Payment is created.
|
|
749
|
+
LOAN_PAYMENT_CREATED =
|
|
750
|
+
T.let(
|
|
751
|
+
:"loan_payment.created",
|
|
752
|
+
Increase::EventListParams::Category::In::TaggedSymbol
|
|
753
|
+
)
|
|
754
|
+
|
|
727
755
|
# Occurs whenever a Loan Purchase Offer is created.
|
|
728
756
|
LOAN_PURCHASE_OFFER_CREATED =
|
|
729
757
|
T.let(
|
|
@@ -738,6 +766,13 @@ module Increase
|
|
|
738
766
|
Increase::EventListParams::Category::In::TaggedSymbol
|
|
739
767
|
)
|
|
740
768
|
|
|
769
|
+
# Occurs whenever a Loan Statement is created.
|
|
770
|
+
LOAN_STATEMENT_CREATED =
|
|
771
|
+
T.let(
|
|
772
|
+
:"loan_statement.created",
|
|
773
|
+
Increase::EventListParams::Category::In::TaggedSymbol
|
|
774
|
+
)
|
|
775
|
+
|
|
741
776
|
# Occurs whenever a Lockbox is created.
|
|
742
777
|
LOCKBOX_CREATED =
|
|
743
778
|
T.let(
|
|
@@ -724,6 +724,27 @@ module Increase
|
|
|
724
724
|
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
725
725
|
)
|
|
726
726
|
|
|
727
|
+
# Occurs whenever a Loan Draw is created.
|
|
728
|
+
LOAN_DRAW_CREATED =
|
|
729
|
+
T.let(
|
|
730
|
+
:"loan_draw.created",
|
|
731
|
+
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
732
|
+
)
|
|
733
|
+
|
|
734
|
+
# Occurs whenever a Loan Hold is created.
|
|
735
|
+
LOAN_HOLD_CREATED =
|
|
736
|
+
T.let(
|
|
737
|
+
:"loan_hold.created",
|
|
738
|
+
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
739
|
+
)
|
|
740
|
+
|
|
741
|
+
# Occurs whenever a Loan Hold is updated.
|
|
742
|
+
LOAN_HOLD_UPDATED =
|
|
743
|
+
T.let(
|
|
744
|
+
:"loan_hold.updated",
|
|
745
|
+
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
746
|
+
)
|
|
747
|
+
|
|
727
748
|
# Occurs whenever a Loan Obligation is created.
|
|
728
749
|
LOAN_OBLIGATION_CREATED =
|
|
729
750
|
T.let(
|
|
@@ -745,6 +766,13 @@ module Increase
|
|
|
745
766
|
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
746
767
|
)
|
|
747
768
|
|
|
769
|
+
# Occurs whenever a Loan Payment is created.
|
|
770
|
+
LOAN_PAYMENT_CREATED =
|
|
771
|
+
T.let(
|
|
772
|
+
:"loan_payment.created",
|
|
773
|
+
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
774
|
+
)
|
|
775
|
+
|
|
748
776
|
# Occurs whenever a Loan Purchase Offer is created.
|
|
749
777
|
LOAN_PURCHASE_OFFER_CREATED =
|
|
750
778
|
T.let(
|
|
@@ -759,6 +787,13 @@ module Increase
|
|
|
759
787
|
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
760
788
|
)
|
|
761
789
|
|
|
790
|
+
# Occurs whenever a Loan Statement is created.
|
|
791
|
+
LOAN_STATEMENT_CREATED =
|
|
792
|
+
T.let(
|
|
793
|
+
:"loan_statement.created",
|
|
794
|
+
Increase::EventSubscription::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
795
|
+
)
|
|
796
|
+
|
|
762
797
|
# Occurs whenever a Lockbox is created.
|
|
763
798
|
LOCKBOX_CREATED =
|
|
764
799
|
T.let(
|
|
@@ -722,6 +722,27 @@ module Increase
|
|
|
722
722
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
723
723
|
)
|
|
724
724
|
|
|
725
|
+
# Occurs whenever a Loan Draw is created.
|
|
726
|
+
LOAN_DRAW_CREATED =
|
|
727
|
+
T.let(
|
|
728
|
+
:"loan_draw.created",
|
|
729
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
730
|
+
)
|
|
731
|
+
|
|
732
|
+
# Occurs whenever a Loan Hold is created.
|
|
733
|
+
LOAN_HOLD_CREATED =
|
|
734
|
+
T.let(
|
|
735
|
+
:"loan_hold.created",
|
|
736
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
737
|
+
)
|
|
738
|
+
|
|
739
|
+
# Occurs whenever a Loan Hold is updated.
|
|
740
|
+
LOAN_HOLD_UPDATED =
|
|
741
|
+
T.let(
|
|
742
|
+
:"loan_hold.updated",
|
|
743
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
744
|
+
)
|
|
745
|
+
|
|
725
746
|
# Occurs whenever a Loan Obligation is created.
|
|
726
747
|
LOAN_OBLIGATION_CREATED =
|
|
727
748
|
T.let(
|
|
@@ -743,6 +764,13 @@ module Increase
|
|
|
743
764
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
744
765
|
)
|
|
745
766
|
|
|
767
|
+
# Occurs whenever a Loan Payment is created.
|
|
768
|
+
LOAN_PAYMENT_CREATED =
|
|
769
|
+
T.let(
|
|
770
|
+
:"loan_payment.created",
|
|
771
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
772
|
+
)
|
|
773
|
+
|
|
746
774
|
# Occurs whenever a Loan Purchase Offer is created.
|
|
747
775
|
LOAN_PURCHASE_OFFER_CREATED =
|
|
748
776
|
T.let(
|
|
@@ -757,6 +785,13 @@ module Increase
|
|
|
757
785
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
758
786
|
)
|
|
759
787
|
|
|
788
|
+
# Occurs whenever a Loan Statement is created.
|
|
789
|
+
LOAN_STATEMENT_CREATED =
|
|
790
|
+
T.let(
|
|
791
|
+
:"loan_statement.created",
|
|
792
|
+
Increase::EventSubscriptionCreateParams::SelectedEventCategory::EventCategory::TaggedSymbol
|
|
793
|
+
)
|
|
794
|
+
|
|
760
795
|
# Occurs whenever a Lockbox is created.
|
|
761
796
|
LOCKBOX_CREATED =
|
|
762
797
|
T.let(
|
|
@@ -336,6 +336,10 @@ module Increase
|
|
|
336
336
|
)
|
|
337
337
|
end
|
|
338
338
|
|
|
339
|
+
# The amount that was reversed in USD cents.
|
|
340
|
+
sig { returns(Integer) }
|
|
341
|
+
attr_accessor :amount
|
|
342
|
+
|
|
339
343
|
# The reason for the reversal.
|
|
340
344
|
sig do
|
|
341
345
|
returns(Increase::InboundWireTransfer::Reversal::Reason::TaggedSymbol)
|
|
@@ -350,11 +354,14 @@ module Increase
|
|
|
350
354
|
# If the transfer is reversed, this will contain details of the reversal.
|
|
351
355
|
sig do
|
|
352
356
|
params(
|
|
357
|
+
amount: Integer,
|
|
353
358
|
reason: Increase::InboundWireTransfer::Reversal::Reason::OrSymbol,
|
|
354
359
|
reversed_at: Time
|
|
355
360
|
).returns(T.attached_class)
|
|
356
361
|
end
|
|
357
362
|
def self.new(
|
|
363
|
+
# The amount that was reversed in USD cents.
|
|
364
|
+
amount:,
|
|
358
365
|
# The reason for the reversal.
|
|
359
366
|
reason:,
|
|
360
367
|
# The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
|
|
@@ -366,6 +373,7 @@ module Increase
|
|
|
366
373
|
sig do
|
|
367
374
|
override.returns(
|
|
368
375
|
{
|
|
376
|
+
amount: Integer,
|
|
369
377
|
reason:
|
|
370
378
|
Increase::InboundWireTransfer::Reversal::Reason::TaggedSymbol,
|
|
371
379
|
reversed_at: Time
|
|
@@ -406,6 +414,13 @@ module Increase
|
|
|
406
414
|
Increase::InboundWireTransfer::Reversal::Reason::TaggedSymbol
|
|
407
415
|
)
|
|
408
416
|
|
|
417
|
+
# The inbound wire transfer was fraudulent.
|
|
418
|
+
FRAUD =
|
|
419
|
+
T.let(
|
|
420
|
+
:fraud,
|
|
421
|
+
Increase::InboundWireTransfer::Reversal::Reason::TaggedSymbol
|
|
422
|
+
)
|
|
423
|
+
|
|
409
424
|
sig do
|
|
410
425
|
override.returns(
|
|
411
426
|
T::Array[
|
|
@@ -24,10 +24,20 @@ module Increase
|
|
|
24
24
|
end
|
|
25
25
|
attr_accessor :reason
|
|
26
26
|
|
|
27
|
+
# The amount to return, in USD cents. Defaults to the full amount of the Inbound
|
|
28
|
+
# Wire Transfer. A transfer can only be reversed once, so any amount you don't
|
|
29
|
+
# return now stays with the recipient.
|
|
30
|
+
sig { returns(T.nilable(Integer)) }
|
|
31
|
+
attr_reader :amount
|
|
32
|
+
|
|
33
|
+
sig { params(amount: Integer).void }
|
|
34
|
+
attr_writer :amount
|
|
35
|
+
|
|
27
36
|
sig do
|
|
28
37
|
params(
|
|
29
38
|
inbound_wire_transfer_id: String,
|
|
30
39
|
reason: Increase::InboundWireTransferReverseParams::Reason::OrSymbol,
|
|
40
|
+
amount: Integer,
|
|
31
41
|
request_options: Increase::RequestOptions::OrHash
|
|
32
42
|
).returns(T.attached_class)
|
|
33
43
|
end
|
|
@@ -36,6 +46,10 @@ module Increase
|
|
|
36
46
|
inbound_wire_transfer_id:,
|
|
37
47
|
# Reason for the reversal.
|
|
38
48
|
reason:,
|
|
49
|
+
# The amount to return, in USD cents. Defaults to the full amount of the Inbound
|
|
50
|
+
# Wire Transfer. A transfer can only be reversed once, so any amount you don't
|
|
51
|
+
# return now stays with the recipient.
|
|
52
|
+
amount: nil,
|
|
39
53
|
request_options: {}
|
|
40
54
|
)
|
|
41
55
|
end
|
|
@@ -46,6 +60,7 @@ module Increase
|
|
|
46
60
|
inbound_wire_transfer_id: String,
|
|
47
61
|
reason:
|
|
48
62
|
Increase::InboundWireTransferReverseParams::Reason::OrSymbol,
|
|
63
|
+
amount: Integer,
|
|
49
64
|
request_options: Increase::RequestOptions
|
|
50
65
|
}
|
|
51
66
|
)
|
|
@@ -84,6 +99,13 @@ module Increase
|
|
|
84
99
|
Increase::InboundWireTransferReverseParams::Reason::TaggedSymbol
|
|
85
100
|
)
|
|
86
101
|
|
|
102
|
+
# The inbound wire transfer was fraudulent.
|
|
103
|
+
FRAUD =
|
|
104
|
+
T.let(
|
|
105
|
+
:fraud,
|
|
106
|
+
Increase::InboundWireTransferReverseParams::Reason::TaggedSymbol
|
|
107
|
+
)
|
|
108
|
+
|
|
87
109
|
sig do
|
|
88
110
|
override.returns(
|
|
89
111
|
T::Array[
|