snf_core 0.2.99 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 06ef258596e99497b2a3f679b7cc72640b262d5305fdde5400d3a992469b7ca8
4
- data.tar.gz: 9c4a3819df5295dde947a09c2e2046510975ef5f5707bad6e5b267575e6d6019
3
+ metadata.gz: 0d80974d418a7c1fe8b24b1a10618970f84b256dcab2ab8a4e19cd178074a245
4
+ data.tar.gz: 7063dd83c1b2362aec9f7c5497d9e467c9adb26713e86bdf5fe03fa98111f0ac
5
5
  SHA512:
6
- metadata.gz: 8260b98d145d7d4dc5053ff4c61c1b3279758287cf92c4757b92529bd5f303dda9d520d33aece739890cdb9661a4cedba4fbb7f5917aa8d8f89f97dee6e96475
7
- data.tar.gz: 6fa672ab9c77db1b963984b9596c475a05b4a7c490daed1e572d4354fda2a13ed4d2322da8948fcc7eca2a5346b4758becb24b9e164ab2f39056d041b0614225
6
+ metadata.gz: bc5c1354322908abe46bc22e110e8cd593fbc835e29a31b408e3957c20fb34bad319920ed0f71453517a69f516bd9c0481cd8756f8dd24dabdb6d40556c5b55e
7
+ data.tar.gz: 3262eb5dc1d1fb7d2085d44b91e71edf2ae4b82bb1ba4faaa7092e7ec887cece2cf1e07e5ed8d59c93c48f6065fe41180848d182875758ba15d5231de52cefa6
@@ -6,26 +6,37 @@ module SnfCore
6
6
  ActiveRecord::Base.transaction do
7
7
  @address = Address.new(address_params)
8
8
 
9
- @user = User.new(user_params)
10
- @user.address = @address
9
+ if @address.save
10
+ @user = User.new(user_params)
11
+ @user.address = @address
11
12
 
12
- if @user.save && @address.save
13
- @business = Business.new(
14
- user: @user,
15
- business_name: signup_params[:business_name],
16
- tin_number: signup_params[:tin_number],
17
- business_type: signup_params[:business_type]
18
- )
13
+ if @user.save
14
+ @business = Business.new(
15
+ user: @user,
16
+ business_name: signup_params[:business_name],
17
+ tin_number: signup_params[:tin_number],
18
+ business_type: signup_params[:business_type]
19
+ )
19
20
 
20
- if @business.save
21
- render json: { success: true }, status: :created
21
+ if @business.save
22
+ render json: {
23
+ success: true,
24
+ user: @user.as_json(except: [ :password_digest ]),
25
+ business: @business,
26
+ address: @address
27
+ }, status: :created
28
+ return
29
+ else
30
+ render json: { errors: @business.errors.full_messages }, status: :unprocessable_entity
31
+ raise ActiveRecord::Rollback
32
+ end
22
33
  else
34
+ render json: { errors: @user.errors.full_messages }, status: :unprocessable_entity
23
35
  raise ActiveRecord::Rollback
24
- render json: { errors: @business.errors.full_messages }, status: :unprocessable_entity
25
36
  end
26
37
  else
27
- errors = @user.errors.full_messages + @address.errors.full_messages
28
- render json: { errors: errors }, status: :unprocessable_entity
38
+ render json: { errors: @address.errors.full_messages }, status: :unprocessable_entity
39
+ raise ActiveRecord::Rollback
29
40
  end
30
41
  end
31
42
  end
@@ -59,7 +70,7 @@ module SnfCore
59
70
  :first_name, :middle_name, :last_name, :password,
60
71
  :phone_number, :business_name, :tin_number, :business_type,
61
72
  :date_of_birth, :nationality, :occupation, :source_of_funds, :kyc_status,
62
- :gender, :verified_at, :verified_by_id, :address_id
73
+ :gender, :verified_at, :verified_by_id, :email
63
74
  )
64
75
  end
65
76
 
@@ -68,7 +79,7 @@ module SnfCore
68
79
  :first_name, :middle_name, :last_name, :password,
69
80
  :phone_number, :date_of_birth, :nationality,
70
81
  :occupation, :source_of_funds, :kyc_status,
71
- :gender, :verified_at, :verified_by_id, :address_id
82
+ :gender, :verified_at, :verified_by_id, :email
72
83
  )
