stigg 0.1.0.pre.alpha.1 → 0.1.0.pre.alpha.2
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 +14 -0
- data/README.md +29 -1
- data/lib/stigg/internal/my_cursor_id_page.rb +32 -4
- data/lib/stigg/models/v1/coupon_create_params.rb +2 -0
- data/lib/stigg/models/v1/coupon_create_response.rb +11 -6
- 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/coupon_retrieve_response.rb +11 -6
- data/lib/stigg/models/v1/customer_create_params.rb +2 -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_response.rb +8 -1
- 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/subscription_create_params.rb +1485 -6
- data/lib/stigg/models/v1/subscription_create_response.rb +703 -4
- data/lib/stigg/models/v1/subscription_delegate_params.rb +7 -2
- data/lib/stigg/models/v1/subscription_delegate_response.rb +42 -2
- 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_migrate_response.rb +42 -2
- 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_retrieve_response.rb +42 -2
- data/lib/stigg/models/v1/subscription_transfer_params.rb +2 -6
- data/lib/stigg/models/v1/subscription_transfer_response.rb +42 -2
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rb +2 -0
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +2 -0
- data/lib/stigg/models/v1_create_event_params.rb +2 -0
- data/lib/stigg/models/v1_create_event_response.rb +8 -1
- data/lib/stigg/models/v1_create_usage_params.rb +19 -3
- data/lib/stigg/models/v1_create_usage_response.rb +7 -1
- data/lib/stigg/resources/v1/coupons.rb +12 -10
- data/lib/stigg/resources/v1/customers/payment_method.rb +6 -5
- data/lib/stigg/resources/v1/customers/usage.rb +0 -41
- data/lib/stigg/resources/v1/customers.rb +20 -20
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +6 -4
- data/lib/stigg/resources/v1/subscriptions.rb +74 -49
- data/lib/stigg/resources/v1.rb +2 -2
- data/lib/stigg/version.rb +1 -1
- data/lib/stigg.rb +0 -7
- data/rbi/stigg/internal/my_cursor_id_page.rbi +27 -0
- data/rbi/stigg/models/v1/coupon_create_params.rbi +1 -0
- data/rbi/stigg/models/v1/coupon_create_response.rbi +11 -10
- 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/coupon_retrieve_response.rbi +11 -10
- data/rbi/stigg/models/v1/customer_create_params.rbi +1 -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_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/subscription_create_params.rbi +4975 -84
- data/rbi/stigg/models/v1/subscription_create_response.rbi +2508 -1
- data/rbi/stigg/models/v1/subscription_delegate_params.rbi +6 -2
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +84 -1
- 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_migrate_response.rbi +84 -1
- 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_retrieve_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscription_transfer_params.rbi +2 -4
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +84 -1
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +1 -0
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rbi +1 -0
- data/rbi/stigg/models/v1_create_event_params.rbi +1 -0
- data/rbi/stigg/models/v1_create_event_response.rbi +8 -1
- data/rbi/stigg/models/v1_create_usage_params.rbi +44 -4
- data/rbi/stigg/models/v1_create_usage_response.rbi +8 -1
- data/rbi/stigg/resources/v1/coupons.rbi +20 -12
- data/rbi/stigg/resources/v1/customers/payment_method.rbi +9 -3
- data/rbi/stigg/resources/v1/customers/usage.rbi +0 -29
- data/rbi/stigg/resources/v1/customers.rbi +34 -20
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +12 -4
- data/rbi/stigg/resources/v1/subscriptions.rbi +102 -23
- data/rbi/stigg/resources/v1.rbi +2 -2
- data/sig/stigg/internal/my_cursor_id_page.rbs +17 -0
- data/sig/stigg/models/v1/coupon_create_response.rbs +4 -4
- 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/coupon_retrieve_response.rbs +4 -4
- 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/subscription_create_params.rbs +2029 -5
- data/sig/stigg/models/v1/subscription_create_response.rbs +1022 -0
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +31 -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_migrate_response.rbs +31 -0
- data/sig/stigg/models/v1/subscription_preview_params.rbs +2 -6
- data/sig/stigg/models/v1/subscription_retrieve_response.rbs +31 -0
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +31 -0
- data/sig/stigg/models/v1_create_usage_params.rbs +15 -5
- data/sig/stigg/resources/v1/coupons.rbs +3 -3
- data/sig/stigg/resources/v1/customers/usage.rbs +0 -10
- data/sig/stigg/resources/v1/customers.rbs +3 -5
- data/sig/stigg/resources/v1/subscriptions.rbs +19 -4
- metadata +2 -23
- data/lib/stigg/models/v1/customers/promotional_create_params.rb +0 -294
- data/lib/stigg/models/v1/customers/promotional_create_response.rb +0 -268
- data/lib/stigg/models/v1/customers/promotional_revoke_params.rb +0 -24
- data/lib/stigg/models/v1/customers/promotional_revoke_response.rb +0 -268
- 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/resources/v1/customers/promotional.rb +0 -69
- data/rbi/stigg/models/v1/customers/promotional_create_params.rbi +0 -639
- data/rbi/stigg/models/v1/customers/promotional_create_response.rbi +0 -495
- data/rbi/stigg/models/v1/customers/promotional_revoke_params.rbi +0 -42
- 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/resources/v1/customers/promotional.rbi +0 -53
- data/sig/stigg/models/v1/customers/promotional_create_params.rbs +0 -234
- data/sig/stigg/models/v1/customers/promotional_create_response.rbs +0 -209
- data/sig/stigg/models/v1/customers/promotional_revoke_params.rbs +0 -27
- 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/resources/v1/customers/promotional.rbs +0 -23
|
@@ -12,160 +12,304 @@ module Stigg
|
|
|
12
12
|
)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
# Customer slug
|
|
16
|
+
sig { returns(String) }
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
19
|
+
# Timestamp of when the record was deleted
|
|
20
|
+
sig { returns(T.nilable(Time)) }
|
|
21
|
+
attr_accessor :archived_at
|
|
22
|
+
|
|
23
|
+
# Timestamp of when the record was created
|
|
24
|
+
sig { returns(Time) }
|
|
25
|
+
attr_accessor :created_at
|
|
26
|
+
|
|
27
|
+
# Timestamp of when the record was last updated
|
|
28
|
+
sig { returns(Time) }
|
|
29
|
+
attr_accessor :updated_at
|
|
30
|
+
|
|
31
|
+
# Customer level coupon
|
|
32
|
+
sig { returns(T.nilable(String)) }
|
|
33
|
+
attr_accessor :coupon_id
|
|
34
|
+
|
|
35
|
+
# The default payment method details
|
|
36
|
+
sig do
|
|
37
|
+
returns(
|
|
38
|
+
T.nilable(
|
|
39
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
attr_reader :default_payment_method
|
|
44
|
+
|
|
45
|
+
sig do
|
|
46
|
+
params(
|
|
47
|
+
default_payment_method:
|
|
48
|
+
T.nilable(
|
|
49
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::OrHash
|
|
50
|
+
)
|
|
51
|
+
).void
|
|
52
|
+
end
|
|
53
|
+
attr_writer :default_payment_method
|
|
54
|
+
|
|
55
|
+
# The email of the customer
|
|
56
|
+
sig { returns(T.nilable(String)) }
|
|
57
|
+
attr_accessor :email
|
|
58
|
+
|
|
59
|
+
# List of integrations
|
|
60
|
+
sig do
|
|
61
|
+
returns(
|
|
62
|
+
T.nilable(
|
|
63
|
+
T::Array[Stigg::Models::V1::CustomerListResponse::Integration]
|
|
64
|
+
)
|
|
65
|
+
)
|
|
66
|
+
end
|
|
67
|
+
attr_reader :integrations
|
|
17
68
|
|
|
18
69
|
sig do
|
|
19
70
|
params(
|
|
20
|
-
|
|
21
|
-
T::Array[
|
|
71
|
+
integrations:
|
|
72
|
+
T::Array[
|
|
73
|
+
Stigg::Models::V1::CustomerListResponse::Integration::OrHash
|
|
74
|
+
]
|
|
75
|
+
).void
|
|
76
|
+
end
|
|
77
|
+
attr_writer :integrations
|
|
78
|
+
|
|
79
|
+
# Additional metadata
|
|
80
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
81
|
+
attr_reader :metadata
|
|
82
|
+
|
|
83
|
+
sig { params(metadata: T::Hash[Symbol, String]).void }
|
|
84
|
+
attr_writer :metadata
|
|
85
|
+
|
|
86
|
+
# The name of the customer
|
|
87
|
+
sig { returns(T.nilable(String)) }
|
|
88
|
+
attr_accessor :name
|
|
89
|
+
|
|
90
|
+
# A customer can be either an organization or an individual
|
|
91
|
+
sig do
|
|
92
|
+
params(
|
|
93
|
+
id: String,
|
|
94
|
+
archived_at: T.nilable(Time),
|
|
95
|
+
created_at: Time,
|
|
96
|
+
updated_at: Time,
|
|
97
|
+
coupon_id: T.nilable(String),
|
|
98
|
+
default_payment_method:
|
|
99
|
+
T.nilable(
|
|
100
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::OrHash
|
|
101
|
+
),
|
|
102
|
+
email: T.nilable(String),
|
|
103
|
+
integrations:
|
|
104
|
+
T::Array[
|
|
105
|
+
Stigg::Models::V1::CustomerListResponse::Integration::OrHash
|
|
106
|
+
],
|
|
107
|
+
metadata: T::Hash[Symbol, String],
|
|
108
|
+
name: T.nilable(String)
|
|
22
109
|
).returns(T.attached_class)
|
|
23
110
|
end
|
|
24
|
-
def self.new(
|
|
111
|
+
def self.new(
|
|
112
|
+
# Customer slug
|
|
113
|
+
id:,
|
|
114
|
+
# Timestamp of when the record was deleted
|
|
115
|
+
archived_at:,
|
|
116
|
+
# Timestamp of when the record was created
|
|
117
|
+
created_at:,
|
|
118
|
+
# Timestamp of when the record was last updated
|
|
119
|
+
updated_at:,
|
|
120
|
+
# Customer level coupon
|
|
121
|
+
coupon_id: nil,
|
|
122
|
+
# The default payment method details
|
|
123
|
+
default_payment_method: nil,
|
|
124
|
+
# The email of the customer
|
|
125
|
+
email: nil,
|
|
126
|
+
# List of integrations
|
|
127
|
+
integrations: nil,
|
|
128
|
+
# Additional metadata
|
|
129
|
+
metadata: nil,
|
|
130
|
+
# The name of the customer
|
|
131
|
+
name: nil
|
|
132
|
+
)
|
|
25
133
|
end
|
|
26
134
|
|
|
27
135
|
sig do
|
|
28
136
|
override.returns(
|
|
29
|
-
{
|
|
137
|
+
{
|
|
138
|
+
id: String,
|
|
139
|
+
archived_at: T.nilable(Time),
|
|
140
|
+
created_at: Time,
|
|
141
|
+
updated_at: Time,
|
|
142
|
+
coupon_id: T.nilable(String),
|
|
143
|
+
default_payment_method:
|
|
144
|
+
T.nilable(
|
|
145
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod
|
|
146
|
+
),
|
|
147
|
+
email: T.nilable(String),
|
|
148
|
+
integrations:
|
|
149
|
+
T::Array[Stigg::Models::V1::CustomerListResponse::Integration],
|
|
150
|
+
metadata: T::Hash[Symbol, String],
|
|
151
|
+
name: T.nilable(String)
|
|
152
|
+
}
|
|
30
153
|
)
|
|
31
154
|
end
|
|
32
155
|
def to_hash
|
|
33
156
|
end
|
|
34
157
|
|
|
35
|
-
class
|
|
158
|
+
class DefaultPaymentMethod < Stigg::Internal::Type::BaseModel
|
|
36
159
|
OrHash =
|
|
37
160
|
T.type_alias do
|
|
38
161
|
T.any(
|
|
39
|
-
Stigg::Models::V1::CustomerListResponse::
|
|
162
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod,
|
|
40
163
|
Stigg::Internal::AnyHash
|
|
41
164
|
)
|
|
42
165
|
end
|
|
43
166
|
|
|
44
|
-
#
|
|
45
|
-
sig { returns(String) }
|
|
46
|
-
attr_accessor :
|
|
47
|
-
|
|
48
|
-
# Timestamp of when the record was deleted
|
|
49
|
-
sig { returns(T.nilable(Time)) }
|
|
50
|
-
attr_accessor :archived_at
|
|
51
|
-
|
|
52
|
-
# Timestamp of when the record was created
|
|
53
|
-
sig { returns(Time) }
|
|
54
|
-
attr_accessor :created_at
|
|
167
|
+
# The default payment method id
|
|
168
|
+
sig { returns(T.nilable(String)) }
|
|
169
|
+
attr_accessor :billing_id
|
|
55
170
|
|
|
56
|
-
#
|
|
57
|
-
sig { returns(
|
|
58
|
-
attr_accessor :
|
|
171
|
+
# The expiration month of the default payment method
|
|
172
|
+
sig { returns(T.nilable(Float)) }
|
|
173
|
+
attr_accessor :card_expiry_month
|
|
59
174
|
|
|
60
|
-
#
|
|
61
|
-
sig { returns(
|
|
62
|
-
attr_accessor :
|
|
175
|
+
# The expiration year of the default payment method
|
|
176
|
+
sig { returns(T.nilable(Float)) }
|
|
177
|
+
attr_accessor :card_expiry_year
|
|
63
178
|
|
|
64
|
-
#
|
|
179
|
+
# The last 4 digits of the default payment method
|
|
65
180
|
sig { returns(T.nilable(String)) }
|
|
66
|
-
attr_accessor :
|
|
181
|
+
attr_accessor :card_last4_digits
|
|
67
182
|
|
|
68
|
-
# The default payment method
|
|
183
|
+
# The default payment method type
|
|
69
184
|
sig do
|
|
70
185
|
returns(
|
|
71
|
-
|
|
72
|
-
Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod
|
|
73
|
-
)
|
|
186
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::Type::TaggedSymbol
|
|
74
187
|
)
|
|
75
188
|
end
|
|
76
|
-
|
|
189
|
+
attr_accessor :type
|
|
77
190
|
|
|
191
|
+
# The default payment method details
|
|
78
192
|
sig do
|
|
79
193
|
params(
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
194
|
+
billing_id: T.nilable(String),
|
|
195
|
+
card_expiry_month: T.nilable(Float),
|
|
196
|
+
card_expiry_year: T.nilable(Float),
|
|
197
|
+
card_last4_digits: T.nilable(String),
|
|
198
|
+
type:
|
|
199
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::Type::OrSymbol
|
|
200
|
+
).returns(T.attached_class)
|
|
201
|
+
end
|
|
202
|
+
def self.new(
|
|
203
|
+
# The default payment method id
|
|
204
|
+
billing_id:,
|
|
205
|
+
# The expiration month of the default payment method
|
|
206
|
+
card_expiry_month:,
|
|
207
|
+
# The expiration year of the default payment method
|
|
208
|
+
card_expiry_year:,
|
|
209
|
+
# The last 4 digits of the default payment method
|
|
210
|
+
card_last4_digits:,
|
|
211
|
+
# The default payment method type
|
|
212
|
+
type:
|
|
213
|
+
)
|
|
85
214
|
end
|
|
86
|
-
attr_writer :default_payment_method
|
|
87
|
-
|
|
88
|
-
# The email of the customer
|
|
89
|
-
sig { returns(T.nilable(String)) }
|
|
90
|
-
attr_accessor :email
|
|
91
215
|
|
|
92
|
-
# List of integrations
|
|
93
216
|
sig do
|
|
94
|
-
returns(
|
|
95
|
-
|
|
96
|
-
T
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
217
|
+
override.returns(
|
|
218
|
+
{
|
|
219
|
+
billing_id: T.nilable(String),
|
|
220
|
+
card_expiry_month: T.nilable(Float),
|
|
221
|
+
card_expiry_year: T.nilable(Float),
|
|
222
|
+
card_last4_digits: T.nilable(String),
|
|
223
|
+
type:
|
|
224
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::Type::TaggedSymbol
|
|
225
|
+
}
|
|
100
226
|
)
|
|
101
227
|
end
|
|
102
|
-
|
|
228
|
+
def to_hash
|
|
229
|
+
end
|
|
103
230
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
231
|
+
# The default payment method type
|
|
232
|
+
module Type
|
|
233
|
+
extend Stigg::Internal::Type::Enum
|
|
234
|
+
|
|
235
|
+
TaggedSymbol =
|
|
236
|
+
T.type_alias do
|
|
237
|
+
T.all(
|
|
238
|
+
Symbol,
|
|
239
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::Type
|
|
240
|
+
)
|
|
241
|
+
end
|
|
242
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
243
|
+
|
|
244
|
+
CARD =
|
|
245
|
+
T.let(
|
|
246
|
+
:CARD,
|
|
247
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::Type::TaggedSymbol
|
|
248
|
+
)
|
|
249
|
+
BANK =
|
|
250
|
+
T.let(
|
|
251
|
+
:BANK,
|
|
252
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::Type::TaggedSymbol
|
|
253
|
+
)
|
|
254
|
+
CASH_APP =
|
|
255
|
+
T.let(
|
|
256
|
+
:CASH_APP,
|
|
257
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::Type::TaggedSymbol
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
sig do
|
|
261
|
+
override.returns(
|
|
107
262
|
T::Array[
|
|
108
|
-
Stigg::Models::V1::CustomerListResponse::
|
|
263
|
+
Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::Type::TaggedSymbol
|
|
109
264
|
]
|
|
110
|
-
|
|
265
|
+
)
|
|
266
|
+
end
|
|
267
|
+
def self.values
|
|
268
|
+
end
|
|
111
269
|
end
|
|
112
|
-
|
|
270
|
+
end
|
|
113
271
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
272
|
+
class Integration < Stigg::Internal::Type::BaseModel
|
|
273
|
+
OrHash =
|
|
274
|
+
T.type_alias do
|
|
275
|
+
T.any(
|
|
276
|
+
Stigg::Models::V1::CustomerListResponse::Integration,
|
|
277
|
+
Stigg::Internal::AnyHash
|
|
278
|
+
)
|
|
279
|
+
end
|
|
117
280
|
|
|
118
|
-
|
|
119
|
-
|
|
281
|
+
# Integration details
|
|
282
|
+
sig { returns(String) }
|
|
283
|
+
attr_accessor :id
|
|
120
284
|
|
|
121
|
-
#
|
|
285
|
+
# Synced entity id
|
|
122
286
|
sig { returns(T.nilable(String)) }
|
|
123
|
-
attr_accessor :
|
|
287
|
+
attr_accessor :synced_entity_id
|
|
124
288
|
|
|
289
|
+
# The vendor identifier of integration
|
|
290
|
+
sig do
|
|
291
|
+
returns(
|
|
292
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
293
|
+
)
|
|
294
|
+
end
|
|
295
|
+
attr_accessor :vendor_identifier
|
|
296
|
+
|
|
297
|
+
# External billing or CRM integration link
|
|
125
298
|
sig do
|
|
126
299
|
params(
|
|
127
300
|
id: String,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
updated_at: Time,
|
|
132
|
-
coupon_id: T.nilable(String),
|
|
133
|
-
default_payment_method:
|
|
134
|
-
T.nilable(
|
|
135
|
-
Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::OrHash
|
|
136
|
-
),
|
|
137
|
-
email: T.nilable(String),
|
|
138
|
-
integrations:
|
|
139
|
-
T::Array[
|
|
140
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::OrHash
|
|
141
|
-
],
|
|
142
|
-
metadata: T::Hash[Symbol, String],
|
|
143
|
-
name: T.nilable(String)
|
|
301
|
+
synced_entity_id: T.nilable(String),
|
|
302
|
+
vendor_identifier:
|
|
303
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::OrSymbol
|
|
144
304
|
).returns(T.attached_class)
|
|
145
305
|
end
|
|
146
306
|
def self.new(
|
|
147
|
-
#
|
|
307
|
+
# Integration details
|
|
148
308
|
id:,
|
|
149
|
-
#
|
|
150
|
-
|
|
151
|
-
#
|
|
152
|
-
|
|
153
|
-
# Cursor ID for query pagination
|
|
154
|
-
cursor_id:,
|
|
155
|
-
# Timestamp of when the record was last updated
|
|
156
|
-
updated_at:,
|
|
157
|
-
# Customer level coupon
|
|
158
|
-
coupon_id: nil,
|
|
159
|
-
# The default payment method details
|
|
160
|
-
default_payment_method: nil,
|
|
161
|
-
# The email of the customer
|
|
162
|
-
email: nil,
|
|
163
|
-
# List of integrations
|
|
164
|
-
integrations: nil,
|
|
165
|
-
# Additional metadata
|
|
166
|
-
metadata: nil,
|
|
167
|
-
# The name of the customer
|
|
168
|
-
name: nil
|
|
309
|
+
# Synced entity id
|
|
310
|
+
synced_entity_id:,
|
|
311
|
+
# The vendor identifier of integration
|
|
312
|
+
vendor_identifier:
|
|
169
313
|
)
|
|
170
314
|
end
|
|
171
315
|
|
|
@@ -173,271 +317,87 @@ module Stigg
|
|
|
173
317
|
override.returns(
|
|
174
318
|
{
|
|
175
319
|
id: String,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
updated_at: Time,
|
|
180
|
-
coupon_id: T.nilable(String),
|
|
181
|
-
default_payment_method:
|
|
182
|
-
T.nilable(
|
|
183
|
-
Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod
|
|
184
|
-
),
|
|
185
|
-
email: T.nilable(String),
|
|
186
|
-
integrations:
|
|
187
|
-
T::Array[
|
|
188
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration
|
|
189
|
-
],
|
|
190
|
-
metadata: T::Hash[Symbol, String],
|
|
191
|
-
name: T.nilable(String)
|
|
320
|
+
synced_entity_id: T.nilable(String),
|
|
321
|
+
vendor_identifier:
|
|
322
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
192
323
|
}
|
|
193
324
|
)
|
|
194
325
|
end
|
|
195
326
|
def to_hash
|
|
196
327
|
end
|
|
197
328
|
|
|
198
|
-
|
|
199
|
-
|
|
329
|
+
# The vendor identifier of integration
|
|
330
|
+
module VendorIdentifier
|
|
331
|
+
extend Stigg::Internal::Type::Enum
|
|
332
|
+
|
|
333
|
+
TaggedSymbol =
|
|
200
334
|
T.type_alias do
|
|
201
|
-
T.
|
|
202
|
-
|
|
203
|
-
Stigg::
|
|
335
|
+
T.all(
|
|
336
|
+
Symbol,
|
|
337
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier
|
|
204
338
|
)
|
|
205
339
|
end
|
|
340
|
+
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
206
341
|
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
# The expiration month of the default payment method
|
|
212
|
-
sig { returns(T.nilable(Float)) }
|
|
213
|
-
attr_accessor :card_expiry_month
|
|
214
|
-
|
|
215
|
-
# The expiration year of the default payment method
|
|
216
|
-
sig { returns(T.nilable(Float)) }
|
|
217
|
-
attr_accessor :card_expiry_year
|
|
218
|
-
|
|
219
|
-
# The last 4 digits of the default payment method
|
|
220
|
-
sig { returns(T.nilable(String)) }
|
|
221
|
-
attr_accessor :card_last4_digits
|
|
222
|
-
|
|
223
|
-
# The default payment method type
|
|
224
|
-
sig do
|
|
225
|
-
returns(
|
|
226
|
-
Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::Type::TaggedSymbol
|
|
342
|
+
AUTH0 =
|
|
343
|
+
T.let(
|
|
344
|
+
:AUTH0,
|
|
345
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
227
346
|
)
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
sig do
|
|
233
|
-
params(
|
|
234
|
-
billing_id: T.nilable(String),
|
|
235
|
-
card_expiry_month: T.nilable(Float),
|
|
236
|
-
card_expiry_year: T.nilable(Float),
|
|
237
|
-
card_last4_digits: T.nilable(String),
|
|
238
|
-
type:
|
|
239
|
-
Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::Type::OrSymbol
|
|
240
|
-
).returns(T.attached_class)
|
|
241
|
-
end
|
|
242
|
-
def self.new(
|
|
243
|
-
# The default payment method id
|
|
244
|
-
billing_id:,
|
|
245
|
-
# The expiration month of the default payment method
|
|
246
|
-
card_expiry_month:,
|
|
247
|
-
# The expiration year of the default payment method
|
|
248
|
-
card_expiry_year:,
|
|
249
|
-
# The last 4 digits of the default payment method
|
|
250
|
-
card_last4_digits:,
|
|
251
|
-
# The default payment method type
|
|
252
|
-
type:
|
|
253
|
-
)
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
sig do
|
|
257
|
-
override.returns(
|
|
258
|
-
{
|
|
259
|
-
billing_id: T.nilable(String),
|
|
260
|
-
card_expiry_month: T.nilable(Float),
|
|
261
|
-
card_expiry_year: T.nilable(Float),
|
|
262
|
-
card_last4_digits: T.nilable(String),
|
|
263
|
-
type:
|
|
264
|
-
Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::Type::TaggedSymbol
|
|
265
|
-
}
|
|
347
|
+
ZUORA =
|
|
348
|
+
T.let(
|
|
349
|
+
:ZUORA,
|
|
350
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
266
351
|
)
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
end
|
|
307
|
-
def self.values
|
|
308
|
-
end
|
|
309
|
-
end
|
|
310
|
-
end
|
|
311
|
-
|
|
312
|
-
class Integration < Stigg::Internal::Type::BaseModel
|
|
313
|
-
OrHash =
|
|
314
|
-
T.type_alias do
|
|
315
|
-
T.any(
|
|
316
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration,
|
|
317
|
-
Stigg::Internal::AnyHash
|
|
318
|
-
)
|
|
319
|
-
end
|
|
320
|
-
|
|
321
|
-
# Integration details
|
|
322
|
-
sig { returns(String) }
|
|
323
|
-
attr_accessor :id
|
|
324
|
-
|
|
325
|
-
# Synced entity id
|
|
326
|
-
sig { returns(T.nilable(String)) }
|
|
327
|
-
attr_accessor :synced_entity_id
|
|
328
|
-
|
|
329
|
-
# The vendor identifier of integration
|
|
330
|
-
sig do
|
|
331
|
-
returns(
|
|
332
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
352
|
+
STRIPE =
|
|
353
|
+
T.let(
|
|
354
|
+
:STRIPE,
|
|
355
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
356
|
+
)
|
|
357
|
+
HUBSPOT =
|
|
358
|
+
T.let(
|
|
359
|
+
:HUBSPOT,
|
|
360
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
361
|
+
)
|
|
362
|
+
AWS_MARKETPLACE =
|
|
363
|
+
T.let(
|
|
364
|
+
:AWS_MARKETPLACE,
|
|
365
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
366
|
+
)
|
|
367
|
+
SNOWFLAKE =
|
|
368
|
+
T.let(
|
|
369
|
+
:SNOWFLAKE,
|
|
370
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
371
|
+
)
|
|
372
|
+
SALESFORCE =
|
|
373
|
+
T.let(
|
|
374
|
+
:SALESFORCE,
|
|
375
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
376
|
+
)
|
|
377
|
+
BIG_QUERY =
|
|
378
|
+
T.let(
|
|
379
|
+
:BIG_QUERY,
|
|
380
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
381
|
+
)
|
|
382
|
+
OPEN_FGA =
|
|
383
|
+
T.let(
|
|
384
|
+
:OPEN_FGA,
|
|
385
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
386
|
+
)
|
|
387
|
+
APP_STORE =
|
|
388
|
+
T.let(
|
|
389
|
+
:APP_STORE,
|
|
390
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
333
391
|
)
|
|
334
|
-
end
|
|
335
|
-
attr_accessor :vendor_identifier
|
|
336
|
-
|
|
337
|
-
sig do
|
|
338
|
-
params(
|
|
339
|
-
id: String,
|
|
340
|
-
synced_entity_id: T.nilable(String),
|
|
341
|
-
vendor_identifier:
|
|
342
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::OrSymbol
|
|
343
|
-
).returns(T.attached_class)
|
|
344
|
-
end
|
|
345
|
-
def self.new(
|
|
346
|
-
# Integration details
|
|
347
|
-
id:,
|
|
348
|
-
# Synced entity id
|
|
349
|
-
synced_entity_id:,
|
|
350
|
-
# The vendor identifier of integration
|
|
351
|
-
vendor_identifier:
|
|
352
|
-
)
|
|
353
|
-
end
|
|
354
392
|
|
|
355
393
|
sig do
|
|
356
394
|
override.returns(
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
vendor_identifier:
|
|
361
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
362
|
-
}
|
|
395
|
+
T::Array[
|
|
396
|
+
Stigg::Models::V1::CustomerListResponse::Integration::VendorIdentifier::TaggedSymbol
|
|
397
|
+
]
|
|
363
398
|
)
|
|
364
399
|
end
|
|
365
|
-
def
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
# The vendor identifier of integration
|
|
369
|
-
module VendorIdentifier
|
|
370
|
-
extend Stigg::Internal::Type::Enum
|
|
371
|
-
|
|
372
|
-
TaggedSymbol =
|
|
373
|
-
T.type_alias do
|
|
374
|
-
T.all(
|
|
375
|
-
Symbol,
|
|
376
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier
|
|
377
|
-
)
|
|
378
|
-
end
|
|
379
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
380
|
-
|
|
381
|
-
AUTH0 =
|
|
382
|
-
T.let(
|
|
383
|
-
:AUTH0,
|
|
384
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
385
|
-
)
|
|
386
|
-
ZUORA =
|
|
387
|
-
T.let(
|
|
388
|
-
:ZUORA,
|
|
389
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
390
|
-
)
|
|
391
|
-
STRIPE =
|
|
392
|
-
T.let(
|
|
393
|
-
:STRIPE,
|
|
394
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
395
|
-
)
|
|
396
|
-
HUBSPOT =
|
|
397
|
-
T.let(
|
|
398
|
-
:HUBSPOT,
|
|
399
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
400
|
-
)
|
|
401
|
-
AWS_MARKETPLACE =
|
|
402
|
-
T.let(
|
|
403
|
-
:AWS_MARKETPLACE,
|
|
404
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
405
|
-
)
|
|
406
|
-
SNOWFLAKE =
|
|
407
|
-
T.let(
|
|
408
|
-
:SNOWFLAKE,
|
|
409
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
410
|
-
)
|
|
411
|
-
SALESFORCE =
|
|
412
|
-
T.let(
|
|
413
|
-
:SALESFORCE,
|
|
414
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
415
|
-
)
|
|
416
|
-
BIG_QUERY =
|
|
417
|
-
T.let(
|
|
418
|
-
:BIG_QUERY,
|
|
419
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
420
|
-
)
|
|
421
|
-
OPEN_FGA =
|
|
422
|
-
T.let(
|
|
423
|
-
:OPEN_FGA,
|
|
424
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
425
|
-
)
|
|
426
|
-
APP_STORE =
|
|
427
|
-
T.let(
|
|
428
|
-
:APP_STORE,
|
|
429
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
430
|
-
)
|
|
431
|
-
|
|
432
|
-
sig do
|
|
433
|
-
override.returns(
|
|
434
|
-
T::Array[
|
|
435
|
-
Stigg::Models::V1::CustomerListResponse::Data::Integration::VendorIdentifier::TaggedSymbol
|
|
436
|
-
]
|
|
437
|
-
)
|
|
438
|
-
end
|
|
439
|
-
def self.values
|
|
440
|
-
end
|
|
400
|
+
def self.values
|
|
441
401
|
end
|
|
442
402
|
end
|
|
443
403
|
end
|