@@ -19,13 +19,13 @@ def list_providers(limit=0, currency='MXN')
1919 uri = uri +'¤cy=' +currency
2020 end
2121
22- response = Request ::get ( uri , get_auth )
22+ response = EasyRequest ::get ( uri , get_auth )
2323
2424 Factory ::get_instance_of 'ListProviders' , response
2525 end
2626
2727 def verify_order ( order_id )
28- response = Request ::get ( @client . deploy_uri +'charges/' +order_id +'/' , get_auth )
28+ response = EasyRequest ::get ( @client . deploy_uri +'charges/' +order_id +'/' , get_auth )
2929
3030 Factory ::get_instance_of 'CpOrderInfo' , response
3131 end
@@ -49,43 +49,43 @@ def place_order(order)
4949 :app_client_version => order . app_client_version
5050 }
5151
52- response = Request ::post ( @client . deploy_uri +'charges/' , params , get_auth )
52+ response = EasyRequest ::post ( @client . deploy_uri +'charges/' , params , get_auth )
5353
5454 Factory ::get_instance_of 'NewOrderInfo' , response
5555 end
5656
5757 def send_sms_instructions ( number , order_id )
5858 params = { customer_phone : number }
5959
60- response = Request ::post ( @client . deploy_uri +'charges/' +order_id +'/sms/' , params , get_auth )
60+ response = EasyRequest ::post ( @client . deploy_uri +'charges/' +order_id +'/sms/' , params , get_auth )
6161
6262 Factory ::get_instance_of 'SmsInfo' , response
6363 end
6464
6565 def create_webhook ( url )
6666 params = { url : url }
6767
68- response = Request ::post ( @client . deploy_uri +'webhooks/stores/' , params , get_auth )
68+ response = EasyRequest ::post ( @client . deploy_uri +'webhooks/stores/' , params , get_auth )
6969
7070 Factory ::get_instance_of 'Webhook' , response
7171 end
7272
7373 def update_webhook ( webhook_id , new_url )
7474 params = { url : new_url }
7575
76- response = Request ::put ( @client . deploy_uri +'webhooks/stores/' +webhook_id +'/' , params , get_auth )
76+ response = EasyRequest ::put ( @client . deploy_uri +'webhooks/stores/' +webhook_id +'/' , params , get_auth )
7777
7878 Factory ::get_instance_of 'Webhook' , response
7979 end
8080
8181 def delete_webhook ( webhook_id )
82- response = Request ::delete ( @client . deploy_uri +'webhooks/stores/' +webhook_id , nil , get_auth )
82+ response = EasyRequest ::delete ( @client . deploy_uri +'webhooks/stores/' +webhook_id , nil , get_auth )
8383
8484 Factory ::get_instance_of 'Webhook' , response
8585 end
8686
8787 def list_webhooks
88- response = Request ::get ( @client . deploy_uri +'webhooks/stores/' , get_auth )
88+ response = EasyRequest ::get ( @client . deploy_uri +'webhooks/stores/' , get_auth )
8989
9090 Factory ::get_instance_of 'ListWebhooks' , response
9191 end
0 commit comments