73
84
  end
74
85
 
@@ -0,0 +1,5 @@
1
+ class AddUnitToSnfCoreItemRequests < ActiveRecord::Migration[8.0]
2
+ def change
3
+ add_column :snf_core_item_requests, :unit, :string
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module SnfCore
2
- VERSION = "0.2.99"
2
+ VERSION = "0.3.1"
3
3
  end
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
13
+ ActiveRecord::Schema[8.0].define(version: 2025_03_12_141147) do
14
14
  # These are extensions that must be enabled in order to support this database
15
15
  enable_extension "pg_catalog.plpgsql"
16
16
 
@@ -20,8 +20,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
20
20
  t.bigint "record_id", null: false
21
21
  t.bigint "blob_id", null: false
22
22
  t.datetime "created_at", null: false
23
- t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
24
- t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
23
+ t.index [ "blob_id" ], name: "index_active_storage_attachments_on_blob_id"
24
+ t.index [ "record_type", "record_id", "name", "blob_id" ], name: "index_active_storage_attachments_uniqueness", unique: true
25
25
  end
26
26
 
27
27
  create_table "active_storage_blobs", force: :cascade do |t|
@@ -33,13 +33,13 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
33
33
  t.bigint "byte_size", null: false
34
34
  t.string "checksum"
35
35
  t.datetime "created_at", null: false
36
- t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
36
+ t.index [ "key" ], name: "index_active_storage_blobs_on_key", unique: true
37
37
  end
38
38
 
39
39
  create_table "active_storage_variant_records", force: :cascade do |t|
40
40
  t.bigint "blob_id", null: false
41
41
  t.string "variation_digest", null: false
42
- t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
42
+ t.index [ "blob_id", "variation_digest" ], name: "index_active_storage_variant_records_uniqueness", unique: true
43
43
  end
44
44
 
45
45
  create_table "snf_core_account_transfers", force: :cascade do |t|
@@ -59,11 +59,11 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
59
59
  t.jsonb "cbs_response_data"
60
60
  t.datetime "created_at", null: false
61
61
  t.datetime "updated_at", null: false
62
- t.index ["destination_account_type", "destination_account_id"], name: "index_snf_core_account_transfers_on_destination_account"
63
- t.index ["reference_number"], name: "index_snf_core_account_transfers_on_reference_number", unique: true
64
- t.index ["reversal_transfer_id"], name: "index_snf_core_account_transfers_on_reversal_transfer_id"
65
- t.index ["source_account_type", "source_account_id"], name: "index_snf_core_account_transfers_on_source_account"
66
- t.index ["user_id"], name: "index_snf_core_account_transfers_on_user_id"
62
+ t.index [ "destination_account_type", "destination_account_id" ], name: "index_snf_core_account_transfers_on_destination_account"
63
+ t.index [ "reference_number" ], name: "index_snf_core_account_transfers_on_reference_number", unique: true
64
+ t.index [ "reversal_transfer_id" ], name: "index_snf_core_account_transfers_on_reversal_transfer_id"
65
+ t.index [ "source_account_type", "source_account_id" ], name: "index_snf_core_account_transfers_on_source_account"
66
+ t.index [ "user_id" ], name: "index_snf_core_account_transfers_on_user_id"
67
67
  end
68
68
 
69
69
  create_table "snf_core_addresses", force: :cascade do |t|
@@ -87,8 +87,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
87
87
  t.boolean "is_verified", default: false, null: false
88
88
  t.datetime "created_at", null: false
89
89
  t.datetime "updated_at", null: false
90
- t.index ["business_id"], name: "index_snf_core_business_documents_on_business_id"
91
- t.index ["verified_by_id"], name: "index_snf_core_business_documents_on_verified_by_id"
90
+ t.index [ "business_id" ], name: "index_snf_core_business_documents_on_business_id"
91
+ t.index [ "verified_by_id" ], name: "index_snf_core_business_documents_on_verified_by_id"
92
92
  end
93
93
 
94
94
  create_table "snf_core_businesses", force: :cascade do |t|
@@ -100,7 +100,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
100
100
  t.integer "verification_status", default: 0, null: false
101
101
  t.datetime "created_at", null: false
102
102
  t.datetime "updated_at", null: false
