stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.3
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 +22 -0
- data/README.md +29 -1
- data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
- data/lib/stigg/internal/type/base_model.rb +2 -2
- data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +31 -26
- data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
- data/lib/stigg/models/v1/coupon_list_params.rb +14 -14
- data/lib/stigg/models/v1/coupon_list_response.rb +262 -278
- data/lib/stigg/models/v1/customer_import_params.rb +75 -0
- data/lib/stigg/models/v1/customer_import_response.rb +35 -0
- data/lib/stigg/models/v1/customer_list_params.rb +14 -14
- data/lib/stigg/models/v1/customer_list_response.rb +160 -174
- data/lib/stigg/models/v1/{customer_create_params.rb → customer_provision_params.rb} +18 -16
- data/lib/stigg/models/v1/customer_response.rb +9 -2
- data/lib/stigg/models/v1/customer_update_params.rb +2 -0
- data/lib/stigg/models/v1/customers/payment_method_attach_params.rb +3 -1
- data/lib/stigg/models/v1/customers/{promotional_create_params.rb → promotional_entitlement_grant_params.rb} +46 -44
- data/lib/stigg/models/v1/customers/{promotional_create_response.rb → promotional_entitlement_grant_response.rb} +105 -32
- data/lib/stigg/models/v1/customers/{promotional_revoke_params.rb → promotional_entitlement_revoke_params.rb} +2 -2
- data/lib/stigg/models/v1/customers/{promotional_revoke_response.rb → promotional_entitlement_revoke_response.rb} +107 -33
- data/lib/stigg/models/v1/event_report_params.rb +91 -0
- data/lib/stigg/models/v1/event_report_response.rb +25 -0
- data/lib/stigg/models/v1/{subscription_retrieve_response.rb → subscription.rb} +67 -26
- data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
- data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
- data/lib/stigg/models/v1/subscription_import_params.rb +92 -0
- data/lib/stigg/models/v1/subscription_import_response.rb +32 -0
- data/lib/stigg/models/v1/subscription_list_params.rb +20 -24
- data/lib/stigg/models/v1/subscription_list_response.rb +255 -236
- data/lib/stigg/models/v1/subscription_migrate_params.rb +3 -3
- data/lib/stigg/models/v1/subscription_preview_params.rb +139 -46
- data/lib/stigg/models/v1/subscription_preview_response.rb +164 -49
- data/lib/stigg/models/v1/subscription_provision_params.rb +1693 -0
- data/lib/stigg/models/v1/subscription_provision_response.rb +1038 -0
- data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
- data/lib/stigg/models/v1/subscription_update_params.rb +1114 -0
- data/lib/stigg/models/v1/subscriptions/{future_update_cancel_pending_payment_response.rb → cancel_subscription.rb} +9 -5
- data/lib/stigg/models/v1/usage_history_params.rb +54 -0
- data/lib/stigg/models/v1/usage_history_response.rb +155 -0
- data/lib/stigg/models/v1/usage_report_params.rb +114 -0
- data/lib/stigg/models/v1/usage_report_response.rb +120 -0
- data/lib/stigg/models.rb +0 -4
- data/lib/stigg/resources/v1/coupons.rb +16 -14
- data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
- data/lib/stigg/resources/v1/customers/{promotional.rb → promotional_entitlements.rb} +17 -17
- data/lib/stigg/resources/v1/customers.rb +78 -56
- data/lib/stigg/resources/v1/events.rb +38 -0
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +10 -8
- data/lib/stigg/resources/v1/subscriptions.rb +206 -79
- data/lib/stigg/resources/v1/usage.rb +79 -0
- data/lib/stigg/resources/v1.rb +6 -42
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +25 -23
- data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
- data/rbi/stigg/models/v1/coupon.rbi +891 -0
- data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
- data/rbi/stigg/models/v1/coupon_list_params.rbi +21 -21
- data/rbi/stigg/models/v1/coupon_list_response.rbi +812 -869
- data/rbi/stigg/models/v1/customer_import_params.rbi +130 -0
- data/rbi/stigg/models/v1/customer_import_response.rbi +76 -0
- data/rbi/stigg/models/v1/customer_list_params.rbi +21 -21
- data/rbi/stigg/models/v1/customer_list_response.rbi +307 -347
- data/rbi/stigg/models/v1/{customer_create_params.rbi → customer_provision_params.rbi} +36 -35
- data/rbi/stigg/models/v1/customer_response.rbi +8 -1
- data/rbi/stigg/models/v1/customer_update_params.rbi +1 -0
- data/rbi/stigg/models/v1/customers/payment_method_attach_params.rbi +3 -0
- data/rbi/stigg/models/v1/customers/{promotional_create_params.rbi → promotional_entitlement_grant_params.rbi} +78 -77
- data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
- data/rbi/stigg/models/v1/customers/{promotional_revoke_params.rbi → promotional_entitlement_revoke_params.rbi} +2 -2
- data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbi +696 -0
- data/rbi/stigg/models/v1/event_report_params.rbi +168 -0
- data/rbi/stigg/models/v1/event_report_response.rbi +35 -0
- data/rbi/stigg/models/v1/{subscription_migrate_response.rbi → subscription.rbi} +130 -98
- data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
- data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
- data/rbi/stigg/models/v1/subscription_import_params.rbi +148 -0
- data/rbi/stigg/models/v1/subscription_import_response.rbi +69 -0
- data/rbi/stigg/models/v1/subscription_list_params.rbi +26 -28
- data/rbi/stigg/models/v1/subscription_list_response.rbi +460 -435
- data/rbi/stigg/models/v1/subscription_migrate_params.rbi +3 -3
- data/rbi/stigg/models/v1/subscription_preview_params.rbi +112 -14
- data/rbi/stigg/models/v1/subscription_preview_response.rbi +139 -6
- data/rbi/stigg/models/v1/subscription_provision_params.rbi +5306 -0
- data/rbi/stigg/models/v1/subscription_provision_response.rbi +3175 -0
- data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
- data/rbi/stigg/models/v1/subscription_update_params.rbi +3578 -0
- data/rbi/stigg/models/v1/subscriptions/{future_update_cancel_schedule_response.rbi → cancel_subscription.rbi} +10 -16
- data/rbi/stigg/models/v1/usage_history_params.rbi +79 -0
- data/rbi/stigg/models/v1/usage_history_response.rbi +347 -0
- data/rbi/stigg/models/v1/usage_report_params.rbi +227 -0
- data/rbi/stigg/models/v1/usage_report_response.rbi +162 -0
- data/rbi/stigg/models.rbi +0 -4
- data/rbi/stigg/resources/v1/coupons.rbi +22 -14
- data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
- data/rbi/stigg/resources/v1/customers/{promotional.rbi → promotional_entitlements.rbi} +13 -9
- data/rbi/stigg/resources/v1/customers.rbi +84 -53
- data/rbi/stigg/resources/v1/events.rbi +28 -0
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +14 -10
- data/rbi/stigg/resources/v1/subscriptions.rbi +242 -58
- data/rbi/stigg/resources/v1/usage.rbi +57 -0
- data/rbi/stigg/resources/v1.rbi +4 -26
- data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
- data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
- data/sig/stigg/models/v1/coupon_list_params.rbs +11 -11
- data/sig/stigg/models/v1/coupon_list_response.rbs +331 -351
- data/sig/stigg/models/v1/customer_import_params.rbs +74 -0
- data/sig/stigg/models/v1/customer_import_response.rbs +30 -0
- data/sig/stigg/models/v1/customer_list_params.rbs +11 -11
- data/sig/stigg/models/v1/customer_list_response.rbs +133 -153
- data/sig/stigg/models/v1/{customer_create_params.rbs → customer_provision_params.rbs} +22 -22
- data/sig/stigg/models/v1/customers/{promotional_create_params.rbs → promotional_entitlement_grant_params.rbs} +43 -43
- data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
- data/sig/stigg/models/v1/customers/{promotional_revoke_params.rbs → promotional_entitlement_revoke_params.rbs} +2 -2
- data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_response.rbs +281 -0
- data/sig/stigg/models/v1/event_report_params.rbs +82 -0
- data/sig/stigg/models/v1/event_report_response.rbs +15 -0
- data/sig/stigg/models/v1/{subscription_retrieve_response.rbs → subscription.rbs} +61 -35
- data/sig/stigg/models/v1/subscription_cancel_params.rbs +79 -0
- data/sig/stigg/models/v1/subscription_import_params.rbs +84 -0
- data/sig/stigg/models/v1/subscription_import_response.rbs +30 -0
- data/sig/stigg/models/v1/subscription_list_params.rbs +14 -14
- data/sig/stigg/models/v1/subscription_list_response.rbs +196 -189
- data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
- data/sig/stigg/models/v1/subscription_provision_params.rbs +2223 -0
- data/sig/stigg/models/v1/subscription_provision_response.rbs +1305 -0
- data/sig/stigg/models/v1/subscription_update_params.rbs +1544 -0
- data/sig/stigg/models/v1/subscriptions/cancel_subscription.rbs +34 -0
- data/sig/stigg/models/v1/usage_history_params.rbs +52 -0
- data/sig/stigg/models/v1/usage_history_response.rbs +129 -0
- data/sig/stigg/models/v1/usage_report_params.rbs +102 -0
- data/sig/stigg/models/v1/usage_report_response.rbs +87 -0
- data/sig/stigg/models.rbs +0 -4
- data/sig/stigg/resources/v1/coupons.rbs +5 -5
- data/sig/stigg/resources/v1/customers/{promotional.rbs → promotional_entitlements.rbs} +5 -5
- data/sig/stigg/resources/v1/customers.rbs +20 -17
- data/sig/stigg/resources/v1/events.rbs +14 -0
- data/sig/stigg/resources/v1/subscriptions/future_update.rbs +2 -2
- data/sig/stigg/resources/v1/subscriptions.rbs +68 -20
- data/sig/stigg/resources/v1/usage.rbs +24 -0
- data/sig/stigg/resources/v1.rbs +2 -8
- metadata +77 -71
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -317
- data/lib/stigg/models/v1/customers/usage_retrieve_params.rb +0 -56
- data/lib/stigg/models/v1/customers/usage_retrieve_response.rb +0 -145
- data/lib/stigg/models/v1/subscription_create_params.rb +0 -214
- data/lib/stigg/models/v1/subscription_create_response.rb +0 -338
- data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -274
- data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -274
- data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -274
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -32
- data/lib/stigg/models/v1_create_event_params.rb +0 -87
- data/lib/stigg/models/v1_create_event_response.rb +0 -16
- data/lib/stigg/models/v1_create_usage_params.rb +0 -96
- data/lib/stigg/models/v1_create_usage_response.rb +0 -112
- data/lib/stigg/resources/v1/customers/usage.rb +0 -59
- data/rbi/stigg/models/v1/coupon_create_response.rbi +0 -986
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -986
- data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
- data/rbi/stigg/models/v1/customers/promotional_revoke_response.rbi +0 -497
- data/rbi/stigg/models/v1/customers/usage_retrieve_params.rbi +0 -84
- data/rbi/stigg/models/v1/customers/usage_retrieve_response.rbi +0 -353
- data/rbi/stigg/models/v1/subscription_create_params.rbi +0 -394
- data/rbi/stigg/models/v1/subscription_create_response.rbi +0 -668
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -535
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -535
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -535
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -79
- data/rbi/stigg/models/v1_create_event_params.rbi +0 -160
- data/rbi/stigg/models/v1_create_event_response.rbi +0 -23
- data/rbi/stigg/models/v1_create_usage_params.rbi +0 -177
- data/rbi/stigg/models/v1_create_usage_response.rbi +0 -150
- data/rbi/stigg/resources/v1/customers/usage.rbi +0 -45
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
- data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
- data/sig/stigg/models/v1/customers/promotional_revoke_response.rbs +0 -209
- data/sig/stigg/models/v1/customers/usage_retrieve_params.rbs +0 -54
- data/sig/stigg/models/v1/customers/usage_retrieve_response.rbs +0 -134
- data/sig/stigg/models/v1/subscription_create_params.rbs +0 -199
- data/sig/stigg/models/v1/subscription_create_response.rbs +0 -283
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -224
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -224
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -224
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbs +0 -34
- data/sig/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbs +0 -34
- data/sig/stigg/models/v1_create_event_params.rbs +0 -80
- data/sig/stigg/models/v1_create_event_response.rbs +0 -13
- data/sig/stigg/models/v1_create_usage_params.rbs +0 -90
- data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
- data/sig/stigg/resources/v1/customers/usage.rbs +0 -21
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
class CancelSubscription = Subscriptions::CancelSubscription
|
|
5
|
+
|
|
6
|
+
module Subscriptions
|
|
7
|
+
type cancel_subscription =
|
|
8
|
+
{ data: Stigg::V1::Subscriptions::CancelSubscription::Data }
|
|
9
|
+
|
|
10
|
+
class CancelSubscription < Stigg::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor data: Stigg::V1::Subscriptions::CancelSubscription::Data
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
data: Stigg::V1::Subscriptions::CancelSubscription::Data
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
data: Stigg::V1::Subscriptions::CancelSubscription::Data
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type data = { id: String }
|
|
22
|
+
|
|
23
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
24
|
+
attr_accessor id: String
|
|
25
|
+
|
|
26
|
+
def initialize: (id: String) -> void
|
|
27
|
+
|
|
28
|
+
def to_hash: -> { id: String }
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type usage_history_params =
|
|
5
|
+
{
|
|
6
|
+
customer_id: String,
|
|
7
|
+
start_date: Time,
|
|
8
|
+
end_date: Time,
|
|
9
|
+
group_by: String,
|
|
10
|
+
resource_id: String?
|
|
11
|
+
}
|
|
12
|
+
& Stigg::Internal::Type::request_parameters
|
|
13
|
+
|
|
14
|
+
class UsageHistoryParams < Stigg::Internal::Type::BaseModel
|
|
15
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
16
|
+
include Stigg::Internal::Type::RequestParameters
|
|
17
|
+
|
|
18
|
+
attr_accessor customer_id: String
|
|
19
|
+
|
|
20
|
+
attr_accessor start_date: Time
|
|
21
|
+
|
|
22
|
+
attr_reader end_date: Time?
|
|
23
|
+
|
|
24
|
+
def end_date=: (Time) -> Time
|
|
25
|
+
|
|
26
|
+
attr_reader group_by: String?
|
|
27
|
+
|
|
28
|
+
def group_by=: (String) -> String
|
|
29
|
+
|
|
30
|
+
attr_accessor resource_id: String?
|
|
31
|
+
|
|
32
|
+
def initialize: (
|
|
33
|
+
customer_id: String,
|
|
34
|
+
start_date: Time,
|
|
35
|
+
?end_date: Time,
|
|
36
|
+
?group_by: String,
|
|
37
|
+
?resource_id: String?,
|
|
38
|
+
?request_options: Stigg::request_opts
|
|
39
|
+
) -> void
|
|
40
|
+
|
|
41
|
+
def to_hash: -> {
|
|
42
|
+
customer_id: String,
|
|
43
|
+
start_date: Time,
|
|
44
|
+
end_date: Time,
|
|
45
|
+
group_by: String,
|
|
46
|
+
resource_id: String?,
|
|
47
|
+
request_options: Stigg::RequestOptions
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
52
|
+
end
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type usage_history_response =
|
|
5
|
+
{ data: Stigg::Models::V1::UsageHistoryResponse::Data }
|
|
6
|
+
|
|
7
|
+
class UsageHistoryResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor data: Stigg::Models::V1::UsageHistoryResponse::Data
|
|
9
|
+
|
|
10
|
+
def initialize: (
|
|
11
|
+
data: Stigg::Models::V1::UsageHistoryResponse::Data
|
|
12
|
+
) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> { data: Stigg::Models::V1::UsageHistoryResponse::Data }
|
|
15
|
+
|
|
16
|
+
type data =
|
|
17
|
+
{
|
|
18
|
+
markers: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Marker],
|
|
19
|
+
series: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series]
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
23
|
+
attr_accessor markers: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Marker]
|
|
24
|
+
|
|
25
|
+
attr_accessor series: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series]
|
|
26
|
+
|
|
27
|
+
def initialize: (
|
|
28
|
+
markers: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Marker],
|
|
29
|
+
series: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series]
|
|
30
|
+
) -> void
|
|
31
|
+
|
|
32
|
+
def to_hash: -> {
|
|
33
|
+
markers: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Marker],
|
|
34
|
+
series: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series]
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type marker =
|
|
38
|
+
{
|
|
39
|
+
timestamp: Time,
|
|
40
|
+
type: Stigg::Models::V1::UsageHistoryResponse::Data::Marker::type_
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
class Marker < Stigg::Internal::Type::BaseModel
|
|
44
|
+
attr_accessor timestamp: Time
|
|
45
|
+
|
|
46
|
+
attr_accessor type: Stigg::Models::V1::UsageHistoryResponse::Data::Marker::type_
|
|
47
|
+
|
|
48
|
+
def initialize: (
|
|
49
|
+
timestamp: Time,
|
|
50
|
+
type: Stigg::Models::V1::UsageHistoryResponse::Data::Marker::type_
|
|
51
|
+
) -> void
|
|
52
|
+
|
|
53
|
+
def to_hash: -> {
|
|
54
|
+
timestamp: Time,
|
|
55
|
+
type: Stigg::Models::V1::UsageHistoryResponse::Data::Marker::type_
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
type type_ = :PERIODIC_RESET | :SUBSCRIPTION_CHANGE_RESET
|
|
59
|
+
|
|
60
|
+
module Type
|
|
61
|
+
extend Stigg::Internal::Type::Enum
|
|
62
|
+
|
|
63
|
+
PERIODIC_RESET: :PERIODIC_RESET
|
|
64
|
+
SUBSCRIPTION_CHANGE_RESET: :SUBSCRIPTION_CHANGE_RESET
|
|
65
|
+
|
|
66
|
+
def self?.values: -> ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Marker::type_]
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
type series =
|
|
71
|
+
{
|
|
72
|
+
points: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series::Point],
|
|
73
|
+
tags: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series::Tag]
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
class Series < Stigg::Internal::Type::BaseModel
|
|
77
|
+
attr_accessor points: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series::Point]
|
|
78
|
+
|
|
79
|
+
attr_accessor tags: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series::Tag]
|
|
80
|
+
|
|
81
|
+
def initialize: (
|
|
82
|
+
points: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series::Point],
|
|
83
|
+
tags: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series::Tag]
|
|
84
|
+
) -> void
|
|
85
|
+
|
|
86
|
+
def to_hash: -> {
|
|
87
|
+
points: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series::Point],
|
|
88
|
+
tags: ::Array[Stigg::Models::V1::UsageHistoryResponse::Data::Series::Tag]
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
type point = { is_reset_point: bool, timestamp: Time, value: Float }
|
|
92
|
+
|
|
93
|
+
class Point < Stigg::Internal::Type::BaseModel
|
|
94
|
+
attr_accessor is_reset_point: bool
|
|
95
|
+
|
|
96
|
+
attr_accessor timestamp: Time
|
|
97
|
+
|
|
98
|
+
attr_accessor value: Float
|
|
99
|
+
|
|
100
|
+
def initialize: (
|
|
101
|
+
is_reset_point: bool,
|
|
102
|
+
timestamp: Time,
|
|
103
|
+
value: Float
|
|
104
|
+
) -> void
|
|
105
|
+
|
|
106
|
+
def to_hash: -> {
|
|
107
|
+
is_reset_point: bool,
|
|
108
|
+
timestamp: Time,
|
|
109
|
+
value: Float
|
|
110
|
+
}
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
type tag = { key: String, value: String }
|
|
114
|
+
|
|
115
|
+
class Tag < Stigg::Internal::Type::BaseModel
|
|
116
|
+
attr_accessor key: String
|
|
117
|
+
|
|
118
|
+
attr_accessor value: String
|
|
119
|
+
|
|
120
|
+
def initialize: (key: String, value: String) -> void
|
|
121
|
+
|
|
122
|
+
def to_hash: -> { key: String, value: String }
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type usage_report_params =
|
|
5
|
+
{ usages: ::Array[Stigg::V1::UsageReportParams::Usage] }
|
|
6
|
+
& Stigg::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class UsageReportParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor usages: ::Array[Stigg::V1::UsageReportParams::Usage]
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
usages: ::Array[Stigg::V1::UsageReportParams::Usage],
|
|
16
|
+
?request_options: Stigg::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
usages: ::Array[Stigg::V1::UsageReportParams::Usage],
|
|
21
|
+
request_options: Stigg::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type usage =
|
|
25
|
+
{
|
|
26
|
+
customer_id: String,
|
|
27
|
+
feature_id: String,
|
|
28
|
+
value: Integer,
|
|
29
|
+
created_at: Time,
|
|
30
|
+
dimensions: ::Hash[Symbol, Stigg::Models::V1::UsageReportParams::Usage::dimension],
|
|
31
|
+
resource_id: String?,
|
|
32
|
+
update_behavior: Stigg::Models::V1::UsageReportParams::Usage::update_behavior
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
class Usage < Stigg::Internal::Type::BaseModel
|
|
36
|
+
attr_accessor customer_id: String
|
|
37
|
+
|
|
38
|
+
attr_accessor feature_id: String
|
|
39
|
+
|
|
40
|
+
attr_accessor value: Integer
|
|
41
|
+
|
|
42
|
+
attr_reader created_at: Time?
|
|
43
|
+
|
|
44
|
+
def created_at=: (Time) -> Time
|
|
45
|
+
|
|
46
|
+
attr_reader dimensions: ::Hash[Symbol, Stigg::Models::V1::UsageReportParams::Usage::dimension]?
|
|
47
|
+
|
|
48
|
+
def dimensions=: (
|
|
49
|
+
::Hash[Symbol, Stigg::Models::V1::UsageReportParams::Usage::dimension]
|
|
50
|
+
) -> ::Hash[Symbol, Stigg::Models::V1::UsageReportParams::Usage::dimension]
|
|
51
|
+
|
|
52
|
+
attr_accessor resource_id: String?
|
|
53
|
+
|
|
54
|
+
attr_reader update_behavior: Stigg::Models::V1::UsageReportParams::Usage::update_behavior?
|
|
55
|
+
|
|
56
|
+
def update_behavior=: (
|
|
57
|
+
Stigg::Models::V1::UsageReportParams::Usage::update_behavior
|
|
58
|
+
) -> Stigg::Models::V1::UsageReportParams::Usage::update_behavior
|
|
59
|
+
|
|
60
|
+
def initialize: (
|
|
61
|
+
customer_id: String,
|
|
62
|
+
feature_id: String,
|
|
63
|
+
value: Integer,
|
|
64
|
+
?created_at: Time,
|
|
65
|
+
?dimensions: ::Hash[Symbol, Stigg::Models::V1::UsageReportParams::Usage::dimension],
|
|
66
|
+
?resource_id: String?,
|
|
67
|
+
?update_behavior: Stigg::Models::V1::UsageReportParams::Usage::update_behavior
|
|
68
|
+
) -> void
|
|
69
|
+
|
|
70
|
+
def to_hash: -> {
|
|
71
|
+
customer_id: String,
|
|
72
|
+
feature_id: String,
|
|
73
|
+
value: Integer,
|
|
74
|
+
created_at: Time,
|
|
75
|
+
dimensions: ::Hash[Symbol, Stigg::Models::V1::UsageReportParams::Usage::dimension],
|
|
76
|
+
resource_id: String?,
|
|
77
|
+
update_behavior: Stigg::Models::V1::UsageReportParams::Usage::update_behavior
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
type dimension = String | Float | bool
|
|
81
|
+
|
|
82
|
+
module Dimension
|
|
83
|
+
extend Stigg::Internal::Type::Union
|
|
84
|
+
|
|
85
|
+
def self?.variants: -> ::Array[Stigg::Models::V1::UsageReportParams::Usage::dimension]
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
type update_behavior = :DELTA | :SET
|
|
89
|
+
|
|
90
|
+
module UpdateBehavior
|
|
91
|
+
extend Stigg::Internal::Type::Enum
|
|
92
|
+
|
|
93
|
+
DELTA: :DELTA
|
|
94
|
+
SET: :SET
|
|
95
|
+
|
|
96
|
+
def self?.values: -> ::Array[Stigg::Models::V1::UsageReportParams::Usage::update_behavior]
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
end
|
|
102
|
+
end
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type usage_report_response =
|
|
5
|
+
{ data: ::Array[Stigg::Models::V1::UsageReportResponse::Data] }
|
|
6
|
+
|
|
7
|
+
class UsageReportResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor data: ::Array[Stigg::Models::V1::UsageReportResponse::Data]
|
|
9
|
+
|
|
10
|
+
def initialize: (
|
|
11
|
+
data: ::Array[Stigg::Models::V1::UsageReportResponse::Data]
|
|
12
|
+
) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> {
|
|
15
|
+
data: ::Array[Stigg::Models::V1::UsageReportResponse::Data]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type data =
|
|
19
|
+
{
|
|
20
|
+
id: String,
|
|
21
|
+
created_at: Time,
|
|
22
|
+
customer_id: String,
|
|
23
|
+
feature_id: String,
|
|
24
|
+
timestamp: Time,
|
|
25
|
+
value: Float,
|
|
26
|
+
current_usage: Float?,
|
|
27
|
+
next_reset_date: Time?,
|
|
28
|
+
resource_id: String?,
|
|
29
|
+
usage_period_end: Time?,
|
|
30
|
+
usage_period_start: Time?
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
34
|
+
attr_accessor id: String
|
|
35
|
+
|
|
36
|
+
attr_accessor created_at: Time
|
|
37
|
+
|
|
38
|
+
attr_accessor customer_id: String
|
|
39
|
+
|
|
40
|
+
attr_accessor feature_id: String
|
|
41
|
+
|
|
42
|
+
attr_accessor timestamp: Time
|
|
43
|
+
|
|
44
|
+
attr_accessor value: Float
|
|
45
|
+
|
|
46
|
+
attr_accessor current_usage: Float?
|
|
47
|
+
|
|
48
|
+
attr_accessor next_reset_date: Time?
|
|
49
|
+
|
|
50
|
+
attr_accessor resource_id: String?
|
|
51
|
+
|
|
52
|
+
attr_accessor usage_period_end: Time?
|
|
53
|
+
|
|
54
|
+
attr_accessor usage_period_start: Time?
|
|
55
|
+
|
|
56
|
+
def initialize: (
|
|
57
|
+
id: String,
|
|
58
|
+
created_at: Time,
|
|
59
|
+
customer_id: String,
|
|
60
|
+
feature_id: String,
|
|
61
|
+
timestamp: Time,
|
|
62
|
+
value: Float,
|
|
63
|
+
?current_usage: Float?,
|
|
64
|
+
?next_reset_date: Time?,
|
|
65
|
+
?resource_id: String?,
|
|
66
|
+
?usage_period_end: Time?,
|
|
67
|
+
?usage_period_start: Time?
|
|
68
|
+
) -> void
|
|
69
|
+
|
|
70
|
+
def to_hash: -> {
|
|
71
|
+
id: String,
|
|
72
|
+
created_at: Time,
|
|
73
|
+
customer_id: String,
|
|
74
|
+
feature_id: String,
|
|
75
|
+
timestamp: Time,
|
|
76
|
+
value: Float,
|
|
77
|
+
current_usage: Float?,
|
|
78
|
+
next_reset_date: Time?,
|
|
79
|
+
resource_id: String?,
|
|
80
|
+
usage_period_end: Time?,
|
|
81
|
+
usage_period_start: Time?
|
|
82
|
+
}
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
data/sig/stigg/models.rbs
CHANGED
|
@@ -11,19 +11,19 @@ module Stigg
|
|
|
11
11
|
percent_off: Float?,
|
|
12
12
|
?additional_meta_data: top,
|
|
13
13
|
?request_options: Stigg::request_opts
|
|
14
|
-
) -> Stigg::
|
|
14
|
+
) -> Stigg::V1::Coupon
|
|
15
15
|
|
|
16
16
|
def retrieve: (
|
|
17
17
|
String id,
|
|
18
18
|
?request_options: Stigg::request_opts
|
|
19
|
-
) -> Stigg::
|
|
19
|
+
) -> Stigg::V1::Coupon
|
|
20
20
|
|
|
21
21
|
def list: (
|
|
22
|
-
?
|
|
22
|
+
?after: String,
|
|
23
|
+
?before: String,
|
|
23
24
|
?limit: Integer,
|
|
24
|
-
?starting_after: String,
|
|
25
25
|
?request_options: Stigg::request_opts
|
|
26
|
-
) -> Stigg::Models::V1::CouponListResponse
|
|
26
|
+
) -> Stigg::Internal::MyCursorIDPage[Stigg::Models::V1::CouponListResponse]
|
|
27
27
|
|
|
28
28
|
def initialize: (client: Stigg::Client) -> void
|
|
29
29
|
end
|
|
@@ -2,18 +2,18 @@ module Stigg
|
|
|
2
2
|
module Resources
|
|
3
3
|
class V1
|
|
4
4
|
class Customers
|
|
5
|
-
class
|
|
6
|
-
def
|
|
5
|
+
class PromotionalEntitlements
|
|
6
|
+
def grant: (
|
|
7
7
|
String customer_id,
|
|
8
|
-
promotional_entitlements: ::Array[Stigg::V1::Customers::
|
|
8
|
+
promotional_entitlements: ::Array[Stigg::V1::Customers::PromotionalEntitlementGrantParams::PromotionalEntitlement],
|
|
9
9
|
?request_options: Stigg::request_opts
|
|
10
|
-
) -> Stigg::Models::V1::Customers::
|
|
10
|
+
) -> Stigg::Models::V1::Customers::PromotionalEntitlementGrantResponse
|
|
11
11
|
|
|
12
12
|
def revoke: (
|
|
13
13
|
String feature_id,
|
|
14
14
|
customer_id: String,
|
|
15
15
|
?request_options: Stigg::request_opts
|
|
16
|
-
) -> Stigg::Models::V1::Customers::
|
|
16
|
+
) -> Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse
|
|
17
17
|
|
|
18
18
|
def initialize: (client: Stigg::Client) -> void
|
|
19
19
|
end
|
|
@@ -4,20 +4,7 @@ module Stigg
|
|
|
4
4
|
class Customers
|
|
5
5
|
attr_reader payment_method: Stigg::Resources::V1::Customers::PaymentMethod
|
|
6
6
|
|
|
7
|
-
attr_reader
|
|
8
|
-
|
|
9
|
-
attr_reader promotional: Stigg::Resources::V1::Customers::Promotional
|
|
10
|
-
|
|
11
|
-
def create: (
|
|
12
|
-
id: String,
|
|
13
|
-
?coupon_id: String?,
|
|
14
|
-
?default_payment_method: Stigg::V1::CustomerCreateParams::DefaultPaymentMethod?,
|
|
15
|
-
?email: String?,
|
|
16
|
-
?integrations: ::Array[Stigg::V1::CustomerCreateParams::Integration],
|
|
17
|
-
?metadata: ::Hash[Symbol, String],
|
|
18
|
-
?name: String?,
|
|
19
|
-
?request_options: Stigg::request_opts
|
|
20
|
-
) -> Stigg::V1::CustomerResponse
|
|
7
|
+
attr_reader promotional_entitlements: Stigg::Resources::V1::Customers::PromotionalEntitlements
|
|
21
8
|
|
|
22
9
|
def retrieve: (
|
|
23
10
|
String id,
|
|
@@ -35,17 +22,33 @@ module Stigg
|
|
|
35
22
|
) -> Stigg::V1::CustomerResponse
|
|
36
23
|
|
|
37
24
|
def list: (
|
|
38
|
-
?
|
|
25
|
+
?after: String,
|
|
26
|
+
?before: String,
|
|
39
27
|
?limit: Integer,
|
|
40
|
-
?starting_after: String,
|
|
41
28
|
?request_options: Stigg::request_opts
|
|
42
|
-
) -> Stigg::Models::V1::CustomerListResponse
|
|
29
|
+
) -> Stigg::Internal::MyCursorIDPage[Stigg::Models::V1::CustomerListResponse]
|
|
43
30
|
|
|
44
31
|
def archive: (
|
|
45
32
|
String id,
|
|
46
33
|
?request_options: Stigg::request_opts
|
|
47
34
|
) -> Stigg::V1::CustomerResponse
|
|
48
35
|
|
|
36
|
+
def import: (
|
|
37
|
+
customers: ::Array[Stigg::V1::CustomerImportParams::Customer],
|
|
38
|
+
?request_options: Stigg::request_opts
|
|
39
|
+
) -> Stigg::Models::V1::CustomerImportResponse
|
|
40
|
+
|
|
41
|
+
def provision: (
|
|
42
|
+
id: String,
|
|
43
|
+
?coupon_id: String?,
|
|
44
|
+
?default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?,
|
|
45
|
+
?email: String?,
|
|
46
|
+
?integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration],
|
|
47
|
+
?metadata: ::Hash[Symbol, String],
|
|
48
|
+
?name: String?,
|
|
49
|
+
?request_options: Stigg::request_opts
|
|
50
|
+
) -> Stigg::V1::CustomerResponse
|
|
51
|
+
|
|
49
52
|
def unarchive: (
|
|
50
53
|
String id,
|
|
51
54
|
?request_options: Stigg::request_opts
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Resources
|
|
3
|
+
class V1
|
|
4
|
+
class Events
|
|
5
|
+
def report: (
|
|
6
|
+
events: ::Array[Stigg::V1::EventReportParams::Event],
|
|
7
|
+
?request_options: Stigg::request_opts
|
|
8
|
+
) -> Stigg::Models::V1::EventReportResponse
|
|
9
|
+
|
|
10
|
+
def initialize: (client: Stigg::Client) -> void
|
|
11
|
+
end
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
@@ -6,12 +6,12 @@ module Stigg
|
|
|
6
6
|
def cancel_pending_payment: (
|
|
7
7
|
String id,
|
|
8
8
|
?request_options: Stigg::request_opts
|
|
9
|
-
) -> Stigg::
|
|
9
|
+
) -> Stigg::V1::Subscriptions::CancelSubscription
|
|
10
10
|
|
|
11
11
|
def cancel_schedule: (
|
|
12
12
|
String id,
|
|
13
13
|
?request_options: Stigg::request_opts
|
|
14
|
-
) -> Stigg::
|
|
14
|
+
) -> Stigg::V1::Subscriptions::CancelSubscription
|
|
15
15
|
|
|
16
16
|
def initialize: (client: Stigg::Client) -> void
|
|
17
17
|
end
|
|
@@ -4,45 +4,64 @@ module Stigg
|
|
|
4
4
|
class Subscriptions
|
|
5
5
|
attr_reader future_update: Stigg::Resources::V1::Subscriptions::FutureUpdate
|
|
6
6
|
|
|
7
|
-
def
|
|
8
|
-
|
|
9
|
-
plan_id: String,
|
|
10
|
-
?id: String?,
|
|
11
|
-
?await_payment_confirmation: bool,
|
|
12
|
-
?billing_period: Stigg::Models::V1::SubscriptionCreateParams::billing_period,
|
|
13
|
-
?checkout_options: Stigg::V1::SubscriptionCreateParams::CheckoutOptions,
|
|
14
|
-
?metadata: ::Hash[Symbol, String],
|
|
15
|
-
?paying_customer_id: String?,
|
|
16
|
-
?resource_id: String?,
|
|
17
|
-
?trial_override_configuration: Stigg::V1::SubscriptionCreateParams::TrialOverrideConfiguration,
|
|
7
|
+
def retrieve: (
|
|
8
|
+
String id,
|
|
18
9
|
?request_options: Stigg::request_opts
|
|
19
|
-
) -> Stigg::
|
|
10
|
+
) -> Stigg::V1::Subscription
|
|
20
11
|
|
|
21
|
-
def
|
|
12
|
+
def update: (
|
|
22
13
|
String id,
|
|
14
|
+
?addons: ::Array[Stigg::V1::SubscriptionUpdateParams::Addon],
|
|
15
|
+
?applied_coupon: Stigg::V1::SubscriptionUpdateParams::AppliedCoupon,
|
|
16
|
+
?await_payment_confirmation: bool,
|
|
17
|
+
?billing_information: Stigg::V1::SubscriptionUpdateParams::BillingInformation,
|
|
18
|
+
?billing_period: Stigg::Models::V1::SubscriptionUpdateParams::billing_period,
|
|
19
|
+
?budget: Stigg::V1::SubscriptionUpdateParams::Budget?,
|
|
20
|
+
?charges: ::Array[Stigg::V1::SubscriptionUpdateParams::Charge],
|
|
21
|
+
?metadata: ::Hash[Symbol, String],
|
|
22
|
+
?minimum_spend: Stigg::V1::SubscriptionUpdateParams::MinimumSpend?,
|
|
23
|
+
?price_overrides: ::Array[Stigg::V1::SubscriptionUpdateParams::PriceOverride],
|
|
24
|
+
?promotion_code: String,
|
|
25
|
+
?schedule_strategy: Stigg::Models::V1::SubscriptionUpdateParams::schedule_strategy,
|
|
26
|
+
?subscription_entitlements: ::Array[Stigg::V1::SubscriptionUpdateParams::SubscriptionEntitlement],
|
|
27
|
+
?trial_end_date: Time,
|
|
23
28
|
?request_options: Stigg::request_opts
|
|
24
|
-
) -> Stigg::
|
|
29
|
+
) -> Stigg::V1::Subscription
|
|
25
30
|
|
|
26
31
|
def list: (
|
|
32
|
+
?after: String,
|
|
33
|
+
?before: String,
|
|
27
34
|
?customer_id: String,
|
|
28
|
-
?ending_before: String,
|
|
29
35
|
?limit: Integer,
|
|
30
|
-
?starting_after: String,
|
|
31
36
|
?status: String,
|
|
32
37
|
?request_options: Stigg::request_opts
|
|
33
|
-
) -> Stigg::Models::V1::SubscriptionListResponse
|
|
38
|
+
) -> Stigg::Internal::MyCursorIDPage[Stigg::Models::V1::SubscriptionListResponse]
|
|
39
|
+
|
|
40
|
+
def cancel: (
|
|
41
|
+
String id,
|
|
42
|
+
?cancellation_action: Stigg::Models::V1::SubscriptionCancelParams::cancellation_action,
|
|
43
|
+
?cancellation_time: Stigg::Models::V1::SubscriptionCancelParams::cancellation_time,
|
|
44
|
+
?end_date: Time,
|
|
45
|
+
?prorate: bool,
|
|
46
|
+
?request_options: Stigg::request_opts
|
|
47
|
+
) -> Stigg::V1::Subscription
|
|
34
48
|
|
|
35
49
|
def delegate: (
|
|
36
50
|
String id,
|
|
37
51
|
target_customer_id: String,
|
|
38
52
|
?request_options: Stigg::request_opts
|
|
39
|
-
) -> Stigg::
|
|
53
|
+
) -> Stigg::V1::Subscription
|
|
54
|
+
|
|
55
|
+
def import: (
|
|
56
|
+
subscriptions: ::Array[Stigg::V1::SubscriptionImportParams::Subscription],
|
|
57
|
+
?request_options: Stigg::request_opts
|
|
58
|
+
) -> Stigg::Models::V1::SubscriptionImportResponse
|
|
40
59
|
|
|
41
60
|
def migrate: (
|
|
42
61
|
String id,
|
|
43
62
|
?subscription_migration_time: Stigg::Models::V1::SubscriptionMigrateParams::subscription_migration_time,
|
|
44
63
|
?request_options: Stigg::request_opts
|
|
45
|
-
) -> Stigg::
|
|
64
|
+
) -> Stigg::V1::Subscription
|
|
46
65
|
|
|
47
66
|
def preview: (
|
|
48
67
|
customer_id: String,
|
|
@@ -63,11 +82,40 @@ module Stigg
|
|
|
63
82
|
?request_options: Stigg::request_opts
|
|
64
83
|
) -> Stigg::Models::V1::SubscriptionPreviewResponse
|
|
65
84
|
|
|
85
|
+
def provision: (
|
|
86
|
+
customer_id: String,
|
|
87
|
+
plan_id: String,
|
|
88
|
+
?id: String,
|
|
89
|
+
?addons: ::Array[Stigg::V1::SubscriptionProvisionParams::Addon],
|
|
90
|
+
?applied_coupon: Stigg::V1::SubscriptionProvisionParams::AppliedCoupon,
|
|
91
|
+
?await_payment_confirmation: bool,
|
|
92
|
+
?billing_country_code: String?,
|
|
93
|
+
?billing_id: String?,
|
|
94
|
+
?billing_information: Stigg::V1::SubscriptionProvisionParams::BillingInformation,
|
|
95
|
+
?billing_period: Stigg::Models::V1::SubscriptionProvisionParams::billing_period,
|
|
96
|
+
?budget: Stigg::V1::SubscriptionProvisionParams::Budget?,
|
|
97
|
+
?charges: ::Array[Stigg::V1::SubscriptionProvisionParams::Charge],
|
|
98
|
+
?checkout_options: Stigg::V1::SubscriptionProvisionParams::CheckoutOptions,
|
|
99
|
+
?metadata: ::Hash[Symbol, String],
|
|
100
|
+
?minimum_spend: Stigg::V1::SubscriptionProvisionParams::MinimumSpend?,
|
|
101
|
+
?paying_customer_id: String?,
|
|
102
|
+
?payment_collection_method: Stigg::Models::V1::SubscriptionProvisionParams::payment_collection_method,
|
|
103
|
+
?price_overrides: ::Array[Stigg::V1::SubscriptionProvisionParams::PriceOverride],
|
|
104
|
+
?resource_id: String?,
|
|
105
|
+
?salesforce_id: String?,
|
|
106
|
+
?schedule_strategy: Stigg::Models::V1::SubscriptionProvisionParams::schedule_strategy,
|
|
107
|
+
?start_date: Time,
|
|
108
|
+
?subscription_entitlements: ::Array[Stigg::V1::SubscriptionProvisionParams::SubscriptionEntitlement],
|
|
109
|
+
?trial_override_configuration: Stigg::V1::SubscriptionProvisionParams::TrialOverrideConfiguration,
|
|
110
|
+
?unit_quantity: Float,
|
|
111
|
+
?request_options: Stigg::request_opts
|
|
112
|
+
) -> Stigg::Models::V1::SubscriptionProvisionResponse
|
|
113
|
+
|
|
66
114
|
def transfer: (
|
|
67
115
|
String id,
|
|
68
116
|
destination_resource_id: String,
|
|
69
117
|
?request_options: Stigg::request_opts
|
|
70
|
-
) -> Stigg::
|
|
118
|
+
) -> Stigg::V1::Subscription
|
|
71
119
|
|
|
72
120
|
def initialize: (client: Stigg::Client) -> void
|
|
73
121
|
end
|