phaxio 2.1.0.pre → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -17
- data/lib/phaxio/client.rb +2 -6
- data/lib/phaxio/config.rb +6 -4
- data/lib/phaxio/resource.rb +11 -5
- data/lib/phaxio/resources/account.rb +1 -1
- data/lib/phaxio/resources/ata.rb +85 -19
- data/lib/phaxio/resources/callback.rb +10 -56
- data/lib/phaxio/resources/fax.rb +11 -11
- data/lib/phaxio/resources/phax_code.rb +2 -2
- data/lib/phaxio/resources/phone_number.rb +31 -5
- data/lib/phaxio/resources/port_number.rb +42 -0
- data/lib/phaxio/resources/port_number_note.rb +51 -0
- data/lib/phaxio/resources/port_order.rb +172 -0
- data/lib/phaxio/resources/public/area_code.rb +1 -1
- data/lib/phaxio/resources/public/country.rb +1 -1
- data/lib/phaxio/resources/webhook.rb +65 -0
- data/lib/phaxio/version.rb +1 -1
- data/lib/phaxio.rb +12 -3
- data/spec/phaxio_spec.rb +7 -1
- data/spec/resources/account_spec.rb +1 -7
- data/spec/resources/ata_spec.rb +207 -0
- data/spec/resources/fax_spec.rb +35 -103
- data/spec/resources/phax_code_spec.rb +10 -44
- data/spec/resources/phone_number_spec.rb +19 -30
- data/spec/resources/port_number_note_spec.rb +33 -0
- data/spec/resources/port_number_spec.rb +32 -0
- data/spec/resources/port_order_spec.rb +76 -0
- data/spec/resources/public/area_code_spec.rb +1 -1
- data/spec/resources/public/country_spec.rb +1 -7
- data/spec/resources/{callback_spec.rb → webhook_spec.rb} +8 -8
- data/spec/spec_helper.rb +1 -0
- data/spec/support/{vcr_cassettes/resources/account/status.yml → cassettes/account/get.yml} +7 -9
- data/spec/support/cassettes/ata/add_phone_number.yml +89 -0
- data/spec/support/{vcr_cassettes/resources/fax/resend.yml → cassettes/ata/create.yml} +12 -13
- data/spec/support/cassettes/ata/delete.yml +86 -0
- data/spec/support/cassettes/ata/get.yml +87 -0
- data/spec/support/cassettes/ata/list.yml +67 -0
- data/spec/support/{vcr_cassettes/resources/phax_code/get_id.yml → cassettes/ata/provisioning_urls.yml} +10 -13
- data/spec/support/cassettes/ata/reference.yml +87 -0
- data/spec/support/cassettes/ata/regenerate.yml +89 -0
- data/spec/support/cassettes/ata/remove_phone_number.yml +130 -0
- data/spec/support/cassettes/ata/update.yml +89 -0
- data/spec/support/{vcr_cassettes/resources/fax/create_for_cancel.yml → cassettes/fax/cancel.yml} +51 -11
- data/spec/support/{vcr_cassettes/resources/fax/create_for_reference.yml → cassettes/fax/create.yml} +11 -13
- data/spec/support/{vcr_cassettes/resources/fax/create.yml → cassettes/fax/delete.yml} +49 -11
- data/spec/support/{vcr_cassettes/resources/fax/create_for_delete.yml → cassettes/fax/delete_file.yml} +49 -11
- data/spec/support/cassettes/fax/file.yml +93 -0
- data/spec/support/{vcr_cassettes/resources/fax/create_for_download_file.yml → cassettes/fax/get.yml} +49 -11
- data/spec/support/{vcr_cassettes/resources → cassettes}/fax/list.yml +5 -7
- data/spec/support/cassettes/fax/reference.yml +88 -0
- data/spec/support/{vcr_cassettes/resources/fax/create_for_delete_file.yml → cassettes/fax/resend.yml} +51 -11
- data/spec/support/{vcr_cassettes/resources → cassettes}/fax/test_receive.yml +7 -9
- data/spec/support/{vcr_cassettes/resources → cassettes}/phax_code/create.yml +8 -10
- data/spec/support/{vcr_cassettes/resources → cassettes}/phax_code/create_png.yml +8 -10
- data/spec/support/cassettes/phax_code/get_by_id.yml +86 -0
- data/spec/support/{vcr_cassettes/resources/phax_code/get.yml → cassettes/phax_code/get_default.yml} +8 -10
- data/spec/support/{vcr_cassettes/resources/phax_code/get_png.yml → cassettes/phax_code/get_default_png.yml} +8 -10
- data/spec/support/cassettes/phax_code/get_png_by_id.yml +90 -0
- data/spec/support/{vcr_cassettes/resources → cassettes}/phone_number/create.yml +8 -10
- data/spec/support/{vcr_cassettes/resources → cassettes}/phone_number/get.yml +10 -12
- data/spec/support/cassettes/phone_number/list.yml +72 -0
- data/spec/support/cassettes/phone_number/reference.yml +45 -0
- data/spec/support/cassettes/phone_number/release.yml +86 -0
- data/spec/support/cassettes/port_number/get.yml +88 -0
- data/spec/support/cassettes/port_number_note/list.yml +88 -0
- data/spec/support/cassettes/port_order/create.yml +48 -0
- data/spec/support/cassettes/port_order/get.yml +91 -0
- data/spec/support/cassettes/port_order/list.yml +52 -0
- data/spec/support/{vcr_cassettes/resources/public/area_codes → cassettes/public/area_code}/list.yml +15 -17
- data/spec/support/{vcr_cassettes/resources → cassettes}/public/country/list.yml +5 -7
- data/spec/support/vcr.rb +24 -6
- metadata +115 -41
- data/spec/support/credentials.rb +0 -7
- data/spec/support/vcr_cassettes/resources/fax/cancel.yml +0 -47
- data/spec/support/vcr_cassettes/resources/fax/create_for_get.yml +0 -50
- data/spec/support/vcr_cassettes/resources/fax/create_for_resend.yml +0 -50
- data/spec/support/vcr_cassettes/resources/fax/delete.yml +0 -45
- data/spec/support/vcr_cassettes/resources/fax/delete_file.yml +0 -45
- data/spec/support/vcr_cassettes/resources/fax/file.yml +0 -50
- data/spec/support/vcr_cassettes/resources/fax/get.yml +0 -45
- data/spec/support/vcr_cassettes/resources/fax/reference.yml +0 -45
- data/spec/support/vcr_cassettes/resources/phax_code/get_id_png.yml +0 -50
- data/spec/support/vcr_cassettes/resources/phone_number/list.yml +0 -60
- data/spec/support/vcr_cassettes/resources/phone_number/release.yml +0 -45
@@ -2,15 +2,15 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: https://api.phaxio.com/v2.1/phone_numbers
|
5
|
+
uri: https://api.phaxio.com/v2.1/phone_numbers/+15558675309
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
|
-
Authorization:
|
11
|
-
- Basic dGVzdC1hcGkta2V5OnRlc3QtYXBpLXNlY3JldA==
|
12
10
|
User-Agent:
|
13
11
|
- Faraday v1.3.0
|
12
|
+
Authorization:
|
13
|
+
- "<AUTH_HEADER>"
|
14
14
|
response:
|
15
15
|
status:
|
16
16
|
code: 200
|
@@ -21,26 +21,24 @@ http_interactions:
|
|
21
21
|
content-type:
|
22
22
|
- application/json; charset=utf-8
|
23
23
|
date:
|
24
|
-
-
|
24
|
+
- Thu, 04 Nov 2021 22:03:26 GMT
|
25
25
|
etag:
|
26
|
-
- W/"
|
26
|
+
- W/"1e6be6d602ea5a2f53aa56f70fd62620"
|
27
27
|
server:
|
28
28
|
- nginx
|
29
29
|
strict-transport-security:
|
30
30
|
- max-age=15768000; preload
|
31
31
|
x-request-id:
|
32
|
-
-
|
32
|
+
- e68e1e81-962f-4586-9ab1-4c96cdb4666d
|
33
33
|
x-robots-tag:
|
34
34
|
- noindex, nofollow, nosnippet, noarchive
|
35
|
-
x-runtime:
|
36
|
-
- '0.024176'
|
37
35
|
content-length:
|
38
|
-
- '
|
36
|
+
- '346'
|
39
37
|
connection:
|
40
38
|
- keep-alive
|
41
39
|
body:
|
42
40
|
encoding: UTF-8
|
43
|
-
string: '{"success":true,"message":"Retrieved user phone numbers successfully","data":{"phone_number":"+
|
44
|
-
|
45
|
-
recorded_at:
|
41
|
+
string: '{"success":true,"message":"Retrieved user phone numbers successfully","data":{"phone_number":"+15558675309","city":"Birmingham,
|
42
|
+
Clanton, Jasper","state":"Alabama","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T18:18:30.000-05:00","provisioned_at":"2021-11-02T18:18:30.000-05:00","callback_url":null,"ata_name":null}}'
|
43
|
+
recorded_at: Thu, 04 Nov 2021 22:04:07 GMT
|
46
44
|
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,72 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.phaxio.com/v2.1/phone_numbers
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.3.0
|
12
|
+
Authorization:
|
13
|
+
- "<AUTH_HEADER>"
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
cache-control:
|
20
|
+
- max-age=0, private, must-revalidate
|
21
|
+
content-type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
date:
|
24
|
+
- Thu, 04 Nov 2021 22:03:27 GMT
|
25
|
+
etag:
|
26
|
+
- W/"dc38c10aaf984fef8aa3fc92bfb27648"
|
27
|
+
server:
|
28
|
+
- nginx
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=15768000; preload
|
31
|
+
x-page:
|
32
|
+
- '1'
|
33
|
+
x-per-page:
|
34
|
+
- '25'
|
35
|
+
x-request-id:
|
36
|
+
- 9c09e359-8afb-4799-9d9f-e388710c9c8d
|
37
|
+
x-robots-tag:
|
38
|
+
- noindex, nofollow, nosnippet, noarchive
|
39
|
+
x-total:
|
40
|
+
- '20'
|
41
|
+
content-length:
|
42
|
+
- '5355'
|
43
|
+
connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"success":true,"message":"Retrieved user phone numbers successfully","data":[{"phone_number":"+12486215381","city":"Farmington
|
48
|
+
Hills, Pontiac, Rochester Hills","state":"Michigan","country":"United States
|
49
|
+
of America","cost":200,"last_billed_at":"2021-11-02T16:56:03.000-05:00","provisioned_at":"2021-11-02T16:56:03.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12182921552","city":"Duluth,
|
50
|
+
Ely, Moorhead","state":"Minnesota","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T17:02:35.000-05:00","provisioned_at":"2021-11-02T17:02:35.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12345256684","city":"Akron,
|
51
|
+
Canton, Youngstown","state":"Ohio","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T17:03:21.000-05:00","provisioned_at":"2021-11-02T17:03:21.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12067526808","city":"Seattle","state":"Washington","country":"United
|
52
|
+
States of America","cost":200,"last_billed_at":"2021-11-02T17:58:51.000-05:00","provisioned_at":"2021-11-02T17:58:51.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12532379299","city":"Kent,
|
53
|
+
Tacoma","state":"Washington","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T17:58:55.000-05:00","provisioned_at":"2021-11-02T17:58:55.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12132869065","city":"Los
|
54
|
+
Angeles","state":"California","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T17:59:46.000-05:00","provisioned_at":"2021-11-02T17:59:46.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12312167979","city":"Grant","state":"Michigan","country":"United
|
55
|
+
States of America","cost":200,"last_billed_at":"2021-11-02T17:59:51.000-05:00","provisioned_at":"2021-11-02T17:59:51.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12182160442","city":"Duluth,
|
56
|
+
Ely, Moorhead","state":"Minnesota","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T17:59:57.000-05:00","provisioned_at":"2021-11-02T17:59:57.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12484686801","city":"Farmington
|
57
|
+
Hills, Pontiac, Rochester Hills","state":"Michigan","country":"United States
|
58
|
+
of America","cost":200,"last_billed_at":"2021-11-02T18:00:05.000-05:00","provisioned_at":"2021-11-02T18:00:05.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12253199511","city":"Baton
|
59
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T18:00:11.000-05:00","provisioned_at":"2021-11-02T18:00:11.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12132798860","city":"Los
|
60
|
+
Angeles","state":"California","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T18:07:34.000-05:00","provisioned_at":"2021-11-02T18:07:34.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12292183848","city":"Albany,
|
61
|
+
Americus, Bainbridge","state":"Georgia","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T18:07:41.000-05:00","provisioned_at":"2021-11-02T18:07:41.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12312168014","city":"Grant","state":"Michigan","country":"United
|
62
|
+
States of America","cost":200,"last_billed_at":"2021-11-02T18:07:47.000-05:00","provisioned_at":"2021-11-02T18:07:47.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12132978187","city":"Los
|
63
|
+
Angeles","state":"California","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T18:07:53.000-05:00","provisioned_at":"2021-11-02T18:07:53.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12243863727","city":"Arlington
|
64
|
+
Heights, Evanston, Skokie","state":"Illinois","country":"United States of
|
65
|
+
America","cost":200,"last_billed_at":"2021-11-02T18:09:28.000-05:00","provisioned_at":"2021-11-02T18:09:28.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12192585085","city":"Gary,
|
66
|
+
Hammond","state":"Indiana","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T18:15:17.000-05:00","provisioned_at":"2021-11-02T18:15:17.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12512353861","city":"Mobile","state":"Alabama","country":"United
|
67
|
+
States of America","cost":200,"last_billed_at":"2021-11-02T18:16:39.000-05:00","provisioned_at":"2021-11-02T18:16:39.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+15558675309","city":"Birmingham,
|
68
|
+
Clanton, Jasper","state":"Alabama","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T18:18:30.000-05:00","provisioned_at":"2021-11-02T18:18:30.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12345256698","city":"Akron,
|
69
|
+
Canton, Youngstown","state":"Ohio","country":"United States of America","cost":200,"last_billed_at":"2021-11-02T18:20:08.000-05:00","provisioned_at":"2021-11-02T18:20:08.000-05:00","callback_url":null,"ata_name":null},{"phone_number":"+12252547769","city":"Baton
|
70
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-11-04T17:03:25.000-05:00","provisioned_at":"2021-11-04T17:03:25.000-05:00","callback_url":null,"ata_name":null}],"paging":{"total":20,"per_page":25,"page":1}}'
|
71
|
+
recorded_at: Thu, 04 Nov 2021 22:04:08 GMT
|
72
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,45 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.phaxio.com/v2.1/phone_numbers/+15558675309
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.9.3
|
12
|
+
Authorization:
|
13
|
+
- "<AUTH_HEADER>"
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
cache-control:
|
20
|
+
- max-age=0, private, must-revalidate
|
21
|
+
content-type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
date:
|
24
|
+
- Wed, 19 Jan 2022 21:48:13 GMT
|
25
|
+
etag:
|
26
|
+
- W/"f835d96d10d4204573115e810eba6ab3"
|
27
|
+
server:
|
28
|
+
- nginx
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=15768000; preload
|
31
|
+
x-request-id:
|
32
|
+
- e0e48b63-aa12-4123-a64f-8d2209bd163d
|
33
|
+
x-robots-tag:
|
34
|
+
- noindex, nofollow, nosnippet, noarchive
|
35
|
+
content-length:
|
36
|
+
- '353'
|
37
|
+
connection:
|
38
|
+
- keep-alive
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"success":true,"message":"Retrieved user phone numbers successfully","data":{"phone_number":"+15558675309","city":"Bossier
|
42
|
+
City, Monroe, Shreveport","state":"Louisiana","country":"United States of
|
43
|
+
America","cost":200,"last_billed_at":"2022-01-01T08:09:37.000-06:00","provisioned_at":"2019-05-01T09:09:37.000-05:00","callback_url":null,"ata_name":null}}'
|
44
|
+
recorded_at: Wed, 19 Jan 2022 21:48:57 GMT
|
45
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.phaxio.com/v2.1/phone_numbers
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: area_code=225&country_code=1
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.3.0
|
12
|
+
Authorization:
|
13
|
+
- "<AUTH_HEADER>"
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
cache-control:
|
22
|
+
- max-age=0, private, must-revalidate
|
23
|
+
content-type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
date:
|
26
|
+
- Thu, 04 Nov 2021 22:03:27 GMT
|
27
|
+
etag:
|
28
|
+
- W/"9063823199f2743468bee03706a1dc4a"
|
29
|
+
server:
|
30
|
+
- nginx
|
31
|
+
strict-transport-security:
|
32
|
+
- max-age=15768000; preload
|
33
|
+
x-request-id:
|
34
|
+
- 25beabbe-f101-4c6e-9fea-d82e1e4dfb98
|
35
|
+
x-robots-tag:
|
36
|
+
- noindex, nofollow, nosnippet, noarchive
|
37
|
+
content-length:
|
38
|
+
- '323'
|
39
|
+
connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"success":true,"message":"Number provisioned successfully!","data":{"phone_number":"+12252554638","city":"Baton
|
44
|
+
Rouge","state":"Louisiana","country":"United States of America","cost":200,"last_billed_at":"2021-11-04T17:03:27.000-05:00","provisioned_at":"2021-11-04T17:03:27.000-05:00","callback_url":null,"ata_name":null}}'
|
45
|
+
recorded_at: Thu, 04 Nov 2021 22:04:08 GMT
|
46
|
+
- request:
|
47
|
+
method: delete
|
48
|
+
uri: https://api.phaxio.com/v2.1/phone_numbers/+12252554638
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
User-Agent:
|
54
|
+
- Faraday v1.3.0
|
55
|
+
Authorization:
|
56
|
+
- "<AUTH_HEADER>"
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 200
|
60
|
+
message: OK
|
61
|
+
headers:
|
62
|
+
cache-control:
|
63
|
+
- max-age=0, private, must-revalidate
|
64
|
+
content-type:
|
65
|
+
- application/json; charset=utf-8
|
66
|
+
date:
|
67
|
+
- Thu, 04 Nov 2021 22:03:28 GMT
|
68
|
+
etag:
|
69
|
+
- W/"72f232a3122ac0559f594e0dc20e2512"
|
70
|
+
server:
|
71
|
+
- nginx
|
72
|
+
strict-transport-security:
|
73
|
+
- max-age=15768000; preload
|
74
|
+
x-request-id:
|
75
|
+
- 8cbe7b06-0c7c-4d8c-9a27-5145b9d204b4
|
76
|
+
x-robots-tag:
|
77
|
+
- noindex, nofollow, nosnippet, noarchive
|
78
|
+
content-length:
|
79
|
+
- '58'
|
80
|
+
connection:
|
81
|
+
- keep-alive
|
82
|
+
body:
|
83
|
+
encoding: UTF-8
|
84
|
+
string: '{"success":true,"message":"Number released successfully!"}'
|
85
|
+
recorded_at: Thu, 04 Nov 2021 22:04:09 GMT
|
86
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.phaxio.com/v2.1/port_orders
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: account_identifier=1234&contact_email=julien%40phaxio.com&contact_number=%2B12055744647&esig=NOT+A+VALID+SIGNATURE&has_bill=true&legal_agreement=true&name_on_account=THIS+IS+A+TEST&port_numbers%5B%5D=%2B12055744647&port_type=residential&provider_name=DO+NOT+PORT+--Julien
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.3.0
|
12
|
+
Authorization:
|
13
|
+
- "<AUTH_HEADER>"
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
cache-control:
|
22
|
+
- max-age=0, private, must-revalidate
|
23
|
+
content-type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
date:
|
26
|
+
- Thu, 04 Nov 2021 22:13:14 GMT
|
27
|
+
etag:
|
28
|
+
- W/"4f8b6dfb2ef697fa7041ee79363059ab"
|
29
|
+
server:
|
30
|
+
- nginx
|
31
|
+
strict-transport-security:
|
32
|
+
- max-age=15768000; preload
|
33
|
+
x-request-id:
|
34
|
+
- be58708e-395c-470a-a0ce-ecc19c46a963
|
35
|
+
x-robots-tag:
|
36
|
+
- noindex, nofollow, nosnippet, noarchive
|
37
|
+
content-length:
|
38
|
+
- '723'
|
39
|
+
connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"success":true,"message":"Port order created","data":{"id":33,"contact_number":"+15558675309","contact_email":"julien@phaxio.com","name_on_account":"THIS
|
44
|
+
IS A TEST","account_identifier":"1234","name_of_business":null,"provider_name":"DO
|
45
|
+
NOT PORT --Julien","port_out_pin":null,"port_type":"residential","billing_number":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_zip":null,"esig":"NOT
|
46
|
+
A VALID SIGNATURE","status":"open","quantity":1,"created_at":"2021-11-04T17:13:14.000-05:00","updated_at":"2021-11-04T17:13:14.000-05:00","completed_at":null,"requested_for":null,"bill_received_at":null,"port_numbers":[{"id":3156,"port_number":"+15558675309","status":"open"}]}}'
|
47
|
+
recorded_at: Thu, 04 Nov 2021 22:13:55 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://api.phaxio.com/v2.1/port_numbers/3156
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v1.3.0
|
57
|
+
Authorization:
|
58
|
+
- "<AUTH_HEADER>"
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
cache-control:
|
65
|
+
- max-age=0, private, must-revalidate
|
66
|
+
content-type:
|
67
|
+
- application/json; charset=utf-8
|
68
|
+
date:
|
69
|
+
- Thu, 04 Nov 2021 22:13:14 GMT
|
70
|
+
etag:
|
71
|
+
- W/"d9744f73713055836424e6144ba7e41b"
|
72
|
+
server:
|
73
|
+
- nginx
|
74
|
+
strict-transport-security:
|
75
|
+
- max-age=15768000; preload
|
76
|
+
x-request-id:
|
77
|
+
- fc68667f-4809-450e-83ae-2fa2a5c9e55c
|
78
|
+
x-robots-tag:
|
79
|
+
- noindex, nofollow, nosnippet, noarchive
|
80
|
+
content-length:
|
81
|
+
- '114'
|
82
|
+
connection:
|
83
|
+
- keep-alive
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: '{"success":true,"message":"Retrieved port number","data":{"id":3156,"port_number":"+15558675309","status":"open"}}'
|
87
|
+
recorded_at: Thu, 04 Nov 2021 22:13:55 GMT
|
88
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,88 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.phaxio.com/v2.1/port_orders
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: account_identifier=1234&contact_email=julien%40phaxio.com&contact_number=%2B12055744647&esig=NOT+A+VALID+SIGNATURE&has_bill=true&legal_agreement=true&name_on_account=THIS+IS+A+TEST&port_numbers%5B%5D=%2B12055744647&port_type=residential&provider_name=DO+NOT+PORT+--Julien
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.3.0
|
12
|
+
Authorization:
|
13
|
+
- "<AUTH_HEADER>"
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
cache-control:
|
22
|
+
- max-age=0, private, must-revalidate
|
23
|
+
content-type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
date:
|
26
|
+
- Thu, 04 Nov 2021 22:17:03 GMT
|
27
|
+
etag:
|
28
|
+
- W/"1d118354805368ddc2166ad622f7e308"
|
29
|
+
server:
|
30
|
+
- nginx
|
31
|
+
strict-transport-security:
|
32
|
+
- max-age=15768000; preload
|
33
|
+
x-request-id:
|
34
|
+
- 164aad27-3dc9-446d-b3c8-ed50d38da8ea
|
35
|
+
x-robots-tag:
|
36
|
+
- noindex, nofollow, nosnippet, noarchive
|
37
|
+
content-length:
|
38
|
+
- '723'
|
39
|
+
connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"success":true,"message":"Port order created","data":{"id":35,"contact_number":"+15558675309","contact_email":"julien@phaxio.com","name_on_account":"THIS
|
44
|
+
IS A TEST","account_identifier":"1234","name_of_business":null,"provider_name":"DO
|
45
|
+
NOT PORT --Julien","port_out_pin":null,"port_type":"residential","billing_number":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_zip":null,"esig":"NOT
|
46
|
+
A VALID SIGNATURE","status":"open","quantity":1,"created_at":"2021-11-04T17:17:03.000-05:00","updated_at":"2021-11-04T17:17:03.000-05:00","completed_at":null,"requested_for":null,"bill_received_at":null,"port_numbers":[{"id":3158,"port_number":"+15558675309","status":"open"}]}}'
|
47
|
+
recorded_at: Thu, 04 Nov 2021 22:17:44 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://api.phaxio.com/v2.1/port_numbers/3158/notes
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v1.3.0
|
57
|
+
Authorization:
|
58
|
+
- "<AUTH_HEADER>"
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
cache-control:
|
65
|
+
- max-age=0, private, must-revalidate
|
66
|
+
content-type:
|
67
|
+
- application/json; charset=utf-8
|
68
|
+
date:
|
69
|
+
- Thu, 04 Nov 2021 22:17:04 GMT
|
70
|
+
etag:
|
71
|
+
- W/"4313698e3ed6046aa9b1fa8cfb1ad613"
|
72
|
+
server:
|
73
|
+
- nginx
|
74
|
+
strict-transport-security:
|
75
|
+
- max-age=15768000; preload
|
76
|
+
x-request-id:
|
77
|
+
- c9480071-2e8b-405f-8ee0-3ade3b717638
|
78
|
+
x-robots-tag:
|
79
|
+
- noindex, nofollow, nosnippet, noarchive
|
80
|
+
content-length:
|
81
|
+
- '66'
|
82
|
+
connection:
|
83
|
+
- keep-alive
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: '{"success":true,"message":"Retrieved port number notes","data":[]}'
|
87
|
+
recorded_at: Thu, 04 Nov 2021 22:17:45 GMT
|
88
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.phaxio.com/v2.1/port_orders
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: account_identifier=1234&contact_email=julien%40phaxio.com&contact_number=%2B12055744647&esig=NOT+A+VALID+SIGNATURE&has_bill=true&legal_agreement=true&name_on_account=THIS+IS+A+TEST&port_numbers%5B%5D=%2B12055744647&port_type=residential&provider_name=DO+NOT+PORT+--Julien
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.3.0
|
12
|
+
Authorization:
|
13
|
+
- "<AUTH_HEADER>"
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
cache-control:
|
22
|
+
- max-age=0, private, must-revalidate
|
23
|
+
content-type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
date:
|
26
|
+
- Thu, 04 Nov 2021 22:07:49 GMT
|
27
|
+
etag:
|
28
|
+
- W/"196ca80cb089b3e53a59697cc5b84f4e"
|
29
|
+
server:
|
30
|
+
- nginx
|
31
|
+
strict-transport-security:
|
32
|
+
- max-age=15768000; preload
|
33
|
+
x-request-id:
|
34
|
+
- 2dca7400-5535-4d5e-82ec-40cc51f5d0e8
|
35
|
+
x-robots-tag:
|
36
|
+
- noindex, nofollow, nosnippet, noarchive
|
37
|
+
transfer-encoding:
|
38
|
+
- chunked
|
39
|
+
connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"success":true,"message":"Port order created","data":{"id":31,"contact_number":"+15558675309","contact_email":"julien@phaxio.com","name_on_account":"THIS
|
44
|
+
IS A TEST","account_identifier":"1234","name_of_business":null,"provider_name":"DO
|
45
|
+
NOT PORT --Julien","port_out_pin":null,"port_type":"residential","billing_number":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_zip":null,"esig":"NOT
|
46
|
+
A VALID SIGNATURE","status":"open","quantity":1,"created_at":"2021-11-04T17:07:49.000-05:00","updated_at":"2021-11-04T17:07:49.000-05:00","completed_at":null,"requested_for":null,"bill_received_at":null,"port_numbers":[{"id":3154,"port_number":"+15558675309","status":"open"}]}}'
|
47
|
+
recorded_at: Thu, 04 Nov 2021 22:08:30 GMT
|
48
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.phaxio.com/v2.1/port_orders
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: account_identifier=1234&contact_email=julien%40phaxio.com&contact_number=%2B12055744647&esig=NOT+A+VALID+SIGNATURE&has_bill=true&legal_agreement=true&name_on_account=THIS+IS+A+TEST&port_numbers%5B%5D=%2B12055744647&port_type=residential&provider_name=DO+NOT+PORT+--Julien
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.3.0
|
12
|
+
Authorization:
|
13
|
+
- "<AUTH_HEADER>"
|
14
|
+
Content-Type:
|
15
|
+
- application/x-www-form-urlencoded
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
cache-control:
|
22
|
+
- max-age=0, private, must-revalidate
|
23
|
+
content-type:
|
24
|
+
- application/json; charset=utf-8
|
25
|
+
date:
|
26
|
+
- Thu, 09 Dec 2021 06:01:57 GMT
|
27
|
+
etag:
|
28
|
+
- W/"aa7fe2de6f0b155f60e2d83607ef5dec"
|
29
|
+
server:
|
30
|
+
- nginx
|
31
|
+
strict-transport-security:
|
32
|
+
- max-age=15768000; preload
|
33
|
+
x-request-id:
|
34
|
+
- 817e4fbd-0066-463b-884f-c4baa5c4f72e
|
35
|
+
x-robots-tag:
|
36
|
+
- noindex, nofollow, nosnippet, noarchive
|
37
|
+
content-length:
|
38
|
+
- '720'
|
39
|
+
connection:
|
40
|
+
- keep-alive
|
41
|
+
body:
|
42
|
+
encoding: UTF-8
|
43
|
+
string: '{"success":true,"message":"Port order created","data":{"id":5,"contact_number":"+15558675309","contact_email":"julien@phaxio.com","name_on_account":"THIS
|
44
|
+
IS A TEST","account_identifier":"1234","name_of_business":null,"provider_name":"DO
|
45
|
+
NOT PORT --Julien","port_out_pin":null,"port_type":"residential","billing_number":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_zip":null,"esig":"NOT
|
46
|
+
A VALID SIGNATURE","status":"open","quantity":1,"created_at":"2021-12-09T00:01:57.000-06:00","updated_at":"2021-12-09T00:01:57.000-06:00","completed_at":null,"requested_for":null,"bill_received_at":null,"port_numbers":[{"id":24,"port_number":"+15558675309","status":"open"}]}}'
|
47
|
+
recorded_at: Thu, 09 Dec 2021 06:02:40 GMT
|
48
|
+
- request:
|
49
|
+
method: get
|
50
|
+
uri: https://api.phaxio.com/v2.1/port_orders/5
|
51
|
+
body:
|
52
|
+
encoding: US-ASCII
|
53
|
+
string: ''
|
54
|
+
headers:
|
55
|
+
User-Agent:
|
56
|
+
- Faraday v1.3.0
|
57
|
+
Authorization:
|
58
|
+
- "<AUTH_HEADER>"
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: OK
|
63
|
+
headers:
|
64
|
+
cache-control:
|
65
|
+
- max-age=0, private, must-revalidate
|
66
|
+
content-type:
|
67
|
+
- application/json; charset=utf-8
|
68
|
+
date:
|
69
|
+
- Thu, 09 Dec 2021 06:01:58 GMT
|
70
|
+
etag:
|
71
|
+
- W/"f23192298953076a6bde9f2ecc02713c"
|
72
|
+
server:
|
73
|
+
- nginx
|
74
|
+
strict-transport-security:
|
75
|
+
- max-age=15768000; preload
|
76
|
+
x-request-id:
|
77
|
+
- 59bc4e06-3b4c-449d-8bf6-c3dc96163e59
|
78
|
+
x-robots-tag:
|
79
|
+
- noindex, nofollow, nosnippet, noarchive
|
80
|
+
content-length:
|
81
|
+
- '722'
|
82
|
+
connection:
|
83
|
+
- keep-alive
|
84
|
+
body:
|
85
|
+
encoding: UTF-8
|
86
|
+
string: '{"success":true,"message":"Retrieved port order","data":{"id":5,"contact_number":"+15558675309","contact_email":"julien@phaxio.com","name_on_account":"THIS
|
87
|
+
IS A TEST","account_identifier":"1234","name_of_business":null,"provider_name":"DO
|
88
|
+
NOT PORT --Julien","port_out_pin":null,"port_type":"residential","billing_number":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_zip":null,"esig":"NOT
|
89
|
+
A VALID SIGNATURE","status":"open","quantity":1,"created_at":"2021-12-09T00:01:57.000-06:00","updated_at":"2021-12-09T00:01:57.000-06:00","completed_at":null,"requested_for":null,"bill_received_at":null,"port_numbers":[{"id":24,"port_number":"+15558675309","status":"open"}]}}'
|
90
|
+
recorded_at: Thu, 09 Dec 2021 06:02:40 GMT
|
91
|
+
recorded_with: VCR 6.0.0
|
@@ -0,0 +1,52 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.phaxio.com/v2.1/port_orders
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v1.3.0
|
12
|
+
Authorization:
|
13
|
+
- "<AUTH_HEADER>"
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 200
|
17
|
+
message: OK
|
18
|
+
headers:
|
19
|
+
cache-control:
|
20
|
+
- max-age=0, private, must-revalidate
|
21
|
+
content-type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
date:
|
24
|
+
- Thu, 09 Dec 2021 06:01:58 GMT
|
25
|
+
etag:
|
26
|
+
- W/"f7a596bf5fb0ee52aaf957813df95e61"
|
27
|
+
server:
|
28
|
+
- nginx
|
29
|
+
strict-transport-security:
|
30
|
+
- max-age=15768000; preload
|
31
|
+
x-page:
|
32
|
+
- '1'
|
33
|
+
x-per-page:
|
34
|
+
- '25'
|
35
|
+
x-request-id:
|
36
|
+
- d04b8dc5-e556-4511-abf5-5b71dbbb3efa
|
37
|
+
x-robots-tag:
|
38
|
+
- noindex, nofollow, nosnippet, noarchive
|
39
|
+
x-total:
|
40
|
+
- '1'
|
41
|
+
content-length:
|
42
|
+
- '782'
|
43
|
+
connection:
|
44
|
+
- keep-alive
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"success":true,"message":"Retrieved port orders successfully","data":[{"id":5,"contact_number":"+15558675309","contact_email":"julien@phaxio.com","name_on_account":"THIS
|
48
|
+
IS A TEST","account_identifier":"1234","name_of_business":null,"provider_name":"DO
|
49
|
+
NOT PORT --Julien","port_out_pin":null,"port_type":"residential","billing_number":null,"billing_address1":null,"billing_address2":null,"billing_city":null,"billing_state":null,"billing_zip":null,"esig":"NOT
|
50
|
+
A VALID SIGNATURE","status":"open","quantity":1,"created_at":"2021-12-09T00:01:57.000-06:00","updated_at":"2021-12-09T00:01:57.000-06:00","completed_at":null,"requested_for":null,"bill_received_at":null,"port_numbers":[{"id":24,"port_number":"+15558675309","status":"open"}]}],"paging":{"total":1,"per_page":25,"page":1}}'
|
51
|
+
recorded_at: Thu, 09 Dec 2021 06:02:41 GMT
|
52
|
+
recorded_with: VCR 6.0.0
|