103
- t.index ["user_id"], name: "index_snf_core_businesses_on_user_id"
103
+ t.index [ "user_id" ], name: "index_snf_core_businesses_on_user_id"
104
104
  end
105
105
 
106
106
  create_table "snf_core_categories", force: :cascade do |t|
@@ -109,7 +109,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
109
109
  t.bigint "parent_id"
110
110
  t.datetime "created_at", null: false
111
111
  t.datetime "updated_at", null: false
112
- t.index ["parent_id"], name: "index_snf_core_categories_on_parent_id"
112
+ t.index [ "parent_id" ], name: "index_snf_core_categories_on_parent_id"
113
113
  end
114
114
 
115
115
  create_table "snf_core_customer_groups", force: :cascade do |t|
@@ -120,8 +120,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
120
120
  t.bigint "customer_id", null: false
121
121
  t.datetime "created_at", null: false
122
122
  t.datetime "updated_at", null: false
123
- t.index ["customer_id"], name: "index_snf_core_customer_groups_on_customer_id"
124
- t.index ["group_id"], name: "index_snf_core_customer_groups_on_group_id"
123
+ t.index [ "customer_id" ], name: "index_snf_core_customer_groups_on_customer_id"
124
+ t.index [ "group_id" ], name: "index_snf_core_customer_groups_on_group_id"
125
125
  end
126
126
 
127
127
  create_table "snf_core_delivery_orders", force: :cascade do |t|
@@ -134,7 +134,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
134
134
  t.integer "status", null: false
135
135
  t.datetime "created_at", null: false
136
136
  t.datetime "updated_at", null: false
137
- t.index ["order_id"], name: "index_snf_core_delivery_orders_on_order_id"
137
+ t.index [ "order_id" ], name: "index_snf_core_delivery_orders_on_order_id"
138
138
  end
139
139
 
140
140
  create_table "snf_core_groups", force: :cascade do |t|
@@ -142,7 +142,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
142
142
  t.bigint "business_id", null: false
143
143
  t.datetime "created_at", null: false
144
144
  t.datetime "updated_at", null: false
145
- t.index ["business_id"], name: "index_snf_core_groups_on_business_id"
145
+ t.index [ "business_id" ], name: "index_snf_core_groups_on_business_id"
146
146
  end
147
147
 
148
148
  create_table "snf_core_item_requests", force: :cascade do |t|
@@ -154,8 +154,9 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
154
154
  t.integer "status", default: 0, null: false
155
155
  t.datetime "created_at", null: false
156
156
  t.datetime "updated_at", null: false
157
- t.index ["product_id"], name: "index_snf_core_item_requests_on_product_id"
158
- t.index ["user_id"], name: "index_snf_core_item_requests_on_user_id"
157
+ t.string "unit"
158
+ t.index [ "product_id" ], name: "index_snf_core_item_requests_on_product_id"
159
+ t.index [ "user_id" ], name: "index_snf_core_item_requests_on_user_id"
159
160
  end
160
161
 
161
162
  create_table "snf_core_order_items", force: :cascade do |t|
@@ -166,8 +167,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
166
167
  t.decimal "subtotal", null: false
167
168
  t.datetime "created_at", null: false
168
169
  t.datetime "updated_at", null: false
169
- t.index ["order_id"], name: "index_snf_core_order_items_on_order_id"
170
- t.index ["store_inventory_id"], name: "index_snf_core_order_items_on_store_inventory_id"
170
+ t.index [ "order_id" ], name: "index_snf_core_order_items_on_order_id"
171
+ t.index [ "store_inventory_id" ], name: "index_snf_core_order_items_on_store_inventory_id"
171
172
  end
172
173
 
173
174
  create_table "snf_core_orders", force: :cascade do |t|
@@ -177,8 +178,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
177
178
  t.decimal "total_amount", default: "0.0", null: false
178
179
  t.datetime "created_at", null: false
179
180
  t.datetime "updated_at", null: false
180
- t.index ["store_id"], name: "index_snf_core_orders_on_store_id"
181
- t.index ["user_id"], name: "index_snf_core_orders_on_user_id"
181
+ t.index [ "store_id" ], name: "index_snf_core_orders_on_store_id"
182
+ t.index [ "user_id" ], name: "index_snf_core_orders_on_user_id"
182
183
  end
