1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-28 09:24:24 +01:00

(bug) associate order/payment-schedule with invoice before saving

Also: timezone in fixtures
This commit is contained in:
Sylvain 2023-03-27 11:43:36 +02:00
parent f9123fe20f
commit 227c6d1844
19 changed files with 2447 additions and 1164 deletions

View File

@ -117,8 +117,8 @@ class PaymentScheduleService
set_total_and_coupon(payment_schedule_item, invoice, user, coupon)
# save the results
invoice.payment_schedule_item = payment_schedule_item
invoice.save
payment_schedule_item.update(invoice_id: invoice.id)
end
# return a paginated list of PaymentSchedule, optionally filtered, with their associated PaymentScheduleItem

View File

@ -60,7 +60,7 @@ module Payments::PaymentConcern
)
invoice.wallet_amount = order.wallet_amount
invoice.wallet_transaction_id = order.wallet_transaction_id
invoice.order = order
invoice.save unless Setting.get('prevent_invoices_zero') && order.total.zero?
order.update(invoice_id: invoice.id)
end
end

View File

@ -20,7 +20,7 @@ namespace :db do
data = rows.each_with_object({}) do |record, hash|
suffix = record['id'].presence || counter.succ!
# FIXME, this is broken with jsonb columns: it records a String but a Hash must be saved
hash["#{table_name.singularize}#{suffix}"] = record
hash["#{table_name.singularize}#{suffix}"] = yamlize(record, rows.column_types)
end
puts "Writing table '#{table_name}' to '#{file_path}'"
file.write(data.to_yaml)
@ -30,4 +30,10 @@ namespace :db do
ActiveRecord::Base.connection&.close
end
end
def yamlize(record, column_types)
record.each_with_object({}) do |(key, value), hash|
hash[key] = column_types.include?(key) && column_types[key].type == :jsonb ? JSON.parse(value) : value
end
end
end

View File

