increase 1.89.0 → 1.91.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +26 -0
- data/README.md +1 -1
- data/lib/increase/models/event_subscription_create_params.rb +23 -1
- data/lib/increase/models/transaction.rb +1296 -173
- data/lib/increase/models/transaction_list_params.rb +3 -0
- data/lib/increase/resources/event_subscriptions.rb +3 -1
- data/lib/increase/version.rb +1 -1
- data/rbi/increase/models/event_subscription_create_params.rbi +54 -0
- data/rbi/increase/models/transaction.rbi +2282 -123
- data/rbi/increase/models/transaction_list_params.rbi +7 -0
- data/rbi/increase/resources/event_subscriptions.rbi +3 -0
- data/sig/increase/models/event_subscription_create_params.rbs +24 -1
- data/sig/increase/models/transaction.rbs +768 -0
- data/sig/increase/models/transaction_list_params.rbs +4 -0
- data/sig/increase/resources/event_subscriptions.rbs +1 -0
- metadata +2 -2
@@ -236,6 +236,13 @@ module Increase
|
|
236
236
|
Increase::TransactionListParams::Category::In::TaggedSymbol
|
237
237
|
)
|
238
238
|
|
239
|
+
# Card Financial: details will be under the `card_financial` object.
|
240
|
+
CARD_FINANCIAL =
|
241
|
+
T.let(
|
242
|
+
:card_financial,
|
243
|
+
Increase::TransactionListParams::Category::In::TaggedSymbol
|
244
|
+
)
|
245
|
+
|
239
246
|
# Card Revenue Payment: details will be under the `card_revenue_payment` object.
|
240
247
|
CARD_REVENUE_PAYMENT =
|
241
248
|
T.let(
|
@@ -11,6 +11,7 @@ module Increase
|
|
11
11
|
selected_event_category:
|
12
12
|
Increase::EventSubscriptionCreateParams::SelectedEventCategory::OrSymbol,
|
13
13
|
shared_secret: String,
|
14
|
+
status: Increase::EventSubscriptionCreateParams::Status::OrSymbol,
|
14
15
|
request_options: Increase::RequestOptions::OrHash
|
15
16
|
).returns(Increase::EventSubscription)
|
16
17
|
end
|
@@ -26,6 +27,8 @@ module Increase
|
|
26
27
|
# The key that will be used to sign webhooks. If no value is passed, a random
|
27
28
|
# string will be used as default.
|
28
29
|
shared_secret: nil,
|
30
|
+
# The status of the event subscription. Defaults to `active` if not specified.
|
31
|
+
status: nil,
|
29
32
|
request_options: {}
|
30
33
|
)
|
31
34
|
end
|
@@ -5,7 +5,8 @@ module Increase
|
|
5
5
|
url: String,
|
6
6
|
oauth_connection_id: String,
|
7
7
|
selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category,
|
8
|
-
shared_secret: String
|
8
|
+
shared_secret: String,
|
9
|
+
status: Increase::Models::EventSubscriptionCreateParams::status
|
9
10
|
}
|
10
11
|
& Increase::Internal::Type::request_parameters
|
11
12
|
|
@@ -29,11 +30,18 @@ module Increase
|
|
29
30
|
|
30
31
|
def shared_secret=: (String) -> String
|
31
32
|
|
33
|
+
attr_reader status: Increase::Models::EventSubscriptionCreateParams::status?
|
34
|
+
|
35
|
+
def status=: (
|
36
|
+
Increase::Models::EventSubscriptionCreateParams::status
|
37
|
+
) -> Increase::Models::EventSubscriptionCreateParams::status
|
38
|
+
|
32
39
|
def initialize: (
|
33
40
|
url: String,
|
34
41
|
?oauth_connection_id: String,
|
35
42
|
?selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category,
|
36
43
|
?shared_secret: String,
|
44
|
+
?status: Increase::Models::EventSubscriptionCreateParams::status,
|
37
45
|
?request_options: Increase::request_opts
|
38
46
|
) -> void
|
39
47
|
|
@@ -42,6 +50,7 @@ module Increase
|
|
42
50
|
oauth_connection_id: String,
|
43
51
|
selected_event_category: Increase::Models::EventSubscriptionCreateParams::selected_event_category,
|
44
52
|
shared_secret: String,
|
53
|
+
status: Increase::Models::EventSubscriptionCreateParams::status,
|
45
54
|
request_options: Increase::RequestOptions
|
46
55
|
}
|
47
56
|
|
@@ -468,6 +477,20 @@ module Increase
|
|
468
477
|
|
469
478
|
def self?.values: -> ::Array[Increase::Models::EventSubscriptionCreateParams::selected_event_category]
|
470
479
|
end
|
480
|
+
|
481
|
+
type status = :active | :disabled
|
482
|
+
|
483
|
+
module Status
|
484
|
+
extend Increase::Internal::Type::Enum
|
485
|
+
|
486
|
+
# The subscription is active and Events will be delivered normally.
|
487
|
+
ACTIVE: :active
|
488
|
+
|
489
|
+
# The subscription is temporarily disabled and Events will not be delivered.
|
490
|
+
DISABLED: :disabled
|
491
|
+
|
492
|
+
def self?.values: -> ::Array[Increase::Models::EventSubscriptionCreateParams::status]
|
493
|
+
end
|
471
494
|
end
|
472
495
|
end
|
473
496
|
end
|