183
184
 
184
185
  create_table "snf_core_products", force: :cascade do |t|
@@ -189,7 +190,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
189
190
  t.float "base_price"
190
191
  t.datetime "created_at", null: false
191
192
  t.datetime "updated_at", null: false
192
- t.index ["category_id"], name: "index_snf_core_products_on_category_id"
193
+ t.index [ "category_id" ], name: "index_snf_core_products_on_category_id"
193
194
  end
194
195
 
195
196
  create_table "snf_core_quotations", force: :cascade do |t|
@@ -201,7 +202,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
201
202
  t.text "notes"
202
203
  t.datetime "created_at", null: false
203
204
  t.datetime "updated_at", null: false
204
- t.index ["item_request_id"], name: "index_snf_core_quotations_on_item_request_id"
205
+ t.index [ "item_request_id" ], name: "index_snf_core_quotations_on_item_request_id"
205
206
  end
206
207
 
207
208
  create_table "snf_core_roles", force: :cascade do |t|
@@ -217,9 +218,9 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
217
218
  t.datetime "created_at", null: false
218
219
  t.datetime "updated_at", null: false
219
220
  t.integer "status", default: 0, null: false
220
- t.index ["product_id"], name: "index_snf_core_store_inventories_on_product_id"
221
- t.index ["store_id", "product_id"], name: "index_snf_core_store_inventories_on_store_id_and_product_id", unique: true
222
- t.index ["store_id"], name: "index_snf_core_store_inventories_on_store_id"
221
+ t.index [ "product_id" ], name: "index_snf_core_store_inventories_on_product_id"
222
+ t.index [ "store_id", "product_id" ], name: "index_snf_core_store_inventories_on_store_id_and_product_id", unique: true
223
+ t.index [ "store_id" ], name: "index_snf_core_store_inventories_on_store_id"
223
224
  end
224
225
 
225
226
  create_table "snf_core_stores", force: :cascade do |t|
@@ -230,8 +231,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
230
231
  t.bigint "address_id", null: false
231
232
  t.datetime "created_at", null: false
232
233
  t.datetime "updated_at", null: false
233
- t.index ["address_id"], name: "index_snf_core_stores_on_address_id"
234
- t.index ["business_id"], name: "index_snf_core_stores_on_business_id"
234
+ t.index [ "address_id" ], name: "index_snf_core_stores_on_address_id"
235
+ t.index [ "business_id" ], name: "index_snf_core_stores_on_business_id"
235
236
  end
236
237
 
237
238
  create_table "snf_core_user_roles", force: :cascade do |t|
@@ -239,8 +240,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
239
240
  t.bigint "role_id", null: false
240
241
  t.datetime "created_at", null: false
241
242
  t.datetime "updated_at", null: false
242
- t.index ["role_id"], name: "index_snf_core_user_roles_on_role_id"
243
- t.index ["user_id"], name: "index_snf_core_user_roles_on_user_id"
243
+ t.index [ "role_id" ], name: "index_snf_core_user_roles_on_role_id"
244
+ t.index [ "user_id" ], name: "index_snf_core_user_roles_on_user_id"
244
245
  end
245
246
 
246
247
  create_table "snf_core_users", force: :cascade do |t|
@@ -275,10 +276,10 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
275
276
  t.text "description"
276
277
  t.datetime "created_at", null: false
277
278
  t.datetime "updated_at", null: false
278
- t.index ["created_at"], name: "index_snf_core_virtual_account_transactions_on_created_at"
279
- t.index ["from_account_id"], name: "index_snf_core_virtual_account_transactions_on_from_account_id"
280
- t.index ["reference_number"], name: "idx_on_reference_number_bd9be00f20", unique: true
281
- t.index ["to_account_id"], name: "index_snf_core_virtual_account_transactions_on_to_account_id"
279
+ t.index [ "created_at" ], name: "index_snf_core_virtual_account_transactions_on_created_at"
280
+ t.index [ "from_account_id" ], name: "index_snf_core_virtual_account_transactions_on_from_account_id"
281
+ t.index [ "reference_number" ], name: "idx_on_reference_number_bd9be00f20", unique: true
282
+ t.index [ "to_account_id" ], name: "index_snf_core_virtual_account_transactions_on_to_account_id"
282
283
  end