@ -1,8 +1,8 @@
availability_1:
id: 1
start_at: <%= DateTime.current.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= DateTime.current.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= DateTime.current.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= DateTime.current.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: training
created_at: 2016-04-04 15:24:01.517486000 Z
updated_at: 2016-04-04 15:24:01.517486000 Z
@ -11,8 +11,8 @@ availability_1:
availability_2:
id: 2
start_at: <%= (DateTime.current + 1.day).change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 1.day).change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: training
created_at: 2016-04-04 15:24:09.169364000 Z
updated_at: 2016-04-04 15:24:09.169364000 Z
@ -21,8 +21,8 @@ availability_2:
availability_3:
id: 3
start_at: <%= DateTime.current.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= DateTime.current.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= DateTime.current.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= DateTime.current.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: machines
created_at: 2016-04-04 15:24:27.587583000 Z
updated_at: 2016-04-04 15:24:27.587583000 Z
@ -31,8 +31,8 @@ availability_3:
availability_4:
id: 4
start_at: <%= (DateTime.current + 1.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 1.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: machines
created_at: 2016-04-04 15:24:44.044908000 Z
updated_at: 2016-04-04 15:24:44.044908000 Z
@ -41,8 +41,8 @@ availability_4:
availability_5:
id: 5
start_at: <%= (DateTime.current + 2.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 2.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: machines
created_at: 2016-04-04 15:25:48.584444000 Z
updated_at: 2016-04-04 15:25:48.584444000 Z
@ -51,8 +51,8 @@ availability_5:
availability_6:
id: 6
start_at: <%= (DateTime.current + 3.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: machines
created_at: 2016-04-04 15:26:17.953216000 Z
updated_at: 2016-04-04 15:26:17.953216000 Z
@ -61,8 +61,8 @@ availability_6:
availability_7:
id: 7
start_at: <%= (DateTime.current + 3.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: machines
created_at: 2016-04-04 15:26:39.278627000 Z
updated_at: 2016-04-04 15:26:39.278627000 Z
@ -71,8 +71,8 @@ availability_7:
availability_8:
id: 8
start_at: <%= (DateTime.current + 2.day).change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 2.day).change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: training
created_at: 2016-04-04 15:26:49.572724000 Z
updated_at: 2016-04-04 15:26:49.572724000 Z
@ -132,8 +132,8 @@ availability_13:
availability_14:
id: 14
start_at: <%= 20.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 20.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 20.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 20.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: machines
created_at: 2016-04-04 15:44:04.023557000 Z
updated_at: 2016-04-04 15:44:04.023557000 Z
@ -142,8 +142,8 @@ availability_14:
availability_15:
id: 15
start_at: <%= 40.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 40.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 40.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 40.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: machines
created_at: 2016-04-04 15:44:04.023557000 Z
updated_at: 2016-04-04 15:44:04.023557000 Z
@ -152,8 +152,8 @@ availability_15:
availability_16:
id: 16
start_at: <%= 80.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 80.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 80.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 80.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: machines
created_at: 2016-04-04 15:44:04.023557000 Z
updated_at: 2016-04-04 15:44:04.023557000 Z
@ -162,8 +162,8 @@ availability_16:
availability_17:
id: 17
start_at: <%= 10.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 12.days.from_now.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 10.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 12.days.from_now.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: event
created_at: 2016-04-04 15:44:04.023557000 Z
updated_at: 2016-04-04 15:44:04.023557000 Z
@ -172,8 +172,8 @@ availability_17:
availability_18:
id: 18
start_at: <%= 2.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 2.days.from_now.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 2.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 2.days.from_now.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: space
created_at: 2017-02-15 15:53:35.154433000 Z
updated_at: 2017-02-15 15:53:35.154433000 Z
@ -182,8 +182,8 @@ availability_18:
availability_19:
id: 19
start_at: <%= 1.day.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 1.day.from_now.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.day.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 1.day.from_now.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: machines
created_at: 2017-02-15 15:53:35.154433000 Z
updated_at: 2017-02-15 15:53:35.154433000 Z
@ -192,8 +192,8 @@ availability_19:
availability_20:
id: 20
start_at: <%= 10.days.ago.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 10.days.ago.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 10.days.ago.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 10.days.ago.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: training
created_at: 2022-07-18 12:38:21.616510000 Z
updated_at: 2022-07-18 12:38:21.616510000 Z
@ -202,8 +202,8 @@ availability_20:
availability_21:
id: 21
start_at: <%= 10.minutes.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (10.minutes.from_now + 1.hour).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 10.minutes.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (10.minutes.from_now + 1.hour).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: space
created_at: 2022-12-14 12:01:26.165110000 Z
updated_at: 2022-12-14 12:01:26.165110000 Z
@ -212,8 +212,8 @@ availability_21:
availability_22:
id: 22
start_at: <%= 1.hour.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 2.hours.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.hour.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 2.hours.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
available_type: training
created_at: 2023-01-24 13:34:43.841240000 Z
updated_at: 2023-01-24 13:34:43.841240000 Z

File diff suppressed because one or more lines are too long

View File

@ -13,7 +13,7 @@ two:
name: Summer discounts
code: SUNNYFABLAB
percent_off: 15
valid_until: <%= 1.month.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
valid_until: <%= 1.month.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
max_usages: 10
active: true
validity_per_user: always
@ -22,7 +22,7 @@ cash:
name: Cash Code
code: ZERG6H1R65H
amount_off: 10000
valid_until: <%= 1.year.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
valid_until: <%= 1.year.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
max_usages: 1
active: true
validity_per_user: once
@ -31,7 +31,7 @@ cash2:
name: Small Cash Code
code: GIME3EUR
amount_off: 300
valid_until: <%= 1.year.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
valid_until: <%= 1.year.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
max_usages:
active: true
validity_per_user: once

View File

@ -116,8 +116,8 @@ order_activity_21:
operator_profile_id:
activity_type: paid
note:
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
order_activity_22:
id: 22
order_id: 15
@ -125,5 +125,5 @@ order_activity_22:
activity_type: ready
note: "<p>Votre <em>commande</em> est prête, merci de venir la récupérer <strong>jeudi</strong>
<u>après 14 h</u>.</p>"
created_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>

View File

@ -126,8 +126,8 @@ order_item_24:
amount: 3000
quantity: 1
is_offered:
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
order_item_25:
id: 25
order_id: 18
@ -136,8 +136,8 @@ order_item_25:
amount: 500
quantity: 1
is_offered:
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
order_item_26:
id: 26
order_id: 19
@ -146,8 +146,8 @@ order_item_26:
amount: 52300
quantity: 5
is_offered:
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
order_item_27:
id: 27
order_id: 20
@ -156,8 +156,8 @@ order_item_27:
amount: 52300
quantity: 5
is_offered:
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
order_item_28:
id: 28
order_id: 20
@ -166,5 +166,5 @@ order_item_28:
amount: 500
quantity: 2
is_offered:
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>

View File

@ -150,8 +150,8 @@ order_15:
reference: '005900-10-22'
state: ready
total: 3000
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
wallet_amount:
wallet_transaction_id:
payment_method: local
@ -168,8 +168,8 @@ order_16:
reference: '005901-<%= DateTime.current.utc.strftime('%m') %>-<%= DateTime.current.utc.strftime('%d') %>'
state: cart
total: 0
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
wallet_amount:
wallet_transaction_id:
payment_method:
@ -186,8 +186,8 @@ order_17:
reference: '005902-<%= DateTime.current.utc.strftime('%m') %>-<%= DateTime.current.utc.strftime('%d') %>'
state: cart
total: 0
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
wallet_amount:
wallet_transaction_id:
payment_method:
@ -204,8 +204,8 @@ order_18:
reference: '005902-<%= DateTime.current.utc.strftime('%m') %>-<%= DateTime.current.utc.strftime('%d') %>'
state: cart
total: 500
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
wallet_amount:
wallet_transaction_id:
payment_method:
@ -222,8 +222,8 @@ order_19:
reference: '005903-<%= DateTime.current.utc.strftime('%m') %>-<%= DateTime.current.utc.strftime('%d') %>'
state: cart
total: 261500
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
wallet_amount:
wallet_transaction_id:
payment_method:
@ -240,8 +240,8 @@ order_20:
reference: '005904-<%= DateTime.current.utc.strftime('%m') %>-<%= DateTime.current.utc.strftime('%d') %>'
state: cart
total: 262500
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
wallet_amount:
wallet_transaction_id:
payment_method:

View File

@ -158,156 +158,156 @@ payment_schedule_item_116:
payment_schedule_item_117:
id: 117
amount: 9474
due_date: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: paid
details: {"recurring": 9466, "adjustment": 8, "other_items": 0}
payment_method: card
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
payment_schedule_item_118:
id: 118
amount: 9466
due_date: <%= 8.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= 8.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: paid
details: {"recurring": 9466}
payment_method: card
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
payment_schedule_item_119:
id: 119
amount: 9466
due_date: <%= 7.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= 7.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: paid
details: {"recurring": 9466}
payment_method: card
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
payment_schedule_item_120:
id: 120
amount: 9466
due_date: <%= 6.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= 6.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: paid
details: {"recurring": 9466}
payment_method: card
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
payment_schedule_item_121:
id: 121
amount: 9466
due_date: <%= 5.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= 5.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: paid
details: {"recurring": 9466}
payment_method: card
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
payment_schedule_item_122:
id: 122
amount: 9466
due_date: <%= 4.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= 4.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: paid
details: {"recurring": 9466}
payment_method: card
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
payment_schedule_item_123:
id: 123
amount: 9466
due_date: <%= 3.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= 3.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: paid
details: {"recurring": 9466}
payment_method: card
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
payment_schedule_item_124:
id: 124
amount: 9466
due_date: <%= 2.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= 2.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: paid
details: {"recurring": 9466}
payment_method: card
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
payment_schedule_item_125:
id: 125
amount: 9466
due_date: <%= 1.month.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= 1.month.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: paid
details: {"recurring": 9466}
payment_method: card
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
payment_schedule_item_126:
id: 126
amount: 9466
due_date: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= DateTime.current.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: new
details: {"recurring": 9466}
payment_method:
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
payment_schedule_item_127:
id: 127
amount: 9466
due_date: <%= 1.month.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= 1.month.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: new
details: {"recurring": 9466}
payment_method:
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
payment_schedule_item_128:
id: 128
amount: 9466
due_date: <%= 2.months.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
due_date: <%= 2.months.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
state: new
details: {"recurring": 9466}
payment_method:
client_secret:
payment_schedule_id: 13
invoice_id:
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>

View File

@ -13,5 +13,5 @@ payment_schedule_object_11:
object_id: 6
payment_schedule_id: 13
main: true
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>

View File

@ -26,6 +26,6 @@ payment_schedule_13:
invoicing_profile_id: 10
statistic_profile_id: 10
operator_profile_id: 10
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
order_number: <%= 9.months.ago.utc.strftime('000008-%m-%y') %>

View File

@ -19,8 +19,8 @@ slot_2:
slot_9:
id: 9
start_at: <%= DateTime.current.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= DateTime.current.change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= DateTime.current.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= DateTime.current.change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.880751'
updated_at: '2022-07-12 15:18:43.880751'
availability_id: 3
@ -28,8 +28,8 @@ slot_9:
slot_10:
id: 10
start_at: <%= DateTime.current.change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= DateTime.current.change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= DateTime.current.change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= DateTime.current.change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.882957'
updated_at: '2022-07-12 15:18:43.882957'
availability_id: 3
@ -37,8 +37,8 @@ slot_10:
slot_11:
id: 11
start_at: <%= DateTime.current.change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= DateTime.current.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= DateTime.current.change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= DateTime.current.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.884691'
updated_at: '2022-07-12 15:18:43.884691'
availability_id: 3
@ -46,8 +46,8 @@ slot_11:
slot_12:
id: 12
start_at: <%= DateTime.current.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= DateTime.current.change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= DateTime.current.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= DateTime.current.change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.886431'
updated_at: '2022-07-12 15:18:43.886431'
availability_id: 3
@ -55,8 +55,8 @@ slot_12:
slot_13:
id: 13
start_at: <%= DateTime.current.change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= DateTime.current.change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= DateTime.current.change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= DateTime.current.change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.888074'
updated_at: '2022-07-12 15:18:43.888074'
availability_id: 3
@ -64,8 +64,8 @@ slot_13:
slot_14:
id: 14
start_at: <%= DateTime.current.change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= DateTime.current.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= DateTime.current.change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= DateTime.current.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.889691'
updated_at: '2022-07-12 15:18:43.889691'
availability_id: 3
@ -73,8 +73,8 @@ slot_14:
slot_15:
id: 15
start_at: <%= (DateTime.current + 1.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 1.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.893096'
updated_at: '2022-07-12 15:18:43.893096'
availability_id: 4
@ -82,8 +82,8 @@ slot_15:
slot_16:
id: 16
start_at: <%= (DateTime.current + 1.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 1.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.894777'
updated_at: '2022-07-12 15:18:43.894777'
availability_id: 4
@ -91,8 +91,8 @@ slot_16:
slot_17:
id: 17
start_at: <%= (DateTime.current + 1.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 1.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.896423'
updated_at: '2022-07-12 15:18:43.896423'
availability_id: 4
@ -100,8 +100,8 @@ slot_17:
slot_18:
id: 18
start_at: <%= (DateTime.current + 1.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 1.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.898021'
updated_at: '2022-07-12 15:18:43.898021'
availability_id: 4
@ -109,8 +109,8 @@ slot_18:
slot_19:
id: 19
start_at: <%= (DateTime.current + 1.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 1.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.899592'
updated_at: '2022-07-12 15:18:43.899592'
availability_id: 4
@ -118,8 +118,8 @@ slot_19:
slot_20:
id: 20
start_at: <%= (DateTime.current + 1.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 1.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.900938'
updated_at: '2022-07-12 15:18:43.900938'
availability_id: 4
@ -127,8 +127,8 @@ slot_20:
slot_21:
id: 21
start_at: <%= (DateTime.current + 2.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 2.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.904013'
updated_at: '2022-07-12 15:18:43.904013'
availability_id: 5
@ -136,8 +136,8 @@ slot_21:
slot_22:
id: 22
start_at: <%= (DateTime.current + 2.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 2.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.905470'
updated_at: '2022-07-12 15:18:43.905470'
availability_id: 5
@ -145,8 +145,8 @@ slot_22:
slot_23:
id: 23
start_at: <%= (DateTime.current + 2.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 2.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.907030'
updated_at: '2022-07-12 15:18:43.907030'
availability_id: 5
@ -154,8 +154,8 @@ slot_23:
slot_24:
id: 24
start_at: <%= (DateTime.current + 2.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 2.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.908585'
updated_at: '2022-07-12 15:18:43.908585'
availability_id: 5
@ -163,8 +163,8 @@ slot_24:
slot_25:
id: 25
start_at: <%= (DateTime.current + 2.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 2.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.910138'
updated_at: '2022-07-12 15:18:43.910138'
availability_id: 5
@ -172,8 +172,8 @@ slot_25:
slot_26:
id: 26
start_at: <%= (DateTime.current + 2.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 2.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.911643'
updated_at: '2022-07-12 15:18:43.911643'
availability_id: 5
@ -181,8 +181,8 @@ slot_26:
slot_27:
id: 27
start_at: <%= (DateTime.current + 3.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.914664'
updated_at: '2022-07-12 15:18:43.914664'
availability_id: 6
@ -190,8 +190,8 @@ slot_27:
slot_28:
id: 28
start_at: <%= (DateTime.current + 3.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.916047'
updated_at: '2022-07-12 15:18:43.916047'
availability_id: 6
@ -199,8 +199,8 @@ slot_28:
slot_29:
id: 29
start_at: <%= (DateTime.current + 3.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.917304'
updated_at: '2022-07-12 15:18:43.917304'
availability_id: 6
@ -208,8 +208,8 @@ slot_29:
slot_30:
id: 30
start_at: <%= (DateTime.current + 3.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.918798'
updated_at: '2022-07-12 15:18:43.918798'
availability_id: 6
@ -217,8 +217,8 @@ slot_30:
slot_31:
id: 31
start_at: <%= (DateTime.current + 3.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.920194'
updated_at: '2022-07-12 15:18:43.920194'
availability_id: 6
@ -226,8 +226,8 @@ slot_31:
slot_32:
id: 32
start_at: <%= (DateTime.current + 3.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.921662'
updated_at: '2022-07-12 15:18:43.921662'
availability_id: 6
@ -235,8 +235,8 @@ slot_32:
slot_33:
id: 33
start_at: <%= (DateTime.current + 3.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.924285'
updated_at: '2022-07-12 15:18:43.924285'
availability_id: 7
@ -244,8 +244,8 @@ slot_33:
slot_34:
id: 34
start_at: <%= (DateTime.current + 3.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.925669'
updated_at: '2022-07-12 15:18:43.925669'
availability_id: 7
@ -253,8 +253,8 @@ slot_34:
slot_35:
id: 35
start_at: <%= (DateTime.current + 3.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.927038'
updated_at: '2022-07-12 15:18:43.927038'
availability_id: 7
@ -262,8 +262,8 @@ slot_35:
slot_36:
id: 36
start_at: <%= (DateTime.current + 3.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.928407'
updated_at: '2022-07-12 15:18:43.928407'
availability_id: 7
@ -271,8 +271,8 @@ slot_36:
slot_37:
id: 37
start_at: <%= (DateTime.current + 3.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.929907'
updated_at: '2022-07-12 15:18:43.929907'
availability_id: 7
@ -280,8 +280,8 @@ slot_37:
slot_38:
id: 38
start_at: <%= (DateTime.current + 3.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 3.day).change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 3.day).change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.931295'
updated_at: '2022-07-12 15:18:43.931295'
availability_id: 7
@ -334,8 +334,8 @@ slot_43:
slot_44:
id: 44
start_at: <%= 20.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 20.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 20.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 20.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.942392'
updated_at: '2022-07-12 15:18:43.942392'
availability_id: 14
@ -343,8 +343,8 @@ slot_44:
slot_45:
id: 45
start_at: <%= 20.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 20.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 20.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 20.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.943779'
updated_at: '2022-07-12 15:18:43.943779'
availability_id: 14
@ -352,8 +352,8 @@ slot_45:
slot_46:
id: 46
start_at: <%= 20.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 20.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 20.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 20.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.945154'
updated_at: '2022-07-12 15:18:43.945154'
availability_id: 14
@ -361,8 +361,8 @@ slot_46:
slot_47:
id: 47
start_at: <%= 20.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 20.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 20.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 20.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.946515'
updated_at: '2022-07-12 15:18:43.946515'
availability_id: 14
@ -370,8 +370,8 @@ slot_47:
slot_48:
id: 48
start_at: <%= 40.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 40.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 40.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 40.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.949178'
updated_at: '2022-07-12 15:18:43.949178'
availability_id: 15
@ -379,8 +379,8 @@ slot_48:
slot_49:
id: 49
start_at: <%= 40.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 40.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 40.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 40.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.950348'
updated_at: '2022-07-12 15:18:43.950348'
availability_id: 15
@ -388,8 +388,8 @@ slot_49:
slot_50:
id: 50
start_at: <%= 40.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 40.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 40.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 40.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.951535'
updated_at: '2022-07-12 15:18:43.951535'
availability_id: 15
@ -397,8 +397,8 @@ slot_50:
slot_51:
id: 51
start_at: <%= 40.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 40.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 40.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 40.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.952864'
updated_at: '2022-07-12 15:18:43.952864'
availability_id: 15
@ -406,8 +406,8 @@ slot_51:
slot_52:
id: 52
start_at: <%= 80.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 80.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 80.days.from_now.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 80.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.955443'
updated_at: '2022-07-12 15:18:43.955443'
availability_id: 16
@ -415,8 +415,8 @@ slot_52:
slot_53:
id: 53
start_at: <%= 80.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 80.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 80.days.from_now.change({:hour => 7}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 80.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.956657'
updated_at: '2022-07-12 15:18:43.956657'
availability_id: 16
@ -424,8 +424,8 @@ slot_53:
slot_54:
id: 54
start_at: <%= 80.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 80.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 80.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 80.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.957811'
updated_at: '2022-07-12 15:18:43.957811'
availability_id: 16
@ -433,8 +433,8 @@ slot_54:
slot_55:
id: 55
start_at: <%= 80.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 80.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 80.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 80.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.959063'
updated_at: '2022-07-12 15:18:43.959063'
availability_id: 16
@ -442,8 +442,8 @@ slot_55:
slot_56:
id: 56
start_at: <%= 10.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 12.days.from_now.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 10.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 12.days.from_now.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:43.961319'
updated_at: '2022-07-12 15:18:43.961319'
availability_id: 17
@ -451,8 +451,8 @@ slot_56:
slot_112:
id: 112
start_at: <%= 2.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 2.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 2.days.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 2.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.038089'
updated_at: '2022-07-12 15:18:44.038089'
availability_id: 18
@ -460,8 +460,8 @@ slot_112:
slot_113:
id: 113
start_at: <%= 2.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 2.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 2.days.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 2.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.039392'
updated_at: '2022-07-12 15:18:44.039392'
availability_id: 18
@ -469,8 +469,8 @@ slot_113:
slot_114:
id: 114
start_at: <%= 2.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 2.days.from_now.change({:hour => 11}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 2.days.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 2.days.from_now.change({:hour => 11}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.040522'
updated_at: '2022-07-12 15:18:44.040522'
availability_id: 18
@ -478,8 +478,8 @@ slot_114:
slot_115:
id: 115
start_at: <%= 2.days.from_now.change({:hour => 11}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 2.days.from_now.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 2.days.from_now.change({:hour => 11}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 2.days.from_now.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.041937'
updated_at: '2022-07-12 15:18:44.041937'
availability_id: 18
@ -487,8 +487,8 @@ slot_115:
slot_116:
id: 116
start_at: <%= 1.day.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 1.day.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.day.from_now.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 1.day.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.044421'
updated_at: '2022-07-12 15:18:44.044421'
availability_id: 19
@ -496,8 +496,8 @@ slot_116:
slot_117:
id: 117
start_at: <%= 1.day.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 1.day.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.day.from_now.change({:hour => 9}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 1.day.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.045689'
updated_at: '2022-07-12 15:18:44.045689'
availability_id: 19
@ -505,8 +505,8 @@ slot_117:
slot_118:
id: 118
start_at: <%= 1.day.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 1.day.from_now.change({:hour => 11}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.day.from_now.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 1.day.from_now.change({:hour => 11}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.047009'
updated_at: '2022-07-12 15:18:44.047009'
availability_id: 19
@ -514,8 +514,8 @@ slot_118:
slot_119:
id: 119
start_at: <%= 1.day.from_now.change({:hour => 11}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 1.day.from_now.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.day.from_now.change({:hour => 11}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 1.day.from_now.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.048272'
updated_at: '2022-07-12 15:18:44.048272'
availability_id: 19
@ -523,8 +523,8 @@ slot_119:
slot_120:
id: 120
start_at: <%= 1.day.from_now.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 1.day.from_now.change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.day.from_now.change({:hour => 12}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 1.day.from_now.change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.049599'
updated_at: '2022-07-12 15:18:44.049599'
availability_id: 19
@ -532,8 +532,8 @@ slot_120:
slot_121:
id: 121
start_at: <%= 1.day.from_now.change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 1.day.from_now.change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.day.from_now.change({:hour => 13}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 1.day.from_now.change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.050947'
updated_at: '2022-07-12 15:18:44.050947'
availability_id: 19
@ -541,8 +541,8 @@ slot_121:
slot_122:
id: 122
start_at: <%= 1.day.from_now.change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 1.day.from_now.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.day.from_now.change({:hour => 14}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 1.day.from_now.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.052817'
updated_at: '2022-07-12 15:18:44.052817'
availability_id: 19
@ -550,8 +550,8 @@ slot_122:
slot_123:
id: 123
start_at: <%= 1.day.from_now.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 1.day.from_now.change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.day.from_now.change({:hour => 15}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 1.day.from_now.change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.054966'
updated_at: '2022-07-12 15:18:44.054966'
availability_id: 19
@ -559,8 +559,8 @@ slot_123:
slot_124:
id: 124
start_at: <%= 1.day.from_now.change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 1.day.from_now.change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.day.from_now.change({:hour => 16}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 1.day.from_now.change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.057217'
updated_at: '2022-07-12 15:18:44.057217'
availability_id: 19
@ -568,8 +568,8 @@ slot_124:
slot_125:
id: 125
start_at: <%= 1.day.from_now.change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 1.day.from_now.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.day.from_now.change({:hour => 17}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 1.day.from_now.change({:hour => 18}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.059135'
updated_at: '2022-07-12 15:18:44.059135'
availability_id: 19
@ -577,8 +577,8 @@ slot_125:
slot_126:
id: 126
start_at: <%= DateTime.current.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= DateTime.current.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= DateTime.current.change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= DateTime.current.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.061887'
updated_at: '2022-07-12 15:18:44.061887'
availability_id: 1
@ -586,8 +586,8 @@ slot_126:
slot_127:
id: 127
start_at: <%= (DateTime.current + 1.day).change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 1.day).change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 1.day).change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.063528'
updated_at: '2022-07-12 15:18:44.063528'
availability_id: 2
@ -595,8 +595,8 @@ slot_127:
slot_128:
id: 128
start_at: <%= (DateTime.current + 2.day).change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= (DateTime.current + 2.day).change({:hour => 6}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (DateTime.current + 2.day).change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-12 15:18:44.065114'
updated_at: '2022-07-12 15:18:44.065114'
availability_id: 8
@ -631,8 +631,8 @@ slot_131:
slot_132:
id: 132
start_at: <%= 10.days.ago.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 10.days.ago.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 10.days.ago.change({:hour => 8}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 10.days.ago.change({:hour => 10}).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-07-18 12:38:21.616510'
updated_at: '2022-07-18 12:38:21.616510'
availability_id: 20
@ -640,8 +640,8 @@ slot_132:
slot_133:
id: 133
start_at: <%= 10.minutes.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= (10.minutes.from_now + 1.hour).strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 10.minutes.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= (10.minutes.from_now + 1.hour).strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: '2022-12-14 12:01:26.165110'
updated_at: '2022-12-14 12:01:26.165110'
availability_id: 21
@ -649,8 +649,8 @@ slot_133:
slot_134:
id: 134
start_at: <%= 1.hour.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
end_at: <%= 2.hours.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
start_at: <%= 1.hour.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
end_at: <%= 2.hours.from_now.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
created_at: 2023-01-24 13:34:43.841240000 Z
updated_at: 2023-01-24 13:34:43.841240000 Z
availability_id: 22

View File

@ -4,10 +4,10 @@ statistic_profile_prepaid_pack_1:
prepaid_pack_id: 1
statistic_profile_id: 10
minutes_used: 600
expires_at: <%= 11.month.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
expires_at: <%= 11.month.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
statistic_profile_prepaid_pack_2:
prepaid_pack_id: 1
statistic_profile_id: 10
minutes_used: 0
expires_at: <%= 12.month.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
expires_at: <%= 12.month.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>

View File

@ -3,18 +3,18 @@ subscription_1:
id: 1
plan_id: 2
statistic_profile_id: 3
created_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
expiration_date: <%= (1.month.from_now - 11.days).utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
canceled_at: <%= (10.days.ago + 1.minute).utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
expiration_date: <%= (1.month.from_now - 11.days).utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
canceled_at: <%= (10.days.ago + 1.minute).utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
subscription_2:
id: 2
plan_id: 3
statistic_profile_id: 4
created_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
expiration_date: <%= (1.month.from_now - 11.days).utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 10.days.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
expiration_date: <%= (1.month.from_now - 11.days).utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
canceled_at:
# subscription has expired (do not change dates)
@ -50,7 +50,7 @@ subscription_6:
id: 6
plan_id: 4
statistic_profile_id: 10
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
expiration_date: <%= 3.months.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N Z') %>
created_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
updated_at: <%= 9.months.ago.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
expiration_date: <%= 3.months.from_now.utc.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') %>
canceled_at:

View File

@ -46,7 +46,7 @@ class Subscriptions::CancelTest < ActionDispatch::IntegrationTest
post '/api/local_payment/confirm_payment',
params: {
customer_id: subscription.user.id,
items: [{ free_extension: { end_at: new_date.strftime('%Y-%m-%d %H:%M:%S.%9N Z') } }]
items: [{ free_extension: { end_at: new_date.strftime('%Y-%m-%d %H:%M:%S.%9N %Z') } }]
}.to_json, headers: default_headers
assert_response :success

View File

@ -23,7 +23,7 @@ class Subscriptions::FreeExtensionTest < ActionDispatch::IntegrationTest
items: [
{
free_extension: {
end_at: new_date.strftime('%Y-%m-%d %H:%M:%S.%9N Z')
end_at: new_date.strftime('%Y-%m-%d %H:%M:%S.%9N %Z')
}
}
]
@ -69,7 +69,7 @@ class Subscriptions::FreeExtensionTest < ActionDispatch::IntegrationTest
items: [
{
free_extension: {
end_at: new_date.strftime('%Y-%m-%d %H:%M:%S.%9N Z')
end_at: new_date.strftime('%Y-%m-%d %H:%M:%S.%9N %Z')
}
}
]

View File

@ -92,7 +92,7 @@ class Subscriptions::RenewAsAdminTest < ActionDispatch::IntegrationTest
items: [
{
subscription: {
start_at: subscription.expired_at.strftime('%Y-%m-%d %H:%M:%S.%9N Z'),
start_at: subscription.expired_at.strftime('%Y-%m-%d %H:%M:%S.%9N %Z'),
plan_id: subscription.plan_id
}
}

View File

@ -5,7 +5,7 @@ http_interactions:
uri: https://api.stripe.com/v1/payment_methods
body:
encoding: UTF-8
string: type=card&card[number]=4242424242424242&card[exp_month]=4&card[exp_year]=2023&card[cvc]=314
string: type=card&card[number]=4242424242424242&card[exp_month]=4&card[exp_year]=2024&card[cvc]=314
headers:
User-Agent:
- Stripe/v1 RubyBindings/5.29.0
@ -13,14 +13,12 @@ http_interactions:
- Bearer sk_test_testfaketestfaketestfake
Content-Type:
- application/x-www-form-urlencoded
X-Stripe-Client-Telemetry:
- '{"last_request_metrics":{"request_id":"req_amT9NxCRaztTRy","request_duration_ms":1}}'
Stripe-Version:
- '2019-08-14'
X-Stripe-Client-User-Agent:
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"2.6.10 p210 (2022-04-12)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 6.0.12-arch1-1 (linux@archlinux) (gcc (GCC) 12.2.0, GNU ld (GNU Binutils)
2.39.0) #1 SMP PREEMPT_DYNAMIC Thu, 08 Dec 2022 11:03:38 +0000","hostname":"Sylvain-desktop"}'
- '{"bindings_version":"5.29.0","lang":"ruby","lang_version":"3.2.1 p31 (2023-02-08)","platform":"x86_64-linux","engine":"ruby","publisher":"stripe","uname":"Linux
version 6.2.5-arch1-1 (linux@archlinux) (gcc (GCC) 12.2.1 20230201, GNU ld
(GNU Binutils) 2.40) #1 SMP PREEMPT_DYNAMIC Sat, 11 Mar 2023 14:28:13 +0000","hostname":"Sylvain-desktop"}'
Accept-Encoding:
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
Accept:
@ -33,7 +31,7 @@ http_interactions:
Server:
- nginx
Date:
- Thu, 22 Dec 2022 10:09:41 GMT
- Mon, 27 Mar 2023 07:58:29 GMT
Content-Type:
- application/json
Content-Length:
@ -53,11 +51,11 @@ http_interactions:
Cache-Control:
- no-cache, no-store
Idempotency-Key:
- d9ca78cb-ea0a-4ed1-a984-940ce3e62de7
- 652a03e5-1c3f-4641-9791-7667a9348880
Original-Request:
- req_DNouBb0WOLWrs9
- req_qtg1gz6QhbwWR6
Request-Id:
- req_DNouBb0WOLWrs9
- req_qtg1gz6QhbwWR6
Stripe-Should-Retry:
- 'false'
Stripe-Version:
@ -68,7 +66,7 @@ http_interactions:
encoding: UTF-8
string: |-
{
"id": "pm_1MHlia2sOmf47Nz9eMYr41dZ",
"id": "pm_1MqAwj2sOmf47Nz9Wozdxx5g",
"object": "payment_method",
"billing_details": {
"address": {
@ -92,7 +90,7 @@ http_interactions:
},
"country": "US",
"exp_month": 4,
"exp_year": 2023,
"exp_year": 2024,
"fingerprint": "o52jybR7bnmNn6AT",
"funding": "credit",
"generated_from": null,
@ -108,11 +106,11 @@ http_interactions:
},
"wallet": null
},
"created": 1671703781,
"created": 1679903909,
"customer": null,
"livemode": false,
"metadata": {},
"type": "card"
}
recorded_at: Thu, 22 Dec 2022 10:09:41 GMT
recorded_with: VCR 6.0.0
recorded_at: Mon, 27 Mar 2023 07:58:29 GMT
recorded_with: VCR 6.1.0