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,281 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
module Customers
|
|
5
|
+
type promotional_entitlement_revoke_response =
|
|
6
|
+
{
|
|
7
|
+
data: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
class PromotionalEntitlementRevokeResponse < Stigg::Internal::Type::BaseModel
|
|
11
|
+
attr_accessor data: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data
|
|
12
|
+
|
|
13
|
+
def initialize: (
|
|
14
|
+
data: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data
|
|
15
|
+
) -> void
|
|
16
|
+
|
|
17
|
+
def to_hash: -> {
|
|
18
|
+
data: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type data =
|
|
22
|
+
{
|
|
23
|
+
id: String,
|
|
24
|
+
created_at: Time,
|
|
25
|
+
description: String?,
|
|
26
|
+
end_date: Time?,
|
|
27
|
+
enum_values: ::Array[String]?,
|
|
28
|
+
environment_id: String,
|
|
29
|
+
feature_group_ids: ::Array[String]?,
|
|
30
|
+
feature_id: String,
|
|
31
|
+
has_soft_limit: bool?,
|
|
32
|
+
has_unlimited_usage: bool?,
|
|
33
|
+
is_visible: bool,
|
|
34
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::period,
|
|
35
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period?,
|
|
36
|
+
reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period_configuration?,
|
|
37
|
+
start_date: Time,
|
|
38
|
+
status: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::status,
|
|
39
|
+
updated_at: Time,
|
|
40
|
+
usage_limit: Float?
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
44
|
+
attr_accessor id: String
|
|
45
|
+
|
|
46
|
+
attr_accessor created_at: Time
|
|
47
|
+
|
|
48
|
+
attr_accessor description: String?
|
|
49
|
+
|
|
50
|
+
attr_accessor end_date: Time?
|
|
51
|
+
|
|
52
|
+
attr_accessor enum_values: ::Array[String]?
|
|
53
|
+
|
|
54
|
+
attr_accessor environment_id: String
|
|
55
|
+
|
|
56
|
+
attr_accessor feature_group_ids: ::Array[String]?
|
|
57
|
+
|
|
58
|
+
attr_accessor feature_id: String
|
|
59
|
+
|
|
60
|
+
attr_accessor has_soft_limit: bool?
|
|
61
|
+
|
|
62
|
+
attr_accessor has_unlimited_usage: bool?
|
|
63
|
+
|
|
64
|
+
attr_accessor is_visible: bool
|
|
65
|
+
|
|
66
|
+
attr_accessor period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::period
|
|
67
|
+
|
|
68
|
+
attr_accessor reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period?
|
|
69
|
+
|
|
70
|
+
attr_accessor reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period_configuration?
|
|
71
|
+
|
|
72
|
+
attr_accessor start_date: Time
|
|
73
|
+
|
|
74
|
+
attr_accessor status: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::status
|
|
75
|
+
|
|
76
|
+
attr_accessor updated_at: Time
|
|
77
|
+
|
|
78
|
+
attr_accessor usage_limit: Float?
|
|
79
|
+
|
|
80
|
+
def initialize: (
|
|
81
|
+
id: String,
|
|
82
|
+
created_at: Time,
|
|
83
|
+
description: String?,
|
|
84
|
+
end_date: Time?,
|
|
85
|
+
enum_values: ::Array[String]?,
|
|
86
|
+
environment_id: String,
|
|
87
|
+
feature_group_ids: ::Array[String]?,
|
|
88
|
+
feature_id: String,
|
|
89
|
+
has_soft_limit: bool?,
|
|
90
|
+
has_unlimited_usage: bool?,
|
|
91
|
+
is_visible: bool,
|
|
92
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::period,
|
|
93
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period?,
|
|
94
|
+
reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period_configuration?,
|
|
95
|
+
start_date: Time,
|
|
96
|
+
status: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::status,
|
|
97
|
+
updated_at: Time,
|
|
98
|
+
usage_limit: Float?
|
|
99
|
+
) -> void
|
|
100
|
+
|
|
101
|
+
def to_hash: -> {
|
|
102
|
+
id: String,
|
|
103
|
+
created_at: Time,
|
|
104
|
+
description: String?,
|
|
105
|
+
end_date: Time?,
|
|
106
|
+
enum_values: ::Array[String]?,
|
|
107
|
+
environment_id: String,
|
|
108
|
+
feature_group_ids: ::Array[String]?,
|
|
109
|
+
feature_id: String,
|
|
110
|
+
has_soft_limit: bool?,
|
|
111
|
+
has_unlimited_usage: bool?,
|
|
112
|
+
is_visible: bool,
|
|
113
|
+
period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::period,
|
|
114
|
+
reset_period: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period?,
|
|
115
|
+
reset_period_configuration: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period_configuration?,
|
|
116
|
+
start_date: Time,
|
|
117
|
+
status: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::status,
|
|
118
|
+
updated_at: Time,
|
|
119
|
+
usage_limit: Float?
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
type period =
|
|
123
|
+
:"1 week"
|
|
124
|
+
| :"1 month"
|
|
125
|
+
| :"6 month"
|
|
126
|
+
| :"1 year"
|
|
127
|
+
| :lifetime
|
|
128
|
+
| :custom
|
|
129
|
+
|
|
130
|
+
module Period
|
|
131
|
+
extend Stigg::Internal::Type::Enum
|
|
132
|
+
|
|
133
|
+
PERIOD_1_WEEK: :"1 week"
|
|
134
|
+
PERIOD_1_MONTH: :"1 month"
|
|
135
|
+
PERIOD_6_MONTH: :"6 month"
|
|
136
|
+
PERIOD_1_YEAR: :"1 year"
|
|
137
|
+
LIFETIME: :lifetime
|
|
138
|
+
CUSTOM: :custom
|
|
139
|
+
|
|
140
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::period]
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
type reset_period = :YEAR | :MONTH | :WEEK | :DAY | :HOUR
|
|
144
|
+
|
|
145
|
+
module ResetPeriod
|
|
146
|
+
extend Stigg::Internal::Type::Enum
|
|
147
|
+
|
|
148
|
+
YEAR: :YEAR
|
|
149
|
+
MONTH: :MONTH
|
|
150
|
+
WEEK: :WEEK
|
|
151
|
+
DAY: :DAY
|
|
152
|
+
HOUR: :HOUR
|
|
153
|
+
|
|
154
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period]
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
type reset_period_configuration =
|
|
158
|
+
Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig
|
|
159
|
+
| Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig
|
|
160
|
+
| Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig
|
|
161
|
+
|
|
162
|
+
module ResetPeriodConfiguration
|
|
163
|
+
extend Stigg::Internal::Type::Union
|
|
164
|
+
|
|
165
|
+
type yearly_reset_period_config =
|
|
166
|
+
{
|
|
167
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
class YearlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
171
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
172
|
+
|
|
173
|
+
def initialize: (
|
|
174
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
175
|
+
) -> void
|
|
176
|
+
|
|
177
|
+
def to_hash: -> {
|
|
178
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
type according_to = :SubscriptionStart
|
|
182
|
+
|
|
183
|
+
module AccordingTo
|
|
184
|
+
extend Stigg::Internal::Type::Enum
|
|
185
|
+
|
|
186
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
187
|
+
|
|
188
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::YearlyResetPeriodConfig::according_to]
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
type monthly_reset_period_config =
|
|
193
|
+
{
|
|
194
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
class MonthlyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
198
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
199
|
+
|
|
200
|
+
def initialize: (
|
|
201
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
202
|
+
) -> void
|
|
203
|
+
|
|
204
|
+
def to_hash: -> {
|
|
205
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
type according_to = :SubscriptionStart | :StartOfTheMonth
|
|
209
|
+
|
|
210
|
+
module AccordingTo
|
|
211
|
+
extend Stigg::Internal::Type::Enum
|
|
212
|
+
|
|
213
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
214
|
+
START_OF_THE_MONTH: :StartOfTheMonth
|
|
215
|
+
|
|
216
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::MonthlyResetPeriodConfig::according_to]
|
|
217
|
+
end
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
type weekly_reset_period_config =
|
|
221
|
+
{
|
|
222
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
class WeeklyResetPeriodConfig < Stigg::Internal::Type::BaseModel
|
|
226
|
+
attr_accessor according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
227
|
+
|
|
228
|
+
def initialize: (
|
|
229
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
230
|
+
) -> void
|
|
231
|
+
|
|
232
|
+
def to_hash: -> {
|
|
233
|
+
according_to: Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
type according_to =
|
|
237
|
+
:SubscriptionStart
|
|
238
|
+
| :EverySunday
|
|
239
|
+
| :EveryMonday
|
|
240
|
+
| :EveryTuesday
|
|
241
|
+
| :EveryWednesday
|
|
242
|
+
| :EveryThursday
|
|
243
|
+
| :EveryFriday
|
|
244
|
+
| :EverySaturday
|
|
245
|
+
|
|
246
|
+
module AccordingTo
|
|
247
|
+
extend Stigg::Internal::Type::Enum
|
|
248
|
+
|
|
249
|
+
SUBSCRIPTION_START: :SubscriptionStart
|
|
250
|
+
EVERY_SUNDAY: :EverySunday
|
|
251
|
+
EVERY_MONDAY: :EveryMonday
|
|
252
|
+
EVERY_TUESDAY: :EveryTuesday
|
|
253
|
+
EVERY_WEDNESDAY: :EveryWednesday
|
|
254
|
+
EVERY_THURSDAY: :EveryThursday
|
|
255
|
+
EVERY_FRIDAY: :EveryFriday
|
|
256
|
+
EVERY_SATURDAY: :EverySaturday
|
|
257
|
+
|
|
258
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::ResetPeriodConfiguration::WeeklyResetPeriodConfig::according_to]
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
def self?.variants: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::reset_period_configuration]
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
type status = :Active | :Expired | :Paused
|
|
266
|
+
|
|
267
|
+
module Status
|
|
268
|
+
extend Stigg::Internal::Type::Enum
|
|
269
|
+
|
|
270
|
+
ACTIVE: :Active
|
|
271
|
+
EXPIRED: :Expired
|
|
272
|
+
PAUSED: :Paused
|
|
273
|
+
|
|
274
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Customers::PromotionalEntitlementRevokeResponse::Data::status]
|
|
275
|
+
end
|
|
276
|
+
end
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
end
|
|
280
|
+
end
|
|
281
|
+
end
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type event_report_params =
|
|
5
|
+
{ events: ::Array[Stigg::V1::EventReportParams::Event] }
|
|
6
|
+
& Stigg::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class EventReportParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor events: ::Array[Stigg::V1::EventReportParams::Event]
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
events: ::Array[Stigg::V1::EventReportParams::Event],
|
|
16
|
+
?request_options: Stigg::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
events: ::Array[Stigg::V1::EventReportParams::Event],
|
|
21
|
+
request_options: Stigg::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type event =
|
|
25
|
+
{
|
|
26
|
+
customer_id: String,
|
|
27
|
+
event_name: String,
|
|
28
|
+
idempotency_key: String,
|
|
29
|
+
dimensions: ::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension],
|
|
30
|
+
resource_id: String?,
|
|
31
|
+
timestamp: Time
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
class Event < Stigg::Internal::Type::BaseModel
|
|
35
|
+
attr_accessor customer_id: String
|
|
36
|
+
|
|
37
|
+
attr_accessor event_name: String
|
|
38
|
+
|
|
39
|
+
attr_accessor idempotency_key: String
|
|
40
|
+
|
|
41
|
+
attr_reader dimensions: ::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension]?
|
|
42
|
+
|
|
43
|
+
def dimensions=: (
|
|
44
|
+
::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension]
|
|
45
|
+
) -> ::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension]
|
|
46
|
+
|
|
47
|
+
attr_accessor resource_id: String?
|
|
48
|
+
|
|
49
|
+
attr_reader timestamp: Time?
|
|
50
|
+
|
|
51
|
+
def timestamp=: (Time) -> Time
|
|
52
|
+
|
|
53
|
+
def initialize: (
|
|
54
|
+
customer_id: String,
|
|
55
|
+
event_name: String,
|
|
56
|
+
idempotency_key: String,
|
|
57
|
+
?dimensions: ::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension],
|
|
58
|
+
?resource_id: String?,
|
|
59
|
+
?timestamp: Time
|
|
60
|
+
) -> void
|
|
61
|
+
|
|
62
|
+
def to_hash: -> {
|
|
63
|
+
customer_id: String,
|
|
64
|
+
event_name: String,
|
|
65
|
+
idempotency_key: String,
|
|
66
|
+
dimensions: ::Hash[Symbol, Stigg::Models::V1::EventReportParams::Event::dimension],
|
|
67
|
+
resource_id: String?,
|
|
68
|
+
timestamp: Time
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
type dimension = String | Float | bool
|
|
72
|
+
|
|
73
|
+
module Dimension
|
|
74
|
+
extend Stigg::Internal::Type::Union
|
|
75
|
+
|
|
76
|
+
def self?.variants: -> ::Array[Stigg::Models::V1::EventReportParams::Event::dimension]
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type event_report_response = { data: top }
|
|
5
|
+
|
|
6
|
+
class EventReportResponse < Stigg::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor data: top
|
|
8
|
+
|
|
9
|
+
def initialize: (data: top) -> void
|
|
10
|
+
|
|
11
|
+
def to_hash: -> { data: top }
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -1,19 +1,14 @@
|
|
|
1
1
|
module Stigg
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
|
-
type
|
|
5
|
-
{ data: Stigg::Models::V1::SubscriptionRetrieveResponse::Data }
|
|
4
|
+
type subscription = { data: Stigg::V1::Subscription::Data }
|
|
6
5
|
|
|
7
|
-
class
|
|
8
|
-
attr_accessor data: Stigg::
|
|
6
|
+
class Subscription < Stigg::Internal::Type::BaseModel
|
|
7
|
+
attr_accessor data: Stigg::V1::Subscription::Data
|
|
9
8
|
|
|
10
|
-
def initialize: (
|
|
11
|
-
data: Stigg::Models::V1::SubscriptionRetrieveResponse::Data
|
|
12
|
-
) -> void
|
|
9
|
+
def initialize: (data: Stigg::V1::Subscription::Data) -> void
|
|
13
10
|
|
|
14
|
-
def to_hash: -> {
|
|
15
|
-
data: Stigg::Models::V1::SubscriptionRetrieveResponse::Data
|
|
16
|
-
}
|
|
11
|
+
def to_hash: -> { data: Stigg::V1::Subscription::Data }
|
|
17
12
|
|
|
18
13
|
type data =
|
|
19
14
|
{
|
|
@@ -21,20 +16,21 @@ module Stigg
|
|
|
21
16
|
billing_id: String?,
|
|
22
17
|
created_at: Time,
|
|
23
18
|
customer_id: String,
|
|
24
|
-
payment_collection: Stigg::Models::V1::
|
|
19
|
+
payment_collection: Stigg::Models::V1::Subscription::Data::payment_collection,
|
|
25
20
|
plan_id: String,
|
|
26
|
-
pricing_type: Stigg::Models::V1::
|
|
21
|
+
pricing_type: Stigg::Models::V1::Subscription::Data::pricing_type,
|
|
27
22
|
start_date: Time,
|
|
28
|
-
status: Stigg::Models::V1::
|
|
23
|
+
status: Stigg::Models::V1::Subscription::Data::status,
|
|
29
24
|
cancellation_date: Time?,
|
|
30
|
-
cancel_reason: Stigg::Models::V1::
|
|
25
|
+
cancel_reason: Stigg::Models::V1::Subscription::Data::cancel_reason?,
|
|
31
26
|
current_billing_period_end: Time?,
|
|
32
27
|
current_billing_period_start: Time?,
|
|
33
28
|
effective_end_date: Time?,
|
|
34
29
|
end_date: Time?,
|
|
35
30
|
metadata: ::Hash[Symbol, String],
|
|
36
31
|
paying_customer_id: String?,
|
|
37
|
-
payment_collection_method: Stigg::Models::V1::
|
|
32
|
+
payment_collection_method: Stigg::Models::V1::Subscription::Data::payment_collection_method?,
|
|
33
|
+
prices: ::Array[Stigg::V1::Subscription::Data::Price],
|
|
38
34
|
resource_id: String?,
|
|
39
35
|
trial_end_date: Time?
|
|
40
36
|
}
|
|
@@ -48,19 +44,19 @@ module Stigg
|
|
|
48
44
|
|
|
49
45
|
attr_accessor customer_id: String
|
|
50
46
|
|
|
51
|
-
attr_accessor payment_collection: Stigg::Models::V1::
|
|
47
|
+
attr_accessor payment_collection: Stigg::Models::V1::Subscription::Data::payment_collection
|
|
52
48
|
|
|
53
49
|
attr_accessor plan_id: String
|
|
54
50
|
|
|
55
|
-
attr_accessor pricing_type: Stigg::Models::V1::
|
|
51
|
+
attr_accessor pricing_type: Stigg::Models::V1::Subscription::Data::pricing_type
|
|
56
52
|
|
|
57
53
|
attr_accessor start_date: Time
|
|
58
54
|
|
|
59
|
-
attr_accessor status: Stigg::Models::V1::
|
|
55
|
+
attr_accessor status: Stigg::Models::V1::Subscription::Data::status
|
|
60
56
|
|
|
61
57
|
attr_accessor cancellation_date: Time?
|
|
62
58
|
|
|
63
|
-
attr_accessor cancel_reason: Stigg::Models::V1::
|
|
59
|
+
attr_accessor cancel_reason: Stigg::Models::V1::Subscription::Data::cancel_reason?
|
|
64
60
|
|
|
65
61
|
attr_accessor current_billing_period_end: Time?
|
|
66
62
|
|
|
@@ -76,7 +72,13 @@ module Stigg
|
|
|
76
72
|
|
|
77
73
|
attr_accessor paying_customer_id: String?
|
|
78
74
|
|
|
79
|
-
attr_accessor payment_collection_method: Stigg::Models::V1::
|
|
75
|
+
attr_accessor payment_collection_method: Stigg::Models::V1::Subscription::Data::payment_collection_method?
|
|
76
|
+
|
|
77
|
+
attr_reader prices: ::Array[Stigg::V1::Subscription::Data::Price]?
|
|
78
|
+
|
|
79
|
+
def prices=: (
|
|
80
|
+
::Array[Stigg::V1::Subscription::Data::Price]
|
|
81
|
+
) -> ::Array[Stigg::V1::Subscription::Data::Price]
|
|
80
82
|
|
|
81
83
|
attr_accessor resource_id: String?
|
|
82
84
|
|
|
@@ -87,20 +89,21 @@ module Stigg
|
|
|
87
89
|
billing_id: String?,
|
|
88
90
|
created_at: Time,
|
|
89
91
|
customer_id: String,
|
|
90
|
-
payment_collection: Stigg::Models::V1::
|
|
92
|
+
payment_collection: Stigg::Models::V1::Subscription::Data::payment_collection,
|
|
91
93
|
plan_id: String,
|
|
92
|
-
pricing_type: Stigg::Models::V1::
|
|
94
|
+
pricing_type: Stigg::Models::V1::Subscription::Data::pricing_type,
|
|
93
95
|
start_date: Time,
|
|
94
|
-
status: Stigg::Models::V1::
|
|
96
|
+
status: Stigg::Models::V1::Subscription::Data::status,
|
|
95
97
|
?cancellation_date: Time?,
|
|
96
|
-
?cancel_reason: Stigg::Models::V1::
|
|
98
|
+
?cancel_reason: Stigg::Models::V1::Subscription::Data::cancel_reason?,
|
|
97
99
|
?current_billing_period_end: Time?,
|
|
98
100
|
?current_billing_period_start: Time?,
|
|
99
101
|
?effective_end_date: Time?,
|
|
100
102
|
?end_date: Time?,
|
|
101
103
|
?metadata: ::Hash[Symbol, String],
|
|
102
104
|
?paying_customer_id: String?,
|
|
103
|
-
?payment_collection_method: Stigg::Models::V1::
|
|
105
|
+
?payment_collection_method: Stigg::Models::V1::Subscription::Data::payment_collection_method?,
|
|
106
|
+
?prices: ::Array[Stigg::V1::Subscription::Data::Price],
|
|
104
107
|
?resource_id: String?,
|
|
105
108
|
?trial_end_date: Time?
|
|
106
109
|
) -> void
|
|
@@ -110,20 +113,21 @@ module Stigg
|
|
|
110
113
|
billing_id: String?,
|
|
111
114
|
created_at: Time,
|
|
112
115
|
customer_id: String,
|
|
113
|
-
payment_collection: Stigg::Models::V1::
|
|
116
|
+
payment_collection: Stigg::Models::V1::Subscription::Data::payment_collection,
|
|
114
117
|
plan_id: String,
|
|
115
|
-
pricing_type: Stigg::Models::V1::
|
|
118
|
+
pricing_type: Stigg::Models::V1::Subscription::Data::pricing_type,
|
|
116
119
|
start_date: Time,
|
|
117
|
-
status: Stigg::Models::V1::
|
|
120
|
+
status: Stigg::Models::V1::Subscription::Data::status,
|
|
118
121
|
cancellation_date: Time?,
|
|
119
|
-
cancel_reason: Stigg::Models::V1::
|
|
122
|
+
cancel_reason: Stigg::Models::V1::Subscription::Data::cancel_reason?,
|
|
120
123
|
current_billing_period_end: Time?,
|
|
121
124
|
current_billing_period_start: Time?,
|
|
122
125
|
effective_end_date: Time?,
|
|
123
126
|
end_date: Time?,
|
|
124
127
|
metadata: ::Hash[Symbol, String],
|
|
125
128
|
paying_customer_id: String?,
|
|
126
|
-
payment_collection_method: Stigg::Models::V1::
|
|
129
|
+
payment_collection_method: Stigg::Models::V1::Subscription::Data::payment_collection_method?,
|
|
130
|
+
prices: ::Array[Stigg::V1::Subscription::Data::Price],
|
|
127
131
|
resource_id: String?,
|
|
128
132
|
trial_end_date: Time?
|
|
129
133
|
}
|
|
@@ -139,7 +143,7 @@ module Stigg
|
|
|
139
143
|
FAILED: :FAILED
|
|
140
144
|
ACTION_REQUIRED: :ACTION_REQUIRED
|
|
141
145
|
|
|
142
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
146
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Subscription::Data::payment_collection]
|
|
143
147
|
end
|
|
144
148
|
|
|
145
149
|
type pricing_type = :FREE | :PAID | :CUSTOM
|
|
@@ -151,7 +155,7 @@ module Stigg
|
|
|
151
155
|
PAID: :PAID
|
|
152
156
|
CUSTOM: :CUSTOM
|
|
153
157
|
|
|
154
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
158
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Subscription::Data::pricing_type]
|
|
155
159
|
end
|
|
156
160
|
|
|
157
161
|
type status =
|
|
@@ -172,7 +176,7 @@ module Stigg
|
|
|
172
176
|
CANCELED: :CANCELED
|
|
173
177
|
NOT_STARTED: :NOT_STARTED
|
|
174
178
|
|
|
175
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
179
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Subscription::Data::status]
|
|
176
180
|
end
|
|
177
181
|
|
|
178
182
|
type cancel_reason =
|
|
@@ -203,7 +207,7 @@ module Stigg
|
|
|
203
207
|
CUSTOMER_ARCHIVED: :CustomerArchived
|
|
204
208
|
AUTO_CANCELLATION_RULE: :AutoCancellationRule
|
|
205
209
|
|
|
206
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
210
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Subscription::Data::cancel_reason]
|
|
207
211
|
end
|
|
208
212
|
|
|
209
213
|
type payment_collection_method = :CHARGE | :INVOICE | :NONE
|
|
@@ -215,7 +219,29 @@ module Stigg
|
|
|
215
219
|
INVOICE: :INVOICE
|
|
216
220
|
NONE: :NONE
|
|
217
221
|
|
|
218
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
222
|
+
def self?.values: -> ::Array[Stigg::Models::V1::Subscription::Data::payment_collection_method]
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
type price = { id: String, created_at: String, updated_at: String }
|
|
226
|
+
|
|
227
|
+
class Price < Stigg::Internal::Type::BaseModel
|
|
228
|
+
attr_accessor id: String
|
|
229
|
+
|
|
230
|
+
attr_accessor created_at: String
|
|
231
|
+
|
|
232
|
+
attr_accessor updated_at: String
|
|
233
|
+
|
|
234
|
+
def initialize: (
|
|
235
|
+
id: String,
|
|
236
|
+
created_at: String,
|
|
237
|
+
updated_at: String
|
|
238
|
+
) -> void
|
|
239
|
+
|
|
240
|
+
def to_hash: -> {
|
|
241
|
+
id: String,
|
|
242
|
+
created_at: String,
|
|
243
|
+
updated_at: String
|
|
244
|
+
}
|
|
219
245
|
end
|
|
220
246
|
end
|
|
221
247
|
end
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type subscription_cancel_params =
|
|
5
|
+
{
|
|
6
|
+
cancellation_action: Stigg::Models::V1::SubscriptionCancelParams::cancellation_action,
|
|
7
|
+
cancellation_time: Stigg::Models::V1::SubscriptionCancelParams::cancellation_time,
|
|
8
|
+
end_date: Time,
|
|
9
|
+
prorate: bool
|
|
10
|
+
}
|
|
11
|
+
& Stigg::Internal::Type::request_parameters
|
|
12
|
+
|
|
13
|
+
class SubscriptionCancelParams < Stigg::Internal::Type::BaseModel
|
|
14
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
15
|
+
include Stigg::Internal::Type::RequestParameters
|
|
16
|
+
|
|
17
|
+
attr_reader cancellation_action: Stigg::Models::V1::SubscriptionCancelParams::cancellation_action?
|
|
18
|
+
|
|
19
|
+
def cancellation_action=: (
|
|
20
|
+
Stigg::Models::V1::SubscriptionCancelParams::cancellation_action
|
|
21
|
+
) -> Stigg::Models::V1::SubscriptionCancelParams::cancellation_action
|
|
22
|
+
|
|
23
|
+
attr_reader cancellation_time: Stigg::Models::V1::SubscriptionCancelParams::cancellation_time?
|
|
24
|
+
|
|
25
|
+
def cancellation_time=: (
|
|
26
|
+
Stigg::Models::V1::SubscriptionCancelParams::cancellation_time
|
|
27
|
+
) -> Stigg::Models::V1::SubscriptionCancelParams::cancellation_time
|
|
28
|
+
|
|
29
|
+
attr_reader end_date: Time?
|
|
30
|
+
|
|
31
|
+
def end_date=: (Time) -> Time
|
|
32
|
+
|
|
33
|
+
attr_reader prorate: bool?
|
|
34
|
+
|
|
35
|
+
def prorate=: (bool) -> bool
|
|
36
|
+
|
|
37
|
+
def initialize: (
|
|
38
|
+
?cancellation_action: Stigg::Models::V1::SubscriptionCancelParams::cancellation_action,
|
|
39
|
+
?cancellation_time: Stigg::Models::V1::SubscriptionCancelParams::cancellation_time,
|
|
40
|
+
?end_date: Time,
|
|
41
|
+
?prorate: bool,
|
|
42
|
+
?request_options: Stigg::request_opts
|
|
43
|
+
) -> void
|
|
44
|
+
|
|
45
|
+
def to_hash: -> {
|
|
46
|
+
cancellation_action: Stigg::Models::V1::SubscriptionCancelParams::cancellation_action,
|
|
47
|
+
cancellation_time: Stigg::Models::V1::SubscriptionCancelParams::cancellation_time,
|
|
48
|
+
end_date: Time,
|
|
49
|
+
prorate: bool,
|
|
50
|
+
request_options: Stigg::RequestOptions
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
type cancellation_action = :DEFAULT | :REVOKE_ENTITLEMENTS
|
|
54
|
+
|
|
55
|
+
module CancellationAction
|
|
56
|
+
extend Stigg::Internal::Type::Enum
|
|
57
|
+
|
|
58
|
+
DEFAULT: :DEFAULT
|
|
59
|
+
REVOKE_ENTITLEMENTS: :REVOKE_ENTITLEMENTS
|
|
60
|
+
|
|
61
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCancelParams::cancellation_action]
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
type cancellation_time =
|
|
65
|
+
:END_OF_BILLING_PERIOD | :IMMEDIATE | :SPECIFIC_DATE
|
|
66
|
+
|
|
67
|
+
module CancellationTime
|
|
68
|
+
extend Stigg::Internal::Type::Enum
|
|
69
|
+
|
|
70
|
+
END_OF_BILLING_PERIOD: :END_OF_BILLING_PERIOD
|
|
71
|
+
IMMEDIATE: :IMMEDIATE
|
|
72
|
+
SPECIFIC_DATE: :SPECIFIC_DATE
|
|
73
|
+
|
|
74
|
+
def self?.values: -> ::Array[Stigg::Models::V1::SubscriptionCancelParams::cancellation_time]
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
end
|
|
79
|
+
end
|