283
284
 
284
285
  create_table "snf_core_virtual_accounts", force: :cascade do |t|
@@ -294,10 +295,10 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
294
295
  t.string "voucher_type", limit: 1, null: false
295
296
  t.datetime "created_at", null: false
296
297
  t.datetime "updated_at", null: false
297
- t.index ["account_number"], name: "index_snf_core_virtual_accounts_on_account_number", unique: true
298
- t.index ["branch_code", "product_scheme", "voucher_type"], name: "idx_on_branch_code_product_scheme_voucher_type_b7038b3d5f"
299
- t.index ["cbs_account_number"], name: "index_snf_core_virtual_accounts_on_cbs_account_number", unique: true
300
- t.index ["user_id"], name: "index_snf_core_virtual_accounts_on_user_id"
298
+ t.index [ "account_number" ], name: "index_snf_core_virtual_accounts_on_account_number", unique: true
299
+ t.index [ "branch_code", "product_scheme", "voucher_type" ], name: "idx_on_branch_code_product_scheme_voucher_type_b7038b3d5f"
300
+ t.index [ "cbs_account_number" ], name: "index_snf_core_virtual_accounts_on_cbs_account_number", unique: true
301
+ t.index [ "user_id" ], name: "index_snf_core_virtual_accounts_on_user_id"
301
302
  end
302
303
 
303
304
  create_table "snf_core_wallets", force: :cascade do |t|
@@ -307,8 +308,8 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_12_043359) do
307
308
  t.boolean "is_active", default: true, null: false
308
309
  t.datetime "created_at", null: false
309
310
  t.datetime "updated_at", null: false
310
- t.index ["user_id"], name: "index_snf_core_wallets_on_user_id"
311
- t.index ["wallet_number"], name: "index_snf_core_wallets_on_wallet_number", unique: true
311
+ t.index [ "user_id" ], name: "index_snf_core_wallets_on_user_id"
312
+ t.index [ "wallet_number" ], name: "index_snf_core_wallets_on_wallet_number", unique: true
312
313
  end
313
314
 
314
315
  add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
@@ -6348,3 +6348,136 @@ FOREIGN KEY ("user_id")
6348
6348
  ActiveRecord::InternalMetadata Update (0.5ms) UPDATE "ar_internal_metadata" SET "value" = 'test', "updated_at" = '2025-03-12 09:28:39.063516' WHERE "ar_internal_metadata"."key" = 'environment' /*application='Dummy'*/
6349
6349
  ActiveRecord::InternalMetadata Load (0.2ms) SELECT * FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = 'schema_sha1' ORDER BY "ar_internal_metadata"."key" ASC LIMIT 1 /*application='Dummy'*/
6350
6350
  ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ('schema_sha1', 'ce684782ac0a2f19cbccaf01724c2ba2ab15f8bc', '2025-03-12 09:28:39.066619', '2025-03-12 09:28:39.066622') RETURNING "key" /*application='Dummy'*/
