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,74 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type customer_import_params =
|
|
5
|
+
{ customers: ::Array[Stigg::V1::CustomerImportParams::Customer] }
|
|
6
|
+
& Stigg::Internal::Type::request_parameters
|
|
7
|
+
|
|
8
|
+
class CustomerImportParams < Stigg::Internal::Type::BaseModel
|
|
9
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
|
+
include Stigg::Internal::Type::RequestParameters
|
|
11
|
+
|
|
12
|
+
attr_accessor customers: ::Array[Stigg::V1::CustomerImportParams::Customer]
|
|
13
|
+
|
|
14
|
+
def initialize: (
|
|
15
|
+
customers: ::Array[Stigg::V1::CustomerImportParams::Customer],
|
|
16
|
+
?request_options: Stigg::request_opts
|
|
17
|
+
) -> void
|
|
18
|
+
|
|
19
|
+
def to_hash: -> {
|
|
20
|
+
customers: ::Array[Stigg::V1::CustomerImportParams::Customer],
|
|
21
|
+
request_options: Stigg::RequestOptions
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
type customer =
|
|
25
|
+
{
|
|
26
|
+
id: String,
|
|
27
|
+
email: String?,
|
|
28
|
+
name: String?,
|
|
29
|
+
metadata: ::Hash[Symbol, String],
|
|
30
|
+
payment_method_id: String,
|
|
31
|
+
updated_at: Time
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
class Customer < Stigg::Internal::Type::BaseModel
|
|
35
|
+
attr_accessor id: String
|
|
36
|
+
|
|
37
|
+
attr_accessor email: String?
|
|
38
|
+
|
|
39
|
+
attr_accessor name: String?
|
|
40
|
+
|
|
41
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
42
|
+
|
|
43
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
44
|
+
|
|
45
|
+
attr_reader payment_method_id: String?
|
|
46
|
+
|
|
47
|
+
def payment_method_id=: (String) -> String
|
|
48
|
+
|
|
49
|
+
attr_reader updated_at: Time?
|
|
50
|
+
|
|
51
|
+
def updated_at=: (Time) -> Time
|
|
52
|
+
|
|
53
|
+
def initialize: (
|
|
54
|
+
id: String,
|
|
55
|
+
email: String?,
|
|
56
|
+
name: String?,
|
|
57
|
+
?metadata: ::Hash[Symbol, String],
|
|
58
|
+
?payment_method_id: String,
|
|
59
|
+
?updated_at: Time
|
|
60
|
+
) -> void
|
|
61
|
+
|
|
62
|
+
def to_hash: -> {
|
|
63
|
+
id: String,
|
|
64
|
+
email: String?,
|
|
65
|
+
name: String?,
|
|
66
|
+
metadata: ::Hash[Symbol, String],
|
|
67
|
+
payment_method_id: String,
|
|
68
|
+
updated_at: Time
|
|
69
|
+
}
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
module Stigg
|
|
2
|
+
module Models
|
|
3
|
+
module V1
|
|
4
|
+
type customer_import_response =
|
|
5
|
+
{ data: Stigg::Models::V1::CustomerImportResponse::Data }
|
|
6
|
+
|
|
7
|
+
class CustomerImportResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor data: Stigg::Models::V1::CustomerImportResponse::Data
|
|
9
|
+
|
|
10
|
+
def initialize: (
|
|
11
|
+
data: Stigg::Models::V1::CustomerImportResponse::Data
|
|
12
|
+
) -> void
|
|
13
|
+
|
|
14
|
+
def to_hash: -> {
|
|
15
|
+
data: Stigg::Models::V1::CustomerImportResponse::Data
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type data = { new_customers: ::Array[String] }
|
|
19
|
+
|
|
20
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
21
|
+
attr_accessor new_customers: ::Array[String]
|
|
22
|
+
|
|
23
|
+
def initialize: (new_customers: ::Array[String]) -> void
|
|
24
|
+
|
|
25
|
+
def to_hash: -> { new_customers: ::Array[String] }
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
end
|
|
@@ -2,36 +2,36 @@ module Stigg
|
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
4
|
type customer_list_params =
|
|
5
|
-
{
|
|
5
|
+
{ after: String, before: String, limit: Integer }
|
|
6
6
|
& Stigg::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class CustomerListParams < Stigg::Internal::Type::BaseModel
|
|
9
9
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
10
10
|
include Stigg::Internal::Type::RequestParameters
|
|
11
11
|
|
|
12
|
-
attr_reader
|
|
12
|
+
attr_reader after: String?
|
|
13
13
|
|
|
14
|
-
def
|
|
14
|
+
def after=: (String) -> String
|
|
15
15
|
|
|
16
|
-
attr_reader
|
|
16
|
+
attr_reader before: String?
|
|
17
17
|
|
|
18
|
-
def
|
|
18
|
+
def before=: (String) -> String
|
|
19
19
|
|
|
20
|
-
attr_reader
|
|
20
|
+
attr_reader limit: Integer?
|
|
21
21
|
|
|
22
|
-
def
|
|
22
|
+
def limit=: (Integer) -> Integer
|
|
23
23
|
|
|
24
24
|
def initialize: (
|
|
25
|
-
?
|
|
25
|
+
?after: String,
|
|
26
|
+
?before: String,
|
|
26
27
|
?limit: Integer,
|
|
27
|
-
?starting_after: String,
|
|
28
28
|
?request_options: Stigg::request_opts
|
|
29
29
|
) -> void
|
|
30
30
|
|
|
31
31
|
def to_hash: -> {
|
|
32
|
-
|
|
32
|
+
after: String,
|
|
33
|
+
before: String,
|
|
33
34
|
limit: Integer,
|
|
34
|
-
starting_after: String,
|
|
35
35
|
request_options: Stigg::RequestOptions
|
|
36
36
|
}
|
|
37
37
|
end
|
|
@@ -2,194 +2,174 @@ module Stigg
|
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
4
|
type customer_list_response =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
archived_at: Time?,
|
|
8
|
+
created_at: Time,
|
|
9
|
+
updated_at: Time,
|
|
10
|
+
coupon_id: String?,
|
|
11
|
+
default_payment_method: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod?,
|
|
12
|
+
email: String?,
|
|
13
|
+
integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Integration],
|
|
14
|
+
metadata: ::Hash[Symbol, String],
|
|
15
|
+
name: String?
|
|
16
|
+
}
|
|
6
17
|
|
|
7
18
|
class CustomerListResponse < Stigg::Internal::Type::BaseModel
|
|
8
|
-
attr_accessor
|
|
19
|
+
attr_accessor id: String
|
|
9
20
|
|
|
10
|
-
|
|
11
|
-
data: ::Array[Stigg::Models::V1::CustomerListResponse::Data]
|
|
12
|
-
) -> void
|
|
21
|
+
attr_accessor archived_at: Time?
|
|
13
22
|
|
|
14
|
-
|
|
15
|
-
data: ::Array[Stigg::Models::V1::CustomerListResponse::Data]
|
|
16
|
-
}
|
|
23
|
+
attr_accessor created_at: Time
|
|
17
24
|
|
|
18
|
-
|
|
19
|
-
{
|
|
20
|
-
id: String,
|
|
21
|
-
archived_at: Time?,
|
|
22
|
-
created_at: Time,
|
|
23
|
-
cursor_id: String,
|
|
24
|
-
updated_at: Time,
|
|
25
|
-
coupon_id: String?,
|
|
26
|
-
default_payment_method: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod?,
|
|
27
|
-
email: String?,
|
|
28
|
-
integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration],
|
|
29
|
-
metadata: ::Hash[Symbol, String],
|
|
30
|
-
name: String?
|
|
31
|
-
}
|
|
25
|
+
attr_accessor updated_at: Time
|
|
32
26
|
|
|
33
|
-
|
|
34
|
-
attr_accessor id: String
|
|
27
|
+
attr_accessor coupon_id: String?
|
|
35
28
|
|
|
36
|
-
|
|
29
|
+
attr_accessor default_payment_method: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod?
|
|
37
30
|
|
|
38
|
-
|
|
31
|
+
attr_accessor email: String?
|
|
39
32
|
|
|
40
|
-
|
|
33
|
+
attr_reader integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Integration]?
|
|
41
34
|
|
|
42
|
-
|
|
35
|
+
def integrations=: (
|
|
36
|
+
::Array[Stigg::Models::V1::CustomerListResponse::Integration]
|
|
37
|
+
) -> ::Array[Stigg::Models::V1::CustomerListResponse::Integration]
|
|
43
38
|
|
|
44
|
-
|
|
39
|
+
attr_reader metadata: ::Hash[Symbol, String]?
|
|
45
40
|
|
|
46
|
-
|
|
41
|
+
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
47
42
|
|
|
48
|
-
|
|
43
|
+
attr_accessor name: String?
|
|
44
|
+
|
|
45
|
+
def initialize: (
|
|
46
|
+
id: String,
|
|
47
|
+
archived_at: Time?,
|
|
48
|
+
created_at: Time,
|
|
49
|
+
updated_at: Time,
|
|
50
|
+
?coupon_id: String?,
|
|
51
|
+
?default_payment_method: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod?,
|
|
52
|
+
?email: String?,
|
|
53
|
+
?integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Integration],
|
|
54
|
+
?metadata: ::Hash[Symbol, String],
|
|
55
|
+
?name: String?
|
|
56
|
+
) -> void
|
|
57
|
+
|
|
58
|
+
def to_hash: -> {
|
|
59
|
+
id: String,
|
|
60
|
+
archived_at: Time?,
|
|
61
|
+
created_at: Time,
|
|
62
|
+
updated_at: Time,
|
|
63
|
+
coupon_id: String?,
|
|
64
|
+
default_payment_method: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod?,
|
|
65
|
+
email: String?,
|
|
66
|
+
integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Integration],
|
|
67
|
+
metadata: ::Hash[Symbol, String],
|
|
68
|
+
name: String?
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
type default_payment_method =
|
|
72
|
+
{
|
|
73
|
+
billing_id: String?,
|
|
74
|
+
card_expiry_month: Float?,
|
|
75
|
+
card_expiry_year: Float?,
|
|
76
|
+
:card_last4_digits => String?,
|
|
77
|
+
type: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::type_
|
|
78
|
+
}
|
|
49
79
|
|
|
50
|
-
|
|
80
|
+
class DefaultPaymentMethod < Stigg::Internal::Type::BaseModel
|
|
81
|
+
attr_accessor billing_id: String?
|
|
51
82
|
|
|
52
|
-
|
|
53
|
-
::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration]
|
|
54
|
-
) -> ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration]
|
|
83
|
+
attr_accessor card_expiry_month: Float?
|
|
55
84
|
|
|
56
|
-
|
|
85
|
+
attr_accessor card_expiry_year: Float?
|
|
57
86
|
|
|
58
|
-
|
|
87
|
+
attr_accessor card_last4_digits: String?
|
|
59
88
|
|
|
60
|
-
attr_accessor
|
|
89
|
+
attr_accessor type: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::type_
|
|
61
90
|
|
|
62
91
|
def initialize: (
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
?coupon_id: String?,
|
|
69
|
-
?default_payment_method: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod?,
|
|
70
|
-
?email: String?,
|
|
71
|
-
?integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration],
|
|
72
|
-
?metadata: ::Hash[Symbol, String],
|
|
73
|
-
?name: String?
|
|
92
|
+
billing_id: String?,
|
|
93
|
+
card_expiry_month: Float?,
|
|
94
|
+
card_expiry_year: Float?,
|
|
95
|
+
card_last4_digits: String?,
|
|
96
|
+
type: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::type_
|
|
74
97
|
) -> void
|
|
75
98
|
|
|
76
99
|
def to_hash: -> {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
coupon_id: String?,
|
|
83
|
-
default_payment_method: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod?,
|
|
84
|
-
email: String?,
|
|
85
|
-
integrations: ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration],
|
|
86
|
-
metadata: ::Hash[Symbol, String],
|
|
87
|
-
name: String?
|
|
100
|
+
billing_id: String?,
|
|
101
|
+
card_expiry_month: Float?,
|
|
102
|
+
card_expiry_year: Float?,
|
|
103
|
+
:card_last4_digits => String?,
|
|
104
|
+
type: Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::type_
|
|
88
105
|
}
|
|
89
106
|
|
|
90
|
-
type
|
|
91
|
-
{
|
|
92
|
-
billing_id: String?,
|
|
93
|
-
card_expiry_month: Float?,
|
|
94
|
-
card_expiry_year: Float?,
|
|
95
|
-
:card_last4_digits => String?,
|
|
96
|
-
type: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::type_
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
class DefaultPaymentMethod < Stigg::Internal::Type::BaseModel
|
|
100
|
-
attr_accessor billing_id: String?
|
|
107
|
+
type type_ = :CARD | :BANK | :CASH_APP
|
|
101
108
|
|
|
102
|
-
|
|
109
|
+
module Type
|
|
110
|
+
extend Stigg::Internal::Type::Enum
|
|
103
111
|
|
|
104
|
-
|
|
112
|
+
CARD: :CARD
|
|
113
|
+
BANK: :BANK
|
|
114
|
+
CASH_APP: :CASH_APP
|
|
105
115
|
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
116
|
+
def self?.values: -> ::Array[Stigg::Models::V1::CustomerListResponse::DefaultPaymentMethod::type_]
|
|
117
|
+
end
|
|
118
|
+
end
|
|
109
119
|
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
) -> void
|
|
120
|
+
type integration =
|
|
121
|
+
{
|
|
122
|
+
id: String,
|
|
123
|
+
synced_entity_id: String?,
|
|
124
|
+
vendor_identifier: Stigg::Models::V1::CustomerListResponse::Integration::vendor_identifier
|
|
125
|
+
}
|
|
117
126
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
card_expiry_month: Float?,
|
|
121
|
-
card_expiry_year: Float?,
|
|
122
|
-
:card_last4_digits => String?,
|
|
123
|
-
type: Stigg::Models::V1::CustomerListResponse::Data::DefaultPaymentMethod::type_
|
|
124
|
-
}
|
|
127
|
+
class Integration < Stigg::Internal::Type::BaseModel
|
|
128
|
+
attr_accessor id: String
|
|
125
129
|
|
|
126
|
-
|
|
130
|
+
attr_accessor synced_entity_id: String?
|
|
127
131
|
|
|
128
|
-
|
|
129
|
-
extend Stigg::Internal::Type::Enum
|
|
132
|
+
attr_accessor vendor_identifier: Stigg::Models::V1::CustomerListResponse::Integration::vendor_identifier
|
|
130
133
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
def initialize: (
|
|
135
|
+
id: String,
|
|
136
|
+
synced_entity_id: String?,
|
|
137
|
+
vendor_identifier: Stigg::Models::V1::CustomerListResponse::Integration::vendor_identifier
|
|
138
|
+
) -> void
|
|
134
139
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
140
|
+
def to_hash: -> {
|
|
141
|
+
id: String,
|
|
142
|
+
synced_entity_id: String?,
|
|
143
|
+
vendor_identifier: Stigg::Models::V1::CustomerListResponse::Integration::vendor_identifier
|
|
144
|
+
}
|
|
138
145
|
|
|
139
|
-
type
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
:AUTH0
|
|
167
|
-
| :ZUORA
|
|
168
|
-
| :STRIPE
|
|
169
|
-
| :HUBSPOT
|
|
170
|
-
| :AWS_MARKETPLACE
|
|
171
|
-
| :SNOWFLAKE
|
|
172
|
-
| :SALESFORCE
|
|
173
|
-
| :BIG_QUERY
|
|
174
|
-
| :OPEN_FGA
|
|
175
|
-
| :APP_STORE
|
|
176
|
-
|
|
177
|
-
module VendorIdentifier
|
|
178
|
-
extend Stigg::Internal::Type::Enum
|
|
179
|
-
|
|
180
|
-
AUTH0: :AUTH0
|
|
181
|
-
ZUORA: :ZUORA
|
|
182
|
-
STRIPE: :STRIPE
|
|
183
|
-
HUBSPOT: :HUBSPOT
|
|
184
|
-
AWS_MARKETPLACE: :AWS_MARKETPLACE
|
|
185
|
-
SNOWFLAKE: :SNOWFLAKE
|
|
186
|
-
SALESFORCE: :SALESFORCE
|
|
187
|
-
BIG_QUERY: :BIG_QUERY
|
|
188
|
-
OPEN_FGA: :OPEN_FGA
|
|
189
|
-
APP_STORE: :APP_STORE
|
|
190
|
-
|
|
191
|
-
def self?.values: -> ::Array[Stigg::Models::V1::CustomerListResponse::Data::Integration::vendor_identifier]
|
|
192
|
-
end
|
|
146
|
+
type vendor_identifier =
|
|
147
|
+
:AUTH0
|
|
148
|
+
| :ZUORA
|
|
149
|
+
| :STRIPE
|
|
150
|
+
| :HUBSPOT
|
|
151
|
+
| :AWS_MARKETPLACE
|
|
152
|
+
| :SNOWFLAKE
|
|
153
|
+
| :SALESFORCE
|
|
154
|
+
| :BIG_QUERY
|
|
155
|
+
| :OPEN_FGA
|
|
156
|
+
| :APP_STORE
|
|
157
|
+
|
|
158
|
+
module VendorIdentifier
|
|
159
|
+
extend Stigg::Internal::Type::Enum
|
|
160
|
+
|
|
161
|
+
AUTH0: :AUTH0
|
|
162
|
+
ZUORA: :ZUORA
|
|
163
|
+
STRIPE: :STRIPE
|
|
164
|
+
HUBSPOT: :HUBSPOT
|
|
165
|
+
AWS_MARKETPLACE: :AWS_MARKETPLACE
|
|
166
|
+
SNOWFLAKE: :SNOWFLAKE
|
|
167
|
+
SALESFORCE: :SALESFORCE
|
|
168
|
+
BIG_QUERY: :BIG_QUERY
|
|
169
|
+
OPEN_FGA: :OPEN_FGA
|
|
170
|
+
APP_STORE: :APP_STORE
|
|
171
|
+
|
|
172
|
+
def self?.values: -> ::Array[Stigg::Models::V1::CustomerListResponse::Integration::vendor_identifier]
|
|
193
173
|
end
|
|
194
174
|
end
|
|
195
175
|
end
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
module Stigg
|
|
2
2
|
module Models
|
|
3
3
|
module V1
|
|
4
|
-
type
|
|
4
|
+
type customer_provision_params =
|
|
5
5
|
{
|
|
6
6
|
id: String,
|
|
7
7
|
coupon_id: String?,
|
|
8
|
-
default_payment_method: Stigg::V1::
|
|
8
|
+
default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?,
|
|
9
9
|
email: String?,
|
|
10
|
-
integrations: ::Array[Stigg::V1::
|
|
10
|
+
integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration],
|
|
11
11
|
metadata: ::Hash[Symbol, String],
|
|
12
12
|
name: String?
|
|
13
13
|
}
|
|
14
14
|
& Stigg::Internal::Type::request_parameters
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class CustomerProvisionParams < Stigg::Internal::Type::BaseModel
|
|
17
17
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
18
18
|
include Stigg::Internal::Type::RequestParameters
|
|
19
19
|
|
|
@@ -21,15 +21,15 @@ module Stigg
|
|
|
21
21
|
|
|
22
22
|
attr_accessor coupon_id: String?
|
|
23
23
|
|
|
24
|
-
attr_accessor default_payment_method: Stigg::V1::
|
|
24
|
+
attr_accessor default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?
|
|
25
25
|
|
|
26
26
|
attr_accessor email: String?
|
|
27
27
|
|
|
28
|
-
attr_reader integrations: ::Array[Stigg::V1::
|
|
28
|
+
attr_reader integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration]?
|
|
29
29
|
|
|
30
30
|
def integrations=: (
|
|
31
|
-
::Array[Stigg::V1::
|
|
32
|
-
) -> ::Array[Stigg::V1::
|
|
31
|
+
::Array[Stigg::V1::CustomerProvisionParams::Integration]
|
|
32
|
+
) -> ::Array[Stigg::V1::CustomerProvisionParams::Integration]
|
|
33
33
|
|
|
34
34
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
35
35
|
|
|
@@ -40,9 +40,9 @@ module Stigg
|
|
|
40
40
|
def initialize: (
|
|
41
41
|
id: String,
|
|
42
42
|
?coupon_id: String?,
|
|
43
|
-
?default_payment_method: Stigg::V1::
|
|
43
|
+
?default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?,
|
|
44
44
|
?email: String?,
|
|
45
|
-
?integrations: ::Array[Stigg::V1::
|
|
45
|
+
?integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration],
|
|
46
46
|
?metadata: ::Hash[Symbol, String],
|
|
47
47
|
?name: String?,
|
|
48
48
|
?request_options: Stigg::request_opts
|
|
@@ -51,9 +51,9 @@ module Stigg
|
|
|
51
51
|
def to_hash: -> {
|
|
52
52
|
id: String,
|
|
53
53
|
coupon_id: String?,
|
|
54
|
-
default_payment_method: Stigg::V1::
|
|
54
|
+
default_payment_method: Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod?,
|
|
55
55
|
email: String?,
|
|
56
|
-
integrations: ::Array[Stigg::V1::
|
|
56
|
+
integrations: ::Array[Stigg::V1::CustomerProvisionParams::Integration],
|
|
57
57
|
metadata: ::Hash[Symbol, String],
|
|
58
58
|
name: String?,
|
|
59
59
|
request_options: Stigg::RequestOptions
|
|
@@ -65,7 +65,7 @@ module Stigg
|
|
|
65
65
|
card_expiry_month: Float?,
|
|
66
66
|
card_expiry_year: Float?,
|
|
67
67
|
:card_last4_digits => String?,
|
|
68
|
-
type: Stigg::Models::V1::
|
|
68
|
+
type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class DefaultPaymentMethod < Stigg::Internal::Type::BaseModel
|
|
@@ -77,14 +77,14 @@ module Stigg
|
|
|
77
77
|
|
|
78
78
|
attr_accessor card_last4_digits: String?
|
|
79
79
|
|
|
80
|
-
attr_accessor type: Stigg::Models::V1::
|
|
80
|
+
attr_accessor type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
|
|
81
81
|
|
|
82
82
|
def initialize: (
|
|
83
83
|
billing_id: String?,
|
|
84
84
|
card_expiry_month: Float?,
|
|
85
85
|
card_expiry_year: Float?,
|
|
86
86
|
card_last4_digits: String?,
|
|
87
|
-
type: Stigg::Models::V1::
|
|
87
|
+
type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
|
|
88
88
|
) -> void
|
|
89
89
|
|
|
90
90
|
def to_hash: -> {
|
|
@@ -92,7 +92,7 @@ module Stigg
|
|
|
92
92
|
card_expiry_month: Float?,
|
|
93
93
|
card_expiry_year: Float?,
|
|
94
94
|
:card_last4_digits => String?,
|
|
95
|
-
type: Stigg::Models::V1::
|
|
95
|
+
type: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
type type_ = :CARD | :BANK | :CASH_APP
|
|
@@ -104,7 +104,7 @@ module Stigg
|
|
|
104
104
|
BANK: :BANK
|
|
105
105
|
CASH_APP: :CASH_APP
|
|
106
106
|
|
|
107
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
107
|
+
def self?.values: -> ::Array[Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::type_]
|
|
108
108
|
end
|
|
109
109
|
end
|
|
110
110
|
|
|
@@ -112,7 +112,7 @@ module Stigg
|
|
|
112
112
|
{
|
|
113
113
|
id: String,
|
|
114
114
|
synced_entity_id: String?,
|
|
115
|
-
vendor_identifier: Stigg::Models::V1::
|
|
115
|
+
vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
class Integration < Stigg::Internal::Type::BaseModel
|
|
@@ -120,18 +120,18 @@ module Stigg
|
|
|
120
120
|
|
|
121
121
|
attr_accessor synced_entity_id: String?
|
|
122
122
|
|
|
123
|
-
attr_accessor vendor_identifier: Stigg::Models::V1::
|
|
123
|
+
attr_accessor vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
|
|
124
124
|
|
|
125
125
|
def initialize: (
|
|
126
126
|
id: String,
|
|
127
127
|
synced_entity_id: String?,
|
|
128
|
-
vendor_identifier: Stigg::Models::V1::
|
|
128
|
+
vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
|
|
129
129
|
) -> void
|
|
130
130
|
|
|
131
131
|
def to_hash: -> {
|
|
132
132
|
id: String,
|
|
133
133
|
synced_entity_id: String?,
|
|
134
|
-
vendor_identifier: Stigg::Models::V1::
|
|
134
|
+
vendor_identifier: Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
type vendor_identifier =
|
|
@@ -160,7 +160,7 @@ module Stigg
|
|
|
160
160
|
OPEN_FGA: :OPEN_FGA
|
|
161
161
|
APP_STORE: :APP_STORE
|
|
162
162
|
|
|
163
|
-
def self?.values: -> ::Array[Stigg::Models::V1::
|
|
163
|
+
def self?.values: -> ::Array[Stigg::Models::V1::CustomerProvisionParams::Integration::vendor_identifier]
|
|
164
164
|
end
|
|
165
165
|
end
|
|
166
166
|
end
|