diff --git a/spec/cassettes/vindi/last_response.yml b/spec/cassettes/vindi/last_response.yml index b448345..d721fb3 100644 --- a/spec/cassettes/vindi/last_response.yml +++ b/spec/cassettes/vindi/last_response.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/plans + uri: https://sandbox-app.vindi.com.br/api/v1/plans body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/raise_404_error.yml b/spec/cassettes/vindi/raise_404_error.yml index b394887..494be45 100644 --- a/spec/cassettes/vindi/raise_404_error.yml +++ b/spec/cassettes/vindi/raise_404_error.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/hello + uri: https://sandbox-app.vindi.com.br/api/v1/hello body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/bill_items/bill_item.yml b/spec/cassettes/vindi/rest/bill_items/bill_item.yml index 826eac3..1148acc 100644 --- a/spec/cassettes/vindi/rest/bill_items/bill_item.yml +++ b/spec/cassettes/vindi/rest/bill_items/bill_item.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/bill_items/133 + uri: https://sandbox-app.vindi.com.br/api/v1/bill_items/133 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/bills/approve_bill.yml b/spec/cassettes/vindi/rest/bills/approve_bill.yml index 57589d3..9c17654 100644 --- a/spec/cassettes/vindi/rest/bills/approve_bill.yml +++ b/spec/cassettes/vindi/rest/bills/approve_bill.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/bills/476/approve + uri: https://sandbox-app.vindi.com.br/api/v1/bills/476/approve body: encoding: UTF-8 string: '' diff --git a/spec/cassettes/vindi/rest/bills/bill.yml b/spec/cassettes/vindi/rest/bills/bill.yml index a8d38a9..6ff905f 100644 --- a/spec/cassettes/vindi/rest/bills/bill.yml +++ b/spec/cassettes/vindi/rest/bills/bill.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/bills/468 + uri: https://sandbox-app.vindi.com.br/api/v1/bills/468 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/bills/charge_bill.yml b/spec/cassettes/vindi/rest/bills/charge_bill.yml index 451a2da..f3dc83e 100644 --- a/spec/cassettes/vindi/rest/bills/charge_bill.yml +++ b/spec/cassettes/vindi/rest/bills/charge_bill.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/bills/479/charge + uri: https://sandbox-app.vindi.com.br/api/v1/bills/479/charge body: encoding: UTF-8 string: '' diff --git a/spec/cassettes/vindi/rest/bills/create_bill.yml b/spec/cassettes/vindi/rest/bills/create_bill.yml index e05c856..1ef5cc2 100644 --- a/spec/cassettes/vindi/rest/bills/create_bill.yml +++ b/spec/cassettes/vindi/rest/bills/create_bill.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/bills + uri: https://sandbox-app.vindi.com.br/api/v1/bills body: encoding: UTF-8 string: bill_items%5B%5D%5Bamount%5D=1&bill_items%5B%5D%5Bproduct_id%5D=26&customer_id=2&payment_method_code=credit_card diff --git a/spec/cassettes/vindi/rest/bills/create_invoice.yml b/spec/cassettes/vindi/rest/bills/create_invoice.yml index ace09d9..7d14da5 100644 --- a/spec/cassettes/vindi/rest/bills/create_invoice.yml +++ b/spec/cassettes/vindi/rest/bills/create_invoice.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/bills/481/invoice + uri: https://sandbox-app.vindi.com.br/api/v1/bills/481/invoice body: encoding: UTF-8 string: '' diff --git a/spec/cassettes/vindi/rest/bills/delete_bill.yml b/spec/cassettes/vindi/rest/bills/delete_bill.yml index 1ef9ff7..9c824b4 100644 --- a/spec/cassettes/vindi/rest/bills/delete_bill.yml +++ b/spec/cassettes/vindi/rest/bills/delete_bill.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/bills/475 + uri: https://sandbox-app.vindi.com.br/api/v1/bills/475 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/bills/list_bills.yml b/spec/cassettes/vindi/rest/bills/list_bills.yml index c3d87d4..7fd81be 100644 --- a/spec/cassettes/vindi/rest/bills/list_bills.yml +++ b/spec/cassettes/vindi/rest/bills/list_bills.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/bills + uri: https://sandbox-app.vindi.com.br/api/v1/bills body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/bills/update_bill.yml b/spec/cassettes/vindi/rest/bills/update_bill.yml index adcd843..dd3fc3a 100644 --- a/spec/cassettes/vindi/rest/bills/update_bill.yml +++ b/spec/cassettes/vindi/rest/bills/update_bill.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: https://staging-app.vindi.com.br/api/v1/bills/468 + uri: https://sandbox-app.vindi.com.br/api/v1/bills/468 body: encoding: UTF-8 string: installments=2 diff --git a/spec/cassettes/vindi/rest/charges/charge.yml b/spec/cassettes/vindi/rest/charges/charge.yml index a235963..f7036ec 100644 --- a/spec/cassettes/vindi/rest/charges/charge.yml +++ b/spec/cassettes/vindi/rest/charges/charge.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/charges/71 + uri: https://sandbox-app.vindi.com.br/api/v1/charges/71 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/charges/delete_charge.yml b/spec/cassettes/vindi/rest/charges/delete_charge.yml index d6eb35d..9868ace 100644 --- a/spec/cassettes/vindi/rest/charges/delete_charge.yml +++ b/spec/cassettes/vindi/rest/charges/delete_charge.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/charges/71 + uri: https://sandbox-app.vindi.com.br/api/v1/charges/71 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/charges/list_charges.yml b/spec/cassettes/vindi/rest/charges/list_charges.yml index 567bb05..71ccd26 100644 --- a/spec/cassettes/vindi/rest/charges/list_charges.yml +++ b/spec/cassettes/vindi/rest/charges/list_charges.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/charges + uri: https://sandbox-app.vindi.com.br/api/v1/charges body: encoding: US-ASCII string: '' @@ -29,7 +29,7 @@ http_interactions: Etag: - W/"07deff6352a1b0ae7bab0ce1e39c7fde" Link: - - ; rel="last", ; + - ; rel="last", ; rel="next" Per-Page: - '25' diff --git a/spec/cassettes/vindi/rest/charges/refund_charge.yml b/spec/cassettes/vindi/rest/charges/refund_charge.yml index 1a4795c..9f6b70b 100644 --- a/spec/cassettes/vindi/rest/charges/refund_charge.yml +++ b/spec/cassettes/vindi/rest/charges/refund_charge.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/charges/513/refund + uri: https://sandbox-app.vindi.com.br/api/v1/charges/513/refund body: encoding: UTF-8 string: amount=10 diff --git a/spec/cassettes/vindi/rest/charges/reissue.yml b/spec/cassettes/vindi/rest/charges/reissue.yml index 2bdc153..0e90afd 100644 --- a/spec/cassettes/vindi/rest/charges/reissue.yml +++ b/spec/cassettes/vindi/rest/charges/reissue.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/charges/447/reissue + uri: https://sandbox-app.vindi.com.br/api/v1/charges/447/reissue body: encoding: UTF-8 string: payment_method_code=debit_card diff --git a/spec/cassettes/vindi/rest/charges/update_charge.yml b/spec/cassettes/vindi/rest/charges/update_charge.yml index c2e2069..59b4e50 100644 --- a/spec/cassettes/vindi/rest/charges/update_charge.yml +++ b/spec/cassettes/vindi/rest/charges/update_charge.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: https://staging-app.vindi.com.br/api/v1/charges/71 + uri: https://sandbox-app.vindi.com.br/api/v1/charges/71 body: encoding: UTF-8 string: installments=2 diff --git a/spec/cassettes/vindi/rest/customers/create_customer.yml b/spec/cassettes/vindi/rest/customers/create_customer.yml index 76f4cdb..2bd0adc 100644 --- a/spec/cassettes/vindi/rest/customers/create_customer.yml +++ b/spec/cassettes/vindi/rest/customers/create_customer.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/customers + uri: https://sandbox-app.vindi.com.br/api/v1/customers body: encoding: UTF-8 string: name=Jane+Doe diff --git a/spec/cassettes/vindi/rest/customers/customer.yml b/spec/cassettes/vindi/rest/customers/customer.yml index c7b6486..e385a10 100644 --- a/spec/cassettes/vindi/rest/customers/customer.yml +++ b/spec/cassettes/vindi/rest/customers/customer.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/customers/15 + uri: https://sandbox-app.vindi.com.br/api/v1/customers/15 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/customers/delete_customer.yml b/spec/cassettes/vindi/rest/customers/delete_customer.yml index cf8ce81..0e19a5d 100644 --- a/spec/cassettes/vindi/rest/customers/delete_customer.yml +++ b/spec/cassettes/vindi/rest/customers/delete_customer.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/customers/15 + uri: https://sandbox-app.vindi.com.br/api/v1/customers/15 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/customers/list_customers.yml b/spec/cassettes/vindi/rest/customers/list_customers.yml index 2f97e07..6044368 100644 --- a/spec/cassettes/vindi/rest/customers/list_customers.yml +++ b/spec/cassettes/vindi/rest/customers/list_customers.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/customers + uri: https://sandbox-app.vindi.com.br/api/v1/customers body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/customers/update_customer.yml b/spec/cassettes/vindi/rest/customers/update_customer.yml index 024dbd0..8ccca0b 100644 --- a/spec/cassettes/vindi/rest/customers/update_customer.yml +++ b/spec/cassettes/vindi/rest/customers/update_customer.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: https://staging-app.vindi.com.br/api/v1/customers/15 + uri: https://sandbox-app.vindi.com.br/api/v1/customers/15 body: encoding: UTF-8 string: name=Johana+Doe diff --git a/spec/cassettes/vindi/rest/discounts/create_discount.yml b/spec/cassettes/vindi/rest/discounts/create_discount.yml index 0daaceb..eeabe11 100644 --- a/spec/cassettes/vindi/rest/discounts/create_discount.yml +++ b/spec/cassettes/vindi/rest/discounts/create_discount.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/discounts + uri: https://sandbox-app.vindi.com.br/api/v1/discounts body: encoding: UTF-8 string: amount=1&cycles=1&discount_type=percentage&percentage=10&product_item_id=118&quantity=1 diff --git a/spec/cassettes/vindi/rest/discounts/delete_discount.yml b/spec/cassettes/vindi/rest/discounts/delete_discount.yml index 200588c..7958cda 100644 --- a/spec/cassettes/vindi/rest/discounts/delete_discount.yml +++ b/spec/cassettes/vindi/rest/discounts/delete_discount.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/discounts/14 + uri: https://sandbox-app.vindi.com.br/api/v1/discounts/14 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/discounts/discount.yml b/spec/cassettes/vindi/rest/discounts/discount.yml index b7e4c03..d457b52 100644 --- a/spec/cassettes/vindi/rest/discounts/discount.yml +++ b/spec/cassettes/vindi/rest/discounts/discount.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/discounts/14 + uri: https://sandbox-app.vindi.com.br/api/v1/discounts/14 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/import_batches/list_import_batches.yml b/spec/cassettes/vindi/rest/import_batches/list_import_batches.yml index eb64c46..631474a 100644 --- a/spec/cassettes/vindi/rest/import_batches/list_import_batches.yml +++ b/spec/cassettes/vindi/rest/import_batches/list_import_batches.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/import_batches + uri: https://sandbox-app.vindi.com.br/api/v1/import_batches body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/invoices/create_invoice.yml b/spec/cassettes/vindi/rest/invoices/create_invoice.yml index 49a7901..b78d9ad 100644 --- a/spec/cassettes/vindi/rest/invoices/create_invoice.yml +++ b/spec/cassettes/vindi/rest/invoices/create_invoice.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/invoices + uri: https://sandbox-app.vindi.com.br/api/v1/invoices body: encoding: UTF-8 string: amount=1&bill_id=71 diff --git a/spec/cassettes/vindi/rest/invoices/delete_invoice.yml b/spec/cassettes/vindi/rest/invoices/delete_invoice.yml index 224253f..e7da485 100644 --- a/spec/cassettes/vindi/rest/invoices/delete_invoice.yml +++ b/spec/cassettes/vindi/rest/invoices/delete_invoice.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/invoices/108 + uri: https://sandbox-app.vindi.com.br/api/v1/invoices/108 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/invoices/invoice.yml b/spec/cassettes/vindi/rest/invoices/invoice.yml index 7719fc9..aebda12 100644 --- a/spec/cassettes/vindi/rest/invoices/invoice.yml +++ b/spec/cassettes/vindi/rest/invoices/invoice.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/invoices/108 + uri: https://sandbox-app.vindi.com.br/api/v1/invoices/108 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/invoices/list_invoices.yml b/spec/cassettes/vindi/rest/invoices/list_invoices.yml index e6eadf2..d92a1fd 100644 --- a/spec/cassettes/vindi/rest/invoices/list_invoices.yml +++ b/spec/cassettes/vindi/rest/invoices/list_invoices.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/invoices + uri: https://sandbox-app.vindi.com.br/api/v1/invoices body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/invoices/update_invoice.yml b/spec/cassettes/vindi/rest/invoices/update_invoice.yml deleted file mode 100644 index 2a19a72..0000000 --- a/spec/cassettes/vindi/rest/invoices/update_invoice.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -http_interactions: -- request: - method: put - uri: https://staging-app.vindi.com.br/api/v1/invoices/108 - body: - encoding: UTF-8 - string: amount=2 - headers: - User-Agent: - - Vindi-Ruby/0.0.1 - Authorization: - - Basic eER3M2VsUHdkZGx6cWdGekpxWlhraXktalpselZ2WTdMMWFWZGNEYk1IZzo= - Content-Type: - - application/x-www-form-urlencoded - Accept-Encoding: - - gzip;q=1.0,deflate;q=0.6,identity;q=0.3 - Accept: - - "*/*" - response: - status: - code: 422 - message: Unprocessable Entity - headers: - Cache-Control: - - no-cache - Content-Type: - - application/json; charset=UTF-8 - Date: - - Fri, 08 Sep 2017 16:11:00 GMT - Rate-Limit-Limit: - - '120' - Rate-Limit-Remaining: - - '116' - Rate-Limit-Reset: - - '1504887118' - Server: - - nginx - Set-Cookie: - - _mkra_ctxt=bdc4b7da0cb7dd0254ec2aae989690c6--422; path=/; max-age=5; HttpOnly - X-Request-Id: - - a5f1819a-effc-425c-8d85-345dd6ce5e7c - X-Runtime: - - '0.032218' - Content-Length: - - '97' - Connection: - - keep-alive - body: - encoding: ASCII-8BIT - string: !binary |- - eyJlcnJvcnMiOlt7ImlkIjoiaW52YWxpZF9wYXJhbWV0ZXIiLCJwYXJhbWV0 - ZXIiOiJiYXNlIiwibWVzc2FnZSI6Im7Do28gc3Vwb3J0YSBhdHVhbGl6YcOn - w6NvIn1dfQ== - http_version: - recorded_at: Fri, 08 Sep 2017 16:11:00 GMT -recorded_with: VCR 3.0.3 diff --git a/spec/cassettes/vindi/rest/issues/issue.yml b/spec/cassettes/vindi/rest/issues/issue.yml index a082cd3..8b547e5 100644 --- a/spec/cassettes/vindi/rest/issues/issue.yml +++ b/spec/cassettes/vindi/rest/issues/issue.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/issues/2 + uri: https://sandbox-app.vindi.com.br/api/v1/issues/2 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/issues/list_issues.yml b/spec/cassettes/vindi/rest/issues/list_issues.yml index 958765c..1a6f666 100644 --- a/spec/cassettes/vindi/rest/issues/list_issues.yml +++ b/spec/cassettes/vindi/rest/issues/list_issues.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/issues + uri: https://sandbox-app.vindi.com.br/api/v1/issues body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/issues/update_issue.yml b/spec/cassettes/vindi/rest/issues/update_issue.yml index 0feef86..410327b 100644 --- a/spec/cassettes/vindi/rest/issues/update_issue.yml +++ b/spec/cassettes/vindi/rest/issues/update_issue.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: https://staging-app.vindi.com.br/api/v1/issues/2 + uri: https://sandbox-app.vindi.com.br/api/v1/issues/2 body: encoding: UTF-8 string: status=open diff --git a/spec/cassettes/vindi/rest/merchant_users/create_merchant_user.yml b/spec/cassettes/vindi/rest/merchant_users/create_merchant_user.yml index 4c10d58..0db7445 100644 --- a/spec/cassettes/vindi/rest/merchant_users/create_merchant_user.yml +++ b/spec/cassettes/vindi/rest/merchant_users/create_merchant_user.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/merchant_users + uri: https://sandbox-app.vindi.com.br/api/v1/merchant_users body: encoding: UTF-8 string: email=janedoe%40teste.com&name=Jane+Doe&role_id=10 diff --git a/spec/cassettes/vindi/rest/merchant_users/delete_merchant_user.yml b/spec/cassettes/vindi/rest/merchant_users/delete_merchant_user.yml index 8ca708f..de39470 100644 --- a/spec/cassettes/vindi/rest/merchant_users/delete_merchant_user.yml +++ b/spec/cassettes/vindi/rest/merchant_users/delete_merchant_user.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/merchant_users/39 + uri: https://sandbox-app.vindi.com.br/api/v1/merchant_users/39 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/merchant_users/list_merchant_users.yml b/spec/cassettes/vindi/rest/merchant_users/list_merchant_users.yml index 4d11fed..72d714e 100644 --- a/spec/cassettes/vindi/rest/merchant_users/list_merchant_users.yml +++ b/spec/cassettes/vindi/rest/merchant_users/list_merchant_users.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/merchant_users + uri: https://sandbox-app.vindi.com.br/api/v1/merchant_users body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/merchant_users/merchant_user.yml b/spec/cassettes/vindi/rest/merchant_users/merchant_user.yml index b8c51fe..a517ba7 100644 --- a/spec/cassettes/vindi/rest/merchant_users/merchant_user.yml +++ b/spec/cassettes/vindi/rest/merchant_users/merchant_user.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/merchant_users/38 + uri: https://sandbox-app.vindi.com.br/api/v1/merchant_users/38 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/merchant_users/reactivate_merchant_user.yml b/spec/cassettes/vindi/rest/merchant_users/reactivate_merchant_user.yml index 48fa7da..5ce2e54 100644 --- a/spec/cassettes/vindi/rest/merchant_users/reactivate_merchant_user.yml +++ b/spec/cassettes/vindi/rest/merchant_users/reactivate_merchant_user.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/merchant_users/39/reactivate + uri: https://sandbox-app.vindi.com.br/api/v1/merchant_users/39/reactivate body: encoding: UTF-8 string: '' diff --git a/spec/cassettes/vindi/rest/merchant_users/update_merchant_user.yml b/spec/cassettes/vindi/rest/merchant_users/update_merchant_user.yml index 3f20913..67b3e19 100644 --- a/spec/cassettes/vindi/rest/merchant_users/update_merchant_user.yml +++ b/spec/cassettes/vindi/rest/merchant_users/update_merchant_user.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: https://staging-app.vindi.com.br/api/v1/merchant_users/39 + uri: https://sandbox-app.vindi.com.br/api/v1/merchant_users/39 body: encoding: UTF-8 string: role_id=7 diff --git a/spec/cassettes/vindi/rest/merchants/current_merchant.yml b/spec/cassettes/vindi/rest/merchants/current_merchant.yml index 7c9730b..61ff0cc 100644 --- a/spec/cassettes/vindi/rest/merchants/current_merchant.yml +++ b/spec/cassettes/vindi/rest/merchants/current_merchant.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/merchants/current + uri: https://sandbox-app.vindi.com.br/api/v1/merchants/current body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/merchants/list_merchants.yml b/spec/cassettes/vindi/rest/merchants/list_merchants.yml index 5c245e0..ab87f76 100644 --- a/spec/cassettes/vindi/rest/merchants/list_merchants.yml +++ b/spec/cassettes/vindi/rest/merchants/list_merchants.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/merchants + uri: https://sandbox-app.vindi.com.br/api/v1/merchants body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/merchants/merchant.yml b/spec/cassettes/vindi/rest/merchants/merchant.yml index 86927fd..824058c 100644 --- a/spec/cassettes/vindi/rest/merchants/merchant.yml +++ b/spec/cassettes/vindi/rest/merchants/merchant.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/merchants/7 + uri: https://sandbox-app.vindi.com.br/api/v1/merchants/7 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/messages/create_message.yml b/spec/cassettes/vindi/rest/messages/create_message.yml index 392726d..a44d06b 100644 --- a/spec/cassettes/vindi/rest/messages/create_message.yml +++ b/spec/cassettes/vindi/rest/messages/create_message.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/messages + uri: https://sandbox-app.vindi.com.br/api/v1/messages body: encoding: UTF-8 string: charge_id=71&customer_id=2&email=cliente%40email.com¬ification_id=6 diff --git a/spec/cassettes/vindi/rest/messages/list_messages.yml b/spec/cassettes/vindi/rest/messages/list_messages.yml index ba1dcf5..c88c50c 100644 --- a/spec/cassettes/vindi/rest/messages/list_messages.yml +++ b/spec/cassettes/vindi/rest/messages/list_messages.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/messages + uri: https://sandbox-app.vindi.com.br/api/v1/messages body: encoding: US-ASCII string: '' @@ -29,7 +29,7 @@ http_interactions: Etag: - W/"7fe8dbd70fc45d1831aa699f41c2d15e" Link: - - ; rel="last", ; + - ; rel="last", ; rel="next" Per-Page: - '25' diff --git a/spec/cassettes/vindi/rest/messages/message.yml b/spec/cassettes/vindi/rest/messages/message.yml index 572376e..09af83e 100644 --- a/spec/cassettes/vindi/rest/messages/message.yml +++ b/spec/cassettes/vindi/rest/messages/message.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/messages/154 + uri: https://sandbox-app.vindi.com.br/api/v1/messages/154 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/movements/create_movement.yml b/spec/cassettes/vindi/rest/movements/create_movement.yml index 7fbcfbb..f5516f1 100644 --- a/spec/cassettes/vindi/rest/movements/create_movement.yml +++ b/spec/cassettes/vindi/rest/movements/create_movement.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/movements + uri: https://sandbox-app.vindi.com.br/api/v1/movements body: encoding: UTF-8 string: amount=1&bill_id=509&movement_type=credit diff --git a/spec/cassettes/vindi/rest/notifications/create_notification.yml b/spec/cassettes/vindi/rest/notifications/create_notification.yml index 692e21e..1f90285 100644 --- a/spec/cassettes/vindi/rest/notifications/create_notification.yml +++ b/spec/cassettes/vindi/rest/notifications/create_notification.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/notifications + uri: https://sandbox-app.vindi.com.br/api/v1/notifications body: encoding: UTF-8 string: content=Hey%2C+Hoops%21&name=Hoops¬ification_type=email&status=active&subject=Hoops&trigger_day=5&trigger_type=charge_due_at diff --git a/spec/cassettes/vindi/rest/notifications/create_notification_item.yml b/spec/cassettes/vindi/rest/notifications/create_notification_item.yml index 4a39fcd..587c50e 100644 --- a/spec/cassettes/vindi/rest/notifications/create_notification_item.yml +++ b/spec/cassettes/vindi/rest/notifications/create_notification_item.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/notifications/48/notification_items + uri: https://sandbox-app.vindi.com.br/api/v1/notifications/48/notification_items body: encoding: UTF-8 string: item_id=22&item_type=Plan diff --git a/spec/cassettes/vindi/rest/notifications/delete_notification.yml b/spec/cassettes/vindi/rest/notifications/delete_notification.yml index 25de23b..1c3078f 100644 --- a/spec/cassettes/vindi/rest/notifications/delete_notification.yml +++ b/spec/cassettes/vindi/rest/notifications/delete_notification.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/notifications/47 + uri: https://sandbox-app.vindi.com.br/api/v1/notifications/47 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/notifications/delete_notification_item.yml b/spec/cassettes/vindi/rest/notifications/delete_notification_item.yml index 0a95cbb..6300b80 100644 --- a/spec/cassettes/vindi/rest/notifications/delete_notification_item.yml +++ b/spec/cassettes/vindi/rest/notifications/delete_notification_item.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/notifications/48/notification_items/7 + uri: https://sandbox-app.vindi.com.br/api/v1/notifications/48/notification_items/7 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/notifications/list_notification_items.yml b/spec/cassettes/vindi/rest/notifications/list_notification_items.yml index 663e383..d787f36 100644 --- a/spec/cassettes/vindi/rest/notifications/list_notification_items.yml +++ b/spec/cassettes/vindi/rest/notifications/list_notification_items.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/notifications/48/notification_items + uri: https://sandbox-app.vindi.com.br/api/v1/notifications/48/notification_items body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/notifications/list_notifications.yml b/spec/cassettes/vindi/rest/notifications/list_notifications.yml index 17ae656..17daa95 100644 --- a/spec/cassettes/vindi/rest/notifications/list_notifications.yml +++ b/spec/cassettes/vindi/rest/notifications/list_notifications.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/notifications + uri: https://sandbox-app.vindi.com.br/api/v1/notifications body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/notifications/notification.yml b/spec/cassettes/vindi/rest/notifications/notification.yml index 39403e7..f031d08 100644 --- a/spec/cassettes/vindi/rest/notifications/notification.yml +++ b/spec/cassettes/vindi/rest/notifications/notification.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/notifications/41 + uri: https://sandbox-app.vindi.com.br/api/v1/notifications/41 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/notifications/update_notification.yml b/spec/cassettes/vindi/rest/notifications/update_notification.yml index 2fea0b4..c14215e 100644 --- a/spec/cassettes/vindi/rest/notifications/update_notification.yml +++ b/spec/cassettes/vindi/rest/notifications/update_notification.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: https://staging-app.vindi.com.br/api/v1/notifications/41 + uri: https://sandbox-app.vindi.com.br/api/v1/notifications/41 body: encoding: UTF-8 string: trigger_day=3 diff --git a/spec/cassettes/vindi/rest/payment_methods/list_payment_methods.yml b/spec/cassettes/vindi/rest/payment_methods/list_payment_methods.yml index 8374027..4bcbce8 100644 --- a/spec/cassettes/vindi/rest/payment_methods/list_payment_methods.yml +++ b/spec/cassettes/vindi/rest/payment_methods/list_payment_methods.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/payment_methods + uri: https://sandbox-app.vindi.com.br/api/v1/payment_methods body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/payment_methods/payment_method.yml b/spec/cassettes/vindi/rest/payment_methods/payment_method.yml index d5ac7e8..3b4574b 100644 --- a/spec/cassettes/vindi/rest/payment_methods/payment_method.yml +++ b/spec/cassettes/vindi/rest/payment_methods/payment_method.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/payment_methods/13 + uri: https://sandbox-app.vindi.com.br/api/v1/payment_methods/13 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/payment_profiles/create_payment_profile.yml b/spec/cassettes/vindi/rest/payment_profiles/create_payment_profile.yml index e95e2cc..605eebc 100644 --- a/spec/cassettes/vindi/rest/payment_profiles/create_payment_profile.yml +++ b/spec/cassettes/vindi/rest/payment_profiles/create_payment_profile.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/payment_profiles + uri: https://sandbox-app.vindi.com.br/api/v1/payment_profiles body: encoding: UTF-8 string: card_cvv=123&card_expiration=12%2F2018&card_number=5167454851671773&customer_id=382&holder_name=John+Doe&payment_company_code=mastercard&payment_method_code=credit_card diff --git a/spec/cassettes/vindi/rest/payment_profiles/delete_payment_profile.yml b/spec/cassettes/vindi/rest/payment_profiles/delete_payment_profile.yml index dc5d4e0..8a0a0d5 100644 --- a/spec/cassettes/vindi/rest/payment_profiles/delete_payment_profile.yml +++ b/spec/cassettes/vindi/rest/payment_profiles/delete_payment_profile.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/payment_profiles/37 + uri: https://sandbox-app.vindi.com.br/api/v1/payment_profiles/37 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/payment_profiles/list_payment_profiles.yml b/spec/cassettes/vindi/rest/payment_profiles/list_payment_profiles.yml index 2fb62fd..acfacc5 100644 --- a/spec/cassettes/vindi/rest/payment_profiles/list_payment_profiles.yml +++ b/spec/cassettes/vindi/rest/payment_profiles/list_payment_profiles.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/payment_profiles + uri: https://sandbox-app.vindi.com.br/api/v1/payment_profiles body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/payment_profiles/payment_profile.yml b/spec/cassettes/vindi/rest/payment_profiles/payment_profile.yml index a3317af..93ff6ad 100644 --- a/spec/cassettes/vindi/rest/payment_profiles/payment_profile.yml +++ b/spec/cassettes/vindi/rest/payment_profiles/payment_profile.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/payment_profiles/18 + uri: https://sandbox-app.vindi.com.br/api/v1/payment_profiles/18 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/periods/create_period_bill.yml b/spec/cassettes/vindi/rest/periods/create_period_bill.yml index f6d5428..a30e726 100644 --- a/spec/cassettes/vindi/rest/periods/create_period_bill.yml +++ b/spec/cassettes/vindi/rest/periods/create_period_bill.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/periods/379/bill + uri: https://sandbox-app.vindi.com.br/api/v1/periods/379/bill body: encoding: UTF-8 string: '' diff --git a/spec/cassettes/vindi/rest/periods/list_periods.yml b/spec/cassettes/vindi/rest/periods/list_periods.yml index b8cf6a8..af22983 100644 --- a/spec/cassettes/vindi/rest/periods/list_periods.yml +++ b/spec/cassettes/vindi/rest/periods/list_periods.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/periods + uri: https://sandbox-app.vindi.com.br/api/v1/periods body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/periods/period.yml b/spec/cassettes/vindi/rest/periods/period.yml index 4fa86a6..5dbc0ea 100644 --- a/spec/cassettes/vindi/rest/periods/period.yml +++ b/spec/cassettes/vindi/rest/periods/period.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/periods/360 + uri: https://sandbox-app.vindi.com.br/api/v1/periods/360 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/periods/update_period.yml b/spec/cassettes/vindi/rest/periods/update_period.yml index a973534..4e20b6d 100644 --- a/spec/cassettes/vindi/rest/periods/update_period.yml +++ b/spec/cassettes/vindi/rest/periods/update_period.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: https://staging-app.vindi.com.br/api/v1/periods/360 + uri: https://sandbox-app.vindi.com.br/api/v1/periods/360 body: encoding: UTF-8 string: billing_at=27%2F09%2F2017 diff --git a/spec/cassettes/vindi/rest/plans/create_plan.yml b/spec/cassettes/vindi/rest/plans/create_plan.yml index 92ca228..9376c53 100644 --- a/spec/cassettes/vindi/rest/plans/create_plan.yml +++ b/spec/cassettes/vindi/rest/plans/create_plan.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/plans + uri: https://sandbox-app.vindi.com.br/api/v1/plans body: encoding: UTF-8 string: billing_trigger_day=3&billing_trigger_type=beginning_of_period&interval=months&interval_count=1&name=awesome+plan diff --git a/spec/cassettes/vindi/rest/plans/list_plans.yml b/spec/cassettes/vindi/rest/plans/list_plans.yml index cdc257d..66a15f4 100644 --- a/spec/cassettes/vindi/rest/plans/list_plans.yml +++ b/spec/cassettes/vindi/rest/plans/list_plans.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/plans + uri: https://sandbox-app.vindi.com.br/api/v1/plans body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/plans/plan.yml b/spec/cassettes/vindi/rest/plans/plan.yml index 779d31f..3aaa05f 100644 --- a/spec/cassettes/vindi/rest/plans/plan.yml +++ b/spec/cassettes/vindi/rest/plans/plan.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/plans/15 + uri: https://sandbox-app.vindi.com.br/api/v1/plans/15 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/plans/update_plan.yml b/spec/cassettes/vindi/rest/plans/update_plan.yml index 4666172..e097e43 100644 --- a/spec/cassettes/vindi/rest/plans/update_plan.yml +++ b/spec/cassettes/vindi/rest/plans/update_plan.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: https://staging-app.vindi.com.br/api/v1/plans/15 + uri: https://sandbox-app.vindi.com.br/api/v1/plans/15 body: encoding: UTF-8 string: name=default+plan diff --git a/spec/cassettes/vindi/rest/product_items/create_product_item.yml b/spec/cassettes/vindi/rest/product_items/create_product_item.yml index 359d79c..9631c3b 100644 --- a/spec/cassettes/vindi/rest/product_items/create_product_item.yml +++ b/spec/cassettes/vindi/rest/product_items/create_product_item.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/product_items + uri: https://sandbox-app.vindi.com.br/api/v1/product_items body: encoding: UTF-8 string: product_id=26&quantity=1 diff --git a/spec/cassettes/vindi/rest/product_items/delete_product_item.yml b/spec/cassettes/vindi/rest/product_items/delete_product_item.yml index 9b34819..8a814c7 100644 --- a/spec/cassettes/vindi/rest/product_items/delete_product_item.yml +++ b/spec/cassettes/vindi/rest/product_items/delete_product_item.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/product_items/131 + uri: https://sandbox-app.vindi.com.br/api/v1/product_items/131 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/product_items/product_item.yml b/spec/cassettes/vindi/rest/product_items/product_item.yml index 221c542..45012b3 100644 --- a/spec/cassettes/vindi/rest/product_items/product_item.yml +++ b/spec/cassettes/vindi/rest/product_items/product_item.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/product_items/131 + uri: https://sandbox-app.vindi.com.br/api/v1/product_items/131 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/product_items/update_product_item.yml b/spec/cassettes/vindi/rest/product_items/update_product_item.yml index 7e34c25..b5ef6e5 100644 --- a/spec/cassettes/vindi/rest/product_items/update_product_item.yml +++ b/spec/cassettes/vindi/rest/product_items/update_product_item.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: https://staging-app.vindi.com.br/api/v1/product_items/130 + uri: https://sandbox-app.vindi.com.br/api/v1/product_items/130 body: encoding: UTF-8 string: cycles=2 diff --git a/spec/cassettes/vindi/rest/products/create_product.yml b/spec/cassettes/vindi/rest/products/create_product.yml index 3fe3c7e..3f6ba98 100644 --- a/spec/cassettes/vindi/rest/products/create_product.yml +++ b/spec/cassettes/vindi/rest/products/create_product.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/products + uri: https://sandbox-app.vindi.com.br/api/v1/products body: encoding: UTF-8 string: name=tshirt&pricing_schema%5Bprice%5D=100 diff --git a/spec/cassettes/vindi/rest/products/list_products.yml b/spec/cassettes/vindi/rest/products/list_products.yml index ff2de06..f937cc8 100644 --- a/spec/cassettes/vindi/rest/products/list_products.yml +++ b/spec/cassettes/vindi/rest/products/list_products.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/products + uri: https://sandbox-app.vindi.com.br/api/v1/products body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/products/product.yml b/spec/cassettes/vindi/rest/products/product.yml index 6f25345..7654865 100644 --- a/spec/cassettes/vindi/rest/products/product.yml +++ b/spec/cassettes/vindi/rest/products/product.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/products/26 + uri: https://sandbox-app.vindi.com.br/api/v1/products/26 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/products/update_product.yml b/spec/cassettes/vindi/rest/products/update_product.yml index 31b747a..1892e58 100644 --- a/spec/cassettes/vindi/rest/products/update_product.yml +++ b/spec/cassettes/vindi/rest/products/update_product.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: https://staging-app.vindi.com.br/api/v1/products/26 + uri: https://sandbox-app.vindi.com.br/api/v1/products/26 body: encoding: UTF-8 string: name=t-shirt&pricing_schema%5Bprice%5D=100 diff --git a/spec/cassettes/vindi/rest/roles/list_roles.yml b/spec/cassettes/vindi/rest/roles/list_roles.yml index d714b56..5f0156c 100644 --- a/spec/cassettes/vindi/rest/roles/list_roles.yml +++ b/spec/cassettes/vindi/rest/roles/list_roles.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/roles + uri: https://sandbox-app.vindi.com.br/api/v1/roles body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/subscriptions/create_subscription.yml b/spec/cassettes/vindi/rest/subscriptions/create_subscription.yml index 9f1d907..14ccbd5 100644 --- a/spec/cassettes/vindi/rest/subscriptions/create_subscription.yml +++ b/spec/cassettes/vindi/rest/subscriptions/create_subscription.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/subscriptions + uri: https://sandbox-app.vindi.com.br/api/v1/subscriptions body: encoding: UTF-8 string: customer_id=2&payment_method_code=credit_card&plan_id=15&product_items%5B%5D%5Bproduct_id%5D=26 diff --git a/spec/cassettes/vindi/rest/subscriptions/delete_subscription.yml b/spec/cassettes/vindi/rest/subscriptions/delete_subscription.yml index 6ef9a86..5d3241f 100644 --- a/spec/cassettes/vindi/rest/subscriptions/delete_subscription.yml +++ b/spec/cassettes/vindi/rest/subscriptions/delete_subscription.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/subscriptions/64 + uri: https://sandbox-app.vindi.com.br/api/v1/subscriptions/64 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/subscriptions/list_subscriptions.yml b/spec/cassettes/vindi/rest/subscriptions/list_subscriptions.yml index 32ec5b9..5c69a94 100644 --- a/spec/cassettes/vindi/rest/subscriptions/list_subscriptions.yml +++ b/spec/cassettes/vindi/rest/subscriptions/list_subscriptions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/subscriptions + uri: https://sandbox-app.vindi.com.br/api/v1/subscriptions body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/subscriptions/reactivate_subscription.yml b/spec/cassettes/vindi/rest/subscriptions/reactivate_subscription.yml index 7937cb5..c6aff8c 100644 --- a/spec/cassettes/vindi/rest/subscriptions/reactivate_subscription.yml +++ b/spec/cassettes/vindi/rest/subscriptions/reactivate_subscription.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/subscriptions/61/reactivate + uri: https://sandbox-app.vindi.com.br/api/v1/subscriptions/61/reactivate body: encoding: UTF-8 string: '' diff --git a/spec/cassettes/vindi/rest/subscriptions/renew_subscription.yml b/spec/cassettes/vindi/rest/subscriptions/renew_subscription.yml index 31d1ebe..86a2412 100644 --- a/spec/cassettes/vindi/rest/subscriptions/renew_subscription.yml +++ b/spec/cassettes/vindi/rest/subscriptions/renew_subscription.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/subscriptions/65/renew + uri: https://sandbox-app.vindi.com.br/api/v1/subscriptions/65/renew body: encoding: UTF-8 string: '' diff --git a/spec/cassettes/vindi/rest/subscriptions/subscription.yml b/spec/cassettes/vindi/rest/subscriptions/subscription.yml index 427c77b..2ac4eb3 100644 --- a/spec/cassettes/vindi/rest/subscriptions/subscription.yml +++ b/spec/cassettes/vindi/rest/subscriptions/subscription.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/subscriptions/64 + uri: https://sandbox-app.vindi.com.br/api/v1/subscriptions/64 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/subscriptions/update_subscription.yml b/spec/cassettes/vindi/rest/subscriptions/update_subscription.yml index d0f0e34..ba8b45f 100644 --- a/spec/cassettes/vindi/rest/subscriptions/update_subscription.yml +++ b/spec/cassettes/vindi/rest/subscriptions/update_subscription.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: put - uri: https://staging-app.vindi.com.br/api/v1/subscriptions/64 + uri: https://sandbox-app.vindi.com.br/api/v1/subscriptions/64 body: encoding: UTF-8 string: payment_method_code=debit_card diff --git a/spec/cassettes/vindi/rest/transactions/create_transaction.yml b/spec/cassettes/vindi/rest/transactions/create_transaction.yml index 0b0693a..fb5136f 100644 --- a/spec/cassettes/vindi/rest/transactions/create_transaction.yml +++ b/spec/cassettes/vindi/rest/transactions/create_transaction.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/transactions + uri: https://sandbox-app.vindi.com.br/api/v1/transactions body: encoding: UTF-8 string: amount=100&charge_id=457&paid_at=2017-09-08&payment_method_code=cash diff --git a/spec/cassettes/vindi/rest/transactions/list_transactions.yml b/spec/cassettes/vindi/rest/transactions/list_transactions.yml index e7ccc66..80da543 100644 --- a/spec/cassettes/vindi/rest/transactions/list_transactions.yml +++ b/spec/cassettes/vindi/rest/transactions/list_transactions.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/transactions + uri: https://sandbox-app.vindi.com.br/api/v1/transactions body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/transactions/transaction.yml b/spec/cassettes/vindi/rest/transactions/transaction.yml index dd691ff..8832498 100644 --- a/spec/cassettes/vindi/rest/transactions/transaction.yml +++ b/spec/cassettes/vindi/rest/transactions/transaction.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/transactions/498 + uri: https://sandbox-app.vindi.com.br/api/v1/transactions/498 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/usages/create_usage.yml b/spec/cassettes/vindi/rest/usages/create_usage.yml index 1650890..ace6fb7 100644 --- a/spec/cassettes/vindi/rest/usages/create_usage.yml +++ b/spec/cassettes/vindi/rest/usages/create_usage.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: post - uri: https://staging-app.vindi.com.br/api/v1/usages + uri: https://sandbox-app.vindi.com.br/api/v1/usages body: encoding: UTF-8 string: period_id=382&product_item_id=141&quantity=3 diff --git a/spec/cassettes/vindi/rest/usages/delete_usage.yml b/spec/cassettes/vindi/rest/usages/delete_usage.yml index 2d3d9d6..f8c8d09 100644 --- a/spec/cassettes/vindi/rest/usages/delete_usage.yml +++ b/spec/cassettes/vindi/rest/usages/delete_usage.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: delete - uri: https://staging-app.vindi.com.br/api/v1/usages/652 + uri: https://sandbox-app.vindi.com.br/api/v1/usages/652 body: encoding: US-ASCII string: '' diff --git a/spec/cassettes/vindi/rest/users/current_user.yml b/spec/cassettes/vindi/rest/users/current_user.yml index e066032..4ebe3f3 100644 --- a/spec/cassettes/vindi/rest/users/current_user.yml +++ b/spec/cassettes/vindi/rest/users/current_user.yml @@ -2,7 +2,7 @@ http_interactions: - request: method: get - uri: https://staging-app.vindi.com.br/api/v1/users/current + uri: https://sandbox-app.vindi.com.br/api/v1/users/current body: encoding: US-ASCII string: '' diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 561e971..d9994c1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,7 +1,6 @@ require 'simplecov' SimpleCov.start -VINDI_STAGING_ENDPOINT = "https://staging-app.vindi.com.br/api/v1/".freeze VINDI_SANDBOX_ENDPOINT = "https://sandbox-app.vindi.com.br/api/v1/".freeze require 'vindi' @@ -27,13 +26,13 @@ def stub_get(url) def vindi_url(url) return url if url =~ /^https/ - url.prepend(VINDI_STAGING_ENDPOINT) + url.prepend(VINDI_SANDBOX_ENDPOINT) end def test_key - 'xDw3elPwddlzqgFzJqZXkiy-jZlzVvY7L1aVdcDbMHg' + 'T9qEAJ7vIU9Unj0vmiZFDVjywt2Vn-MhYHcjrjwB6n0' end def basic_auth_client(key = test_key) - Vindi::Client.new(key: key, api_endpoint: VINDI_STAGING_ENDPOINT) + Vindi::Client.new(key: key, api_endpoint: VINDI_SANDBOX_ENDPOINT) end diff --git a/spec/vindi/client_spec.rb b/spec/vindi/client_spec.rb index 4e1da96..066a1db 100644 --- a/spec/vindi/client_spec.rb +++ b/spec/vindi/client_spec.rb @@ -4,7 +4,7 @@ let(:options) do { key: key, default_media_type: 'application/vnd.api+json' } end - let(:key) { 'xDw3elPwddlzqgFzJqZXkiy-jZlzVvY7L1aVdcDbMHg' } + let(:key) { test_key } let(:client) { basic_auth_client } context 'initialization' do @@ -57,7 +57,7 @@ describe 'authorization' do it 'makes a authenticated request' do - token = 'eER3M2VsUHdkZGx6cWdGekpxWlhraXktalpselZ2WTdMMWFWZGNEYk1IZzo=' + token = 'VDlxRUFKN3ZJVTlVbmowdm1pWkZEVmp5d3QyVm4tTWhZSGNqcmp3QjZuMDo=' root_request = stub_get('') .with({ headers: {'Authorization': "Basic #{token}"}})