6351
+ Started POST "/auth/signup" for ::1 at 2025-03-12 12:40:17 +0300
6352
+ ActiveRecord::SchemaMigration Load (3.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
6353
+
6354
+ ActionController::RoutingError (No route matches [POST] "/auth/signup"):
6355
+
6356
+ Started POST "/snf_cre/auth/signup" for ::1 at 2025-03-12 12:40:42 +0300
6357
+
6358
+ ActionController::RoutingError (No route matches [POST] "/snf_cre/auth/signup"):
6359
+
6360
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 12:40:48 +0300
6361
+ Processing by SnfCore::AuthController#signup as */*
6362
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
6363
+ TRANSACTION (0.2ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
6364
+ SnfCore::Address Create (5.8ms) INSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 09:40:48.778962', '2025-03-12 09:40:48.778962', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6365
+ SnfCore::User Exists? (2.2ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6366
+ SnfCore::User Exists? (0.2ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6367
+ SnfCore::User Create (2.5ms) INSERT INTO "snf_core_users" ("first_name", "middle_name", "last_name", "email", "phone_number", "created_at", "updated_at", "password_digest", "password_changed", "reset_password_token", "date_of_birth", "nationality", "occupation", "source_of_funds", "kyc_status", "gender", "verified_at", "verified_by_id", "address_id") VALUES ('John', 'Michael', 'Doe', NULL, '+251911234567', '2025-03-12 09:40:49.041028', '2025-03-12 09:40:49.041028', '$2a$12$mZzOA5gmdk.WkFCKJNV19OV.U6Pd6LoyqBjV4QmbXVFJ0r5mdU2cO', FALSE, NULL, '1990-01-01', 'Ethiopian', 'Business Owner', 'Salary', 0, 0, NULL, NULL, 1) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6368
+ SnfCore::Business Exists? (1.2ms) SELECT 1 AS one FROM "snf_core_businesses" WHERE "snf_core_businesses"."tin_number" = '123456789' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6369
+ SnfCore::Business Create (1.0ms) INSERT INTO "snf_core_businesses" ("user_id", "business_name", "tin_number", "business_type", "verified_at", "verification_status", "created_at", "updated_at") VALUES (1, 'Test Company', '123456789', 0, NULL, 0, '2025-03-12 09:40:49.058363', '2025-03-12 09:40:49.058363') RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6370
+ TRANSACTION (1.7ms) COMMIT /*action='signup',application='Dummy',controller='auth'*/
6371
+ Completed 201 Created in 364ms (Views: 0.1ms | ActiveRecord: 62.6ms (6 queries, 0 cached) | GC: 0.0ms)
6372
+
6373
+
6374
+ SnfCore::Address Load (540.1ms) SELECT "snf_core_addresses".* FROM "snf_core_addresses" /* loading for pp */ LIMIT 11 /*application='Dummy'*/
6375
+ SnfCore::User Load (2.8ms) SELECT "snf_core_users".* FROM "snf_core_users" /* loading for pp */ LIMIT 11 /*application='Dummy'*/
6376
+ SnfCore::Business Load (4.4ms) SELECT "snf_core_businesses".* FROM "snf_core_businesses" /* loading for pp */ LIMIT 11 /*application='Dummy'*/
6377
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:39:24 +0300
6378
+ ActiveRecord::SchemaMigration Load (2.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC /*application='Dummy'*/
6379
+ Processing by SnfCore::AuthController#signup as */*
6380
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
6381
+ TRANSACTION (0.1ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
6382
+ SnfCore::Address Create (9.4ms) INSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:39:24.313051', '2025-03-12 10:39:24.313051', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6383
+ SnfCore::User Exists? (0.9ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6384
+ SnfCore::User Exists? (0.2ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6385
+ TRANSACTION (0.1ms) ROLLBACK /*action='signup',application='Dummy',controller='auth'*/
6386
+ Completed 204 No Content in 317ms (ActiveRecord: 33.1ms (3 queries, 0 cached) | GC: 0.0ms)
6387
+
6388
+
6389
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:39:30 +0300
6390
+ Processing by SnfCore::AuthController#signup as */*
6391
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
6392
+ TRANSACTION (0.3ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
6393
+ SnfCore::Address Create (2.4ms) INSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:39:30.274588', '2025-03-12 10:39:30.274588', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6394
+ SnfCore::User Exists? (0.4ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6395
+ SnfCore::User Exists? (0.2ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6396
+ TRANSACTION (0.2ms) ROLLBACK /*action='signup',application='Dummy',controller='auth'*/
6397
+ Completed 204 No Content in 252ms (ActiveRecord: 3.3ms (3 queries, 0 cached) | GC: 0.0ms)
6398
+
6399
+
6400
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:39:38 +0300
6401
+ Processing by SnfCore::AuthController#signup as */*
6402
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
6403
+ TRANSACTION (0.3ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
6404
+ SnfCore::Address Create (2.0ms) INSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:39:38.710777', '2025-03-12 10:39:38.710777', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6405
+ SnfCore::User Exists? (0.8ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6406
+ SnfCore::User Exists? (0.2ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6407
+ TRANSACTION (0.2ms) ROLLBACK /*action='signup',application='Dummy',controller='auth'*/
6408
+ Completed 204 No Content in 252ms (ActiveRecord: 3.4ms (3 queries, 0 cached) | GC: 0.0ms)
6409
+
6410
+
6411
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:40:25 +0300
6412
+ Processing by SnfCore::AuthController#signup as HTML
6413
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
6414
+ TRANSACTION (0.6ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
6415
+ SnfCore::Address Create (4.5ms) INSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:40:25.387767', '2025-03-12 10:40:25.387767', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6416
+ SnfCore::User Exists? (2.3ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6417
+ SnfCore::User Exists? (0.2ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6418
+ TRANSACTION (0.3ms) ROLLBACK /*action='signup',application='Dummy',controller='auth'*/
6419
+ Completed 204 No Content in 295ms (ActiveRecord: 7.9ms (3 queries, 0 cached) | GC: 37.3ms)
6420
+
6421
+
6422
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:43:05 +0300
6423
+ Processing by SnfCore::AuthController#signup as */*
6424
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234567", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
6425
+ TRANSACTION (29.8ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
6426
+ SnfCore::Address Create (12.0ms) INSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:43:06.152834', '2025-03-12 10:43:06.152834', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6427
+ SnfCore::User Exists? (3.8ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234567' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6428
+ SnfCore::User Exists? (0.2ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6429
+ TRANSACTION (0.3ms) ROLLBACK /*action='signup',application='Dummy',controller='auth'*/
6430
+ Completed 422 Unprocessable Content in 1387ms (Views: 0.1ms | ActiveRecord: 181.6ms (3 queries, 0 cached) | GC: 65.7ms)
6431
+
6432
+
6433
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:46:51 +0300
6434
+ Processing by SnfCore::AuthController#signup as */*
6435
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
6436
+ TRANSACTION (8.5ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
6437
+ SnfCore::Address Create (26.4ms) INSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:46:51.572677', '2025-03-12 10:46:51.572677', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6438
+ SnfCore::User Exists? (3.1ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234577' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6439
+ SnfCore::User Exists? (0.5ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6440
+ TRANSACTION (0.4ms) ROLLBACK /*action='signup',application='Dummy',controller='auth'*/
6441
+ Completed 422 Unprocessable Content in 290ms (Views: 0.4ms | ActiveRecord: 39.1ms (3 queries, 0 cached) | GC: 0.0ms)
6442
+
6443
+
6444
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:47:06 +0300
6445
+ Processing by SnfCore::AuthController#signup as */*
6446
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
6447
+ TRANSACTION (0.8ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
6448
+ SnfCore::Address Create (4.2ms) INSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:47:06.073215', '2025-03-12 10:47:06.073215', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6449
+ Unpermitted parameter: :email. Context: { controller: SnfCore::AuthController, action: signup, request: #<ActionDispatch::Request:0x00000001722391a0>, params: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "controller" => "snf_core/auth", "action" => "signup", "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}} }
6450
+ SnfCore::User Exists? (0.6ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234577' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6451
+ SnfCore::User Exists? (0.2ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" IS NULL LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6452
+ TRANSACTION (0.2ms) ROLLBACK /*action='signup',application='Dummy',controller='auth'*/
6453
+ Completed 422 Unprocessable Content in 261ms (Views: 0.1ms | ActiveRecord: 5.9ms (3 queries, 0 cached) | GC: 0.0ms)
6454
+
6455
+
6456
+ SnfCore::User Load (158.6ms) SELECT "snf_core_users".* FROM "snf_core_users" /* loading for pp */ LIMIT 11 /*application='Dummy'*/
6457
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:49:11 +0300
6458
+ Processing by SnfCore::AuthController#signup as */*
6459
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "123456789", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
6460
+ TRANSACTION (5.2ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
6461
+ SnfCore::Address Create (4.3ms) INSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:49:11.654231', '2025-03-12 10:49:11.654231', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6462
+ SnfCore::User Exists? (0.3ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234577' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6463
+ SnfCore::User Exists? (0.3ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" = 'test@gmail.com' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6464
+ SnfCore::User Create (5.1ms) INSERT INTO "snf_core_users" ("first_name", "middle_name", "last_name", "email", "phone_number", "created_at", "updated_at", "password_digest", "password_changed", "reset_password_token", "date_of_birth", "nationality", "occupation", "source_of_funds", "kyc_status", "gender", "verified_at", "verified_by_id", "address_id") VALUES ('John', 'Michael', 'Doe', 'test@gmail.com', '+251911234577', '2025-03-12 10:49:11.904537', '2025-03-12 10:49:11.904537', '$2a$12$zQqe4P9C3riyFAgImdAhHOV1sRo/QqKK/vCSNw1dNLV9vFSxN4J4C', FALSE, NULL, '1990-01-01', 'Ethiopian', 'Business Owner', 'Salary', 0, 0, NULL, NULL, 9) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6465
+ SnfCore::Business Exists? (3.4ms) SELECT 1 AS one FROM "snf_core_businesses" WHERE "snf_core_businesses"."tin_number" = '123456789' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6466
+ TRANSACTION (0.4ms) ROLLBACK /*action='signup',application='Dummy',controller='auth'*/
6467
+ Completed 422 Unprocessable Content in 356ms (Views: 0.1ms | ActiveRecord: 61.1ms (5 queries, 0 cached) | GC: 20.1ms)
6468
+
6469
+
6470
+ Started POST "/snf_core/auth/signup" for ::1 at 2025-03-12 13:49:30 +0300
6471
+ Processing by SnfCore::AuthController#signup as */*
6472
+ Parameters: {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "1234567890", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}, "auth" => {"user" => {"first_name" => "John", "middle_name" => "Michael", "last_name" => "Doe", "phone_number" => "+251911234577", "password" => "[FILTERED]", "business_name" => "Test Company", "tin_number" => "1234567890", "business_type" => "retailer", "date_of_birth" => "1990-01-01", "gender" => "male", "nationality" => "Ethiopian", "occupation" => "Business Owner", "source_of_funds" => "Salary", "kyc_status" => "pending", "email" => "[FILTERED]"}, "address" => {"address_type" => "home", "city" => "Addis Ababa", "sub_city" => "Bole", "woreda" => "03", "latitude" => "9.0222", "longitude" => "38.7468"}}}
6473
+ TRANSACTION (1.2ms) BEGIN /*action='signup',application='Dummy',controller='auth'*/
6474
+ SnfCore::Address Create (4.6ms) INSERT INTO "snf_core_addresses" ("address_type", "city", "sub_city", "woreda", "latitude", "longitude", "created_at", "updated_at", "house_number") VALUES ('home', 'Addis Ababa', 'Bole', '03', 9.0222, 38.7468, '2025-03-12 10:49:30.222638', '2025-03-12 10:49:30.222638', NULL) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6475
+ SnfCore::User Exists? (2.1ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."phone_number" = '+251911234577' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6476
+ SnfCore::User Exists? (0.4ms) SELECT 1 AS one FROM "snf_core_users" WHERE "snf_core_users"."email" = 'test@gmail.com' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6477
+ SnfCore::User Create (0.7ms) INSERT INTO "snf_core_users" ("first_name", "middle_name", "last_name", "email", "phone_number", "created_at", "updated_at", "password_digest", "password_changed", "reset_password_token", "date_of_birth", "nationality", "occupation", "source_of_funds", "kyc_status", "gender", "verified_at", "verified_by_id", "address_id") VALUES ('John', 'Michael', 'Doe', 'test@gmail.com', '+251911234577', '2025-03-12 10:49:30.479295', '2025-03-12 10:49:30.479295', '$2a$12$r0.U7S3DR/q9j1Hd/qswGOP6cS3BrR1DNPMNVOsPS5no18/vZW6NK', FALSE, NULL, '1990-01-01', 'Ethiopian', 'Business Owner', 'Salary', 0, 0, NULL, NULL, 10) RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6478
+ SnfCore::Business Exists? (0.2ms) SELECT 1 AS one FROM "snf_core_businesses" WHERE "snf_core_businesses"."tin_number" = '1234567890' LIMIT 1 /*action='signup',application='Dummy',controller='auth'*/
6479
+ SnfCore::Business Create (1.6ms) INSERT INTO "snf_core_businesses" ("user_id", "business_name", "tin_number", "business_type", "verified_at", "verification_status", "created_at", "updated_at") VALUES (3, 'Test Company', '1234567890', 0, NULL, 0, '2025-03-12 10:49:30.482167', '2025-03-12 10:49:30.482167') RETURNING "id" /*action='signup',application='Dummy',controller='auth'*/
6480
+ TRANSACTION (2.7ms) COMMIT /*action='signup',application='Dummy',controller='auth'*/
6481
+ Completed 201 Created in 274ms (Views: 0.3ms | ActiveRecord: 13.4ms (6 queries, 0 cached) | GC: 2.6ms)
6482
+
6483
+