Class: UnivapayClientSdk::SubscriptionListItem
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UnivapayClientSdk::SubscriptionListItem
- Defined in:
- lib/univapay_client_sdk/models/subscription_list_item.rb
Overview
Subscription entry returned in list responses.
Instance Attribute Summary collapse
-
#amount ⇒ Integer
Amount in the smallest currency unit.
-
#amount_formatted ⇒ Float
Amount formatted for display.
-
#amount_left ⇒ Integer
Remaining amount to be charged over the life of the plan, in the smallest currency unit.
-
#amount_left_formatted ⇒ Float
amount_leftformatted for display. -
#charge_id ⇒ UUID | String
Identifier of the charge associated with the subscription's installment plan.
-
#created_on ⇒ DateTime
Timestamp when the resource was created.
-
#currency ⇒ String
ISO-4217 currency code.
-
#cycles_left ⇒ Integer
Number of remaining billing cycles before the subscription completes.
-
#cyclical_period ⇒ String
ISO-8601 Duration for a custom billing frequency (e.g., P3D, P1M), returned instead of
periodwhen the subscription uses a custom cycle length rather than one of the fixed period presets. -
#first_charge_authorization_only ⇒ TrueClass | FalseClass
Whether the first charge is authorization-only.
-
#first_charge_capture_after ⇒ String
ISO-8601 Duration (e.g., P3D).
-
#id ⇒ UUID | String
Unique identifier.
-
#initial_amount ⇒ Integer
Initial amount in the smallest currency unit.
-
#initial_amount_formatted ⇒ Float
Initial amount formatted for display.
-
#installment_plan ⇒ SubscriptionInstallmentPlanResponse
Installment plan applied to the subscription, as returned by the API.
-
#merchant_name ⇒ String
Merchant display name.
-
#metadata ⇒ GenericMetadata
A free-form dictionary for custom metadata.
-
#mode ⇒ ChargeMode
Charge Mode schema.
-
#next_payment ⇒ SubscriptionNextPayment
Next scheduled payment details for a subscription.
-
#next_payment_date ⇒ Date
Next payment date value.
-
#only_direct_currency ⇒ TrueClass | FalseClass
Whether only direct currency processing is allowed.
-
#payment_type ⇒ String
Payment method type.
-
#period ⇒ SubscriptionPeriod
Subscription Period schema.
-
#schedule_settings ⇒ SubscriptionScheduleSettings
Schedule settings applied to a subscription.
-
#status ⇒ SubscriptionStatus
Subscription Status schema.
-
#store_id ⇒ UUID | String
Store identifier.
-
#store_name ⇒ String
Store display name.
-
#subscription_plan ⇒ SubscriptionPlanSettings
Configuration for limited-cycle subscriptions (Univapay side).
-
#subsequent_cycles_start ⇒ DateTime
Timestamp when recurring cycles begin.
-
#three_ds ⇒ SubscriptionThreeDs
3-D Secure configuration and redirect details applied to the subscription's payments.
-
#transaction_token_id ⇒ UUID | String
Transaction token identifier.
-
#user_data ⇒ SubscriptionUserData
Customer-facing payment method summary data.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
-
#initialize(id: SKIP, store_id: SKIP, transaction_token_id: SKIP, amount: SKIP, currency: SKIP, amount_formatted: SKIP, initial_amount: SKIP, initial_amount_formatted: SKIP, subsequent_cycles_start: SKIP, schedule_settings: SKIP, only_direct_currency: SKIP, first_charge_capture_after: SKIP, first_charge_authorization_only: SKIP, status: SKIP, metadata: SKIP, mode: SKIP, created_on: SKIP, three_ds: SKIP, period: SKIP, cyclical_period: SKIP, next_payment: SKIP, cycles_left: SKIP, subscription_plan: SKIP, installment_plan: SKIP, charge_id: SKIP, amount_left: SKIP, amount_left_formatted: SKIP, merchant_name: SKIP, store_name: SKIP, payment_type: SKIP, next_payment_date: SKIP, user_data: SKIP, additional_properties: nil) ⇒ SubscriptionListItem
constructor
A new instance of SubscriptionListItem.
-
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
- #to_custom_created_on ⇒ Object
- #to_custom_subsequent_cycles_start ⇒ Object
-
#to_s ⇒ Object
Provides a human-readable string representation of the object.
Methods inherited from BaseModel
#check_for_conflict, #process_additional_properties, #process_array, #process_basic_value, #process_hash, #to_hash, #to_json
Constructor Details
#initialize(id: SKIP, store_id: SKIP, transaction_token_id: SKIP, amount: SKIP, currency: SKIP, amount_formatted: SKIP, initial_amount: SKIP, initial_amount_formatted: SKIP, subsequent_cycles_start: SKIP, schedule_settings: SKIP, only_direct_currency: SKIP, first_charge_capture_after: SKIP, first_charge_authorization_only: SKIP, status: SKIP, metadata: SKIP, mode: SKIP, created_on: SKIP, three_ds: SKIP, period: SKIP, cyclical_period: SKIP, next_payment: SKIP, cycles_left: SKIP, subscription_plan: SKIP, installment_plan: SKIP, charge_id: SKIP, amount_left: SKIP, amount_left_formatted: SKIP, merchant_name: SKIP, store_name: SKIP, payment_type: SKIP, next_payment_date: SKIP, user_data: SKIP, additional_properties: nil) ⇒ SubscriptionListItem
Returns a new instance of SubscriptionListItem.
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 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 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 243 def initialize(id: SKIP, store_id: SKIP, transaction_token_id: SKIP, amount: SKIP, currency: SKIP, amount_formatted: SKIP, initial_amount: SKIP, initial_amount_formatted: SKIP, subsequent_cycles_start: SKIP, schedule_settings: SKIP, only_direct_currency: SKIP, first_charge_capture_after: SKIP, first_charge_authorization_only: SKIP, status: SKIP, metadata: SKIP, mode: SKIP, created_on: SKIP, three_ds: SKIP, period: SKIP, cyclical_period: SKIP, next_payment: SKIP, cycles_left: SKIP, subscription_plan: SKIP, installment_plan: SKIP, charge_id: SKIP, amount_left: SKIP, amount_left_formatted: SKIP, merchant_name: SKIP, store_name: SKIP, payment_type: SKIP, next_payment_date: SKIP, user_data: SKIP, additional_properties: nil) # Add additional model properties to the instance additional_properties = {} if additional_properties.nil? @id = id unless id == SKIP @store_id = store_id unless store_id == SKIP @transaction_token_id = transaction_token_id unless transaction_token_id == SKIP @amount = amount unless amount == SKIP @currency = currency unless currency == SKIP @amount_formatted = amount_formatted unless amount_formatted == SKIP @initial_amount = initial_amount unless initial_amount == SKIP @initial_amount_formatted = initial_amount_formatted unless initial_amount_formatted == SKIP @subsequent_cycles_start = subsequent_cycles_start unless subsequent_cycles_start == SKIP @schedule_settings = schedule_settings unless schedule_settings == SKIP @only_direct_currency = only_direct_currency unless only_direct_currency == SKIP unless first_charge_capture_after == SKIP @first_charge_capture_after = first_charge_capture_after end unless == SKIP @first_charge_authorization_only = end @status = status unless status == SKIP @metadata = unless == SKIP @mode = mode unless mode == SKIP @created_on = created_on unless created_on == SKIP @three_ds = three_ds unless three_ds == SKIP @period = period unless period == SKIP @cyclical_period = cyclical_period unless cyclical_period == SKIP @next_payment = next_payment unless next_payment == SKIP @cycles_left = cycles_left unless cycles_left == SKIP @subscription_plan = subscription_plan unless subscription_plan == SKIP @installment_plan = installment_plan unless installment_plan == SKIP @charge_id = charge_id unless charge_id == SKIP @amount_left = amount_left unless amount_left == SKIP @amount_left_formatted = amount_left_formatted unless amount_left_formatted == SKIP @merchant_name = merchant_name unless merchant_name == SKIP @store_name = store_name unless store_name == SKIP @payment_type = payment_type unless payment_type == SKIP @next_payment_date = next_payment_date unless next_payment_date == SKIP @user_data = user_data unless user_data == SKIP @additional_properties = additional_properties end |
Instance Attribute Details
#amount ⇒ Integer
Amount in the smallest currency unit.
27 28 29 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 27 def amount @amount end |
#amount_formatted ⇒ Float
Amount formatted for display.
35 36 37 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 35 def amount_formatted @amount_formatted end |
#amount_left ⇒ Integer
Remaining amount to be charged over the life of the plan, in the smallest currency unit. Only present for cycle-limited plans.
125 126 127 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 125 def amount_left @amount_left end |
#amount_left_formatted ⇒ Float
amount_left formatted for display.
129 130 131 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 129 def amount_left_formatted @amount_left_formatted end |
#charge_id ⇒ UUID | String
Identifier of the charge associated with the subscription's installment
plan. Only present when installment_plan is set.
120 121 122 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 120 def charge_id @charge_id end |
#created_on ⇒ DateTime
Timestamp when the resource was created.
79 80 81 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 79 def created_on @created_on end |
#currency ⇒ String
ISO-4217 currency code.
31 32 33 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 31 def currency @currency end |
#cycles_left ⇒ Integer
Number of remaining billing cycles before the subscription completes. Only
present for cycle-limited plans (subscription_plan or
installment_plan); null for indefinite subscriptions.
105 106 107 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 105 def cycles_left @cycles_left end |
#cyclical_period ⇒ String
ISO-8601 Duration for a custom billing frequency (e.g., P3D, P1M),
returned instead of period when the subscription uses a custom cycle
length rather than one of the fixed period presets. Mutually exclusive
with period — exactly one of the two is present.
95 96 97 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 95 def cyclical_period @cyclical_period end |
#first_charge_authorization_only ⇒ TrueClass | FalseClass
Whether the first charge is authorization-only.
63 64 65 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 63 def @first_charge_authorization_only end |
#first_charge_capture_after ⇒ String
ISO-8601 Duration (e.g., P3D).
59 60 61 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 59 def first_charge_capture_after @first_charge_capture_after end |
#id ⇒ UUID | String
Unique identifier.
15 16 17 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 15 def id @id end |
#initial_amount ⇒ Integer
Initial amount in the smallest currency unit.
39 40 41 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 39 def initial_amount @initial_amount end |
#initial_amount_formatted ⇒ Float
Initial amount formatted for display.
43 44 45 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 43 def initial_amount_formatted @initial_amount_formatted end |
#installment_plan ⇒ SubscriptionInstallmentPlanResponse
Installment plan applied to the subscription, as returned by the API.
Covers both card-network installment plans (revolving, fixed_cycles)
and legacy fixed-amount installment plans (fixed_cycle_amount).
115 116 117 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 115 def installment_plan @installment_plan end |
#merchant_name ⇒ String
Merchant display name.
133 134 135 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 133 def merchant_name @merchant_name end |
#metadata ⇒ GenericMetadata
A free-form dictionary for custom metadata.
71 72 73 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 71 def @metadata end |
#mode ⇒ ChargeMode
Charge Mode schema.
75 76 77 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 75 def mode @mode end |
#next_payment ⇒ SubscriptionNextPayment
Next scheduled payment details for a subscription.
99 100 101 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 99 def next_payment @next_payment end |
#next_payment_date ⇒ Date
Next payment date value.
145 146 147 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 145 def next_payment_date @next_payment_date end |
#only_direct_currency ⇒ TrueClass | FalseClass
Whether only direct currency processing is allowed.
55 56 57 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 55 def only_direct_currency @only_direct_currency end |
#payment_type ⇒ String
Payment method type.
141 142 143 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 141 def payment_type @payment_type end |
#period ⇒ SubscriptionPeriod
Subscription Period schema.
88 89 90 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 88 def period @period end |
#schedule_settings ⇒ SubscriptionScheduleSettings
Schedule settings applied to a subscription.
51 52 53 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 51 def schedule_settings @schedule_settings end |
#status ⇒ SubscriptionStatus
Subscription Status schema.
67 68 69 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 67 def status @status end |
#store_id ⇒ UUID | String
Store identifier.
19 20 21 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 19 def store_id @store_id end |
#store_name ⇒ String
Store display name.
137 138 139 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 137 def store_name @store_name end |
#subscription_plan ⇒ SubscriptionPlanSettings
Configuration for limited-cycle subscriptions (Univapay side).
109 110 111 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 109 def subscription_plan @subscription_plan end |
#subsequent_cycles_start ⇒ DateTime
Timestamp when recurring cycles begin.
47 48 49 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 47 def subsequent_cycles_start @subsequent_cycles_start end |
#three_ds ⇒ SubscriptionThreeDs
3-D Secure configuration and redirect details applied to the subscription's payments.
84 85 86 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 84 def three_ds @three_ds end |
#transaction_token_id ⇒ UUID | String
Transaction token identifier.
23 24 25 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 23 def transaction_token_id @transaction_token_id end |
#user_data ⇒ SubscriptionUserData
Customer-facing payment method summary data.
149 150 151 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 149 def user_data @user_data end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 302 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. id = hash.key?('id') ? hash['id'] : SKIP store_id = hash.key?('store_id') ? hash['store_id'] : SKIP transaction_token_id = hash.key?('transaction_token_id') ? hash['transaction_token_id'] : SKIP amount = hash.key?('amount') ? hash['amount'] : SKIP currency = hash.key?('currency') ? hash['currency'] : SKIP amount_formatted = hash.key?('amount_formatted') ? hash['amount_formatted'] : SKIP initial_amount = hash.key?('initial_amount') ? hash['initial_amount'] : SKIP initial_amount_formatted = hash.key?('initial_amount_formatted') ? hash['initial_amount_formatted'] : SKIP subsequent_cycles_start = if hash.key?('subsequent_cycles_start') (DateTimeHelper.from_rfc3339(hash['subsequent_cycles_start']) if hash['subsequent_cycles_start']) else SKIP end schedule_settings = SubscriptionScheduleSettings.from_hash(hash['schedule_settings']) if hash['schedule_settings'] only_direct_currency = hash.key?('only_direct_currency') ? hash['only_direct_currency'] : SKIP first_charge_capture_after = hash.key?('first_charge_capture_after') ? hash['first_charge_capture_after'] : SKIP = hash.key?('first_charge_authorization_only') ? hash['first_charge_authorization_only'] : SKIP status = hash.key?('status') ? hash['status'] : SKIP = GenericMetadata.from_hash(hash['metadata']) if hash['metadata'] mode = hash.key?('mode') ? hash['mode'] : SKIP created_on = if hash.key?('created_on') (DateTimeHelper.from_rfc3339(hash['created_on']) if hash['created_on']) else SKIP end three_ds = SubscriptionThreeDs.from_hash(hash['three_ds']) if hash['three_ds'] period = hash.key?('period') ? hash['period'] : SKIP cyclical_period = hash.key?('cyclical_period') ? hash['cyclical_period'] : SKIP next_payment = SubscriptionNextPayment.from_hash(hash['next_payment']) if hash['next_payment'] cycles_left = hash.key?('cycles_left') ? hash['cycles_left'] : SKIP subscription_plan = SubscriptionPlanSettings.from_hash(hash['subscription_plan']) if hash['subscription_plan'] installment_plan = SubscriptionInstallmentPlanResponse.from_hash(hash['installment_plan']) if hash['installment_plan'] charge_id = hash.key?('charge_id') ? hash['charge_id'] : SKIP amount_left = hash.key?('amount_left') ? hash['amount_left'] : SKIP amount_left_formatted = hash.key?('amount_left_formatted') ? hash['amount_left_formatted'] : SKIP merchant_name = hash.key?('merchant_name') ? hash['merchant_name'] : SKIP store_name = hash.key?('store_name') ? hash['store_name'] : SKIP payment_type = hash.key?('payment_type') ? hash['payment_type'] : SKIP next_payment_date = hash.key?('next_payment_date') ? hash['next_payment_date'] : SKIP user_data = SubscriptionUserData.from_hash(hash['user_data']) if hash['user_data'] # Create a new hash for additional properties, removing known properties. new_hash = hash.reject { |k, _| names.value?(k) } additional_properties = APIHelper.get_additional_properties( new_hash, proc { |value| value } ) # Create object from extracted values. SubscriptionListItem.new(id: id, store_id: store_id, transaction_token_id: transaction_token_id, amount: amount, currency: currency, amount_formatted: amount_formatted, initial_amount: initial_amount, initial_amount_formatted: initial_amount_formatted, subsequent_cycles_start: subsequent_cycles_start, schedule_settings: schedule_settings, only_direct_currency: only_direct_currency, first_charge_capture_after: first_charge_capture_after, first_charge_authorization_only: , status: status, metadata: , mode: mode, created_on: created_on, three_ds: three_ds, period: period, cyclical_period: cyclical_period, next_payment: next_payment, cycles_left: cycles_left, subscription_plan: subscription_plan, installment_plan: installment_plan, charge_id: charge_id, amount_left: amount_left, amount_left_formatted: amount_left_formatted, merchant_name: merchant_name, store_name: store_name, payment_type: payment_type, next_payment_date: next_payment_date, user_data: user_data, additional_properties: additional_properties) end |
.names ⇒ Object
A mapping from model property names to API property names.
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 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 152 def self.names @_hash = {} if @_hash.nil? @_hash['id'] = 'id' @_hash['store_id'] = 'store_id' @_hash['transaction_token_id'] = 'transaction_token_id' @_hash['amount'] = 'amount' @_hash['currency'] = 'currency' @_hash['amount_formatted'] = 'amount_formatted' @_hash['initial_amount'] = 'initial_amount' @_hash['initial_amount_formatted'] = 'initial_amount_formatted' @_hash['subsequent_cycles_start'] = 'subsequent_cycles_start' @_hash['schedule_settings'] = 'schedule_settings' @_hash['only_direct_currency'] = 'only_direct_currency' @_hash['first_charge_capture_after'] = 'first_charge_capture_after' @_hash['first_charge_authorization_only'] = 'first_charge_authorization_only' @_hash['status'] = 'status' @_hash['metadata'] = 'metadata' @_hash['mode'] = 'mode' @_hash['created_on'] = 'created_on' @_hash['three_ds'] = 'three_ds' @_hash['period'] = 'period' @_hash['cyclical_period'] = 'cyclical_period' @_hash['next_payment'] = 'next_payment' @_hash['cycles_left'] = 'cycles_left' @_hash['subscription_plan'] = 'subscription_plan' @_hash['installment_plan'] = 'installment_plan' @_hash['charge_id'] = 'charge_id' @_hash['amount_left'] = 'amount_left' @_hash['amount_left_formatted'] = 'amount_left_formatted' @_hash['merchant_name'] = 'merchant_name' @_hash['store_name'] = 'store_name' @_hash['payment_type'] = 'payment_type' @_hash['next_payment_date'] = 'next_payment_date' @_hash['user_data'] = 'user_data' @_hash end |
.nullables ⇒ Object
An array for nullable fields
229 230 231 232 233 234 235 236 237 238 239 240 241 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 229 def self.nullables %w[ initial_amount initial_amount_formatted subsequent_cycles_start first_charge_capture_after cyclical_period cycles_left charge_id amount_left amount_left_formatted ] end |
.optionals ⇒ Object
An array for optional fields
191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 191 def self.optionals %w[ id store_id transaction_token_id amount currency amount_formatted initial_amount initial_amount_formatted subsequent_cycles_start schedule_settings only_direct_currency first_charge_capture_after first_charge_authorization_only status metadata mode created_on three_ds period cyclical_period next_payment cycles_left subscription_plan installment_plan charge_id amount_left amount_left_formatted merchant_name store_name payment_type next_payment_date user_data ] end |
Instance Method Details
#inspect ⇒ Object
Provides a debugging-friendly string with detailed object information.
433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 433 def inspect class_name = self.class.name.split('::').last "<#{class_name} id: #{@id.inspect}, store_id: #{@store_id.inspect}, transaction_token_id:"\ " #{@transaction_token_id.inspect}, amount: #{@amount.inspect}, currency:"\ " #{@currency.inspect}, amount_formatted: #{@amount_formatted.inspect}, initial_amount:"\ " #{@initial_amount.inspect}, initial_amount_formatted:"\ " #{@initial_amount_formatted.inspect}, subsequent_cycles_start:"\ " #{@subsequent_cycles_start.inspect}, schedule_settings: #{@schedule_settings.inspect},"\ " only_direct_currency: #{@only_direct_currency.inspect}, first_charge_capture_after:"\ " #{@first_charge_capture_after.inspect}, first_charge_authorization_only:"\ " #{@first_charge_authorization_only.inspect}, status: #{@status.inspect}, metadata:"\ " #{@metadata.inspect}, mode: #{@mode.inspect}, created_on: #{@created_on.inspect},"\ " three_ds: #{@three_ds.inspect}, period: #{@period.inspect}, cyclical_period:"\ " #{@cyclical_period.inspect}, next_payment: #{@next_payment.inspect}, cycles_left:"\ " #{@cycles_left.inspect}, subscription_plan: #{@subscription_plan.inspect},"\ " installment_plan: #{@installment_plan.inspect}, charge_id: #{@charge_id.inspect},"\ " amount_left: #{@amount_left.inspect}, amount_left_formatted:"\ " #{@amount_left_formatted.inspect}, merchant_name: #{@merchant_name.inspect}, store_name:"\ " #{@store_name.inspect}, payment_type: #{@payment_type.inspect}, next_payment_date:"\ " #{@next_payment_date.inspect}, user_data: #{@user_data.inspect}, additional_properties:"\ " #{@additional_properties}>" end |
#to_custom_created_on ⇒ Object
408 409 410 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 408 def to_custom_created_on DateTimeHelper.to_rfc3339(created_on) end |
#to_custom_subsequent_cycles_start ⇒ Object
404 405 406 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 404 def to_custom_subsequent_cycles_start DateTimeHelper.to_rfc3339(subsequent_cycles_start) end |
#to_s ⇒ Object
Provides a human-readable string representation of the object.
413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/univapay_client_sdk/models/subscription_list_item.rb', line 413 def to_s class_name = self.class.name.split('::').last "<#{class_name} id: #{@id}, store_id: #{@store_id}, transaction_token_id:"\ " #{@transaction_token_id}, amount: #{@amount}, currency: #{@currency}, amount_formatted:"\ " #{@amount_formatted}, initial_amount: #{@initial_amount}, initial_amount_formatted:"\ " #{@initial_amount_formatted}, subsequent_cycles_start: #{@subsequent_cycles_start},"\ " schedule_settings: #{@schedule_settings}, only_direct_currency: #{@only_direct_currency},"\ " first_charge_capture_after: #{@first_charge_capture_after},"\ " first_charge_authorization_only: #{@first_charge_authorization_only}, status: #{@status},"\ " metadata: #{@metadata}, mode: #{@mode}, created_on: #{@created_on}, three_ds:"\ " #{@three_ds}, period: #{@period}, cyclical_period: #{@cyclical_period}, next_payment:"\ " #{@next_payment}, cycles_left: #{@cycles_left}, subscription_plan: #{@subscription_plan},"\ " installment_plan: #{@installment_plan}, charge_id: #{@charge_id}, amount_left:"\ " #{@amount_left}, amount_left_formatted: #{@amount_left_formatted}, merchant_name:"\ " #{@merchant_name}, store_name: #{@store_name}, payment_type: #{@payment_type},"\ " next_payment_date: #{@next_payment_date}, user_data: #{@user_data}, additional_properties:"\ " #{@additional_properties}>" end |