Class: MetronomeSDK::Models::V1::CustomerCreateParams::BillingConfig
- Inherits:
-
Internal::Type::BaseModel
show all
- Defined in:
- lib/metronome_sdk/models/v1/customer_create_params.rb,
sig/metronome_sdk/models/v1/customer_create_params.rbs
Defined Under Namespace
Modules: AwsRegion, BillingProviderType, StripeCollectionMethod
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(billing_provider_customer_id:, billing_provider_type:, aws_customer_account_id: nil, aws_customer_id: nil, aws_is_subscription_product: nil, aws_product_code: nil, aws_region: nil, stripe_collection_method: nil) ⇒ Object
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 73
class BillingConfig < MetronomeSDK::Internal::Type::BaseModel
required :billing_provider_customer_id, String
required :billing_provider_type,
enum: -> { MetronomeSDK::V1::CustomerCreateParams::BillingConfig::BillingProviderType }
optional :aws_customer_account_id, String
optional :aws_customer_id, String
optional :aws_is_subscription_product, MetronomeSDK::Internal::Type::Boolean
optional :aws_product_code, String
optional :aws_region, enum: -> { MetronomeSDK::V1::CustomerCreateParams::BillingConfig::AwsRegion }
optional :stripe_collection_method,
enum: -> { MetronomeSDK::V1::CustomerCreateParams::BillingConfig::StripeCollectionMethod }
module BillingProviderType
extend MetronomeSDK::Internal::Type::Enum
AWS_MARKETPLACE = :aws_marketplace
STRIPE = :stripe
NETSUITE = :netsuite
CUSTOM = :custom
AZURE_MARKETPLACE = :azure_marketplace
QUICKBOOKS_ONLINE = :quickbooks_online
WORKDAY = :workday
GCP_MARKETPLACE = :gcp_marketplace
METRONOME = :metronome
end
module AwsRegion
extend MetronomeSDK::Internal::Type::Enum
AF_SOUTH_1 = :"af-south-1"
AP_EAST_1 = :"ap-east-1"
AP_NORTHEAST_1 = :"ap-northeast-1"
AP_NORTHEAST_2 = :"ap-northeast-2"
AP_NORTHEAST_3 = :"ap-northeast-3"
AP_SOUTH_1 = :"ap-south-1"
AP_SOUTHEAST_1 = :"ap-southeast-1"
AP_SOUTHEAST_2 = :"ap-southeast-2"
CA_CENTRAL_1 = :"ca-central-1"
CN_NORTH_1 = :"cn-north-1"
CN_NORTHWEST_1 = :"cn-northwest-1"
EU_CENTRAL_1 = :"eu-central-1"
EU_NORTH_1 = :"eu-north-1"
EU_SOUTH_1 = :"eu-south-1"
EU_WEST_1 = :"eu-west-1"
EU_WEST_2 = :"eu-west-2"
EU_WEST_3 = :"eu-west-3"
ME_SOUTH_1 = :"me-south-1"
SA_EAST_1 = :"sa-east-1"
US_EAST_1 = :"us-east-1"
US_EAST_2 = :"us-east-2"
US_GOV_EAST_1 = :"us-gov-east-1"
US_GOV_WEST_1 = :"us-gov-west-1"
US_WEST_1 = :"us-west-1"
US_WEST_2 = :"us-west-2"
end
module StripeCollectionMethod
extend MetronomeSDK::Internal::Type::Enum
CHARGE_AUTOMATICALLY = :charge_automatically
SEND_INVOICE = :send_invoice
AUTO_CHARGE_PAYMENT_INTENT = :auto_charge_payment_intent
MANUALLY_CHARGE_PAYMENT_INTENT = :manually_charge_payment_intent
end
end
|
Instance Attribute Details
#aws_customer_account_id ⇒ String?
88
|
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 88
optional :aws_customer_account_id, String
|
#aws_customer_id ⇒ String?
93
|
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 93
optional :aws_customer_id, String
|
#aws_is_subscription_product ⇒ Boolean?
True if the aws_product_code is a SAAS subscription product, false otherwise.
99
|
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 99
optional :aws_is_subscription_product, MetronomeSDK::Internal::Type::Boolean
|
#aws_product_code ⇒ String?
104
|
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 104
optional :aws_product_code, String
|
#aws_region ⇒ Symbol, ...
109
|
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 109
optional :aws_region, enum: -> { MetronomeSDK::V1::CustomerCreateParams::BillingConfig::AwsRegion }
|
#billing_provider_customer_id ⇒ String
77
|
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 77
required :billing_provider_customer_id, String
|
82
83
|
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 82
required :billing_provider_type,
enum: -> { MetronomeSDK::V1::CustomerCreateParams::BillingConfig::BillingProviderType }
|
#stripe_collection_method ⇒ Symbol, ...
The collection method for the customer's invoices. NOTE:
auto_charge_payment_intent and manually_charge_payment_intent are in beta.
116
117
|
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 116
optional :stripe_collection_method,
enum: -> { MetronomeSDK::V1::CustomerCreateParams::BillingConfig::StripeCollectionMethod }
|
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/metronome_sdk/models/v1/customer_create_params.rb', line 154
|
Instance Method Details
#to_hash ⇒ {
130
|
# File 'sig/metronome_sdk/models/v1/customer_create_params.rbs', line 130
def to_hash: -> {
|