stigg 0.1.0.pre.alpha.2 → 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 +8 -0
- data/README.md +1 -1
- data/lib/stigg/internal/type/base_model.rb +2 -2
- data/lib/stigg/models/v1/{coupon_create_response.rb → coupon.rb} +24 -24
- 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_create_params.rb → customer_provision_params.rb} +16 -16
- data/lib/stigg/models/v1/customer_response.rb +1 -1
- data/lib/stigg/models/v1/customers/promotional_entitlement_grant_params.rb +296 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_grant_response.rb +341 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_params.rb +24 -0
- data/lib/stigg/models/v1/customers/promotional_entitlement_revoke_response.rb +342 -0
- 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} +30 -29
- data/lib/stigg/models/v1/subscription_cancel_params.rb +75 -0
- 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_create_params.rb → subscription_provision_params.rb} +118 -118
- data/lib/stigg/models/v1/{subscription_create_response.rb → subscription_provision_response.rb} +76 -75
- 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} +7 -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 +4 -4
- data/lib/stigg/resources/v1/customers/promotional_entitlements.rb +69 -0
- data/lib/stigg/resources/v1/customers.rb +59 -37
- data/lib/stigg/resources/v1/events.rb +38 -0
- data/lib/stigg/resources/v1/subscriptions/future_update.rb +4 -4
- data/lib/stigg/resources/v1/subscriptions.rb +166 -64
- 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 -16
- data/rbi/stigg/models/v1/{coupon_create_response.rbi → coupon.rbi} +156 -252
- 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_create_params.rbi → customer_provision_params.rbi} +35 -35
- data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_params.rbi +640 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_grant_response.rbi +690 -0
- data/rbi/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbi +42 -0
- 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} +66 -117
- data/rbi/stigg/models/v1/subscription_cancel_params.rbi +182 -0
- 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_create_params.rbi → subscription_provision_params.rbi} +794 -773
- data/rbi/stigg/models/v1/{subscription_create_response.rbi → subscription_provision_response.rbi} +481 -481
- 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} +9 -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 +2 -2
- data/rbi/stigg/resources/v1/customers/promotional_entitlements.rbi +57 -0
- data/rbi/stigg/resources/v1/customers.rbi +53 -36
- data/rbi/stigg/resources/v1/events.rbi +28 -0
- data/rbi/stigg/resources/v1/subscriptions/future_update.rbi +2 -6
- data/rbi/stigg/resources/v1/subscriptions.rbi +179 -74
- data/rbi/stigg/resources/v1/usage.rbi +57 -0
- data/rbi/stigg/resources/v1.rbi +4 -26
- data/sig/stigg/models/v1/{coupon_create_response.rbs → coupon.rbs} +29 -32
- 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_create_params.rbs → customer_provision_params.rbs} +22 -22
- data/sig/stigg/models/v1/customers/promotional_entitlement_grant_params.rbs +234 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_grant_response.rbs +281 -0
- data/sig/stigg/models/v1/customers/promotional_entitlement_revoke_params.rbs +27 -0
- 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} +36 -41
- 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_create_params.rbs → subscription_provision_params.rbs} +200 -200
- data/sig/stigg/models/v1/{subscription_create_response.rbs → subscription_provision_response.rbs} +106 -106
- 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 +2 -2
- data/sig/stigg/resources/v1/customers/promotional_entitlements.rbs +23 -0
- data/sig/stigg/resources/v1/customers.rbs +17 -12
- 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 +65 -32
- data/sig/stigg/resources/v1/usage.rbs +24 -0
- data/sig/stigg/resources/v1.rbs +2 -8
- metadata +77 -50
- data/lib/stigg/models/v1/coupon_retrieve_response.rb +0 -322
- data/lib/stigg/models/v1/subscription_delegate_response.rb +0 -314
- data/lib/stigg/models/v1/subscription_migrate_response.rb +0 -314
- data/lib/stigg/models/v1/subscription_transfer_response.rb +0 -314
- data/lib/stigg/models/v1/subscriptions/future_update_cancel_schedule_response.rb +0 -34
- data/lib/stigg/models/v1_create_event_params.rb +0 -89
- data/lib/stigg/models/v1_create_event_response.rb +0 -23
- data/lib/stigg/models/v1_create_usage_params.rb +0 -112
- data/lib/stigg/models/v1_create_usage_response.rb +0 -118
- data/lib/stigg/resources/v1/customers/usage.rb +0 -18
- data/rbi/stigg/models/v1/coupon_retrieve_response.rbi +0 -987
- data/rbi/stigg/models/v1/subscription_delegate_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscription_retrieve_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscription_transfer_response.rbi +0 -618
- data/rbi/stigg/models/v1/subscriptions/future_update_cancel_pending_payment_response.rbi +0 -80
- data/rbi/stigg/models/v1_create_event_params.rbi +0 -161
- data/rbi/stigg/models/v1_create_event_response.rbi +0 -30
- data/rbi/stigg/models/v1_create_usage_params.rbi +0 -217
- data/rbi/stigg/models/v1_create_usage_response.rbi +0 -157
- data/rbi/stigg/resources/v1/customers/usage.rbi +0 -16
- data/sig/stigg/models/v1/coupon_retrieve_response.rbs +0 -394
- data/sig/stigg/models/v1/subscription_delegate_response.rbs +0 -255
- data/sig/stigg/models/v1/subscription_migrate_response.rbs +0 -255
- data/sig/stigg/models/v1/subscription_transfer_response.rbs +0 -255
- 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 -100
- data/sig/stigg/models/v1_create_usage_response.rbs +0 -85
- data/sig/stigg/resources/v1/customers/usage.rbs +0 -11
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
class CustomerImportParams < Stigg::Internal::Type::BaseModel
|
|
7
|
+
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include Stigg::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
OrHash =
|
|
11
|
+
T.type_alias do
|
|
12
|
+
T.any(Stigg::V1::CustomerImportParams, Stigg::Internal::AnyHash)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# List of customer objects to import
|
|
16
|
+
sig { returns(T::Array[Stigg::V1::CustomerImportParams::Customer]) }
|
|
17
|
+
attr_accessor :customers
|
|
18
|
+
|
|
19
|
+
sig do
|
|
20
|
+
params(
|
|
21
|
+
customers:
|
|
22
|
+
T::Array[Stigg::V1::CustomerImportParams::Customer::OrHash],
|
|
23
|
+
request_options: Stigg::RequestOptions::OrHash
|
|
24
|
+
).returns(T.attached_class)
|
|
25
|
+
end
|
|
26
|
+
def self.new(
|
|
27
|
+
# List of customer objects to import
|
|
28
|
+
customers:,
|
|
29
|
+
request_options: {}
|
|
30
|
+
)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
sig do
|
|
34
|
+
override.returns(
|
|
35
|
+
{
|
|
36
|
+
customers: T::Array[Stigg::V1::CustomerImportParams::Customer],
|
|
37
|
+
request_options: Stigg::RequestOptions
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
end
|
|
41
|
+
def to_hash
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
class Customer < Stigg::Internal::Type::BaseModel
|
|
45
|
+
OrHash =
|
|
46
|
+
T.type_alias do
|
|
47
|
+
T.any(
|
|
48
|
+
Stigg::V1::CustomerImportParams::Customer,
|
|
49
|
+
Stigg::Internal::AnyHash
|
|
50
|
+
)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Customer slug
|
|
54
|
+
sig { returns(String) }
|
|
55
|
+
attr_accessor :id
|
|
56
|
+
|
|
57
|
+
# The email of the customer
|
|
58
|
+
sig { returns(T.nilable(String)) }
|
|
59
|
+
attr_accessor :email
|
|
60
|
+
|
|
61
|
+
# The name of the customer
|
|
62
|
+
sig { returns(T.nilable(String)) }
|
|
63
|
+
attr_accessor :name
|
|
64
|
+
|
|
65
|
+
# Additional metadata
|
|
66
|
+
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
67
|
+
attr_reader :metadata
|
|
68
|
+
|
|
69
|
+
sig { params(metadata: T::Hash[Symbol, String]).void }
|
|
70
|
+
attr_writer :metadata
|
|
71
|
+
|
|
72
|
+
# Billing provider payment method id
|
|
73
|
+
sig { returns(T.nilable(String)) }
|
|
74
|
+
attr_reader :payment_method_id
|
|
75
|
+
|
|
76
|
+
sig { params(payment_method_id: String).void }
|
|
77
|
+
attr_writer :payment_method_id
|
|
78
|
+
|
|
79
|
+
# Timestamp of when the record was last updated
|
|
80
|
+
sig { returns(T.nilable(Time)) }
|
|
81
|
+
attr_reader :updated_at
|
|
82
|
+
|
|
83
|
+
sig { params(updated_at: Time).void }
|
|
84
|
+
attr_writer :updated_at
|
|
85
|
+
|
|
86
|
+
sig do
|
|
87
|
+
params(
|
|
88
|
+
id: String,
|
|
89
|
+
email: T.nilable(String),
|
|
90
|
+
name: T.nilable(String),
|
|
91
|
+
metadata: T::Hash[Symbol, String],
|
|
92
|
+
payment_method_id: String,
|
|
93
|
+
updated_at: Time
|
|
94
|
+
).returns(T.attached_class)
|
|
95
|
+
end
|
|
96
|
+
def self.new(
|
|
97
|
+
# Customer slug
|
|
98
|
+
id:,
|
|
99
|
+
# The email of the customer
|
|
100
|
+
email:,
|
|
101
|
+
# The name of the customer
|
|
102
|
+
name:,
|
|
103
|
+
# Additional metadata
|
|
104
|
+
metadata: nil,
|
|
105
|
+
# Billing provider payment method id
|
|
106
|
+
payment_method_id: nil,
|
|
107
|
+
# Timestamp of when the record was last updated
|
|
108
|
+
updated_at: nil
|
|
109
|
+
)
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
sig do
|
|
113
|
+
override.returns(
|
|
114
|
+
{
|
|
115
|
+
id: String,
|
|
116
|
+
email: T.nilable(String),
|
|
117
|
+
name: T.nilable(String),
|
|
118
|
+
metadata: T::Hash[Symbol, String],
|
|
119
|
+
payment_method_id: String,
|
|
120
|
+
updated_at: Time
|
|
121
|
+
}
|
|
122
|
+
)
|
|
123
|
+
end
|
|
124
|
+
def to_hash
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# typed: strong
|
|
2
|
+
|
|
3
|
+
module Stigg
|
|
4
|
+
module Models
|
|
5
|
+
module V1
|
|
6
|
+
class CustomerImportResponse < Stigg::Internal::Type::BaseModel
|
|
7
|
+
OrHash =
|
|
8
|
+
T.type_alias do
|
|
9
|
+
T.any(
|
|
10
|
+
Stigg::Models::V1::CustomerImportResponse,
|
|
11
|
+
Stigg::Internal::AnyHash
|
|
12
|
+
)
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
# List of newly created customer IDs from the import operation.
|
|
16
|
+
sig { returns(Stigg::Models::V1::CustomerImportResponse::Data) }
|
|
17
|
+
attr_reader :data
|
|
18
|
+
|
|
19
|
+
sig do
|
|
20
|
+
params(
|
|
21
|
+
data: Stigg::Models::V1::CustomerImportResponse::Data::OrHash
|
|
22
|
+
).void
|
|
23
|
+
end
|
|
24
|
+
attr_writer :data
|
|
25
|
+
|
|
26
|
+
# Response object
|
|
27
|
+
sig do
|
|
28
|
+
params(
|
|
29
|
+
data: Stigg::Models::V1::CustomerImportResponse::Data::OrHash
|
|
30
|
+
).returns(T.attached_class)
|
|
31
|
+
end
|
|
32
|
+
def self.new(
|
|
33
|
+
# List of newly created customer IDs from the import operation.
|
|
34
|
+
data:
|
|
35
|
+
)
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
sig do
|
|
39
|
+
override.returns(
|
|
40
|
+
{ data: Stigg::Models::V1::CustomerImportResponse::Data }
|
|
41
|
+
)
|
|
42
|
+
end
|
|
43
|
+
def to_hash
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
class Data < Stigg::Internal::Type::BaseModel
|
|
47
|
+
OrHash =
|
|
48
|
+
T.type_alias do
|
|
49
|
+
T.any(
|
|
50
|
+
Stigg::Models::V1::CustomerImportResponse::Data,
|
|
51
|
+
Stigg::Internal::AnyHash
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Customer IDs created during import
|
|
56
|
+
sig { returns(T::Array[String]) }
|
|
57
|
+
attr_accessor :new_customers
|
|
58
|
+
|
|
59
|
+
# List of newly created customer IDs from the import operation.
|
|
60
|
+
sig do
|
|
61
|
+
params(new_customers: T::Array[String]).returns(T.attached_class)
|
|
62
|
+
end
|
|
63
|
+
def self.new(
|
|
64
|
+
# Customer IDs created during import
|
|
65
|
+
new_customers:
|
|
66
|
+
)
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
sig { override.returns({ new_customers: T::Array[String] }) }
|
|
70
|
+
def to_hash
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
module Stigg
|
|
4
4
|
module Models
|
|
5
5
|
module V1
|
|
6
|
-
class
|
|
6
|
+
class CustomerProvisionParams < Stigg::Internal::Type::BaseModel
|
|
7
7
|
extend Stigg::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include Stigg::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
10
|
OrHash =
|
|
11
11
|
T.type_alias do
|
|
12
|
-
T.any(Stigg::V1::
|
|
12
|
+
T.any(Stigg::V1::CustomerProvisionParams, Stigg::Internal::AnyHash)
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
# Customer slug
|
|
@@ -23,7 +23,7 @@ module Stigg
|
|
|
23
23
|
# The default payment method details
|
|
24
24
|
sig do
|
|
25
25
|
returns(
|
|
26
|
-
T.nilable(Stigg::V1::
|
|
26
|
+
T.nilable(Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod)
|
|
27
27
|
)
|
|
28
28
|
end
|
|
29
29
|
attr_reader :default_payment_method
|
|
@@ -32,7 +32,7 @@ module Stigg
|
|
|
32
32
|
params(
|
|
33
33
|
default_payment_method:
|
|
34
34
|
T.nilable(
|
|
35
|
-
Stigg::V1::
|
|
35
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod::OrHash
|
|
36
36
|
)
|
|
37
37
|
).void
|
|
38
38
|
end
|
|
@@ -45,7 +45,7 @@ module Stigg
|
|
|
45
45
|
# List of integrations
|
|
46
46
|
sig do
|
|
47
47
|
returns(
|
|
48
|
-
T.nilable(T::Array[Stigg::V1::
|
|
48
|
+
T.nilable(T::Array[Stigg::V1::CustomerProvisionParams::Integration])
|
|
49
49
|
)
|
|
50
50
|
end
|
|
51
51
|
attr_reader :integrations
|
|
@@ -53,7 +53,7 @@ module Stigg
|
|
|
53
53
|
sig do
|
|
54
54
|
params(
|
|
55
55
|
integrations:
|
|
56
|
-
T::Array[Stigg::V1::
|
|
56
|
+
T::Array[Stigg::V1::CustomerProvisionParams::Integration::OrHash]
|
|
57
57
|
).void
|
|
58
58
|
end
|
|
59
59
|
attr_writer :integrations
|
|
@@ -75,11 +75,11 @@ module Stigg
|
|
|
75
75
|
coupon_id: T.nilable(String),
|
|
76
76
|
default_payment_method:
|
|
77
77
|
T.nilable(
|
|
78
|
-
Stigg::V1::
|
|
78
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod::OrHash
|
|
79
79
|
),
|
|
80
80
|
email: T.nilable(String),
|
|
81
81
|
integrations:
|
|
82
|
-
T::Array[Stigg::V1::
|
|
82
|
+
T::Array[Stigg::V1::CustomerProvisionParams::Integration::OrHash],
|
|
83
83
|
metadata: T::Hash[Symbol, String],
|
|
84
84
|
name: T.nilable(String),
|
|
85
85
|
request_options: Stigg::RequestOptions::OrHash
|
|
@@ -111,11 +111,11 @@ module Stigg
|
|
|
111
111
|
coupon_id: T.nilable(String),
|
|
112
112
|
default_payment_method:
|
|
113
113
|
T.nilable(
|
|
114
|
-
Stigg::V1::
|
|
114
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod
|
|
115
115
|
),
|
|
116
116
|
email: T.nilable(String),
|
|
117
117
|
integrations:
|
|
118
|
-
T::Array[Stigg::V1::
|
|
118
|
+
T::Array[Stigg::V1::CustomerProvisionParams::Integration],
|
|
119
119
|
metadata: T::Hash[Symbol, String],
|
|
120
120
|
name: T.nilable(String),
|
|
121
121
|
request_options: Stigg::RequestOptions
|
|
@@ -129,7 +129,7 @@ module Stigg
|
|
|
129
129
|
OrHash =
|
|
130
130
|
T.type_alias do
|
|
131
131
|
T.any(
|
|
132
|
-
Stigg::V1::
|
|
132
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod,
|
|
133
133
|
Stigg::Internal::AnyHash
|
|
134
134
|
)
|
|
135
135
|
end
|
|
@@ -153,7 +153,7 @@ module Stigg
|
|
|
153
153
|
# The default payment method type
|
|
154
154
|
sig do
|
|
155
155
|
returns(
|
|
156
|
-
Stigg::V1::
|
|
156
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod::Type::OrSymbol
|
|
157
157
|
)
|
|
158
158
|
end
|
|
159
159
|
attr_accessor :type
|
|
@@ -166,7 +166,7 @@ module Stigg
|
|
|
166
166
|
card_expiry_year: T.nilable(Float),
|
|
167
167
|
card_last4_digits: T.nilable(String),
|
|
168
168
|
type:
|
|
169
|
-
Stigg::V1::
|
|
169
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod::Type::OrSymbol
|
|
170
170
|
).returns(T.attached_class)
|
|
171
171
|
end
|
|
172
172
|
def self.new(
|
|
@@ -191,7 +191,7 @@ module Stigg
|
|
|
191
191
|
card_expiry_year: T.nilable(Float),
|
|
192
192
|
card_last4_digits: T.nilable(String),
|
|
193
193
|
type:
|
|
194
|
-
Stigg::V1::
|
|
194
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod::Type::OrSymbol
|
|
195
195
|
}
|
|
196
196
|
)
|
|
197
197
|
end
|
|
@@ -206,7 +206,7 @@ module Stigg
|
|
|
206
206
|
T.type_alias do
|
|
207
207
|
T.all(
|
|
208
208
|
Symbol,
|
|
209
|
-
Stigg::V1::
|
|
209
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod::Type
|
|
210
210
|
)
|
|
211
211
|
end
|
|
212
212
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -214,23 +214,23 @@ module Stigg
|
|
|
214
214
|
CARD =
|
|
215
215
|
T.let(
|
|
216
216
|
:CARD,
|
|
217
|
-
Stigg::V1::
|
|
217
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod::Type::TaggedSymbol
|
|
218
218
|
)
|
|
219
219
|
BANK =
|
|
220
220
|
T.let(
|
|
221
221
|
:BANK,
|
|
222
|
-
Stigg::V1::
|
|
222
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod::Type::TaggedSymbol
|
|
223
223
|
)
|
|
224
224
|
CASH_APP =
|
|
225
225
|
T.let(
|
|
226
226
|
:CASH_APP,
|
|
227
|
-
Stigg::V1::
|
|
227
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod::Type::TaggedSymbol
|
|
228
228
|
)
|
|
229
229
|
|
|
230
230
|
sig do
|
|
231
231
|
override.returns(
|
|
232
232
|
T::Array[
|
|
233
|
-
Stigg::V1::
|
|
233
|
+
Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod::Type::TaggedSymbol
|
|
234
234
|
]
|
|
235
235
|
)
|
|
236
236
|
end
|
|
@@ -243,7 +243,7 @@ module Stigg
|
|
|
243
243
|
OrHash =
|
|
244
244
|
T.type_alias do
|
|
245
245
|
T.any(
|
|
246
|
-
Stigg::V1::
|
|
246
|
+
Stigg::V1::CustomerProvisionParams::Integration,
|
|
247
247
|
Stigg::Internal::AnyHash
|
|
248
248
|
)
|
|
249
249
|
end
|
|
@@ -259,7 +259,7 @@ module Stigg
|
|
|
259
259
|
# The vendor identifier of integration
|
|
260
260
|
sig do
|
|
261
261
|
returns(
|
|
262
|
-
Stigg::V1::
|
|
262
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::OrSymbol
|
|
263
263
|
)
|
|
264
264
|
end
|
|
265
265
|
attr_accessor :vendor_identifier
|
|
@@ -270,7 +270,7 @@ module Stigg
|
|
|
270
270
|
id: String,
|
|
271
271
|
synced_entity_id: T.nilable(String),
|
|
272
272
|
vendor_identifier:
|
|
273
|
-
Stigg::V1::
|
|
273
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::OrSymbol
|
|
274
274
|
).returns(T.attached_class)
|
|
275
275
|
end
|
|
276
276
|
def self.new(
|
|
@@ -289,7 +289,7 @@ module Stigg
|
|
|
289
289
|
id: String,
|
|
290
290
|
synced_entity_id: T.nilable(String),
|
|
291
291
|
vendor_identifier:
|
|
292
|
-
Stigg::V1::
|
|
292
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::OrSymbol
|
|
293
293
|
}
|
|
294
294
|
)
|
|
295
295
|
end
|
|
@@ -304,7 +304,7 @@ module Stigg
|
|
|
304
304
|
T.type_alias do
|
|
305
305
|
T.all(
|
|
306
306
|
Symbol,
|
|
307
|
-
Stigg::V1::
|
|
307
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier
|
|
308
308
|
)
|
|
309
309
|
end
|
|
310
310
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
@@ -312,58 +312,58 @@ module Stigg
|
|
|
312
312
|
AUTH0 =
|
|
313
313
|
T.let(
|
|
314
314
|
:AUTH0,
|
|
315
|
-
Stigg::V1::
|
|
315
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::TaggedSymbol
|
|
316
316
|
)
|
|
317
317
|
ZUORA =
|
|
318
318
|
T.let(
|
|
319
319
|
:ZUORA,
|
|
320
|
-
Stigg::V1::
|
|
320
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::TaggedSymbol
|
|
321
321
|
)
|
|
322
322
|
STRIPE =
|
|
323
323
|
T.let(
|
|
324
324
|
:STRIPE,
|
|
325
|
-
Stigg::V1::
|
|
325
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::TaggedSymbol
|
|
326
326
|
)
|
|
327
327
|
HUBSPOT =
|
|
328
328
|
T.let(
|
|
329
329
|
:HUBSPOT,
|
|
330
|
-
Stigg::V1::
|
|
330
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::TaggedSymbol
|
|
331
331
|
)
|
|
332
332
|
AWS_MARKETPLACE =
|
|
333
333
|
T.let(
|
|
334
334
|
:AWS_MARKETPLACE,
|
|
335
|
-
Stigg::V1::
|
|
335
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::TaggedSymbol
|
|
336
336
|
)
|
|
337
337
|
SNOWFLAKE =
|
|
338
338
|
T.let(
|
|
339
339
|
:SNOWFLAKE,
|
|
340
|
-
Stigg::V1::
|
|
340
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::TaggedSymbol
|
|
341
341
|
)
|
|
342
342
|
SALESFORCE =
|
|
343
343
|
T.let(
|
|
344
344
|
:SALESFORCE,
|
|
345
|
-
Stigg::V1::
|
|
345
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::TaggedSymbol
|
|
346
346
|
)
|
|
347
347
|
BIG_QUERY =
|
|
348
348
|
T.let(
|
|
349
349
|
:BIG_QUERY,
|
|
350
|
-
Stigg::V1::
|
|
350
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::TaggedSymbol
|
|
351
351
|
)
|
|
352
352
|
OPEN_FGA =
|
|
353
353
|
T.let(
|
|
354
354
|
:OPEN_FGA,
|
|
355
|
-
Stigg::V1::
|
|
355
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::TaggedSymbol
|
|
356
356
|
)
|
|
357
357
|
APP_STORE =
|
|
358
358
|
T.let(
|
|
359
359
|
:APP_STORE,
|
|
360
|
-
Stigg::V1::
|
|
360
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::TaggedSymbol
|
|
361
361
|
)
|
|
362
362
|
|
|
363
363
|
sig do
|
|
364
364
|
override.returns(
|
|
365
365
|
T::Array[
|
|
366
|
-
Stigg::V1::
|
|
366
|
+
Stigg::V1::CustomerProvisionParams::Integration::VendorIdentifier::TaggedSymbol
|
|
367
367
|
]
|
|
368
368
|
)
|
|
369
369
|
end
|