forte_ruby 0.1.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.
Files changed (55) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/Gemfile +4 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +92 -0
  6. data/Rakefile +2 -0
  7. data/forte_ruby.gemspec +30 -0
  8. data/lib/forte_ruby/api/base.rb +52 -0
  9. data/lib/forte_ruby/api/object.rb +52 -0
  10. data/lib/forte_ruby/api/objects.rb +51 -0
  11. data/lib/forte_ruby/api/request_data.rb +45 -0
  12. data/lib/forte_ruby/resourses/address.rb +27 -0
  13. data/lib/forte_ruby/resourses/addresses.rb +22 -0
  14. data/lib/forte_ruby/resourses/customer.rb +29 -0
  15. data/lib/forte_ruby/resourses/customers.rb +16 -0
  16. data/lib/forte_ruby/resourses/settlement.rb +43 -0
  17. data/lib/forte_ruby/resourses/settlements.rb +16 -0
  18. data/lib/forte_ruby/resourses/transaction.rb +34 -0
  19. data/lib/forte_ruby/resourses/transactions.rb +16 -0
  20. data/lib/forte_ruby/version.rb +3 -0
  21. data/lib/forte_ruby.rb +27 -0
  22. data/spec/cassettes/address/create/error.yml +59 -0
  23. data/spec/cassettes/address/create/success.yml +52 -0
  24. data/spec/cassettes/address/delete/success.yml +50 -0
  25. data/spec/cassettes/addresses/empty.yml +50 -0
  26. data/spec/cassettes/addresses/many.yml +51 -0
  27. data/spec/cassettes/customer/create/error.yml +56 -0
  28. data/spec/cassettes/customer/create/success.yml +52 -0
  29. data/spec/cassettes/customer/delete/success.yml +50 -0
  30. data/spec/cassettes/customer/update/error.yml +59 -0
  31. data/spec/cassettes/customer/update/success.yml +52 -0
  32. data/spec/cassettes/customers/all/empty.yml +50 -0
  33. data/spec/cassettes/customers/all/many.yml +51 -0
  34. data/spec/cassettes/customers/filter/do_not_exist.yml +50 -0
  35. data/spec/cassettes/customers/filter/exist.yml +51 -0
  36. data/spec/cassettes/customers/find_by_id/does_not_exist.yml +53 -0
  37. data/spec/cassettes/customers/find_by_id/exists.yml +50 -0
  38. data/spec/cassettes/settlements/empty.yml +50 -0
  39. data/spec/cassettes/settlements/many.yml +50 -0
  40. data/spec/cassettes/transactions/empty.yml +50 -0
  41. data/spec/cassettes/transactions/many.yml +51 -0
  42. data/spec/config/forte_ruby.yml +6 -0
  43. data/spec/forte_ruby/api/base_spec.rb +24 -0
  44. data/spec/forte_ruby/api/object_spec.rb +90 -0
  45. data/spec/forte_ruby/api/objects_spec.rb +88 -0
  46. data/spec/forte_ruby/api/request_data_spec.rb +33 -0
  47. data/spec/forte_ruby/resourses/address_spec.rb +100 -0
  48. data/spec/forte_ruby/resourses/addresses_spec.rb +30 -0
  49. data/spec/forte_ruby/resourses/customer_spec.rb +90 -0
  50. data/spec/forte_ruby/resourses/customers_spec.rb +53 -0
  51. data/spec/forte_ruby/resourses/settlements_spec.rb +25 -0
  52. data/spec/forte_ruby/resourses/transactions_spec.rb +25 -0
  53. data/spec/spec_helper.rb +19 -0
  54. data/tasks/rspec.rake +3 -0
  55. metadata +241 -0
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ/addresses/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"first_name":"Mario","last_name":null,"company_name":null,"phone":null,"fax":null,"email":null,"label":null,"address_type":null,"shipping_address_type":null,"physical_address":null}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '182'
20
+ User-Agent:
21
+ - Ruby
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ Server:
28
+ - Microsoft-IIS/7.5
29
+ X-Aspnet-Version:
30
+ - 4.0.30319
31
+ Cache-Control:
32
+ - no-cache
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Date:
36
+ - Tue, 17 Mar 2015 15:44:34 GMT
37
+ Expires:
38
+ - "-1"
39
+ Pragma:
40
+ - no-cache
41
+ Set-Cookie:
42
+ - X-Mapping-gbooldlg=0DBF2E22300A61A18D35B33164C4A32E;path=/
43
+ X-Powered-By:
44
+ - ASP.NET
45
+ Content-Length:
46
+ - '282'
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"physical_address":{},"response":{"response_desc":"Create Successful.","environment":"sandbox"},"links":{"self":""},"first_name":"Mario","customer_token":"cst_5I5j8RuSCU6kmt3_miCtZQ","location_id":"loc_169531","account_id":"act_300044","address_token":"add_-Wga1yoHZEebH60G-YWJaQ"}'
50
+ http_version:
51
+ recorded_at: Tue, 17 Mar 2015 15:44:35 GMT
52
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ/addresses/add_-Wga1yoHZEebH60G-YWJaQ
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - Microsoft-IIS/7.5
27
+ X-Aspnet-Version:
28
+ - 4.0.30319
29
+ Cache-Control:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Date:
34
+ - Tue, 17 Mar 2015 15:43:05 GMT
35
+ Expires:
36
+ - "-1"
37
+ Pragma:
38
+ - no-cache
39
+ Set-Cookie:
40
+ - X-Mapping-gbooldlg=0DBF2E22300A61A18D35B33164C4A32E;path=/
41
+ X-Powered-By:
42
+ - ASP.NET
43
+ Content-Length:
44
+ - '120'
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"response":{"response_desc":"Delete Successful.","environment":"sandbox"},"address_token":"add_-Wga1yoHZEebH60G-YWJaQ"}'
48
+ http_version:
49
+ recorded_at: Tue, 17 Mar 2015 15:43:05 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ/addresses
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - Microsoft-IIS/7.5
27
+ X-Aspnet-Version:
28
+ - 4.0.30319
29
+ Cache-Control:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Date:
34
+ - Tue, 17 Mar 2015 15:30:03 GMT
35
+ Expires:
36
+ - "-1"
37
+ Pragma:
38
+ - no-cache
39
+ Set-Cookie:
40
+ - X-Mapping-gbooldlg=0DBF2E22300A61A18D35B33164C4A32E;path=/
41
+ X-Powered-By:
42
+ - ASP.NET
43
+ Content-Length:
44
+ - '219'
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"number_results":0,"results":[],"response":{"response_desc":"Get Successful.","environment":"sandbox"},"links":{"self":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ/addresses"}}'
48
+ http_version:
49
+ recorded_at: Tue, 17 Mar 2015 15:30:04 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ/addresses
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - Microsoft-IIS/7.5
27
+ X-Aspnet-Version:
28
+ - 4.0.30319
29
+ Cache-Control:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Date:
34
+ - Tue, 17 Mar 2015 15:38:38 GMT
35
+ Expires:
36
+ - "-1"
37
+ Pragma:
38
+ - no-cache
39
+ Set-Cookie:
40
+ - X-Mapping-gbooldlg=DFC7CDDF5472E60DACDF1BDF84C0518B;path=/
41
+ X-Powered-By:
42
+ - ASP.NET
43
+ Content-Length:
44
+ - '981'
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"number_results":2,"results":[{"physical_address":{"postal_code":"","region":"","locality":"","street_line2":"","street_line1":""},"links":{"self":""},"email_address":"","fax_number":"","phone_number":"","company_name":"","last_name":"","first_name":"Mario","label":"","customer_token":"cst_5I5j8RuSCU6kmt3_miCtZQ","location_id":"loc_169531","account_id":"act_300044","address_token":"add_-Wga1yoHZEebH60G-YWJaQ"}],"response":{"response_desc":"Get
48
+ Successful.","environment":"sandbox"},"links":{"self":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ/addresses"}}'
49
+ http_version:
50
+ recorded_at: Tue, 17 Mar 2015 15:38:39 GMT
51
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"customer_token":null,"customer_id":null,"default_paymethod_token":null,"default_billing_address_token":null,"default_shipping_address_token":null,"status":null,"last_name":null,"first_name":null,"company_name":null,"paymethod":null}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '234'
20
+ User-Agent:
21
+ - Ruby
22
+ response:
23
+ status:
24
+ code: 400
25
+ message: Bad Request
26
+ headers:
27
+ Server:
28
+ - Microsoft-IIS/7.5
29
+ X-Aspnet-Version:
30
+ - 4.0.30319
31
+ Cache-Control:
32
+ - no-cache
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Date:
36
+ - Tue, 17 Mar 2015 14:23:39 GMT
37
+ Expires:
38
+ - "-1"
39
+ Pragma:
40
+ - no-cache
41
+ Connection:
42
+ - close
43
+ Set-Cookie:
44
+ - X-Mapping-gbooldlg=0DBF2E22300A61A18D35B33164C4A32E;path=/
45
+ X-Powered-By:
46
+ - ASP.NET
47
+ Content-Length:
48
+ - '290'
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"response":{"response_desc":"These fields, first_name, last_name,
52
+ and company_name, cannot all be null. A customer''s personal name and/or company
53
+ name is required.","environment":"sandbox"},"location_id":"loc_169531","account_id":"act_300044","customer_token":"cst_FrbdQ_7bsk2OuuMGM0B-7w"}'
54
+ http_version:
55
+ recorded_at: Tue, 17 Mar 2015 14:23:40 GMT
56
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers/
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"customer_token":null,"customer_id":null,"default_paymethod_token":null,"default_billing_address_token":null,"default_shipping_address_token":null,"status":null,"last_name":null,"first_name":"Mario","company_name":null,"paymethod":null}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '237'
20
+ User-Agent:
21
+ - Ruby
22
+ response:
23
+ status:
24
+ code: 201
25
+ message: Created
26
+ headers:
27
+ Server:
28
+ - Microsoft-IIS/7.5
29
+ X-Aspnet-Version:
30
+ - 4.0.30319
31
+ Cache-Control:
32
+ - no-cache
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Date:
36
+ - Tue, 17 Mar 2015 14:21:02 GMT
37
+ Expires:
38
+ - "-1"
39
+ Pragma:
40
+ - no-cache
41
+ Set-Cookie:
42
+ - X-Mapping-gbooldlg=DFC7CDDF5472E60DACDF1BDF84C0518B;path=/
43
+ X-Powered-By:
44
+ - ASP.NET
45
+ Content-Length:
46
+ - '752'
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"response":{"response_desc":"Create Successful.","environment":"sandbox"},"links":{"settlements":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_oygCxFyKj06Tglzm_8JyeQ/settlements","transactions":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_oygCxFyKj06Tglzm_8JyeQ/transactions","paymethods":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_oygCxFyKj06Tglzm_8JyeQ/paymethods","addresses":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_oygCxFyKj06Tglzm_8JyeQ/addresses","self":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_oygCxFyKj06Tglzm_8JyeQ"},"first_name":"Mario","location_id":"loc_169531","account_id":"act_300044","customer_token":"cst_oygCxFyKj06Tglzm_8JyeQ"}'
50
+ http_version:
51
+ recorded_at: Tue, 17 Mar 2015 14:21:02 GMT
52
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - Microsoft-IIS/7.5
27
+ X-Aspnet-Version:
28
+ - 4.0.30319
29
+ Cache-Control:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Date:
34
+ - Tue, 17 Mar 2015 15:13:24 GMT
35
+ Expires:
36
+ - "-1"
37
+ Pragma:
38
+ - no-cache
39
+ Set-Cookie:
40
+ - X-Mapping-gbooldlg=0DBF2E22300A61A18D35B33164C4A32E;path=/
41
+ X-Powered-By:
42
+ - ASP.NET
43
+ Content-Length:
44
+ - '121'
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"response":{"response_desc":"Delete Successful.","environment":"sandbox"},"customer_token":"cst_5I5j8RuSCU6kmt3_miCtZQ"}'
48
+ http_version:
49
+ recorded_at: Tue, 17 Mar 2015 15:13:25 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"customer_token":"cst_5I5j8RuSCU6kmt3_miCtZQ","customer_id":"","default_paymethod_token":null,"default_billing_address_token":null,"default_shipping_address_token":null,"status":"unexisted","last_name":"","first_name":"Bob","company_name":"","paymethod":null}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '260'
20
+ User-Agent:
21
+ - Ruby
22
+ response:
23
+ status:
24
+ code: 400
25
+ message: Bad Request
26
+ headers:
27
+ Server:
28
+ - Microsoft-IIS/7.5
29
+ Www-Authenticate:
30
+ - Basic realm="sandbox.forte.net"
31
+ X-Aspnet-Version:
32
+ - 4.0.30319
33
+ Cache-Control:
34
+ - no-cache
35
+ Content-Type:
36
+ - application/json; charset=utf-8
37
+ Date:
38
+ - Tue, 17 Mar 2015 15:27:06 GMT
39
+ Expires:
40
+ - "-1"
41
+ Pragma:
42
+ - no-cache
43
+ Connection:
44
+ - close
45
+ Set-Cookie:
46
+ - X-Mapping-gbooldlg=0DBF2E22300A61A18D35B33164C4A32E;path=/
47
+ X-Powered-By:
48
+ - ASP.NET
49
+ Content-Length:
50
+ - '334'
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"response":{"response_desc":"Error[1]: The content in the request
54
+ produced errors while parsing. Check that the content is correctly formatted
55
+ for the Content-Type provided. Error[2]: Unexpected value for CustomerStatus
56
+ Error[3]: Error location: ,\"last_name\":\"\",\"first_name\":\"Bob\",\"company_name\":","environment":"sandbox"}}'
57
+ http_version:
58
+ recorded_at: Tue, 17 Mar 2015 15:27:06 GMT
59
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"customer_token":"cst_5I5j8RuSCU6kmt3_miCtZQ","customer_id":"","default_paymethod_token":null,"default_billing_address_token":null,"default_shipping_address_token":null,"status":"active","last_name":"","first_name":"Mike","company_name":"","paymethod":null}'
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ Content-Length:
19
+ - '258'
20
+ User-Agent:
21
+ - Ruby
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Server:
28
+ - Microsoft-IIS/7.5
29
+ X-Aspnet-Version:
30
+ - 4.0.30319
31
+ Cache-Control:
32
+ - no-cache
33
+ Content-Type:
34
+ - application/json; charset=utf-8
35
+ Date:
36
+ - Tue, 17 Mar 2015 15:25:44 GMT
37
+ Expires:
38
+ - "-1"
39
+ Pragma:
40
+ - no-cache
41
+ Set-Cookie:
42
+ - X-Mapping-gbooldlg=DFC7CDDF5472E60DACDF1BDF84C0518B;path=/
43
+ X-Powered-By:
44
+ - ASP.NET
45
+ Content-Length:
46
+ - '262'
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"response":{"response_desc":"Update Successful.","environment":"sandbox"},"status":"active","company_name":"","last_name":"","first_name":"Mike","customer_id":"","location_id":"loc_169531","account_id":"act_300044","customer_token":"cst_5I5j8RuSCU6kmt3_miCtZQ"}'
50
+ http_version:
51
+ recorded_at: Tue, 17 Mar 2015 15:25:45 GMT
52
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - Microsoft-IIS/7.5
27
+ X-Aspnet-Version:
28
+ - 4.0.30319
29
+ Cache-Control:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Date:
34
+ - Tue, 17 Mar 2015 12:45:38 GMT
35
+ Expires:
36
+ - "-1"
37
+ Pragma:
38
+ - no-cache
39
+ Set-Cookie:
40
+ - X-Mapping-gbooldlg=DFC7CDDF5472E60DACDF1BDF84C0518B;path=/
41
+ X-Powered-By:
42
+ - ASP.NET
43
+ Content-Length:
44
+ - '182'
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"number_results":0,"results":[],"response":{"response_desc":"Get Successful.","environment":"sandbox"},"links":{"self":"/API/v1/accounts/act_300044/locations/loc_169531/customers"}}'
48
+ http_version:
49
+ recorded_at: Tue, 17 Mar 2015 12:45:38 GMT
50
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - Microsoft-IIS/7.5
27
+ X-Aspnet-Version:
28
+ - 4.0.30319
29
+ Cache-Control:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Date:
34
+ - Tue, 17 Mar 2015 15:24:39 GMT
35
+ Expires:
36
+ - "-1"
37
+ Pragma:
38
+ - no-cache
39
+ Set-Cookie:
40
+ - X-Mapping-gbooldlg=DFC7CDDF5472E60DACDF1BDF84C0518B;path=/
41
+ X-Powered-By:
42
+ - ASP.NET
43
+ Content-Length:
44
+ - '1672'
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"number_results":2,"results":[{"links":{"settlements":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ/settlements","transactions":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ/transactions","paymethods":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ/paymethods","addresses":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ/addresses","self":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_5I5j8RuSCU6kmt3_miCtZQ"},"status":"active","company_name":"","last_name":"","first_name":"Bob","customer_id":"","location_id":"loc_169531","account_id":"act_300044","customer_token":"cst_5I5j8RuSCU6kmt3_miCtZQ"},{"links":{"settlements":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_XDeMYtR1xE2e5mBVOx0q9w/settlements","transactions":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_XDeMYtR1xE2e5mBVOx0q9w/transactions","paymethods":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_XDeMYtR1xE2e5mBVOx0q9w/paymethods","addresses":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_XDeMYtR1xE2e5mBVOx0q9w/addresses","self":"/API/v1/accounts/act_300044/locations/loc_169531/customers/cst_XDeMYtR1xE2e5mBVOx0q9w"},"status":"active","company_name":"","last_name":"","first_name":"Mike","customer_id":"","location_id":"loc_169531","account_id":"act_300044","customer_token":"cst_XDeMYtR1xE2e5mBVOx0q9w"}],"response":{"response_desc":"Get
48
+ Successful.","environment":"sandbox"},"links":{"self":"/API/v1/accounts/act_300044/locations/loc_169531/customers"}}'
49
+ http_version:
50
+ recorded_at: Tue, 17 Mar 2015 15:24:39 GMT
51
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,50 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://c2wL3J074JUdaU5k07HQ6m4BcPpeAY1m:c3wojAimKJ8MVEPYjCVl2qvzjczxXDbe@sandbox.forte.net/api/v1/accounts/act_300044/locations/loc_169531/customers?filter=first_name%20eq%20Mike%20and%20last_name%20eq%20Donnals
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ Accept-Encoding:
13
+ - gzip, deflate
14
+ X-Forte-Auth-Account-Id:
15
+ - act_300044
16
+ Content-Type:
17
+ - application/json
18
+ User-Agent:
19
+ - Ruby
20
+ response:
21
+ status:
22
+ code: 200
23
+ message: OK
24
+ headers:
25
+ Server:
26
+ - Microsoft-IIS/7.5
27
+ X-Aspnet-Version:
28
+ - 4.0.30319
29
+ Cache-Control:
30
+ - no-cache
31
+ Content-Type:
32
+ - application/json; charset=utf-8
33
+ Date:
34
+ - Wed, 18 Mar 2015 13:27:59 GMT
35
+ Expires:
36
+ - "-1"
37
+ Pragma:
38
+ - no-cache
39
+ Set-Cookie:
40
+ - X-Mapping-gbooldlg=DFC7CDDF5472E60DACDF1BDF84C0518B;path=/
41
+ X-Powered-By:
42
+ - ASP.NET
43
+ Content-Length:
44
+ - '233'
45
+ body:
46
+ encoding: UTF-8
47
+ string: '{"number_results":0,"results":[],"response":{"response_desc":"Get Successful.","environment":"sandbox"},"links":{"self":"/API/v1/accounts/act_300044/locations/loc_169531/customers?filter=first_name+eq+Mike+and+last_name+eq+Donnals"}}'
48
+ http_version:
49
+ recorded_at: Wed, 18 Mar 2015 13:28:00 GMT
50
+ recorded_with: VCR 2.9.3