customer create
This commit is contained in:
12
app/views/api/shops/show.json.jbuilder
Normal file
12
app/views/api/shops/show.json.jbuilder
Normal file
@@ -0,0 +1,12 @@
|
||||
if @shop
|
||||
json.status true
|
||||
json.id @shop.id
|
||||
json.logo @shop.logo
|
||||
json.name @shop.name
|
||||
json.shop_code @shop.shop_code
|
||||
json.cloud_url @shop.cloud_url
|
||||
json.cloud_token @shop.cloud_token
|
||||
else
|
||||
json.status false
|
||||
json.message "Record Not Found"
|
||||
end
|
||||
7
app/views/api/verifications/new.json.jbuilder
Normal file
7
app/views/api/verifications/new.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
if @result && @cus
|
||||
json.status true
|
||||
json.sent_pin true
|
||||
else
|
||||
json.status false
|
||||
json.message "Customer Not Found"
|
||||
end
|
||||
7
app/views/api/verifications/update.json.jbuilder
Normal file
7
app/views/api/verifications/update.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
if @result && @cus
|
||||
json.status true
|
||||
json.message "Pin code verification succeeded"
|
||||
else
|
||||
json.status false
|
||||
json.message "Customer Not Found Or Pin Code Verification Failed"
|
||||
end
|
||||
Reference in New Issue
Block a user