From e8e0739b3fc7632155088cfe368b8403f0bf75b7 Mon Sep 17 00:00:00 2001 From: Igor Fedoronchuk Date: Wed, 10 Jun 2026 18:41:57 +0200 Subject: [PATCH 1/4] chore(fixtures): refresh meta.api_version to 2026-04-16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Python SDK targets API version 2026-04-16 (declared in client.py), but 28 test fixtures still carried meta.api_version from earlier recorded responses (2021-04-19, 2021-12-15, 2022-05-09, 2022-05-10). Bulk-replace via sed across tests/fixtures/. The SDK code never reads meta.api_version from responses (only sends X-DIDWW-API-Version on the request), so this is purely cosmetic — keeps fixture metadata consistent with the SDK's declared target version. --- tests/fixtures/address_requirement_validations/create.yaml | 2 +- .../fixtures/address_requirement_validations/create_failed.yaml | 2 +- tests/fixtures/address_requirements/list.yaml | 2 +- tests/fixtures/address_requirements/show.yaml | 2 +- tests/fixtures/address_verifications/list.yaml | 2 +- tests/fixtures/address_verifications/show.yaml | 2 +- tests/fixtures/address_verifications/show_rejected.yaml | 2 +- tests/fixtures/address_verifications/show_with_includes.yaml | 2 +- tests/fixtures/addresses/list.yaml | 2 +- tests/fixtures/addresses/show_with_includes.yaml | 2 +- tests/fixtures/areas/list.yaml | 2 +- tests/fixtures/available_dids/show_with_nanpa_prefix.yaml | 2 +- tests/fixtures/cities/list.yaml | 2 +- tests/fixtures/countries/show_with_regions.yaml | 2 +- tests/fixtures/did_groups/list.yaml | 2 +- tests/fixtures/did_groups/show_with_address_requirement.yaml | 2 +- .../dids/show_with_address_verification_and_did_group.yaml | 2 +- tests/fixtures/encrypted_files/show.yaml | 2 +- tests/fixtures/identities/list.yaml | 2 +- tests/fixtures/nanpa_prefixes/list.yaml | 2 +- tests/fixtures/permanent_supporting_documents/create.yaml | 2 +- tests/fixtures/proof_types/list.yaml | 2 +- tests/fixtures/proofs/create.yaml | 2 +- tests/fixtures/supporting_document_templates/list.yaml | 2 +- .../fixtures/voice_out_trunk_regenerate_credentials/create.yaml | 2 +- tests/fixtures/voice_out_trunks/create.yaml | 2 +- tests/fixtures/voice_out_trunks/show.yaml | 2 +- tests/fixtures/voice_out_trunks/update.yaml | 2 +- 28 files changed, 28 insertions(+), 28 deletions(-) diff --git a/tests/fixtures/address_requirement_validations/create.yaml b/tests/fixtures/address_requirement_validations/create.yaml index 1222dda..b074d5d 100644 --- a/tests/fixtures/address_requirement_validations/create.yaml +++ b/tests/fixtures/address_requirement_validations/create.yaml @@ -14,7 +14,7 @@ interactions: body: string: "{\n \"data\": {\n \"id\": \"aea92b24-a044-4864-9740-89d3e15b65c7\"\ ,\n \"type\": \"address_requirement_validations\"\n },\n \"meta\": {\n \"\ - api_version\": \"2021-04-19\"\n }\n}" + api_version\": \"2026-04-16\"\n }\n}" headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_requirement_validations/create_failed.yaml b/tests/fixtures/address_requirement_validations/create_failed.yaml index 70ffa1d..8ccd8a3 100644 --- a/tests/fixtures/address_requirement_validations/create_failed.yaml +++ b/tests/fixtures/address_requirement_validations/create_failed.yaml @@ -21,7 +21,7 @@ interactions: body: string: "{\n \"data\": {\n \"id\": \"aea92b24-a044-4864-9740-89d3e15b65c7\"\ ,\n \"type\": \"address_requirement_validations\"\n },\n \"meta\": {\n \"\ - api_version\": \"2021-04-19\"\n }\n}" + api_version\": \"2026-04-16\"\n }\n}" headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_requirements/list.yaml b/tests/fixtures/address_requirements/list.yaml index 74c2dbe..8e1f685 100644 --- a/tests/fixtures/address_requirements/list.yaml +++ b/tests/fixtures/address_requirements/list.yaml @@ -192,7 +192,7 @@ interactions: links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/address_proof_types\"\ ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/address_proof_types\"\ \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 73,\n \"api_version\": \"2021-04-19\"\n },\n \"links\": {\n \"first\"\ + : 73,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\"\ : \"https://sandbox-api.didww.com/v3/address_requirements?page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ ,\n \"next\": \"https://sandbox-api.didww.com/v3/address_requirements?page%5Bnumber%5D=2&page%5Bsize%5D=5\"\ ,\n \"last\": \"https://sandbox-api.didww.com/v3/address_requirements?page%5Bnumber%5D=15&page%5Bsize%5D=5\"\ diff --git a/tests/fixtures/address_requirements/show.yaml b/tests/fixtures/address_requirements/show.yaml index 5653878..eb174f3 100644 --- a/tests/fixtures/address_requirements/show.yaml +++ b/tests/fixtures/address_requirements/show.yaml @@ -121,7 +121,7 @@ interactions: \ {\n \"id\": \"d2c1b3fb-29f7-46ca-ba82-b617f4630b78\",\n \"type\"\ : \"proof_types\",\n \"attributes\": {\n \"name\": \"Copy of Phone\ \ Bill\",\n \"entity_type\": \"Address\"\n }\n }\n ],\n \"\ - meta\": {\n \"api_version\": \"2021-04-19\"\n }\n}" + meta\": {\n \"api_version\": \"2026-04-16\"\n }\n}" headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_verifications/list.yaml b/tests/fixtures/address_verifications/list.yaml index 103bcbb..2373f68 100644 --- a/tests/fixtures/address_verifications/list.yaml +++ b/tests/fixtures/address_verifications/list.yaml @@ -70,7 +70,7 @@ interactions: \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/proofs\"\ ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/proofs\"\ \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 1,\n \"api_version\": \"2021-04-19\"\n },\n \"links\": {\n \"first\"\ + : 1,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\"\ : \"https://sandbox-api.didww.com/v3/address_verifications?include=address%2Cdids&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ ,\n \"last\": \"https://sandbox-api.didww.com/v3/address_verifications?include=address%2Cdids&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ \n }\n}" diff --git a/tests/fixtures/address_verifications/show.yaml b/tests/fixtures/address_verifications/show.yaml index 5f49370..419eb7f 100644 --- a/tests/fixtures/address_verifications/show.yaml +++ b/tests/fixtures/address_verifications/show.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_verifications/c8e004b0-87ec-4987-b4fb-ee89db099f0e response: body: - string: '{"data":{"id":"c8e004b0-87ec-4987-b4fb-ee89db099f0e","type":"address_verifications","attributes":{"service_description":null,"callback_url":null,"callback_method":null,"status":"approved","reject_reasons":null,"created_at":"2020-09-15T06:38:12.650Z","reference":"SHB-485120"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/c8e004b0-87ec-4987-b4fb-ee89db099f0e/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/c8e004b0-87ec-4987-b4fb-ee89db099f0e/dids"}},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/c8e004b0-87ec-4987-b4fb-ee89db099f0e/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/c8e004b0-87ec-4987-b4fb-ee89db099f0e/address"}}}},"meta":{"api_version":"2022-05-10"}}' + string: '{"data":{"id":"c8e004b0-87ec-4987-b4fb-ee89db099f0e","type":"address_verifications","attributes":{"service_description":null,"callback_url":null,"callback_method":null,"status":"approved","reject_reasons":null,"created_at":"2020-09-15T06:38:12.650Z","reference":"SHB-485120"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/c8e004b0-87ec-4987-b4fb-ee89db099f0e/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/c8e004b0-87ec-4987-b4fb-ee89db099f0e/dids"}},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/c8e004b0-87ec-4987-b4fb-ee89db099f0e/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/c8e004b0-87ec-4987-b4fb-ee89db099f0e/address"}}}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_verifications/show_rejected.yaml b/tests/fixtures/address_verifications/show_rejected.yaml index ea01b79..cf61d68 100644 --- a/tests/fixtures/address_verifications/show_rejected.yaml +++ b/tests/fixtures/address_verifications/show_rejected.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_verifications/429e6d4e-2ee9-4953-aa98-0b3ac07f0f96 response: body: - string: '{"data":{"id":"429e6d4e-2ee9-4953-aa98-0b3ac07f0f96","type":"address_verifications","attributes":{"service_description":null,"callback_url":null,"callback_method":null,"status":"rejected","reject_reasons":["Address cannot be validated","Proof of address should be not older than of 6 months"],"reference":"ODW-879912","created_at":"2020-10-28T08:29:29.960Z"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/429e6d4e-2ee9-4953-aa98-0b3ac07f0f96/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/429e6d4e-2ee9-4953-aa98-0b3ac07f0f96/dids"}},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/429e6d4e-2ee9-4953-aa98-0b3ac07f0f96/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/429e6d4e-2ee9-4953-aa98-0b3ac07f0f96/address"}}}},"meta":{"api_version":"2022-05-10"}}' + string: '{"data":{"id":"429e6d4e-2ee9-4953-aa98-0b3ac07f0f96","type":"address_verifications","attributes":{"service_description":null,"callback_url":null,"callback_method":null,"status":"rejected","reject_reasons":["Address cannot be validated","Proof of address should be not older than of 6 months"],"reference":"ODW-879912","created_at":"2020-10-28T08:29:29.960Z"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/429e6d4e-2ee9-4953-aa98-0b3ac07f0f96/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/429e6d4e-2ee9-4953-aa98-0b3ac07f0f96/dids"}},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/429e6d4e-2ee9-4953-aa98-0b3ac07f0f96/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/429e6d4e-2ee9-4953-aa98-0b3ac07f0f96/address"}}}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_verifications/show_with_includes.yaml b/tests/fixtures/address_verifications/show_with_includes.yaml index 47f7478..1ac9f40 100644 --- a/tests/fixtures/address_verifications/show_with_includes.yaml +++ b/tests/fixtures/address_verifications/show_with_includes.yaml @@ -15,7 +15,7 @@ interactions: string: '{"data":{"id":"75dc8d39-5e17-4470-a6f3-df42642c975f","type":"address_verifications","attributes":{"service_description":"Address verification for DID registration","callback_url":"https://example.com/webhook/callback","callback_method":"post","status":"approved","reject_reasons":null,"reference":"AHB-291174","created_at":"2026-02-27T13:48:55.368Z"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/dids"},"data":[{"type":"dids","id":"21d0b02c-b556-4d3e-acbf-504b78295dbe"}]},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/address"},"data":{"type":"addresses","id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957"}}}},"included":[{"id":"21d0b02c-b556-4d3e-acbf-504b78295dbe","type":"dids","attributes":{"blocked":false,"capacity_limit":null,"description":null,"terminated":false,"awaiting_registration":false,"created_at":"2026-02-25T15:01:06.000Z","billing_cycles_count":null,"number":"61488943592","expires_at":"2026-03-27T13:48:55.974Z","channels_included_count":2,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/order"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/shared_capacity_group"}},"address_verification":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/address_verification","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/address_verification"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/voice_in_trunk_group"}}}},{"id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957","type":"addresses","attributes":{"city_name":"Algiers","postal_code":"16000","address":"42 Rue Didouche Mourad","description":"Main office address","created_at":"2026-02-25T15:16:20.304Z","verified":true},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/identity"},"data":{"type":"identities","id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/proofs"},"data":[{"type":"proofs","id":"5cd00239-f9b5-4f08-9783-fb710eea9189"}]},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/area","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/area"}},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/city","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/city"}}}},{"id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"213555123456","id_number":"BIZ-2026-001","birth_date":null,"company_name":"ACME - Corp","company_reg_number":null,"vat_id":null,"description":"Business identity","personal_tax_id":null,"identity_type":"business","created_at":"2026-02-25T15:16:19.079Z","external_reference_id":"ext-ref-001","verified":true,"contact_email":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/proofs"},"data":[{"type":"proofs","id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27"}]},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/addresses"},"data":[{"type":"addresses","id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957"}]},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/permanent_documents"},"data":[]}}},{"id":"e36a345a-0186-4eb4-85e6-840fed74f49f","type":"countries","attributes":{"name":"Algeria","prefix":"213","iso":"DZ"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/regions"}}}},{"id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:54.800Z","expires_at":"2027-02-27T13:48:56.572Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/entity"}}}},{"id":"5cd00239-f9b5-4f08-9783-fb710eea9189","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:53.911Z","expires_at":"2027-02-27T13:48:56.653Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/entity"}}}}],"meta":{"api_version":"2022-05-10"}}' + Corp","company_reg_number":null,"vat_id":null,"description":"Business identity","personal_tax_id":null,"identity_type":"business","created_at":"2026-02-25T15:16:19.079Z","external_reference_id":"ext-ref-001","verified":true,"contact_email":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/proofs"},"data":[{"type":"proofs","id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27"}]},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/addresses"},"data":[{"type":"addresses","id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957"}]},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/permanent_documents"},"data":[]}}},{"id":"e36a345a-0186-4eb4-85e6-840fed74f49f","type":"countries","attributes":{"name":"Algeria","prefix":"213","iso":"DZ"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/regions"}}}},{"id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:54.800Z","expires_at":"2027-02-27T13:48:56.572Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/entity"}}}},{"id":"5cd00239-f9b5-4f08-9783-fb710eea9189","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:53.911Z","expires_at":"2027-02-27T13:48:56.653Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/entity"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/addresses/list.yaml b/tests/fixtures/addresses/list.yaml index 5535ef3..dbcf663 100644 --- a/tests/fixtures/addresses/list.yaml +++ b/tests/fixtures/addresses/list.yaml @@ -76,7 +76,7 @@ interactions: \ \"self\": \"https://sandbox-api.didww.com/v3/proofs/dd2f5f37-0d08-415d-9530-6488e6eb797b/relationships/entity\"\ ,\n \"related\": \"https://sandbox-api.didww.com/v3/proofs/dd2f5f37-0d08-415d-9530-6488e6eb797b/entity\"\ \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 1,\n \"api_version\": \"2021-04-19\"\n },\n \"links\": {\n \"first\"\ + : 1,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\"\ : \"https://sandbox-api.didww.com/v3/addresses?include=country%2Cidentity%2Cproofs%2Carea%2Ccity&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ ,\n \"last\": \"https://sandbox-api.didww.com/v3/addresses?include=country%2Cidentity%2Cproofs%2Carea%2Ccity&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ \n }\n}" diff --git a/tests/fixtures/addresses/show_with_includes.yaml b/tests/fixtures/addresses/show_with_includes.yaml index 7c24ded..b22d732 100644 --- a/tests/fixtures/addresses/show_with_includes.yaml +++ b/tests/fixtures/addresses/show_with_includes.yaml @@ -14,7 +14,7 @@ interactions: body: string: '{"data":{"id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957","type":"addresses","attributes":{"city_name":"Algiers","postal_code":"16000","address":"42 Rue Didouche Mourad","description":"Main office address","created_at":"2026-02-25T15:16:20.304Z","verified":true},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/identity"},"data":{"type":"identities","id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/proofs"},"data":[{"type":"proofs","id":"5cd00239-f9b5-4f08-9783-fb710eea9189"}]},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/area","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/area"},"data":null},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/city","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/city"},"data":null}}},"included":[{"id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"213555123456","id_number":"BIZ-2026-001","birth_date":null,"company_name":"ACME - Corp","company_reg_number":null,"vat_id":null,"description":"Business identity","personal_tax_id":null,"identity_type":"business","created_at":"2026-02-25T15:16:19.079Z","external_reference_id":"ext-ref-001","verified":true,"contact_email":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/proofs"},"data":[{"type":"proofs","id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27"}]},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/addresses"},"data":[{"type":"addresses","id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957"}]},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/permanent_documents"},"data":[]}}},{"id":"e36a345a-0186-4eb4-85e6-840fed74f49f","type":"countries","attributes":{"name":"Algeria","prefix":"213","iso":"DZ"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/regions"}}}},{"id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:54.800Z","expires_at":"2027-02-27T13:48:56.572Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/entity"}}}},{"id":"5cd00239-f9b5-4f08-9783-fb710eea9189","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:53.911Z","expires_at":"2027-02-27T13:48:56.653Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/entity"}}}}],"meta":{"api_version":"2022-05-10"}}' + Corp","company_reg_number":null,"vat_id":null,"description":"Business identity","personal_tax_id":null,"identity_type":"business","created_at":"2026-02-25T15:16:19.079Z","external_reference_id":"ext-ref-001","verified":true,"contact_email":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/proofs"},"data":[{"type":"proofs","id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27"}]},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/addresses"},"data":[{"type":"addresses","id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957"}]},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/permanent_documents"},"data":[]}}},{"id":"e36a345a-0186-4eb4-85e6-840fed74f49f","type":"countries","attributes":{"name":"Algeria","prefix":"213","iso":"DZ"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/regions"}}}},{"id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:54.800Z","expires_at":"2027-02-27T13:48:56.572Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/entity"}}}},{"id":"5cd00239-f9b5-4f08-9783-fb710eea9189","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:53.911Z","expires_at":"2027-02-27T13:48:56.653Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/entity"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/areas/list.yaml b/tests/fixtures/areas/list.yaml index 39625bf..ea7e58d 100644 --- a/tests/fixtures/areas/list.yaml +++ b/tests/fixtures/areas/list.yaml @@ -651,7 +651,7 @@ interactions: : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/90625ddb-5813-489b-8a8b-dfb98418b4c7/relationships/country\"\ ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/90625ddb-5813-489b-8a8b-dfb98418b4c7/country\"\ \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 127,\n \"api_version\": \"2021-04-19\"\n },\n \"links\": {\n \"\ + : 127,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"\ first\": \"https://sandbox-api.didww.com/v3/areas?page%5Bnumber%5D=1&page%5Bsize%5D=1000\"\ ,\n \"last\": \"https://sandbox-api.didww.com/v3/areas?page%5Bnumber%5D=1&page%5Bsize%5D=1000\"\ \n }\n}" diff --git a/tests/fixtures/available_dids/show_with_nanpa_prefix.yaml b/tests/fixtures/available_dids/show_with_nanpa_prefix.yaml index 9579a63..be61f84 100644 --- a/tests/fixtures/available_dids/show_with_nanpa_prefix.yaml +++ b/tests/fixtures/available_dids/show_with_nanpa_prefix.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/available_dids/0e1c548e-c6b5-43b0-9c12-2e300178e820 response: body: - string: '{"data":{"id":"0e1c548e-c6b5-43b0-9c12-2e300178e820","type":"available_dids","attributes":{"number":"12012213879"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/0e1c548e-c6b5-43b0-9c12-2e300178e820/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/0e1c548e-c6b5-43b0-9c12-2e300178e820/did_group"}},"nanpa_prefix":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/0e1c548e-c6b5-43b0-9c12-2e300178e820/relationships/nanpa_prefix","related":"https://sandbox-api.didww.com/v3/available_dids/0e1c548e-c6b5-43b0-9c12-2e300178e820/nanpa_prefix"},"data":{"type":"nanpa_prefixes","id":"1e622e21-c740-4d3f-a615-2a7ef4991922"}}}},"included":[{"id":"1e622e21-c740-4d3f-a615-2a7ef4991922","type":"nanpa_prefixes","attributes":{"npa":"201","nxx":"221"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/relationships/country","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/relationships/region","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/region"}}}}],"meta":{"api_version":"2022-05-10"}}' + string: '{"data":{"id":"0e1c548e-c6b5-43b0-9c12-2e300178e820","type":"available_dids","attributes":{"number":"12012213879"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/0e1c548e-c6b5-43b0-9c12-2e300178e820/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/0e1c548e-c6b5-43b0-9c12-2e300178e820/did_group"}},"nanpa_prefix":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/0e1c548e-c6b5-43b0-9c12-2e300178e820/relationships/nanpa_prefix","related":"https://sandbox-api.didww.com/v3/available_dids/0e1c548e-c6b5-43b0-9c12-2e300178e820/nanpa_prefix"},"data":{"type":"nanpa_prefixes","id":"1e622e21-c740-4d3f-a615-2a7ef4991922"}}}},"included":[{"id":"1e622e21-c740-4d3f-a615-2a7ef4991922","type":"nanpa_prefixes","attributes":{"npa":"201","nxx":"221"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/relationships/country","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/relationships/region","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/region"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/cities/list.yaml b/tests/fixtures/cities/list.yaml index 6fd5408..0ba8c10 100644 --- a/tests/fixtures/cities/list.yaml +++ b/tests/fixtures/cities/list.yaml @@ -123,7 +123,7 @@ interactions: \ \"self\": \"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/relationships/area\"\ ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/area\"\ \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 1647,\n \"api_version\": \"2021-04-19\"\n },\n \"links\": {\n \"\ + : 1647,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"\ first\": \"https://sandbox-api.didww.com/v3/cities?page%5Bnumber%5D=1&page%5Bsize%5D=10\"\ ,\n \"next\": \"https://sandbox-api.didww.com/v3/cities?page%5Bnumber%5D=2&page%5Bsize%5D=10\"\ ,\n \"last\": \"https://sandbox-api.didww.com/v3/cities?page%5Bnumber%5D=165&page%5Bsize%5D=10\"\ diff --git a/tests/fixtures/countries/show_with_regions.yaml b/tests/fixtures/countries/show_with_regions.yaml index 4127368..3bced17 100644 --- a/tests/fixtures/countries/show_with_regions.yaml +++ b/tests/fixtures/countries/show_with_regions.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/countries/661d8448-8897-4765-acda-00cc1740148d response: body: - string: '{"data":{"id":"661d8448-8897-4765-acda-00cc1740148d","type":"countries","attributes":{"name":"Lithuania","prefix":"370","iso":"LT"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/661d8448-8897-4765-acda-00cc1740148d/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/661d8448-8897-4765-acda-00cc1740148d/regions"},"data":[{"type":"regions","id":"00b4739a-7cb4-4ac0-832d-e074e298c27f"},{"type":"regions","id":"6ac34979-7b01-4d29-8660-4e4b4f88b4a5"},{"type":"regions","id":"5fe68f2c-59ea-4c95-9321-133155d19575"},{"type":"regions","id":"01bb5f69-548d-4f1d-8d12-1dd0278684e2"},{"type":"regions","id":"d17564b9-ab83-401f-b809-5aad610f7901"},{"type":"regions","id":"81e23da7-6141-40dc-8748-9cf95c67efb2"},{"type":"regions","id":"ebdef6ee-1d69-48ee-98c4-035fb4b616bc"},{"type":"regions","id":"cf097040-18fc-4fd6-ac5d-f04bd118629b"},{"type":"regions","id":"5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3"},{"type":"regions","id":"7bbb4150-8144-468f-8edf-a321ca8b2a90"}]}}},"included":[{"id":"00b4739a-7cb4-4ac0-832d-e074e298c27f","type":"regions","attributes":{"name":"Alytaus Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/00b4739a-7cb4-4ac0-832d-e074e298c27f/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/00b4739a-7cb4-4ac0-832d-e074e298c27f/country"}}}},{"id":"6ac34979-7b01-4d29-8660-4e4b4f88b4a5","type":"regions","attributes":{"name":"Klaip\u0117dos Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/6ac34979-7b01-4d29-8660-4e4b4f88b4a5/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/6ac34979-7b01-4d29-8660-4e4b4f88b4a5/country"}}}},{"id":"5fe68f2c-59ea-4c95-9321-133155d19575","type":"regions","attributes":{"name":"Kauno Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/5fe68f2c-59ea-4c95-9321-133155d19575/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/5fe68f2c-59ea-4c95-9321-133155d19575/country"}}}},{"id":"01bb5f69-548d-4f1d-8d12-1dd0278684e2","type":"regions","attributes":{"name":"Marijampol\u0117s Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/01bb5f69-548d-4f1d-8d12-1dd0278684e2/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/01bb5f69-548d-4f1d-8d12-1dd0278684e2/country"}}}},{"id":"d17564b9-ab83-401f-b809-5aad610f7901","type":"regions","attributes":{"name":"Panev\u0117\u017eio Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/d17564b9-ab83-401f-b809-5aad610f7901/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/d17564b9-ab83-401f-b809-5aad610f7901/country"}}}},{"id":"81e23da7-6141-40dc-8748-9cf95c67efb2","type":"regions","attributes":{"name":"\u0160iauli\u0173 Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/81e23da7-6141-40dc-8748-9cf95c67efb2/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/81e23da7-6141-40dc-8748-9cf95c67efb2/country"}}}},{"id":"ebdef6ee-1d69-48ee-98c4-035fb4b616bc","type":"regions","attributes":{"name":"Taurag\u00e9s Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/ebdef6ee-1d69-48ee-98c4-035fb4b616bc/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/ebdef6ee-1d69-48ee-98c4-035fb4b616bc/country"}}}},{"id":"cf097040-18fc-4fd6-ac5d-f04bd118629b","type":"regions","attributes":{"name":"Tel\u0161i\u0173 Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/cf097040-18fc-4fd6-ac5d-f04bd118629b/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/cf097040-18fc-4fd6-ac5d-f04bd118629b/country"}}}},{"id":"5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3","type":"regions","attributes":{"name":"Utenos Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3/country"}}}},{"id":"7bbb4150-8144-468f-8edf-a321ca8b2a90","type":"regions","attributes":{"name":"Vilniaus Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/7bbb4150-8144-468f-8edf-a321ca8b2a90/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/7bbb4150-8144-468f-8edf-a321ca8b2a90/country"}}}}],"meta":{"api_version":"2022-05-10"}}' + string: '{"data":{"id":"661d8448-8897-4765-acda-00cc1740148d","type":"countries","attributes":{"name":"Lithuania","prefix":"370","iso":"LT"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/661d8448-8897-4765-acda-00cc1740148d/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/661d8448-8897-4765-acda-00cc1740148d/regions"},"data":[{"type":"regions","id":"00b4739a-7cb4-4ac0-832d-e074e298c27f"},{"type":"regions","id":"6ac34979-7b01-4d29-8660-4e4b4f88b4a5"},{"type":"regions","id":"5fe68f2c-59ea-4c95-9321-133155d19575"},{"type":"regions","id":"01bb5f69-548d-4f1d-8d12-1dd0278684e2"},{"type":"regions","id":"d17564b9-ab83-401f-b809-5aad610f7901"},{"type":"regions","id":"81e23da7-6141-40dc-8748-9cf95c67efb2"},{"type":"regions","id":"ebdef6ee-1d69-48ee-98c4-035fb4b616bc"},{"type":"regions","id":"cf097040-18fc-4fd6-ac5d-f04bd118629b"},{"type":"regions","id":"5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3"},{"type":"regions","id":"7bbb4150-8144-468f-8edf-a321ca8b2a90"}]}}},"included":[{"id":"00b4739a-7cb4-4ac0-832d-e074e298c27f","type":"regions","attributes":{"name":"Alytaus Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/00b4739a-7cb4-4ac0-832d-e074e298c27f/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/00b4739a-7cb4-4ac0-832d-e074e298c27f/country"}}}},{"id":"6ac34979-7b01-4d29-8660-4e4b4f88b4a5","type":"regions","attributes":{"name":"Klaip\u0117dos Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/6ac34979-7b01-4d29-8660-4e4b4f88b4a5/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/6ac34979-7b01-4d29-8660-4e4b4f88b4a5/country"}}}},{"id":"5fe68f2c-59ea-4c95-9321-133155d19575","type":"regions","attributes":{"name":"Kauno Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/5fe68f2c-59ea-4c95-9321-133155d19575/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/5fe68f2c-59ea-4c95-9321-133155d19575/country"}}}},{"id":"01bb5f69-548d-4f1d-8d12-1dd0278684e2","type":"regions","attributes":{"name":"Marijampol\u0117s Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/01bb5f69-548d-4f1d-8d12-1dd0278684e2/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/01bb5f69-548d-4f1d-8d12-1dd0278684e2/country"}}}},{"id":"d17564b9-ab83-401f-b809-5aad610f7901","type":"regions","attributes":{"name":"Panev\u0117\u017eio Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/d17564b9-ab83-401f-b809-5aad610f7901/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/d17564b9-ab83-401f-b809-5aad610f7901/country"}}}},{"id":"81e23da7-6141-40dc-8748-9cf95c67efb2","type":"regions","attributes":{"name":"\u0160iauli\u0173 Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/81e23da7-6141-40dc-8748-9cf95c67efb2/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/81e23da7-6141-40dc-8748-9cf95c67efb2/country"}}}},{"id":"ebdef6ee-1d69-48ee-98c4-035fb4b616bc","type":"regions","attributes":{"name":"Taurag\u00e9s Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/ebdef6ee-1d69-48ee-98c4-035fb4b616bc/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/ebdef6ee-1d69-48ee-98c4-035fb4b616bc/country"}}}},{"id":"cf097040-18fc-4fd6-ac5d-f04bd118629b","type":"regions","attributes":{"name":"Tel\u0161i\u0173 Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/cf097040-18fc-4fd6-ac5d-f04bd118629b/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/cf097040-18fc-4fd6-ac5d-f04bd118629b/country"}}}},{"id":"5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3","type":"regions","attributes":{"name":"Utenos Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3/country"}}}},{"id":"7bbb4150-8144-468f-8edf-a321ca8b2a90","type":"regions","attributes":{"name":"Vilniaus Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/7bbb4150-8144-468f-8edf-a321ca8b2a90/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/7bbb4150-8144-468f-8edf-a321ca8b2a90/country"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/did_groups/list.yaml b/tests/fixtures/did_groups/list.yaml index 0aa0779..2d4560f 100644 --- a/tests/fixtures/did_groups/list.yaml +++ b/tests/fixtures/did_groups/list.yaml @@ -38,7 +38,7 @@ interactions: \n }\n }\n },\n \"meta\": {\n \"available_dids_enabled\"\ : false,\n \"needs_registration\": false,\n \"is_available\"\ : true,\n \"total_count\": 1\n }\n }\n ],\n \"meta\": {\n\ - \ \"total_records\": 1,\n \"api_version\": \"2022-05-09\"\n },\n \"\ + \ \"total_records\": 1,\n \"api_version\": \"2026-04-16\"\n },\n \"\ links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/did_groups?filter%5Bnanpa_prefix.id%5D=eeed293b-f3d8-4ef8-91ef-1b077d174b3b&page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ ,\n \"last\": \"https://sandbox-api.didww.com/v3/did_groups?filter%5Bnanpa_prefix.id%5D=eeed293b-f3d8-4ef8-91ef-1b077d174b3b&page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ \n }\n}" diff --git a/tests/fixtures/did_groups/show_with_address_requirement.yaml b/tests/fixtures/did_groups/show_with_address_requirement.yaml index aac2fae..393614d 100644 --- a/tests/fixtures/did_groups/show_with_address_requirement.yaml +++ b/tests/fixtures/did_groups/show_with_address_requirement.yaml @@ -48,7 +48,7 @@ interactions: : 0,\n \"address_proof_qty\": 0,\n \"personal_mandatory_fields\"\ : [],\n \"business_mandatory_fields\": [],\n \"service_description_required\"\ : false,\n \"restriction_message\": null\n }\n }\n ],\n \"\ - meta\": {\n \"api_version\": \"2022-05-09\"\n }\n}" + meta\": {\n \"api_version\": \"2026-04-16\"\n }\n}" headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/dids/show_with_address_verification_and_did_group.yaml b/tests/fixtures/dids/show_with_address_verification_and_did_group.yaml index a2a4861..a78bbdf 100644 --- a/tests/fixtures/dids/show_with_address_verification_and_did_group.yaml +++ b/tests/fixtures/dids/show_with_address_verification_and_did_group.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe response: body: - string: '{"data":{"id":"21d0b02c-b556-4d3e-acbf-504b78295dbe","type":"dids","attributes":{"blocked":false,"capacity_limit":null,"description":null,"terminated":false,"awaiting_registration":false,"created_at":"2026-02-25T15:01:06.000Z","billing_cycles_count":null,"number":"61488943592","expires_at":"2026-03-27T13:48:55.974Z","channels_included_count":2,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/did_group"},"data":{"type":"did_groups","id":"2b60bb9a-d382-4d35-84c6-61689f45f2f5"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/order"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/shared_capacity_group"}},"address_verification":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/address_verification","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/address_verification"},"data":{"type":"address_verifications","id":"75dc8d39-5e17-4470-a6f3-df42642c975f"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/voice_in_trunk_group"}}}},"included":[{"id":"2b60bb9a-d382-4d35-84c6-61689f45f2f5","type":"did_groups","attributes":{"prefix":"4","features":["voice_in","voice_out","sms_in","sms_out","t38"],"is_metered":false,"area_name":"Mobile","allow_additional_channels":false},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/country","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/country"}},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/city","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/city"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/did_group_type"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/region","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/region"}},"stock_keeping_units":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/stock_keeping_units","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/stock_keeping_units"}},"requirement":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/requirement","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/requirement"}}},"meta":{"available_dids_enabled":true,"needs_registration":true,"is_available":true,"total_count":500}},{"id":"75dc8d39-5e17-4470-a6f3-df42642c975f","type":"address_verifications","attributes":{"service_description":"Address verification for registration 01kjan2paw2wfqndqdkd2m3hyc","callback_url":"https://example.com/webhook/callback","callback_method":"post","status":"approved","reject_reasons":null,"reference":"AHB-291174","created_at":"2026-02-27T13:48:55.368Z"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/dids"}},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/address"}}}}],"meta":{"api_version":"2022-05-10"}}' + string: '{"data":{"id":"21d0b02c-b556-4d3e-acbf-504b78295dbe","type":"dids","attributes":{"blocked":false,"capacity_limit":null,"description":null,"terminated":false,"awaiting_registration":false,"created_at":"2026-02-25T15:01:06.000Z","billing_cycles_count":null,"number":"61488943592","expires_at":"2026-03-27T13:48:55.974Z","channels_included_count":2,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/did_group"},"data":{"type":"did_groups","id":"2b60bb9a-d382-4d35-84c6-61689f45f2f5"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/order"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/shared_capacity_group"}},"address_verification":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/address_verification","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/address_verification"},"data":{"type":"address_verifications","id":"75dc8d39-5e17-4470-a6f3-df42642c975f"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/voice_in_trunk_group"}}}},"included":[{"id":"2b60bb9a-d382-4d35-84c6-61689f45f2f5","type":"did_groups","attributes":{"prefix":"4","features":["voice_in","voice_out","sms_in","sms_out","t38"],"is_metered":false,"area_name":"Mobile","allow_additional_channels":false},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/country","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/country"}},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/city","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/city"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/did_group_type"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/region","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/region"}},"stock_keeping_units":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/stock_keeping_units","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/stock_keeping_units"}},"requirement":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/relationships/requirement","related":"https://sandbox-api.didww.com/v3/did_groups/2b60bb9a-d382-4d35-84c6-61689f45f2f5/requirement"}}},"meta":{"available_dids_enabled":true,"needs_registration":true,"is_available":true,"total_count":500}},{"id":"75dc8d39-5e17-4470-a6f3-df42642c975f","type":"address_verifications","attributes":{"service_description":"Address verification for registration 01kjan2paw2wfqndqdkd2m3hyc","callback_url":"https://example.com/webhook/callback","callback_method":"post","status":"approved","reject_reasons":null,"reference":"AHB-291174","created_at":"2026-02-27T13:48:55.368Z"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/dids"}},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/address"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/encrypted_files/show.yaml b/tests/fixtures/encrypted_files/show.yaml index 1960fad..ac92ab3 100644 --- a/tests/fixtures/encrypted_files/show.yaml +++ b/tests/fixtures/encrypted_files/show.yaml @@ -15,7 +15,7 @@ interactions: string: "{\n \"data\": {\n \"id\": \"6eed102c-66a9-4a9b-a95f-4312d70ec12a\"\ ,\n \"type\": \"encrypted_files\",\n \"attributes\": {\n \"description\"\ : \"some description\",\n \"expires_at\": \"2021-04-06T16:38:34.396Z\"\ - \n }\n },\n \"meta\": {\n \"api_version\": \"2021-04-19\"\n }\n}" + \n }\n },\n \"meta\": {\n \"api_version\": \"2026-04-16\"\n }\n}" headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/identities/list.yaml b/tests/fixtures/identities/list.yaml index 9a954b1..881bab4 100644 --- a/tests/fixtures/identities/list.yaml +++ b/tests/fixtures/identities/list.yaml @@ -82,7 +82,7 @@ interactions: \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/proofs\"\ ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/proofs\"\ \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 2,\n \"api_version\": \"2021-04-19\"\n },\n \"links\": {\n \"first\"\ + : 2,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\"\ : \"https://sandbox-api.didww.com/v3/identities?include=country%2Caddresses%2Cproofs%2Cpermanent_documents&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ ,\n \"last\": \"https://sandbox-api.didww.com/v3/identities?include=country%2Caddresses%2Cproofs%2Cpermanent_documents&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ \n }\n}" diff --git a/tests/fixtures/nanpa_prefixes/list.yaml b/tests/fixtures/nanpa_prefixes/list.yaml index f7cc58a..d1a0c25 100644 --- a/tests/fixtures/nanpa_prefixes/list.yaml +++ b/tests/fixtures/nanpa_prefixes/list.yaml @@ -31,7 +31,7 @@ interactions: \ \"self\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98/relationships/region\"\ ,\n \"related\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98/region\"\ \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 2,\n \"api_version\": \"2022-05-09\"\n },\n \"links\": {\n \"first\"\ + : 2,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\"\ : \"https://sandbox-api.didww.com/v3/nanpa_prefixes?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ ,\n \"last\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ \n }\n}" diff --git a/tests/fixtures/permanent_supporting_documents/create.yaml b/tests/fixtures/permanent_supporting_documents/create.yaml index aceeb80..ec2d543 100644 --- a/tests/fixtures/permanent_supporting_documents/create.yaml +++ b/tests/fixtures/permanent_supporting_documents/create.yaml @@ -26,7 +26,7 @@ interactions: : \"4199435f-646e-4e9d-a143-8f3b972b10c5\",\n \"type\": \"supporting_document_templates\"\ ,\n \"attributes\": {\n \"name\": \"Germany Special Registration\ \ Form\",\n \"permanent\": true,\n \"url\": \"https://sandbox-api.didww.com/storage/public/4rghqnqtba0fa7mbdgig086xej1e\"\ - \n }\n }\n ],\n \"meta\": {\n \"api_version\": \"2021-04-19\"\ + \n }\n }\n ],\n \"meta\": {\n \"api_version\": \"2026-04-16\"\ \n }\n}" headers: Content-Type: diff --git a/tests/fixtures/proof_types/list.yaml b/tests/fixtures/proof_types/list.yaml index 399058f..71095f5 100644 --- a/tests/fixtures/proof_types/list.yaml +++ b/tests/fixtures/proof_types/list.yaml @@ -27,7 +27,7 @@ interactions: d2c1b3fb-29f7-46ca-ba82-b617f4630b78\",\n \"type\": \"proof_types\",\n\ \ \"attributes\": {\n \"name\": \"Copy of Phone Bill\",\n \ \ \"entity_type\": \"Address\"\n }\n }\n ],\n \"meta\": {\n \ - \ \"total_records\": 17,\n \"api_version\": \"2021-04-19\"\n },\n \"\ + \ \"total_records\": 17,\n \"api_version\": \"2026-04-16\"\n },\n \"\ links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/proof_types?page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ ,\n \"next\": \"https://sandbox-api.didww.com/v3/proof_types?page%5Bnumber%5D=2&page%5Bsize%5D=5\"\ ,\n \"last\": \"https://sandbox-api.didww.com/v3/proof_types?page%5Bnumber%5D=4&page%5Bsize%5D=5\"\ diff --git a/tests/fixtures/proofs/create.yaml b/tests/fixtures/proofs/create.yaml index d5dbccb..5cde1c3 100644 --- a/tests/fixtures/proofs/create.yaml +++ b/tests/fixtures/proofs/create.yaml @@ -27,7 +27,7 @@ interactions: : \"19cd7b22-559b-41d4-99c9-7ad7ad63d5d1\",\n \"type\": \"proof_types\"\ ,\n \"attributes\": {\n \"name\": \"Drivers License\",\n \ \ \"entity_type\": \"personal\"\n }\n }\n ],\n \"meta\": {\n \ - \ \"api_version\": \"2021-04-19\"\n }\n}" + \ \"api_version\": \"2026-04-16\"\n }\n}" headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/supporting_document_templates/list.yaml b/tests/fixtures/supporting_document_templates/list.yaml index d20143b..294c352 100644 --- a/tests/fixtures/supporting_document_templates/list.yaml +++ b/tests/fixtures/supporting_document_templates/list.yaml @@ -33,7 +33,7 @@ interactions: : {\n \"name\": \"TestPermanDoc\",\n \"permanent\": true,\n\ \ \"url\": \"https://sandbox-api.didww.com/storage/public/owwqi77007ks4qx198b7su3eukg6\"\ \n }\n }\n ],\n \"meta\": {\n \"total_records\": 30,\n \"\ - api_version\": \"2021-04-19\"\n },\n \"links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/supporting_document_templates?page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ + api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/supporting_document_templates?page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ ,\n \"next\": \"https://sandbox-api.didww.com/v3/supporting_document_templates?page%5Bnumber%5D=2&page%5Bsize%5D=5\"\ ,\n \"last\": \"https://sandbox-api.didww.com/v3/supporting_document_templates?page%5Bnumber%5D=6&page%5Bsize%5D=5\"\ \n }\n}" diff --git a/tests/fixtures/voice_out_trunk_regenerate_credentials/create.yaml b/tests/fixtures/voice_out_trunk_regenerate_credentials/create.yaml index 9908020..b01c1c4 100644 --- a/tests/fixtures/voice_out_trunk_regenerate_credentials/create.yaml +++ b/tests/fixtures/voice_out_trunk_regenerate_credentials/create.yaml @@ -14,7 +14,7 @@ interactions: body: string: "{\n \"data\": {\n \"id\": \"5fc59e7e-79eb-498a-8779-800416b5c68a\"\ ,\n \"type\": \"voice_out_trunk_regenerate_credentials\"\n },\n \"meta\"\ - : {\n \"api_version\": \"2021-12-15\"\n }\n}" + : {\n \"api_version\": \"2026-04-16\"\n }\n}" headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunks/create.yaml b/tests/fixtures/voice_out_trunks/create.yaml index 0a035c2..fd82292 100644 --- a/tests/fixtures/voice_out_trunks/create.yaml +++ b/tests/fixtures/voice_out_trunks/create.yaml @@ -28,7 +28,7 @@ interactions: "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/b60201c1-21f0-4d9a-aafa-0e6d1e12f22e/default_did"}}, "dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/b60201c1-21f0-4d9a-aafa-0e6d1e12f22e/relationships/dids", "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/b60201c1-21f0-4d9a-aafa-0e6d1e12f22e/dids"}}}, - "meta": {"spent_amount": "0.0"}}, "meta": {"api_version": "2021-12-15"}}' + "meta": {"spent_amount": "0.0"}}, "meta": {"api_version": "2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunks/show.yaml b/tests/fixtures/voice_out_trunks/show.yaml index 329408f..5fa6393 100644 --- a/tests/fixtures/voice_out_trunks/show.yaml +++ b/tests/fixtures/voice_out_trunks/show.yaml @@ -67,7 +67,7 @@ interactions: "related": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/voice_in_trunk"}}, "voice_in_trunk_group": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/voice_in_trunk_group", "related": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/voice_in_trunk_group"}}}}], - "meta": {"api_version": "2021-12-15"}}' + "meta": {"api_version": "2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunks/update.yaml b/tests/fixtures/voice_out_trunks/update.yaml index 75e3d94..9cf890c 100644 --- a/tests/fixtures/voice_out_trunks/update.yaml +++ b/tests/fixtures/voice_out_trunks/update.yaml @@ -25,7 +25,7 @@ interactions: "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/default_did"}}, "dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/dids", "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/dids"}}}, - "meta": {"spent_amount": "0.0"}}, "meta": {"api_version": "2021-12-15"}}' + "meta": {"spent_amount": "0.0"}}, "meta": {"api_version": "2026-04-16"}}' headers: Content-Type: - application/vnd.api+json From c1f70920fc70d58a4d2821c38a393a38493397ad Mon Sep 17 00:00:00 2001 From: Igor Fedoronchuk Date: Fri, 12 Jun 2026 10:44:12 +0200 Subject: [PATCH 2/4] fix(fixtures): refresh api_version values missed due to YAML line folding --- tests/fixtures/nanpa_prefixes/show.yaml | 2 +- tests/fixtures/nanpa_prefixes/show_with_region.yaml | 2 +- tests/fixtures/orders/create_nanpa.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/fixtures/nanpa_prefixes/show.yaml b/tests/fixtures/nanpa_prefixes/show.yaml index f5a7d2b..6dedb0c 100644 --- a/tests/fixtures/nanpa_prefixes/show.yaml +++ b/tests/fixtures/nanpa_prefixes/show.yaml @@ -30,7 +30,7 @@ interactions: : \"https://sandbox-api.didww.com/v3/countries/e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1/relationships/regions\"\ ,\n \"related\": \"https://sandbox-api.didww.com/v3/countries/e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1/regions\"\ \n }\n }\n }\n }\n ],\n \"meta\": {\n \"api_version\"\ - : \"2022-05-09\"\n }\n}" + : \"2026-04-16\"\n }\n}" headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/nanpa_prefixes/show_with_region.yaml b/tests/fixtures/nanpa_prefixes/show_with_region.yaml index 5825df8..8bfc0af 100644 --- a/tests/fixtures/nanpa_prefixes/show_with_region.yaml +++ b/tests/fixtures/nanpa_prefixes/show_with_region.yaml @@ -34,7 +34,7 @@ interactions: : \"https://sandbox-api.didww.com/v3/regions/346e64c8-18c2-4a12-b1e2-20e090043fca/relationships/country\"\ ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/346e64c8-18c2-4a12-b1e2-20e090043fca/country\"\ \n }\n }\n }\n }\n ],\n \"meta\": {\n \"api_version\"\ - : \"2022-05-09\"\n }\n}" + : \"2026-04-16\"\n }\n}" headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/orders/create_nanpa.yaml b/tests/fixtures/orders/create_nanpa.yaml index 3127c8d..bfb7427 100644 --- a/tests/fixtures/orders/create_nanpa.yaml +++ b/tests/fixtures/orders/create_nanpa.yaml @@ -24,7 +24,7 @@ interactions: ,\n \"did_group_id\": \"8d909d98-9385-4635-b123-809d64b2d4bb\"\n\ \ }\n }\n ],\n \"callback_method\": null,\n \ \ \"callback_url\": null\n }\n },\n \"meta\": {\n \"api_version\"\ - : \"2022-05-09\"\n }\n}" + : \"2026-04-16\"\n }\n}" headers: Content-Type: - application/vnd.api+json From 8e5ba2520ecaba730fb00cbcc1cd67502ada3926 Mon Sep 17 00:00:00 2001 From: Igor Fedoronchuk Date: Fri, 12 Jun 2026 10:47:06 +0200 Subject: [PATCH 3/4] chore(fixtures): re-serialize cassette JSON bodies compactly Pretty-printed bodies forced PyYAML into folded double-quoted scalars, making cassettes unreadable and diffs noisy. Compact JSON round-trip yields plain single-quoted one-line scalars. Placeholder hosts kept consistent with example.com. --- .../create.yaml | 4 +- .../create_error.yaml | 13 +- .../create_failed.yaml | 13 +- .../create_request_failed.yaml | 10 +- tests/fixtures/address_requirements/list.yaml | 186 +---- tests/fixtures/address_requirements/show.yaml | 111 +-- .../address_verifications/create.yaml | 29 +- .../fixtures/address_verifications/list.yaml | 63 +- .../show_with_includes.yaml | 5 +- tests/fixtures/addresses/create.yaml | 29 +- tests/fixtures/addresses/list.yaml | 69 +- .../addresses/show_with_includes.yaml | 4 +- tests/fixtures/addresses/update.yaml | 17 +- tests/fixtures/areas/list.yaml | 644 +--------------- tests/fixtures/areas/show.yaml | 16 +- tests/fixtures/available_dids/list.yaml | 53 +- tests/fixtures/available_dids/show.yaml | 43 +- tests/fixtures/balance/list.yaml | 5 +- tests/fixtures/capacity_pools/list.yaml | 36 +- tests/fixtures/capacity_pools/show.yaml | 307 +------- tests/fixtures/capacity_pools/update.yaml | 20 +- tests/fixtures/cities/list.yaml | 117 +-- tests/fixtures/cities/show.yaml | 22 +- tests/fixtures/countries/list.yaml | 725 +----------------- tests/fixtures/countries/show.yaml | 5 +- .../fixtures/countries/show_with_regions.yaml | 2 +- tests/fixtures/did_group_types/list.yaml | 17 +- tests/fixtures/did_group_types/show.yaml | 4 +- tests/fixtures/did_groups/list.yaml | 31 +- tests/fixtures/did_groups/show.yaml | 66 +- .../show_with_address_requirement.yaml | 38 +- tests/fixtures/did_reservations/create.yaml | 8 +- .../did_reservations/delete_not_found.yaml | 5 +- tests/fixtures/did_reservations/list.yaml | 13 +- tests/fixtures/did_reservations/show.yaml | 51 +- tests/fixtures/dids/list.yaml | 108 +-- tests/fixtures/dids/show.yaml | 27 +- tests/fixtures/dids/update_capacity_pool.yaml | 27 +- .../dids/update_invalid_trunk_group.yaml | 5 +- .../dids/update_shared_capacity_group.yaml | 27 +- .../dids/update_voice_in_trunk_group.yaml | 27 +- .../create.yaml | 4 +- tests/fixtures/encrypted_files/list.yaml | 8 +- tests/fixtures/encrypted_files/show.yaml | 5 +- tests/fixtures/exports/create.yaml | 6 +- tests/fixtures/exports/download.yaml | 4 +- tests/fixtures/exports/list.yaml | 10 +- tests/fixtures/exports/show.yaml | 8 +- tests/fixtures/identities/create.yaml | 37 +- tests/fixtures/identities/list.yaml | 75 +- .../identities/show_with_birth_country.yaml | 2 +- tests/fixtures/identities/update.yaml | 24 +- tests/fixtures/nanpa_prefixes/list.yaml | 24 +- tests/fixtures/nanpa_prefixes/show.yaml | 20 +- .../nanpa_prefixes/show_with_region.yaml | 24 +- tests/fixtures/orders/create.yaml | 19 +- .../fixtures/orders/create_available_did.yaml | 13 +- .../orders/create_billing_cycles.yaml | 12 +- tests/fixtures/orders/create_capacity.yaml | 12 +- tests/fixtures/orders/create_nanpa.yaml | 14 +- tests/fixtures/orders/create_reservation.yaml | 13 +- tests/fixtures/orders/show.yaml | 12 +- .../fixtures/orders_with_callback/create.yaml | 13 +- .../create.yaml | 17 +- tests/fixtures/pops/list.yaml | 7 +- tests/fixtures/proof_types/list.yaml | 21 +- tests/fixtures/proofs/create.yaml | 17 +- tests/fixtures/public_keys/list.yaml | 20 +- tests/fixtures/regions/list.yaml | 332 +------- tests/fixtures/regions/show.yaml | 12 +- .../shared_capacity_groups/create.yaml | 12 +- .../shared_capacity_groups/create_error.yaml | 5 +- .../fixtures/shared_capacity_groups/list.yaml | 45 +- .../fixtures/shared_capacity_groups/show.yaml | 526 +------------ .../shared_capacity_groups/update.yaml | 12 +- .../supporting_document_templates/list.yaml | 26 +- .../voice_in_trunk_groups/create.yaml | 78 +- .../fixtures/voice_in_trunk_groups/list.yaml | 89 +-- .../voice_in_trunk_groups/update.yaml | 10 +- tests/fixtures/voice_in_trunks/create.yaml | 19 +- .../create_sip_with_rerouting.yaml | 2 +- .../fixtures/voice_in_trunks/update_pstn.yaml | 16 +- .../create.yaml | 4 +- tests/fixtures/voice_out_trunks/create.yaml | 20 +- .../voice_out_trunks/create_twilio.yaml | 19 +- tests/fixtures/voice_out_trunks/list.yaml | 30 +- tests/fixtures/voice_out_trunks/show.yaml | 57 +- .../voice_out_trunks/show_ip_only.yaml | 15 +- .../voice_out_trunks/show_twilio.yaml | 15 +- tests/fixtures/voice_out_trunks/update.yaml | 15 +- 90 files changed, 99 insertions(+), 4703 deletions(-) diff --git a/tests/fixtures/address_requirement_validations/create.yaml b/tests/fixtures/address_requirement_validations/create.yaml index b074d5d..60af00e 100644 --- a/tests/fixtures/address_requirement_validations/create.yaml +++ b/tests/fixtures/address_requirement_validations/create.yaml @@ -12,9 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_requirement_validations response: body: - string: "{\n \"data\": {\n \"id\": \"aea92b24-a044-4864-9740-89d3e15b65c7\"\ - ,\n \"type\": \"address_requirement_validations\"\n },\n \"meta\": {\n \"\ - api_version\": \"2026-04-16\"\n }\n}" + string: '{"data":{"id":"aea92b24-a044-4864-9740-89d3e15b65c7","type":"address_requirement_validations"},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_requirement_validations/create_error.yaml b/tests/fixtures/address_requirement_validations/create_error.yaml index 56b3949..05735ae 100644 --- a/tests/fixtures/address_requirement_validations/create_error.yaml +++ b/tests/fixtures/address_requirement_validations/create_error.yaml @@ -12,18 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_requirement_validations response: body: - string: "{\n \"errors\": [\n {\n \"title\": \"Identity Place of Birth\ - \ must be Belgium\",\n \"detail\": \"Identity Place of Birth must be\ - \ Belgium\",\n \"code\": \"100\",\n \"source\": {\n \"pointer\"\ - : \"/data\"\n },\n \"status\": \"422\"\n },\n {\n \"\ - title\": \"Following Supporting Document(s) required (Belgium Registration\ - \ Form)\",\n \"detail\": \"Following Supporting Document(s) required\ - \ (Belgium Registration Form)\",\n \"code\": \"100\",\n \"source\"\ - : {\n \"pointer\": \"/data\"\n },\n \"status\": \"422\"\n\ - \ },\n {\n \"title\": \"Address in Belgium required\",\n \"\ - detail\": \"Address in Belgium required\",\n \"code\": \"100\",\n \ - \ \"source\": {\n \"pointer\": \"/data\"\n },\n \"status\"\ - : \"422\"\n }\n ]\n}" + string: '{"errors":[{"title":"Identity Place of Birth must be Belgium","detail":"Identity Place of Birth must be Belgium","code":"100","source":{"pointer":"/data"},"status":"422"},{"title":"Following Supporting Document(s) required (Belgium Registration Form)","detail":"Following Supporting Document(s) required (Belgium Registration Form)","code":"100","source":{"pointer":"/data"},"status":"422"},{"title":"Address in Belgium required","detail":"Address in Belgium required","code":"100","source":{"pointer":"/data"},"status":"422"}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_requirement_validations/create_failed.yaml b/tests/fixtures/address_requirement_validations/create_failed.yaml index 8ccd8a3..a243338 100644 --- a/tests/fixtures/address_requirement_validations/create_failed.yaml +++ b/tests/fixtures/address_requirement_validations/create_failed.yaml @@ -1,13 +1,6 @@ interactions: - request: - body: "{\n \"data\": {\n \"type\": \"address_requirement_validations\",\n \"attributes\"\ - : {},\n \"relationships\": {\n \"identity\": {\n \"data\": {\n\ - \ \"type\": \"identities\",\n \"id\": \"5e9df058-50d2-4e34-b0d4-d1746b86f41a\"\ - \n }\n },\n \"address\": {\n \"data\": {\n \ - \ \"type\": \"addresses\",\n \"id\": \"d3414687-40f4-4346-a267-c2c65117d28c\"\ - \n }\n },\n \"address_requirement\": {\n \"data\": {\n \ - \ \"type\": \"address_requirements\",\n \"id\": \"2efc3427-8ba6-4d50-875d-f2de4a068de8\"\ - \n }\n }\n }\n }\n}" + body: '{"data":{"type":"address_requirement_validations","attributes":{},"relationships":{"identity":{"data":{"type":"identities","id":"5e9df058-50d2-4e34-b0d4-d1746b86f41a"}},"address":{"data":{"type":"addresses","id":"d3414687-40f4-4346-a267-c2c65117d28c"}},"address_requirement":{"data":{"type":"address_requirements","id":"2efc3427-8ba6-4d50-875d-f2de4a068de8"}}}}}' headers: Accept: - application/vnd.api+json @@ -19,9 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_requirement_validations response: body: - string: "{\n \"data\": {\n \"id\": \"aea92b24-a044-4864-9740-89d3e15b65c7\"\ - ,\n \"type\": \"address_requirement_validations\"\n },\n \"meta\": {\n \"\ - api_version\": \"2026-04-16\"\n }\n}" + string: '{"data":{"id":"aea92b24-a044-4864-9740-89d3e15b65c7","type":"address_requirement_validations"},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_requirement_validations/create_request_failed.yaml b/tests/fixtures/address_requirement_validations/create_request_failed.yaml index 0a6da93..577535e 100644 --- a/tests/fixtures/address_requirement_validations/create_request_failed.yaml +++ b/tests/fixtures/address_requirement_validations/create_request_failed.yaml @@ -12,15 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_requirement_validations response: body: - string: "{\n \"data\": {\n \"type\": \"address_requirement_validations\",\n \"\ - attributes\": {},\n \"relationships\": {\n \"identity\": {\n \ - \ \"data\": {\n \"type\": \"identities\",\n \"id\": \"\ - 5e9df058-50d2-4e34-b0d4-d1746b86f41a\"\n }\n },\n \"address\"\ - : {\n \"data\": {\n \"type\": \"addresses\",\n \"\ - id\": \"d3414687-40f4-4346-a267-c2c65117d28c\"\n }\n },\n \ - \ \"address_requirement\": {\n \"data\": {\n \"type\": \"address_requirements\"\ - ,\n \"id\": \"2efc3427-8ba6-4d50-875d-f2de4a068de8\"\n }\n\ - \ }\n }\n }\n}" + string: '{"data":{"type":"address_requirement_validations","attributes":{},"relationships":{"identity":{"data":{"type":"identities","id":"5e9df058-50d2-4e34-b0d4-d1746b86f41a"}},"address":{"data":{"type":"addresses","id":"d3414687-40f4-4346-a267-c2c65117d28c"}},"address_requirement":{"data":{"type":"address_requirements","id":"2efc3427-8ba6-4d50-875d-f2de4a068de8"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_requirements/list.yaml b/tests/fixtures/address_requirements/list.yaml index 8e1f685..be7fb8f 100644 --- a/tests/fixtures/address_requirements/list.yaml +++ b/tests/fixtures/address_requirements/list.yaml @@ -12,191 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_requirements response: body: - string: "{\n \"data\": [\n {\n \"id\": \"b6c80acb-3952-4d53-9e62-fe2348c0636b\"\ - ,\n \"type\": \"address_requirements\",\n \"attributes\": {\n \"\ - identity_type\": \"Any\",\n \"personal_area_level\": \"country\",\n\ - \ \"business_area_level\": \"world_wide\",\n \"address_area_level\"\ - : \"Area\",\n \"personal_proof_qty\": 1,\n \"business_proof_qty\"\ - : 2,\n \"address_proof_qty\": 1,\n \"personal_mandatory_fields\"\ - : [\n \"Country\"\n ],\n \"business_mandatory_fields\"\ - : null,\n \"service_description_required\": false,\n \"restriction_message\"\ - : \"Needs end user registration.\"\n },\n \"relationships\": {\n\ - \ \"country\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/country\"\ - \n }\n },\n \"did_group_type\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/did_group_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/did_group_type\"\ - \n }\n },\n \"personal_permanent_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/personal_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/personal_permanent_document\"\ - \n }\n },\n \"business_permanent_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/business_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/business_permanent_document\"\ - \n }\n },\n \"personal_onetime_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/personal_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/personal_onetime_document\"\ - \n }\n },\n \"business_onetime_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/business_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/business_onetime_document\"\ - \n }\n },\n \"personal_proof_types\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/personal_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/personal_proof_types\"\ - \n }\n },\n \"business_proof_types\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/business_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/business_proof_types\"\ - \n }\n },\n \"address_proof_types\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/address_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/address_proof_types\"\ - \n }\n }\n }\n },\n {\n \"id\": \"51b293af-a496-4bf2-9c68-5221b3b0dc1e\"\ - ,\n \"type\": \"address_requirements\",\n \"attributes\": {\n \"\ - identity_type\": \"Any\",\n \"personal_area_level\": \"country\",\n\ - \ \"business_area_level\": \"country\",\n \"address_area_level\"\ - : \"Country\",\n \"personal_proof_qty\": 2,\n \"business_proof_qty\"\ - : 1,\n \"address_proof_qty\": 1,\n \"personal_mandatory_fields\"\ - : [\n \"Country\"\n ],\n \"business_mandatory_fields\"\ - : [\n \"Country\"\n ],\n \"service_description_required\"\ - : false,\n \"restriction_message\": \"restriction_message\"\n \ - \ },\n \"relationships\": {\n \"country\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/country\"\ - \n }\n },\n \"did_group_type\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/did_group_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/did_group_type\"\ - \n }\n },\n \"personal_permanent_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/personal_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/personal_permanent_document\"\ - \n }\n },\n \"business_permanent_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/business_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/business_permanent_document\"\ - \n }\n },\n \"personal_onetime_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/personal_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/personal_onetime_document\"\ - \n }\n },\n \"business_onetime_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/business_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/business_onetime_document\"\ - \n }\n },\n \"personal_proof_types\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/personal_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/personal_proof_types\"\ - \n }\n },\n \"business_proof_types\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/business_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/business_proof_types\"\ - \n }\n },\n \"address_proof_types\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/address_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/address_proof_types\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f7c2a9a4-a40e-4f22-98ff-0f53c86052ac\"\ - ,\n \"type\": \"address_requirements\",\n \"attributes\": {\n \"\ - identity_type\": \"Any\",\n \"personal_area_level\": \"world_wide\"\ - ,\n \"business_area_level\": \"country\",\n \"address_area_level\"\ - : \"world_wide\",\n \"personal_proof_qty\": 1,\n \"business_proof_qty\"\ - : 1,\n \"address_proof_qty\": 1,\n \"personal_mandatory_fields\"\ - : null,\n \"business_mandatory_fields\": [\n \"Country\"\n\ - \ ],\n \"service_description_required\": false,\n \"\ - restriction_message\": \"restriction_message\"\n },\n \"relationships\"\ - : {\n \"country\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/country\"\ - \n }\n },\n \"did_group_type\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/did_group_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/did_group_type\"\ - \n }\n },\n \"personal_permanent_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/personal_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/personal_permanent_document\"\ - \n }\n },\n \"business_permanent_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/business_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/business_permanent_document\"\ - \n }\n },\n \"personal_onetime_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/personal_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/personal_onetime_document\"\ - \n }\n },\n \"business_onetime_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/business_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/business_onetime_document\"\ - \n }\n },\n \"personal_proof_types\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/personal_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/personal_proof_types\"\ - \n }\n },\n \"business_proof_types\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/business_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/business_proof_types\"\ - \n }\n },\n \"address_proof_types\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/address_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/address_proof_types\"\ - \n }\n }\n }\n },\n {\n \"id\": \"edb71cff-d5e8-44ff-ba36-6f758066c175\"\ - ,\n \"type\": \"address_requirements\",\n \"attributes\": {\n \"\ - identity_type\": \"Any\",\n \"personal_area_level\": \"country\",\n\ - \ \"business_area_level\": \"country\",\n \"address_area_level\"\ - : \"Country\",\n \"personal_proof_qty\": 1,\n \"business_proof_qty\"\ - : 1,\n \"address_proof_qty\": 0,\n \"personal_mandatory_fields\"\ - : [\n \"Country\"\n ],\n \"business_mandatory_fields\"\ - : [\n \"Country\"\n ],\n \"service_description_required\"\ - : true,\n \"restriction_message\": \"restriction_message\"\n },\n\ - \ \"relationships\": {\n \"country\": {\n \"links\":\ - \ {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/country\"\ - \n }\n },\n \"did_group_type\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/did_group_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/did_group_type\"\ - \n }\n },\n \"personal_permanent_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/personal_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/personal_permanent_document\"\ - \n }\n },\n \"business_permanent_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/business_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/business_permanent_document\"\ - \n }\n },\n \"personal_onetime_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/personal_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/personal_onetime_document\"\ - \n }\n },\n \"business_onetime_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/business_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/business_onetime_document\"\ - \n }\n },\n \"personal_proof_types\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/personal_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/personal_proof_types\"\ - \n }\n },\n \"business_proof_types\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/business_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/business_proof_types\"\ - \n }\n },\n \"address_proof_types\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/address_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/address_proof_types\"\ - \n }\n }\n }\n },\n {\n \"id\": \"90b72a1a-1ebd-4771-b818-f7123f8ff7ec\"\ - ,\n \"type\": \"address_requirements\",\n \"attributes\": {\n \"\ - identity_type\": \"Any\",\n \"personal_area_level\": \"world_wide\"\ - ,\n \"business_area_level\": \"world_wide\",\n \"address_area_level\"\ - : \"world_wide\",\n \"personal_proof_qty\": 0,\n \"business_proof_qty\"\ - : 0,\n \"address_proof_qty\": 0,\n \"personal_mandatory_fields\"\ - : null,\n \"business_mandatory_fields\": null,\n \"service_description_required\"\ - : false,\n \"restriction_message\": \"restriction_message\"\n \ - \ },\n \"relationships\": {\n \"country\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/country\"\ - \n }\n },\n \"did_group_type\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/did_group_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/did_group_type\"\ - \n }\n },\n \"personal_permanent_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/personal_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/personal_permanent_document\"\ - \n }\n },\n \"business_permanent_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/business_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/business_permanent_document\"\ - \n }\n },\n \"personal_onetime_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/personal_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/personal_onetime_document\"\ - \n }\n },\n \"business_onetime_document\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/business_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/business_onetime_document\"\ - \n }\n },\n \"personal_proof_types\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/personal_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/personal_proof_types\"\ - \n }\n },\n \"business_proof_types\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/business_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/business_proof_types\"\ - \n }\n },\n \"address_proof_types\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/address_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/address_proof_types\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 73,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\"\ - : \"https://sandbox-api.didww.com/v3/address_requirements?page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - ,\n \"next\": \"https://sandbox-api.didww.com/v3/address_requirements?page%5Bnumber%5D=2&page%5Bsize%5D=5\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/address_requirements?page%5Bnumber%5D=15&page%5Bsize%5D=5\"\ - \n }\n}" + string: '{"data":[{"id":"b6c80acb-3952-4d53-9e62-fe2348c0636b","type":"address_requirements","attributes":{"identity_type":"Any","personal_area_level":"country","business_area_level":"world_wide","address_area_level":"Area","personal_proof_qty":1,"business_proof_qty":2,"address_proof_qty":1,"personal_mandatory_fields":["Country"],"business_mandatory_fields":null,"service_description_required":false,"restriction_message":"Needs end user registration."},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/country","related":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/country"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/did_group_type"}},"personal_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/personal_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/personal_permanent_document"}},"business_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/business_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/business_permanent_document"}},"personal_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/personal_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/personal_onetime_document"}},"business_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/business_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/business_onetime_document"}},"personal_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/personal_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/personal_proof_types"}},"business_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/business_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/business_proof_types"}},"address_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/relationships/address_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/b6c80acb-3952-4d53-9e62-fe2348c0636b/address_proof_types"}}}},{"id":"51b293af-a496-4bf2-9c68-5221b3b0dc1e","type":"address_requirements","attributes":{"identity_type":"Any","personal_area_level":"country","business_area_level":"country","address_area_level":"Country","personal_proof_qty":2,"business_proof_qty":1,"address_proof_qty":1,"personal_mandatory_fields":["Country"],"business_mandatory_fields":["Country"],"service_description_required":false,"restriction_message":"restriction_message"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/country","related":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/country"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/did_group_type"}},"personal_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/personal_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/personal_permanent_document"}},"business_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/business_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/business_permanent_document"}},"personal_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/personal_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/personal_onetime_document"}},"business_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/business_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/business_onetime_document"}},"personal_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/personal_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/personal_proof_types"}},"business_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/business_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/business_proof_types"}},"address_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/relationships/address_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/51b293af-a496-4bf2-9c68-5221b3b0dc1e/address_proof_types"}}}},{"id":"f7c2a9a4-a40e-4f22-98ff-0f53c86052ac","type":"address_requirements","attributes":{"identity_type":"Any","personal_area_level":"world_wide","business_area_level":"country","address_area_level":"world_wide","personal_proof_qty":1,"business_proof_qty":1,"address_proof_qty":1,"personal_mandatory_fields":null,"business_mandatory_fields":["Country"],"service_description_required":false,"restriction_message":"restriction_message"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/country","related":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/country"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/did_group_type"}},"personal_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/personal_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/personal_permanent_document"}},"business_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/business_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/business_permanent_document"}},"personal_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/personal_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/personal_onetime_document"}},"business_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/business_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/business_onetime_document"}},"personal_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/personal_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/personal_proof_types"}},"business_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/business_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/business_proof_types"}},"address_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/relationships/address_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/f7c2a9a4-a40e-4f22-98ff-0f53c86052ac/address_proof_types"}}}},{"id":"edb71cff-d5e8-44ff-ba36-6f758066c175","type":"address_requirements","attributes":{"identity_type":"Any","personal_area_level":"country","business_area_level":"country","address_area_level":"Country","personal_proof_qty":1,"business_proof_qty":1,"address_proof_qty":0,"personal_mandatory_fields":["Country"],"business_mandatory_fields":["Country"],"service_description_required":true,"restriction_message":"restriction_message"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/country","related":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/country"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/did_group_type"}},"personal_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/personal_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/personal_permanent_document"}},"business_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/business_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/business_permanent_document"}},"personal_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/personal_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/personal_onetime_document"}},"business_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/business_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/business_onetime_document"}},"personal_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/personal_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/personal_proof_types"}},"business_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/business_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/business_proof_types"}},"address_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/relationships/address_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/edb71cff-d5e8-44ff-ba36-6f758066c175/address_proof_types"}}}},{"id":"90b72a1a-1ebd-4771-b818-f7123f8ff7ec","type":"address_requirements","attributes":{"identity_type":"Any","personal_area_level":"world_wide","business_area_level":"world_wide","address_area_level":"world_wide","personal_proof_qty":0,"business_proof_qty":0,"address_proof_qty":0,"personal_mandatory_fields":null,"business_mandatory_fields":null,"service_description_required":false,"restriction_message":"restriction_message"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/country","related":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/country"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/did_group_type"}},"personal_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/personal_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/personal_permanent_document"}},"business_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/business_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/business_permanent_document"}},"personal_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/personal_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/personal_onetime_document"}},"business_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/business_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/business_onetime_document"}},"personal_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/personal_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/personal_proof_types"}},"business_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/business_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/business_proof_types"}},"address_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/relationships/address_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/90b72a1a-1ebd-4771-b818-f7123f8ff7ec/address_proof_types"}}}}],"meta":{"total_records":73,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/address_requirements?page%5Bnumber%5D=1&page%5Bsize%5D=5","next":"https://sandbox-api.didww.com/v3/address_requirements?page%5Bnumber%5D=2&page%5Bsize%5D=5","last":"https://sandbox-api.didww.com/v3/address_requirements?page%5Bnumber%5D=15&page%5Bsize%5D=5"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_requirements/show.yaml b/tests/fixtures/address_requirements/show.yaml index eb174f3..3d42c76 100644 --- a/tests/fixtures/address_requirements/show.yaml +++ b/tests/fixtures/address_requirements/show.yaml @@ -12,116 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959 response: body: - string: "{\n \"data\": {\n \"id\": \"25d12afe-1ec6-4fe3-9621-b250dd1fb959\"\ - ,\n \"type\": \"address_requirements\",\n \"attributes\": {\n \"identity_type\"\ - : \"any\",\n \"personal_area_level\": \"world_wide\",\n \"business_area_level\"\ - : \"world_wide\",\n \"address_area_level\": \"world_wide\",\n \"personal_proof_qty\"\ - : 1,\n \"business_proof_qty\": 1,\n \"address_proof_qty\": 1,\n\ - \ \"personal_mandatory_fields\": [\n \"Birth Date\",\n \ - \ \"Country\",\n \"Personal Tax ID\"\n ],\n \"business_mandatory_fields\"\ - : [\n \"Proof of ID\",\n \"VAT Number / TAX Code\",\n \ - \ \"Country\",\n \"Company ID\",\n \"Representative Tax ID\"\ - \n ],\n \"service_description_required\": true,\n \"restriction_message\"\ - : \"End User Registration is Required\"\n },\n \"relationships\": {\n\ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\",\n \ - \ \"id\": \"5b156dc2-327e-4665-bdc5-35cd8729b885\"\n }\n \ - \ },\n \"did_group_type\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/did_group_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/did_group_type\"\ - \n },\n \"data\": {\n \"type\": \"did_group_types\"\ - ,\n \"id\": \"994ea201-4a4d-4b27-ac4b-b5916ac969a3\"\n }\n\ - \ },\n \"personal_permanent_document\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/personal_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/personal_permanent_document\"\ - \n },\n \"data\": {\n \"type\": \"supporting_document_templates\"\ - ,\n \"id\": \"fd38c86d-b69b-4ca8-b73c-286a3b93d107\"\n }\n\ - \ },\n \"business_permanent_document\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/business_permanent_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/business_permanent_document\"\ - \n },\n \"data\": {\n \"type\": \"supporting_document_templates\"\ - ,\n \"id\": \"fd38c86d-b69b-4ca8-b73c-286a3b93d107\"\n }\n\ - \ },\n \"personal_onetime_document\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/personal_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/personal_onetime_document\"\ - \n },\n \"data\": {\n \"type\": \"supporting_document_templates\"\ - ,\n \"id\": \"206ccec2-1166-461f-9f58-3a56823db548\"\n }\n\ - \ },\n \"business_onetime_document\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/business_onetime_document\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/business_onetime_document\"\ - \n },\n \"data\": {\n \"type\": \"supporting_document_templates\"\ - ,\n \"id\": \"206ccec2-1166-461f-9f58-3a56823db548\"\n }\n\ - \ },\n \"personal_proof_types\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/personal_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/personal_proof_types\"\ - \n },\n \"data\": [\n {\n \"type\": \"proof_types\"\ - ,\n \"id\": \"19cd7b22-559b-41d4-99c9-7ad7ad63d5d1\"\n \ - \ }\n ]\n },\n \"business_proof_types\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/business_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/business_proof_types\"\ - \n },\n \"data\": [\n {\n \"type\": \"proof_types\"\ - ,\n \"id\": \"af07842f-6339-46fe-83b6-57e457af1eaf\"\n \ - \ },\n {\n \"type\": \"proof_types\",\n \"\ - id\": \"56b7d7cb-4d36-49c8-a786-2179967bba4c\"\n },\n {\n\ - \ \"type\": \"proof_types\",\n \"id\": \"ecf699c6-b1ad-4866-974b-06d2e8a698e6\"\ - \n },\n {\n \"type\": \"proof_types\",\n \ - \ \"id\": \"7f80edde-1b80-4410-af06-76a38ea9e576\"\n },\n\ - \ {\n \"type\": \"proof_types\",\n \"id\":\ - \ \"80253913-cd8b-4ce2-91a9-9299587ac409\"\n },\n {\n \ - \ \"type\": \"proof_types\",\n \"id\": \"0eb83bb2-730c-45fb-b39c-c0bf02f88e9e\"\ - \n },\n {\n \"type\": \"proof_types\",\n \ - \ \"id\": \"1f3f4747-0835-44a4-9e5f-40e52ec4fce7\"\n }\n \ - \ ]\n },\n \"address_proof_types\": {\n \"links\":\ - \ {\n \"self\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/address_proof_types\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/address_proof_types\"\ - \n },\n \"data\": [\n {\n \"type\": \"proof_types\"\ - ,\n \"id\": \"d2c1b3fb-29f7-46ca-ba82-b617f4630b78\"\n \ - \ }\n ]\n }\n }\n },\n \"included\": [\n {\n \"\ - id\": \"5b156dc2-327e-4665-bdc5-35cd8729b885\",\n \"type\": \"countries\"\ - ,\n \"attributes\": {\n \"name\": \"Spain\",\n \"prefix\"\ - : \"34\",\n \"iso\": \"ES\"\n },\n \"relationships\": {\n\ - \ \"regions\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/countries/5b156dc2-327e-4665-bdc5-35cd8729b885/relationships/regions\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/countries/5b156dc2-327e-4665-bdc5-35cd8729b885/regions\"\ - \n }\n }\n }\n },\n {\n \"id\": \"994ea201-4a4d-4b27-ac4b-b5916ac969a3\"\ - ,\n \"type\": \"did_group_types\",\n \"attributes\": {\n \ - \ \"name\": \"Local\"\n }\n },\n {\n \"id\": \"fd38c86d-b69b-4ca8-b73c-286a3b93d107\"\ - ,\n \"type\": \"supporting_document_templates\",\n \"attributes\"\ - : {\n \"name\": \"Belgium Registration Form\",\n \"permanent\"\ - : true,\n \"url\": \"https://sandbox-api.didww.com/storage/public/e8lziulj68xetfa5ed6na3g7q7ra\"\ - \n }\n },\n {\n \"id\": \"206ccec2-1166-461f-9f58-3a56823db548\"\ - ,\n \"type\": \"supporting_document_templates\",\n \"attributes\"\ - : {\n \"name\": \"Generic LOI\",\n \"permanent\": false,\n \ - \ \"url\": \"https://sandbox-api.didww.com/storage/public/w7f2irbo819la7vd7up7u67pkmkn\"\ - \n }\n },\n {\n \"id\": \"19cd7b22-559b-41d4-99c9-7ad7ad63d5d1\"\ - ,\n \"type\": \"proof_types\",\n \"attributes\": {\n \"name\"\ - : \"Drivers License\",\n \"entity_type\": \"personal\"\n }\n \ - \ },\n {\n \"id\": \"af07842f-6339-46fe-83b6-57e457af1eaf\",\n \ - \ \"type\": \"proof_types\",\n \"attributes\": {\n \"name\"\ - : \"Business Registration Certificate / Incorporation Certificate\",\n \ - \ \"entity_type\": \"business\"\n }\n },\n {\n \"id\"\ - : \"56b7d7cb-4d36-49c8-a786-2179967bba4c\",\n \"type\": \"proof_types\"\ - ,\n \"attributes\": {\n \"name\": \"Trade License\",\n \ - \ \"entity_type\": \"business\"\n }\n },\n {\n \"id\": \"\ - ecf699c6-b1ad-4866-974b-06d2e8a698e6\",\n \"type\": \"proof_types\",\n\ - \ \"attributes\": {\n \"name\": \"Excerpt from the commercial\ - \ register\",\n \"entity_type\": \"business\"\n }\n },\n \ - \ {\n \"id\": \"7f80edde-1b80-4410-af06-76a38ea9e576\",\n \"type\"\ - : \"proof_types\",\n \"attributes\": {\n \"name\": \"Other\",\n\ - \ \"entity_type\": \"business\"\n }\n },\n {\n \"id\"\ - : \"80253913-cd8b-4ce2-91a9-9299587ac409\",\n \"type\": \"proof_types\"\ - ,\n \"attributes\": {\n \"name\": \"Passport\",\n \"entity_type\"\ - : \"business\"\n }\n },\n {\n \"id\": \"0eb83bb2-730c-45fb-b39c-c0bf02f88e9e\"\ - ,\n \"type\": \"proof_types\",\n \"attributes\": {\n \"name\"\ - : \"National ID\",\n \"entity_type\": \"business\"\n }\n },\n\ - \ {\n \"id\": \"1f3f4747-0835-44a4-9e5f-40e52ec4fce7\",\n \"\ - type\": \"proof_types\",\n \"attributes\": {\n \"name\": \"Drivers\ - \ License\",\n \"entity_type\": \"business\"\n }\n },\n \ - \ {\n \"id\": \"d2c1b3fb-29f7-46ca-ba82-b617f4630b78\",\n \"type\"\ - : \"proof_types\",\n \"attributes\": {\n \"name\": \"Copy of Phone\ - \ Bill\",\n \"entity_type\": \"Address\"\n }\n }\n ],\n \"\ - meta\": {\n \"api_version\": \"2026-04-16\"\n }\n}" + string: '{"data":{"id":"25d12afe-1ec6-4fe3-9621-b250dd1fb959","type":"address_requirements","attributes":{"identity_type":"any","personal_area_level":"world_wide","business_area_level":"world_wide","address_area_level":"world_wide","personal_proof_qty":1,"business_proof_qty":1,"address_proof_qty":1,"personal_mandatory_fields":["Birth Date","Country","Personal Tax ID"],"business_mandatory_fields":["Proof of ID","VAT Number / TAX Code","Country","Company ID","Representative Tax ID"],"service_description_required":true,"restriction_message":"End User Registration is Required"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/country","related":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/country"},"data":{"type":"countries","id":"5b156dc2-327e-4665-bdc5-35cd8729b885"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/did_group_type"},"data":{"type":"did_group_types","id":"994ea201-4a4d-4b27-ac4b-b5916ac969a3"}},"personal_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/personal_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/personal_permanent_document"},"data":{"type":"supporting_document_templates","id":"fd38c86d-b69b-4ca8-b73c-286a3b93d107"}},"business_permanent_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/business_permanent_document","related":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/business_permanent_document"},"data":{"type":"supporting_document_templates","id":"fd38c86d-b69b-4ca8-b73c-286a3b93d107"}},"personal_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/personal_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/personal_onetime_document"},"data":{"type":"supporting_document_templates","id":"206ccec2-1166-461f-9f58-3a56823db548"}},"business_onetime_document":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/business_onetime_document","related":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/business_onetime_document"},"data":{"type":"supporting_document_templates","id":"206ccec2-1166-461f-9f58-3a56823db548"}},"personal_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/personal_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/personal_proof_types"},"data":[{"type":"proof_types","id":"19cd7b22-559b-41d4-99c9-7ad7ad63d5d1"}]},"business_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/business_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/business_proof_types"},"data":[{"type":"proof_types","id":"af07842f-6339-46fe-83b6-57e457af1eaf"},{"type":"proof_types","id":"56b7d7cb-4d36-49c8-a786-2179967bba4c"},{"type":"proof_types","id":"ecf699c6-b1ad-4866-974b-06d2e8a698e6"},{"type":"proof_types","id":"7f80edde-1b80-4410-af06-76a38ea9e576"},{"type":"proof_types","id":"80253913-cd8b-4ce2-91a9-9299587ac409"},{"type":"proof_types","id":"0eb83bb2-730c-45fb-b39c-c0bf02f88e9e"},{"type":"proof_types","id":"1f3f4747-0835-44a4-9e5f-40e52ec4fce7"}]},"address_proof_types":{"links":{"self":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/relationships/address_proof_types","related":"https://sandbox-api.didww.com/v3/address_requirements/25d12afe-1ec6-4fe3-9621-b250dd1fb959/address_proof_types"},"data":[{"type":"proof_types","id":"d2c1b3fb-29f7-46ca-ba82-b617f4630b78"}]}}},"included":[{"id":"5b156dc2-327e-4665-bdc5-35cd8729b885","type":"countries","attributes":{"name":"Spain","prefix":"34","iso":"ES"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/5b156dc2-327e-4665-bdc5-35cd8729b885/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/5b156dc2-327e-4665-bdc5-35cd8729b885/regions"}}}},{"id":"994ea201-4a4d-4b27-ac4b-b5916ac969a3","type":"did_group_types","attributes":{"name":"Local"}},{"id":"fd38c86d-b69b-4ca8-b73c-286a3b93d107","type":"supporting_document_templates","attributes":{"name":"Belgium Registration Form","permanent":true,"url":"https://sandbox-api.didww.com/storage/public/e8lziulj68xetfa5ed6na3g7q7ra"}},{"id":"206ccec2-1166-461f-9f58-3a56823db548","type":"supporting_document_templates","attributes":{"name":"Generic LOI","permanent":false,"url":"https://sandbox-api.didww.com/storage/public/w7f2irbo819la7vd7up7u67pkmkn"}},{"id":"19cd7b22-559b-41d4-99c9-7ad7ad63d5d1","type":"proof_types","attributes":{"name":"Drivers License","entity_type":"personal"}},{"id":"af07842f-6339-46fe-83b6-57e457af1eaf","type":"proof_types","attributes":{"name":"Business Registration Certificate / Incorporation Certificate","entity_type":"business"}},{"id":"56b7d7cb-4d36-49c8-a786-2179967bba4c","type":"proof_types","attributes":{"name":"Trade License","entity_type":"business"}},{"id":"ecf699c6-b1ad-4866-974b-06d2e8a698e6","type":"proof_types","attributes":{"name":"Excerpt from the commercial register","entity_type":"business"}},{"id":"7f80edde-1b80-4410-af06-76a38ea9e576","type":"proof_types","attributes":{"name":"Other","entity_type":"business"}},{"id":"80253913-cd8b-4ce2-91a9-9299587ac409","type":"proof_types","attributes":{"name":"Passport","entity_type":"business"}},{"id":"0eb83bb2-730c-45fb-b39c-c0bf02f88e9e","type":"proof_types","attributes":{"name":"National ID","entity_type":"business"}},{"id":"1f3f4747-0835-44a4-9e5f-40e52ec4fce7","type":"proof_types","attributes":{"name":"Drivers License","entity_type":"business"}},{"id":"d2c1b3fb-29f7-46ca-ba82-b617f4630b78","type":"proof_types","attributes":{"name":"Copy of Phone Bill","entity_type":"Address"}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_verifications/create.yaml b/tests/fixtures/address_verifications/create.yaml index daa40f0..db0adc9 100644 --- a/tests/fixtures/address_verifications/create.yaml +++ b/tests/fixtures/address_verifications/create.yaml @@ -12,34 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_verifications response: body: - string: "{\n \"data\": {\n \"id\": \"78182ef2-8377-41cd-89e1-26e8266c9c94\"\ - ,\n \"type\": \"address_verifications\",\n \"attributes\": {\n \ - \ \"service_description\": null,\n \"callback_url\": \"http://example.com\"\ - ,\n \"callback_method\": \"get\",\n \"status\": \"pending\",\n \ - \ \"reject_reasons\": null,\n \"created_at\": \"2021-04-01T15:01:32.668Z\"\ - \n },\n \"relationships\": {\n \"dids\": {\n \"links\":\ - \ {\n \"self\": \"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/dids\"\ - \n }\n },\n \"address\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/relationships/address\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/address\"\ - \n },\n \"data\": {\n \"type\": \"addresses\",\n \ - \ \"id\": \"d3414687-40f4-4346-a267-c2c65117d28c\"\n }\n \ - \ }\n }\n },\n \"included\": [\n {\n \"id\": \"d3414687-40f4-4346-a267-c2c65117d28c\"\ - ,\n \"type\": \"addresses\",\n \"attributes\": {\n \"city_name\"\ - : \"Chicago\",\n \"postal_code\": \"1234\",\n \"address\": \"\ - Main street\",\n \"description\": \"some address\",\n \"created_at\"\ - : \"2021-04-01T13:12:56.632Z\"\n },\n \"relationships\": {\n \ - \ \"identity\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/identity\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/identity\"\ - \n }\n },\n \"country\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/country\"\ - \n }\n },\n \"proofs\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/proofs\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/proofs\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"api_version\"\ - : \"2021-04-19\"\n }\n}" + string: '{"data":{"id":"78182ef2-8377-41cd-89e1-26e8266c9c94","type":"address_verifications","attributes":{"service_description":null,"callback_url":"http://example.com","callback_method":"get","status":"pending","reject_reasons":null,"created_at":"2021-04-01T15:01:32.668Z"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/dids"}},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/address"},"data":{"type":"addresses","id":"d3414687-40f4-4346-a267-c2c65117d28c"}}}},"included":[{"id":"d3414687-40f4-4346-a267-c2c65117d28c","type":"addresses","attributes":{"city_name":"Chicago","postal_code":"1234","address":"Main street","description":"some address","created_at":"2021-04-01T13:12:56.632Z"},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/identity"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/proofs"}}}}],"meta":{"api_version":"2021-04-19"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_verifications/list.yaml b/tests/fixtures/address_verifications/list.yaml index 2373f68..f5d739c 100644 --- a/tests/fixtures/address_verifications/list.yaml +++ b/tests/fixtures/address_verifications/list.yaml @@ -12,68 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_verifications response: body: - string: "{\n \"data\": [\n {\n \"id\": \"aaf2180a-3f2b-4427-888f-3d00f872014e\"\ - ,\n \"type\": \"address_verifications\",\n \"attributes\": {\n \ - \ \"service_description\": null,\n \"callback_url\": \"http://example.com\"\ - ,\n \"callback_method\": \"get\",\n \"status\": \"pending\"\ - ,\n \"reject_reasons\": null,\n \"created_at\": \"2021-04-01T14:29:11.790Z\"\ - \n },\n \"relationships\": {\n \"dids\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_verifications/aaf2180a-3f2b-4427-888f-3d00f872014e/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_verifications/aaf2180a-3f2b-4427-888f-3d00f872014e/dids\"\ - \n },\n \"data\": [\n {\n \"type\"\ - : \"dids\",\n \"id\": \"a9d64c02-4486-4acb-a9a1-be4c81ff0659\"\ - \n }\n ]\n },\n \"address\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/address_verifications/aaf2180a-3f2b-4427-888f-3d00f872014e/relationships/address\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/address_verifications/aaf2180a-3f2b-4427-888f-3d00f872014e/address\"\ - \n },\n \"data\": {\n \"type\": \"addresses\"\ - ,\n \"id\": \"d3414687-40f4-4346-a267-c2c65117d28c\"\n \ - \ }\n }\n }\n }\n ],\n \"included\": [\n {\n \"\ - id\": \"a9d64c02-4486-4acb-a9a1-be4c81ff0659\",\n \"type\": \"dids\"\ - ,\n \"attributes\": {\n \"blocked\": true,\n \"capacity_limit\"\ - : null,\n \"description\": null,\n \"terminated\": false,\n\ - \ \"awaiting_registration\": true,\n \"created_at\": \"2021-04-01T14:27:01.000Z\"\ - ,\n \"billing_cycles_count\": null,\n \"number\": \"13472013835\"\ - ,\n \"expires_at\": \"2021-05-01T14:27:01.757Z\",\n \"channels_included_count\"\ - : 0,\n \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/shared_capacity_group\"\ - \n }\n },\n \"address_verification\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/address_verification\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/address_verification\"\ - \n }\n }\n }\n },\n {\n \"id\": \"d3414687-40f4-4346-a267-c2c65117d28c\"\ - ,\n \"type\": \"addresses\",\n \"attributes\": {\n \"city_name\"\ - : \"Chicago\",\n \"postal_code\": \"1234\",\n \"address\": \"\ - Main street\",\n \"description\": \"some address\",\n \"created_at\"\ - : \"2021-04-01T13:12:56.632Z\"\n },\n \"relationships\": {\n \ - \ \"identity\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/identity\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/identity\"\ - \n }\n },\n \"country\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/country\"\ - \n }\n },\n \"proofs\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/proofs\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/proofs\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 1,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\"\ - : \"https://sandbox-api.didww.com/v3/address_verifications?include=address%2Cdids&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/address_verifications?include=address%2Cdids&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - \n }\n}" + string: '{"data":[{"id":"aaf2180a-3f2b-4427-888f-3d00f872014e","type":"address_verifications","attributes":{"service_description":null,"callback_url":"http://example.com","callback_method":"get","status":"pending","reject_reasons":null,"created_at":"2021-04-01T14:29:11.790Z"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/aaf2180a-3f2b-4427-888f-3d00f872014e/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/aaf2180a-3f2b-4427-888f-3d00f872014e/dids"},"data":[{"type":"dids","id":"a9d64c02-4486-4acb-a9a1-be4c81ff0659"}]},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/aaf2180a-3f2b-4427-888f-3d00f872014e/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/aaf2180a-3f2b-4427-888f-3d00f872014e/address"},"data":{"type":"addresses","id":"d3414687-40f4-4346-a267-c2c65117d28c"}}}}],"included":[{"id":"a9d64c02-4486-4acb-a9a1-be4c81ff0659","type":"dids","attributes":{"blocked":true,"capacity_limit":null,"description":null,"terminated":false,"awaiting_registration":true,"created_at":"2021-04-01T14:27:01.000Z","billing_cycles_count":null,"number":"13472013835","expires_at":"2021-05-01T14:27:01.757Z","channels_included_count":0,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/shared_capacity_group"}},"address_verification":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/relationships/address_verification","related":"https://sandbox-api.didww.com/v3/dids/a9d64c02-4486-4acb-a9a1-be4c81ff0659/address_verification"}}}},{"id":"d3414687-40f4-4346-a267-c2c65117d28c","type":"addresses","attributes":{"city_name":"Chicago","postal_code":"1234","address":"Main street","description":"some address","created_at":"2021-04-01T13:12:56.632Z"},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/identity"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/proofs"}}}}],"meta":{"total_records":1,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/address_verifications?include=address%2Cdids&page%5Bnumber%5D=1&page%5Bsize%5D=5","last":"https://sandbox-api.didww.com/v3/address_verifications?include=address%2Cdids&page%5Bnumber%5D=1&page%5Bsize%5D=5"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/address_verifications/show_with_includes.yaml b/tests/fixtures/address_verifications/show_with_includes.yaml index 1ac9f40..ea9f150 100644 --- a/tests/fixtures/address_verifications/show_with_includes.yaml +++ b/tests/fixtures/address_verifications/show_with_includes.yaml @@ -12,10 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f response: body: - string: '{"data":{"id":"75dc8d39-5e17-4470-a6f3-df42642c975f","type":"address_verifications","attributes":{"service_description":"Address - verification for DID registration","callback_url":"https://example.com/webhook/callback","callback_method":"post","status":"approved","reject_reasons":null,"reference":"AHB-291174","created_at":"2026-02-27T13:48:55.368Z"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/dids"},"data":[{"type":"dids","id":"21d0b02c-b556-4d3e-acbf-504b78295dbe"}]},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/address"},"data":{"type":"addresses","id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957"}}}},"included":[{"id":"21d0b02c-b556-4d3e-acbf-504b78295dbe","type":"dids","attributes":{"blocked":false,"capacity_limit":null,"description":null,"terminated":false,"awaiting_registration":false,"created_at":"2026-02-25T15:01:06.000Z","billing_cycles_count":null,"number":"61488943592","expires_at":"2026-03-27T13:48:55.974Z","channels_included_count":2,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/order"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/shared_capacity_group"}},"address_verification":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/address_verification","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/address_verification"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/voice_in_trunk_group"}}}},{"id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957","type":"addresses","attributes":{"city_name":"Algiers","postal_code":"16000","address":"42 - Rue Didouche Mourad","description":"Main office address","created_at":"2026-02-25T15:16:20.304Z","verified":true},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/identity"},"data":{"type":"identities","id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/proofs"},"data":[{"type":"proofs","id":"5cd00239-f9b5-4f08-9783-fb710eea9189"}]},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/area","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/area"}},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/city","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/city"}}}},{"id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"213555123456","id_number":"BIZ-2026-001","birth_date":null,"company_name":"ACME - Corp","company_reg_number":null,"vat_id":null,"description":"Business identity","personal_tax_id":null,"identity_type":"business","created_at":"2026-02-25T15:16:19.079Z","external_reference_id":"ext-ref-001","verified":true,"contact_email":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/proofs"},"data":[{"type":"proofs","id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27"}]},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/addresses"},"data":[{"type":"addresses","id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957"}]},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/permanent_documents"},"data":[]}}},{"id":"e36a345a-0186-4eb4-85e6-840fed74f49f","type":"countries","attributes":{"name":"Algeria","prefix":"213","iso":"DZ"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/regions"}}}},{"id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:54.800Z","expires_at":"2027-02-27T13:48:56.572Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/entity"}}}},{"id":"5cd00239-f9b5-4f08-9783-fb710eea9189","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:53.911Z","expires_at":"2027-02-27T13:48:56.653Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/entity"}}}}],"meta":{"api_version":"2026-04-16"}}' + string: '{"data":{"id":"75dc8d39-5e17-4470-a6f3-df42642c975f","type":"address_verifications","attributes":{"service_description":"Address verification for DID registration","callback_url":"https://example.com/webhook/callback","callback_method":"post","status":"approved","reject_reasons":null,"reference":"AHB-291174","created_at":"2026-02-27T13:48:55.368Z"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/dids"},"data":[{"type":"dids","id":"21d0b02c-b556-4d3e-acbf-504b78295dbe"}]},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/75dc8d39-5e17-4470-a6f3-df42642c975f/address"},"data":{"type":"addresses","id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957"}}}},"included":[{"id":"21d0b02c-b556-4d3e-acbf-504b78295dbe","type":"dids","attributes":{"blocked":false,"capacity_limit":null,"description":null,"terminated":false,"awaiting_registration":false,"created_at":"2026-02-25T15:01:06.000Z","billing_cycles_count":null,"number":"61488943592","expires_at":"2026-03-27T13:48:55.974Z","channels_included_count":2,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/order"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/shared_capacity_group"}},"address_verification":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/address_verification","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/address_verification"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/21d0b02c-b556-4d3e-acbf-504b78295dbe/voice_in_trunk_group"}}}},{"id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957","type":"addresses","attributes":{"city_name":"Algiers","postal_code":"16000","address":"42 Rue Didouche Mourad","description":"Main office address","created_at":"2026-02-25T15:16:20.304Z","verified":true},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/identity"},"data":{"type":"identities","id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/proofs"},"data":[{"type":"proofs","id":"5cd00239-f9b5-4f08-9783-fb710eea9189"}]},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/area","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/area"}},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/city","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/city"}}}},{"id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"213555123456","id_number":"BIZ-2026-001","birth_date":null,"company_name":"ACME Corp","company_reg_number":null,"vat_id":null,"description":"Business identity","personal_tax_id":null,"identity_type":"business","created_at":"2026-02-25T15:16:19.079Z","external_reference_id":"ext-ref-001","verified":true,"contact_email":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/proofs"},"data":[{"type":"proofs","id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27"}]},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/addresses"},"data":[{"type":"addresses","id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957"}]},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/permanent_documents"},"data":[]}}},{"id":"e36a345a-0186-4eb4-85e6-840fed74f49f","type":"countries","attributes":{"name":"Algeria","prefix":"213","iso":"DZ"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/regions"}}}},{"id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:54.800Z","expires_at":"2027-02-27T13:48:56.572Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/entity"}}}},{"id":"5cd00239-f9b5-4f08-9783-fb710eea9189","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:53.911Z","expires_at":"2027-02-27T13:48:56.653Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/entity"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/addresses/create.yaml b/tests/fixtures/addresses/create.yaml index 353dbd0..e6451fe 100644 --- a/tests/fixtures/addresses/create.yaml +++ b/tests/fixtures/addresses/create.yaml @@ -1,7 +1,6 @@ interactions: - request: - body: '{"data":{"type":"addresses","attributes":{"city_name":"New York","postal_code":"123","address":"some - street","description":"test address"},"relationships":{"country":{"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"identity":{"data":{"type":"identities","id":"5e9df058-50d2-4e34-b0d4-d1746b86f41a"}}}}}' + body: '{"data":{"type":"addresses","attributes":{"city_name":"New York","postal_code":"123","address":"some street","description":"test address"},"relationships":{"country":{"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"identity":{"data":{"type":"identities","id":"5e9df058-50d2-4e34-b0d4-d1746b86f41a"}}}}}' headers: Accept: - application/vnd.api+json @@ -13,31 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/addresses response: body: - string: "{\n \"data\": {\n \"id\": \"bf69bc70-e1c2-442c-9f30-335ee299b663\"\ - ,\n \"type\": \"addresses\",\n \"attributes\": {\n \"city_name\"\ - : \"New York\",\n \"postal_code\": \"123\",\n \"address\": \"some\ - \ street\",\n \"description\": \"test address\",\n \"created_at\"\ - : \"2021-04-01T14:59:47.128Z\",\n \"verified\": false\n },\n \"\ - relationships\": {\n \"identity\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/identity\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/identity\"\ - \n }\n },\n \"country\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\",\n \ - \ \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\n }\n \ - \ },\n \"proofs\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/proofs\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/proofs\"\ - \n }\n }\n }\n },\n \"included\": [\n {\n \"id\"\ - : \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\",\n \"type\": \"countries\"\ - ,\n \"attributes\": {\n \"name\": \"United States\",\n \ - \ \"prefix\": \"1\",\n \"iso\": \"US\"\n },\n \"relationships\"\ - : {\n \"regions\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/relationships/regions\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/regions\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"api_version\"\ - : \"2021-04-19\"\n }\n}" + string: '{"data":{"id":"bf69bc70-e1c2-442c-9f30-335ee299b663","type":"addresses","attributes":{"city_name":"New York","postal_code":"123","address":"some street","description":"test address","created_at":"2021-04-01T14:59:47.128Z","verified":false},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/identity"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/country"},"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/proofs"}}}},"included":[{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/regions"}}}}],"meta":{"api_version":"2021-04-19"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/addresses/list.yaml b/tests/fixtures/addresses/list.yaml index dbcf663..67ce8bc 100644 --- a/tests/fixtures/addresses/list.yaml +++ b/tests/fixtures/addresses/list.yaml @@ -12,74 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/addresses response: body: - string: "{\n \"data\": [\n {\n \"id\": \"9d3f2582-a292-4b6b-828b-74c78b5a3780\"\ - ,\n \"type\": \"addresses\",\n \"attributes\": {\n \"city_name\"\ - : \"Odessa\",\n \"postal_code\": \"65000\",\n \"address\": \"\ - literurna 12\",\n \"description\": \"1\",\n \"created_at\":\ - \ \"2020-11-02T15:49:10.769Z\",\n \"verified\": false\n },\n \ - \ \"relationships\": {\n \"identity\": {\n \"links\":\ - \ {\n \"self\": \"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/relationships/identity\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/identity\"\ - \n },\n \"data\": {\n \"type\": \"identities\"\ - ,\n \"id\": \"b4fe0262-a79e-4c1f-a313-bd32739c44e5\"\n \ - \ }\n },\n \"country\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\"\ - ,\n \"id\": \"f0ce4464-dfeb-412f-8ad1-ee27a858d0c2\"\n \ - \ }\n },\n \"proofs\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/relationships/proofs\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/proofs\"\ - \n },\n \"data\": [\n {\n \"type\"\ - : \"proofs\",\n \"id\": \"dd2f5f37-0d08-415d-9530-6488e6eb797b\"\ - \n }\n ]\n },\n \"area\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/relationships/area\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/area\"\ - \n },\n \"data\": null\n },\n \"city\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/relationships/city\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/city\"\ - \n },\n \"data\": null\n }\n }\n }\n ],\n\ - \ \"included\": [\n {\n \"id\": \"b4fe0262-a79e-4c1f-a313-bd32739c44e5\"\ - ,\n \"type\": \"identities\",\n \"attributes\": {\n \"first_name\"\ - : \"John\",\n \"last_name\": \"Doe\",\n \"phone_number\"\ - : \"12345678\",\n \"id_number\": null,\n \"birth_date\": \"\ - 1987-01-02\",\n \"company_name\": null,\n \"company_reg_number\"\ - : null,\n \"vat_id\": null,\n \"description\": null,\n \ - \ \"personal_tax_id\": null,\n \"identity_type\": \"personal\",\n\ - \ \"created_at\": \"2020-10-09T10:21:04.835Z\",\n \"external_reference_id\"\ - : null,\n \"verified\": false\n },\n \"relationships\": {\n\ - \ \"country\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/country\"\ - \n }\n },\n \"proofs\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/relationships/proofs\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/proofs\"\ - \n }\n },\n \"addresses\": {\n \"links\":\ - \ {\n \"self\": \"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/relationships/addresses\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/addresses\"\ - \n }\n },\n \"permanent_documents\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/relationships/permanent_documents\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/permanent_documents\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f0ce4464-dfeb-412f-8ad1-ee27a858d0c2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Ukraine\",\n \"prefix\": \"380\",\n \"iso\": \"UA\"\n \ - \ },\n \"relationships\": {\n \"regions\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/countries/f0ce4464-dfeb-412f-8ad1-ee27a858d0c2/relationships/regions\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/countries/f0ce4464-dfeb-412f-8ad1-ee27a858d0c2/regions\"\ - \n }\n }\n }\n },\n {\n \"id\": \"dd2f5f37-0d08-415d-9530-6488e6eb797b\"\ - ,\n \"type\": \"proofs\",\n \"attributes\": {\n \"created_at\"\ - : \"2020-11-02T15:49:10.775Z\",\n \"expires_at\": null\n },\n\ - \ \"relationships\": {\n \"proof_type\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/proofs/dd2f5f37-0d08-415d-9530-6488e6eb797b/relationships/proof_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/proofs/dd2f5f37-0d08-415d-9530-6488e6eb797b/proof_type\"\ - \n }\n },\n \"entity\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/proofs/dd2f5f37-0d08-415d-9530-6488e6eb797b/relationships/entity\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/proofs/dd2f5f37-0d08-415d-9530-6488e6eb797b/entity\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 1,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\"\ - : \"https://sandbox-api.didww.com/v3/addresses?include=country%2Cidentity%2Cproofs%2Carea%2Ccity&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/addresses?include=country%2Cidentity%2Cproofs%2Carea%2Ccity&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - \n }\n}" + string: '{"data":[{"id":"9d3f2582-a292-4b6b-828b-74c78b5a3780","type":"addresses","attributes":{"city_name":"Odessa","postal_code":"65000","address":"literurna 12","description":"1","created_at":"2020-11-02T15:49:10.769Z","verified":false},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/identity"},"data":{"type":"identities","id":"b4fe0262-a79e-4c1f-a313-bd32739c44e5"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/country"},"data":{"type":"countries","id":"f0ce4464-dfeb-412f-8ad1-ee27a858d0c2"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/proofs"},"data":[{"type":"proofs","id":"dd2f5f37-0d08-415d-9530-6488e6eb797b"}]},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/relationships/area","related":"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/area"},"data":null},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/relationships/city","related":"https://sandbox-api.didww.com/v3/addresses/9d3f2582-a292-4b6b-828b-74c78b5a3780/city"},"data":null}}}],"included":[{"id":"b4fe0262-a79e-4c1f-a313-bd32739c44e5","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"12345678","id_number":null,"birth_date":"1987-01-02","company_name":null,"company_reg_number":null,"vat_id":null,"description":null,"personal_tax_id":null,"identity_type":"personal","created_at":"2020-10-09T10:21:04.835Z","external_reference_id":null,"verified":false},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/proofs"}},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/addresses"}},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/b4fe0262-a79e-4c1f-a313-bd32739c44e5/permanent_documents"}}}},{"id":"f0ce4464-dfeb-412f-8ad1-ee27a858d0c2","type":"countries","attributes":{"name":"Ukraine","prefix":"380","iso":"UA"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/f0ce4464-dfeb-412f-8ad1-ee27a858d0c2/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/f0ce4464-dfeb-412f-8ad1-ee27a858d0c2/regions"}}}},{"id":"dd2f5f37-0d08-415d-9530-6488e6eb797b","type":"proofs","attributes":{"created_at":"2020-11-02T15:49:10.775Z","expires_at":null},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/dd2f5f37-0d08-415d-9530-6488e6eb797b/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/dd2f5f37-0d08-415d-9530-6488e6eb797b/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/dd2f5f37-0d08-415d-9530-6488e6eb797b/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/dd2f5f37-0d08-415d-9530-6488e6eb797b/entity"}}}}],"meta":{"total_records":1,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/addresses?include=country%2Cidentity%2Cproofs%2Carea%2Ccity&page%5Bnumber%5D=1&page%5Bsize%5D=5","last":"https://sandbox-api.didww.com/v3/addresses?include=country%2Cidentity%2Cproofs%2Carea%2Ccity&page%5Bnumber%5D=1&page%5Bsize%5D=5"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/addresses/show_with_includes.yaml b/tests/fixtures/addresses/show_with_includes.yaml index b22d732..d5cdad6 100644 --- a/tests/fixtures/addresses/show_with_includes.yaml +++ b/tests/fixtures/addresses/show_with_includes.yaml @@ -12,9 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957 response: body: - string: '{"data":{"id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957","type":"addresses","attributes":{"city_name":"Algiers","postal_code":"16000","address":"42 - Rue Didouche Mourad","description":"Main office address","created_at":"2026-02-25T15:16:20.304Z","verified":true},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/identity"},"data":{"type":"identities","id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/proofs"},"data":[{"type":"proofs","id":"5cd00239-f9b5-4f08-9783-fb710eea9189"}]},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/area","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/area"},"data":null},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/city","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/city"},"data":null}}},"included":[{"id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"213555123456","id_number":"BIZ-2026-001","birth_date":null,"company_name":"ACME - Corp","company_reg_number":null,"vat_id":null,"description":"Business identity","personal_tax_id":null,"identity_type":"business","created_at":"2026-02-25T15:16:19.079Z","external_reference_id":"ext-ref-001","verified":true,"contact_email":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/proofs"},"data":[{"type":"proofs","id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27"}]},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/addresses"},"data":[{"type":"addresses","id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957"}]},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/permanent_documents"},"data":[]}}},{"id":"e36a345a-0186-4eb4-85e6-840fed74f49f","type":"countries","attributes":{"name":"Algeria","prefix":"213","iso":"DZ"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/regions"}}}},{"id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:54.800Z","expires_at":"2027-02-27T13:48:56.572Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/entity"}}}},{"id":"5cd00239-f9b5-4f08-9783-fb710eea9189","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:53.911Z","expires_at":"2027-02-27T13:48:56.653Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/entity"}}}}],"meta":{"api_version":"2026-04-16"}}' + string: '{"data":{"id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957","type":"addresses","attributes":{"city_name":"Algiers","postal_code":"16000","address":"42 Rue Didouche Mourad","description":"Main office address","created_at":"2026-02-25T15:16:20.304Z","verified":true},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/identity"},"data":{"type":"identities","id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/proofs"},"data":[{"type":"proofs","id":"5cd00239-f9b5-4f08-9783-fb710eea9189"}]},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/area","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/area"},"data":null},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/relationships/city","related":"https://sandbox-api.didww.com/v3/addresses/fafaca6b-40e5-4a9c-9a30-f2fac3ee8957/city"},"data":null}}},"included":[{"id":"17ebf057-db8d-4de0-b95c-52a2b940c7b8","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"213555123456","id_number":"BIZ-2026-001","birth_date":null,"company_name":"ACME Corp","company_reg_number":null,"vat_id":null,"description":"Business identity","personal_tax_id":null,"identity_type":"business","created_at":"2026-02-25T15:16:19.079Z","external_reference_id":"ext-ref-001","verified":true,"contact_email":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/country"},"data":{"type":"countries","id":"e36a345a-0186-4eb4-85e6-840fed74f49f"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/proofs"},"data":[{"type":"proofs","id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27"}]},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/addresses"},"data":[{"type":"addresses","id":"fafaca6b-40e5-4a9c-9a30-f2fac3ee8957"}]},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/17ebf057-db8d-4de0-b95c-52a2b940c7b8/permanent_documents"},"data":[]}}},{"id":"e36a345a-0186-4eb4-85e6-840fed74f49f","type":"countries","attributes":{"name":"Algeria","prefix":"213","iso":"DZ"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/e36a345a-0186-4eb4-85e6-840fed74f49f/regions"}}}},{"id":"9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:54.800Z","expires_at":"2027-02-27T13:48:56.572Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/9f8e2f56-bb2a-4c2e-9330-5dc4c204fc27/entity"}}}},{"id":"5cd00239-f9b5-4f08-9783-fb710eea9189","type":"proofs","attributes":{"created_at":"2026-02-27T13:48:53.911Z","expires_at":"2027-02-27T13:48:56.653Z"},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/proof_type"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/5cd00239-f9b5-4f08-9783-fb710eea9189/entity"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/addresses/update.yaml b/tests/fixtures/addresses/update.yaml index 9aae163..c100180 100644 --- a/tests/fixtures/addresses/update.yaml +++ b/tests/fixtures/addresses/update.yaml @@ -12,22 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663 response: body: - string: "{\n \"data\": {\n \"id\": \"bf69bc70-e1c2-442c-9f30-335ee299b663\"\ - ,\n \"type\": \"addresses\",\n \"attributes\": {\n \"city_name\"\ - : \"Chicago\",\n \"postal_code\": \"1234\",\n \"address\": \"Main\ - \ street\",\n \"description\": \"some address\",\n \"created_at\"\ - : \"2021-04-01T14:59:47.128Z\",\n \"verified\": false\n },\n \"\ - relationships\": {\n \"identity\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/identity\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/identity\"\ - \n }\n },\n \"country\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/country\"\ - \n }\n },\n \"proofs\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/proofs\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/proofs\"\ - \n }\n }\n }\n },\n \"meta\": {\n \"api_version\": \"\ - 2021-04-19\"\n }\n}" + string: '{"data":{"id":"bf69bc70-e1c2-442c-9f30-335ee299b663","type":"addresses","attributes":{"city_name":"Chicago","postal_code":"1234","address":"Main street","description":"some address","created_at":"2021-04-01T14:59:47.128Z","verified":false},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/identity"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/proofs"}}}},"meta":{"api_version":"2021-04-19"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/areas/list.yaml b/tests/fixtures/areas/list.yaml index ea7e58d..57ccdde 100644 --- a/tests/fixtures/areas/list.yaml +++ b/tests/fixtures/areas/list.yaml @@ -12,649 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/areas response: body: - string: "{\n \"data\": [\n {\n \"id\": \"5df464d5-fcc4-4a82-817a-00111c990020\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Aalst\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/5df464d5-fcc4-4a82-817a-00111c990020/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/5df464d5-fcc4-4a82-817a-00111c990020/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b218046e-fb17-47f9-9d50-593b03456996\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Abruzzo\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/b218046e-fb17-47f9-9d50-593b03456996/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/b218046e-fb17-47f9-9d50-593b03456996/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"66e27cde-4f2d-4ca2-aacf-bbcebb47f99e\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Aosta Valley\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/66e27cde-4f2d-4ca2-aacf-bbcebb47f99e/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/66e27cde-4f2d-4ca2-aacf-bbcebb47f99e/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"5b72a800-fd62-4765-a118-101051920dcb\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Apulia\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/5b72a800-fd62-4765-a118-101051920dcb/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/5b72a800-fd62-4765-a118-101051920dcb/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a0edfb2e-3e34-4c08-86a3-6a456f50fe1e\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 1\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/a0edfb2e-3e34-4c08-86a3-6a456f50fe1e/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/a0edfb2e-3e34-4c08-86a3-6a456f50fe1e/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"31bbda1a-3acb-4e33-b520-33063c03fab3\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 21\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/31bbda1a-3acb-4e33-b520-33063c03fab3/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/31bbda1a-3acb-4e33-b520-33063c03fab3/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"7c993328-a982-4f93-87b5-8eb0ad580889\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 22\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/7c993328-a982-4f93-87b5-8eb0ad580889/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/7c993328-a982-4f93-87b5-8eb0ad580889/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"e82ad303-45b0-43ac-a81c-b7c1a5544582\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 23\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/e82ad303-45b0-43ac-a81c-b7c1a5544582/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/e82ad303-45b0-43ac-a81c-b7c1a5544582/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9b45e6a4-0d1e-425d-84f4-a0cd0047dc75\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 24\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/9b45e6a4-0d1e-425d-84f4-a0cd0047dc75/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/9b45e6a4-0d1e-425d-84f4-a0cd0047dc75/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"fb10cd78-f890-425f-9a70-0fdc6cb99b88\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 25\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/fb10cd78-f890-425f-9a70-0fdc6cb99b88/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/fb10cd78-f890-425f-9a70-0fdc6cb99b88/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b2fbf0bb-33dd-483e-857c-19a79de9c1d3\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 26\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/b2fbf0bb-33dd-483e-857c-19a79de9c1d3/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/b2fbf0bb-33dd-483e-857c-19a79de9c1d3/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"ff5afa64-2231-45e6-95a0-5b3b7d5a0dd2\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 27\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/ff5afa64-2231-45e6-95a0-5b3b7d5a0dd2/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/ff5afa64-2231-45e6-95a0-5b3b7d5a0dd2/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9e52b6ee-e627-4d4e-bc68-790c5fb456c8\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 28\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/9e52b6ee-e627-4d4e-bc68-790c5fb456c8/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/9e52b6ee-e627-4d4e-bc68-790c5fb456c8/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"64696564-ee11-42fd-8462-915bfaf13f68\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 29\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/64696564-ee11-42fd-8462-915bfaf13f68/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/64696564-ee11-42fd-8462-915bfaf13f68/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"5ce7d1ba-2461-49ff-804d-d7f616511634\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 402\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/5ce7d1ba-2461-49ff-804d-d7f616511634/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/5ce7d1ba-2461-49ff-804d-d7f616511634/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"3fcac095-104d-4de3-9733-6e027e5c81f2\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 404\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/3fcac095-104d-4de3-9733-6e027e5c81f2/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/3fcac095-104d-4de3-9733-6e027e5c81f2/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"453bf8be-9de6-490d-bf2a-7c9988d73385\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 41\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/453bf8be-9de6-490d-bf2a-7c9988d73385/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/453bf8be-9de6-490d-bf2a-7c9988d73385/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"16123617-9372-4f3f-ae9a-bbcabf73f522\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 42\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/16123617-9372-4f3f-ae9a-bbcabf73f522/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/16123617-9372-4f3f-ae9a-bbcabf73f522/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"297ab459-af72-48ef-8724-9d5dc8e95681\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 43\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/297ab459-af72-48ef-8724-9d5dc8e95681/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/297ab459-af72-48ef-8724-9d5dc8e95681/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"33fe4a78-f8eb-4dac-bc21-2b4d96e78bd8\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 44\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/33fe4a78-f8eb-4dac-bc21-2b4d96e78bd8/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/33fe4a78-f8eb-4dac-bc21-2b4d96e78bd8/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"cebda46e-cb14-4a5c-82f4-c64339f76523\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 45\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/cebda46e-cb14-4a5c-82f4-c64339f76523/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/cebda46e-cb14-4a5c-82f4-c64339f76523/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4e3468b8-c422-4bfe-83d0-15dc6d66997a\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 46\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/4e3468b8-c422-4bfe-83d0-15dc6d66997a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/4e3468b8-c422-4bfe-83d0-15dc6d66997a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"acaf294a-4459-4c0e-b9dc-b69f89d87325\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 47\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/acaf294a-4459-4c0e-b9dc-b69f89d87325/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/acaf294a-4459-4c0e-b9dc-b69f89d87325/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"e11dfb74-1786-41a3-8247-b97911e3eb03\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 49\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/e11dfb74-1786-41a3-8247-b97911e3eb03/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/e11dfb74-1786-41a3-8247-b97911e3eb03/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"7bb1d6c6-1f7b-476f-8f4b-afbd4f6c948c\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 504\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/7bb1d6c6-1f7b-476f-8f4b-afbd4f6c948c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/7bb1d6c6-1f7b-476f-8f4b-afbd4f6c948c/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"7f65a0ed-4bed-4cb0-addd-1d9ae40392d8\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 505\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/7f65a0ed-4bed-4cb0-addd-1d9ae40392d8/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/7f65a0ed-4bed-4cb0-addd-1d9ae40392d8/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"fbe2fd57-9881-46e8-9e01-079268d7fdb0\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 51\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/fbe2fd57-9881-46e8-9e01-079268d7fdb0/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/fbe2fd57-9881-46e8-9e01-079268d7fdb0/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a1f8412f-50b1-4f72-b69a-e5e725bb6659\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 52\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/a1f8412f-50b1-4f72-b69a-e5e725bb6659/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/a1f8412f-50b1-4f72-b69a-e5e725bb6659/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f936111e-f5f1-45de-b967-f7ca60d64ae1\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 53\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/f936111e-f5f1-45de-b967-f7ca60d64ae1/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/f936111e-f5f1-45de-b967-f7ca60d64ae1/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"20a23c1f-a739-4731-8bc8-096fe1ae4501\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 56\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/20a23c1f-a739-4731-8bc8-096fe1ae4501/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/20a23c1f-a739-4731-8bc8-096fe1ae4501/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"fa417b29-d776-486f-bf4f-6daf62e4c2c9\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 57\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/fa417b29-d776-486f-bf4f-6daf62e4c2c9/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/fa417b29-d776-486f-bf4f-6daf62e4c2c9/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4c5d448e-1e93-4cc2-a579-d8b61fb70a19\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 58\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/4c5d448e-1e93-4cc2-a579-d8b61fb70a19/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/4c5d448e-1e93-4cc2-a579-d8b61fb70a19/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"85b99f74-a7eb-4c51-a551-b25a84774f6f\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 59\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/85b99f74-a7eb-4c51-a551-b25a84774f6f/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/85b99f74-a7eb-4c51-a551-b25a84774f6f/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4d74e586-4e15-4e44-a6ee-2c7ead26a39b\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 61\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/4d74e586-4e15-4e44-a6ee-2c7ead26a39b/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/4d74e586-4e15-4e44-a6ee-2c7ead26a39b/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"14c53a9d-7a99-472e-8982-2baa166ece4a\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 62\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/14c53a9d-7a99-472e-8982-2baa166ece4a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/14c53a9d-7a99-472e-8982-2baa166ece4a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a33429dc-e7a6-461b-86f1-c5ca5f5adbc6\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 63\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/a33429dc-e7a6-461b-86f1-c5ca5f5adbc6/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/a33429dc-e7a6-461b-86f1-c5ca5f5adbc6/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"8325eeeb-c74e-4c71-b262-919253d8d67f\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 64\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/8325eeeb-c74e-4c71-b262-919253d8d67f/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/8325eeeb-c74e-4c71-b262-919253d8d67f/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9fab1c16-3555-4c78-a27f-5b16197d2b5c\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 65\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/9fab1c16-3555-4c78-a27f-5b16197d2b5c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/9fab1c16-3555-4c78-a27f-5b16197d2b5c/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f5e349a8-4108-4f15-b549-3d3a49f6fd38\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 66\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/f5e349a8-4108-4f15-b549-3d3a49f6fd38/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/f5e349a8-4108-4f15-b549-3d3a49f6fd38/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"fa15fd99-4fca-49bf-ae41-d63112031e6a\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 67\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/fa15fd99-4fca-49bf-ae41-d63112031e6a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/fa15fd99-4fca-49bf-ae41-d63112031e6a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"d2d6bc4f-1444-48cc-922e-2cd31eeba653\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 68\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/d2d6bc4f-1444-48cc-922e-2cd31eeba653/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/d2d6bc4f-1444-48cc-922e-2cd31eeba653/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a91b1571-0f55-43be-aef0-5b30855aa980\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 69\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/a91b1571-0f55-43be-aef0-5b30855aa980/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/a91b1571-0f55-43be-aef0-5b30855aa980/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"1e950978-6ad7-4b95-afc0-5be519ab0838\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 71\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/1e950978-6ad7-4b95-afc0-5be519ab0838/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/1e950978-6ad7-4b95-afc0-5be519ab0838/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"991f0177-babe-4b1d-8416-69866e053a97\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 74\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/991f0177-babe-4b1d-8416-69866e053a97/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/991f0177-babe-4b1d-8416-69866e053a97/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"de8d71f7-2a56-4f90-9a93-773a25238804\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 90\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/de8d71f7-2a56-4f90-9a93-773a25238804/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/de8d71f7-2a56-4f90-9a93-773a25238804/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"6e2a4432-b4eb-42ae-8fdd-086885172295\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 91\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/6e2a4432-b4eb-42ae-8fdd-086885172295/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/6e2a4432-b4eb-42ae-8fdd-086885172295/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"da9a4e43-571d-4ef8-8411-b2b4b07dbd3c\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 93\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/da9a4e43-571d-4ef8-8411-b2b4b07dbd3c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/da9a4e43-571d-4ef8-8411-b2b4b07dbd3c/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"bad69827-ca85-4ad1-acd2-37f06d1c97d5\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 94\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/bad69827-ca85-4ad1-acd2-37f06d1c97d5/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/bad69827-ca85-4ad1-acd2-37f06d1c97d5/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"670e5a0f-4f57-4ce1-acde-0cb268e9a9d0\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 95\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/670e5a0f-4f57-4ce1-acde-0cb268e9a9d0/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/670e5a0f-4f57-4ce1-acde-0cb268e9a9d0/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"dfc2c4d0-6b33-46ae-a55c-08186d692557\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 96\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/dfc2c4d0-6b33-46ae-a55c-08186d692557/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/dfc2c4d0-6b33-46ae-a55c-08186d692557/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"5c212467-18ce-4fa3-9ad4-27e459cb49ad\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 97\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/5c212467-18ce-4fa3-9ad4-27e459cb49ad/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/5c212467-18ce-4fa3-9ad4-27e459cb49ad/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b867825a-73d0-46dd-8f6e-37d3a2b0e33b\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 98\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/b867825a-73d0-46dd-8f6e-37d3a2b0e33b/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/b867825a-73d0-46dd-8f6e-37d3a2b0e33b/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4bbc04d0-48bd-4fee-8a4f-597ff9da62c8\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Area code 99\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/4bbc04d0-48bd-4fee-8a4f-597ff9da62c8/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/4bbc04d0-48bd-4fee-8a4f-597ff9da62c8/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9c956393-9d21-4d90-9108-3d6fff71bce7\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Banja Luka\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/9c956393-9d21-4d90-9108-3d6fff71bce7/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/9c956393-9d21-4d90-9108-3d6fff71bce7/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"efcc0a76-dd77-4256-b0ad-b24fd55a71df\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Basilicata\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/efcc0a76-dd77-4256-b0ad-b24fd55a71df/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/efcc0a76-dd77-4256-b0ad-b24fd55a71df/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"d964fb43-5e2e-4dad-acd6-496f57be7a87\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Belgrade\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/d964fb43-5e2e-4dad-acd6-496f57be7a87/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/d964fb43-5e2e-4dad-acd6-496f57be7a87/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f1f01e58-c664-412c-9c57-ebdc7872ab37\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Brugge\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/f1f01e58-c664-412c-9c57-ebdc7872ab37/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/f1f01e58-c664-412c-9c57-ebdc7872ab37/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"c15ff02e-4a98-4f17-bb3c-f8e685a10687\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Brussels-Capital Region\"\n },\n \"relationships\": {\n \ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/c15ff02e-4a98-4f17-bb3c-f8e685a10687/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/c15ff02e-4a98-4f17-bb3c-f8e685a10687/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9a5ca4f5-9161-4c8d-bd89-fa56bf1bcd3b\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Calabria\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/9a5ca4f5-9161-4c8d-bd89-fa56bf1bcd3b/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/9a5ca4f5-9161-4c8d-bd89-fa56bf1bcd3b/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9eb7cf03-9bf3-4e37-b7c1-7c2a9e465b9b\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Campania\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/9eb7cf03-9bf3-4e37-b7c1-7c2a9e465b9b/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/9eb7cf03-9bf3-4e37-b7c1-7c2a9e465b9b/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"191d2d7e-ec0c-4581-885a-5bbfb58484ec\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Celje, Trbovlje\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/191d2d7e-ec0c-4581-885a-5bbfb58484ec/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/191d2d7e-ec0c-4581-885a-5bbfb58484ec/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b59902c1-dda0-4c0a-9528-7e3760d68076\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Dendermonde\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/b59902c1-dda0-4c0a-9528-7e3760d68076/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/b59902c1-dda0-4c0a-9528-7e3760d68076/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"1d01ead0-18eb-44c1-9247-c3ac8c7153c1\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Drenthe\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/1d01ead0-18eb-44c1-9247-c3ac8c7153c1/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/1d01ead0-18eb-44c1-9247-c3ac8c7153c1/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"90d9cc5b-1de1-4c2f-8e0c-d9b0055e18d0\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Dubrovnik-Neretva\"\n },\n \"relationships\": {\n \"\ - country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/90d9cc5b-1de1-4c2f-8e0c-d9b0055e18d0/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/90d9cc5b-1de1-4c2f-8e0c-d9b0055e18d0/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9ab24f05-6bb4-457f-8abb-059d7c6e151a\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Eastern Cape\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/9ab24f05-6bb4-457f-8abb-059d7c6e151a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/9ab24f05-6bb4-457f-8abb-059d7c6e151a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"41feeeec-fd8e-444d-8601-5ddb2b0522f9\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Emilia-Romagna\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/41feeeec-fd8e-444d-8601-5ddb2b0522f9/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/41feeeec-fd8e-444d-8601-5ddb2b0522f9/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a782da4a-c99e-49a5-a98a-8de055fede8c\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Flemish Region\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/a782da4a-c99e-49a5-a98a-8de055fede8c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/a782da4a-c99e-49a5-a98a-8de055fede8c/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"90a7c8d3-b084-480d-a3f7-3b2932facb6d\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Flevoland\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/90a7c8d3-b084-480d-a3f7-3b2932facb6d/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/90a7c8d3-b084-480d-a3f7-3b2932facb6d/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4544817f-7edd-4093-845f-25bccbe4eb9a\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Free State\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/4544817f-7edd-4093-845f-25bccbe4eb9a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/4544817f-7edd-4093-845f-25bccbe4eb9a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"5849b239-7fe4-4a07-90bb-4660a2cdb6cf\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Friesland\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/5849b239-7fe4-4a07-90bb-4660a2cdb6cf/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/5849b239-7fe4-4a07-90bb-4660a2cdb6cf/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"df8542d4-9c93-4b30-8c33-70f8b09c322a\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Friuli-Venezia Giulia\"\n },\n \"relationships\": {\n \ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/df8542d4-9c93-4b30-8c33-70f8b09c322a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/df8542d4-9c93-4b30-8c33-70f8b09c322a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"5113bc38-fdfe-4b3c-b58e-a61280175118\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Gauteng\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/5113bc38-fdfe-4b3c-b58e-a61280175118/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/5113bc38-fdfe-4b3c-b58e-a61280175118/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"223a83f4-735e-4779-af1e-1d2f596f5fa2\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Gelderland\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/223a83f4-735e-4779-af1e-1d2f596f5fa2/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/223a83f4-735e-4779-af1e-1d2f596f5fa2/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"58cce57f-f4d3-4cd7-8468-80b205af0e19\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Gent\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/58cce57f-f4d3-4cd7-8468-80b205af0e19/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/58cce57f-f4d3-4cd7-8468-80b205af0e19/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"ddce30cc-0d6b-4930-a2fa-9944b847b135\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Groningen\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/ddce30cc-0d6b-4930-a2fa-9944b847b135/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/ddce30cc-0d6b-4930-a2fa-9944b847b135/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"1a418307-490f-4b03-b841-02336082c0d4\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Herzegovina-Neretva Canton\"\n },\n \"relationships\": {\n \ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/1a418307-490f-4b03-b841-02336082c0d4/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/1a418307-490f-4b03-b841-02336082c0d4/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"e7a8629f-b5bf-45f3-8bfb-80351fd5ca49\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Ieper\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/e7a8629f-b5bf-45f3-8bfb-80351fd5ca49/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/e7a8629f-b5bf-45f3-8bfb-80351fd5ca49/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"118d2314-a173-4bf6-a935-cc13defb6ed6\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"\\u00cele-de-France\"\n },\n \"relationships\": {\n \"\ - country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/118d2314-a173-4bf6-a935-cc13defb6ed6/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/118d2314-a173-4bf6-a935-cc13defb6ed6/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"6cdb85ba-d20b-4998-87eb-af6ec5acceb2\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Istria\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/6cdb85ba-d20b-4998-87eb-af6ec5acceb2/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/6cdb85ba-d20b-4998-87eb-af6ec5acceb2/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"69dd89c2-5d55-4f41-93ec-ac017938eaa7\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Koper, Postojna, Nova Gorica\"\n },\n \"relationships\": {\n\ - \ \"country\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/areas/69dd89c2-5d55-4f41-93ec-ac017938eaa7/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/69dd89c2-5d55-4f41-93ec-ac017938eaa7/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a274119e-b691-4fcf-817b-d1cf876c37ef\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Kortrijk, Mouscron Comines - Warmeton\"\n },\n \"relationships\"\ - : {\n \"country\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/areas/a274119e-b691-4fcf-817b-d1cf876c37ef/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/a274119e-b691-4fcf-817b-d1cf876c37ef/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4a6c1db4-d118-4343-af07-a285f1288a26\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Kranj\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/4a6c1db4-d118-4343-af07-a285f1288a26/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/4a6c1db4-d118-4343-af07-a285f1288a26/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4eb137ec-895f-40ad-a689-73b8fd6797ed\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"KwaZulu - Natal\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/4eb137ec-895f-40ad-a689-73b8fd6797ed/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/4eb137ec-895f-40ad-a689-73b8fd6797ed/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"873ba44a-c496-4c43-8541-18b6a4d1d504\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Lazio\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/873ba44a-c496-4c43-8541-18b6a4d1d504/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/873ba44a-c496-4c43-8541-18b6a4d1d504/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"eb712ca1-9dfe-4ffd-855a-9a07340be4b5\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Liguria\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/eb712ca1-9dfe-4ffd-855a-9a07340be4b5/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/eb712ca1-9dfe-4ffd-855a-9a07340be4b5/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"932444bd-de40-4e73-bc54-d2020e0df58a\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Limburg\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/932444bd-de40-4e73-bc54-d2020e0df58a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/932444bd-de40-4e73-bc54-d2020e0df58a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"29c79e29-03ad-4f6a-9a29-f4e993537709\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Limpopo\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/29c79e29-03ad-4f6a-9a29-f4e993537709/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/29c79e29-03ad-4f6a-9a29-f4e993537709/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"62618df8-0a48-43b0-b4b3-99baa4caf4a5\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Ljubljana\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/62618df8-0a48-43b0-b4b3-99baa4caf4a5/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/62618df8-0a48-43b0-b4b3-99baa4caf4a5/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"2496ff52-39cf-4208-b5b6-d844ca9846c6\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Lombardy\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/2496ff52-39cf-4208-b5b6-d844ca9846c6/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/2496ff52-39cf-4208-b5b6-d844ca9846c6/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"e5becfd4-d028-4da9-8ecb-437cc6d25f87\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Marche\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/e5becfd4-d028-4da9-8ecb-437cc6d25f87/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/e5becfd4-d028-4da9-8ecb-437cc6d25f87/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f2e0cbab-67f8-4ef6-a594-bb7c199bbc97\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Maribor, Murska Sobota, Ravne na Koro\\u0161kem\"\n },\n \"\ - relationships\": {\n \"country\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/areas/f2e0cbab-67f8-4ef6-a594-bb7c199bbc97/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/f2e0cbab-67f8-4ef6-a594-bb7c199bbc97/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"e63c7782-34e3-4ad0-8978-942ea89593b3\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Molise\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/e63c7782-34e3-4ad0-8978-942ea89593b3/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/e63c7782-34e3-4ad0-8978-942ea89593b3/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"58dc3261-364f-48e1-be2e-76e146e2db2a\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Mpumalanga\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/58dc3261-364f-48e1-be2e-76e146e2db2a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/58dc3261-364f-48e1-be2e-76e146e2db2a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4bffd627-b180-4f7d-af9a-4a38958868f7\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Ninove\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/4bffd627-b180-4f7d-af9a-4a38958868f7/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/4bffd627-b180-4f7d-af9a-4a38958868f7/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f9a77fea-dee6-40c3-87a9-3563e3c60597\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Noord Brabant\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/f9a77fea-dee6-40c3-87a9-3563e3c60597/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/f9a77fea-dee6-40c3-87a9-3563e3c60597/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"ec4eb6b9-2502-4414-8a6e-348c20c28ac4\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Noord Holland\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/ec4eb6b9-2502-4414-8a6e-348c20c28ac4/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/ec4eb6b9-2502-4414-8a6e-348c20c28ac4/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"0aed3076-13cd-4df2-bb5f-7664788419ba\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Northeast France\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/0aed3076-13cd-4df2-bb5f-7664788419ba/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/0aed3076-13cd-4df2-bb5f-7664788419ba/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"fe81ac19-de28-464f-961f-5039fd6a488a\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"North West\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/fe81ac19-de28-464f-961f-5039fd6a488a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/fe81ac19-de28-464f-961f-5039fd6a488a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"593e1586-9571-4d1a-97fa-88a98eb4d26b\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Northwest France\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/593e1586-9571-4d1a-97fa-88a98eb4d26b/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/593e1586-9571-4d1a-97fa-88a98eb4d26b/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"bb0440ec-6143-4ab2-a9f0-3ec7a927a82c\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Novo Mesto, Kr\\u0161ko\"\n },\n \"relationships\": {\n \ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/bb0440ec-6143-4ab2-a9f0-3ec7a927a82c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/bb0440ec-6143-4ab2-a9f0-3ec7a927a82c/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b4799af7-95f9-4729-83e2-64e166d9c45f\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Oostende\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/b4799af7-95f9-4729-83e2-64e166d9c45f/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/b4799af7-95f9-4729-83e2-64e166d9c45f/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b0c72342-3eaa-45c8-91b5-3025fc57da6b\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Osijek-Baranja\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/b0c72342-3eaa-45c8-91b5-3025fc57da6b/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/b0c72342-3eaa-45c8-91b5-3025fc57da6b/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"26a3866c-f635-4d5b-8023-10a94ea82aed\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Oudenaarde\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/26a3866c-f635-4d5b-8023-10a94ea82aed/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/26a3866c-f635-4d5b-8023-10a94ea82aed/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"64ef6f73-763a-43ac-8736-db6363ec5dd1\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Overijssel\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/64ef6f73-763a-43ac-8736-db6363ec5dd1/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/64ef6f73-763a-43ac-8736-db6363ec5dd1/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"604448ed-c1e0-4119-a8ef-1d7139addb7a\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Piedmont\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/604448ed-c1e0-4119-a8ef-1d7139addb7a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/604448ed-c1e0-4119-a8ef-1d7139addb7a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b76301b8-81a7-4769-95f5-58e4d6a4c9a3\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Primorje-Gorski Kotar\"\n },\n \"relationships\": {\n \ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/b76301b8-81a7-4769-95f5-58e4d6a4c9a3/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/b76301b8-81a7-4769-95f5-58e4d6a4c9a3/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f5001d81-1284-4917-92fa-74ac8b7967ec\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Roeselare\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/f5001d81-1284-4917-92fa-74ac8b7967ec/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/f5001d81-1284-4917-92fa-74ac8b7967ec/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"5ad45180-619f-478f-a14e-03c6c6331f72\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Sarajevo Canton\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/5ad45180-619f-478f-a14e-03c6c6331f72/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/5ad45180-619f-478f-a14e-03c6c6331f72/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"074f02fe-1cb8-49c6-9539-e0863e2b2473\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Sardinia\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/074f02fe-1cb8-49c6-9539-e0863e2b2473/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/074f02fe-1cb8-49c6-9539-e0863e2b2473/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"04b4019f-96fb-4168-bfca-ef95bb4f009c\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Sicily\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/04b4019f-96fb-4168-bfca-ef95bb4f009c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/04b4019f-96fb-4168-bfca-ef95bb4f009c/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"ee6481a2-c1a5-4cc0-95f0-a11cad981ba5\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Southeast France\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/ee6481a2-c1a5-4cc0-95f0-a11cad981ba5/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/ee6481a2-c1a5-4cc0-95f0-a11cad981ba5/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"6b121fe1-2992-4c41-b9d8-2dc28995b71b\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Southwest France\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/6b121fe1-2992-4c41-b9d8-2dc28995b71b/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/6b121fe1-2992-4c41-b9d8-2dc28995b71b/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"db2a2c8c-a005-4e29-90cf-8f0e28eedd5c\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Split-Dalmatia\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/db2a2c8c-a005-4e29-90cf-8f0e28eedd5c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/db2a2c8c-a005-4e29-90cf-8f0e28eedd5c/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"d863c3a2-a1e8-4ecf-841d-1fc1a4784cce\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Trentino-Alto/Sudtirol\"\n },\n \"relationships\": {\n \ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/d863c3a2-a1e8-4ecf-841d-1fc1a4784cce/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/d863c3a2-a1e8-4ecf-841d-1fc1a4784cce/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"ab2adc18-7c94-42d9-bdde-b28dfc373a22\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Tuscany\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"c9367923-a2bf-4384-8e30-509f383a1c41\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Tuzla Canton\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/c9367923-a2bf-4384-8e30-509f383a1c41/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/c9367923-a2bf-4384-8e30-509f383a1c41/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9fffa34f-ab62-4857-a63f-e72f18daf920\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Umbria\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/9fffa34f-ab62-4857-a63f-e72f18daf920/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/9fffa34f-ab62-4857-a63f-e72f18daf920/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f0d874f2-3be4-4b6b-b40e-8143f4cc81c6\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Utrecht\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/f0d874f2-3be4-4b6b-b40e-8143f4cc81c6/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/f0d874f2-3be4-4b6b-b40e-8143f4cc81c6/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b10b452f-ecb6-4279-bf8c-78b52bdcfb45\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Veneto\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/b10b452f-ecb6-4279-bf8c-78b52bdcfb45/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/b10b452f-ecb6-4279-bf8c-78b52bdcfb45/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"c1ab8401-779b-463f-a5dd-fd9e064a210a\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Veurne\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/c1ab8401-779b-463f-a5dd-fd9e064a210a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/c1ab8401-779b-463f-a5dd-fd9e064a210a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a733779c-8383-4c0f-a424-594be430cd29\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Walloon Region\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/a733779c-8383-4c0f-a424-594be430cd29/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/a733779c-8383-4c0f-a424-594be430cd29/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"2b2aa44a-0c3a-4163-b1a8-eb513bc84059\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Western Cape\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/2b2aa44a-0c3a-4163-b1a8-eb513bc84059/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/2b2aa44a-0c3a-4163-b1a8-eb513bc84059/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"e486f30b-864f-48f8-b4d7-12af925b4789\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Zadar\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/e486f30b-864f-48f8-b4d7-12af925b4789/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/e486f30b-864f-48f8-b4d7-12af925b4789/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"aa583eba-a46b-43ec-b415-44d85ab74aa6\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Zagreb\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/aa583eba-a46b-43ec-b415-44d85ab74aa6/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/aa583eba-a46b-43ec-b415-44d85ab74aa6/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b72b7087-1a23-422e-9b2a-bc7d35563d0f\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Zeeland\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/b72b7087-1a23-422e-9b2a-bc7d35563d0f/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/b72b7087-1a23-422e-9b2a-bc7d35563d0f/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a8a1fe03-36a4-4eea-8c48-1fce4f13b37f\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Zenica-Doboj Canton\"\n },\n \"relationships\": {\n \"\ - country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/a8a1fe03-36a4-4eea-8c48-1fce4f13b37f/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/a8a1fe03-36a4-4eea-8c48-1fce4f13b37f/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"90625ddb-5813-489b-8a8b-dfb98418b4c7\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\":\ - \ \"Zuid Holland\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/90625ddb-5813-489b-8a8b-dfb98418b4c7/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/90625ddb-5813-489b-8a8b-dfb98418b4c7/country\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 127,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"\ - first\": \"https://sandbox-api.didww.com/v3/areas?page%5Bnumber%5D=1&page%5Bsize%5D=1000\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/areas?page%5Bnumber%5D=1&page%5Bsize%5D=1000\"\ - \n }\n}" + string: '{"data":[{"id":"5df464d5-fcc4-4a82-817a-00111c990020","type":"areas","attributes":{"name":"Aalst"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/5df464d5-fcc4-4a82-817a-00111c990020/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/5df464d5-fcc4-4a82-817a-00111c990020/country"}}}},{"id":"b218046e-fb17-47f9-9d50-593b03456996","type":"areas","attributes":{"name":"Abruzzo"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/b218046e-fb17-47f9-9d50-593b03456996/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/b218046e-fb17-47f9-9d50-593b03456996/country"}}}},{"id":"66e27cde-4f2d-4ca2-aacf-bbcebb47f99e","type":"areas","attributes":{"name":"Aosta Valley"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/66e27cde-4f2d-4ca2-aacf-bbcebb47f99e/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/66e27cde-4f2d-4ca2-aacf-bbcebb47f99e/country"}}}},{"id":"5b72a800-fd62-4765-a118-101051920dcb","type":"areas","attributes":{"name":"Apulia"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/5b72a800-fd62-4765-a118-101051920dcb/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/5b72a800-fd62-4765-a118-101051920dcb/country"}}}},{"id":"a0edfb2e-3e34-4c08-86a3-6a456f50fe1e","type":"areas","attributes":{"name":"Area code 1"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/a0edfb2e-3e34-4c08-86a3-6a456f50fe1e/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/a0edfb2e-3e34-4c08-86a3-6a456f50fe1e/country"}}}},{"id":"31bbda1a-3acb-4e33-b520-33063c03fab3","type":"areas","attributes":{"name":"Area code 21"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/31bbda1a-3acb-4e33-b520-33063c03fab3/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/31bbda1a-3acb-4e33-b520-33063c03fab3/country"}}}},{"id":"7c993328-a982-4f93-87b5-8eb0ad580889","type":"areas","attributes":{"name":"Area code 22"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/7c993328-a982-4f93-87b5-8eb0ad580889/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/7c993328-a982-4f93-87b5-8eb0ad580889/country"}}}},{"id":"e82ad303-45b0-43ac-a81c-b7c1a5544582","type":"areas","attributes":{"name":"Area code 23"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/e82ad303-45b0-43ac-a81c-b7c1a5544582/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/e82ad303-45b0-43ac-a81c-b7c1a5544582/country"}}}},{"id":"9b45e6a4-0d1e-425d-84f4-a0cd0047dc75","type":"areas","attributes":{"name":"Area code 24"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/9b45e6a4-0d1e-425d-84f4-a0cd0047dc75/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/9b45e6a4-0d1e-425d-84f4-a0cd0047dc75/country"}}}},{"id":"fb10cd78-f890-425f-9a70-0fdc6cb99b88","type":"areas","attributes":{"name":"Area code 25"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/fb10cd78-f890-425f-9a70-0fdc6cb99b88/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/fb10cd78-f890-425f-9a70-0fdc6cb99b88/country"}}}},{"id":"b2fbf0bb-33dd-483e-857c-19a79de9c1d3","type":"areas","attributes":{"name":"Area code 26"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/b2fbf0bb-33dd-483e-857c-19a79de9c1d3/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/b2fbf0bb-33dd-483e-857c-19a79de9c1d3/country"}}}},{"id":"ff5afa64-2231-45e6-95a0-5b3b7d5a0dd2","type":"areas","attributes":{"name":"Area code 27"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/ff5afa64-2231-45e6-95a0-5b3b7d5a0dd2/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/ff5afa64-2231-45e6-95a0-5b3b7d5a0dd2/country"}}}},{"id":"9e52b6ee-e627-4d4e-bc68-790c5fb456c8","type":"areas","attributes":{"name":"Area code 28"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/9e52b6ee-e627-4d4e-bc68-790c5fb456c8/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/9e52b6ee-e627-4d4e-bc68-790c5fb456c8/country"}}}},{"id":"64696564-ee11-42fd-8462-915bfaf13f68","type":"areas","attributes":{"name":"Area code 29"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/64696564-ee11-42fd-8462-915bfaf13f68/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/64696564-ee11-42fd-8462-915bfaf13f68/country"}}}},{"id":"5ce7d1ba-2461-49ff-804d-d7f616511634","type":"areas","attributes":{"name":"Area code 402"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/5ce7d1ba-2461-49ff-804d-d7f616511634/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/5ce7d1ba-2461-49ff-804d-d7f616511634/country"}}}},{"id":"3fcac095-104d-4de3-9733-6e027e5c81f2","type":"areas","attributes":{"name":"Area code 404"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/3fcac095-104d-4de3-9733-6e027e5c81f2/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/3fcac095-104d-4de3-9733-6e027e5c81f2/country"}}}},{"id":"453bf8be-9de6-490d-bf2a-7c9988d73385","type":"areas","attributes":{"name":"Area code 41"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/453bf8be-9de6-490d-bf2a-7c9988d73385/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/453bf8be-9de6-490d-bf2a-7c9988d73385/country"}}}},{"id":"16123617-9372-4f3f-ae9a-bbcabf73f522","type":"areas","attributes":{"name":"Area code 42"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/16123617-9372-4f3f-ae9a-bbcabf73f522/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/16123617-9372-4f3f-ae9a-bbcabf73f522/country"}}}},{"id":"297ab459-af72-48ef-8724-9d5dc8e95681","type":"areas","attributes":{"name":"Area code 43"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/297ab459-af72-48ef-8724-9d5dc8e95681/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/297ab459-af72-48ef-8724-9d5dc8e95681/country"}}}},{"id":"33fe4a78-f8eb-4dac-bc21-2b4d96e78bd8","type":"areas","attributes":{"name":"Area code 44"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/33fe4a78-f8eb-4dac-bc21-2b4d96e78bd8/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/33fe4a78-f8eb-4dac-bc21-2b4d96e78bd8/country"}}}},{"id":"cebda46e-cb14-4a5c-82f4-c64339f76523","type":"areas","attributes":{"name":"Area code 45"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/cebda46e-cb14-4a5c-82f4-c64339f76523/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/cebda46e-cb14-4a5c-82f4-c64339f76523/country"}}}},{"id":"4e3468b8-c422-4bfe-83d0-15dc6d66997a","type":"areas","attributes":{"name":"Area code 46"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/4e3468b8-c422-4bfe-83d0-15dc6d66997a/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/4e3468b8-c422-4bfe-83d0-15dc6d66997a/country"}}}},{"id":"acaf294a-4459-4c0e-b9dc-b69f89d87325","type":"areas","attributes":{"name":"Area code 47"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/acaf294a-4459-4c0e-b9dc-b69f89d87325/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/acaf294a-4459-4c0e-b9dc-b69f89d87325/country"}}}},{"id":"e11dfb74-1786-41a3-8247-b97911e3eb03","type":"areas","attributes":{"name":"Area code 49"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/e11dfb74-1786-41a3-8247-b97911e3eb03/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/e11dfb74-1786-41a3-8247-b97911e3eb03/country"}}}},{"id":"7bb1d6c6-1f7b-476f-8f4b-afbd4f6c948c","type":"areas","attributes":{"name":"Area code 504"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/7bb1d6c6-1f7b-476f-8f4b-afbd4f6c948c/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/7bb1d6c6-1f7b-476f-8f4b-afbd4f6c948c/country"}}}},{"id":"7f65a0ed-4bed-4cb0-addd-1d9ae40392d8","type":"areas","attributes":{"name":"Area code 505"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/7f65a0ed-4bed-4cb0-addd-1d9ae40392d8/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/7f65a0ed-4bed-4cb0-addd-1d9ae40392d8/country"}}}},{"id":"fbe2fd57-9881-46e8-9e01-079268d7fdb0","type":"areas","attributes":{"name":"Area code 51"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/fbe2fd57-9881-46e8-9e01-079268d7fdb0/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/fbe2fd57-9881-46e8-9e01-079268d7fdb0/country"}}}},{"id":"a1f8412f-50b1-4f72-b69a-e5e725bb6659","type":"areas","attributes":{"name":"Area code 52"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/a1f8412f-50b1-4f72-b69a-e5e725bb6659/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/a1f8412f-50b1-4f72-b69a-e5e725bb6659/country"}}}},{"id":"f936111e-f5f1-45de-b967-f7ca60d64ae1","type":"areas","attributes":{"name":"Area code 53"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/f936111e-f5f1-45de-b967-f7ca60d64ae1/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/f936111e-f5f1-45de-b967-f7ca60d64ae1/country"}}}},{"id":"20a23c1f-a739-4731-8bc8-096fe1ae4501","type":"areas","attributes":{"name":"Area code 56"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/20a23c1f-a739-4731-8bc8-096fe1ae4501/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/20a23c1f-a739-4731-8bc8-096fe1ae4501/country"}}}},{"id":"fa417b29-d776-486f-bf4f-6daf62e4c2c9","type":"areas","attributes":{"name":"Area code 57"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/fa417b29-d776-486f-bf4f-6daf62e4c2c9/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/fa417b29-d776-486f-bf4f-6daf62e4c2c9/country"}}}},{"id":"4c5d448e-1e93-4cc2-a579-d8b61fb70a19","type":"areas","attributes":{"name":"Area code 58"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/4c5d448e-1e93-4cc2-a579-d8b61fb70a19/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/4c5d448e-1e93-4cc2-a579-d8b61fb70a19/country"}}}},{"id":"85b99f74-a7eb-4c51-a551-b25a84774f6f","type":"areas","attributes":{"name":"Area code 59"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/85b99f74-a7eb-4c51-a551-b25a84774f6f/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/85b99f74-a7eb-4c51-a551-b25a84774f6f/country"}}}},{"id":"4d74e586-4e15-4e44-a6ee-2c7ead26a39b","type":"areas","attributes":{"name":"Area code 61"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/4d74e586-4e15-4e44-a6ee-2c7ead26a39b/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/4d74e586-4e15-4e44-a6ee-2c7ead26a39b/country"}}}},{"id":"14c53a9d-7a99-472e-8982-2baa166ece4a","type":"areas","attributes":{"name":"Area code 62"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/14c53a9d-7a99-472e-8982-2baa166ece4a/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/14c53a9d-7a99-472e-8982-2baa166ece4a/country"}}}},{"id":"a33429dc-e7a6-461b-86f1-c5ca5f5adbc6","type":"areas","attributes":{"name":"Area code 63"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/a33429dc-e7a6-461b-86f1-c5ca5f5adbc6/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/a33429dc-e7a6-461b-86f1-c5ca5f5adbc6/country"}}}},{"id":"8325eeeb-c74e-4c71-b262-919253d8d67f","type":"areas","attributes":{"name":"Area code 64"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/8325eeeb-c74e-4c71-b262-919253d8d67f/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/8325eeeb-c74e-4c71-b262-919253d8d67f/country"}}}},{"id":"9fab1c16-3555-4c78-a27f-5b16197d2b5c","type":"areas","attributes":{"name":"Area code 65"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/9fab1c16-3555-4c78-a27f-5b16197d2b5c/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/9fab1c16-3555-4c78-a27f-5b16197d2b5c/country"}}}},{"id":"f5e349a8-4108-4f15-b549-3d3a49f6fd38","type":"areas","attributes":{"name":"Area code 66"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/f5e349a8-4108-4f15-b549-3d3a49f6fd38/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/f5e349a8-4108-4f15-b549-3d3a49f6fd38/country"}}}},{"id":"fa15fd99-4fca-49bf-ae41-d63112031e6a","type":"areas","attributes":{"name":"Area code 67"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/fa15fd99-4fca-49bf-ae41-d63112031e6a/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/fa15fd99-4fca-49bf-ae41-d63112031e6a/country"}}}},{"id":"d2d6bc4f-1444-48cc-922e-2cd31eeba653","type":"areas","attributes":{"name":"Area code 68"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/d2d6bc4f-1444-48cc-922e-2cd31eeba653/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/d2d6bc4f-1444-48cc-922e-2cd31eeba653/country"}}}},{"id":"a91b1571-0f55-43be-aef0-5b30855aa980","type":"areas","attributes":{"name":"Area code 69"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/a91b1571-0f55-43be-aef0-5b30855aa980/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/a91b1571-0f55-43be-aef0-5b30855aa980/country"}}}},{"id":"1e950978-6ad7-4b95-afc0-5be519ab0838","type":"areas","attributes":{"name":"Area code 71"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/1e950978-6ad7-4b95-afc0-5be519ab0838/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/1e950978-6ad7-4b95-afc0-5be519ab0838/country"}}}},{"id":"991f0177-babe-4b1d-8416-69866e053a97","type":"areas","attributes":{"name":"Area code 74"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/991f0177-babe-4b1d-8416-69866e053a97/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/991f0177-babe-4b1d-8416-69866e053a97/country"}}}},{"id":"de8d71f7-2a56-4f90-9a93-773a25238804","type":"areas","attributes":{"name":"Area code 90"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/de8d71f7-2a56-4f90-9a93-773a25238804/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/de8d71f7-2a56-4f90-9a93-773a25238804/country"}}}},{"id":"6e2a4432-b4eb-42ae-8fdd-086885172295","type":"areas","attributes":{"name":"Area code 91"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/6e2a4432-b4eb-42ae-8fdd-086885172295/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/6e2a4432-b4eb-42ae-8fdd-086885172295/country"}}}},{"id":"da9a4e43-571d-4ef8-8411-b2b4b07dbd3c","type":"areas","attributes":{"name":"Area code 93"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/da9a4e43-571d-4ef8-8411-b2b4b07dbd3c/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/da9a4e43-571d-4ef8-8411-b2b4b07dbd3c/country"}}}},{"id":"bad69827-ca85-4ad1-acd2-37f06d1c97d5","type":"areas","attributes":{"name":"Area code 94"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/bad69827-ca85-4ad1-acd2-37f06d1c97d5/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/bad69827-ca85-4ad1-acd2-37f06d1c97d5/country"}}}},{"id":"670e5a0f-4f57-4ce1-acde-0cb268e9a9d0","type":"areas","attributes":{"name":"Area code 95"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/670e5a0f-4f57-4ce1-acde-0cb268e9a9d0/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/670e5a0f-4f57-4ce1-acde-0cb268e9a9d0/country"}}}},{"id":"dfc2c4d0-6b33-46ae-a55c-08186d692557","type":"areas","attributes":{"name":"Area code 96"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/dfc2c4d0-6b33-46ae-a55c-08186d692557/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/dfc2c4d0-6b33-46ae-a55c-08186d692557/country"}}}},{"id":"5c212467-18ce-4fa3-9ad4-27e459cb49ad","type":"areas","attributes":{"name":"Area code 97"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/5c212467-18ce-4fa3-9ad4-27e459cb49ad/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/5c212467-18ce-4fa3-9ad4-27e459cb49ad/country"}}}},{"id":"b867825a-73d0-46dd-8f6e-37d3a2b0e33b","type":"areas","attributes":{"name":"Area code 98"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/b867825a-73d0-46dd-8f6e-37d3a2b0e33b/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/b867825a-73d0-46dd-8f6e-37d3a2b0e33b/country"}}}},{"id":"4bbc04d0-48bd-4fee-8a4f-597ff9da62c8","type":"areas","attributes":{"name":"Area code 99"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/4bbc04d0-48bd-4fee-8a4f-597ff9da62c8/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/4bbc04d0-48bd-4fee-8a4f-597ff9da62c8/country"}}}},{"id":"9c956393-9d21-4d90-9108-3d6fff71bce7","type":"areas","attributes":{"name":"Banja Luka"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/9c956393-9d21-4d90-9108-3d6fff71bce7/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/9c956393-9d21-4d90-9108-3d6fff71bce7/country"}}}},{"id":"efcc0a76-dd77-4256-b0ad-b24fd55a71df","type":"areas","attributes":{"name":"Basilicata"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/efcc0a76-dd77-4256-b0ad-b24fd55a71df/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/efcc0a76-dd77-4256-b0ad-b24fd55a71df/country"}}}},{"id":"d964fb43-5e2e-4dad-acd6-496f57be7a87","type":"areas","attributes":{"name":"Belgrade"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/d964fb43-5e2e-4dad-acd6-496f57be7a87/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/d964fb43-5e2e-4dad-acd6-496f57be7a87/country"}}}},{"id":"f1f01e58-c664-412c-9c57-ebdc7872ab37","type":"areas","attributes":{"name":"Brugge"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/f1f01e58-c664-412c-9c57-ebdc7872ab37/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/f1f01e58-c664-412c-9c57-ebdc7872ab37/country"}}}},{"id":"c15ff02e-4a98-4f17-bb3c-f8e685a10687","type":"areas","attributes":{"name":"Brussels-Capital Region"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/c15ff02e-4a98-4f17-bb3c-f8e685a10687/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/c15ff02e-4a98-4f17-bb3c-f8e685a10687/country"}}}},{"id":"9a5ca4f5-9161-4c8d-bd89-fa56bf1bcd3b","type":"areas","attributes":{"name":"Calabria"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/9a5ca4f5-9161-4c8d-bd89-fa56bf1bcd3b/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/9a5ca4f5-9161-4c8d-bd89-fa56bf1bcd3b/country"}}}},{"id":"9eb7cf03-9bf3-4e37-b7c1-7c2a9e465b9b","type":"areas","attributes":{"name":"Campania"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/9eb7cf03-9bf3-4e37-b7c1-7c2a9e465b9b/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/9eb7cf03-9bf3-4e37-b7c1-7c2a9e465b9b/country"}}}},{"id":"191d2d7e-ec0c-4581-885a-5bbfb58484ec","type":"areas","attributes":{"name":"Celje, Trbovlje"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/191d2d7e-ec0c-4581-885a-5bbfb58484ec/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/191d2d7e-ec0c-4581-885a-5bbfb58484ec/country"}}}},{"id":"b59902c1-dda0-4c0a-9528-7e3760d68076","type":"areas","attributes":{"name":"Dendermonde"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/b59902c1-dda0-4c0a-9528-7e3760d68076/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/b59902c1-dda0-4c0a-9528-7e3760d68076/country"}}}},{"id":"1d01ead0-18eb-44c1-9247-c3ac8c7153c1","type":"areas","attributes":{"name":"Drenthe"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/1d01ead0-18eb-44c1-9247-c3ac8c7153c1/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/1d01ead0-18eb-44c1-9247-c3ac8c7153c1/country"}}}},{"id":"90d9cc5b-1de1-4c2f-8e0c-d9b0055e18d0","type":"areas","attributes":{"name":"Dubrovnik-Neretva"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/90d9cc5b-1de1-4c2f-8e0c-d9b0055e18d0/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/90d9cc5b-1de1-4c2f-8e0c-d9b0055e18d0/country"}}}},{"id":"9ab24f05-6bb4-457f-8abb-059d7c6e151a","type":"areas","attributes":{"name":"Eastern Cape"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/9ab24f05-6bb4-457f-8abb-059d7c6e151a/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/9ab24f05-6bb4-457f-8abb-059d7c6e151a/country"}}}},{"id":"41feeeec-fd8e-444d-8601-5ddb2b0522f9","type":"areas","attributes":{"name":"Emilia-Romagna"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/41feeeec-fd8e-444d-8601-5ddb2b0522f9/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/41feeeec-fd8e-444d-8601-5ddb2b0522f9/country"}}}},{"id":"a782da4a-c99e-49a5-a98a-8de055fede8c","type":"areas","attributes":{"name":"Flemish Region"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/a782da4a-c99e-49a5-a98a-8de055fede8c/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/a782da4a-c99e-49a5-a98a-8de055fede8c/country"}}}},{"id":"90a7c8d3-b084-480d-a3f7-3b2932facb6d","type":"areas","attributes":{"name":"Flevoland"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/90a7c8d3-b084-480d-a3f7-3b2932facb6d/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/90a7c8d3-b084-480d-a3f7-3b2932facb6d/country"}}}},{"id":"4544817f-7edd-4093-845f-25bccbe4eb9a","type":"areas","attributes":{"name":"Free State"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/4544817f-7edd-4093-845f-25bccbe4eb9a/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/4544817f-7edd-4093-845f-25bccbe4eb9a/country"}}}},{"id":"5849b239-7fe4-4a07-90bb-4660a2cdb6cf","type":"areas","attributes":{"name":"Friesland"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/5849b239-7fe4-4a07-90bb-4660a2cdb6cf/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/5849b239-7fe4-4a07-90bb-4660a2cdb6cf/country"}}}},{"id":"df8542d4-9c93-4b30-8c33-70f8b09c322a","type":"areas","attributes":{"name":"Friuli-Venezia Giulia"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/df8542d4-9c93-4b30-8c33-70f8b09c322a/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/df8542d4-9c93-4b30-8c33-70f8b09c322a/country"}}}},{"id":"5113bc38-fdfe-4b3c-b58e-a61280175118","type":"areas","attributes":{"name":"Gauteng"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/5113bc38-fdfe-4b3c-b58e-a61280175118/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/5113bc38-fdfe-4b3c-b58e-a61280175118/country"}}}},{"id":"223a83f4-735e-4779-af1e-1d2f596f5fa2","type":"areas","attributes":{"name":"Gelderland"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/223a83f4-735e-4779-af1e-1d2f596f5fa2/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/223a83f4-735e-4779-af1e-1d2f596f5fa2/country"}}}},{"id":"58cce57f-f4d3-4cd7-8468-80b205af0e19","type":"areas","attributes":{"name":"Gent"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/58cce57f-f4d3-4cd7-8468-80b205af0e19/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/58cce57f-f4d3-4cd7-8468-80b205af0e19/country"}}}},{"id":"ddce30cc-0d6b-4930-a2fa-9944b847b135","type":"areas","attributes":{"name":"Groningen"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/ddce30cc-0d6b-4930-a2fa-9944b847b135/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/ddce30cc-0d6b-4930-a2fa-9944b847b135/country"}}}},{"id":"1a418307-490f-4b03-b841-02336082c0d4","type":"areas","attributes":{"name":"Herzegovina-Neretva Canton"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/1a418307-490f-4b03-b841-02336082c0d4/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/1a418307-490f-4b03-b841-02336082c0d4/country"}}}},{"id":"e7a8629f-b5bf-45f3-8bfb-80351fd5ca49","type":"areas","attributes":{"name":"Ieper"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/e7a8629f-b5bf-45f3-8bfb-80351fd5ca49/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/e7a8629f-b5bf-45f3-8bfb-80351fd5ca49/country"}}}},{"id":"118d2314-a173-4bf6-a935-cc13defb6ed6","type":"areas","attributes":{"name":"Île-de-France"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/118d2314-a173-4bf6-a935-cc13defb6ed6/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/118d2314-a173-4bf6-a935-cc13defb6ed6/country"}}}},{"id":"6cdb85ba-d20b-4998-87eb-af6ec5acceb2","type":"areas","attributes":{"name":"Istria"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/6cdb85ba-d20b-4998-87eb-af6ec5acceb2/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/6cdb85ba-d20b-4998-87eb-af6ec5acceb2/country"}}}},{"id":"69dd89c2-5d55-4f41-93ec-ac017938eaa7","type":"areas","attributes":{"name":"Koper, Postojna, Nova Gorica"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/69dd89c2-5d55-4f41-93ec-ac017938eaa7/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/69dd89c2-5d55-4f41-93ec-ac017938eaa7/country"}}}},{"id":"a274119e-b691-4fcf-817b-d1cf876c37ef","type":"areas","attributes":{"name":"Kortrijk, Mouscron Comines - Warmeton"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/a274119e-b691-4fcf-817b-d1cf876c37ef/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/a274119e-b691-4fcf-817b-d1cf876c37ef/country"}}}},{"id":"4a6c1db4-d118-4343-af07-a285f1288a26","type":"areas","attributes":{"name":"Kranj"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/4a6c1db4-d118-4343-af07-a285f1288a26/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/4a6c1db4-d118-4343-af07-a285f1288a26/country"}}}},{"id":"4eb137ec-895f-40ad-a689-73b8fd6797ed","type":"areas","attributes":{"name":"KwaZulu - Natal"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/4eb137ec-895f-40ad-a689-73b8fd6797ed/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/4eb137ec-895f-40ad-a689-73b8fd6797ed/country"}}}},{"id":"873ba44a-c496-4c43-8541-18b6a4d1d504","type":"areas","attributes":{"name":"Lazio"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/873ba44a-c496-4c43-8541-18b6a4d1d504/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/873ba44a-c496-4c43-8541-18b6a4d1d504/country"}}}},{"id":"eb712ca1-9dfe-4ffd-855a-9a07340be4b5","type":"areas","attributes":{"name":"Liguria"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/eb712ca1-9dfe-4ffd-855a-9a07340be4b5/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/eb712ca1-9dfe-4ffd-855a-9a07340be4b5/country"}}}},{"id":"932444bd-de40-4e73-bc54-d2020e0df58a","type":"areas","attributes":{"name":"Limburg"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/932444bd-de40-4e73-bc54-d2020e0df58a/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/932444bd-de40-4e73-bc54-d2020e0df58a/country"}}}},{"id":"29c79e29-03ad-4f6a-9a29-f4e993537709","type":"areas","attributes":{"name":"Limpopo"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/29c79e29-03ad-4f6a-9a29-f4e993537709/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/29c79e29-03ad-4f6a-9a29-f4e993537709/country"}}}},{"id":"62618df8-0a48-43b0-b4b3-99baa4caf4a5","type":"areas","attributes":{"name":"Ljubljana"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/62618df8-0a48-43b0-b4b3-99baa4caf4a5/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/62618df8-0a48-43b0-b4b3-99baa4caf4a5/country"}}}},{"id":"2496ff52-39cf-4208-b5b6-d844ca9846c6","type":"areas","attributes":{"name":"Lombardy"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/2496ff52-39cf-4208-b5b6-d844ca9846c6/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/2496ff52-39cf-4208-b5b6-d844ca9846c6/country"}}}},{"id":"e5becfd4-d028-4da9-8ecb-437cc6d25f87","type":"areas","attributes":{"name":"Marche"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/e5becfd4-d028-4da9-8ecb-437cc6d25f87/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/e5becfd4-d028-4da9-8ecb-437cc6d25f87/country"}}}},{"id":"f2e0cbab-67f8-4ef6-a594-bb7c199bbc97","type":"areas","attributes":{"name":"Maribor, Murska Sobota, Ravne na Koroškem"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/f2e0cbab-67f8-4ef6-a594-bb7c199bbc97/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/f2e0cbab-67f8-4ef6-a594-bb7c199bbc97/country"}}}},{"id":"e63c7782-34e3-4ad0-8978-942ea89593b3","type":"areas","attributes":{"name":"Molise"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/e63c7782-34e3-4ad0-8978-942ea89593b3/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/e63c7782-34e3-4ad0-8978-942ea89593b3/country"}}}},{"id":"58dc3261-364f-48e1-be2e-76e146e2db2a","type":"areas","attributes":{"name":"Mpumalanga"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/58dc3261-364f-48e1-be2e-76e146e2db2a/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/58dc3261-364f-48e1-be2e-76e146e2db2a/country"}}}},{"id":"4bffd627-b180-4f7d-af9a-4a38958868f7","type":"areas","attributes":{"name":"Ninove"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/4bffd627-b180-4f7d-af9a-4a38958868f7/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/4bffd627-b180-4f7d-af9a-4a38958868f7/country"}}}},{"id":"f9a77fea-dee6-40c3-87a9-3563e3c60597","type":"areas","attributes":{"name":"Noord Brabant"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/f9a77fea-dee6-40c3-87a9-3563e3c60597/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/f9a77fea-dee6-40c3-87a9-3563e3c60597/country"}}}},{"id":"ec4eb6b9-2502-4414-8a6e-348c20c28ac4","type":"areas","attributes":{"name":"Noord Holland"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/ec4eb6b9-2502-4414-8a6e-348c20c28ac4/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/ec4eb6b9-2502-4414-8a6e-348c20c28ac4/country"}}}},{"id":"0aed3076-13cd-4df2-bb5f-7664788419ba","type":"areas","attributes":{"name":"Northeast France"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/0aed3076-13cd-4df2-bb5f-7664788419ba/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/0aed3076-13cd-4df2-bb5f-7664788419ba/country"}}}},{"id":"fe81ac19-de28-464f-961f-5039fd6a488a","type":"areas","attributes":{"name":"North West"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/fe81ac19-de28-464f-961f-5039fd6a488a/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/fe81ac19-de28-464f-961f-5039fd6a488a/country"}}}},{"id":"593e1586-9571-4d1a-97fa-88a98eb4d26b","type":"areas","attributes":{"name":"Northwest France"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/593e1586-9571-4d1a-97fa-88a98eb4d26b/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/593e1586-9571-4d1a-97fa-88a98eb4d26b/country"}}}},{"id":"bb0440ec-6143-4ab2-a9f0-3ec7a927a82c","type":"areas","attributes":{"name":"Novo Mesto, Krško"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/bb0440ec-6143-4ab2-a9f0-3ec7a927a82c/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/bb0440ec-6143-4ab2-a9f0-3ec7a927a82c/country"}}}},{"id":"b4799af7-95f9-4729-83e2-64e166d9c45f","type":"areas","attributes":{"name":"Oostende"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/b4799af7-95f9-4729-83e2-64e166d9c45f/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/b4799af7-95f9-4729-83e2-64e166d9c45f/country"}}}},{"id":"b0c72342-3eaa-45c8-91b5-3025fc57da6b","type":"areas","attributes":{"name":"Osijek-Baranja"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/b0c72342-3eaa-45c8-91b5-3025fc57da6b/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/b0c72342-3eaa-45c8-91b5-3025fc57da6b/country"}}}},{"id":"26a3866c-f635-4d5b-8023-10a94ea82aed","type":"areas","attributes":{"name":"Oudenaarde"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/26a3866c-f635-4d5b-8023-10a94ea82aed/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/26a3866c-f635-4d5b-8023-10a94ea82aed/country"}}}},{"id":"64ef6f73-763a-43ac-8736-db6363ec5dd1","type":"areas","attributes":{"name":"Overijssel"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/64ef6f73-763a-43ac-8736-db6363ec5dd1/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/64ef6f73-763a-43ac-8736-db6363ec5dd1/country"}}}},{"id":"604448ed-c1e0-4119-a8ef-1d7139addb7a","type":"areas","attributes":{"name":"Piedmont"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/604448ed-c1e0-4119-a8ef-1d7139addb7a/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/604448ed-c1e0-4119-a8ef-1d7139addb7a/country"}}}},{"id":"b76301b8-81a7-4769-95f5-58e4d6a4c9a3","type":"areas","attributes":{"name":"Primorje-Gorski Kotar"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/b76301b8-81a7-4769-95f5-58e4d6a4c9a3/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/b76301b8-81a7-4769-95f5-58e4d6a4c9a3/country"}}}},{"id":"f5001d81-1284-4917-92fa-74ac8b7967ec","type":"areas","attributes":{"name":"Roeselare"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/f5001d81-1284-4917-92fa-74ac8b7967ec/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/f5001d81-1284-4917-92fa-74ac8b7967ec/country"}}}},{"id":"5ad45180-619f-478f-a14e-03c6c6331f72","type":"areas","attributes":{"name":"Sarajevo Canton"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/5ad45180-619f-478f-a14e-03c6c6331f72/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/5ad45180-619f-478f-a14e-03c6c6331f72/country"}}}},{"id":"074f02fe-1cb8-49c6-9539-e0863e2b2473","type":"areas","attributes":{"name":"Sardinia"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/074f02fe-1cb8-49c6-9539-e0863e2b2473/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/074f02fe-1cb8-49c6-9539-e0863e2b2473/country"}}}},{"id":"04b4019f-96fb-4168-bfca-ef95bb4f009c","type":"areas","attributes":{"name":"Sicily"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/04b4019f-96fb-4168-bfca-ef95bb4f009c/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/04b4019f-96fb-4168-bfca-ef95bb4f009c/country"}}}},{"id":"ee6481a2-c1a5-4cc0-95f0-a11cad981ba5","type":"areas","attributes":{"name":"Southeast France"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/ee6481a2-c1a5-4cc0-95f0-a11cad981ba5/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/ee6481a2-c1a5-4cc0-95f0-a11cad981ba5/country"}}}},{"id":"6b121fe1-2992-4c41-b9d8-2dc28995b71b","type":"areas","attributes":{"name":"Southwest France"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/6b121fe1-2992-4c41-b9d8-2dc28995b71b/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/6b121fe1-2992-4c41-b9d8-2dc28995b71b/country"}}}},{"id":"db2a2c8c-a005-4e29-90cf-8f0e28eedd5c","type":"areas","attributes":{"name":"Split-Dalmatia"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/db2a2c8c-a005-4e29-90cf-8f0e28eedd5c/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/db2a2c8c-a005-4e29-90cf-8f0e28eedd5c/country"}}}},{"id":"d863c3a2-a1e8-4ecf-841d-1fc1a4784cce","type":"areas","attributes":{"name":"Trentino-Alto/Sudtirol"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/d863c3a2-a1e8-4ecf-841d-1fc1a4784cce/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/d863c3a2-a1e8-4ecf-841d-1fc1a4784cce/country"}}}},{"id":"ab2adc18-7c94-42d9-bdde-b28dfc373a22","type":"areas","attributes":{"name":"Tuscany"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/country"}}}},{"id":"c9367923-a2bf-4384-8e30-509f383a1c41","type":"areas","attributes":{"name":"Tuzla Canton"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/c9367923-a2bf-4384-8e30-509f383a1c41/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/c9367923-a2bf-4384-8e30-509f383a1c41/country"}}}},{"id":"9fffa34f-ab62-4857-a63f-e72f18daf920","type":"areas","attributes":{"name":"Umbria"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/9fffa34f-ab62-4857-a63f-e72f18daf920/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/9fffa34f-ab62-4857-a63f-e72f18daf920/country"}}}},{"id":"f0d874f2-3be4-4b6b-b40e-8143f4cc81c6","type":"areas","attributes":{"name":"Utrecht"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/f0d874f2-3be4-4b6b-b40e-8143f4cc81c6/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/f0d874f2-3be4-4b6b-b40e-8143f4cc81c6/country"}}}},{"id":"b10b452f-ecb6-4279-bf8c-78b52bdcfb45","type":"areas","attributes":{"name":"Veneto"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/b10b452f-ecb6-4279-bf8c-78b52bdcfb45/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/b10b452f-ecb6-4279-bf8c-78b52bdcfb45/country"}}}},{"id":"c1ab8401-779b-463f-a5dd-fd9e064a210a","type":"areas","attributes":{"name":"Veurne"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/c1ab8401-779b-463f-a5dd-fd9e064a210a/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/c1ab8401-779b-463f-a5dd-fd9e064a210a/country"}}}},{"id":"a733779c-8383-4c0f-a424-594be430cd29","type":"areas","attributes":{"name":"Walloon Region"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/a733779c-8383-4c0f-a424-594be430cd29/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/a733779c-8383-4c0f-a424-594be430cd29/country"}}}},{"id":"2b2aa44a-0c3a-4163-b1a8-eb513bc84059","type":"areas","attributes":{"name":"Western Cape"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/2b2aa44a-0c3a-4163-b1a8-eb513bc84059/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/2b2aa44a-0c3a-4163-b1a8-eb513bc84059/country"}}}},{"id":"e486f30b-864f-48f8-b4d7-12af925b4789","type":"areas","attributes":{"name":"Zadar"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/e486f30b-864f-48f8-b4d7-12af925b4789/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/e486f30b-864f-48f8-b4d7-12af925b4789/country"}}}},{"id":"aa583eba-a46b-43ec-b415-44d85ab74aa6","type":"areas","attributes":{"name":"Zagreb"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/aa583eba-a46b-43ec-b415-44d85ab74aa6/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/aa583eba-a46b-43ec-b415-44d85ab74aa6/country"}}}},{"id":"b72b7087-1a23-422e-9b2a-bc7d35563d0f","type":"areas","attributes":{"name":"Zeeland"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/b72b7087-1a23-422e-9b2a-bc7d35563d0f/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/b72b7087-1a23-422e-9b2a-bc7d35563d0f/country"}}}},{"id":"a8a1fe03-36a4-4eea-8c48-1fce4f13b37f","type":"areas","attributes":{"name":"Zenica-Doboj Canton"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/a8a1fe03-36a4-4eea-8c48-1fce4f13b37f/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/a8a1fe03-36a4-4eea-8c48-1fce4f13b37f/country"}}}},{"id":"90625ddb-5813-489b-8a8b-dfb98418b4c7","type":"areas","attributes":{"name":"Zuid Holland"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/90625ddb-5813-489b-8a8b-dfb98418b4c7/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/90625ddb-5813-489b-8a8b-dfb98418b4c7/country"}}}}],"meta":{"total_records":127,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/areas?page%5Bnumber%5D=1&page%5Bsize%5D=1000","last":"https://sandbox-api.didww.com/v3/areas?page%5Bnumber%5D=1&page%5Bsize%5D=1000"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/areas/show.yaml b/tests/fixtures/areas/show.yaml index 21f95b2..94e148d 100644 --- a/tests/fixtures/areas/show.yaml +++ b/tests/fixtures/areas/show.yaml @@ -12,21 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22 response: body: - string: "{\n \"data\": {\n \"id\": \"ab2adc18-7c94-42d9-bdde-b28dfc373a22\"\ - ,\n \"type\": \"areas\",\n \"attributes\": {\n \"name\": \"Tuscany\"\ - \n },\n \"relationships\": {\n \"country\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\",\n \ - \ \"id\": \"05baebb6-4053-4870-acd6-8491eb200e0b\"\n }\n \ - \ }\n }\n },\n \"included\": [\n {\n \"id\": \"05baebb6-4053-4870-acd6-8491eb200e0b\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Italy\",\n \"prefix\": \"39\",\n \"iso\": \"IT\"\n \ - \ },\n \"relationships\": {\n \"regions\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/countries/05baebb6-4053-4870-acd6-8491eb200e0b/relationships/regions\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/countries/05baebb6-4053-4870-acd6-8491eb200e0b/regions\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"api_version\"\ - : \"2021-04-19\"\n }\n}" + string: '{"data":{"id":"ab2adc18-7c94-42d9-bdde-b28dfc373a22","type":"areas","attributes":{"name":"Tuscany"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/country"},"data":{"type":"countries","id":"05baebb6-4053-4870-acd6-8491eb200e0b"}}}},"included":[{"id":"05baebb6-4053-4870-acd6-8491eb200e0b","type":"countries","attributes":{"name":"Italy","prefix":"39","iso":"IT"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/05baebb6-4053-4870-acd6-8491eb200e0b/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/05baebb6-4053-4870-acd6-8491eb200e0b/regions"}}}}],"meta":{"api_version":"2021-04-19"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/available_dids/list.yaml b/tests/fixtures/available_dids/list.yaml index 5a26381..8f49c5b 100644 --- a/tests/fixtures/available_dids/list.yaml +++ b/tests/fixtures/available_dids/list.yaml @@ -12,58 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/available_dids response: body: - string: "{\n \"data\": [\n {\n \"id\": \"0b76223b-9625-412f-b0f3-330551473e7e\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"\ - number\": \"16169886810\"\n },\n \"relationships\": {\n \"\ - did_group\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/0b76223b-9625-412f-b0f3-330551473e7e/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/0b76223b-9625-412f-b0f3-330551473e7e/did_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b6db898e-5c40-40b2-9ee8-3847d5345435\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"\ - number\": \"61872285223\"\n },\n \"relationships\": {\n \"\ - did_group\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/b6db898e-5c40-40b2-9ee8-3847d5345435/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/b6db898e-5c40-40b2-9ee8-3847d5345435/did_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"89ca2b0e-38eb-430b-a5b8-843e47e0239a\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"\ - number\": \"19733247924\"\n },\n \"relationships\": {\n \"\ - did_group\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/89ca2b0e-38eb-430b-a5b8-843e47e0239a/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/89ca2b0e-38eb-430b-a5b8-843e47e0239a/did_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"859db73a-d2ca-4834-b975-9b7b831ea252\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"\ - number\": \"19736095078\"\n },\n \"relationships\": {\n \"\ - did_group\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/859db73a-d2ca-4834-b975-9b7b831ea252/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/859db73a-d2ca-4834-b975-9b7b831ea252/did_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"1f3c4f6b-15f6-4992-877e-33cb62f3bb10\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"\ - number\": \"19492034504\"\n },\n \"relationships\": {\n \"\ - did_group\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/1f3c4f6b-15f6-4992-877e-33cb62f3bb10/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/1f3c4f6b-15f6-4992-877e-33cb62f3bb10/did_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"857d1462-5f43-4238-b007-ff05f282e41b\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"\ - number\": \"19492033398\"\n },\n \"relationships\": {\n \"\ - did_group\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/857d1462-5f43-4238-b007-ff05f282e41b/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/857d1462-5f43-4238-b007-ff05f282e41b/did_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"35666e83-2385-438a-bb6f-9477c88d99eb\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"\ - number\": \"19492034515\"\n },\n \"relationships\": {\n \"\ - did_group\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/35666e83-2385-438a-bb6f-9477c88d99eb/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/35666e83-2385-438a-bb6f-9477c88d99eb/did_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"46198397-0fbd-43bd-8a39-31e8a40c09cc\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"\ - number\": \"17024795477\"\n },\n \"relationships\": {\n \"\ - did_group\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/46198397-0fbd-43bd-8a39-31e8a40c09cc/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/46198397-0fbd-43bd-8a39-31e8a40c09cc/did_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b156ef32-f578-462c-b842-9b84b087521b\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"\ - number\": \"17024795341\"\n },\n \"relationships\": {\n \"\ - did_group\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/b156ef32-f578-462c-b842-9b84b087521b/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/b156ef32-f578-462c-b842-9b84b087521b/did_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"e61b3863-86e9-4126-80c9-32fa10acd832\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"\ - number\": \"441322659027\"\n },\n \"relationships\": {\n \ - \ \"did_group\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/e61b3863-86e9-4126-80c9-32fa10acd832/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/e61b3863-86e9-4126-80c9-32fa10acd832/did_group\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_count\"\ - : 260747\n }\n}" + string: '{"data":[{"id":"0b76223b-9625-412f-b0f3-330551473e7e","type":"available_dids","attributes":{"number":"16169886810"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/0b76223b-9625-412f-b0f3-330551473e7e/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/0b76223b-9625-412f-b0f3-330551473e7e/did_group"}}}},{"id":"b6db898e-5c40-40b2-9ee8-3847d5345435","type":"available_dids","attributes":{"number":"61872285223"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/b6db898e-5c40-40b2-9ee8-3847d5345435/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/b6db898e-5c40-40b2-9ee8-3847d5345435/did_group"}}}},{"id":"89ca2b0e-38eb-430b-a5b8-843e47e0239a","type":"available_dids","attributes":{"number":"19733247924"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/89ca2b0e-38eb-430b-a5b8-843e47e0239a/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/89ca2b0e-38eb-430b-a5b8-843e47e0239a/did_group"}}}},{"id":"859db73a-d2ca-4834-b975-9b7b831ea252","type":"available_dids","attributes":{"number":"19736095078"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/859db73a-d2ca-4834-b975-9b7b831ea252/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/859db73a-d2ca-4834-b975-9b7b831ea252/did_group"}}}},{"id":"1f3c4f6b-15f6-4992-877e-33cb62f3bb10","type":"available_dids","attributes":{"number":"19492034504"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/1f3c4f6b-15f6-4992-877e-33cb62f3bb10/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/1f3c4f6b-15f6-4992-877e-33cb62f3bb10/did_group"}}}},{"id":"857d1462-5f43-4238-b007-ff05f282e41b","type":"available_dids","attributes":{"number":"19492033398"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/857d1462-5f43-4238-b007-ff05f282e41b/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/857d1462-5f43-4238-b007-ff05f282e41b/did_group"}}}},{"id":"35666e83-2385-438a-bb6f-9477c88d99eb","type":"available_dids","attributes":{"number":"19492034515"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/35666e83-2385-438a-bb6f-9477c88d99eb/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/35666e83-2385-438a-bb6f-9477c88d99eb/did_group"}}}},{"id":"46198397-0fbd-43bd-8a39-31e8a40c09cc","type":"available_dids","attributes":{"number":"17024795477"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/46198397-0fbd-43bd-8a39-31e8a40c09cc/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/46198397-0fbd-43bd-8a39-31e8a40c09cc/did_group"}}}},{"id":"b156ef32-f578-462c-b842-9b84b087521b","type":"available_dids","attributes":{"number":"17024795341"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/b156ef32-f578-462c-b842-9b84b087521b/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/b156ef32-f578-462c-b842-9b84b087521b/did_group"}}}},{"id":"e61b3863-86e9-4126-80c9-32fa10acd832","type":"available_dids","attributes":{"number":"441322659027"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/e61b3863-86e9-4126-80c9-32fa10acd832/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/e61b3863-86e9-4126-80c9-32fa10acd832/did_group"}}}}],"meta":{"total_count":260747}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/available_dids/show.yaml b/tests/fixtures/available_dids/show.yaml index 71f2445..69cc289 100644 --- a/tests/fixtures/available_dids/show.yaml +++ b/tests/fixtures/available_dids/show.yaml @@ -12,48 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/available_dids/0b76223b-9625-412f-b0f3-330551473e7e response: body: - string: "{\n \"data\": {\n \"id\": \"0b76223b-9625-412f-b0f3-330551473e7e\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"number\"\ - : \"16169886810\"\n },\n \"relationships\": {\n \"did_group\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/0b76223b-9625-412f-b0f3-330551473e7e/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/0b76223b-9625-412f-b0f3-330551473e7e/did_group\"\ - \n },\n \"data\": {\n \"type\": \"did_groups\",\n \ - \ \"id\": \"a9e3d346-d7bc-4a85-adb0-8ef1119cf237\"\n }\n \ - \ }\n }\n },\n \"included\": [\n {\n \"id\": \"a9e3d346-d7bc-4a85-adb0-8ef1119cf237\"\ - ,\n \"type\": \"did_groups\",\n \"attributes\": {\n \"prefix\"\ - : \"616\",\n \"local_prefix\": \"\",\n \"features\": [\n \ - \ \"voice_in\"\n ],\n \"is_metered\": false,\n \"\ - area_name\": \"Grand Rapids\",\n \"allow_additional_channels\": true\n\ - \ },\n \"relationships\": {\n \"country\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/country\"\ - \n }\n },\n \"city\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/relationships/city\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/city\"\ - \n }\n },\n \"did_group_type\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/relationships/did_group_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/did_group_type\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/region\"\ - \n }\n },\n \"stock_keeping_units\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/relationships/stock_keeping_units\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/stock_keeping_units\"\ - \n },\n \"data\": [\n {\n \"type\"\ - : \"stock_keeping_units\",\n \"id\": \"bdff43ad-2db8-428c-a65c-f2d4d43720b6\"\ - \n },\n {\n \"type\": \"stock_keeping_units\"\ - ,\n \"id\": \"884835e7-fffb-4293-9847-89f65449d70c\"\n \ - \ }\n ]\n }\n },\n \"meta\": {\n \"\ - needs_registration\": false,\n \"is_available\": true,\n \"\ - restrictions\": null,\n \"available_dids_enabled\": true\n }\n\ - \ },\n {\n \"id\": \"bdff43ad-2db8-428c-a65c-f2d4d43720b6\",\n\ - \ \"type\": \"stock_keeping_units\",\n \"attributes\": {\n \ - \ \"setup_price\": \"0.0\",\n \"monthly_price\": \"0.09\",\n \ - \ \"channels_included_count\": 0\n }\n },\n {\n \"id\"\ - : \"884835e7-fffb-4293-9847-89f65449d70c\",\n \"type\": \"stock_keeping_units\"\ - ,\n \"attributes\": {\n \"setup_price\": \"0.0\",\n \"\ - monthly_price\": \"0.19\",\n \"channels_included_count\": 2\n \ - \ }\n }\n ]\n}" + string: '{"data":{"id":"0b76223b-9625-412f-b0f3-330551473e7e","type":"available_dids","attributes":{"number":"16169886810"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/0b76223b-9625-412f-b0f3-330551473e7e/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/0b76223b-9625-412f-b0f3-330551473e7e/did_group"},"data":{"type":"did_groups","id":"a9e3d346-d7bc-4a85-adb0-8ef1119cf237"}}}},"included":[{"id":"a9e3d346-d7bc-4a85-adb0-8ef1119cf237","type":"did_groups","attributes":{"prefix":"616","local_prefix":"","features":["voice_in"],"is_metered":false,"area_name":"Grand Rapids","allow_additional_channels":true},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/relationships/country","related":"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/country"}},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/relationships/city","related":"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/city"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/did_group_type"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/relationships/region","related":"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/region"}},"stock_keeping_units":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/relationships/stock_keeping_units","related":"https://sandbox-api.didww.com/v3/did_groups/a9e3d346-d7bc-4a85-adb0-8ef1119cf237/stock_keeping_units"},"data":[{"type":"stock_keeping_units","id":"bdff43ad-2db8-428c-a65c-f2d4d43720b6"},{"type":"stock_keeping_units","id":"884835e7-fffb-4293-9847-89f65449d70c"}]}},"meta":{"needs_registration":false,"is_available":true,"restrictions":null,"available_dids_enabled":true}},{"id":"bdff43ad-2db8-428c-a65c-f2d4d43720b6","type":"stock_keeping_units","attributes":{"setup_price":"0.0","monthly_price":"0.09","channels_included_count":0}},{"id":"884835e7-fffb-4293-9847-89f65449d70c","type":"stock_keeping_units","attributes":{"setup_price":"0.0","monthly_price":"0.19","channels_included_count":2}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/balance/list.yaml b/tests/fixtures/balance/list.yaml index 44c503e..35135bb 100644 --- a/tests/fixtures/balance/list.yaml +++ b/tests/fixtures/balance/list.yaml @@ -12,10 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/balance response: body: - string: "{\n \"data\": {\n \"id\": \"4c39e0bf-683b-4697-9322-5abaf4011883\"\ - ,\n \"type\": \"balances\",\n \"attributes\": {\n \"total_balance\"\ - : \"60.00\",\n \"credit\": \"10.00\",\n \"balance\": \"50.00\"\n\ - \ }\n }\n}" + string: '{"data":{"id":"4c39e0bf-683b-4697-9322-5abaf4011883","type":"balances","attributes":{"total_balance":"60.00","credit":"10.00","balance":"50.00"}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/capacity_pools/list.yaml b/tests/fixtures/capacity_pools/list.yaml index ba70f6d..9bc519c 100644 --- a/tests/fixtures/capacity_pools/list.yaml +++ b/tests/fixtures/capacity_pools/list.yaml @@ -12,41 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/capacity_pools response: body: - string: "{\n \"data\": [\n {\n \"id\": \"f288d07c-e2fc-4ae6-9837-b18fb469c324\"\ - ,\n \"type\": \"capacity_pools\",\n \"attributes\": {\n \"\ - name\": \"Standard\",\n \"renew_date\": \"2019-01-21\",\n \"\ - total_channels_count\": 34,\n \"assigned_channels_count\": 24,\n \ - \ \"minimum_limit\": 0,\n \"minimum_qty_per_order\": 1,\n \ - \ \"setup_price\": \"0.0\",\n \"monthly_price\": \"15.0\",\n \ - \ \"metered_rate\": \"1.0\"\n },\n \"relationships\": {\n \ - \ \"countries\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/countries\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/countries\"\ - \n }\n },\n \"shared_capacity_groups\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/shared_capacity_groups\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/shared_capacity_groups\"\ - \n }\n },\n \"qty_based_pricings\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/qty_based_pricings\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/qty_based_pricings\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b7522a31-4bf3-4c23-81e8-e7a14b23663f\"\ - ,\n \"type\": \"capacity_pools\",\n \"attributes\": {\n \"\ - name\": \"Extended\",\n \"renew_date\": \"2019-01-21\",\n \"\ - total_channels_count\": 8,\n \"assigned_channels_count\": 1,\n \ - \ \"minimum_limit\": 0,\n \"minimum_qty_per_order\": 1,\n \ - \ \"setup_price\": \"25.0\",\n \"monthly_price\": \"25.0\",\n \ - \ \"metered_rate\": \"1.0\"\n },\n \"relationships\": {\n \ - \ \"countries\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/relationships/countries\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/countries\"\ - \n }\n },\n \"shared_capacity_groups\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/relationships/shared_capacity_groups\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/shared_capacity_groups\"\ - \n }\n },\n \"qty_based_pricings\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/relationships/qty_based_pricings\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/qty_based_pricings\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 2\n },\n \"links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - \n }\n}" + string: '{"data":[{"id":"f288d07c-e2fc-4ae6-9837-b18fb469c324","type":"capacity_pools","attributes":{"name":"Standard","renew_date":"2019-01-21","total_channels_count":34,"assigned_channels_count":24,"minimum_limit":0,"minimum_qty_per_order":1,"setup_price":"0.0","monthly_price":"15.0","metered_rate":"1.0"},"relationships":{"countries":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/countries","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/countries"}},"shared_capacity_groups":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/shared_capacity_groups","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/shared_capacity_groups"}},"qty_based_pricings":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/qty_based_pricings","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/qty_based_pricings"}}}},{"id":"b7522a31-4bf3-4c23-81e8-e7a14b23663f","type":"capacity_pools","attributes":{"name":"Extended","renew_date":"2019-01-21","total_channels_count":8,"assigned_channels_count":1,"minimum_limit":0,"minimum_qty_per_order":1,"setup_price":"25.0","monthly_price":"25.0","metered_rate":"1.0"},"relationships":{"countries":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/relationships/countries","related":"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/countries"}},"shared_capacity_groups":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/relationships/shared_capacity_groups","related":"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/shared_capacity_groups"}},"qty_based_pricings":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/relationships/qty_based_pricings","related":"https://sandbox-api.didww.com/v3/capacity_pools/b7522a31-4bf3-4c23-81e8-e7a14b23663f/qty_based_pricings"}}}}],"meta":{"total_records":2},"links":{"first":"https://sandbox-api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50","last":"https://sandbox-api.didww.com/v3/capacity_pools?page%5Bnumber%5D=1&page%5Bsize%5D=50"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/capacity_pools/show.yaml b/tests/fixtures/capacity_pools/show.yaml index bee2566..a440a38 100644 --- a/tests/fixtures/capacity_pools/show.yaml +++ b/tests/fixtures/capacity_pools/show.yaml @@ -12,312 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324 response: body: - string: "{\n \"data\": {\n \"id\": \"f288d07c-e2fc-4ae6-9837-b18fb469c324\"\ - ,\n \"type\": \"capacity_pools\",\n \"attributes\": {\n \"name\"\ - : \"Standard\",\n \"renew_date\": \"2019-01-21\",\n \"total_channels_count\"\ - : 34,\n \"assigned_channels_count\": 24,\n \"minimum_limit\": 0,\n\ - \ \"minimum_qty_per_order\": 1,\n \"setup_price\": \"0.0\",\n \ - \ \"monthly_price\": \"15.0\",\n \"metered_rate\": \"1.0\"\n },\n\ - \ \"relationships\": {\n \"countries\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/countries\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/countries\"\ - \n },\n \"data\": [\n {\n \"type\": \"countries\"\ - ,\n \"id\": \"dac76647-14d5-438f-9de7-598c8d3d3149\"\n \ - \ },\n {\n \"type\": \"countries\",\n \"id\"\ - : \"8526a723-49dc-461b-b9fd-ee7c0742935c\"\n },\n {\n \ - \ \"type\": \"countries\",\n \"id\": \"9a4c9414-5353-4fb3-81ee-f8e3e3587034\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"a84bb196-c3dd-40a2-af7d-baeee3660061\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"eb06b185-ff83-445f-96f7-16bfc98bc23e\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"dc9c1de5-6043-4726-bab2-63e915b7eae4\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"514e77da-5c87-4b86-9b5f-8c48b12a4d48\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"e413c0ce-8eee-42c2-9f4c-2e4c6c9fd5c3\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"a2618969-ac27-41e4-af10-cec2dee7ca92\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"eb89ebf7-2c8c-4e7d-9aea-89cddeced3c8\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"d17c184d-6f7d-4848-a87d-c5ed88020015\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"410c07fc-4fa6-4693-b217-90838c1750a8\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"3ba49d6a-5f02-4dbe-bb7f-b3509fec2b2a\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"93444592-cbb1-42c5-99e9-5ffeb150b7ec\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"5883ec41-eafe-46e9-99e8-5b3b386fea3a\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"7c0f34bc-2c6f-4a0a-a4ce-3690cd3be29c\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"c03605c9-b40d-4b13-9e83-c8e5bf41d9f4\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"9b0329f8-8295-45a7-8f2a-64129b87cdaa\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"3d1c2c4e-4b06-4c94-8f0b-43eea90929a0\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"d5ca867b-9a2f-49bf-bd50-1d37349e665e\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"b6f04bf7-f31a-44cb-a062-a36b3699429b\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"fd56bea6-8cbf-4846-9c2f-bd2742015529\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"f7e78968-b6e4-463f-b213-8681ab3760f8\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"134d9428-0cf1-469b-9657-bb65d1d9fcac\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"76bfece7-78d7-471e-baab-edd0325714c4\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"98513846-dd8f-487b-9828-e5f689bee3c6\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"6061dbd6-e5ff-45ed-8c98-489c397fc807\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"1d2c0df1-1b51-40f7-bb76-5397a3f25934\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"37a97e75-f2ac-4485-82d3-d5a49bd4e4a9\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"f782047c-09ae-4424-8de3-762408dc7ba9\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"93d5c5d4-e420-440b-9887-9693edd006ca\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"b84bc6d4-fb8d-46bb-9b95-a94c78cb82a0\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"be646dc6-dd7e-4947-a11b-79fe5871d3dd\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"05baebb6-4053-4870-acd6-8491eb200e0b\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"7549be3c-1077-433d-9a77-25416373660d\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"5b156dc2-327e-4665-bdc5-35cd8729b885\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"de9ad7fd-115d-4f95-9a59-d357a9999e38\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"093df79a-c4d5-4ebd-8716-5a8523db2854\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"c7ff81e1-da30-4d87-8110-88c5aed0b619\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"6f8a6d1d-9341-4a64-a5d0-986639e24124\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"e369a791-dad8-4a48-a512-0fab3b54d4c2\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"661d8448-8897-4765-acda-00cc1740148d\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"5ff63a6f-075f-4d12-ba3a-d4a1e617eaeb\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"f711b8ee-7576-4d40-9dd4-f51a69cee8a7\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"60657766-0c13-4ad9-beb2-300ad1c66511\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"f25136bb-a336-43fa-b05f-34e52d75adaa\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"78347fe1-6f98-47ea-999f-2b93b6aceb58\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"3786d53f-2a7b-450f-ac57-c38850d1a0d9\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"7eda11bb-0e66-4146-98e7-57a5281f56c8\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"7d9f8011-40a4-4fd7-a970-c3b679a75daf\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e\"\ - \n },\n {\n \"type\": \"countries\",\n \ - \ \"id\": \"24eb6e85-f628-4765-bbb2-420e48de76f2\"\n },\n \ - \ {\n \"type\": \"countries\",\n \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\ - \n }\n ]\n },\n \"shared_capacity_groups\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/shared_capacity_groups\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/shared_capacity_groups\"\ - \n },\n \"data\": [\n {\n \"type\": \"shared_capacity_groups\"\ - ,\n \"id\": \"e67b7be7-0698-41eb-9aca-7217903bf0e8\"\n \ - \ },\n {\n \"type\": \"shared_capacity_groups\",\n \ - \ \"id\": \"89f987e2-0862-4bf4-a3f4-cdc89af0d875\"\n },\n\ - \ {\n \"type\": \"shared_capacity_groups\",\n \ - \ \"id\": \"206881de-7a92-4415-aa32-b05458c79623\"\n }\n \ - \ ]\n },\n \"qty_based_pricings\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/qty_based_pricings\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/qty_based_pricings\"\ - \n },\n \"data\": [\n {\n \"type\": \"qty_based_pricings\"\ - ,\n \"id\": \"1cd4a878-9f11-4bba-afe2-86e76ed21bb6\"\n \ - \ },\n {\n \"type\": \"qty_based_pricings\",\n \ - \ \"id\": \"46f8db15-a9e8-4de7-96f4-1b68f20642b8\"\n },\n \ - \ {\n \"type\": \"qty_based_pricings\",\n \"\ - id\": \"c43fd0e8-b6c6-4022-9d5e-ed14c1850dc1\"\n }\n ]\n \ - \ }\n }\n },\n \"included\": [\n {\n \"id\": \"dac76647-14d5-438f-9de7-598c8d3d3149\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Peru\",\n \"prefix\": \"51\",\n \"iso\": \"PE\"\n }\n\ - \ },\n {\n \"id\": \"8526a723-49dc-461b-b9fd-ee7c0742935c\",\n\ - \ \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Iceland\",\n \"prefix\": \"354\",\n \"iso\": \"IS\"\n \ - \ }\n },\n {\n \"id\": \"9a4c9414-5353-4fb3-81ee-f8e3e3587034\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Australia\",\n \"prefix\": \"61\",\n \"iso\": \"AU\"\n \ - \ }\n },\n {\n \"id\": \"a84bb196-c3dd-40a2-af7d-baeee3660061\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Puerto Rico\",\n \"prefix\": \"1\",\n \"iso\": \"PR\"\n\ - \ }\n },\n {\n \"id\": \"eb06b185-ff83-445f-96f7-16bfc98bc23e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Chile\",\n \"prefix\": \"56\",\n \"iso\": \"CL\"\n \ - \ }\n },\n {\n \"id\": \"dc9c1de5-6043-4726-bab2-63e915b7eae4\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Bahrain\",\n \"prefix\": \"973\",\n \"iso\": \"BH\"\n \ - \ }\n },\n {\n \"id\": \"514e77da-5c87-4b86-9b5f-8c48b12a4d48\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Israel\",\n \"prefix\": \"972\",\n \"iso\": \"IL\"\n \ - \ }\n },\n {\n \"id\": \"e413c0ce-8eee-42c2-9f4c-2e4c6c9fd5c3\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Hong Kong\",\n \"prefix\": \"852\",\n \"iso\": \"HK\"\n\ - \ }\n },\n {\n \"id\": \"a2618969-ac27-41e4-af10-cec2dee7ca92\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Dominican Republic\",\n \"prefix\": \"1\",\n \"iso\": \"\ - DO\"\n }\n },\n {\n \"id\": \"eb89ebf7-2c8c-4e7d-9aea-89cddeced3c8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Japan\",\n \"prefix\": \"81\",\n \"iso\": \"JP\"\n \ - \ }\n },\n {\n \"id\": \"d17c184d-6f7d-4848-a87d-c5ed88020015\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Norway\",\n \"prefix\": \"47\",\n \"iso\": \"NO\"\n \ - \ }\n },\n {\n \"id\": \"410c07fc-4fa6-4693-b217-90838c1750a8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Mexico\",\n \"prefix\": \"52\",\n \"iso\": \"MX\"\n \ - \ }\n },\n {\n \"id\": \"3ba49d6a-5f02-4dbe-bb7f-b3509fec2b2a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Luxembourg\",\n \"prefix\": \"352\",\n \"iso\": \"LU\"\n\ - \ }\n },\n {\n \"id\": \"93444592-cbb1-42c5-99e9-5ffeb150b7ec\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Greece\",\n \"prefix\": \"30\",\n \"iso\": \"GR\"\n \ - \ }\n },\n {\n \"id\": \"5883ec41-eafe-46e9-99e8-5b3b386fea3a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Finland\",\n \"prefix\": \"358\",\n \"iso\": \"FI\"\n \ - \ }\n },\n {\n \"id\": \"7c0f34bc-2c6f-4a0a-a4ce-3690cd3be29c\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Malta\",\n \"prefix\": \"356\",\n \"iso\": \"MT\"\n \ - \ }\n },\n {\n \"id\": \"c03605c9-b40d-4b13-9e83-c8e5bf41d9f4\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Switzerland\",\n \"prefix\": \"41\",\n \"iso\": \"CH\"\n\ - \ }\n },\n {\n \"id\": \"9b0329f8-8295-45a7-8f2a-64129b87cdaa\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"South Africa\",\n \"prefix\": \"27\",\n \"iso\": \"ZA\"\n\ - \ }\n },\n {\n \"id\": \"3d1c2c4e-4b06-4c94-8f0b-43eea90929a0\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Argentina\",\n \"prefix\": \"54\",\n \"iso\": \"AR\"\n \ - \ }\n },\n {\n \"id\": \"d5ca867b-9a2f-49bf-bd50-1d37349e665e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Panama\",\n \"prefix\": \"507\",\n \"iso\": \"PA\"\n \ - \ }\n },\n {\n \"id\": \"b6f04bf7-f31a-44cb-a062-a36b3699429b\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Georgia\",\n \"prefix\": \"995\",\n \"iso\": \"GE\"\n \ - \ }\n },\n {\n \"id\": \"fd56bea6-8cbf-4846-9c2f-bd2742015529\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Brazil\",\n \"prefix\": \"55\",\n \"iso\": \"BR\"\n \ - \ }\n },\n {\n \"id\": \"f7e78968-b6e4-463f-b213-8681ab3760f8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Kazakhstan\",\n \"prefix\": \"7\",\n \"iso\": \"KZ\"\n \ - \ }\n },\n {\n \"id\": \"134d9428-0cf1-469b-9657-bb65d1d9fcac\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Russian Federation\",\n \"prefix\": \"7\",\n \"iso\": \"\ - RU\"\n }\n },\n {\n \"id\": \"76bfece7-78d7-471e-baab-edd0325714c4\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Costa Rica\",\n \"prefix\": \"506\",\n \"iso\": \"CR\"\n\ - \ }\n },\n {\n \"id\": \"98513846-dd8f-487b-9828-e5f689bee3c6\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"New Zealand\",\n \"prefix\": \"64\",\n \"iso\": \"NZ\"\n\ - \ }\n },\n {\n \"id\": \"6061dbd6-e5ff-45ed-8c98-489c397fc807\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Cyprus\",\n \"prefix\": \"357\",\n \"iso\": \"CY\"\n \ - \ }\n },\n {\n \"id\": \"1d2c0df1-1b51-40f7-bb76-5397a3f25934\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Czech Republic\",\n \"prefix\": \"420\",\n \"iso\": \"CZ\"\ - \n }\n },\n {\n \"id\": \"37a97e75-f2ac-4485-82d3-d5a49bd4e4a9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Poland\",\n \"prefix\": \"48\",\n \"iso\": \"PL\"\n \ - \ }\n },\n {\n \"id\": \"f782047c-09ae-4424-8de3-762408dc7ba9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Denmark\",\n \"prefix\": \"45\",\n \"iso\": \"DK\"\n \ - \ }\n },\n {\n \"id\": \"93d5c5d4-e420-440b-9887-9693edd006ca\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Romania\",\n \"prefix\": \"40\",\n \"iso\": \"RO\"\n \ - \ }\n },\n {\n \"id\": \"b84bc6d4-fb8d-46bb-9b95-a94c78cb82a0\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Portugal\",\n \"prefix\": \"351\",\n \"iso\": \"PT\"\n \ - \ }\n },\n {\n \"id\": \"be646dc6-dd7e-4947-a11b-79fe5871d3dd\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Slovakia\",\n \"prefix\": \"421\",\n \"iso\": \"SK\"\n \ - \ }\n },\n {\n \"id\": \"05baebb6-4053-4870-acd6-8491eb200e0b\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Italy\",\n \"prefix\": \"39\",\n \"iso\": \"IT\"\n \ - \ }\n },\n {\n \"id\": \"7549be3c-1077-433d-9a77-25416373660d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Sweden\",\n \"prefix\": \"46\",\n \"iso\": \"SE\"\n \ - \ }\n },\n {\n \"id\": \"5b156dc2-327e-4665-bdc5-35cd8729b885\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Spain\",\n \"prefix\": \"34\",\n \"iso\": \"ES\"\n \ - \ }\n },\n {\n \"id\": \"de9ad7fd-115d-4f95-9a59-d357a9999e38\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Slovenia\",\n \"prefix\": \"386\",\n \"iso\": \"SI\"\n \ - \ }\n },\n {\n \"id\": \"093df79a-c4d5-4ebd-8716-5a8523db2854\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Hungary\",\n \"prefix\": \"36\",\n \"iso\": \"HU\"\n \ - \ }\n },\n {\n \"id\": \"c7ff81e1-da30-4d87-8110-88c5aed0b619\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Singapore\",\n \"prefix\": \"65\",\n \"iso\": \"SG\"\n \ - \ }\n },\n {\n \"id\": \"6f8a6d1d-9341-4a64-a5d0-986639e24124\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Netherlands\",\n \"prefix\": \"31\",\n \"iso\": \"NL\"\n\ - \ }\n },\n {\n \"id\": \"e369a791-dad8-4a48-a512-0fab3b54d4c2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Estonia\",\n \"prefix\": \"372\",\n \"iso\": \"EE\"\n \ - \ }\n },\n {\n \"id\": \"661d8448-8897-4765-acda-00cc1740148d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Lithuania\",\n \"prefix\": \"370\",\n \"iso\": \"LT\"\n\ - \ }\n },\n {\n \"id\": \"5ff63a6f-075f-4d12-ba3a-d4a1e617eaeb\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Ireland\",\n \"prefix\": \"353\",\n \"iso\": \"IE\"\n \ - \ }\n },\n {\n \"id\": \"f711b8ee-7576-4d40-9dd4-f51a69cee8a7\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Belgium\",\n \"prefix\": \"32\",\n \"iso\": \"BE\"\n \ - \ }\n },\n {\n \"id\": \"60657766-0c13-4ad9-beb2-300ad1c66511\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Austria\",\n \"prefix\": \"43\",\n \"iso\": \"AT\"\n \ - \ }\n },\n {\n \"id\": \"f25136bb-a336-43fa-b05f-34e52d75adaa\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Bulgaria\",\n \"prefix\": \"359\",\n \"iso\": \"BG\"\n \ - \ }\n },\n {\n \"id\": \"78347fe1-6f98-47ea-999f-2b93b6aceb58\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Croatia\",\n \"prefix\": \"385\",\n \"iso\": \"HR\"\n \ - \ }\n },\n {\n \"id\": \"3786d53f-2a7b-450f-ac57-c38850d1a0d9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Latvia\",\n \"prefix\": \"371\",\n \"iso\": \"LV\"\n \ - \ }\n },\n {\n \"id\": \"7eda11bb-0e66-4146-98e7-57a5281f56c8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"United Kingdom\",\n \"prefix\": \"44\",\n \"iso\": \"GB\"\ - \n }\n },\n {\n \"id\": \"7d9f8011-40a4-4fd7-a970-c3b679a75daf\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"France\",\n \"prefix\": \"33\",\n \"iso\": \"FR\"\n \ - \ }\n },\n {\n \"id\": \"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Germany\",\n \"prefix\": \"49\",\n \"iso\": \"DE\"\n \ - \ }\n },\n {\n \"id\": \"24eb6e85-f628-4765-bbb2-420e48de76f2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Canada\",\n \"prefix\": \"1\",\n \"iso\": \"CA\"\n \ - \ }\n },\n {\n \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"United States\",\n \"prefix\": \"1\",\n \"iso\": \"US\"\n\ - \ }\n },\n {\n \"id\": \"e67b7be7-0698-41eb-9aca-7217903bf0e8\"\ - ,\n \"type\": \"shared_capacity_groups\",\n \"attributes\": {\n\ - \ \"name\": \"test\",\n \"shared_channels_count\": 5,\n \ - \ \"created_at\": \"2018-06-19T12:26:48.938Z\",\n \"metered_channels_count\"\ - : 5\n },\n \"relationships\": {\n \"capacity_pool\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/capacity_pool\"\ - \n }\n },\n \"dids\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/dids\"\ - \n }\n }\n }\n },\n {\n \"id\": \"89f987e2-0862-4bf4-a3f4-cdc89af0d875\"\ - ,\n \"type\": \"shared_capacity_groups\",\n \"attributes\": {\n\ - \ \"name\": \"didww\",\n \"shared_channels_count\": 19,\n \ - \ \"created_at\": \"2018-06-19T11:41:21.644Z\",\n \"metered_channels_count\"\ - : 0\n },\n \"relationships\": {\n \"capacity_pool\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/capacity_pool\"\ - \n }\n },\n \"dids\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/dids\"\ - \n }\n }\n }\n },\n {\n \"id\": \"206881de-7a92-4415-aa32-b05458c79623\"\ - ,\n \"type\": \"shared_capacity_groups\",\n \"attributes\": {\n\ - \ \"name\": \"Pay Per Minute\",\n \"shared_channels_count\"\ - : 0,\n \"created_at\": \"2018-06-19T11:41:21.644Z\",\n \"metered_channels_count\"\ - : 100\n },\n \"relationships\": {\n \"capacity_pool\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/capacity_pool\"\ - \n }\n },\n \"dids\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/dids\"\ - \n }\n }\n }\n },\n {\n \"id\": \"1cd4a878-9f11-4bba-afe2-86e76ed21bb6\"\ - ,\n \"type\": \"qty_based_pricings\",\n \"attributes\": {\n \ - \ \"qty\": 30,\n \"monthly_price\": \"10.0\",\n \"setup_price\"\ - : \"10.0\"\n }\n },\n {\n \"id\": \"46f8db15-a9e8-4de7-96f4-1b68f20642b8\"\ - ,\n \"type\": \"qty_based_pricings\",\n \"attributes\": {\n \ - \ \"qty\": 300,\n \"monthly_price\": \"8.0\",\n \"setup_price\"\ - : \"8.0\"\n }\n },\n {\n \"id\": \"c43fd0e8-b6c6-4022-9d5e-ed14c1850dc1\"\ - ,\n \"type\": \"qty_based_pricings\",\n \"attributes\": {\n \ - \ \"qty\": 990,\n \"monthly_price\": \"7.0\",\n \"setup_price\"\ - : \"7.0\"\n }\n }\n ]\n}" + string: '{"data":{"id":"f288d07c-e2fc-4ae6-9837-b18fb469c324","type":"capacity_pools","attributes":{"name":"Standard","renew_date":"2019-01-21","total_channels_count":34,"assigned_channels_count":24,"minimum_limit":0,"minimum_qty_per_order":1,"setup_price":"0.0","monthly_price":"15.0","metered_rate":"1.0"},"relationships":{"countries":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/countries","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/countries"},"data":[{"type":"countries","id":"dac76647-14d5-438f-9de7-598c8d3d3149"},{"type":"countries","id":"8526a723-49dc-461b-b9fd-ee7c0742935c"},{"type":"countries","id":"9a4c9414-5353-4fb3-81ee-f8e3e3587034"},{"type":"countries","id":"a84bb196-c3dd-40a2-af7d-baeee3660061"},{"type":"countries","id":"eb06b185-ff83-445f-96f7-16bfc98bc23e"},{"type":"countries","id":"dc9c1de5-6043-4726-bab2-63e915b7eae4"},{"type":"countries","id":"514e77da-5c87-4b86-9b5f-8c48b12a4d48"},{"type":"countries","id":"e413c0ce-8eee-42c2-9f4c-2e4c6c9fd5c3"},{"type":"countries","id":"a2618969-ac27-41e4-af10-cec2dee7ca92"},{"type":"countries","id":"eb89ebf7-2c8c-4e7d-9aea-89cddeced3c8"},{"type":"countries","id":"d17c184d-6f7d-4848-a87d-c5ed88020015"},{"type":"countries","id":"410c07fc-4fa6-4693-b217-90838c1750a8"},{"type":"countries","id":"3ba49d6a-5f02-4dbe-bb7f-b3509fec2b2a"},{"type":"countries","id":"93444592-cbb1-42c5-99e9-5ffeb150b7ec"},{"type":"countries","id":"5883ec41-eafe-46e9-99e8-5b3b386fea3a"},{"type":"countries","id":"7c0f34bc-2c6f-4a0a-a4ce-3690cd3be29c"},{"type":"countries","id":"c03605c9-b40d-4b13-9e83-c8e5bf41d9f4"},{"type":"countries","id":"9b0329f8-8295-45a7-8f2a-64129b87cdaa"},{"type":"countries","id":"3d1c2c4e-4b06-4c94-8f0b-43eea90929a0"},{"type":"countries","id":"d5ca867b-9a2f-49bf-bd50-1d37349e665e"},{"type":"countries","id":"b6f04bf7-f31a-44cb-a062-a36b3699429b"},{"type":"countries","id":"fd56bea6-8cbf-4846-9c2f-bd2742015529"},{"type":"countries","id":"f7e78968-b6e4-463f-b213-8681ab3760f8"},{"type":"countries","id":"134d9428-0cf1-469b-9657-bb65d1d9fcac"},{"type":"countries","id":"76bfece7-78d7-471e-baab-edd0325714c4"},{"type":"countries","id":"98513846-dd8f-487b-9828-e5f689bee3c6"},{"type":"countries","id":"6061dbd6-e5ff-45ed-8c98-489c397fc807"},{"type":"countries","id":"1d2c0df1-1b51-40f7-bb76-5397a3f25934"},{"type":"countries","id":"37a97e75-f2ac-4485-82d3-d5a49bd4e4a9"},{"type":"countries","id":"f782047c-09ae-4424-8de3-762408dc7ba9"},{"type":"countries","id":"93d5c5d4-e420-440b-9887-9693edd006ca"},{"type":"countries","id":"b84bc6d4-fb8d-46bb-9b95-a94c78cb82a0"},{"type":"countries","id":"be646dc6-dd7e-4947-a11b-79fe5871d3dd"},{"type":"countries","id":"05baebb6-4053-4870-acd6-8491eb200e0b"},{"type":"countries","id":"7549be3c-1077-433d-9a77-25416373660d"},{"type":"countries","id":"5b156dc2-327e-4665-bdc5-35cd8729b885"},{"type":"countries","id":"de9ad7fd-115d-4f95-9a59-d357a9999e38"},{"type":"countries","id":"093df79a-c4d5-4ebd-8716-5a8523db2854"},{"type":"countries","id":"c7ff81e1-da30-4d87-8110-88c5aed0b619"},{"type":"countries","id":"6f8a6d1d-9341-4a64-a5d0-986639e24124"},{"type":"countries","id":"e369a791-dad8-4a48-a512-0fab3b54d4c2"},{"type":"countries","id":"661d8448-8897-4765-acda-00cc1740148d"},{"type":"countries","id":"5ff63a6f-075f-4d12-ba3a-d4a1e617eaeb"},{"type":"countries","id":"f711b8ee-7576-4d40-9dd4-f51a69cee8a7"},{"type":"countries","id":"60657766-0c13-4ad9-beb2-300ad1c66511"},{"type":"countries","id":"f25136bb-a336-43fa-b05f-34e52d75adaa"},{"type":"countries","id":"78347fe1-6f98-47ea-999f-2b93b6aceb58"},{"type":"countries","id":"3786d53f-2a7b-450f-ac57-c38850d1a0d9"},{"type":"countries","id":"7eda11bb-0e66-4146-98e7-57a5281f56c8"},{"type":"countries","id":"7d9f8011-40a4-4fd7-a970-c3b679a75daf"},{"type":"countries","id":"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e"},{"type":"countries","id":"24eb6e85-f628-4765-bbb2-420e48de76f2"},{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}]},"shared_capacity_groups":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/shared_capacity_groups","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/shared_capacity_groups"},"data":[{"type":"shared_capacity_groups","id":"e67b7be7-0698-41eb-9aca-7217903bf0e8"},{"type":"shared_capacity_groups","id":"89f987e2-0862-4bf4-a3f4-cdc89af0d875"},{"type":"shared_capacity_groups","id":"206881de-7a92-4415-aa32-b05458c79623"}]},"qty_based_pricings":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/qty_based_pricings","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/qty_based_pricings"},"data":[{"type":"qty_based_pricings","id":"1cd4a878-9f11-4bba-afe2-86e76ed21bb6"},{"type":"qty_based_pricings","id":"46f8db15-a9e8-4de7-96f4-1b68f20642b8"},{"type":"qty_based_pricings","id":"c43fd0e8-b6c6-4022-9d5e-ed14c1850dc1"}]}}},"included":[{"id":"dac76647-14d5-438f-9de7-598c8d3d3149","type":"countries","attributes":{"name":"Peru","prefix":"51","iso":"PE"}},{"id":"8526a723-49dc-461b-b9fd-ee7c0742935c","type":"countries","attributes":{"name":"Iceland","prefix":"354","iso":"IS"}},{"id":"9a4c9414-5353-4fb3-81ee-f8e3e3587034","type":"countries","attributes":{"name":"Australia","prefix":"61","iso":"AU"}},{"id":"a84bb196-c3dd-40a2-af7d-baeee3660061","type":"countries","attributes":{"name":"Puerto Rico","prefix":"1","iso":"PR"}},{"id":"eb06b185-ff83-445f-96f7-16bfc98bc23e","type":"countries","attributes":{"name":"Chile","prefix":"56","iso":"CL"}},{"id":"dc9c1de5-6043-4726-bab2-63e915b7eae4","type":"countries","attributes":{"name":"Bahrain","prefix":"973","iso":"BH"}},{"id":"514e77da-5c87-4b86-9b5f-8c48b12a4d48","type":"countries","attributes":{"name":"Israel","prefix":"972","iso":"IL"}},{"id":"e413c0ce-8eee-42c2-9f4c-2e4c6c9fd5c3","type":"countries","attributes":{"name":"Hong Kong","prefix":"852","iso":"HK"}},{"id":"a2618969-ac27-41e4-af10-cec2dee7ca92","type":"countries","attributes":{"name":"Dominican Republic","prefix":"1","iso":"DO"}},{"id":"eb89ebf7-2c8c-4e7d-9aea-89cddeced3c8","type":"countries","attributes":{"name":"Japan","prefix":"81","iso":"JP"}},{"id":"d17c184d-6f7d-4848-a87d-c5ed88020015","type":"countries","attributes":{"name":"Norway","prefix":"47","iso":"NO"}},{"id":"410c07fc-4fa6-4693-b217-90838c1750a8","type":"countries","attributes":{"name":"Mexico","prefix":"52","iso":"MX"}},{"id":"3ba49d6a-5f02-4dbe-bb7f-b3509fec2b2a","type":"countries","attributes":{"name":"Luxembourg","prefix":"352","iso":"LU"}},{"id":"93444592-cbb1-42c5-99e9-5ffeb150b7ec","type":"countries","attributes":{"name":"Greece","prefix":"30","iso":"GR"}},{"id":"5883ec41-eafe-46e9-99e8-5b3b386fea3a","type":"countries","attributes":{"name":"Finland","prefix":"358","iso":"FI"}},{"id":"7c0f34bc-2c6f-4a0a-a4ce-3690cd3be29c","type":"countries","attributes":{"name":"Malta","prefix":"356","iso":"MT"}},{"id":"c03605c9-b40d-4b13-9e83-c8e5bf41d9f4","type":"countries","attributes":{"name":"Switzerland","prefix":"41","iso":"CH"}},{"id":"9b0329f8-8295-45a7-8f2a-64129b87cdaa","type":"countries","attributes":{"name":"South Africa","prefix":"27","iso":"ZA"}},{"id":"3d1c2c4e-4b06-4c94-8f0b-43eea90929a0","type":"countries","attributes":{"name":"Argentina","prefix":"54","iso":"AR"}},{"id":"d5ca867b-9a2f-49bf-bd50-1d37349e665e","type":"countries","attributes":{"name":"Panama","prefix":"507","iso":"PA"}},{"id":"b6f04bf7-f31a-44cb-a062-a36b3699429b","type":"countries","attributes":{"name":"Georgia","prefix":"995","iso":"GE"}},{"id":"fd56bea6-8cbf-4846-9c2f-bd2742015529","type":"countries","attributes":{"name":"Brazil","prefix":"55","iso":"BR"}},{"id":"f7e78968-b6e4-463f-b213-8681ab3760f8","type":"countries","attributes":{"name":"Kazakhstan","prefix":"7","iso":"KZ"}},{"id":"134d9428-0cf1-469b-9657-bb65d1d9fcac","type":"countries","attributes":{"name":"Russian Federation","prefix":"7","iso":"RU"}},{"id":"76bfece7-78d7-471e-baab-edd0325714c4","type":"countries","attributes":{"name":"Costa Rica","prefix":"506","iso":"CR"}},{"id":"98513846-dd8f-487b-9828-e5f689bee3c6","type":"countries","attributes":{"name":"New Zealand","prefix":"64","iso":"NZ"}},{"id":"6061dbd6-e5ff-45ed-8c98-489c397fc807","type":"countries","attributes":{"name":"Cyprus","prefix":"357","iso":"CY"}},{"id":"1d2c0df1-1b51-40f7-bb76-5397a3f25934","type":"countries","attributes":{"name":"Czech Republic","prefix":"420","iso":"CZ"}},{"id":"37a97e75-f2ac-4485-82d3-d5a49bd4e4a9","type":"countries","attributes":{"name":"Poland","prefix":"48","iso":"PL"}},{"id":"f782047c-09ae-4424-8de3-762408dc7ba9","type":"countries","attributes":{"name":"Denmark","prefix":"45","iso":"DK"}},{"id":"93d5c5d4-e420-440b-9887-9693edd006ca","type":"countries","attributes":{"name":"Romania","prefix":"40","iso":"RO"}},{"id":"b84bc6d4-fb8d-46bb-9b95-a94c78cb82a0","type":"countries","attributes":{"name":"Portugal","prefix":"351","iso":"PT"}},{"id":"be646dc6-dd7e-4947-a11b-79fe5871d3dd","type":"countries","attributes":{"name":"Slovakia","prefix":"421","iso":"SK"}},{"id":"05baebb6-4053-4870-acd6-8491eb200e0b","type":"countries","attributes":{"name":"Italy","prefix":"39","iso":"IT"}},{"id":"7549be3c-1077-433d-9a77-25416373660d","type":"countries","attributes":{"name":"Sweden","prefix":"46","iso":"SE"}},{"id":"5b156dc2-327e-4665-bdc5-35cd8729b885","type":"countries","attributes":{"name":"Spain","prefix":"34","iso":"ES"}},{"id":"de9ad7fd-115d-4f95-9a59-d357a9999e38","type":"countries","attributes":{"name":"Slovenia","prefix":"386","iso":"SI"}},{"id":"093df79a-c4d5-4ebd-8716-5a8523db2854","type":"countries","attributes":{"name":"Hungary","prefix":"36","iso":"HU"}},{"id":"c7ff81e1-da30-4d87-8110-88c5aed0b619","type":"countries","attributes":{"name":"Singapore","prefix":"65","iso":"SG"}},{"id":"6f8a6d1d-9341-4a64-a5d0-986639e24124","type":"countries","attributes":{"name":"Netherlands","prefix":"31","iso":"NL"}},{"id":"e369a791-dad8-4a48-a512-0fab3b54d4c2","type":"countries","attributes":{"name":"Estonia","prefix":"372","iso":"EE"}},{"id":"661d8448-8897-4765-acda-00cc1740148d","type":"countries","attributes":{"name":"Lithuania","prefix":"370","iso":"LT"}},{"id":"5ff63a6f-075f-4d12-ba3a-d4a1e617eaeb","type":"countries","attributes":{"name":"Ireland","prefix":"353","iso":"IE"}},{"id":"f711b8ee-7576-4d40-9dd4-f51a69cee8a7","type":"countries","attributes":{"name":"Belgium","prefix":"32","iso":"BE"}},{"id":"60657766-0c13-4ad9-beb2-300ad1c66511","type":"countries","attributes":{"name":"Austria","prefix":"43","iso":"AT"}},{"id":"f25136bb-a336-43fa-b05f-34e52d75adaa","type":"countries","attributes":{"name":"Bulgaria","prefix":"359","iso":"BG"}},{"id":"78347fe1-6f98-47ea-999f-2b93b6aceb58","type":"countries","attributes":{"name":"Croatia","prefix":"385","iso":"HR"}},{"id":"3786d53f-2a7b-450f-ac57-c38850d1a0d9","type":"countries","attributes":{"name":"Latvia","prefix":"371","iso":"LV"}},{"id":"7eda11bb-0e66-4146-98e7-57a5281f56c8","type":"countries","attributes":{"name":"United Kingdom","prefix":"44","iso":"GB"}},{"id":"7d9f8011-40a4-4fd7-a970-c3b679a75daf","type":"countries","attributes":{"name":"France","prefix":"33","iso":"FR"}},{"id":"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e","type":"countries","attributes":{"name":"Germany","prefix":"49","iso":"DE"}},{"id":"24eb6e85-f628-4765-bbb2-420e48de76f2","type":"countries","attributes":{"name":"Canada","prefix":"1","iso":"CA"}},{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"}},{"id":"e67b7be7-0698-41eb-9aca-7217903bf0e8","type":"shared_capacity_groups","attributes":{"name":"test","shared_channels_count":5,"created_at":"2018-06-19T12:26:48.938Z","metered_channels_count":5},"relationships":{"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/capacity_pool"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/relationships/dids","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/dids"}}}},{"id":"89f987e2-0862-4bf4-a3f4-cdc89af0d875","type":"shared_capacity_groups","attributes":{"name":"didww","shared_channels_count":19,"created_at":"2018-06-19T11:41:21.644Z","metered_channels_count":0},"relationships":{"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/capacity_pool"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/dids","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/dids"}}}},{"id":"206881de-7a92-4415-aa32-b05458c79623","type":"shared_capacity_groups","attributes":{"name":"Pay Per Minute","shared_channels_count":0,"created_at":"2018-06-19T11:41:21.644Z","metered_channels_count":100},"relationships":{"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/capacity_pool"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/relationships/dids","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/dids"}}}},{"id":"1cd4a878-9f11-4bba-afe2-86e76ed21bb6","type":"qty_based_pricings","attributes":{"qty":30,"monthly_price":"10.0","setup_price":"10.0"}},{"id":"46f8db15-a9e8-4de7-96f4-1b68f20642b8","type":"qty_based_pricings","attributes":{"qty":300,"monthly_price":"8.0","setup_price":"8.0"}},{"id":"c43fd0e8-b6c6-4022-9d5e-ed14c1850dc1","type":"qty_based_pricings","attributes":{"qty":990,"monthly_price":"7.0","setup_price":"7.0"}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/capacity_pools/update.yaml b/tests/fixtures/capacity_pools/update.yaml index fab8f22..460571f 100644 --- a/tests/fixtures/capacity_pools/update.yaml +++ b/tests/fixtures/capacity_pools/update.yaml @@ -1,7 +1,6 @@ interactions: - request: - body: '{"data": {"type": "capacity_pools", "id": "f288d07c-e2fc-4ae6-9837-b18fb469c324", - "attributes": {"total_channels_count": 25}}}' + body: '{"data":{"type":"capacity_pools","id":"f288d07c-e2fc-4ae6-9837-b18fb469c324","attributes":{"total_channels_count":25}}}' headers: Accept: - application/vnd.api+json @@ -13,22 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324 response: body: - string: "{\n \"data\": {\n \"id\": \"f288d07c-e2fc-4ae6-9837-b18fb469c324\"\ - ,\n \"type\": \"capacity_pools\",\n \"attributes\": {\n \"name\"\ - : \"Standard\",\n \"renew_date\": \"2019-01-21\",\n \"total_channels_count\"\ - : 25,\n \"assigned_channels_count\": 24,\n \"minimum_limit\": 0,\n\ - \ \"minimum_qty_per_order\": 1,\n \"setup_price\": \"0.0\",\n \ - \ \"monthly_price\": \"15.0\",\n \"metered_rate\": \"1.0\"\n },\n\ - \ \"relationships\": {\n \"countries\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/countries\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/countries\"\ - \n }\n },\n \"shared_capacity_groups\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/shared_capacity_groups\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/shared_capacity_groups\"\ - \n }\n },\n \"qty_based_pricings\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/qty_based_pricings\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/qty_based_pricings\"\ - \n }\n }\n }\n }\n}" + string: '{"data":{"id":"f288d07c-e2fc-4ae6-9837-b18fb469c324","type":"capacity_pools","attributes":{"name":"Standard","renew_date":"2019-01-21","total_channels_count":25,"assigned_channels_count":24,"minimum_limit":0,"minimum_qty_per_order":1,"setup_price":"0.0","monthly_price":"15.0","metered_rate":"1.0"},"relationships":{"countries":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/countries","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/countries"}},"shared_capacity_groups":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/shared_capacity_groups","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/shared_capacity_groups"}},"qty_based_pricings":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/qty_based_pricings","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/qty_based_pricings"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/cities/list.yaml b/tests/fixtures/cities/list.yaml index 0ba8c10..a7f4e3a 100644 --- a/tests/fixtures/cities/list.yaml +++ b/tests/fixtures/cities/list.yaml @@ -12,122 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/cities response: body: - string: "{\n \"data\": [\n {\n \"id\": \"bba735f9-7c37-499b-8998-94a5fca5d158\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\"\ - : \"Aachen\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/region\"\ - \n }\n },\n \"area\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/relationships/area\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/area\"\ - \n }\n }\n }\n },\n {\n \"id\": \"94f4e428-ae52-4b35-9507-9449d32c30a9\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\"\ - : \"Aalst\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/region\"\ - \n }\n },\n \"area\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/relationships/area\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/area\"\ - \n }\n }\n }\n },\n {\n \"id\": \"1ea1fc83-95ca-4dc4-a539-6d31a948b4af\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\"\ - : \"Abbeville\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/region\"\ - \n }\n },\n \"area\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/relationships/area\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/area\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9c84190a-1f6e-4177-b866-efcaee7bb92d\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\"\ - : \"Abbotsford\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/region\"\ - \n }\n },\n \"area\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/relationships/area\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/area\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4d12e415-21b8-43f4-9e0e-116be92ee3c0\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\"\ - : \"Aberdeen\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/region\"\ - \n }\n },\n \"area\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/relationships/area\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/area\"\ - \n }\n }\n }\n },\n {\n \"id\": \"fe04ed98-808c-486a-be45-c2f593189d79\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\"\ - : \"Acapulco\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/region\"\ - \n }\n },\n \"area\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/relationships/area\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/area\"\ - \n }\n }\n }\n },\n {\n \"id\": \"7a1557b7-fc6f-4efc-aee2-475ceecc843b\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\"\ - : \"A Coruna\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/region\"\ - \n }\n },\n \"area\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/relationships/area\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/area\"\ - \n }\n }\n }\n },\n {\n \"id\": \"39f94fd9-c01f-42ef-863c-ac59871ed357\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\"\ - : \"Adana\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/region\"\ - \n }\n },\n \"area\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/relationships/area\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/area\"\ - \n }\n }\n }\n },\n {\n \"id\": \"081c15ab-7643-4ff1-9103-6259fb1c9891\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\"\ - : \"Adelaide\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/region\"\ - \n }\n },\n \"area\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/relationships/area\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/area\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a87445bf-6169-4bca-81a1-2cfb53616ac4\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\"\ - : \"Aguadilla\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/region\"\ - \n }\n },\n \"area\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/relationships/area\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/area\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 1647,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"\ - first\": \"https://sandbox-api.didww.com/v3/cities?page%5Bnumber%5D=1&page%5Bsize%5D=10\"\ - ,\n \"next\": \"https://sandbox-api.didww.com/v3/cities?page%5Bnumber%5D=2&page%5Bsize%5D=10\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/cities?page%5Bnumber%5D=165&page%5Bsize%5D=10\"\ - \n }\n}" + string: '{"data":[{"id":"bba735f9-7c37-499b-8998-94a5fca5d158","type":"cities","attributes":{"name":"Aachen"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/region"}},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/relationships/area","related":"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/area"}}}},{"id":"94f4e428-ae52-4b35-9507-9449d32c30a9","type":"cities","attributes":{"name":"Aalst"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/region"}},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/relationships/area","related":"https://sandbox-api.didww.com/v3/cities/94f4e428-ae52-4b35-9507-9449d32c30a9/area"}}}},{"id":"1ea1fc83-95ca-4dc4-a539-6d31a948b4af","type":"cities","attributes":{"name":"Abbeville"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/region"}},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/relationships/area","related":"https://sandbox-api.didww.com/v3/cities/1ea1fc83-95ca-4dc4-a539-6d31a948b4af/area"}}}},{"id":"9c84190a-1f6e-4177-b866-efcaee7bb92d","type":"cities","attributes":{"name":"Abbotsford"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/region"}},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/relationships/area","related":"https://sandbox-api.didww.com/v3/cities/9c84190a-1f6e-4177-b866-efcaee7bb92d/area"}}}},{"id":"4d12e415-21b8-43f4-9e0e-116be92ee3c0","type":"cities","attributes":{"name":"Aberdeen"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/region"}},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/relationships/area","related":"https://sandbox-api.didww.com/v3/cities/4d12e415-21b8-43f4-9e0e-116be92ee3c0/area"}}}},{"id":"fe04ed98-808c-486a-be45-c2f593189d79","type":"cities","attributes":{"name":"Acapulco"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/region"}},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/relationships/area","related":"https://sandbox-api.didww.com/v3/cities/fe04ed98-808c-486a-be45-c2f593189d79/area"}}}},{"id":"7a1557b7-fc6f-4efc-aee2-475ceecc843b","type":"cities","attributes":{"name":"A Coruna"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/region"}},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/relationships/area","related":"https://sandbox-api.didww.com/v3/cities/7a1557b7-fc6f-4efc-aee2-475ceecc843b/area"}}}},{"id":"39f94fd9-c01f-42ef-863c-ac59871ed357","type":"cities","attributes":{"name":"Adana"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/region"}},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/relationships/area","related":"https://sandbox-api.didww.com/v3/cities/39f94fd9-c01f-42ef-863c-ac59871ed357/area"}}}},{"id":"081c15ab-7643-4ff1-9103-6259fb1c9891","type":"cities","attributes":{"name":"Adelaide"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/region"}},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/relationships/area","related":"https://sandbox-api.didww.com/v3/cities/081c15ab-7643-4ff1-9103-6259fb1c9891/area"}}}},{"id":"a87445bf-6169-4bca-81a1-2cfb53616ac4","type":"cities","attributes":{"name":"Aguadilla"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/region"}},"area":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/relationships/area","related":"https://sandbox-api.didww.com/v3/cities/a87445bf-6169-4bca-81a1-2cfb53616ac4/area"}}}}],"meta":{"total_records":1647,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/cities?page%5Bnumber%5D=1&page%5Bsize%5D=10","next":"https://sandbox-api.didww.com/v3/cities?page%5Bnumber%5D=2&page%5Bsize%5D=10","last":"https://sandbox-api.didww.com/v3/cities?page%5Bnumber%5D=165&page%5Bsize%5D=10"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/cities/show.yaml b/tests/fixtures/cities/show.yaml index 30a84ed..c2b1ed3 100644 --- a/tests/fixtures/cities/show.yaml +++ b/tests/fixtures/cities/show.yaml @@ -12,27 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/cities/368bf92f-c36e-473f-96fc-d53ed1b4028b response: body: - string: "{\n \"data\": {\n \"id\": \"368bf92f-c36e-473f-96fc-d53ed1b4028b\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\": \"New\ - \ York\"\n },\n \"relationships\": {\n \"country\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/368bf92f-c36e-473f-96fc-d53ed1b4028b/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/368bf92f-c36e-473f-96fc-d53ed1b4028b/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\",\n \ - \ \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\n }\n \ - \ },\n \"region\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/cities/368bf92f-c36e-473f-96fc-d53ed1b4028b/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/368bf92f-c36e-473f-96fc-d53ed1b4028b/region\"\ - \n },\n \"data\": {\n \"type\": \"regions\",\n \ - \ \"id\": \"ab7e83bc-814b-4cfa-a14c-d2df3de2a545\"\n }\n \ - \ }\n }\n },\n \"included\": [\n {\n \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"United States\",\n \"prefix\": \"1\",\n \"iso\": \"US\"\n\ - \ }\n },\n {\n \"id\": \"ab7e83bc-814b-4cfa-a14c-d2df3de2a545\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"New York\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/ab7e83bc-814b-4cfa-a14c-d2df3de2a545/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/ab7e83bc-814b-4cfa-a14c-d2df3de2a545/country\"\ - \n }\n }\n }\n }\n ]\n}" + string: '{"data":{"id":"368bf92f-c36e-473f-96fc-d53ed1b4028b","type":"cities","attributes":{"name":"New York"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/368bf92f-c36e-473f-96fc-d53ed1b4028b/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/368bf92f-c36e-473f-96fc-d53ed1b4028b/country"},"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/368bf92f-c36e-473f-96fc-d53ed1b4028b/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/368bf92f-c36e-473f-96fc-d53ed1b4028b/region"},"data":{"type":"regions","id":"ab7e83bc-814b-4cfa-a14c-d2df3de2a545"}}}},"included":[{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"}},{"id":"ab7e83bc-814b-4cfa-a14c-d2df3de2a545","type":"regions","attributes":{"name":"New York"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/ab7e83bc-814b-4cfa-a14c-d2df3de2a545/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/ab7e83bc-814b-4cfa-a14c-d2df3de2a545/country"}}}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/countries/list.yaml b/tests/fixtures/countries/list.yaml index 8793d49..4532cb5 100644 --- a/tests/fixtures/countries/list.yaml +++ b/tests/fixtures/countries/list.yaml @@ -12,730 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/countries response: body: - string: "{\n \"data\": [\n {\n \"id\": \"6c7727b3-6e17-4b8b-a4b3-4c5142e31a63\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Afghanistan\",\n \"prefix\": \"93\",\n \"iso\": \"AF\"\n\ - \ }\n },\n {\n \"id\": \"86c5647c-67a2-4856-8271-3c78c90bb47b\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Albania\",\n \"prefix\": \"355\",\n \"iso\": \"AL\"\n \ - \ }\n },\n {\n \"id\": \"e36a345a-0186-4eb4-85e6-840fed74f49f\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Algeria\",\n \"prefix\": \"213\",\n \"iso\": \"DZ\"\n \ - \ }\n },\n {\n \"id\": \"71efd050-248f-4255-9558-226dff4a62fc\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"American Samoa\",\n \"prefix\": \"1684\",\n \"iso\": \"\ - AS\"\n }\n },\n {\n \"id\": \"b9dce495-1085-4452-8224-6761dd3cc15a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Andorra\",\n \"prefix\": \"376\",\n \"iso\": \"AD\"\n \ - \ }\n },\n {\n \"id\": \"3d34b655-df3c-4aa0-bde6-e7787756b4d8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Angola\",\n \"prefix\": \"244\",\n \"iso\": \"AO\"\n \ - \ }\n },\n {\n \"id\": \"9a8ba950-ead9-4ede-bd5f-0220bfc3212d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Anguilla\",\n \"prefix\": \"1264\",\n \"iso\": \"AI\"\n\ - \ }\n },\n {\n \"id\": \"c6174e54-d240-4cef-94ae-c21853b2747e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Antarctica\",\n \"prefix\": null,\n \"iso\": \"AQ\"\n \ - \ }\n },\n {\n \"id\": \"7b693d72-b569-4853-b491-916e43d29970\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Antigua And Barbuda\",\n \"prefix\": \"1268\",\n \"iso\"\ - : \"AG\"\n }\n },\n {\n \"id\": \"3d1c2c4e-4b06-4c94-8f0b-43eea90929a0\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Argentina\",\n \"prefix\": \"54\",\n \"iso\": \"AR\"\n \ - \ }\n },\n {\n \"id\": \"873673a3-4338-4f99-89b3-a73968f1fcd5\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Armenia\",\n \"prefix\": \"374\",\n \"iso\": \"AM\"\n \ - \ }\n },\n {\n \"id\": \"ddebc1ae-a89a-4d1c-b95a-eda3b0849a25\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Aruba\",\n \"prefix\": \"297\",\n \"iso\": \"AW\"\n \ - \ }\n },\n {\n \"id\": \"9a4c9414-5353-4fb3-81ee-f8e3e3587034\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Australia\",\n \"prefix\": \"61\",\n \"iso\": \"AU\"\n \ - \ }\n },\n {\n \"id\": \"60657766-0c13-4ad9-beb2-300ad1c66511\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Austria\",\n \"prefix\": \"43\",\n \"iso\": \"AT\"\n \ - \ }\n },\n {\n \"id\": \"a415006e-072d-4f87-b540-0f90c637c6d1\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Azerbaijan\",\n \"prefix\": \"994\",\n \"iso\": \"AZ\"\n\ - \ }\n },\n {\n \"id\": \"419915bd-6368-485b-8db9-99f5b7b52d46\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Bahamas\",\n \"prefix\": \"1242\",\n \"iso\": \"BS\"\n \ - \ }\n },\n {\n \"id\": \"dc9c1de5-6043-4726-bab2-63e915b7eae4\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Bahrain\",\n \"prefix\": \"973\",\n \"iso\": \"BH\"\n \ - \ }\n },\n {\n \"id\": \"f6e6f6bd-a76b-4ea3-8f02-6906b0945b99\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Bangladesh\",\n \"prefix\": \"880\",\n \"iso\": \"BD\"\n\ - \ }\n },\n {\n \"id\": \"15b9bdee-85aa-4f6c-890b-19b5f8ec50dd\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Barbados\",\n \"prefix\": \"1246\",\n \"iso\": \"BB\"\n\ - \ }\n },\n {\n \"id\": \"9a0e5b4b-cbff-40f5-89ac-07c205a0ddd2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Belarus\",\n \"prefix\": \"375\",\n \"iso\": \"BY\"\n \ - \ }\n },\n {\n \"id\": \"f711b8ee-7576-4d40-9dd4-f51a69cee8a7\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Belgium\",\n \"prefix\": \"32\",\n \"iso\": \"BE\"\n \ - \ }\n },\n {\n \"id\": \"b1dc322f-f07f-4e8b-9e4b-3d9679eaef60\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Belize\",\n \"prefix\": \"501\",\n \"iso\": \"BZ\"\n \ - \ }\n },\n {\n \"id\": \"a9a39ddf-eb23-41e7-8394-86ea07bfb105\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Benin\",\n \"prefix\": \"229\",\n \"iso\": \"BJ\"\n \ - \ }\n },\n {\n \"id\": \"5d358525-1725-49a9-89a4-f36aaf7ac469\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Bermuda\",\n \"prefix\": \"1441\",\n \"iso\": \"BM\"\n \ - \ }\n },\n {\n \"id\": \"4348edc9-9ae6-484a-95f2-242a2679ee85\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Bhutan\",\n \"prefix\": \"975\",\n \"iso\": \"BT\"\n \ - \ }\n },\n {\n \"id\": \"4915018a-3537-4aa0-926e-d3f1a3498f1d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Bolivia\",\n \"prefix\": \"591\",\n \"iso\": \"BO\"\n \ - \ }\n },\n {\n \"id\": \"a5971c7d-c8b3-4f32-a3d0-c92067b012cb\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Bosnia And Herzegovina\",\n \"prefix\": \"387\",\n \"iso\"\ - : \"BA\"\n }\n },\n {\n \"id\": \"fbf7a14c-0a6b-424a-9a21-55ab6e0fbe4d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Botswana\",\n \"prefix\": \"267\",\n \"iso\": \"BW\"\n \ - \ }\n },\n {\n \"id\": \"ac92b635-f8b9-42a2-a8d4-c7cfff8481c8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Bouvet Island\",\n \"prefix\": null,\n \"iso\": \"BV\"\n\ - \ }\n },\n {\n \"id\": \"fd56bea6-8cbf-4846-9c2f-bd2742015529\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Brazil\",\n \"prefix\": \"55\",\n \"iso\": \"BR\"\n \ - \ }\n },\n {\n \"id\": \"e6deeab8-8f1c-4685-a0c2-9ac562ca1d24\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"British Virgin Islands\",\n \"prefix\": \"1284\",\n \"iso\"\ - : \"VG\"\n }\n },\n {\n \"id\": \"6518c891-6809-4b37-80b7-bfc5c5bae720\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Brunei Darussalam\",\n \"prefix\": \"673\",\n \"iso\": \"\ - BN\"\n }\n },\n {\n \"id\": \"f25136bb-a336-43fa-b05f-34e52d75adaa\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Bulgaria\",\n \"prefix\": \"359\",\n \"iso\": \"BG\"\n \ - \ }\n },\n {\n \"id\": \"586a8e38-753d-4e30-bce6-8a071a8c77b4\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Burkina Faso\",\n \"prefix\": \"226\",\n \"iso\": \"BF\"\ - \n }\n },\n {\n \"id\": \"df7872d4-8d7b-461f-86fa-31c533fb297d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Burundi\",\n \"prefix\": \"257\",\n \"iso\": \"BI\"\n \ - \ }\n },\n {\n \"id\": \"97746b92-4a17-4216-acd4-e51aaec247b1\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Cambodia\",\n \"prefix\": \"855\",\n \"iso\": \"KH\"\n \ - \ }\n },\n {\n \"id\": \"10c6aa33-d06a-4ca7-8c48-803690a05827\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Cameroon\",\n \"prefix\": \"237\",\n \"iso\": \"CM\"\n \ - \ }\n },\n {\n \"id\": \"24eb6e85-f628-4765-bbb2-420e48de76f2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Canada\",\n \"prefix\": \"1\",\n \"iso\": \"CA\"\n \ - \ }\n },\n {\n \"id\": \"245a11a6-0e73-419f-b9c4-05b27f4436cb\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Cape Verde\",\n \"prefix\": \"238\",\n \"iso\": \"CV\"\n\ - \ }\n },\n {\n \"id\": \"3dd07989-af62-4906-897b-47219f546ada\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Cayman Islands\",\n \"prefix\": \"1345\",\n \"iso\": \"\ - KY\"\n }\n },\n {\n \"id\": \"2bd78923-28f2-457e-a395-1b4f240a7962\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Central African Republic\",\n \"prefix\": \"236\",\n \"\ - iso\": \"CF\"\n }\n },\n {\n \"id\": \"54b54fb7-1938-4bbd-88ad-eb97fc4a34fb\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Chad\",\n \"prefix\": \"235\",\n \"iso\": \"TD\"\n \ - \ }\n },\n {\n \"id\": \"eb06b185-ff83-445f-96f7-16bfc98bc23e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Chile\",\n \"prefix\": \"56\",\n \"iso\": \"CL\"\n \ - \ }\n },\n {\n \"id\": \"fccd5be9-41dc-4daf-8894-234ecc916731\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"China\",\n \"prefix\": \"86\",\n \"iso\": \"CN\"\n \ - \ }\n },\n {\n \"id\": \"1c114629-69ea-4d8b-9305-4904926149fe\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Christmas Island\",\n \"prefix\": \"61\",\n \"iso\": \"\ - CX\"\n }\n },\n {\n \"id\": \"fd1b12b0-1107-471a-9422-d3f35114d3dc\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Colombia\",\n \"prefix\": \"57\",\n \"iso\": \"CO\"\n \ - \ }\n },\n {\n \"id\": \"9de720fe-fa19-444f-9a9e-87e012184aa2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Comoros\",\n \"prefix\": \"269\",\n \"iso\": \"KM\"\n \ - \ }\n },\n {\n \"id\": \"47484867-c2d8-41c0-b9a8-bc4e42a9f1e9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Congo\",\n \"prefix\": \"242\",\n \"iso\": \"CG\"\n \ - \ }\n },\n {\n \"id\": \"a1b67b93-11f4-42da-a308-4d72ad295625\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Cook Islands\",\n \"prefix\": \"682\",\n \"iso\": \"CK\"\ - \n }\n },\n {\n \"id\": \"76bfece7-78d7-471e-baab-edd0325714c4\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Costa Rica\",\n \"prefix\": \"506\",\n \"iso\": \"CR\"\n\ - \ }\n },\n {\n \"id\": \"9793bbee-2c5e-40bf-aadb-5fa38bf40c5b\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Cote DIvoire\",\n \"prefix\": \"225\",\n \"iso\": \"CI\"\ - \n }\n },\n {\n \"id\": \"78347fe1-6f98-47ea-999f-2b93b6aceb58\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Croatia\",\n \"prefix\": \"385\",\n \"iso\": \"HR\"\n \ - \ }\n },\n {\n \"id\": \"6c225277-7be6-48c8-b757-39981d972585\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Cuba\",\n \"prefix\": \"53\",\n \"iso\": \"CU\"\n }\n\ - \ },\n {\n \"id\": \"64c9bbb0-964c-4ac6-a336-a27053f88b24\",\n\ - \ \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Cura\\u00e7ao\",\n \"prefix\": \"599\",\n \"iso\": \"CW\"\ - \n }\n },\n {\n \"id\": \"6061dbd6-e5ff-45ed-8c98-489c397fc807\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Cyprus\",\n \"prefix\": \"357\",\n \"iso\": \"CY\"\n \ - \ }\n },\n {\n \"id\": \"1d2c0df1-1b51-40f7-bb76-5397a3f25934\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Czech Republic\",\n \"prefix\": \"420\",\n \"iso\": \"CZ\"\ - \n }\n },\n {\n \"id\": \"36f2bcfa-79a7-4bbf-894d-d66f53344220\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Democratic Republic Of Congo\",\n \"prefix\": \"243\",\n \ - \ \"iso\": \"CD\"\n }\n },\n {\n \"id\": \"f782047c-09ae-4424-8de3-762408dc7ba9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Denmark\",\n \"prefix\": \"45\",\n \"iso\": \"DK\"\n \ - \ }\n },\n {\n \"id\": \"8fb2f5ff-62fc-45ad-8e8a-7f7bbb893de9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Djibouti\",\n \"prefix\": \"253\",\n \"iso\": \"DJ\"\n \ - \ }\n },\n {\n \"id\": \"48f7aa4d-a1b6-4247-85c6-1d9bd91c3865\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Dominica\",\n \"prefix\": \"1767\",\n \"iso\": \"DM\"\n\ - \ }\n },\n {\n \"id\": \"a2618969-ac27-41e4-af10-cec2dee7ca92\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Dominican Republic\",\n \"prefix\": \"1\",\n \"iso\": \"\ - DO\"\n }\n },\n {\n \"id\": \"ad363233-3f37-4f68-b1bd-2ac4bed69ecd\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"East Timor\",\n \"prefix\": \"670\",\n \"iso\": \"TP\"\n\ - \ }\n },\n {\n \"id\": \"58876d89-4e8d-4738-9a5c-8b382432bee7\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Ecuador\",\n \"prefix\": \"593\",\n \"iso\": \"EC\"\n \ - \ }\n },\n {\n \"id\": \"f10b73b7-fad8-439f-acdc-f88ee5c2671d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Egypt\",\n \"prefix\": \"20\",\n \"iso\": \"EG\"\n \ - \ }\n },\n {\n \"id\": \"d053392c-c5dd-4b40-9984-bd9ed6756c72\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"El Salvador\",\n \"prefix\": \"503\",\n \"iso\": \"SV\"\n\ - \ }\n },\n {\n \"id\": \"4fe5175b-34a9-4533-abcd-f4e66bd400b3\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Equatorial Guinea\",\n \"prefix\": \"240\",\n \"iso\": \"\ - GQ\"\n }\n },\n {\n \"id\": \"e6d05058-48f2-4dda-92d2-b677b0ed3e7d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Eritrea\",\n \"prefix\": \"291\",\n \"iso\": \"ER\"\n \ - \ }\n },\n {\n \"id\": \"e369a791-dad8-4a48-a512-0fab3b54d4c2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Estonia\",\n \"prefix\": \"372\",\n \"iso\": \"EE\"\n \ - \ }\n },\n {\n \"id\": \"aa315104-6ec7-4c26-bfd0-dc953e64f72c\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Ethiopia\",\n \"prefix\": \"251\",\n \"iso\": \"ET\"\n \ - \ }\n },\n {\n \"id\": \"0abcab32-d99f-470e-8c7c-0556215174b7\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Falkland Islands\",\n \"prefix\": \"500\",\n \"iso\": \"\ - FK\"\n }\n },\n {\n \"id\": \"4c82cacb-c6dc-45fb-8a71-92dbafb0b6b1\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Faroe Islands\",\n \"prefix\": \"298\",\n \"iso\": \"FO\"\ - \n }\n },\n {\n \"id\": \"37b40372-eb9d-4ef3-9f78-fa071fdcea49\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Fiji\",\n \"prefix\": \"679\",\n \"iso\": \"FJ\"\n \ - \ }\n },\n {\n \"id\": \"5883ec41-eafe-46e9-99e8-5b3b386fea3a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Finland\",\n \"prefix\": \"358\",\n \"iso\": \"FI\"\n \ - \ }\n },\n {\n \"id\": \"7d9f8011-40a4-4fd7-a970-c3b679a75daf\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"France\",\n \"prefix\": \"33\",\n \"iso\": \"FR\"\n \ - \ }\n },\n {\n \"id\": \"e4be405d-55f5-440a-b263-8f8f5daa4cb6\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"French Guiana\",\n \"prefix\": \"594\",\n \"iso\": \"GF\"\ - \n }\n },\n {\n \"id\": \"535c35e4-e0a6-4798-a46c-6517ef0b1095\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"French Polynesia\",\n \"prefix\": \"689\",\n \"iso\": \"\ - PF\"\n }\n },\n {\n \"id\": \"bd6afdb8-d852-4214-ba80-e16a73bc6761\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"French Southern\",\n \"prefix\": \"262\",\n \"iso\": \"\ - TF\"\n }\n },\n {\n \"id\": \"a78ba1eb-d4f4-4273-81f5-fc6649f19918\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Gabon\",\n \"prefix\": \"241\",\n \"iso\": \"GA\"\n \ - \ }\n },\n {\n \"id\": \"bb71bf73-b07f-4cef-b8d6-d46daadab3b2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Gambia\",\n \"prefix\": \"220\",\n \"iso\": \"GM\"\n \ - \ }\n },\n {\n \"id\": \"b6f04bf7-f31a-44cb-a062-a36b3699429b\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Georgia\",\n \"prefix\": \"995\",\n \"iso\": \"GE\"\n \ - \ }\n },\n {\n \"id\": \"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Germany\",\n \"prefix\": \"49\",\n \"iso\": \"DE\"\n \ - \ }\n },\n {\n \"id\": \"7cbc534b-cf16-4ccf-b436-8ad0f06f03ba\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Ghana\",\n \"prefix\": \"233\",\n \"iso\": \"GH\"\n \ - \ }\n },\n {\n \"id\": \"08b1e1f4-e697-4607-8275-e8e2e6a66eab\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Gibraltar\",\n \"prefix\": \"350\",\n \"iso\": \"GI\"\n\ - \ }\n },\n {\n \"id\": \"86b9ccac-1cad-4e02-8cef-bb6cb7cb9c6a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Global\",\n \"prefix\": \"89\",\n \"iso\": \"WX\"\n \ - \ }\n },\n {\n \"id\": \"93444592-cbb1-42c5-99e9-5ffeb150b7ec\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Greece\",\n \"prefix\": \"30\",\n \"iso\": \"GR\"\n \ - \ }\n },\n {\n \"id\": \"43500361-f536-4e2f-9e69-5a7f6028f9cc\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Greenland\",\n \"prefix\": \"299\",\n \"iso\": \"GL\"\n\ - \ }\n },\n {\n \"id\": \"9a65c679-4b0c-4ca5-895d-d7c76d6ce8e2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Grenada\",\n \"prefix\": \"1473\",\n \"iso\": \"GD\"\n \ - \ }\n },\n {\n \"id\": \"a0b6f939-a10f-4584-a1b2-a8f3d3140d86\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Guadeloupe\",\n \"prefix\": \"590\",\n \"iso\": \"GP\"\n\ - \ }\n },\n {\n \"id\": \"d2e55a1c-e33c-49a2-8d74-9594470d5dca\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Guam\",\n \"prefix\": \"1671\",\n \"iso\": \"GU\"\n \ - \ }\n },\n {\n \"id\": \"1c413f83-1522-4dc8-841c-d1b4e4ed8ab2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Guatemala\",\n \"prefix\": \"502\",\n \"iso\": \"GT\"\n\ - \ }\n },\n {\n \"id\": \"3b05bbf7-2210-4983-95e8-9b72c9f15a77\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Guinea\",\n \"prefix\": \"224\",\n \"iso\": \"GN\"\n \ - \ }\n },\n {\n \"id\": \"f36ec7f2-2131-44b4-bc4e-a5c50f180549\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Guinea Bissau\",\n \"prefix\": \"245\",\n \"iso\": \"GW\"\ - \n }\n },\n {\n \"id\": \"f249f50c-1e89-499c-8c71-9caa6ceb0770\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Guyana\",\n \"prefix\": \"592\",\n \"iso\": \"GY\"\n \ - \ }\n },\n {\n \"id\": \"e06c6d09-485d-4e00-8658-0f8cf2dfff15\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Haiti\",\n \"prefix\": \"509\",\n \"iso\": \"HT\"\n \ - \ }\n },\n {\n \"id\": \"67edb8f8-f125-41b2-9cba-05d6f4e38029\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Honduras\",\n \"prefix\": \"504\",\n \"iso\": \"HN\"\n \ - \ }\n },\n {\n \"id\": \"e413c0ce-8eee-42c2-9f4c-2e4c6c9fd5c3\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Hong Kong\",\n \"prefix\": \"852\",\n \"iso\": \"HK\"\n\ - \ }\n },\n {\n \"id\": \"093df79a-c4d5-4ebd-8716-5a8523db2854\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Hungary\",\n \"prefix\": \"36\",\n \"iso\": \"HU\"\n \ - \ }\n },\n {\n \"id\": \"8526a723-49dc-461b-b9fd-ee7c0742935c\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Iceland\",\n \"prefix\": \"354\",\n \"iso\": \"IS\"\n \ - \ }\n },\n {\n \"id\": \"a07a1118-7d6c-487a-8f26-698e4f19fa32\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"India\",\n \"prefix\": \"91\",\n \"iso\": \"IN\"\n \ - \ }\n },\n {\n \"id\": \"4d41a42f-1dc6-44d1-8b63-7e9224133e48\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Indonesia\",\n \"prefix\": \"62\",\n \"iso\": \"ID\"\n \ - \ }\n },\n {\n \"id\": \"db52bed6-09e3-41a9-af9b-98e814798a44\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"International Network\",\n \"prefix\": \"882\",\n \"iso\"\ - : \"WZ\"\n }\n },\n {\n \"id\": \"914d97dd-a84b-4407-9574-c67bec6c1fee\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"International Networks\",\n \"prefix\": \"883\",\n \"iso\"\ - : \"WY\"\n }\n },\n {\n \"id\": \"aaba2d62-64c5-4d2c-8074-9920a014c278\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Iran\",\n \"prefix\": \"98\",\n \"iso\": \"IR\"\n }\n\ - \ },\n {\n \"id\": \"7518fc6b-3cc4-4a18-b27c-82dc53d302ef\",\n\ - \ \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Iraq\",\n \"prefix\": \"964\",\n \"iso\": \"IQ\"\n \ - \ }\n },\n {\n \"id\": \"5ff63a6f-075f-4d12-ba3a-d4a1e617eaeb\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Ireland\",\n \"prefix\": \"353\",\n \"iso\": \"IE\"\n \ - \ }\n },\n {\n \"id\": \"514e77da-5c87-4b86-9b5f-8c48b12a4d48\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Israel\",\n \"prefix\": \"972\",\n \"iso\": \"IL\"\n \ - \ }\n },\n {\n \"id\": \"05baebb6-4053-4870-acd6-8491eb200e0b\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Italy\",\n \"prefix\": \"39\",\n \"iso\": \"IT\"\n \ - \ }\n },\n {\n \"id\": \"ad1ee8ae-11b5-45df-a175-63b4a661bd31\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Jamaica\",\n \"prefix\": \"1\",\n \"iso\": \"JM\"\n \ - \ }\n },\n {\n \"id\": \"eb89ebf7-2c8c-4e7d-9aea-89cddeced3c8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Japan\",\n \"prefix\": \"81\",\n \"iso\": \"JP\"\n \ - \ }\n },\n {\n \"id\": \"4566e1df-9a28-49f8-939b-6828babee410\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Jordan\",\n \"prefix\": \"962\",\n \"iso\": \"JO\"\n \ - \ }\n },\n {\n \"id\": \"f7e78968-b6e4-463f-b213-8681ab3760f8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Kazakhstan\",\n \"prefix\": \"7\",\n \"iso\": \"KZ\"\n \ - \ }\n },\n {\n \"id\": \"2c3e0d50-e28a-4c1c-bfca-c77db719d469\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Kenya\",\n \"prefix\": \"254\",\n \"iso\": \"KE\"\n \ - \ }\n },\n {\n \"id\": \"ecc68601-c0d6-41ad-8167-1eb48cc30bde\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Kiribati\",\n \"prefix\": \"686\",\n \"iso\": \"KI\"\n \ - \ }\n },\n {\n \"id\": \"fb6eaa36-5b05-4925-9bdd-53665f8c90f9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Kuwait\",\n \"prefix\": \"965\",\n \"iso\": \"KW\"\n \ - \ }\n },\n {\n \"id\": \"e0e75649-58e6-4e53-b4cd-7728dcb7641c\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Kyrgyzstan\",\n \"prefix\": \"996\",\n \"iso\": \"KG\"\n\ - \ }\n },\n {\n \"id\": \"12dc3bd7-d4ed-4ae5-93a9-d6f22b2b896c\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Lao Peoples Democratic Republic\",\n \"prefix\": \"856\",\n \ - \ \"iso\": \"LA\"\n }\n },\n {\n \"id\": \"3786d53f-2a7b-450f-ac57-c38850d1a0d9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Latvia\",\n \"prefix\": \"371\",\n \"iso\": \"LV\"\n \ - \ }\n },\n {\n \"id\": \"a03ffb28-8e23-476c-8b57-529c0a225bbd\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Lebanon\",\n \"prefix\": \"961\",\n \"iso\": \"LB\"\n \ - \ }\n },\n {\n \"id\": \"59eea630-9cf9-4be1-adbd-cd7255c59485\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Lesotho\",\n \"prefix\": \"266\",\n \"iso\": \"LS\"\n \ - \ }\n },\n {\n \"id\": \"806ee1f1-f813-4dd4-b5c5-188933ed6d96\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Liberia\",\n \"prefix\": \"231\",\n \"iso\": \"LR\"\n \ - \ }\n },\n {\n \"id\": \"08e2a395-9837-4bbf-acb7-f44f5c3e4c31\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Libyan Arab Jamahiriya\",\n \"prefix\": \"218\",\n \"iso\"\ - : \"LY\"\n }\n },\n {\n \"id\": \"7e1df075-3ea0-4491-b8fa-57f1b07af625\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Liechtenstein\",\n \"prefix\": \"423\",\n \"iso\": \"LI\"\ - \n }\n },\n {\n \"id\": \"661d8448-8897-4765-acda-00cc1740148d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Lithuania\",\n \"prefix\": \"370\",\n \"iso\": \"LT\"\n\ - \ }\n },\n {\n \"id\": \"3ba49d6a-5f02-4dbe-bb7f-b3509fec2b2a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Luxembourg\",\n \"prefix\": \"352\",\n \"iso\": \"LU\"\n\ - \ }\n },\n {\n \"id\": \"bc449e92-6480-4c53-8d9c-f574a9b0b2bf\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Macao\",\n \"prefix\": \"853\",\n \"iso\": \"MO\"\n \ - \ }\n },\n {\n \"id\": \"c06a0a65-607a-4c75-a33e-0d65222a6da8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Macedonia\",\n \"prefix\": \"389\",\n \"iso\": \"MK\"\n\ - \ }\n },\n {\n \"id\": \"3408943f-950d-49f7-9a5b-2226bd9e2f51\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Madagascar\",\n \"prefix\": \"261\",\n \"iso\": \"MG\"\n\ - \ }\n },\n {\n \"id\": \"31be3528-bc84-4bda-8914-bb346ec26b68\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Malawi\",\n \"prefix\": \"265\",\n \"iso\": \"MW\"\n \ - \ }\n },\n {\n \"id\": \"cd24ef5b-a3a6-4dd5-bbd0-ca01882ccc65\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Malaysia\",\n \"prefix\": \"60\",\n \"iso\": \"MY\"\n \ - \ }\n },\n {\n \"id\": \"53d83e80-ceb0-4a65-9140-64a15d6fb712\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Maldives\",\n \"prefix\": \"960\",\n \"iso\": \"MV\"\n \ - \ }\n },\n {\n \"id\": \"d2cf1fd0-fa4d-4f4a-8ba1-eb9bef8195c1\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Mali\",\n \"prefix\": \"223\",\n \"iso\": \"ML\"\n \ - \ }\n },\n {\n \"id\": \"7c0f34bc-2c6f-4a0a-a4ce-3690cd3be29c\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Malta\",\n \"prefix\": \"356\",\n \"iso\": \"MT\"\n \ - \ }\n },\n {\n \"id\": \"3f42902c-fe3e-4da4-b656-64530897cc38\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Marshall Islands\",\n \"prefix\": \"692\",\n \"iso\": \"\ - MH\"\n }\n },\n {\n \"id\": \"53a95f9a-6e8d-4c75-9ebf-60aea8bb7cfe\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Martinique\",\n \"prefix\": \"596\",\n \"iso\": \"MQ\"\n\ - \ }\n },\n {\n \"id\": \"bb059d92-bf97-4397-b3f7-a4f9a274360e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Mauritania\",\n \"prefix\": \"222\",\n \"iso\": \"MR\"\n\ - \ }\n },\n {\n \"id\": \"032569b8-2407-40cc-8143-f7a5389b4810\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Mauritius\",\n \"prefix\": \"230\",\n \"iso\": \"MU\"\n\ - \ }\n },\n {\n \"id\": \"89bda52f-4f07-4d0a-b730-c4da69d38da2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Mayotte\",\n \"prefix\": \"262\",\n \"iso\": \"YT\"\n \ - \ }\n },\n {\n \"id\": \"410c07fc-4fa6-4693-b217-90838c1750a8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Mexico\",\n \"prefix\": \"52\",\n \"iso\": \"MX\"\n \ - \ }\n },\n {\n \"id\": \"9c33ec3d-a75a-4704-9c66-db7861fd4582\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Micronesia Federated States Of\",\n \"prefix\": \"691\",\n \ - \ \"iso\": \"FM\"\n }\n },\n {\n \"id\": \"45929f06-d181-4ae4-982d-7b56a5f092d6\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Moldova\",\n \"prefix\": \"373\",\n \"iso\": \"MD\"\n \ - \ }\n },\n {\n \"id\": \"ede31af6-92a7-4b64-b485-d0e307898de8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Monaco\",\n \"prefix\": \"377\",\n \"iso\": \"MC\"\n \ - \ }\n },\n {\n \"id\": \"ffac3fdb-40ea-463c-8891-362728d8144b\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Mongolia\",\n \"prefix\": \"976\",\n \"iso\": \"MN\"\n \ - \ }\n },\n {\n \"id\": \"a2ef73b7-8aec-49da-b3e0-7a1a07260b77\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Montenegro\",\n \"prefix\": \"382\",\n \"iso\": \"ME\"\n\ - \ }\n },\n {\n \"id\": \"10a17c42-7bf4-43f7-827c-5a48122ca3d0\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Montserrat\",\n \"prefix\": \"1664\",\n \"iso\": \"MS\"\n\ - \ }\n },\n {\n \"id\": \"796a4db7-6d84-4d0e-8e2a-24dcfa85dbab\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Morocco\",\n \"prefix\": \"212\",\n \"iso\": \"MA\"\n \ - \ }\n },\n {\n \"id\": \"fd492947-207e-4c35-9f4c-b1c804dc0bbe\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Mozambique\",\n \"prefix\": \"258\",\n \"iso\": \"MZ\"\n\ - \ }\n },\n {\n \"id\": \"c829e7c4-cdec-47c9-a481-3e401afe5452\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Myanmar\",\n \"prefix\": \"95\",\n \"iso\": \"MM\"\n \ - \ }\n },\n {\n \"id\": \"561e740a-6f5f-4484-b6a5-e7922e7e6a28\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Namibia\",\n \"prefix\": \"264\",\n \"iso\": \"NA\"\n \ - \ }\n },\n {\n \"id\": \"6f2514b0-4a63-4325-ba89-63f4eb13b420\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Nauru\",\n \"prefix\": \"674\",\n \"iso\": \"NR\"\n \ - \ }\n },\n {\n \"id\": \"31c152f7-41fb-4be9-94e1-53d62057a1a2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Nepal\",\n \"prefix\": \"977\",\n \"iso\": \"NP\"\n \ - \ }\n },\n {\n \"id\": \"6f8a6d1d-9341-4a64-a5d0-986639e24124\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Netherlands\",\n \"prefix\": \"31\",\n \"iso\": \"NL\"\n\ - \ }\n },\n {\n \"id\": \"7dbcb688-a7e7-452a-9735-7f4bd750ad89\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"New Caledonia\",\n \"prefix\": \"687\",\n \"iso\": \"NC\"\ - \n }\n },\n {\n \"id\": \"98513846-dd8f-487b-9828-e5f689bee3c6\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"New Zealand\",\n \"prefix\": \"64\",\n \"iso\": \"NZ\"\n\ - \ }\n },\n {\n \"id\": \"85bc2686-1b18-4ca0-a2f3-a8b2297770fe\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Nicaragua\",\n \"prefix\": \"505\",\n \"iso\": \"NI\"\n\ - \ }\n },\n {\n \"id\": \"1d220a15-712d-460c-8773-a08e9730cce6\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Niger\",\n \"prefix\": \"227\",\n \"iso\": \"NE\"\n \ - \ }\n },\n {\n \"id\": \"bb24495a-3bf8-4b0d-bdc7-763c3c23027b\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Nigeria\",\n \"prefix\": \"234\",\n \"iso\": \"NG\"\n \ - \ }\n },\n {\n \"id\": \"5e589230-ff7e-4293-a8e4-9fe992d318b7\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Niue\",\n \"prefix\": \"683\",\n \"iso\": \"NU\"\n \ - \ }\n },\n {\n \"id\": \"dde9f20a-9b47-4f93-bf03-e87f5c24ac2c\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Norfolk Island\",\n \"prefix\": \"672\",\n \"iso\": \"NF\"\ - \n }\n },\n {\n \"id\": \"cee1612b-b645-408e-b563-ab3c550f6cd9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Northern Mariana Islands\",\n \"prefix\": \"1670\",\n \"\ - iso\": \"MP\"\n }\n },\n {\n \"id\": \"0df8e504-d581-4279-8a01-3e28cf6515b1\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"North Korea\",\n \"prefix\": \"850\",\n \"iso\": \"KP\"\n\ - \ }\n },\n {\n \"id\": \"d17c184d-6f7d-4848-a87d-c5ed88020015\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Norway\",\n \"prefix\": \"47\",\n \"iso\": \"NO\"\n \ - \ }\n },\n {\n \"id\": \"ee84bcbf-e7fd-4e64-923d-54bcdba6e8c2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Oman\",\n \"prefix\": \"968\",\n \"iso\": \"OM\"\n \ - \ }\n },\n {\n \"id\": \"ffd90060-53f0-4a3a-961a-48b237d1cb94\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Pakistan\",\n \"prefix\": \"92\",\n \"iso\": \"PK\"\n \ - \ }\n },\n {\n \"id\": \"f40d44f0-6a05-4538-b9e5-25a3d518c85f\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Palau\",\n \"prefix\": \"680\",\n \"iso\": \"PW\"\n \ - \ }\n },\n {\n \"id\": \"187ffe47-fe34-4588-a031-6092e1f37321\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Palestine\",\n \"prefix\": \"970\",\n \"iso\": \"PS\"\n\ - \ }\n },\n {\n \"id\": \"d5ca867b-9a2f-49bf-bd50-1d37349e665e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Panama\",\n \"prefix\": \"507\",\n \"iso\": \"PA\"\n \ - \ }\n },\n {\n \"id\": \"88eb64ea-ffcb-484b-8733-73864d5fc0f5\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Papua New Guinea\",\n \"prefix\": \"675\",\n \"iso\": \"\ - PG\"\n }\n },\n {\n \"id\": \"c5d0effd-75c4-41cc-b419-a93eb343e474\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Paraguay\",\n \"prefix\": \"595\",\n \"iso\": \"PY\"\n \ - \ }\n },\n {\n \"id\": \"dac76647-14d5-438f-9de7-598c8d3d3149\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Peru\",\n \"prefix\": \"51\",\n \"iso\": \"PE\"\n }\n\ - \ },\n {\n \"id\": \"49938ee6-c1db-4fbb-b7d0-01e1123b87d9\",\n\ - \ \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Philippines\",\n \"prefix\": \"63\",\n \"iso\": \"PH\"\n\ - \ }\n },\n {\n \"id\": \"5b1a298e-d45d-48e8-8b4d-de3c5981a82a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Pitcairn\",\n \"prefix\": null,\n \"iso\": \"PN\"\n \ - \ }\n },\n {\n \"id\": \"37a97e75-f2ac-4485-82d3-d5a49bd4e4a9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Poland\",\n \"prefix\": \"48\",\n \"iso\": \"PL\"\n \ - \ }\n },\n {\n \"id\": \"b84bc6d4-fb8d-46bb-9b95-a94c78cb82a0\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Portugal\",\n \"prefix\": \"351\",\n \"iso\": \"PT\"\n \ - \ }\n },\n {\n \"id\": \"a84bb196-c3dd-40a2-af7d-baeee3660061\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Puerto Rico\",\n \"prefix\": \"1\",\n \"iso\": \"PR\"\n\ - \ }\n },\n {\n \"id\": \"28e4ff4a-653a-4873-80b9-a65905547ea8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Qatar\",\n \"prefix\": \"974\",\n \"iso\": \"QA\"\n \ - \ }\n },\n {\n \"id\": \"2ec1dac8-13d0-40a4-be52-b9285ce786a1\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Reunion\",\n \"prefix\": null,\n \"iso\": \"RE\"\n \ - \ }\n },\n {\n \"id\": \"93d5c5d4-e420-440b-9887-9693edd006ca\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Romania\",\n \"prefix\": \"40\",\n \"iso\": \"RO\"\n \ - \ }\n },\n {\n \"id\": \"134d9428-0cf1-469b-9657-bb65d1d9fcac\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Russian Federation\",\n \"prefix\": \"7\",\n \"iso\": \"\ - RU\"\n }\n },\n {\n \"id\": \"70c0146a-5ad6-426e-a8ba-56150359d151\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Rwanda\",\n \"prefix\": \"250\",\n \"iso\": \"RW\"\n \ - \ }\n },\n {\n \"id\": \"a6699092-a9f6-4691-b574-c31b104b7ffa\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Saint Helena\",\n \"prefix\": \"290\",\n \"iso\": \"SH\"\ - \n }\n },\n {\n \"id\": \"13f0613b-5549-4985-a0d8-06691b3db597\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Saint Kitts And Nevis\",\n \"prefix\": \"1869\",\n \"iso\"\ - : \"KN\"\n }\n },\n {\n \"id\": \"d386d82e-6525-4ce5-8584-2d1f9cae6b8a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Saint Lucia\",\n \"prefix\": \"1758\",\n \"iso\": \"LC\"\ - \n }\n },\n {\n \"id\": \"3fe60b6d-45da-44c8-80b3-1e2adda68d1c\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Saint Pierre And Miquelon\",\n \"prefix\": \"508\",\n \"\ - iso\": \"PM\"\n }\n },\n {\n \"id\": \"24b30641-d46a-44a5-af26-5485d295be3a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Saint Vincent\",\n \"prefix\": \"1\",\n \"iso\": \"VC\"\n\ - \ }\n },\n {\n \"id\": \"51a18593-cc94-4a4a-8e63-ca26b3429eee\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Samoa\",\n \"prefix\": \"685\",\n \"iso\": \"WS\"\n \ - \ }\n },\n {\n \"id\": \"37101c39-32f9-4241-83a7-938f75bcdf4a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"San Marino\",\n \"prefix\": \"378\",\n \"iso\": \"SM\"\n\ - \ }\n },\n {\n \"id\": \"bbed06f0-d30b-4d8d-80d3-6eb8f75725e4\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Sao Tome And Principe\",\n \"prefix\": null,\n \"iso\":\ - \ \"ST\"\n }\n },\n {\n \"id\": \"4e0b2ad5-912b-4b43-a670-03635a4cbe8c\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Saudi Arabia\",\n \"prefix\": \"966\",\n \"iso\": \"SA\"\ - \n }\n },\n {\n \"id\": \"e87ea495-59d3-4b0d-9be0-d3a1d8fad354\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Senegal\",\n \"prefix\": \"221\",\n \"iso\": \"SN\"\n \ - \ }\n },\n {\n \"id\": \"8498a2dc-3c92-421c-b917-873a661e6e2a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Serbia\",\n \"prefix\": \"381\",\n \"iso\": \"RS\"\n \ - \ }\n },\n {\n \"id\": \"f833c0b0-1484-407c-a758-fedffef9b044\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Seychelles\",\n \"prefix\": \"248\",\n \"iso\": \"SC\"\n\ - \ }\n },\n {\n \"id\": \"51143fb7-e8f9-489c-bac1-b3bca45ecd2d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Sierra Leone\",\n \"prefix\": \"232\",\n \"iso\": \"SL\"\ - \n }\n },\n {\n \"id\": \"c7ff81e1-da30-4d87-8110-88c5aed0b619\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Singapore\",\n \"prefix\": \"65\",\n \"iso\": \"SG\"\n \ - \ }\n },\n {\n \"id\": \"be646dc6-dd7e-4947-a11b-79fe5871d3dd\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Slovakia\",\n \"prefix\": \"421\",\n \"iso\": \"SK\"\n \ - \ }\n },\n {\n \"id\": \"de9ad7fd-115d-4f95-9a59-d357a9999e38\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Slovenia\",\n \"prefix\": \"386\",\n \"iso\": \"SI\"\n \ - \ }\n },\n {\n \"id\": \"ca73a70a-1176-499a-9b23-87f0e6f500a0\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Solomon Islands\",\n \"prefix\": \"677\",\n \"iso\": \"\ - SB\"\n }\n },\n {\n \"id\": \"69a3aa14-54e8-4149-85ed-44ccecec8fa3\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Somalia\",\n \"prefix\": \"252\",\n \"iso\": \"SO\"\n \ - \ }\n },\n {\n \"id\": \"9b0329f8-8295-45a7-8f2a-64129b87cdaa\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"South Africa\",\n \"prefix\": \"27\",\n \"iso\": \"ZA\"\n\ - \ }\n },\n {\n \"id\": \"5eced6a9-45f1-488d-9558-d77548a64faf\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"South Korea\",\n \"prefix\": \"82\",\n \"iso\": \"KR\"\n\ - \ }\n },\n {\n \"id\": \"4b8b8c78-8b64-4f70-85e5-05d0e4889e6d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"South Sudan\",\n \"prefix\": \"211\",\n \"iso\": \"SS\"\n\ - \ }\n },\n {\n \"id\": \"5b156dc2-327e-4665-bdc5-35cd8729b885\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Spain\",\n \"prefix\": \"34\",\n \"iso\": \"ES\"\n \ - \ }\n },\n {\n \"id\": \"00d4c5f2-3e82-4c63-9b6e-6c6abea8188b\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Sri Lanka\",\n \"prefix\": \"94\",\n \"iso\": \"LK\"\n \ - \ }\n },\n {\n \"id\": \"543494cb-35ae-43b0-8ec3-ce9b390d5c7e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Sudan\",\n \"prefix\": \"249\",\n \"iso\": \"SD\"\n \ - \ }\n },\n {\n \"id\": \"dae68fdf-a894-4991-83a6-d5efebca6c31\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Suriname\",\n \"prefix\": \"597\",\n \"iso\": \"SR\"\n \ - \ }\n },\n {\n \"id\": \"f38aea4b-de76-422e-b9be-fd494ade87c9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Svalbard And Jan Mayen\",\n \"prefix\": \"47\",\n \"iso\"\ - : \"SJ\"\n }\n },\n {\n \"id\": \"9108e29b-1189-45ce-84ff-2f2bda6998f7\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Swaziland\",\n \"prefix\": \"268\",\n \"iso\": \"SZ\"\n\ - \ }\n },\n {\n \"id\": \"7549be3c-1077-433d-9a77-25416373660d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Sweden\",\n \"prefix\": \"46\",\n \"iso\": \"SE\"\n \ - \ }\n },\n {\n \"id\": \"c03605c9-b40d-4b13-9e83-c8e5bf41d9f4\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Switzerland\",\n \"prefix\": \"41\",\n \"iso\": \"CH\"\n\ - \ }\n },\n {\n \"id\": \"129fdc4f-668b-4ea2-b56a-eafc344e1e66\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Syrian Arab Republic\",\n \"prefix\": \"963\",\n \"iso\"\ - : \"SY\"\n }\n },\n {\n \"id\": \"fd63fa76-bc65-446d-8be4-2d84731ab470\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Taiwan\",\n \"prefix\": \"886\",\n \"iso\": \"TW\"\n \ - \ }\n },\n {\n \"id\": \"c4cc14e3-7190-494b-9e84-2a063ecb615a\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Tajikistan\",\n \"prefix\": \"992\",\n \"iso\": \"TJ\"\n\ - \ }\n },\n {\n \"id\": \"51320dd1-6cd6-4484-b8db-072a4d34db1e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Taka-tuka\",\n \"prefix\": \"112\",\n \"iso\": \"00\"\n\ - \ }\n },\n {\n \"id\": \"fb69e8ce-4195-44f3-808c-ed2702a3a7b8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Tanzania\",\n \"prefix\": \"255\",\n \"iso\": \"TZ\"\n \ - \ }\n },\n {\n \"id\": \"e8a1a559-d5bf-4831-a0c3-1886f59967fc\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Thailand\",\n \"prefix\": \"66\",\n \"iso\": \"TH\"\n \ - \ }\n },\n {\n \"id\": \"2a50ff9b-2564-4252-bacc-515443438f79\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Timor Leste\",\n \"prefix\": \"670\",\n \"iso\": \"TL\"\n\ - \ }\n },\n {\n \"id\": \"14a8b771-6075-4d02-8b77-5c31bcacd279\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Togo\",\n \"prefix\": \"228\",\n \"iso\": \"TG\"\n \ - \ }\n },\n {\n \"id\": \"b4cf777e-c6d5-4e1c-89ba-ebbee5a884c4\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Tokelau\",\n \"prefix\": \"690\",\n \"iso\": \"TK\"\n \ - \ }\n },\n {\n \"id\": \"2e1cf224-9fff-42f4-9523-ba78a6fa9ce7\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Tonga\",\n \"prefix\": \"676\",\n \"iso\": \"TO\"\n \ - \ }\n },\n {\n \"id\": \"a4414ee0-34c0-49d2-886d-14fcaa46044d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Trinidad And Tobago\",\n \"prefix\": \"1868\",\n \"iso\"\ - : \"TT\"\n }\n },\n {\n \"id\": \"65868a1f-7d1c-412e-a41c-d68210d7026d\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Tunisia\",\n \"prefix\": \"216\",\n \"iso\": \"TN\"\n \ - \ }\n },\n {\n \"id\": \"39dc851f-2fcb-4870-bbb4-e65e371c3333\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Turkey\",\n \"prefix\": \"90\",\n \"iso\": \"TR\"\n \ - \ }\n },\n {\n \"id\": \"61cc37e0-de11-4f63-bfcd-b21dcd81454f\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Turkmenistan\",\n \"prefix\": \"993\",\n \"iso\": \"TM\"\ - \n }\n },\n {\n \"id\": \"e4afbb77-e87c-4cb5-8b8c-846ec2a56841\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Turks And Caicos Islands\",\n \"prefix\": \"1649\",\n \"\ - iso\": \"TC\"\n }\n },\n {\n \"id\": \"abd5c2bb-69ea-4016-91c9-a01b0691832f\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Tuvalu\",\n \"prefix\": \"688\",\n \"iso\": \"TV\"\n \ - \ }\n },\n {\n \"id\": \"96dab4f1-da30-49a9-83f4-e92b7ccdd4a8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Uganda\",\n \"prefix\": \"256\",\n \"iso\": \"UG\"\n \ - \ }\n },\n {\n \"id\": \"f0ce4464-dfeb-412f-8ad1-ee27a858d0c2\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Ukraine\",\n \"prefix\": \"380\",\n \"iso\": \"UA\"\n \ - \ }\n },\n {\n \"id\": \"9b2be02d-03a0-49a7-bb0c-9ee13fe88daf\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"United Arab Emirates\",\n \"prefix\": \"971\",\n \"iso\"\ - : \"AE\"\n }\n },\n {\n \"id\": \"7eda11bb-0e66-4146-98e7-57a5281f56c8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"United Kingdom\",\n \"prefix\": \"44\",\n \"iso\": \"GB\"\ - \n }\n },\n {\n \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"United States\",\n \"prefix\": \"1\",\n \"iso\": \"US\"\n\ - \ }\n },\n {\n \"id\": \"f0a748e3-b307-4591-8418-7c03bcdd5ecf\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Uruguay\",\n \"prefix\": \"598\",\n \"iso\": \"UY\"\n \ - \ }\n },\n {\n \"id\": \"55bf95e5-31a2-4159-a9dd-a3756bb52f1c\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"US Minor Outlying Islands\",\n \"prefix\": \"699\",\n \"\ - iso\": \"UM\"\n }\n },\n {\n \"id\": \"70ba2ffa-0c74-4dd5-93ca-3ad48cd12872\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"US Virgin Islands\",\n \"prefix\": \"1340\",\n \"iso\":\ - \ \"VI\"\n }\n },\n {\n \"id\": \"57d2c50c-9858-4d57-884b-d51005c80992\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Uzbekistan\",\n \"prefix\": \"998\",\n \"iso\": \"UZ\"\n\ - \ }\n },\n {\n \"id\": \"ad701d8b-f148-4691-8455-ac7ea53fef31\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Vanuatu\",\n \"prefix\": \"678\",\n \"iso\": \"VU\"\n \ - \ }\n },\n {\n \"id\": \"6fe29757-8cd8-44d0-82b5-6f7b02d8e420\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Venezuela\",\n \"prefix\": \"58\",\n \"iso\": \"VE\"\n \ - \ }\n },\n {\n \"id\": \"6aa332f9-e63a-44c5-a2cd-272e1274be47\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Vietnam\",\n \"prefix\": \"84\",\n \"iso\": \"VN\"\n \ - \ }\n },\n {\n \"id\": \"904ca216-dc7a-48f6-8f40-c96e33cbd788\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Wallis And Futuna\",\n \"prefix\": \"681\",\n \"iso\": \"\ - WF\"\n }\n },\n {\n \"id\": \"9cec29f5-daf8-49a8-a24d-934d96e16024\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Western Sahara\",\n \"prefix\": null,\n \"iso\": \"EH\"\n\ - \ }\n },\n {\n \"id\": \"d4389869-6074-408c-ab5e-34eb35a65508\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Yemen\",\n \"prefix\": \"967\",\n \"iso\": \"YE\"\n \ - \ }\n },\n {\n \"id\": \"8ed8ce8d-ea6f-44af-abe1-628c493a0b73\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Zambia\",\n \"prefix\": \"260\",\n \"iso\": \"ZM\"\n \ - \ }\n },\n {\n \"id\": \"0ef3ab8c-caee-4430-9cce-d9976ce7d693\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Zimbabwe\",\n \"prefix\": \"263\",\n \"iso\": \"ZW\"\n \ - \ }\n }\n ]\n}" + string: '{"data":[{"id":"6c7727b3-6e17-4b8b-a4b3-4c5142e31a63","type":"countries","attributes":{"name":"Afghanistan","prefix":"93","iso":"AF"}},{"id":"86c5647c-67a2-4856-8271-3c78c90bb47b","type":"countries","attributes":{"name":"Albania","prefix":"355","iso":"AL"}},{"id":"e36a345a-0186-4eb4-85e6-840fed74f49f","type":"countries","attributes":{"name":"Algeria","prefix":"213","iso":"DZ"}},{"id":"71efd050-248f-4255-9558-226dff4a62fc","type":"countries","attributes":{"name":"American Samoa","prefix":"1684","iso":"AS"}},{"id":"b9dce495-1085-4452-8224-6761dd3cc15a","type":"countries","attributes":{"name":"Andorra","prefix":"376","iso":"AD"}},{"id":"3d34b655-df3c-4aa0-bde6-e7787756b4d8","type":"countries","attributes":{"name":"Angola","prefix":"244","iso":"AO"}},{"id":"9a8ba950-ead9-4ede-bd5f-0220bfc3212d","type":"countries","attributes":{"name":"Anguilla","prefix":"1264","iso":"AI"}},{"id":"c6174e54-d240-4cef-94ae-c21853b2747e","type":"countries","attributes":{"name":"Antarctica","prefix":null,"iso":"AQ"}},{"id":"7b693d72-b569-4853-b491-916e43d29970","type":"countries","attributes":{"name":"Antigua And Barbuda","prefix":"1268","iso":"AG"}},{"id":"3d1c2c4e-4b06-4c94-8f0b-43eea90929a0","type":"countries","attributes":{"name":"Argentina","prefix":"54","iso":"AR"}},{"id":"873673a3-4338-4f99-89b3-a73968f1fcd5","type":"countries","attributes":{"name":"Armenia","prefix":"374","iso":"AM"}},{"id":"ddebc1ae-a89a-4d1c-b95a-eda3b0849a25","type":"countries","attributes":{"name":"Aruba","prefix":"297","iso":"AW"}},{"id":"9a4c9414-5353-4fb3-81ee-f8e3e3587034","type":"countries","attributes":{"name":"Australia","prefix":"61","iso":"AU"}},{"id":"60657766-0c13-4ad9-beb2-300ad1c66511","type":"countries","attributes":{"name":"Austria","prefix":"43","iso":"AT"}},{"id":"a415006e-072d-4f87-b540-0f90c637c6d1","type":"countries","attributes":{"name":"Azerbaijan","prefix":"994","iso":"AZ"}},{"id":"419915bd-6368-485b-8db9-99f5b7b52d46","type":"countries","attributes":{"name":"Bahamas","prefix":"1242","iso":"BS"}},{"id":"dc9c1de5-6043-4726-bab2-63e915b7eae4","type":"countries","attributes":{"name":"Bahrain","prefix":"973","iso":"BH"}},{"id":"f6e6f6bd-a76b-4ea3-8f02-6906b0945b99","type":"countries","attributes":{"name":"Bangladesh","prefix":"880","iso":"BD"}},{"id":"15b9bdee-85aa-4f6c-890b-19b5f8ec50dd","type":"countries","attributes":{"name":"Barbados","prefix":"1246","iso":"BB"}},{"id":"9a0e5b4b-cbff-40f5-89ac-07c205a0ddd2","type":"countries","attributes":{"name":"Belarus","prefix":"375","iso":"BY"}},{"id":"f711b8ee-7576-4d40-9dd4-f51a69cee8a7","type":"countries","attributes":{"name":"Belgium","prefix":"32","iso":"BE"}},{"id":"b1dc322f-f07f-4e8b-9e4b-3d9679eaef60","type":"countries","attributes":{"name":"Belize","prefix":"501","iso":"BZ"}},{"id":"a9a39ddf-eb23-41e7-8394-86ea07bfb105","type":"countries","attributes":{"name":"Benin","prefix":"229","iso":"BJ"}},{"id":"5d358525-1725-49a9-89a4-f36aaf7ac469","type":"countries","attributes":{"name":"Bermuda","prefix":"1441","iso":"BM"}},{"id":"4348edc9-9ae6-484a-95f2-242a2679ee85","type":"countries","attributes":{"name":"Bhutan","prefix":"975","iso":"BT"}},{"id":"4915018a-3537-4aa0-926e-d3f1a3498f1d","type":"countries","attributes":{"name":"Bolivia","prefix":"591","iso":"BO"}},{"id":"a5971c7d-c8b3-4f32-a3d0-c92067b012cb","type":"countries","attributes":{"name":"Bosnia And Herzegovina","prefix":"387","iso":"BA"}},{"id":"fbf7a14c-0a6b-424a-9a21-55ab6e0fbe4d","type":"countries","attributes":{"name":"Botswana","prefix":"267","iso":"BW"}},{"id":"ac92b635-f8b9-42a2-a8d4-c7cfff8481c8","type":"countries","attributes":{"name":"Bouvet Island","prefix":null,"iso":"BV"}},{"id":"fd56bea6-8cbf-4846-9c2f-bd2742015529","type":"countries","attributes":{"name":"Brazil","prefix":"55","iso":"BR"}},{"id":"e6deeab8-8f1c-4685-a0c2-9ac562ca1d24","type":"countries","attributes":{"name":"British Virgin Islands","prefix":"1284","iso":"VG"}},{"id":"6518c891-6809-4b37-80b7-bfc5c5bae720","type":"countries","attributes":{"name":"Brunei Darussalam","prefix":"673","iso":"BN"}},{"id":"f25136bb-a336-43fa-b05f-34e52d75adaa","type":"countries","attributes":{"name":"Bulgaria","prefix":"359","iso":"BG"}},{"id":"586a8e38-753d-4e30-bce6-8a071a8c77b4","type":"countries","attributes":{"name":"Burkina Faso","prefix":"226","iso":"BF"}},{"id":"df7872d4-8d7b-461f-86fa-31c533fb297d","type":"countries","attributes":{"name":"Burundi","prefix":"257","iso":"BI"}},{"id":"97746b92-4a17-4216-acd4-e51aaec247b1","type":"countries","attributes":{"name":"Cambodia","prefix":"855","iso":"KH"}},{"id":"10c6aa33-d06a-4ca7-8c48-803690a05827","type":"countries","attributes":{"name":"Cameroon","prefix":"237","iso":"CM"}},{"id":"24eb6e85-f628-4765-bbb2-420e48de76f2","type":"countries","attributes":{"name":"Canada","prefix":"1","iso":"CA"}},{"id":"245a11a6-0e73-419f-b9c4-05b27f4436cb","type":"countries","attributes":{"name":"Cape Verde","prefix":"238","iso":"CV"}},{"id":"3dd07989-af62-4906-897b-47219f546ada","type":"countries","attributes":{"name":"Cayman Islands","prefix":"1345","iso":"KY"}},{"id":"2bd78923-28f2-457e-a395-1b4f240a7962","type":"countries","attributes":{"name":"Central African Republic","prefix":"236","iso":"CF"}},{"id":"54b54fb7-1938-4bbd-88ad-eb97fc4a34fb","type":"countries","attributes":{"name":"Chad","prefix":"235","iso":"TD"}},{"id":"eb06b185-ff83-445f-96f7-16bfc98bc23e","type":"countries","attributes":{"name":"Chile","prefix":"56","iso":"CL"}},{"id":"fccd5be9-41dc-4daf-8894-234ecc916731","type":"countries","attributes":{"name":"China","prefix":"86","iso":"CN"}},{"id":"1c114629-69ea-4d8b-9305-4904926149fe","type":"countries","attributes":{"name":"Christmas Island","prefix":"61","iso":"CX"}},{"id":"fd1b12b0-1107-471a-9422-d3f35114d3dc","type":"countries","attributes":{"name":"Colombia","prefix":"57","iso":"CO"}},{"id":"9de720fe-fa19-444f-9a9e-87e012184aa2","type":"countries","attributes":{"name":"Comoros","prefix":"269","iso":"KM"}},{"id":"47484867-c2d8-41c0-b9a8-bc4e42a9f1e9","type":"countries","attributes":{"name":"Congo","prefix":"242","iso":"CG"}},{"id":"a1b67b93-11f4-42da-a308-4d72ad295625","type":"countries","attributes":{"name":"Cook Islands","prefix":"682","iso":"CK"}},{"id":"76bfece7-78d7-471e-baab-edd0325714c4","type":"countries","attributes":{"name":"Costa Rica","prefix":"506","iso":"CR"}},{"id":"9793bbee-2c5e-40bf-aadb-5fa38bf40c5b","type":"countries","attributes":{"name":"Cote DIvoire","prefix":"225","iso":"CI"}},{"id":"78347fe1-6f98-47ea-999f-2b93b6aceb58","type":"countries","attributes":{"name":"Croatia","prefix":"385","iso":"HR"}},{"id":"6c225277-7be6-48c8-b757-39981d972585","type":"countries","attributes":{"name":"Cuba","prefix":"53","iso":"CU"}},{"id":"64c9bbb0-964c-4ac6-a336-a27053f88b24","type":"countries","attributes":{"name":"Curaçao","prefix":"599","iso":"CW"}},{"id":"6061dbd6-e5ff-45ed-8c98-489c397fc807","type":"countries","attributes":{"name":"Cyprus","prefix":"357","iso":"CY"}},{"id":"1d2c0df1-1b51-40f7-bb76-5397a3f25934","type":"countries","attributes":{"name":"Czech Republic","prefix":"420","iso":"CZ"}},{"id":"36f2bcfa-79a7-4bbf-894d-d66f53344220","type":"countries","attributes":{"name":"Democratic Republic Of Congo","prefix":"243","iso":"CD"}},{"id":"f782047c-09ae-4424-8de3-762408dc7ba9","type":"countries","attributes":{"name":"Denmark","prefix":"45","iso":"DK"}},{"id":"8fb2f5ff-62fc-45ad-8e8a-7f7bbb893de9","type":"countries","attributes":{"name":"Djibouti","prefix":"253","iso":"DJ"}},{"id":"48f7aa4d-a1b6-4247-85c6-1d9bd91c3865","type":"countries","attributes":{"name":"Dominica","prefix":"1767","iso":"DM"}},{"id":"a2618969-ac27-41e4-af10-cec2dee7ca92","type":"countries","attributes":{"name":"Dominican Republic","prefix":"1","iso":"DO"}},{"id":"ad363233-3f37-4f68-b1bd-2ac4bed69ecd","type":"countries","attributes":{"name":"East Timor","prefix":"670","iso":"TP"}},{"id":"58876d89-4e8d-4738-9a5c-8b382432bee7","type":"countries","attributes":{"name":"Ecuador","prefix":"593","iso":"EC"}},{"id":"f10b73b7-fad8-439f-acdc-f88ee5c2671d","type":"countries","attributes":{"name":"Egypt","prefix":"20","iso":"EG"}},{"id":"d053392c-c5dd-4b40-9984-bd9ed6756c72","type":"countries","attributes":{"name":"El Salvador","prefix":"503","iso":"SV"}},{"id":"4fe5175b-34a9-4533-abcd-f4e66bd400b3","type":"countries","attributes":{"name":"Equatorial Guinea","prefix":"240","iso":"GQ"}},{"id":"e6d05058-48f2-4dda-92d2-b677b0ed3e7d","type":"countries","attributes":{"name":"Eritrea","prefix":"291","iso":"ER"}},{"id":"e369a791-dad8-4a48-a512-0fab3b54d4c2","type":"countries","attributes":{"name":"Estonia","prefix":"372","iso":"EE"}},{"id":"aa315104-6ec7-4c26-bfd0-dc953e64f72c","type":"countries","attributes":{"name":"Ethiopia","prefix":"251","iso":"ET"}},{"id":"0abcab32-d99f-470e-8c7c-0556215174b7","type":"countries","attributes":{"name":"Falkland Islands","prefix":"500","iso":"FK"}},{"id":"4c82cacb-c6dc-45fb-8a71-92dbafb0b6b1","type":"countries","attributes":{"name":"Faroe Islands","prefix":"298","iso":"FO"}},{"id":"37b40372-eb9d-4ef3-9f78-fa071fdcea49","type":"countries","attributes":{"name":"Fiji","prefix":"679","iso":"FJ"}},{"id":"5883ec41-eafe-46e9-99e8-5b3b386fea3a","type":"countries","attributes":{"name":"Finland","prefix":"358","iso":"FI"}},{"id":"7d9f8011-40a4-4fd7-a970-c3b679a75daf","type":"countries","attributes":{"name":"France","prefix":"33","iso":"FR"}},{"id":"e4be405d-55f5-440a-b263-8f8f5daa4cb6","type":"countries","attributes":{"name":"French Guiana","prefix":"594","iso":"GF"}},{"id":"535c35e4-e0a6-4798-a46c-6517ef0b1095","type":"countries","attributes":{"name":"French Polynesia","prefix":"689","iso":"PF"}},{"id":"bd6afdb8-d852-4214-ba80-e16a73bc6761","type":"countries","attributes":{"name":"French Southern","prefix":"262","iso":"TF"}},{"id":"a78ba1eb-d4f4-4273-81f5-fc6649f19918","type":"countries","attributes":{"name":"Gabon","prefix":"241","iso":"GA"}},{"id":"bb71bf73-b07f-4cef-b8d6-d46daadab3b2","type":"countries","attributes":{"name":"Gambia","prefix":"220","iso":"GM"}},{"id":"b6f04bf7-f31a-44cb-a062-a36b3699429b","type":"countries","attributes":{"name":"Georgia","prefix":"995","iso":"GE"}},{"id":"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e","type":"countries","attributes":{"name":"Germany","prefix":"49","iso":"DE"}},{"id":"7cbc534b-cf16-4ccf-b436-8ad0f06f03ba","type":"countries","attributes":{"name":"Ghana","prefix":"233","iso":"GH"}},{"id":"08b1e1f4-e697-4607-8275-e8e2e6a66eab","type":"countries","attributes":{"name":"Gibraltar","prefix":"350","iso":"GI"}},{"id":"86b9ccac-1cad-4e02-8cef-bb6cb7cb9c6a","type":"countries","attributes":{"name":"Global","prefix":"89","iso":"WX"}},{"id":"93444592-cbb1-42c5-99e9-5ffeb150b7ec","type":"countries","attributes":{"name":"Greece","prefix":"30","iso":"GR"}},{"id":"43500361-f536-4e2f-9e69-5a7f6028f9cc","type":"countries","attributes":{"name":"Greenland","prefix":"299","iso":"GL"}},{"id":"9a65c679-4b0c-4ca5-895d-d7c76d6ce8e2","type":"countries","attributes":{"name":"Grenada","prefix":"1473","iso":"GD"}},{"id":"a0b6f939-a10f-4584-a1b2-a8f3d3140d86","type":"countries","attributes":{"name":"Guadeloupe","prefix":"590","iso":"GP"}},{"id":"d2e55a1c-e33c-49a2-8d74-9594470d5dca","type":"countries","attributes":{"name":"Guam","prefix":"1671","iso":"GU"}},{"id":"1c413f83-1522-4dc8-841c-d1b4e4ed8ab2","type":"countries","attributes":{"name":"Guatemala","prefix":"502","iso":"GT"}},{"id":"3b05bbf7-2210-4983-95e8-9b72c9f15a77","type":"countries","attributes":{"name":"Guinea","prefix":"224","iso":"GN"}},{"id":"f36ec7f2-2131-44b4-bc4e-a5c50f180549","type":"countries","attributes":{"name":"Guinea Bissau","prefix":"245","iso":"GW"}},{"id":"f249f50c-1e89-499c-8c71-9caa6ceb0770","type":"countries","attributes":{"name":"Guyana","prefix":"592","iso":"GY"}},{"id":"e06c6d09-485d-4e00-8658-0f8cf2dfff15","type":"countries","attributes":{"name":"Haiti","prefix":"509","iso":"HT"}},{"id":"67edb8f8-f125-41b2-9cba-05d6f4e38029","type":"countries","attributes":{"name":"Honduras","prefix":"504","iso":"HN"}},{"id":"e413c0ce-8eee-42c2-9f4c-2e4c6c9fd5c3","type":"countries","attributes":{"name":"Hong Kong","prefix":"852","iso":"HK"}},{"id":"093df79a-c4d5-4ebd-8716-5a8523db2854","type":"countries","attributes":{"name":"Hungary","prefix":"36","iso":"HU"}},{"id":"8526a723-49dc-461b-b9fd-ee7c0742935c","type":"countries","attributes":{"name":"Iceland","prefix":"354","iso":"IS"}},{"id":"a07a1118-7d6c-487a-8f26-698e4f19fa32","type":"countries","attributes":{"name":"India","prefix":"91","iso":"IN"}},{"id":"4d41a42f-1dc6-44d1-8b63-7e9224133e48","type":"countries","attributes":{"name":"Indonesia","prefix":"62","iso":"ID"}},{"id":"db52bed6-09e3-41a9-af9b-98e814798a44","type":"countries","attributes":{"name":"International Network","prefix":"882","iso":"WZ"}},{"id":"914d97dd-a84b-4407-9574-c67bec6c1fee","type":"countries","attributes":{"name":"International Networks","prefix":"883","iso":"WY"}},{"id":"aaba2d62-64c5-4d2c-8074-9920a014c278","type":"countries","attributes":{"name":"Iran","prefix":"98","iso":"IR"}},{"id":"7518fc6b-3cc4-4a18-b27c-82dc53d302ef","type":"countries","attributes":{"name":"Iraq","prefix":"964","iso":"IQ"}},{"id":"5ff63a6f-075f-4d12-ba3a-d4a1e617eaeb","type":"countries","attributes":{"name":"Ireland","prefix":"353","iso":"IE"}},{"id":"514e77da-5c87-4b86-9b5f-8c48b12a4d48","type":"countries","attributes":{"name":"Israel","prefix":"972","iso":"IL"}},{"id":"05baebb6-4053-4870-acd6-8491eb200e0b","type":"countries","attributes":{"name":"Italy","prefix":"39","iso":"IT"}},{"id":"ad1ee8ae-11b5-45df-a175-63b4a661bd31","type":"countries","attributes":{"name":"Jamaica","prefix":"1","iso":"JM"}},{"id":"eb89ebf7-2c8c-4e7d-9aea-89cddeced3c8","type":"countries","attributes":{"name":"Japan","prefix":"81","iso":"JP"}},{"id":"4566e1df-9a28-49f8-939b-6828babee410","type":"countries","attributes":{"name":"Jordan","prefix":"962","iso":"JO"}},{"id":"f7e78968-b6e4-463f-b213-8681ab3760f8","type":"countries","attributes":{"name":"Kazakhstan","prefix":"7","iso":"KZ"}},{"id":"2c3e0d50-e28a-4c1c-bfca-c77db719d469","type":"countries","attributes":{"name":"Kenya","prefix":"254","iso":"KE"}},{"id":"ecc68601-c0d6-41ad-8167-1eb48cc30bde","type":"countries","attributes":{"name":"Kiribati","prefix":"686","iso":"KI"}},{"id":"fb6eaa36-5b05-4925-9bdd-53665f8c90f9","type":"countries","attributes":{"name":"Kuwait","prefix":"965","iso":"KW"}},{"id":"e0e75649-58e6-4e53-b4cd-7728dcb7641c","type":"countries","attributes":{"name":"Kyrgyzstan","prefix":"996","iso":"KG"}},{"id":"12dc3bd7-d4ed-4ae5-93a9-d6f22b2b896c","type":"countries","attributes":{"name":"Lao Peoples Democratic Republic","prefix":"856","iso":"LA"}},{"id":"3786d53f-2a7b-450f-ac57-c38850d1a0d9","type":"countries","attributes":{"name":"Latvia","prefix":"371","iso":"LV"}},{"id":"a03ffb28-8e23-476c-8b57-529c0a225bbd","type":"countries","attributes":{"name":"Lebanon","prefix":"961","iso":"LB"}},{"id":"59eea630-9cf9-4be1-adbd-cd7255c59485","type":"countries","attributes":{"name":"Lesotho","prefix":"266","iso":"LS"}},{"id":"806ee1f1-f813-4dd4-b5c5-188933ed6d96","type":"countries","attributes":{"name":"Liberia","prefix":"231","iso":"LR"}},{"id":"08e2a395-9837-4bbf-acb7-f44f5c3e4c31","type":"countries","attributes":{"name":"Libyan Arab Jamahiriya","prefix":"218","iso":"LY"}},{"id":"7e1df075-3ea0-4491-b8fa-57f1b07af625","type":"countries","attributes":{"name":"Liechtenstein","prefix":"423","iso":"LI"}},{"id":"661d8448-8897-4765-acda-00cc1740148d","type":"countries","attributes":{"name":"Lithuania","prefix":"370","iso":"LT"}},{"id":"3ba49d6a-5f02-4dbe-bb7f-b3509fec2b2a","type":"countries","attributes":{"name":"Luxembourg","prefix":"352","iso":"LU"}},{"id":"bc449e92-6480-4c53-8d9c-f574a9b0b2bf","type":"countries","attributes":{"name":"Macao","prefix":"853","iso":"MO"}},{"id":"c06a0a65-607a-4c75-a33e-0d65222a6da8","type":"countries","attributes":{"name":"Macedonia","prefix":"389","iso":"MK"}},{"id":"3408943f-950d-49f7-9a5b-2226bd9e2f51","type":"countries","attributes":{"name":"Madagascar","prefix":"261","iso":"MG"}},{"id":"31be3528-bc84-4bda-8914-bb346ec26b68","type":"countries","attributes":{"name":"Malawi","prefix":"265","iso":"MW"}},{"id":"cd24ef5b-a3a6-4dd5-bbd0-ca01882ccc65","type":"countries","attributes":{"name":"Malaysia","prefix":"60","iso":"MY"}},{"id":"53d83e80-ceb0-4a65-9140-64a15d6fb712","type":"countries","attributes":{"name":"Maldives","prefix":"960","iso":"MV"}},{"id":"d2cf1fd0-fa4d-4f4a-8ba1-eb9bef8195c1","type":"countries","attributes":{"name":"Mali","prefix":"223","iso":"ML"}},{"id":"7c0f34bc-2c6f-4a0a-a4ce-3690cd3be29c","type":"countries","attributes":{"name":"Malta","prefix":"356","iso":"MT"}},{"id":"3f42902c-fe3e-4da4-b656-64530897cc38","type":"countries","attributes":{"name":"Marshall Islands","prefix":"692","iso":"MH"}},{"id":"53a95f9a-6e8d-4c75-9ebf-60aea8bb7cfe","type":"countries","attributes":{"name":"Martinique","prefix":"596","iso":"MQ"}},{"id":"bb059d92-bf97-4397-b3f7-a4f9a274360e","type":"countries","attributes":{"name":"Mauritania","prefix":"222","iso":"MR"}},{"id":"032569b8-2407-40cc-8143-f7a5389b4810","type":"countries","attributes":{"name":"Mauritius","prefix":"230","iso":"MU"}},{"id":"89bda52f-4f07-4d0a-b730-c4da69d38da2","type":"countries","attributes":{"name":"Mayotte","prefix":"262","iso":"YT"}},{"id":"410c07fc-4fa6-4693-b217-90838c1750a8","type":"countries","attributes":{"name":"Mexico","prefix":"52","iso":"MX"}},{"id":"9c33ec3d-a75a-4704-9c66-db7861fd4582","type":"countries","attributes":{"name":"Micronesia Federated States Of","prefix":"691","iso":"FM"}},{"id":"45929f06-d181-4ae4-982d-7b56a5f092d6","type":"countries","attributes":{"name":"Moldova","prefix":"373","iso":"MD"}},{"id":"ede31af6-92a7-4b64-b485-d0e307898de8","type":"countries","attributes":{"name":"Monaco","prefix":"377","iso":"MC"}},{"id":"ffac3fdb-40ea-463c-8891-362728d8144b","type":"countries","attributes":{"name":"Mongolia","prefix":"976","iso":"MN"}},{"id":"a2ef73b7-8aec-49da-b3e0-7a1a07260b77","type":"countries","attributes":{"name":"Montenegro","prefix":"382","iso":"ME"}},{"id":"10a17c42-7bf4-43f7-827c-5a48122ca3d0","type":"countries","attributes":{"name":"Montserrat","prefix":"1664","iso":"MS"}},{"id":"796a4db7-6d84-4d0e-8e2a-24dcfa85dbab","type":"countries","attributes":{"name":"Morocco","prefix":"212","iso":"MA"}},{"id":"fd492947-207e-4c35-9f4c-b1c804dc0bbe","type":"countries","attributes":{"name":"Mozambique","prefix":"258","iso":"MZ"}},{"id":"c829e7c4-cdec-47c9-a481-3e401afe5452","type":"countries","attributes":{"name":"Myanmar","prefix":"95","iso":"MM"}},{"id":"561e740a-6f5f-4484-b6a5-e7922e7e6a28","type":"countries","attributes":{"name":"Namibia","prefix":"264","iso":"NA"}},{"id":"6f2514b0-4a63-4325-ba89-63f4eb13b420","type":"countries","attributes":{"name":"Nauru","prefix":"674","iso":"NR"}},{"id":"31c152f7-41fb-4be9-94e1-53d62057a1a2","type":"countries","attributes":{"name":"Nepal","prefix":"977","iso":"NP"}},{"id":"6f8a6d1d-9341-4a64-a5d0-986639e24124","type":"countries","attributes":{"name":"Netherlands","prefix":"31","iso":"NL"}},{"id":"7dbcb688-a7e7-452a-9735-7f4bd750ad89","type":"countries","attributes":{"name":"New Caledonia","prefix":"687","iso":"NC"}},{"id":"98513846-dd8f-487b-9828-e5f689bee3c6","type":"countries","attributes":{"name":"New Zealand","prefix":"64","iso":"NZ"}},{"id":"85bc2686-1b18-4ca0-a2f3-a8b2297770fe","type":"countries","attributes":{"name":"Nicaragua","prefix":"505","iso":"NI"}},{"id":"1d220a15-712d-460c-8773-a08e9730cce6","type":"countries","attributes":{"name":"Niger","prefix":"227","iso":"NE"}},{"id":"bb24495a-3bf8-4b0d-bdc7-763c3c23027b","type":"countries","attributes":{"name":"Nigeria","prefix":"234","iso":"NG"}},{"id":"5e589230-ff7e-4293-a8e4-9fe992d318b7","type":"countries","attributes":{"name":"Niue","prefix":"683","iso":"NU"}},{"id":"dde9f20a-9b47-4f93-bf03-e87f5c24ac2c","type":"countries","attributes":{"name":"Norfolk Island","prefix":"672","iso":"NF"}},{"id":"cee1612b-b645-408e-b563-ab3c550f6cd9","type":"countries","attributes":{"name":"Northern Mariana Islands","prefix":"1670","iso":"MP"}},{"id":"0df8e504-d581-4279-8a01-3e28cf6515b1","type":"countries","attributes":{"name":"North Korea","prefix":"850","iso":"KP"}},{"id":"d17c184d-6f7d-4848-a87d-c5ed88020015","type":"countries","attributes":{"name":"Norway","prefix":"47","iso":"NO"}},{"id":"ee84bcbf-e7fd-4e64-923d-54bcdba6e8c2","type":"countries","attributes":{"name":"Oman","prefix":"968","iso":"OM"}},{"id":"ffd90060-53f0-4a3a-961a-48b237d1cb94","type":"countries","attributes":{"name":"Pakistan","prefix":"92","iso":"PK"}},{"id":"f40d44f0-6a05-4538-b9e5-25a3d518c85f","type":"countries","attributes":{"name":"Palau","prefix":"680","iso":"PW"}},{"id":"187ffe47-fe34-4588-a031-6092e1f37321","type":"countries","attributes":{"name":"Palestine","prefix":"970","iso":"PS"}},{"id":"d5ca867b-9a2f-49bf-bd50-1d37349e665e","type":"countries","attributes":{"name":"Panama","prefix":"507","iso":"PA"}},{"id":"88eb64ea-ffcb-484b-8733-73864d5fc0f5","type":"countries","attributes":{"name":"Papua New Guinea","prefix":"675","iso":"PG"}},{"id":"c5d0effd-75c4-41cc-b419-a93eb343e474","type":"countries","attributes":{"name":"Paraguay","prefix":"595","iso":"PY"}},{"id":"dac76647-14d5-438f-9de7-598c8d3d3149","type":"countries","attributes":{"name":"Peru","prefix":"51","iso":"PE"}},{"id":"49938ee6-c1db-4fbb-b7d0-01e1123b87d9","type":"countries","attributes":{"name":"Philippines","prefix":"63","iso":"PH"}},{"id":"5b1a298e-d45d-48e8-8b4d-de3c5981a82a","type":"countries","attributes":{"name":"Pitcairn","prefix":null,"iso":"PN"}},{"id":"37a97e75-f2ac-4485-82d3-d5a49bd4e4a9","type":"countries","attributes":{"name":"Poland","prefix":"48","iso":"PL"}},{"id":"b84bc6d4-fb8d-46bb-9b95-a94c78cb82a0","type":"countries","attributes":{"name":"Portugal","prefix":"351","iso":"PT"}},{"id":"a84bb196-c3dd-40a2-af7d-baeee3660061","type":"countries","attributes":{"name":"Puerto Rico","prefix":"1","iso":"PR"}},{"id":"28e4ff4a-653a-4873-80b9-a65905547ea8","type":"countries","attributes":{"name":"Qatar","prefix":"974","iso":"QA"}},{"id":"2ec1dac8-13d0-40a4-be52-b9285ce786a1","type":"countries","attributes":{"name":"Reunion","prefix":null,"iso":"RE"}},{"id":"93d5c5d4-e420-440b-9887-9693edd006ca","type":"countries","attributes":{"name":"Romania","prefix":"40","iso":"RO"}},{"id":"134d9428-0cf1-469b-9657-bb65d1d9fcac","type":"countries","attributes":{"name":"Russian Federation","prefix":"7","iso":"RU"}},{"id":"70c0146a-5ad6-426e-a8ba-56150359d151","type":"countries","attributes":{"name":"Rwanda","prefix":"250","iso":"RW"}},{"id":"a6699092-a9f6-4691-b574-c31b104b7ffa","type":"countries","attributes":{"name":"Saint Helena","prefix":"290","iso":"SH"}},{"id":"13f0613b-5549-4985-a0d8-06691b3db597","type":"countries","attributes":{"name":"Saint Kitts And Nevis","prefix":"1869","iso":"KN"}},{"id":"d386d82e-6525-4ce5-8584-2d1f9cae6b8a","type":"countries","attributes":{"name":"Saint Lucia","prefix":"1758","iso":"LC"}},{"id":"3fe60b6d-45da-44c8-80b3-1e2adda68d1c","type":"countries","attributes":{"name":"Saint Pierre And Miquelon","prefix":"508","iso":"PM"}},{"id":"24b30641-d46a-44a5-af26-5485d295be3a","type":"countries","attributes":{"name":"Saint Vincent","prefix":"1","iso":"VC"}},{"id":"51a18593-cc94-4a4a-8e63-ca26b3429eee","type":"countries","attributes":{"name":"Samoa","prefix":"685","iso":"WS"}},{"id":"37101c39-32f9-4241-83a7-938f75bcdf4a","type":"countries","attributes":{"name":"San Marino","prefix":"378","iso":"SM"}},{"id":"bbed06f0-d30b-4d8d-80d3-6eb8f75725e4","type":"countries","attributes":{"name":"Sao Tome And Principe","prefix":null,"iso":"ST"}},{"id":"4e0b2ad5-912b-4b43-a670-03635a4cbe8c","type":"countries","attributes":{"name":"Saudi Arabia","prefix":"966","iso":"SA"}},{"id":"e87ea495-59d3-4b0d-9be0-d3a1d8fad354","type":"countries","attributes":{"name":"Senegal","prefix":"221","iso":"SN"}},{"id":"8498a2dc-3c92-421c-b917-873a661e6e2a","type":"countries","attributes":{"name":"Serbia","prefix":"381","iso":"RS"}},{"id":"f833c0b0-1484-407c-a758-fedffef9b044","type":"countries","attributes":{"name":"Seychelles","prefix":"248","iso":"SC"}},{"id":"51143fb7-e8f9-489c-bac1-b3bca45ecd2d","type":"countries","attributes":{"name":"Sierra Leone","prefix":"232","iso":"SL"}},{"id":"c7ff81e1-da30-4d87-8110-88c5aed0b619","type":"countries","attributes":{"name":"Singapore","prefix":"65","iso":"SG"}},{"id":"be646dc6-dd7e-4947-a11b-79fe5871d3dd","type":"countries","attributes":{"name":"Slovakia","prefix":"421","iso":"SK"}},{"id":"de9ad7fd-115d-4f95-9a59-d357a9999e38","type":"countries","attributes":{"name":"Slovenia","prefix":"386","iso":"SI"}},{"id":"ca73a70a-1176-499a-9b23-87f0e6f500a0","type":"countries","attributes":{"name":"Solomon Islands","prefix":"677","iso":"SB"}},{"id":"69a3aa14-54e8-4149-85ed-44ccecec8fa3","type":"countries","attributes":{"name":"Somalia","prefix":"252","iso":"SO"}},{"id":"9b0329f8-8295-45a7-8f2a-64129b87cdaa","type":"countries","attributes":{"name":"South Africa","prefix":"27","iso":"ZA"}},{"id":"5eced6a9-45f1-488d-9558-d77548a64faf","type":"countries","attributes":{"name":"South Korea","prefix":"82","iso":"KR"}},{"id":"4b8b8c78-8b64-4f70-85e5-05d0e4889e6d","type":"countries","attributes":{"name":"South Sudan","prefix":"211","iso":"SS"}},{"id":"5b156dc2-327e-4665-bdc5-35cd8729b885","type":"countries","attributes":{"name":"Spain","prefix":"34","iso":"ES"}},{"id":"00d4c5f2-3e82-4c63-9b6e-6c6abea8188b","type":"countries","attributes":{"name":"Sri Lanka","prefix":"94","iso":"LK"}},{"id":"543494cb-35ae-43b0-8ec3-ce9b390d5c7e","type":"countries","attributes":{"name":"Sudan","prefix":"249","iso":"SD"}},{"id":"dae68fdf-a894-4991-83a6-d5efebca6c31","type":"countries","attributes":{"name":"Suriname","prefix":"597","iso":"SR"}},{"id":"f38aea4b-de76-422e-b9be-fd494ade87c9","type":"countries","attributes":{"name":"Svalbard And Jan Mayen","prefix":"47","iso":"SJ"}},{"id":"9108e29b-1189-45ce-84ff-2f2bda6998f7","type":"countries","attributes":{"name":"Swaziland","prefix":"268","iso":"SZ"}},{"id":"7549be3c-1077-433d-9a77-25416373660d","type":"countries","attributes":{"name":"Sweden","prefix":"46","iso":"SE"}},{"id":"c03605c9-b40d-4b13-9e83-c8e5bf41d9f4","type":"countries","attributes":{"name":"Switzerland","prefix":"41","iso":"CH"}},{"id":"129fdc4f-668b-4ea2-b56a-eafc344e1e66","type":"countries","attributes":{"name":"Syrian Arab Republic","prefix":"963","iso":"SY"}},{"id":"fd63fa76-bc65-446d-8be4-2d84731ab470","type":"countries","attributes":{"name":"Taiwan","prefix":"886","iso":"TW"}},{"id":"c4cc14e3-7190-494b-9e84-2a063ecb615a","type":"countries","attributes":{"name":"Tajikistan","prefix":"992","iso":"TJ"}},{"id":"51320dd1-6cd6-4484-b8db-072a4d34db1e","type":"countries","attributes":{"name":"Taka-tuka","prefix":"112","iso":"00"}},{"id":"fb69e8ce-4195-44f3-808c-ed2702a3a7b8","type":"countries","attributes":{"name":"Tanzania","prefix":"255","iso":"TZ"}},{"id":"e8a1a559-d5bf-4831-a0c3-1886f59967fc","type":"countries","attributes":{"name":"Thailand","prefix":"66","iso":"TH"}},{"id":"2a50ff9b-2564-4252-bacc-515443438f79","type":"countries","attributes":{"name":"Timor Leste","prefix":"670","iso":"TL"}},{"id":"14a8b771-6075-4d02-8b77-5c31bcacd279","type":"countries","attributes":{"name":"Togo","prefix":"228","iso":"TG"}},{"id":"b4cf777e-c6d5-4e1c-89ba-ebbee5a884c4","type":"countries","attributes":{"name":"Tokelau","prefix":"690","iso":"TK"}},{"id":"2e1cf224-9fff-42f4-9523-ba78a6fa9ce7","type":"countries","attributes":{"name":"Tonga","prefix":"676","iso":"TO"}},{"id":"a4414ee0-34c0-49d2-886d-14fcaa46044d","type":"countries","attributes":{"name":"Trinidad And Tobago","prefix":"1868","iso":"TT"}},{"id":"65868a1f-7d1c-412e-a41c-d68210d7026d","type":"countries","attributes":{"name":"Tunisia","prefix":"216","iso":"TN"}},{"id":"39dc851f-2fcb-4870-bbb4-e65e371c3333","type":"countries","attributes":{"name":"Turkey","prefix":"90","iso":"TR"}},{"id":"61cc37e0-de11-4f63-bfcd-b21dcd81454f","type":"countries","attributes":{"name":"Turkmenistan","prefix":"993","iso":"TM"}},{"id":"e4afbb77-e87c-4cb5-8b8c-846ec2a56841","type":"countries","attributes":{"name":"Turks And Caicos Islands","prefix":"1649","iso":"TC"}},{"id":"abd5c2bb-69ea-4016-91c9-a01b0691832f","type":"countries","attributes":{"name":"Tuvalu","prefix":"688","iso":"TV"}},{"id":"96dab4f1-da30-49a9-83f4-e92b7ccdd4a8","type":"countries","attributes":{"name":"Uganda","prefix":"256","iso":"UG"}},{"id":"f0ce4464-dfeb-412f-8ad1-ee27a858d0c2","type":"countries","attributes":{"name":"Ukraine","prefix":"380","iso":"UA"}},{"id":"9b2be02d-03a0-49a7-bb0c-9ee13fe88daf","type":"countries","attributes":{"name":"United Arab Emirates","prefix":"971","iso":"AE"}},{"id":"7eda11bb-0e66-4146-98e7-57a5281f56c8","type":"countries","attributes":{"name":"United Kingdom","prefix":"44","iso":"GB"}},{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"}},{"id":"f0a748e3-b307-4591-8418-7c03bcdd5ecf","type":"countries","attributes":{"name":"Uruguay","prefix":"598","iso":"UY"}},{"id":"55bf95e5-31a2-4159-a9dd-a3756bb52f1c","type":"countries","attributes":{"name":"US Minor Outlying Islands","prefix":"699","iso":"UM"}},{"id":"70ba2ffa-0c74-4dd5-93ca-3ad48cd12872","type":"countries","attributes":{"name":"US Virgin Islands","prefix":"1340","iso":"VI"}},{"id":"57d2c50c-9858-4d57-884b-d51005c80992","type":"countries","attributes":{"name":"Uzbekistan","prefix":"998","iso":"UZ"}},{"id":"ad701d8b-f148-4691-8455-ac7ea53fef31","type":"countries","attributes":{"name":"Vanuatu","prefix":"678","iso":"VU"}},{"id":"6fe29757-8cd8-44d0-82b5-6f7b02d8e420","type":"countries","attributes":{"name":"Venezuela","prefix":"58","iso":"VE"}},{"id":"6aa332f9-e63a-44c5-a2cd-272e1274be47","type":"countries","attributes":{"name":"Vietnam","prefix":"84","iso":"VN"}},{"id":"904ca216-dc7a-48f6-8f40-c96e33cbd788","type":"countries","attributes":{"name":"Wallis And Futuna","prefix":"681","iso":"WF"}},{"id":"9cec29f5-daf8-49a8-a24d-934d96e16024","type":"countries","attributes":{"name":"Western Sahara","prefix":null,"iso":"EH"}},{"id":"d4389869-6074-408c-ab5e-34eb35a65508","type":"countries","attributes":{"name":"Yemen","prefix":"967","iso":"YE"}},{"id":"8ed8ce8d-ea6f-44af-abe1-628c493a0b73","type":"countries","attributes":{"name":"Zambia","prefix":"260","iso":"ZM"}},{"id":"0ef3ab8c-caee-4430-9cce-d9976ce7d693","type":"countries","attributes":{"name":"Zimbabwe","prefix":"263","iso":"ZW"}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/countries/show.yaml b/tests/fixtures/countries/show.yaml index 0279fd2..ff7504d 100644 --- a/tests/fixtures/countries/show.yaml +++ b/tests/fixtures/countries/show.yaml @@ -12,10 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/countries/7eda11bb-0e66-4146-98e7-57a5281f56c8 response: body: - string: "{\n \"data\": {\n \"id\": \"7eda11bb-0e66-4146-98e7-57a5281f56c8\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\": \"\ - United Kingdom\",\n \"prefix\": \"44\",\n \"iso\": \"GB\"\n }\n\ - \ }\n}" + string: '{"data":{"id":"7eda11bb-0e66-4146-98e7-57a5281f56c8","type":"countries","attributes":{"name":"United Kingdom","prefix":"44","iso":"GB"}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/countries/show_with_regions.yaml b/tests/fixtures/countries/show_with_regions.yaml index 3bced17..2df5c54 100644 --- a/tests/fixtures/countries/show_with_regions.yaml +++ b/tests/fixtures/countries/show_with_regions.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/countries/661d8448-8897-4765-acda-00cc1740148d response: body: - string: '{"data":{"id":"661d8448-8897-4765-acda-00cc1740148d","type":"countries","attributes":{"name":"Lithuania","prefix":"370","iso":"LT"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/661d8448-8897-4765-acda-00cc1740148d/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/661d8448-8897-4765-acda-00cc1740148d/regions"},"data":[{"type":"regions","id":"00b4739a-7cb4-4ac0-832d-e074e298c27f"},{"type":"regions","id":"6ac34979-7b01-4d29-8660-4e4b4f88b4a5"},{"type":"regions","id":"5fe68f2c-59ea-4c95-9321-133155d19575"},{"type":"regions","id":"01bb5f69-548d-4f1d-8d12-1dd0278684e2"},{"type":"regions","id":"d17564b9-ab83-401f-b809-5aad610f7901"},{"type":"regions","id":"81e23da7-6141-40dc-8748-9cf95c67efb2"},{"type":"regions","id":"ebdef6ee-1d69-48ee-98c4-035fb4b616bc"},{"type":"regions","id":"cf097040-18fc-4fd6-ac5d-f04bd118629b"},{"type":"regions","id":"5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3"},{"type":"regions","id":"7bbb4150-8144-468f-8edf-a321ca8b2a90"}]}}},"included":[{"id":"00b4739a-7cb4-4ac0-832d-e074e298c27f","type":"regions","attributes":{"name":"Alytaus Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/00b4739a-7cb4-4ac0-832d-e074e298c27f/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/00b4739a-7cb4-4ac0-832d-e074e298c27f/country"}}}},{"id":"6ac34979-7b01-4d29-8660-4e4b4f88b4a5","type":"regions","attributes":{"name":"Klaip\u0117dos Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/6ac34979-7b01-4d29-8660-4e4b4f88b4a5/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/6ac34979-7b01-4d29-8660-4e4b4f88b4a5/country"}}}},{"id":"5fe68f2c-59ea-4c95-9321-133155d19575","type":"regions","attributes":{"name":"Kauno Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/5fe68f2c-59ea-4c95-9321-133155d19575/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/5fe68f2c-59ea-4c95-9321-133155d19575/country"}}}},{"id":"01bb5f69-548d-4f1d-8d12-1dd0278684e2","type":"regions","attributes":{"name":"Marijampol\u0117s Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/01bb5f69-548d-4f1d-8d12-1dd0278684e2/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/01bb5f69-548d-4f1d-8d12-1dd0278684e2/country"}}}},{"id":"d17564b9-ab83-401f-b809-5aad610f7901","type":"regions","attributes":{"name":"Panev\u0117\u017eio Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/d17564b9-ab83-401f-b809-5aad610f7901/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/d17564b9-ab83-401f-b809-5aad610f7901/country"}}}},{"id":"81e23da7-6141-40dc-8748-9cf95c67efb2","type":"regions","attributes":{"name":"\u0160iauli\u0173 Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/81e23da7-6141-40dc-8748-9cf95c67efb2/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/81e23da7-6141-40dc-8748-9cf95c67efb2/country"}}}},{"id":"ebdef6ee-1d69-48ee-98c4-035fb4b616bc","type":"regions","attributes":{"name":"Taurag\u00e9s Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/ebdef6ee-1d69-48ee-98c4-035fb4b616bc/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/ebdef6ee-1d69-48ee-98c4-035fb4b616bc/country"}}}},{"id":"cf097040-18fc-4fd6-ac5d-f04bd118629b","type":"regions","attributes":{"name":"Tel\u0161i\u0173 Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/cf097040-18fc-4fd6-ac5d-f04bd118629b/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/cf097040-18fc-4fd6-ac5d-f04bd118629b/country"}}}},{"id":"5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3","type":"regions","attributes":{"name":"Utenos Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3/country"}}}},{"id":"7bbb4150-8144-468f-8edf-a321ca8b2a90","type":"regions","attributes":{"name":"Vilniaus Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/7bbb4150-8144-468f-8edf-a321ca8b2a90/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/7bbb4150-8144-468f-8edf-a321ca8b2a90/country"}}}}],"meta":{"api_version":"2026-04-16"}}' + string: '{"data":{"id":"661d8448-8897-4765-acda-00cc1740148d","type":"countries","attributes":{"name":"Lithuania","prefix":"370","iso":"LT"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/661d8448-8897-4765-acda-00cc1740148d/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/661d8448-8897-4765-acda-00cc1740148d/regions"},"data":[{"type":"regions","id":"00b4739a-7cb4-4ac0-832d-e074e298c27f"},{"type":"regions","id":"6ac34979-7b01-4d29-8660-4e4b4f88b4a5"},{"type":"regions","id":"5fe68f2c-59ea-4c95-9321-133155d19575"},{"type":"regions","id":"01bb5f69-548d-4f1d-8d12-1dd0278684e2"},{"type":"regions","id":"d17564b9-ab83-401f-b809-5aad610f7901"},{"type":"regions","id":"81e23da7-6141-40dc-8748-9cf95c67efb2"},{"type":"regions","id":"ebdef6ee-1d69-48ee-98c4-035fb4b616bc"},{"type":"regions","id":"cf097040-18fc-4fd6-ac5d-f04bd118629b"},{"type":"regions","id":"5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3"},{"type":"regions","id":"7bbb4150-8144-468f-8edf-a321ca8b2a90"}]}}},"included":[{"id":"00b4739a-7cb4-4ac0-832d-e074e298c27f","type":"regions","attributes":{"name":"Alytaus Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/00b4739a-7cb4-4ac0-832d-e074e298c27f/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/00b4739a-7cb4-4ac0-832d-e074e298c27f/country"}}}},{"id":"6ac34979-7b01-4d29-8660-4e4b4f88b4a5","type":"regions","attributes":{"name":"Klaipėdos Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/6ac34979-7b01-4d29-8660-4e4b4f88b4a5/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/6ac34979-7b01-4d29-8660-4e4b4f88b4a5/country"}}}},{"id":"5fe68f2c-59ea-4c95-9321-133155d19575","type":"regions","attributes":{"name":"Kauno Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/5fe68f2c-59ea-4c95-9321-133155d19575/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/5fe68f2c-59ea-4c95-9321-133155d19575/country"}}}},{"id":"01bb5f69-548d-4f1d-8d12-1dd0278684e2","type":"regions","attributes":{"name":"Marijampolės Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/01bb5f69-548d-4f1d-8d12-1dd0278684e2/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/01bb5f69-548d-4f1d-8d12-1dd0278684e2/country"}}}},{"id":"d17564b9-ab83-401f-b809-5aad610f7901","type":"regions","attributes":{"name":"Panevėžio Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/d17564b9-ab83-401f-b809-5aad610f7901/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/d17564b9-ab83-401f-b809-5aad610f7901/country"}}}},{"id":"81e23da7-6141-40dc-8748-9cf95c67efb2","type":"regions","attributes":{"name":"Šiaulių Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/81e23da7-6141-40dc-8748-9cf95c67efb2/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/81e23da7-6141-40dc-8748-9cf95c67efb2/country"}}}},{"id":"ebdef6ee-1d69-48ee-98c4-035fb4b616bc","type":"regions","attributes":{"name":"Tauragés Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/ebdef6ee-1d69-48ee-98c4-035fb4b616bc/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/ebdef6ee-1d69-48ee-98c4-035fb4b616bc/country"}}}},{"id":"cf097040-18fc-4fd6-ac5d-f04bd118629b","type":"regions","attributes":{"name":"Telšių Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/cf097040-18fc-4fd6-ac5d-f04bd118629b/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/cf097040-18fc-4fd6-ac5d-f04bd118629b/country"}}}},{"id":"5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3","type":"regions","attributes":{"name":"Utenos Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/5cc7e7f3-6e80-49a0-b8a1-cd367e1429e3/country"}}}},{"id":"7bbb4150-8144-468f-8edf-a321ca8b2a90","type":"regions","attributes":{"name":"Vilniaus Apskritis","iso":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/7bbb4150-8144-468f-8edf-a321ca8b2a90/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/7bbb4150-8144-468f-8edf-a321ca8b2a90/country"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/did_group_types/list.yaml b/tests/fixtures/did_group_types/list.yaml index b04d462..33c5f5b 100644 --- a/tests/fixtures/did_group_types/list.yaml +++ b/tests/fixtures/did_group_types/list.yaml @@ -12,22 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/did_group_types response: body: - string: "{\n \"data\": [\n {\n \"id\": \"d6530a8c-924c-469a-98c0-9525602e6192\"\ - ,\n \"type\": \"did_group_types\",\n \"attributes\": {\n \ - \ \"name\": \"Global\"\n }\n },\n {\n \"id\": \"994ea201-4a4d-4b27-ac4b-b5916ac969a3\"\ - ,\n \"type\": \"did_group_types\",\n \"attributes\": {\n \ - \ \"name\": \"Local\"\n }\n },\n {\n \"id\": \"6bba60f1-e724-4d12-9ea4-a3a64705800f\"\ - ,\n \"type\": \"did_group_types\",\n \"attributes\": {\n \ - \ \"name\": \"Mobile\"\n }\n },\n {\n \"id\": \"2c165e9d-c6f5-4fe1-ad0e-bacf5bab3d86\"\ - ,\n \"type\": \"did_group_types\",\n \"attributes\": {\n \ - \ \"name\": \"National\"\n }\n },\n {\n \"id\": \"e95378ee-e93f-459e-a2f6-9056c064f529\"\ - ,\n \"type\": \"did_group_types\",\n \"attributes\": {\n \ - \ \"name\": \"Shared Cost\"\n }\n },\n {\n \"id\": \"ec95e831-fc36-489a-a531-0fd1984ab6e8\"\ - ,\n \"type\": \"did_group_types\",\n \"attributes\": {\n \ - \ \"name\": \"Toll-free\"\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 6\n },\n \"links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/did_group_types?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/did_group_types?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - \n }\n}" + string: '{"data":[{"id":"d6530a8c-924c-469a-98c0-9525602e6192","type":"did_group_types","attributes":{"name":"Global"}},{"id":"994ea201-4a4d-4b27-ac4b-b5916ac969a3","type":"did_group_types","attributes":{"name":"Local"}},{"id":"6bba60f1-e724-4d12-9ea4-a3a64705800f","type":"did_group_types","attributes":{"name":"Mobile"}},{"id":"2c165e9d-c6f5-4fe1-ad0e-bacf5bab3d86","type":"did_group_types","attributes":{"name":"National"}},{"id":"e95378ee-e93f-459e-a2f6-9056c064f529","type":"did_group_types","attributes":{"name":"Shared Cost"}},{"id":"ec95e831-fc36-489a-a531-0fd1984ab6e8","type":"did_group_types","attributes":{"name":"Toll-free"}}],"meta":{"total_records":6},"links":{"first":"https://sandbox-api.didww.com/v3/did_group_types?page%5Bnumber%5D=1&page%5Bsize%5D=50","last":"https://sandbox-api.didww.com/v3/did_group_types?page%5Bnumber%5D=1&page%5Bsize%5D=50"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/did_group_types/show.yaml b/tests/fixtures/did_group_types/show.yaml index da6158a..5871519 100644 --- a/tests/fixtures/did_group_types/show.yaml +++ b/tests/fixtures/did_group_types/show.yaml @@ -12,9 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/did_group_types/d6530a8c-924c-469a-98c0-9525602e6192 response: body: - string: "{\n \"data\": {\n \"id\": \"d6530a8c-924c-469a-98c0-9525602e6192\"\ - ,\n \"type\": \"did_group_types\",\n \"attributes\": {\n \"name\"\ - : \"Global\"\n }\n }\n}" + string: '{"data":{"id":"d6530a8c-924c-469a-98c0-9525602e6192","type":"did_group_types","attributes":{"name":"Global"}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/did_groups/list.yaml b/tests/fixtures/did_groups/list.yaml index 2d4560f..bc2331c 100644 --- a/tests/fixtures/did_groups/list.yaml +++ b/tests/fixtures/did_groups/list.yaml @@ -12,36 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/did_groups response: body: - string: "{\n \"data\": [\n {\n \"id\": \"f6cc4ea6-6dda-4c51-9952-c1440441bc2f\"\ - ,\n \"type\": \"did_groups\",\n \"attributes\": {\n \"prefix\"\ - : \"864\",\n \"features\": [\n \"voice_in\",\n \"\ - sms_in\",\n \"t38\"\n ],\n \"is_metered\": false,\n\ - \ \"area_name\": \"Inman\",\n \"allow_additional_channels\"\ - : true\n },\n \"relationships\": {\n \"country\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/country\"\ - \n }\n },\n \"city\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/city\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/city\"\ - \n }\n },\n \"did_group_type\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/did_group_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/did_group_type\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/region\"\ - \n }\n },\n \"stock_keeping_units\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/stock_keeping_units\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/stock_keeping_units\"\ - \n }\n },\n \"address_requirement\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/address_requirement\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/address_requirement\"\ - \n }\n }\n },\n \"meta\": {\n \"available_dids_enabled\"\ - : false,\n \"needs_registration\": false,\n \"is_available\"\ - : true,\n \"total_count\": 1\n }\n }\n ],\n \"meta\": {\n\ - \ \"total_records\": 1,\n \"api_version\": \"2026-04-16\"\n },\n \"\ - links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/did_groups?filter%5Bnanpa_prefix.id%5D=eeed293b-f3d8-4ef8-91ef-1b077d174b3b&page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/did_groups?filter%5Bnanpa_prefix.id%5D=eeed293b-f3d8-4ef8-91ef-1b077d174b3b&page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - \n }\n}" + string: '{"data":[{"id":"f6cc4ea6-6dda-4c51-9952-c1440441bc2f","type":"did_groups","attributes":{"prefix":"864","features":["voice_in","sms_in","t38"],"is_metered":false,"area_name":"Inman","allow_additional_channels":true},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/country","related":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/country"}},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/city","related":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/city"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/did_group_type"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/region","related":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/region"}},"stock_keeping_units":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/stock_keeping_units","related":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/stock_keeping_units"}},"address_requirement":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/relationships/address_requirement","related":"https://sandbox-api.didww.com/v3/did_groups/f6cc4ea6-6dda-4c51-9952-c1440441bc2f/address_requirement"}}},"meta":{"available_dids_enabled":false,"needs_registration":false,"is_available":true,"total_count":1}}],"meta":{"total_records":1,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/did_groups?filter%5Bnanpa_prefix.id%5D=eeed293b-f3d8-4ef8-91ef-1b077d174b3b&page%5Bnumber%5D=1&page%5Bsize%5D=50","last":"https://sandbox-api.didww.com/v3/did_groups?filter%5Bnanpa_prefix.id%5D=eeed293b-f3d8-4ef8-91ef-1b077d174b3b&page%5Bnumber%5D=1&page%5Bsize%5D=50"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/did_groups/show.yaml b/tests/fixtures/did_groups/show.yaml index 57da24c..3cfb301 100644 --- a/tests/fixtures/did_groups/show.yaml +++ b/tests/fixtures/did_groups/show.yaml @@ -12,71 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1 response: body: - string: "{\n \"data\": {\n \"id\": \"2187c36d-28fb-436f-8861-5a0f5b5a3ee1\"\ - ,\n \"type\": \"did_groups\",\n \"attributes\": {\n \"prefix\"\ - : \"241\",\n \"local_prefix\": \"\",\n \"features\": [\n \ - \ \"voice_in\"\n ],\n \"is_metered\": false,\n \"area_name\":\ - \ \"Aachen\",\n \"allow_additional_channels\": true,\n \"service_restrictions\"\ - : null\n },\n \"relationships\"\ - : {\n \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\",\n \ - \ \"id\": \"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e\"\n }\n \ - \ },\n \"city\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/city\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/city\"\ - \n },\n \"data\": {\n \"type\": \"cities\",\n \ - \ \"id\": \"bba735f9-7c37-499b-8998-94a5fca5d158\"\n }\n },\n\ - \ \"did_group_type\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/did_group_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/did_group_type\"\ - \n },\n \"data\": {\n \"type\": \"did_group_types\"\ - ,\n \"id\": \"994ea201-4a4d-4b27-ac4b-b5916ac969a3\"\n }\n\ - \ },\n \"region\": {\n \"links\": {\n \"self\":\ - \ \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/region\"\ - \n },\n \"data\": null\n },\n \"stock_keeping_units\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/stock_keeping_units\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/stock_keeping_units\"\ - \n },\n \"data\": [\n {\n \"type\": \"stock_keeping_units\"\ - ,\n \"id\": \"5c6f00cd-cfca-441f-9322-5d000458b44f\"\n \ - \ },\n {\n \"type\": \"stock_keeping_units\",\n \ - \ \"id\": \"afcb54cd-1e36-472a-9f5b-07328d0d187f\"\n }\n \ - \ ]\n }\n },\n \"meta\": {\n \"needs_registration\":\ - \ true,\n \"is_available\": true,\n \"restrictions\": \"German Geographic\ - \ Registration:\\r\\n\\r\\nGerman Local DID registration address_requirements:\\r\\\ - n1. Name, business name and contact phone number.\\r\\n2. Passport or ID copy.**\\\ - r\\n3. Current address in Germany, must be from the same city in Germany as\ - \ the DID ordered (street, building number, postal code, city).\\r\\n4. Proof\ - \ of address form (a copy of utility bill no older than of 6 months).\\r5.\ - \ Specific registration form is provided during registration process which\ - \ has to be filled in and signed by the customer.\\r\\n\\r\\n* Number provided\ - \ online is demo. Active number will be provided when registration process\ - \ is complete.\\r\\n** In case registration process is performed under a company\ - \ name, German company registration certificate shall be provided instead\ - \ of passport or ID copy.\\r\\n\\r\\nInformation should be sent to customer.care@didww.com\ - \ within 10 days.\\r\\n\\r\\nDID number will not be activated until full registration\ - \ details are provided and approved.\\r\\n\",\n \"available_dids_enabled\"\ - : false\n }\n },\n \"included\": [\n {\n \"id\": \"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Germany\",\n \"prefix\": \"49\",\n \"iso\": \"DE\"\n \ - \ }\n },\n {\n \"id\": \"bba735f9-7c37-499b-8998-94a5fca5d158\"\ - ,\n \"type\": \"cities\",\n \"attributes\": {\n \"name\"\ - : \"Aachen\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/region\"\ - \n }\n }\n }\n },\n {\n \"id\": \"994ea201-4a4d-4b27-ac4b-b5916ac969a3\"\ - ,\n \"type\": \"did_group_types\",\n \"attributes\": {\n \ - \ \"name\": \"Local\"\n }\n },\n {\n \"id\": \"5c6f00cd-cfca-441f-9322-5d000458b44f\"\ - ,\n \"type\": \"stock_keeping_units\",\n \"attributes\": {\n \ - \ \"setup_price\": \"0.4\",\n \"monthly_price\": \"0.8\",\n \ - \ \"channels_included_count\": 0\n }\n },\n {\n \"id\"\ - : \"afcb54cd-1e36-472a-9f5b-07328d0d187f\",\n \"type\": \"stock_keeping_units\"\ - ,\n \"attributes\": {\n \"setup_price\": \"1.0\",\n \"\ - monthly_price\": \"4.8\",\n \"channels_included_count\": 2\n }\n\ - \ }\n ]\n}" + string: '{"data":{"id":"2187c36d-28fb-436f-8861-5a0f5b5a3ee1","type":"did_groups","attributes":{"prefix":"241","local_prefix":"","features":["voice_in"],"is_metered":false,"area_name":"Aachen","allow_additional_channels":true,"service_restrictions":null},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/country","related":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/country"},"data":{"type":"countries","id":"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e"}},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/city","related":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/city"},"data":{"type":"cities","id":"bba735f9-7c37-499b-8998-94a5fca5d158"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/did_group_type"},"data":{"type":"did_group_types","id":"994ea201-4a4d-4b27-ac4b-b5916ac969a3"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/region","related":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/region"},"data":null},"stock_keeping_units":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/stock_keeping_units","related":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/stock_keeping_units"},"data":[{"type":"stock_keeping_units","id":"5c6f00cd-cfca-441f-9322-5d000458b44f"},{"type":"stock_keeping_units","id":"afcb54cd-1e36-472a-9f5b-07328d0d187f"}]}},"meta":{"needs_registration":true,"is_available":true,"restrictions":"German Geographic Registration:\r\n\r\nGerman Local DID registration address_requirements:\r\n1. Name, business name and contact phone number.\r\n2. Passport or ID copy.**\r\n3. Current address in Germany, must be from the same city in Germany as the DID ordered (street, building number, postal code, city).\r\n4. Proof of address form (a copy of utility bill no older than of 6 months).\r5. Specific registration form is provided during registration process which has to be filled in and signed by the customer.\r\n\r\n* Number provided online is demo. Active number will be provided when registration process is complete.\r\n** In case registration process is performed under a company name, German company registration certificate shall be provided instead of passport or ID copy.\r\n\r\nInformation should be sent to customer.care@didww.com within 10 days.\r\n\r\nDID number will not be activated until full registration details are provided and approved.\r\n","available_dids_enabled":false}},"included":[{"id":"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e","type":"countries","attributes":{"name":"Germany","prefix":"49","iso":"DE"}},{"id":"bba735f9-7c37-499b-8998-94a5fca5d158","type":"cities","attributes":{"name":"Aachen"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/relationships/country","related":"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/relationships/region","related":"https://sandbox-api.didww.com/v3/cities/bba735f9-7c37-499b-8998-94a5fca5d158/region"}}}},{"id":"994ea201-4a4d-4b27-ac4b-b5916ac969a3","type":"did_group_types","attributes":{"name":"Local"}},{"id":"5c6f00cd-cfca-441f-9322-5d000458b44f","type":"stock_keeping_units","attributes":{"setup_price":"0.4","monthly_price":"0.8","channels_included_count":0}},{"id":"afcb54cd-1e36-472a-9f5b-07328d0d187f","type":"stock_keeping_units","attributes":{"setup_price":"1.0","monthly_price":"4.8","channels_included_count":2}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/did_groups/show_with_address_requirement.yaml b/tests/fixtures/did_groups/show_with_address_requirement.yaml index 393614d..6ef204f 100644 --- a/tests/fixtures/did_groups/show_with_address_requirement.yaml +++ b/tests/fixtures/did_groups/show_with_address_requirement.yaml @@ -12,43 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1 response: body: - string: "{\n \"data\": {\n \"id\": \"2187c36d-28fb-436f-8861-5a0f5b5a3ee1\"\ - ,\n \"type\": \"did_groups\",\n \"attributes\": {\n \"prefix\"\ - : \"241\",\n \"local_prefix\": \"\",\n \"features\": [\n \ - \ \"voice_in\"\n ],\n \"is_metered\": false,\n \"area_name\":\ - \ \"Aachen\",\n \"allow_additional_channels\": true\n },\n \"relationships\"\ - : {\n \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\",\n \ - \ \"id\": \"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e\"\n }\n \ - \ },\n \"city\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/city\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/city\"\ - \n },\n \"data\": null\n },\n \"did_group_type\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/did_group_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/did_group_type\"\ - \n },\n \"data\": null\n },\n \"region\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/region\"\ - \n },\n \"data\": null\n },\n \"stock_keeping_units\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/stock_keeping_units\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/stock_keeping_units\"\ - \n },\n \"data\": []\n },\n \"address_requirement\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/requirement\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/requirement\"\ - \n },\n \"data\": {\n \"type\": \"address_requirements\",\n\ - \ \"id\": \"8da1e0b2-047c-4baf-9c57-57143f09b9ce\"\n }\n \ - \ }\n }\n },\n \"included\": [\n {\n \"id\": \"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"Germany\",\n \"prefix\": \"49\",\n \"iso\": \"DE\"\n \ - \ }\n },\n {\n \"id\": \"8da1e0b2-047c-4baf-9c57-57143f09b9ce\"\ - ,\n \"type\": \"address_requirements\",\n \"attributes\": {\n \"\ - identity_type\": \"any\",\n \"personal_area_level\": \"world_wide\"\ - ,\n \"business_area_level\": \"world_wide\",\n \"address_area_level\"\ - : \"world_wide\",\n \"personal_proof_qty\": 0,\n \"business_proof_qty\"\ - : 0,\n \"address_proof_qty\": 0,\n \"personal_mandatory_fields\"\ - : [],\n \"business_mandatory_fields\": [],\n \"service_description_required\"\ - : false,\n \"restriction_message\": null\n }\n }\n ],\n \"\ - meta\": {\n \"api_version\": \"2026-04-16\"\n }\n}" + string: '{"data":{"id":"2187c36d-28fb-436f-8861-5a0f5b5a3ee1","type":"did_groups","attributes":{"prefix":"241","local_prefix":"","features":["voice_in"],"is_metered":false,"area_name":"Aachen","allow_additional_channels":true},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/country","related":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/country"},"data":{"type":"countries","id":"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e"}},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/city","related":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/city"},"data":null},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/did_group_type"},"data":null},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/region","related":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/region"},"data":null},"stock_keeping_units":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/stock_keeping_units","related":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/stock_keeping_units"},"data":[]},"address_requirement":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/relationships/requirement","related":"https://sandbox-api.didww.com/v3/did_groups/2187c36d-28fb-436f-8861-5a0f5b5a3ee1/requirement"},"data":{"type":"address_requirements","id":"8da1e0b2-047c-4baf-9c57-57143f09b9ce"}}}},"included":[{"id":"dfd1a0a0-bd53-4f7a-9c8e-d2fc5dd1bf7e","type":"countries","attributes":{"name":"Germany","prefix":"49","iso":"DE"}},{"id":"8da1e0b2-047c-4baf-9c57-57143f09b9ce","type":"address_requirements","attributes":{"identity_type":"any","personal_area_level":"world_wide","business_area_level":"world_wide","address_area_level":"world_wide","personal_proof_qty":0,"business_proof_qty":0,"address_proof_qty":0,"personal_mandatory_fields":[],"business_mandatory_fields":[],"service_description_required":false,"restriction_message":null}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/did_reservations/create.yaml b/tests/fixtures/did_reservations/create.yaml index d61d0e3..f0ffbfc 100644 --- a/tests/fixtures/did_reservations/create.yaml +++ b/tests/fixtures/did_reservations/create.yaml @@ -12,13 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/did_reservations response: body: - string: "{\n \"data\": {\n \"id\": \"fd38d3ff-80cf-4e67-a605-609a2884a5c4\"\ - ,\n \"type\": \"did_reservations\",\n \"attributes\": {\n \"expires_at\"\ - : \"2018-12-28T16:22:00.417Z\",\n \"created_at\": \"2018-12-28T16:12:00.440Z\"\ - ,\n \"description\": \"DIDWW\"\n },\n \"relationships\": {\n \ - \ \"available_did\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/relationships/available_did\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/available_did\"\ - \n }\n }\n }\n }\n}" + string: '{"data":{"id":"fd38d3ff-80cf-4e67-a605-609a2884a5c4","type":"did_reservations","attributes":{"expires_at":"2018-12-28T16:22:00.417Z","created_at":"2018-12-28T16:12:00.440Z","description":"DIDWW"},"relationships":{"available_did":{"links":{"self":"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/relationships/available_did","related":"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/available_did"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/did_reservations/delete_not_found.yaml b/tests/fixtures/did_reservations/delete_not_found.yaml index 5998539..5300bce 100644 --- a/tests/fixtures/did_reservations/delete_not_found.yaml +++ b/tests/fixtures/did_reservations/delete_not_found.yaml @@ -12,10 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4 response: body: - string: "{\n \"errors\": [\n {\n \"title\": \"Record not found\",\n\ - \ \"detail\": \"The record identified by fd38d3ff-80cf-4e67-a605-609a2884a5c4\ - \ could not be found.\",\n \"code\": \"404\",\n \"status\": \"404\"\ - \n }\n ]\n}" + string: '{"errors":[{"title":"Record not found","detail":"The record identified by fd38d3ff-80cf-4e67-a605-609a2884a5c4 could not be found.","code":"404","status":"404"}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/did_reservations/list.yaml b/tests/fixtures/did_reservations/list.yaml index 7273c41..80c43d8 100644 --- a/tests/fixtures/did_reservations/list.yaml +++ b/tests/fixtures/did_reservations/list.yaml @@ -12,18 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/did_reservations response: body: - string: "{\n \"data\": [\n {\n \"id\": \"fd38d3ff-80cf-4e67-a605-609a2884a5c4\"\ - ,\n \"type\": \"did_reservations\",\n \"attributes\": {\n \ - \ \"expires_at\": \"2018-12-28T16:22:00.417Z\",\n \"created_at\": \"\ - 2018-12-28T16:12:00.440Z\",\n \"description\": \"DIDWW\"\n },\n\ - \ \"relationships\": {\n \"available_did\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/relationships/available_did\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/available_did\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 1,\n \"available_count\": 9\n },\n \"links\": {\n \"first\": \"\ - https://sandbox-api.didww.com/v3/did_reservations?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/did_reservations?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - \n }\n}" + string: '{"data":[{"id":"fd38d3ff-80cf-4e67-a605-609a2884a5c4","type":"did_reservations","attributes":{"expires_at":"2018-12-28T16:22:00.417Z","created_at":"2018-12-28T16:12:00.440Z","description":"DIDWW"},"relationships":{"available_did":{"links":{"self":"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/relationships/available_did","related":"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/available_did"}}}}],"meta":{"total_records":1,"available_count":9},"links":{"first":"https://sandbox-api.didww.com/v3/did_reservations?page%5Bnumber%5D=1&page%5Bsize%5D=50","last":"https://sandbox-api.didww.com/v3/did_reservations?page%5Bnumber%5D=1&page%5Bsize%5D=50"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/did_reservations/show.yaml b/tests/fixtures/did_reservations/show.yaml index 81d22b4..0a689a2 100644 --- a/tests/fixtures/did_reservations/show.yaml +++ b/tests/fixtures/did_reservations/show.yaml @@ -12,56 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4 response: body: - string: "{\n \"data\": {\n \"id\": \"fd38d3ff-80cf-4e67-a605-609a2884a5c4\"\ - ,\n \"type\": \"did_reservations\",\n \"attributes\": {\n \"expires_at\"\ - : \"2018-12-28T16:22:00.417Z\",\n \"created_at\": \"2018-12-28T16:12:00.440Z\"\ - ,\n \"description\": \"DIDWW\"\n },\n \"relationships\": {\n \ - \ \"available_did\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/relationships/available_did\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/available_did\"\ - \n },\n \"data\": {\n \"type\": \"available_dids\"\ - ,\n \"id\": \"857d1462-5f43-4238-b007-ff05f282e41b\"\n }\n\ - \ }\n }\n },\n \"included\": [\n {\n \"id\": \"857d1462-5f43-4238-b007-ff05f282e41b\"\ - ,\n \"type\": \"available_dids\",\n \"attributes\": {\n \"\ - number\": \"19492033398\"\n },\n \"relationships\": {\n \"\ - did_group\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/available_dids/857d1462-5f43-4238-b007-ff05f282e41b/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/available_dids/857d1462-5f43-4238-b007-ff05f282e41b/did_group\"\ - \n },\n \"data\": {\n \"type\": \"did_groups\"\ - ,\n \"id\": \"23bc0f41-67c0-40c3-b877-dccbbb65d5e4\"\n \ - \ }\n }\n }\n },\n {\n \"id\": \"23bc0f41-67c0-40c3-b877-dccbbb65d5e4\"\ - ,\n \"type\": \"did_groups\",\n \"attributes\": {\n \"prefix\"\ - : \"949\",\n \"local_prefix\": \"\",\n \"features\": [\n \ - \ \"voice_in\"\n ],\n \"is_metered\": false,\n \"\ - area_name\": \"Saddleback Valley\",\n \"allow_additional_channels\"\ - : true\n },\n \"relationships\": {\n \"country\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/country\"\ - \n }\n },\n \"city\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/relationships/city\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/city\"\ - \n }\n },\n \"did_group_type\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/relationships/did_group_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/did_group_type\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/region\"\ - \n }\n },\n \"stock_keeping_units\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/relationships/stock_keeping_units\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/stock_keeping_units\"\ - \n },\n \"data\": [\n {\n \"type\"\ - : \"stock_keeping_units\",\n \"id\": \"209a43fa-41a5-490f-9376-97fdb0a727b3\"\ - \n },\n {\n \"type\": \"stock_keeping_units\"\ - ,\n \"id\": \"76492222-4895-42bc-89be-a681a1e40f37\"\n \ - \ }\n ]\n }\n },\n \"meta\": {\n \"\ - needs_registration\": false,\n \"is_available\": true,\n \"\ - restrictions\": null,\n \"available_dids_enabled\": true\n }\n\ - \ },\n {\n \"id\": \"209a43fa-41a5-490f-9376-97fdb0a727b3\",\n\ - \ \"type\": \"stock_keeping_units\",\n \"attributes\": {\n \ - \ \"setup_price\": \"0.0\",\n \"monthly_price\": \"0.09\",\n \ - \ \"channels_included_count\": 0\n }\n },\n {\n \"id\"\ - : \"76492222-4895-42bc-89be-a681a1e40f37\",\n \"type\": \"stock_keeping_units\"\ - ,\n \"attributes\": {\n \"setup_price\": \"0.0\",\n \"\ - monthly_price\": \"0.19\",\n \"channels_included_count\": 2\n \ - \ }\n }\n ],\n \"meta\": {\n \"available_count\": 9\n }\n}" + string: '{"data":{"id":"fd38d3ff-80cf-4e67-a605-609a2884a5c4","type":"did_reservations","attributes":{"expires_at":"2018-12-28T16:22:00.417Z","created_at":"2018-12-28T16:12:00.440Z","description":"DIDWW"},"relationships":{"available_did":{"links":{"self":"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/relationships/available_did","related":"https://sandbox-api.didww.com/v3/did_reservations/fd38d3ff-80cf-4e67-a605-609a2884a5c4/available_did"},"data":{"type":"available_dids","id":"857d1462-5f43-4238-b007-ff05f282e41b"}}}},"included":[{"id":"857d1462-5f43-4238-b007-ff05f282e41b","type":"available_dids","attributes":{"number":"19492033398"},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/available_dids/857d1462-5f43-4238-b007-ff05f282e41b/relationships/did_group","related":"https://sandbox-api.didww.com/v3/available_dids/857d1462-5f43-4238-b007-ff05f282e41b/did_group"},"data":{"type":"did_groups","id":"23bc0f41-67c0-40c3-b877-dccbbb65d5e4"}}}},{"id":"23bc0f41-67c0-40c3-b877-dccbbb65d5e4","type":"did_groups","attributes":{"prefix":"949","local_prefix":"","features":["voice_in"],"is_metered":false,"area_name":"Saddleback Valley","allow_additional_channels":true},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/relationships/country","related":"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/country"}},"city":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/relationships/city","related":"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/city"}},"did_group_type":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/relationships/did_group_type","related":"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/did_group_type"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/relationships/region","related":"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/region"}},"stock_keeping_units":{"links":{"self":"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/relationships/stock_keeping_units","related":"https://sandbox-api.didww.com/v3/did_groups/23bc0f41-67c0-40c3-b877-dccbbb65d5e4/stock_keeping_units"},"data":[{"type":"stock_keeping_units","id":"209a43fa-41a5-490f-9376-97fdb0a727b3"},{"type":"stock_keeping_units","id":"76492222-4895-42bc-89be-a681a1e40f37"}]}},"meta":{"needs_registration":false,"is_available":true,"restrictions":null,"available_dids_enabled":true}},{"id":"209a43fa-41a5-490f-9376-97fdb0a727b3","type":"stock_keeping_units","attributes":{"setup_price":"0.0","monthly_price":"0.09","channels_included_count":0}},{"id":"76492222-4895-42bc-89be-a681a1e40f37","type":"stock_keeping_units","attributes":{"setup_price":"0.0","monthly_price":"0.19","channels_included_count":2}}],"meta":{"available_count":9}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/dids/list.yaml b/tests/fixtures/dids/list.yaml index b477686..f2ce69c 100644 --- a/tests/fixtures/dids/list.yaml +++ b/tests/fixtures/dids/list.yaml @@ -12,113 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/dids response: body: - string: "{\n \"data\": [\n {\n \"id\": \"9df99644-f1a5-4a3c-99a4-559d758eb96b\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:59:55.015Z\",\n \"number\"\ - : \"16091609123456797\",\n \"expires_at\": \"2019-01-27T10:00:04.755Z\"\ - ,\n \"channels_included_count\": 0,\n \"billing_cycles_count\"\ - : null,\n \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/order\"\ - \n },\n \"data\": {\n \"type\": \"orders\",\n\ - \ \"id\": \"11b3fba2-96e2-452e-bed8-5124ed351af3\"\n }\n\ - \ },\n \"voice_in_trunk\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk\"\ - \n }\n },\n \"voice_in_trunk_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9467643f-8fbc-4e25-9818-59f8ccfb915a\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:59:55.053Z\",\n \"number\"\ - : \"16091609123456798\",\n \"expires_at\": \"2019-01-27T10:00:04.715Z\"\ - ,\n \"channels_included_count\": 0,\n \"billing_cycles_count\"\ - : null,\n \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/order\"\ - \n },\n \"data\": {\n \"type\": \"orders\",\n\ - \ \"id\": \"11b3fba2-96e2-452e-bed8-5124ed351af3\"\n }\n\ - \ },\n \"voice_in_trunk\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/voice_in_trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/voice_in_trunk\"\ - \n }\n },\n \"voice_in_trunk_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/voice_in_trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a79c8633-60d6-4640-9a72-680d59cb44ee\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:59:55.175Z\",\n \"number\"\ - : \"16091609123456799\",\n \"expires_at\": \"2019-01-27T10:00:04.659Z\"\ - ,\n \"channels_included_count\": 2,\n \"billing_cycles_count\"\ - : null,\n \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/order\"\ - \n },\n \"data\": {\n \"type\": \"orders\",\n\ - \ \"id\": \"11b3fba2-96e2-452e-bed8-5124ed351af3\"\n }\n\ - \ },\n \"voice_in_trunk\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/voice_in_trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/voice_in_trunk\"\ - \n }\n },\n \"voice_in_trunk_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/voice_in_trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/shared_capacity_group\"\ - \n }\n }\n }\n }\n ],\n \"included\": [\n {\n\ - \ \"id\": \"11b3fba2-96e2-452e-bed8-5124ed351af3\",\n \"type\":\ - \ \"orders\",\n \"attributes\": {\n \"amount\": \"0.37\",\n \ - \ \"status\": \"completed\",\n \"created_at\": \"2018-12-27T09:59:54.892Z\"\ - ,\n \"description\": \"DID\",\n \"reference\": \"TZO-560180\"\ - ,\n \"items\": [\n {\n \"type\": \"did_order_items\"\ - ,\n \"attributes\": {\n \"qty\": 1,\n \ - \ \"nrc\": \"0.0\",\n \"mrc\": \"0.19\",\n \"prorated_mrc\"\ - : false,\n \"billed_from\": \"2018-12-27\",\n \"\ - billed_to\": \"2019-01-26\",\n \"setup_price\": \"0.0\",\n \ - \ \"monthly_price\": \"0.19\",\n \"did_group_id\"\ - : \"d1b69245-e493-4a6c-a5da-7886ea4230d4\"\n }\n },\n\ - \ {\n \"type\": \"did_order_items\",\n \"attributes\"\ - : {\n \"qty\": 2,\n \"nrc\": \"0.0\",\n \ - \ \"mrc\": \"0.09\",\n \"prorated_mrc\": false,\n \ - \ \"billed_from\": \"2018-12-27\",\n \"billed_to\": \"\ - 2019-01-26\",\n \"setup_price\": \"0.0\",\n \"monthly_price\"\ - : \"0.09\",\n \"did_group_id\": \"d1b69245-e493-4a6c-a5da-7886ea4230d4\"\ - \n }\n }\n ]\n }\n }\n ],\n \"meta\"\ - : {\n \"total_records\": 13\n },\n \"links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/dids?include=order&page%5Bnumber%5D=1&page%5Bsize%5D=10\"\ - ,\n \"prev\": \"https://sandbox-api.didww.com/v3/dids?include=order&page%5Bnumber%5D=1&page%5Bsize%5D=10\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/dids?include=order&page%5Bnumber%5D=2&page%5Bsize%5D=10\"\ - \n }\n}" + string: '{"data":[{"id":"9df99644-f1a5-4a3c-99a4-559d758eb96b","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:59:55.015Z","number":"16091609123456797","expires_at":"2019-01-27T10:00:04.755Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/order"},"data":{"type":"orders","id":"11b3fba2-96e2-452e-bed8-5124ed351af3"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/shared_capacity_group"}}}},{"id":"9467643f-8fbc-4e25-9818-59f8ccfb915a","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:59:55.053Z","number":"16091609123456798","expires_at":"2019-01-27T10:00:04.715Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/order"},"data":{"type":"orders","id":"11b3fba2-96e2-452e-bed8-5124ed351af3"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/voice_in_trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/shared_capacity_group"}}}},{"id":"a79c8633-60d6-4640-9a72-680d59cb44ee","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:59:55.175Z","number":"16091609123456799","expires_at":"2019-01-27T10:00:04.659Z","channels_included_count":2,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/order"},"data":{"type":"orders","id":"11b3fba2-96e2-452e-bed8-5124ed351af3"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/voice_in_trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/shared_capacity_group"}}}}],"included":[{"id":"11b3fba2-96e2-452e-bed8-5124ed351af3","type":"orders","attributes":{"amount":"0.37","status":"completed","created_at":"2018-12-27T09:59:54.892Z","description":"DID","reference":"TZO-560180","items":[{"type":"did_order_items","attributes":{"qty":1,"nrc":"0.0","mrc":"0.19","prorated_mrc":false,"billed_from":"2018-12-27","billed_to":"2019-01-26","setup_price":"0.0","monthly_price":"0.19","did_group_id":"d1b69245-e493-4a6c-a5da-7886ea4230d4"}},{"type":"did_order_items","attributes":{"qty":2,"nrc":"0.0","mrc":"0.09","prorated_mrc":false,"billed_from":"2018-12-27","billed_to":"2019-01-26","setup_price":"0.0","monthly_price":"0.09","did_group_id":"d1b69245-e493-4a6c-a5da-7886ea4230d4"}}]}}],"meta":{"total_records":13},"links":{"first":"https://sandbox-api.didww.com/v3/dids?include=order&page%5Bnumber%5D=1&page%5Bsize%5D=10","prev":"https://sandbox-api.didww.com/v3/dids?include=order&page%5Bnumber%5D=1&page%5Bsize%5D=10","last":"https://sandbox-api.didww.com/v3/dids?include=order&page%5Bnumber%5D=2&page%5Bsize%5D=10"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/dids/show.yaml b/tests/fixtures/dids/show.yaml index f030702..295b2ac 100644 --- a/tests/fixtures/dids/show.yaml +++ b/tests/fixtures/dids/show.yaml @@ -12,32 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b response: body: - string: "{\n \"data\": {\n \"id\": \"9df99644-f1a5-4a3c-99a4-559d758eb96b\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\": false,\n\ - \ \"capacity_limit\": 2,\n \"description\": \"something\",\n \ - \ \"terminated\": false,\n \"awaiting_registration\": false,\n \ - \ \"created_at\": \"2018-12-27T09:59:55.015Z\",\n \"number\": \"16091609123456797\"\ - ,\n \"expires_at\": \"2019-11-27T10:00:04.755Z\",\n \"channels_included_count\"\ - : 0,\n \"billing_cycles_count\": null,\n \"dedicated_channels_count\"\ - : 0,\n \"emergency_enabled\": false\n },\n \"relationships\": {\n \"did_group\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/shared_capacity_group\"\ - \n }\n }\n }\n }\n}" + string: '{"data":{"id":"9df99644-f1a5-4a3c-99a4-559d758eb96b","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:59:55.015Z","number":"16091609123456797","expires_at":"2019-11-27T10:00:04.755Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0,"emergency_enabled":false},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/shared_capacity_group"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/dids/update_capacity_pool.yaml b/tests/fixtures/dids/update_capacity_pool.yaml index ea92271..4d00c90 100644 --- a/tests/fixtures/dids/update_capacity_pool.yaml +++ b/tests/fixtures/dids/update_capacity_pool.yaml @@ -12,32 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b response: body: - string: "{\n \"data\": {\n \"id\": \"9df99644-f1a5-4a3c-99a4-559d758eb96b\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\": false,\n\ - \ \"capacity_limit\": 2,\n \"description\": \"something\",\n \ - \ \"terminated\": false,\n \"awaiting_registration\": false,\n \ - \ \"created_at\": \"2018-12-27T09:59:55.015Z\",\n \"number\": \"16091609123456797\"\ - ,\n \"expires_at\": \"2019-01-27T10:00:04.755Z\",\n \"channels_included_count\"\ - : 0,\n \"billing_cycles_count\": null,\n \"dedicated_channels_count\"\ - : 0\n },\n \"relationships\": {\n \"did_group\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/order\"\ - \n }\n },\n \"voice_in_trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk\"\ - \n }\n },\n \"voice_in_trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/shared_capacity_group\"\ - \n }\n }\n }\n }\n}" + string: '{"data":{"id":"9df99644-f1a5-4a3c-99a4-559d758eb96b","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:59:55.015Z","number":"16091609123456797","expires_at":"2019-01-27T10:00:04.755Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/order"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/shared_capacity_group"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/dids/update_invalid_trunk_group.yaml b/tests/fixtures/dids/update_invalid_trunk_group.yaml index db58075..783003c 100644 --- a/tests/fixtures/dids/update_invalid_trunk_group.yaml +++ b/tests/fixtures/dids/update_invalid_trunk_group.yaml @@ -12,10 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/dids/unknown-id response: body: - string: "{\n \"errors\": [\n {\n \"title\": \"is invalid\",\n \ - \ \"detail\": \"voice_in_trunk_group - is invalid\",\n \"code\": \"100\"\ - ,\n \"source\": {\n \"pointer\": \"/data/attributes/voice_in_trunk_group_id\"\ - \n },\n \"status\": \"422\"\n }\n ]\n}" + string: '{"errors":[{"title":"is invalid","detail":"voice_in_trunk_group - is invalid","code":"100","source":{"pointer":"/data/attributes/voice_in_trunk_group_id"},"status":"422"}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/dids/update_shared_capacity_group.yaml b/tests/fixtures/dids/update_shared_capacity_group.yaml index 881d2a8..7a28a66 100644 --- a/tests/fixtures/dids/update_shared_capacity_group.yaml +++ b/tests/fixtures/dids/update_shared_capacity_group.yaml @@ -12,32 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b response: body: - string: "{\n \"data\": {\n \"id\": \"9df99644-f1a5-4a3c-99a4-559d758eb96b\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\": false,\n\ - \ \"capacity_limit\": 2,\n \"description\": \"something\",\n \ - \ \"terminated\": false,\n \"awaiting_registration\": false,\n \ - \ \"created_at\": \"2018-12-27T09:59:55.015Z\",\n \"number\": \"16091609123456797\"\ - ,\n \"expires_at\": \"2019-01-27T10:00:04.755Z\",\n \"channels_included_count\"\ - : 0,\n \"billing_cycles_count\": null,\n \"dedicated_channels_count\"\ - : 0\n },\n \"relationships\": {\n \"did_group\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/order\"\ - \n }\n },\n \"voice_in_trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk\"\ - \n }\n },\n \"voice_in_trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/shared_capacity_group\"\ - \n }\n }\n }\n }\n}" + string: '{"data":{"id":"9df99644-f1a5-4a3c-99a4-559d758eb96b","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:59:55.015Z","number":"16091609123456797","expires_at":"2019-01-27T10:00:04.755Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/order"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/shared_capacity_group"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/dids/update_voice_in_trunk_group.yaml b/tests/fixtures/dids/update_voice_in_trunk_group.yaml index 90cf5ba..e1154ac 100644 --- a/tests/fixtures/dids/update_voice_in_trunk_group.yaml +++ b/tests/fixtures/dids/update_voice_in_trunk_group.yaml @@ -12,32 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b response: body: - string: "{\n \"data\": {\n \"id\": \"9df99644-f1a5-4a3c-99a4-559d758eb96b\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\": false,\n\ - \ \"capacity_limit\": 2,\n \"description\": \"something\",\n \ - \ \"terminated\": false,\n \"awaiting_registration\": false,\n \ - \ \"created_at\": \"2018-12-27T09:59:55.015Z\",\n \"number\": \"16091609123456797\"\ - ,\n \"expires_at\": \"2019-01-27T10:00:04.755Z\",\n \"channels_included_count\"\ - : 0,\n \"billing_cycles_count\": null,\n \"dedicated_channels_count\"\ - : 0\n },\n \"relationships\": {\n \"did_group\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/order\"\ - \n }\n },\n \"voice_in_trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk\"\ - \n }\n },\n \"voice_in_trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/shared_capacity_group\"\ - \n }\n }\n }\n }\n}" + string: '{"data":{"id":"9df99644-f1a5-4a3c-99a4-559d758eb96b","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:59:55.015Z","number":"16091609123456797","expires_at":"2019-01-27T10:00:04.755Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/order"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/voice_in_trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/9df99644-f1a5-4a3c-99a4-559d758eb96b/shared_capacity_group"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/emergency_requirement_validations/create.yaml b/tests/fixtures/emergency_requirement_validations/create.yaml index 87d7eb9..80206be 100644 --- a/tests/fixtures/emergency_requirement_validations/create.yaml +++ b/tests/fixtures/emergency_requirement_validations/create.yaml @@ -12,9 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/emergency_requirement_validations response: body: - string: "{\n \"data\": {\n \"id\": \"c1d2e3f4-a5b6-7890-1234-567890abcdef\"\ - ,\n \"type\": \"emergency_requirement_validations\"\n },\n \"meta\": {\n \"\ - api_version\": \"2026-04-16\"\n }\n}" + string: '{"data":{"id":"c1d2e3f4-a5b6-7890-1234-567890abcdef","type":"emergency_requirement_validations"},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/encrypted_files/list.yaml b/tests/fixtures/encrypted_files/list.yaml index 55deda2..70725bf 100644 --- a/tests/fixtures/encrypted_files/list.yaml +++ b/tests/fixtures/encrypted_files/list.yaml @@ -12,13 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/encrypted_files response: body: - string: "{\n \"data\": [\n {\n \"id\": \"7f2fbdca-8008-44ce-bcb6-3537ea5efaac\"\ - ,\n \"type\": \"encrypted_files\",\n \"attributes\": {\n \ - \ \"description\": \"file.enc\",\n \"expires_at\": \"2021-04-02T13:42:51.612Z\"\ - \n }\n }\n ],\n \"meta\": {\n \"total_records\": 1,\n \"api_version\"\ - : \"2021-04-19\"\n },\n \"links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/encrypted_files?page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/encrypted_files?page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - \n }\n}" + string: '{"data":[{"id":"7f2fbdca-8008-44ce-bcb6-3537ea5efaac","type":"encrypted_files","attributes":{"description":"file.enc","expires_at":"2021-04-02T13:42:51.612Z"}}],"meta":{"total_records":1,"api_version":"2021-04-19"},"links":{"first":"https://sandbox-api.didww.com/v3/encrypted_files?page%5Bnumber%5D=1&page%5Bsize%5D=5","last":"https://sandbox-api.didww.com/v3/encrypted_files?page%5Bnumber%5D=1&page%5Bsize%5D=5"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/encrypted_files/show.yaml b/tests/fixtures/encrypted_files/show.yaml index ac92ab3..6e5b547 100644 --- a/tests/fixtures/encrypted_files/show.yaml +++ b/tests/fixtures/encrypted_files/show.yaml @@ -12,10 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/encrypted_files/6eed102c-66a9-4a9b-a95f-4312d70ec12a response: body: - string: "{\n \"data\": {\n \"id\": \"6eed102c-66a9-4a9b-a95f-4312d70ec12a\"\ - ,\n \"type\": \"encrypted_files\",\n \"attributes\": {\n \"description\"\ - : \"some description\",\n \"expires_at\": \"2021-04-06T16:38:34.396Z\"\ - \n }\n },\n \"meta\": {\n \"api_version\": \"2026-04-16\"\n }\n}" + string: '{"data":{"id":"6eed102c-66a9-4a9b-a95f-4312d70ec12a","type":"encrypted_files","attributes":{"description":"some description","expires_at":"2021-04-06T16:38:34.396Z"}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/exports/create.yaml b/tests/fixtures/exports/create.yaml index ee5b6f4..f80b621 100644 --- a/tests/fixtures/exports/create.yaml +++ b/tests/fixtures/exports/create.yaml @@ -12,11 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/exports response: body: - string: "{\n \"data\": {\n \"id\": \"da15f006-5da4-45ca-b0df-735baeadf423\"\ - ,\n \"type\": \"exports\",\n \"attributes\": {\n \"status\": \"\ - pending\",\n \"created_at\": \"2019-01-02T10:23:00.897Z\",\n \"\ - url\": null,\n \"callback_url\": null,\n \"callback_method\": null,\n\ - \ \"export_type\": \"cdr_in\"\n }\n }\n}" + string: '{"data":{"id":"da15f006-5da4-45ca-b0df-735baeadf423","type":"exports","attributes":{"status":"pending","created_at":"2019-01-02T10:23:00.897Z","url":null,"callback_url":null,"callback_method":null,"export_type":"cdr_in"}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/exports/download.yaml b/tests/fixtures/exports/download.yaml index fa45aac..559d046 100644 --- a/tests/fixtures/exports/download.yaml +++ b/tests/fixtures/exports/download.yaml @@ -15,10 +15,10 @@ interactions: nskH4WST6bTYpdlOH5XOy0yXeQEABzg9ZY/zS/PTMc+A/bX8w547391ue0cD6NX+B11AU5+VRBvY unlmmS5Ho4Dea61X8efbfAH400CLjgEAAA== headers: - Content-Type: - - application/octet-stream Content-Disposition: - attachment; filename="02bf6df4-3af9-416c-96be-16e5b7eeb651.csv.gz" + Content-Type: + - application/octet-stream status: code: 200 message: OK diff --git a/tests/fixtures/exports/list.yaml b/tests/fixtures/exports/list.yaml index dcdd504..221acd8 100644 --- a/tests/fixtures/exports/list.yaml +++ b/tests/fixtures/exports/list.yaml @@ -12,15 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/exports response: body: - string: "{\n \"data\": [\n {\n \"id\": \"da15f006-5da4-45ca-b0df-735baeadf423\"\ - ,\n \"type\": \"exports\",\n \"attributes\": {\n \"status\"\ - : \"completed\",\n \"created_at\": \"2019-01-02T10:23:00.897Z\",\n\ - \ \"url\": \"https://sandbox-api.didww.com/v3/exports/e5352384-6f64-4132-bba1-cda18fbc5896.csv.gz\"\ - ,\n \"callback_url\": null,\n \"callback_method\": null,\n \ - \ \"export_type\": \"cdr_in\"\n }\n }\n ],\n \"meta\": {\n\ - \ \"total_records\": 1\n },\n \"links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/exports?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/exports?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - \n }\n}" + string: '{"data":[{"id":"da15f006-5da4-45ca-b0df-735baeadf423","type":"exports","attributes":{"status":"completed","created_at":"2019-01-02T10:23:00.897Z","url":"https://sandbox-api.didww.com/v3/exports/e5352384-6f64-4132-bba1-cda18fbc5896.csv.gz","callback_url":null,"callback_method":null,"export_type":"cdr_in"}}],"meta":{"total_records":1},"links":{"first":"https://sandbox-api.didww.com/v3/exports?page%5Bnumber%5D=1&page%5Bsize%5D=50","last":"https://sandbox-api.didww.com/v3/exports?page%5Bnumber%5D=1&page%5Bsize%5D=50"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/exports/show.yaml b/tests/fixtures/exports/show.yaml index 0bae612..b6b241e 100644 --- a/tests/fixtures/exports/show.yaml +++ b/tests/fixtures/exports/show.yaml @@ -12,13 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/exports/da15f006-5da4-45ca-b0df-735baeadf423 response: body: - string: "{\n \"data\": {\n \"id\": \"da15f006-5da4-45ca-b0df-735baeadf423\"\ - ,\n \"type\": \"exports\",\n \"attributes\": {\n \"status\": \"\ - completed\",\n \"created_at\": \"2019-01-02T10:23:00.897Z\",\n \"\ - url\": \"https://sandbox-api.didww.com/v3/exports/e5352384-6f64-4132-bba1-cda18fbc5896.csv.gz\"\ - ,\n \"callback_url\": null,\n \"callback_method\": null,\n \ - \ \"export_type\": \"cdr_in\",\n \"external_reference_id\": \"monthly-cdr-2026-04\"\ - \n }\n },\n \"meta\": {\"api_version\": \"2026-04-16\"}\n}" + string: '{"data":{"id":"da15f006-5da4-45ca-b0df-735baeadf423","type":"exports","attributes":{"status":"completed","created_at":"2019-01-02T10:23:00.897Z","url":"https://sandbox-api.didww.com/v3/exports/e5352384-6f64-4132-bba1-cda18fbc5896.csv.gz","callback_url":null,"callback_method":null,"export_type":"cdr_in","external_reference_id":"monthly-cdr-2026-04"}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/identities/create.yaml b/tests/fixtures/identities/create.yaml index 720a3e7..260b729 100644 --- a/tests/fixtures/identities/create.yaml +++ b/tests/fixtures/identities/create.yaml @@ -1,8 +1,6 @@ interactions: - request: - body: '{"data":{"type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"123456789","id_number":"ABC1234","birth_date":"1970-01-01","company_name":"Test - Company Limited","company_reg_number":"543221","vat_id":"GB1234","description":"test - identity","personal_tax_id":"987654321","identity_type":"business","external_reference_id":"111"},"relationships":{"country":{"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}}}}}' + body: '{"data":{"type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"123456789","id_number":"ABC1234","birth_date":"1970-01-01","company_name":"Test Company Limited","company_reg_number":"543221","vat_id":"GB1234","description":"test identity","personal_tax_id":"987654321","identity_type":"business","external_reference_id":"111"},"relationships":{"country":{"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}}}}}' headers: Accept: - application/vnd.api+json @@ -14,38 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/identities response: body: - string: "{\n \"data\": {\n \"id\": \"e96ae7d1-11d5-42bc-a5c5-211f3c3788ae\"\ - ,\n \"type\": \"identities\",\n \"attributes\": {\n \"first_name\"\ - : \"John\",\n \"last_name\": \"Doe\",\n \"phone_number\": \"123456789\"\ - ,\n \"id_number\": \"ABC1234\",\n \"birth_date\": \"1970-01-01\"\ - ,\n \"company_name\": \"Test Company Limited\",\n \"company_reg_number\"\ - : \"543221\",\n \"vat_id\": \"GB1234\",\n \"description\": \"test\ - \ identity\",\n \"personal_tax_id\": \"987654321\",\n \"identity_type\"\ - : \"business\",\n \"created_at\": \"2021-04-01T14:56:34.637Z\",\n \ - \ \"external_reference_id\": \"111\",\n \"verified\": false\n },\n\ - \ \"relationships\": {\n \"country\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\",\n \ - \ \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\n }\n \ - \ },\n \"proofs\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/proofs\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/proofs\"\ - \n }\n },\n \"addresses\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/addresses\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/addresses\"\ - \n }\n },\n \"permanent_documents\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/permanent_documents\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/permanent_documents\"\ - \n }\n }\n }\n },\n \"included\": [\n {\n \"id\"\ - : \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\",\n \"type\": \"countries\"\ - ,\n \"attributes\": {\n \"name\": \"United States\",\n \ - \ \"prefix\": \"1\",\n \"iso\": \"US\"\n },\n \"relationships\"\ - : {\n \"regions\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/relationships/regions\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/regions\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"api_version\"\ - : \"2021-04-19\"\n }\n}" + string: '{"data":{"id":"e96ae7d1-11d5-42bc-a5c5-211f3c3788ae","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"123456789","id_number":"ABC1234","birth_date":"1970-01-01","company_name":"Test Company Limited","company_reg_number":"543221","vat_id":"GB1234","description":"test identity","personal_tax_id":"987654321","identity_type":"business","created_at":"2021-04-01T14:56:34.637Z","external_reference_id":"111","verified":false},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/country"},"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/proofs"}},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/addresses"}},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/permanent_documents"}}}},"included":[{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/regions"}}}}],"meta":{"api_version":"2021-04-19"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/identities/list.yaml b/tests/fixtures/identities/list.yaml index 881bab4..fafcae0 100644 --- a/tests/fixtures/identities/list.yaml +++ b/tests/fixtures/identities/list.yaml @@ -12,80 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/identities response: body: - string: "{\n \"data\": [\n {\n \"id\": \"5e9df058-50d2-4e34-b0d4-d1746b86f41a\"\ - ,\n \"type\": \"identities\",\n \"attributes\": {\n \"first_name\"\ - : \"John\",\n \"last_name\": \"Doe\",\n \"phone_number\": \"\ - 123456789\",\n \"id_number\": \"ABC1234\",\n \"birth_date\"\ - : \"1970-01-01\",\n \"company_name\": null,\n \"company_reg_number\"\ - : null,\n \"vat_id\": null,\n \"description\": \"test identity\"\ - ,\n \"personal_tax_id\": \"987654321\",\n \"identity_type\"\ - : \"personal\",\n \"created_at\": \"2021-04-01T12:57:24.025Z\",\n \ - \ \"external_reference_id\": \"111\",\n \"verified\": false\n\ - \ },\n \"relationships\": {\n \"country\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\"\ - ,\n \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\n \ - \ }\n },\n \"proofs\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/relationships/proofs\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/proofs\"\ - \n },\n \"data\": []\n },\n \"addresses\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/relationships/addresses\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/addresses\"\ - \n },\n \"data\": [\n {\n \"type\"\ - : \"addresses\",\n \"id\": \"d3414687-40f4-4346-a267-c2c65117d28c\"\ - \n }\n ]\n },\n \"permanent_documents\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/relationships/permanent_documents\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/permanent_documents\"\ - \n },\n \"data\": []\n }\n }\n },\n {\n\ - \ \"id\": \"9728ea13-cb5d-41fb-8a7f-796a005b0a13\",\n \"type\":\ - \ \"identities\",\n \"attributes\": {\n \"first_name\": \"John\"\ - ,\n \"last_name\": \"Doe\",\n \"phone_number\": \"123456789\"\ - ,\n \"id_number\": \"ABC1234\",\n \"birth_date\": \"1970-01-01\"\ - ,\n \"company_name\": null,\n \"company_reg_number\": null,\n\ - \ \"vat_id\": null,\n \"description\": \"test identity\",\n\ - \ \"personal_tax_id\": \"987654321\",\n \"identity_type\": \"\ - personal\",\n \"created_at\": \"2021-04-01T14:56:38.664Z\",\n \ - \ \"external_reference_id\": \"111\",\n \"verified\": false\n \ - \ },\n \"relationships\": {\n \"country\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\"\ - ,\n \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\n \ - \ }\n },\n \"proofs\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/relationships/proofs\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/proofs\"\ - \n },\n \"data\": []\n },\n \"addresses\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/relationships/addresses\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/addresses\"\ - \n },\n \"data\": []\n },\n \"permanent_documents\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/relationships/permanent_documents\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/permanent_documents\"\ - \n },\n \"data\": []\n }\n }\n }\n ],\n\ - \ \"included\": [\n {\n \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"United States\",\n \"prefix\": \"1\",\n \"iso\": \"US\"\n\ - \ },\n \"relationships\": {\n \"regions\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/relationships/regions\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/regions\"\ - \n }\n }\n }\n },\n {\n \"id\": \"d3414687-40f4-4346-a267-c2c65117d28c\"\ - ,\n \"type\": \"addresses\",\n \"attributes\": {\n \"city_name\"\ - : \"Chicago\",\n \"postal_code\": \"1234\",\n \"address\": \"\ - Main street\",\n \"description\": \"some address\",\n \"created_at\"\ - : \"2021-04-01T13:12:56.632Z\"\n },\n \"relationships\": {\n \ - \ \"identity\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/identity\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/identity\"\ - \n }\n },\n \"country\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/country\"\ - \n }\n },\n \"proofs\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/proofs\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/proofs\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 2,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\"\ - : \"https://sandbox-api.didww.com/v3/identities?include=country%2Caddresses%2Cproofs%2Cpermanent_documents&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/identities?include=country%2Caddresses%2Cproofs%2Cpermanent_documents&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - \n }\n}" + string: '{"data":[{"id":"5e9df058-50d2-4e34-b0d4-d1746b86f41a","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"123456789","id_number":"ABC1234","birth_date":"1970-01-01","company_name":null,"company_reg_number":null,"vat_id":null,"description":"test identity","personal_tax_id":"987654321","identity_type":"personal","created_at":"2021-04-01T12:57:24.025Z","external_reference_id":"111","verified":false},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/country"},"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/proofs"},"data":[]},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/addresses"},"data":[{"type":"addresses","id":"d3414687-40f4-4346-a267-c2c65117d28c"}]},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a/permanent_documents"},"data":[]}}},{"id":"9728ea13-cb5d-41fb-8a7f-796a005b0a13","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"123456789","id_number":"ABC1234","birth_date":"1970-01-01","company_name":null,"company_reg_number":null,"vat_id":null,"description":"test identity","personal_tax_id":"987654321","identity_type":"personal","created_at":"2021-04-01T14:56:38.664Z","external_reference_id":"111","verified":false},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/country"},"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/proofs"},"data":[]},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/addresses"},"data":[]},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/9728ea13-cb5d-41fb-8a7f-796a005b0a13/permanent_documents"},"data":[]}}}],"included":[{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/regions"}}}},{"id":"d3414687-40f4-4346-a267-c2c65117d28c","type":"addresses","attributes":{"city_name":"Chicago","postal_code":"1234","address":"Main street","description":"some address","created_at":"2021-04-01T13:12:56.632Z"},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/identity"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/proofs"}}}}],"meta":{"total_records":2,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/identities?include=country%2Caddresses%2Cproofs%2Cpermanent_documents&page%5Bnumber%5D=1&page%5Bsize%5D=5","last":"https://sandbox-api.didww.com/v3/identities?include=country%2Caddresses%2Cproofs%2Cpermanent_documents&page%5Bnumber%5D=1&page%5Bsize%5D=5"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/identities/show_with_birth_country.yaml b/tests/fixtures/identities/show_with_birth_country.yaml index 1468211..6a6b367 100644 --- a/tests/fixtures/identities/show_with_birth_country.yaml +++ b/tests/fixtures/identities/show_with_birth_country.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/identities/5e9df058-50d2-4e34-b0d4-d1746b86f41a response: body: - string: "{\"data\":{\"id\":\"5e9df058-50d2-4e34-b0d4-d1746b86f41a\",\"type\":\"identities\",\"attributes\":{\"first_name\":\"John\",\"last_name\":\"Doe\",\"phone_number\":\"123456789\",\"id_number\":\"ABC1234\",\"birth_date\":\"1970-01-01\",\"company_name\":null,\"company_reg_number\":null,\"vat_id\":null,\"description\":\"test identity\",\"personal_tax_id\":\"987654321\",\"identity_type\":\"personal\",\"created_at\":\"2021-04-01T12:57:24.025Z\",\"external_reference_id\":\"111\",\"verified\":false},\"relationships\":{\"country\":{\"data\":{\"type\":\"countries\",\"id\":\"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"}},\"birth_country\":{\"data\":{\"type\":\"countries\",\"id\":\"a2b3c4d5-e6f7-8901-abcd-ef1234567890\"}},\"proofs\":{\"data\":[]},\"addresses\":{\"data\":[]},\"permanent_documents\":{\"data\":[]}}},\"included\":[{\"id\":\"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\",\"type\":\"countries\",\"attributes\":{\"name\":\"United States\",\"prefix\":\"1\",\"iso\":\"US\"}},{\"id\":\"a2b3c4d5-e6f7-8901-abcd-ef1234567890\",\"type\":\"countries\",\"attributes\":{\"name\":\"Canada\",\"prefix\":\"1\",\"iso\":\"CA\"}}],\"meta\":{\"api_version\":\"2026-04-16\"}}" + string: '{"data":{"id":"5e9df058-50d2-4e34-b0d4-d1746b86f41a","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"123456789","id_number":"ABC1234","birth_date":"1970-01-01","company_name":null,"company_reg_number":null,"vat_id":null,"description":"test identity","personal_tax_id":"987654321","identity_type":"personal","created_at":"2021-04-01T12:57:24.025Z","external_reference_id":"111","verified":false},"relationships":{"country":{"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"birth_country":{"data":{"type":"countries","id":"a2b3c4d5-e6f7-8901-abcd-ef1234567890"}},"proofs":{"data":[]},"addresses":{"data":[]},"permanent_documents":{"data":[]}}},"included":[{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"}},{"id":"a2b3c4d5-e6f7-8901-abcd-ef1234567890","type":"countries","attributes":{"name":"Canada","prefix":"1","iso":"CA"}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/identities/update.yaml b/tests/fixtures/identities/update.yaml index 4fa8788..73561a1 100644 --- a/tests/fixtures/identities/update.yaml +++ b/tests/fixtures/identities/update.yaml @@ -12,29 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae response: body: - string: "{\n \"data\": {\n \"id\": \"e96ae7d1-11d5-42bc-a5c5-211f3c3788ae\"\ - ,\n \"type\": \"identities\",\n \"attributes\": {\n \"first_name\"\ - : \"Jake\",\n \"last_name\": \"Johnson\",\n \"phone_number\": \"\ - 1111111\",\n \"id_number\": \"CED4321\",\n \"birth_date\": \"1979-01-01\"\ - ,\n \"company_name\": \"Some Company Limited\",\n \"company_reg_number\"\ - : \"1222776\",\n \"vat_id\": \"GB1235\",\n \"description\": \"test\"\ - ,\n \"personal_tax_id\": \"983217654\",\n \"identity_type\": \"\ - business\",\n \"created_at\": \"2021-04-01T14:56:34.637Z\",\n \"\ - external_reference_id\": \"112\",\n \"verified\": false\n },\n \ - \ \"relationships\": {\n \"country\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/country\"\ - \n }\n },\n \"proofs\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/proofs\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/proofs\"\ - \n }\n },\n \"addresses\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/addresses\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/addresses\"\ - \n }\n },\n \"permanent_documents\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/permanent_documents\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/permanent_documents\"\ - \n }\n }\n }\n },\n \"meta\": {\n \"api_version\": \"\ - 2021-04-19\"\n }\n}" + string: '{"data":{"id":"e96ae7d1-11d5-42bc-a5c5-211f3c3788ae","type":"identities","attributes":{"first_name":"Jake","last_name":"Johnson","phone_number":"1111111","id_number":"CED4321","birth_date":"1979-01-01","company_name":"Some Company Limited","company_reg_number":"1222776","vat_id":"GB1235","description":"test","personal_tax_id":"983217654","identity_type":"business","created_at":"2021-04-01T14:56:34.637Z","external_reference_id":"112","verified":false},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/proofs"}},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/addresses"}},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/permanent_documents"}}}},"meta":{"api_version":"2021-04-19"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/nanpa_prefixes/list.yaml b/tests/fixtures/nanpa_prefixes/list.yaml index d1a0c25..efaa8ea 100644 --- a/tests/fixtures/nanpa_prefixes/list.yaml +++ b/tests/fixtures/nanpa_prefixes/list.yaml @@ -12,29 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/nanpa_prefixes response: body: - string: "{\n \"data\": [\n {\n \"id\": \"54943e12-88e9-4df9-be54-a72926c251dd\"\ - ,\n \"type\": \"nanpa_prefixes\",\n \"attributes\": {\n \"\ - npa\": \"864\",\n \"nxx\": \"200\"\n },\n \"relationships\"\ - : {\n \"country\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/nanpa_prefixes/54943e12-88e9-4df9-be54-a72926c251dd/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/54943e12-88e9-4df9-be54-a72926c251dd/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/54943e12-88e9-4df9-be54-a72926c251dd/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/54943e12-88e9-4df9-be54-a72926c251dd/region\"\ - \n }\n }\n }\n },\n {\n \"id\": \"d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98\"\ - ,\n \"type\": \"nanpa_prefixes\",\n \"attributes\": {\n \"\ - npa\": \"864\",\n \"nxx\": \"920\"\n },\n \"relationships\"\ - : {\n \"country\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/nanpa_prefixes/d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98/country\"\ - \n }\n },\n \"region\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98/region\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 2,\n \"api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\"\ - : \"https://sandbox-api.didww.com/v3/nanpa_prefixes?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - \n }\n}" + string: '{"data":[{"id":"54943e12-88e9-4df9-be54-a72926c251dd","type":"nanpa_prefixes","attributes":{"npa":"864","nxx":"200"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/54943e12-88e9-4df9-be54-a72926c251dd/relationships/country","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/54943e12-88e9-4df9-be54-a72926c251dd/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/54943e12-88e9-4df9-be54-a72926c251dd/relationships/region","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/54943e12-88e9-4df9-be54-a72926c251dd/region"}}}},{"id":"d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98","type":"nanpa_prefixes","attributes":{"npa":"864","nxx":"920"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98/relationships/country","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98/country"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98/relationships/region","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/d557ec68-fdb9-41bd-adc1-ebcc2ecd8f98/region"}}}}],"meta":{"total_records":2,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/nanpa_prefixes?page%5Bnumber%5D=1&page%5Bsize%5D=50","last":"https://sandbox-api.didww.com/v3/nanpa_prefixes?page%5Bnumber%5D=1&page%5Bsize%5D=50"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/nanpa_prefixes/show.yaml b/tests/fixtures/nanpa_prefixes/show.yaml index 6dedb0c..36532b7 100644 --- a/tests/fixtures/nanpa_prefixes/show.yaml +++ b/tests/fixtures/nanpa_prefixes/show.yaml @@ -12,25 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/nanpa_prefixes/6c16d51d-d376-4395-91c4-012321317e48 response: body: - string: "{\n \"data\": {\n \"id\": \"6c16d51d-d376-4395-91c4-012321317e48\"\ - ,\n \"type\": \"nanpa_prefixes\",\n \"attributes\": {\n \"npa\"\ - : \"864\",\n \"nxx\": \"920\"\n },\n \"relationships\": {\n \ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/6c16d51d-d376-4395-91c4-012321317e48/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/6c16d51d-d376-4395-91c4-012321317e48/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\",\n \ - \ \"id\": \"e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1\"\n }\n \ - \ },\n \"region\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/nanpa_prefixes/6c16d51d-d376-4395-91c4-012321317e48/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/6c16d51d-d376-4395-91c4-012321317e48/region\"\ - \n }\n }\n }\n },\n \"included\": [\n {\n \"id\"\ - : \"e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1\",\n \"type\": \"countries\"\ - ,\n \"attributes\": {\n \"name\": \"United States\",\n \ - \ \"prefix\": \"1\",\n \"iso\": \"US\"\n },\n \"relationships\"\ - : {\n \"regions\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/countries/e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1/relationships/regions\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/countries/e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1/regions\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"api_version\"\ - : \"2026-04-16\"\n }\n}" + string: '{"data":{"id":"6c16d51d-d376-4395-91c4-012321317e48","type":"nanpa_prefixes","attributes":{"npa":"864","nxx":"920"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/6c16d51d-d376-4395-91c4-012321317e48/relationships/country","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/6c16d51d-d376-4395-91c4-012321317e48/country"},"data":{"type":"countries","id":"e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/6c16d51d-d376-4395-91c4-012321317e48/relationships/region","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/6c16d51d-d376-4395-91c4-012321317e48/region"}}}},"included":[{"id":"e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1/regions"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/nanpa_prefixes/show_with_region.yaml b/tests/fixtures/nanpa_prefixes/show_with_region.yaml index 8bfc0af..e996dfc 100644 --- a/tests/fixtures/nanpa_prefixes/show_with_region.yaml +++ b/tests/fixtures/nanpa_prefixes/show_with_region.yaml @@ -12,29 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922 response: body: - string: "{\n \"data\": {\n \"id\": \"1e622e21-c740-4d3f-a615-2a7ef4991922\"\ - ,\n \"type\": \"nanpa_prefixes\",\n \"attributes\": {\n \"npa\"\ - : \"201\",\n \"nxx\": \"221\"\n },\n \"relationships\": {\n \ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\",\n \ - \ \"id\": \"e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1\"\n }\n \ - \ },\n \"region\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/relationships/region\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/region\"\ - \n },\n \"data\": {\n \"type\": \"regions\",\n \ - \ \"id\": \"346e64c8-18c2-4a12-b1e2-20e090043fca\"\n }\n }\n\ - \ }\n },\n \"included\": [\n {\n \"id\": \"e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"United States\",\n \"prefix\": \"1\",\n \"iso\": \"US\"\n\ - \ }\n },\n {\n \"id\": \"346e64c8-18c2-4a12-b1e2-20e090043fca\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"New Jersey\",\n \"iso\": \"US-NJ\"\n },\n \"relationships\"\ - : {\n \"country\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/regions/346e64c8-18c2-4a12-b1e2-20e090043fca/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/346e64c8-18c2-4a12-b1e2-20e090043fca/country\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"api_version\"\ - : \"2026-04-16\"\n }\n}" + string: '{"data":{"id":"1e622e21-c740-4d3f-a615-2a7ef4991922","type":"nanpa_prefixes","attributes":{"npa":"201","nxx":"221"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/relationships/country","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/country"},"data":{"type":"countries","id":"e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1"}},"region":{"links":{"self":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/relationships/region","related":"https://sandbox-api.didww.com/v3/nanpa_prefixes/1e622e21-c740-4d3f-a615-2a7ef4991922/region"},"data":{"type":"regions","id":"346e64c8-18c2-4a12-b1e2-20e090043fca"}}}},"included":[{"id":"e5b6999c-aba0-4ae4-b9f9-3dcf744a0ed1","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"}},{"id":"346e64c8-18c2-4a12-b1e2-20e090043fca","type":"regions","attributes":{"name":"New Jersey","iso":"US-NJ"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/346e64c8-18c2-4a12-b1e2-20e090043fca/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/346e64c8-18c2-4a12-b1e2-20e090043fca/country"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/orders/create.yaml b/tests/fixtures/orders/create.yaml index 6273cbb..7e43c5e 100644 --- a/tests/fixtures/orders/create.yaml +++ b/tests/fixtures/orders/create.yaml @@ -12,24 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/orders response: body: - string: "{\n \"data\": {\n \"id\": \"5da18706-be9f-49b0-aeec-0480aacd49ad\"\ - ,\n \"type\": \"orders\",\n \"attributes\": {\n \"amount\": \"\ - 5.98\",\n \"status\": \"pending\",\n \"created_at\": \"2018-12-29T12:16:45.813Z\"\ - ,\n \"description\": \"DID\",\n \"reference\": \"JXK-923618\",\n\ - \ \"items\": [\n {\n \"type\": \"did_order_items\",\n\ - \ \"attributes\": {\n \"qty\": 1,\n \"nrc\"\ - : \"0.0\",\n \"mrc\": \"5.6\",\n \"prorated_mrc\": false,\n\ - \ \"billed_from\": null,\n \"billed_to\": null,\n \ - \ \"setup_price\": \"0.0\",\n \"monthly_price\": \"5.6\"\ - ,\n \"did_group_id\": \"899f0119-b4e9-47d0-9b2c-8a9f282fcbe2\"\n\ - \ }\n },\n {\n \"type\": \"did_order_items\"\ - ,\n \"attributes\": {\n \"qty\": 2,\n \"nrc\"\ - : \"0.0\",\n \"mrc\": \"0.19\",\n \"prorated_mrc\":\ - \ false,\n \"billed_from\": null,\n \"billed_to\": null,\n\ - \ \"setup_price\": \"0.0\",\n \"monthly_price\": \"\ - 0.19\",\n \"did_group_id\": \"7156eea4-09af-4f82-a43e-3b572f9927d8\"\ - \n }\n }\n ],\n \"callback_url\": null,\n \"\ - callback_method\": null\n }\n }\n}" + string: '{"data":{"id":"5da18706-be9f-49b0-aeec-0480aacd49ad","type":"orders","attributes":{"amount":"5.98","status":"pending","created_at":"2018-12-29T12:16:45.813Z","description":"DID","reference":"JXK-923618","items":[{"type":"did_order_items","attributes":{"qty":1,"nrc":"0.0","mrc":"5.6","prorated_mrc":false,"billed_from":null,"billed_to":null,"setup_price":"0.0","monthly_price":"5.6","did_group_id":"899f0119-b4e9-47d0-9b2c-8a9f282fcbe2"}},{"type":"did_order_items","attributes":{"qty":2,"nrc":"0.0","mrc":"0.19","prorated_mrc":false,"billed_from":null,"billed_to":null,"setup_price":"0.0","monthly_price":"0.19","did_group_id":"7156eea4-09af-4f82-a43e-3b572f9927d8"}}],"callback_url":null,"callback_method":null}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/orders/create_available_did.yaml b/tests/fixtures/orders/create_available_did.yaml index a48c893..102a403 100644 --- a/tests/fixtures/orders/create_available_did.yaml +++ b/tests/fixtures/orders/create_available_did.yaml @@ -12,18 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/orders response: body: - string: "{\n \"data\": {\n \"id\": \"9b9f2121-8d9e-4aa8-9754-dbaf6f695fd6\"\ - ,\n \"type\": \"orders\",\n \"attributes\": {\n \"amount\": \"\ - 0.19\",\n \"status\": \"pending\",\n \"created_at\": \"2018-12-27T16:44:05.511Z\"\ - ,\n \"description\": \"DID\",\n \"reference\": \"YGA-665789\",\n\ - \ \"items\": [\n {\n \"type\": \"did_order_items\",\n\ - \ \"attributes\": {\n \"qty\": 1,\n \"nrc\"\ - : \"0.0\",\n \"mrc\": \"0.19\",\n \"prorated_mrc\":\ - \ false,\n \"billed_from\": null,\n \"billed_to\": null,\n\ - \ \"setup_price\": \"0.0\",\n \"monthly_price\": \"\ - 0.19\",\n \"did_group_id\": \"7156eea4-09af-4f82-a43e-3b572f9927d8\"\ - \n }\n }\n ],\n \"callback_url\": null,\n \"\ - callback_method\": null\n }\n }\n}" + string: '{"data":{"id":"9b9f2121-8d9e-4aa8-9754-dbaf6f695fd6","type":"orders","attributes":{"amount":"0.19","status":"pending","created_at":"2018-12-27T16:44:05.511Z","description":"DID","reference":"YGA-665789","items":[{"type":"did_order_items","attributes":{"qty":1,"nrc":"0.0","mrc":"0.19","prorated_mrc":false,"billed_from":null,"billed_to":null,"setup_price":"0.0","monthly_price":"0.19","did_group_id":"7156eea4-09af-4f82-a43e-3b572f9927d8"}}],"callback_url":null,"callback_method":null}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/orders/create_billing_cycles.yaml b/tests/fixtures/orders/create_billing_cycles.yaml index aaef07f..063d319 100644 --- a/tests/fixtures/orders/create_billing_cycles.yaml +++ b/tests/fixtures/orders/create_billing_cycles.yaml @@ -12,17 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/orders response: body: - string: "{\n \"data\": {\n \"id\": \"9b9f2121-8d9e-4aa8-9754-dbaf6f695fd6\"\ - ,\n \"type\": \"orders\",\n \"attributes\": {\n \"amount\": \"\ - 0.19\",\n \"status\": \"pending\",\n \"created_at\": \"2018-12-27T16:44:05.511Z\"\ - ,\n \"description\": \"DID\",\n \"reference\": \"YGA-665789\",\n\ - \ \"items\": [\n {\n \"type\": \"did_order_items\",\n\ - \ \"attributes\": {\n \"qty\": 1,\n \"nrc\"\ - : \"0.0\",\n \"mrc\": \"0.19\",\n \"prorated_mrc\":\ - \ false,\n \"billed_from\": null,\n \"billed_to\": null,\n\ - \ \"setup_price\": \"0.0\",\n \"monthly_price\": \"\ - 0.19\",\n \"did_group_id\": \"7156eea4-09af-4f82-a43e-3b572f9927d8\"\ - \n }\n }\n ]\n }\n }\n}" + string: '{"data":{"id":"9b9f2121-8d9e-4aa8-9754-dbaf6f695fd6","type":"orders","attributes":{"amount":"0.19","status":"pending","created_at":"2018-12-27T16:44:05.511Z","description":"DID","reference":"YGA-665789","items":[{"type":"did_order_items","attributes":{"qty":1,"nrc":"0.0","mrc":"0.19","prorated_mrc":false,"billed_from":null,"billed_to":null,"setup_price":"0.0","monthly_price":"0.19","did_group_id":"7156eea4-09af-4f82-a43e-3b572f9927d8"}}]}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/orders/create_capacity.yaml b/tests/fixtures/orders/create_capacity.yaml index ca8fb38..fb65207 100644 --- a/tests/fixtures/orders/create_capacity.yaml +++ b/tests/fixtures/orders/create_capacity.yaml @@ -12,17 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/orders response: body: - string: "{\n \"data\": {\n \"id\": \"68a46dd5-d405-4283-b7a5-62503267e9f8\"\ - ,\n \"type\": \"orders\",\n \"attributes\": {\n \"amount\": \"\ - 44.35\",\n \"status\": \"completed\",\n \"created_at\": \"2018-12-28T14:08:38.304Z\"\ - ,\n \"description\": \"Capacity\",\n \"reference\": \"RUG-725648\"\ - ,\n \"items\": [\n {\n \"type\": \"capacity_order_items\"\ - ,\n \"attributes\": {\n \"qty\": 1,\n \"nrc\"\ - : \"25.0\",\n \"mrc\": \"19.35\",\n \"prorated_mrc\"\ - : true,\n \"billed_from\": \"2018-12-28\",\n \"billed_to\"\ - : \"2019-01-20\",\n \"capacity_pool_id\": \"b7522a31-4bf3-4c23-81e8-e7a14b23663f\"\ - \n }\n }\n ],\n \"callback_url\": null,\n \"\ - callback_method\": null\n }\n }\n}" + string: '{"data":{"id":"68a46dd5-d405-4283-b7a5-62503267e9f8","type":"orders","attributes":{"amount":"44.35","status":"completed","created_at":"2018-12-28T14:08:38.304Z","description":"Capacity","reference":"RUG-725648","items":[{"type":"capacity_order_items","attributes":{"qty":1,"nrc":"25.0","mrc":"19.35","prorated_mrc":true,"billed_from":"2018-12-28","billed_to":"2019-01-20","capacity_pool_id":"b7522a31-4bf3-4c23-81e8-e7a14b23663f"}}],"callback_url":null,"callback_method":null}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/orders/create_nanpa.yaml b/tests/fixtures/orders/create_nanpa.yaml index bfb7427..cd41ffe 100644 --- a/tests/fixtures/orders/create_nanpa.yaml +++ b/tests/fixtures/orders/create_nanpa.yaml @@ -12,19 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/orders response: body: - string: "{\n \"data\": {\n \"id\": \"c617f0ff-f819-477f-a17b-a8d248c4443e\"\ - ,\n \"type\": \"orders\",\n \"attributes\": {\n \"amount\": \"\ - 4.0\",\n \"status\": \"pending\",\n \"created_at\": \"2022-06-22T22:02:23.333Z\"\ - ,\n \"description\": \"DID\",\n \"reference\": \"WHT-994648\",\n\ - \ \"items\": [\n {\n \"type\": \"did_order_items\",\n\ - \ \"attributes\": {\n \"qty\": 1,\n \"nrc\"\ - : \"2.0\",\n \"mrc\": \"2.0\",\n \"prorated_mrc\": false,\n\ - \ \"billed_from\": null,\n \"billed_to\": null,\n \ - \ \"setup_price\": \"2.0\",\n \"monthly_price\": \"2.0\"\ - ,\n \"did_group_id\": \"8d909d98-9385-4635-b123-809d64b2d4bb\"\n\ - \ }\n }\n ],\n \"callback_method\": null,\n \ - \ \"callback_url\": null\n }\n },\n \"meta\": {\n \"api_version\"\ - : \"2026-04-16\"\n }\n}" + string: '{"data":{"id":"c617f0ff-f819-477f-a17b-a8d248c4443e","type":"orders","attributes":{"amount":"4.0","status":"pending","created_at":"2022-06-22T22:02:23.333Z","description":"DID","reference":"WHT-994648","items":[{"type":"did_order_items","attributes":{"qty":1,"nrc":"2.0","mrc":"2.0","prorated_mrc":false,"billed_from":null,"billed_to":null,"setup_price":"2.0","monthly_price":"2.0","did_group_id":"8d909d98-9385-4635-b123-809d64b2d4bb"}}],"callback_method":null,"callback_url":null}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/orders/create_reservation.yaml b/tests/fixtures/orders/create_reservation.yaml index 6b4dce9..0d6f23a 100644 --- a/tests/fixtures/orders/create_reservation.yaml +++ b/tests/fixtures/orders/create_reservation.yaml @@ -12,18 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/orders response: body: - string: "{\n \"data\": {\n \"id\": \"a9a7ff2d-d634-4545-bf28-dfda92d1c723\"\ - ,\n \"type\": \"orders\",\n \"attributes\": {\n \"amount\": \"\ - 0.19\",\n \"status\": \"pending\",\n \"created_at\": \"2018-12-28T10:40:48.355Z\"\ - ,\n \"description\": \"DID\",\n \"reference\": \"UAM-764395\",\n\ - \ \"items\": [\n {\n \"type\": \"did_order_items\",\n\ - \ \"attributes\": {\n \"qty\": 1,\n \"nrc\"\ - : \"0.0\",\n \"mrc\": \"0.19\",\n \"prorated_mrc\":\ - \ false,\n \"billed_from\": null,\n \"billed_to\": null,\n\ - \ \"setup_price\": \"0.0\",\n \"monthly_price\": \"\ - 0.19\",\n \"did_group_id\": \"7edb4f99-09ab-4bde-bef5-83685b9e76eb\"\ - \n }\n }\n ],\n \"callback_url\": null,\n \"\ - callback_method\": null\n }\n }\n}" + string: '{"data":{"id":"a9a7ff2d-d634-4545-bf28-dfda92d1c723","type":"orders","attributes":{"amount":"0.19","status":"pending","created_at":"2018-12-28T10:40:48.355Z","description":"DID","reference":"UAM-764395","items":[{"type":"did_order_items","attributes":{"qty":1,"nrc":"0.0","mrc":"0.19","prorated_mrc":false,"billed_from":null,"billed_to":null,"setup_price":"0.0","monthly_price":"0.19","did_group_id":"7edb4f99-09ab-4bde-bef5-83685b9e76eb"}}],"callback_url":null,"callback_method":null}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/orders/show.yaml b/tests/fixtures/orders/show.yaml index 9fc73eb..a3c8cec 100644 --- a/tests/fixtures/orders/show.yaml +++ b/tests/fixtures/orders/show.yaml @@ -12,17 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/orders/9df11dac-9d83-448c-8866-19c998be33db response: body: - string: "{\n \"data\": {\n \"id\": \"9df11dac-9d83-448c-8866-19c998be33db\"\ - ,\n \"type\": \"orders\",\n \"attributes\": {\n \"amount\": \"\ - 25.07\",\n \"status\": \"completed\",\n \"created_at\": \"2018-08-17T09:48:48.440Z\"\ - ,\n \"description\": \"Payment processing fee\",\n \"reference\"\ - : \"SPT-474057\",\n \"items\": [\n {\n \"type\": \"generic_order_items\"\ - ,\n \"attributes\": {\n \"qty\": 1,\n \"nrc\"\ - : \"25.07\",\n \"mrc\": \"0.0\",\n \"prorated_mrc\"\ - : false,\n \"billed_from\": \"2018-08-17\",\n \"billed_to\"\ - : \"2018-09-16\"\n }\n }\n ],\n \"external_reference_id\"\ - : \"crm-order-0001\"\n }\n },\n \"meta\": {\"api_version\": \"2026-04-16\"\ - }\n}" + string: '{"data":{"id":"9df11dac-9d83-448c-8866-19c998be33db","type":"orders","attributes":{"amount":"25.07","status":"completed","created_at":"2018-08-17T09:48:48.440Z","description":"Payment processing fee","reference":"SPT-474057","items":[{"type":"generic_order_items","attributes":{"qty":1,"nrc":"25.07","mrc":"0.0","prorated_mrc":false,"billed_from":"2018-08-17","billed_to":"2018-09-16"}}],"external_reference_id":"crm-order-0001"}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/orders_with_callback/create.yaml b/tests/fixtures/orders_with_callback/create.yaml index 8ac65e4..1062bea 100644 --- a/tests/fixtures/orders_with_callback/create.yaml +++ b/tests/fixtures/orders_with_callback/create.yaml @@ -12,18 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/orders response: body: - string: "{\n \"data\": {\n \"id\": \"5da18706-be9f-49b0-aeec-0480aacd49ad\"\ - ,\n \"type\": \"orders\",\n \"attributes\": {\n \"amount\": \"\ - 5.98\",\n \"status\": \"pending\",\n \"created_at\": \"2018-12-29T12:16:45.813Z\"\ - ,\n \"description\": \"DID\",\n \"reference\": \"JXK-923618\",\n\ - \ \"items\": [\n {\n \"type\": \"did_order_items\",\n\ - \ \"attributes\": {\n \"qty\": 1,\n \"nrc\"\ - : \"0.0\",\n \"mrc\": \"5.6\",\n \"prorated_mrc\": false,\n\ - \ \"billed_from\": null,\n \"billed_to\": null,\n \ - \ \"setup_price\": \"0.0\",\n \"monthly_price\": \"5.6\"\ - ,\n \"did_group_id\": \"899f0119-b4e9-47d0-9b2c-8a9f282fcbe2\"\n\ - \ }\n }\n ],\n \"callback_url\": \"https://example.com/callback\"\ - ,\n \"callback_method\": \"post\"\n }\n }\n}" + string: '{"data":{"id":"5da18706-be9f-49b0-aeec-0480aacd49ad","type":"orders","attributes":{"amount":"5.98","status":"pending","created_at":"2018-12-29T12:16:45.813Z","description":"DID","reference":"JXK-923618","items":[{"type":"did_order_items","attributes":{"qty":1,"nrc":"0.0","mrc":"5.6","prorated_mrc":false,"billed_from":null,"billed_to":null,"setup_price":"0.0","monthly_price":"5.6","did_group_id":"899f0119-b4e9-47d0-9b2c-8a9f282fcbe2"}}],"callback_url":"https://example.com/callback","callback_method":"post"}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/permanent_supporting_documents/create.yaml b/tests/fixtures/permanent_supporting_documents/create.yaml index ec2d543..3d5f2c6 100644 --- a/tests/fixtures/permanent_supporting_documents/create.yaml +++ b/tests/fixtures/permanent_supporting_documents/create.yaml @@ -12,22 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/permanent_supporting_documents response: body: - string: "{\n \"data\": {\n \"id\": \"19510da3-c07e-4fa9-a696-6b9ab89cc172\"\ - ,\n \"type\": \"permanent_supporting_documents\",\n \"attributes\":\ - \ {\n \"created_at\": \"2021-04-01T15:01:59.756Z\"\n },\n \"relationships\"\ - : {\n \"template\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/permanent_supporting_documents/19510da3-c07e-4fa9-a696-6b9ab89cc172/relationships/template\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/permanent_supporting_documents/19510da3-c07e-4fa9-a696-6b9ab89cc172/template\"\ - \n },\n \"data\": {\n \"type\": \"supporting_document_templates\"\ - ,\n \"id\": \"4199435f-646e-4e9d-a143-8f3b972b10c5\"\n }\n\ - \ },\n \"identity\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/permanent_supporting_documents/19510da3-c07e-4fa9-a696-6b9ab89cc172/relationships/identity\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/permanent_supporting_documents/19510da3-c07e-4fa9-a696-6b9ab89cc172/identity\"\ - \n }\n }\n }\n },\n \"included\": [\n {\n \"id\"\ - : \"4199435f-646e-4e9d-a143-8f3b972b10c5\",\n \"type\": \"supporting_document_templates\"\ - ,\n \"attributes\": {\n \"name\": \"Germany Special Registration\ - \ Form\",\n \"permanent\": true,\n \"url\": \"https://sandbox-api.didww.com/storage/public/4rghqnqtba0fa7mbdgig086xej1e\"\ - \n }\n }\n ],\n \"meta\": {\n \"api_version\": \"2026-04-16\"\ - \n }\n}" + string: '{"data":{"id":"19510da3-c07e-4fa9-a696-6b9ab89cc172","type":"permanent_supporting_documents","attributes":{"created_at":"2021-04-01T15:01:59.756Z"},"relationships":{"template":{"links":{"self":"https://sandbox-api.didww.com/v3/permanent_supporting_documents/19510da3-c07e-4fa9-a696-6b9ab89cc172/relationships/template","related":"https://sandbox-api.didww.com/v3/permanent_supporting_documents/19510da3-c07e-4fa9-a696-6b9ab89cc172/template"},"data":{"type":"supporting_document_templates","id":"4199435f-646e-4e9d-a143-8f3b972b10c5"}},"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/permanent_supporting_documents/19510da3-c07e-4fa9-a696-6b9ab89cc172/relationships/identity","related":"https://sandbox-api.didww.com/v3/permanent_supporting_documents/19510da3-c07e-4fa9-a696-6b9ab89cc172/identity"}}}},"included":[{"id":"4199435f-646e-4e9d-a143-8f3b972b10c5","type":"supporting_document_templates","attributes":{"name":"Germany Special Registration Form","permanent":true,"url":"https://sandbox-api.didww.com/storage/public/4rghqnqtba0fa7mbdgig086xej1e"}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/pops/list.yaml b/tests/fixtures/pops/list.yaml index 1b7df72..be32183 100644 --- a/tests/fixtures/pops/list.yaml +++ b/tests/fixtures/pops/list.yaml @@ -12,12 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/pops response: body: - string: "{\n \"data\": [\n {\n \"id\": \"29dbdddf-3026-4e82-a2d6-5d8b3b2e0ad9\"\ - ,\n \"type\": \"pops\",\n \"attributes\": {\n \"name\": \"\ - New York, NY, USA\"\n }\n },\n {\n \"id\": \"5fbb9593-de83-441f-8144-4b7b88547e22\"\ - ,\n \"type\": \"pops\",\n \"attributes\": {\n \"name\": \"\ - Los Angeles, CA, USA\"\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 2\n }\n}" + string: '{"data":[{"id":"29dbdddf-3026-4e82-a2d6-5d8b3b2e0ad9","type":"pops","attributes":{"name":"New York, NY, USA"}},{"id":"5fbb9593-de83-441f-8144-4b7b88547e22","type":"pops","attributes":{"name":"Los Angeles, CA, USA"}}],"meta":{"total_records":2}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/proof_types/list.yaml b/tests/fixtures/proof_types/list.yaml index 71095f5..4c5efbe 100644 --- a/tests/fixtures/proof_types/list.yaml +++ b/tests/fixtures/proof_types/list.yaml @@ -12,26 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/proof_types response: body: - string: "{\n \"data\": [\n {\n \"id\": \"ab1fb565-ac55-4c73-bc55-64dc61e70169\"\ - ,\n \"type\": \"proof_types\",\n \"attributes\": {\n \"name\"\ - : \"Utility Bill\",\n \"entity_type\": \"Address\"\n }\n },\n\ - \ {\n \"id\": \"634aea96-43d9-49a2-bd4e-6e8e2ce4e5e9\",\n \"\ - type\": \"proof_types\",\n \"attributes\": {\n \"name\": \"Rental\ - \ Receipt\",\n \"entity_type\": \"Address\"\n }\n },\n {\n\ - \ \"id\": \"49f42cbd-d051-43e0-9d30-883e154bad0d\",\n \"type\":\ - \ \"proof_types\",\n \"attributes\": {\n \"name\": \"Other\",\n\ - \ \"entity_type\": \"Address\"\n }\n },\n {\n \"id\"\ - : \"19cd7b22-559b-41d4-99c9-7ad7ad63d5d1\",\n \"type\": \"proof_types\"\ - ,\n \"attributes\": {\n \"name\": \"Drivers License\",\n \ - \ \"entity_type\": \"personal\"\n }\n },\n {\n \"id\": \"\ - d2c1b3fb-29f7-46ca-ba82-b617f4630b78\",\n \"type\": \"proof_types\",\n\ - \ \"attributes\": {\n \"name\": \"Copy of Phone Bill\",\n \ - \ \"entity_type\": \"Address\"\n }\n }\n ],\n \"meta\": {\n \ - \ \"total_records\": 17,\n \"api_version\": \"2026-04-16\"\n },\n \"\ - links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/proof_types?page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - ,\n \"next\": \"https://sandbox-api.didww.com/v3/proof_types?page%5Bnumber%5D=2&page%5Bsize%5D=5\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/proof_types?page%5Bnumber%5D=4&page%5Bsize%5D=5\"\ - \n }\n}" + string: '{"data":[{"id":"ab1fb565-ac55-4c73-bc55-64dc61e70169","type":"proof_types","attributes":{"name":"Utility Bill","entity_type":"Address"}},{"id":"634aea96-43d9-49a2-bd4e-6e8e2ce4e5e9","type":"proof_types","attributes":{"name":"Rental Receipt","entity_type":"Address"}},{"id":"49f42cbd-d051-43e0-9d30-883e154bad0d","type":"proof_types","attributes":{"name":"Other","entity_type":"Address"}},{"id":"19cd7b22-559b-41d4-99c9-7ad7ad63d5d1","type":"proof_types","attributes":{"name":"Drivers License","entity_type":"personal"}},{"id":"d2c1b3fb-29f7-46ca-ba82-b617f4630b78","type":"proof_types","attributes":{"name":"Copy of Phone Bill","entity_type":"Address"}}],"meta":{"total_records":17,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/proof_types?page%5Bnumber%5D=1&page%5Bsize%5D=5","next":"https://sandbox-api.didww.com/v3/proof_types?page%5Bnumber%5D=2&page%5Bsize%5D=5","last":"https://sandbox-api.didww.com/v3/proof_types?page%5Bnumber%5D=4&page%5Bsize%5D=5"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/proofs/create.yaml b/tests/fixtures/proofs/create.yaml index 5cde1c3..1ec4e7d 100644 --- a/tests/fixtures/proofs/create.yaml +++ b/tests/fixtures/proofs/create.yaml @@ -12,22 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/proofs response: body: - string: "{\n \"data\": {\n \"id\": \"ed46925b-a830-482d-917d-015858cf7ab9\"\ - ,\n \"type\": \"proofs\",\n \"attributes\": {\n \"created_at\"\ - : \"2021-04-01T15:03:49.672Z\",\n \"expires_at\": null\n },\n \"\ - relationships\": {\n \"proof_type\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/proofs/ed46925b-a830-482d-917d-015858cf7ab9/relationships/proof_type\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/proofs/ed46925b-a830-482d-917d-015858cf7ab9/proof_type\"\ - \n },\n \"data\": {\n \"type\": \"proof_types\",\n\ - \ \"id\": \"19cd7b22-559b-41d4-99c9-7ad7ad63d5d1\"\n }\n \ - \ },\n \"entity\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/proofs/ed46925b-a830-482d-917d-015858cf7ab9/relationships/entity\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/proofs/ed46925b-a830-482d-917d-015858cf7ab9/entity\"\ - \n }\n }\n }\n },\n \"included\": [\n {\n \"id\"\ - : \"19cd7b22-559b-41d4-99c9-7ad7ad63d5d1\",\n \"type\": \"proof_types\"\ - ,\n \"attributes\": {\n \"name\": \"Drivers License\",\n \ - \ \"entity_type\": \"personal\"\n }\n }\n ],\n \"meta\": {\n \ - \ \"api_version\": \"2026-04-16\"\n }\n}" + string: '{"data":{"id":"ed46925b-a830-482d-917d-015858cf7ab9","type":"proofs","attributes":{"created_at":"2021-04-01T15:03:49.672Z","expires_at":null},"relationships":{"proof_type":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/ed46925b-a830-482d-917d-015858cf7ab9/relationships/proof_type","related":"https://sandbox-api.didww.com/v3/proofs/ed46925b-a830-482d-917d-015858cf7ab9/proof_type"},"data":{"type":"proof_types","id":"19cd7b22-559b-41d4-99c9-7ad7ad63d5d1"}},"entity":{"links":{"self":"https://sandbox-api.didww.com/v3/proofs/ed46925b-a830-482d-917d-015858cf7ab9/relationships/entity","related":"https://sandbox-api.didww.com/v3/proofs/ed46925b-a830-482d-917d-015858cf7ab9/entity"}}}},"included":[{"id":"19cd7b22-559b-41d4-99c9-7ad7ad63d5d1","type":"proof_types","attributes":{"name":"Drivers License","entity_type":"personal"}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/public_keys/list.yaml b/tests/fixtures/public_keys/list.yaml index 15b2299..5a1b777 100644 --- a/tests/fixtures/public_keys/list.yaml +++ b/tests/fixtures/public_keys/list.yaml @@ -10,25 +10,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/public_keys response: body: - string: "{\n \"data\": [\n {\n \"id\": \"dcf2bfcb-a1d0-3b58-bbf0-3ec22a510ba8\"\ - ,\n \"type\": \"public_keys\",\n \"attributes\": {\n \"key\"\ - : \"-----BEGIN PUBLIC KEY-----\\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0eHGTVjy2s+uOfFteMoB\\\ - nT6TXa0Ra20weFoA/dQB2SsCvZ2zAOJqDuqbjFPdcRPp0TwR0rmDDHaLzV/d8EwF2\\nXiX9+9lwEGivn4PCz0A49gelNthD2dFR/TxyiVVdRsiaPeGJKVZTkYO3FhCKBpXe\\\ - nL2h1t+yhIQGGYZjh/fGgahJf2PKzDapHO4p8MZK8KCUBIN5z20cYblRyt39gdHul\\nsqGvERDUwYdgiEAFv5Y9yyVFUeMmeiswImLj8yHnVdwc2+5jEtWEeGzkZ0LNQCby\\\ - nnynlGwzkDXcQ98Pm00XDcvPwPk91dBvZvhA/G2n2zXp8WA+MLOkWIi015Lqy4doa\\n807DYfJW+600c1P0YaOI/pgGO9dGllpFGcZBxoNN5ZMUUOjTmrXYUNYTGSZh93gd\\\ - nlGP3rlhvAlui17CUW2pLpl4CaSUDJWXQZyJH/ILZ+HMVgOMsc7eyZDLWyWWaNlJg\\nEKSVNF3A8zx8oCtu+LjNPTqaiRvc3BI/ISRvb6r99v5oozCVQ/QIT24AxMLdmy01\\\ - nxOhXuDq48uoUTWssquuOnfFdF1WaK3c+AlaomX39re/rj4pvIB0ZlzuVN+LGG5WK\\nYb6jCitvl8lnw9yTBZKZeU1+IFBvWgN72o4B+Y/qjZJ5N0pCK+ZSrIeLo8Pse/S6\\\ - nQIULNIKq3VuvLgliDcsOzIMCAwEAAQ==\\n-----END PUBLIC KEY-----\\n\"\n }\n\ - \ },\n {\n \"id\": \"f40e1176-a4ff-36e6-b2ed-c2c2d18097a3\",\n\ - \ \"type\": \"public_keys\",\n \"attributes\": {\n \"key\"\ - : \"-----BEGIN PUBLIC KEY-----\\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA9L57/eAXG5ILm1CKjDpz\\\ - nUqqEOq45OyIGXr4lYPPL090C8ulDHkqd8I4Zn1k0ZVLL1SC/mtWaE4+k5jrrQTQN\\n3pFVDraUsI+ugvtyCwH0IViW0UaASkT26BQwdzN9/iGJACoL1pAOzQaEpBW9LtLB\\\ - nkgdNYHKZD++RD0gskbkhuaBM5yLx6sK2vES49GhCCog/qGkq9ogZIuXN9UMZpqgv\\ntF9sBNLixGNxvsz7svxlaPFKim1eetVgWa53KTuypUJcnNWFJdft4NhmOabHfc4M\\\ - n3IyCtkrkkRmmoaYKr3ZK2fCYIRaUxyEv+YWM3ISV1ZkEEqlRtH2dybOotkxkJpOt\\n3AKMk86FXrcgMmspf34wN8uFXVrtZht6XkbWWwjlG+I48V1SPM7SK9BrnDQNgoJe\\\ - nd5LhjyK4dNTJo+XM2C65iwKDc5OzQX+VS9mS5uSKzn9rDOkpjjMLqWxDdmK4X7uZ\\nZMkFtDcuf0vYKuMcOQ4w1NH+FcFO1XPtKftIiLLY0SafUIqGEbt1bf0A/whLpTNE\\\ - nrc1WI1V8+DsYhqZqWDINbqNXS1/iRahiXPanmszR6npkxqdvtMsdM5FJJIz7x9a/\\noPNqkDzHWZPwpZCdZO4mijx2CIcMqh8Y2NXlMI/FDlO/qUgmFz1gf9Fm41HLmFzS\\\ - n5LG5KbxmgbPJlM3Q8s6TAl0CAwEAAQ==\\n-----END PUBLIC KEY-----\\n\"\n }\n\ - \ }\n ]\n}" + string: '{"data":[{"id":"dcf2bfcb-a1d0-3b58-bbf0-3ec22a510ba8","type":"public_keys","attributes":{"key":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0eHGTVjy2s+uOfFteMoB\nT6TXa0Ra20weFoA/dQB2SsCvZ2zAOJqDuqbjFPdcRPp0TwR0rmDDHaLzV/d8EwF2\nXiX9+9lwEGivn4PCz0A49gelNthD2dFR/TxyiVVdRsiaPeGJKVZTkYO3FhCKBpXe\nL2h1t+yhIQGGYZjh/fGgahJf2PKzDapHO4p8MZK8KCUBIN5z20cYblRyt39gdHul\nsqGvERDUwYdgiEAFv5Y9yyVFUeMmeiswImLj8yHnVdwc2+5jEtWEeGzkZ0LNQCby\nnynlGwzkDXcQ98Pm00XDcvPwPk91dBvZvhA/G2n2zXp8WA+MLOkWIi015Lqy4doa\n807DYfJW+600c1P0YaOI/pgGO9dGllpFGcZBxoNN5ZMUUOjTmrXYUNYTGSZh93gd\nlGP3rlhvAlui17CUW2pLpl4CaSUDJWXQZyJH/ILZ+HMVgOMsc7eyZDLWyWWaNlJg\nEKSVNF3A8zx8oCtu+LjNPTqaiRvc3BI/ISRvb6r99v5oozCVQ/QIT24AxMLdmy01\nxOhXuDq48uoUTWssquuOnfFdF1WaK3c+AlaomX39re/rj4pvIB0ZlzuVN+LGG5WK\nYb6jCitvl8lnw9yTBZKZeU1+IFBvWgN72o4B+Y/qjZJ5N0pCK+ZSrIeLo8Pse/S6\nQIULNIKq3VuvLgliDcsOzIMCAwEAAQ==\n-----END PUBLIC KEY-----\n"}},{"id":"f40e1176-a4ff-36e6-b2ed-c2c2d18097a3","type":"public_keys","attributes":{"key":"-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA9L57/eAXG5ILm1CKjDpz\nUqqEOq45OyIGXr4lYPPL090C8ulDHkqd8I4Zn1k0ZVLL1SC/mtWaE4+k5jrrQTQN\n3pFVDraUsI+ugvtyCwH0IViW0UaASkT26BQwdzN9/iGJACoL1pAOzQaEpBW9LtLB\nkgdNYHKZD++RD0gskbkhuaBM5yLx6sK2vES49GhCCog/qGkq9ogZIuXN9UMZpqgv\ntF9sBNLixGNxvsz7svxlaPFKim1eetVgWa53KTuypUJcnNWFJdft4NhmOabHfc4M\n3IyCtkrkkRmmoaYKr3ZK2fCYIRaUxyEv+YWM3ISV1ZkEEqlRtH2dybOotkxkJpOt\n3AKMk86FXrcgMmspf34wN8uFXVrtZht6XkbWWwjlG+I48V1SPM7SK9BrnDQNgoJe\nd5LhjyK4dNTJo+XM2C65iwKDc5OzQX+VS9mS5uSKzn9rDOkpjjMLqWxDdmK4X7uZ\nZMkFtDcuf0vYKuMcOQ4w1NH+FcFO1XPtKftIiLLY0SafUIqGEbt1bf0A/whLpTNE\nrc1WI1V8+DsYhqZqWDINbqNXS1/iRahiXPanmszR6npkxqdvtMsdM5FJJIz7x9a/\noPNqkDzHWZPwpZCdZO4mijx2CIcMqh8Y2NXlMI/FDlO/qUgmFz1gf9Fm41HLmFzS\n5LG5KbxmgbPJlM3Q8s6TAl0CAwEAAQ==\n-----END PUBLIC KEY-----\n"}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/regions/list.yaml b/tests/fixtures/regions/list.yaml index 9f0d4d6..404c14d 100644 --- a/tests/fixtures/regions/list.yaml +++ b/tests/fixtures/regions/list.yaml @@ -12,337 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/regions response: body: - string: "{\n \"data\": [\n {\n \"id\": \"d2716c9b-0bff-4de8-a25e-d12bf6408d3a\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Alabama\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/d2716c9b-0bff-4de8-a25e-d12bf6408d3a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/d2716c9b-0bff-4de8-a25e-d12bf6408d3a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"59d352b7-9a17-4722-a1fb-9a79b2c9007a\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Alaska\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/59d352b7-9a17-4722-a1fb-9a79b2c9007a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/59d352b7-9a17-4722-a1fb-9a79b2c9007a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"dd7bf52d-2418-4b41-a17d-9d01a46f22ff\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Alberta\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/dd7bf52d-2418-4b41-a17d-9d01a46f22ff/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/dd7bf52d-2418-4b41-a17d-9d01a46f22ff/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"8bef58e3-8e0e-43ba-8d03-1143968a6a47\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Arizona\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/8bef58e3-8e0e-43ba-8d03-1143968a6a47/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/8bef58e3-8e0e-43ba-8d03-1143968a6a47/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"6b7eb128-9c01-4d26-89e9-7918508cb213\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Arkansas\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/6b7eb128-9c01-4d26-89e9-7918508cb213/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/6b7eb128-9c01-4d26-89e9-7918508cb213/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4dae7cbc-9808-4b6b-b9cb-c4612039af01\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"British Columbia\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/4dae7cbc-9808-4b6b-b9cb-c4612039af01/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/4dae7cbc-9808-4b6b-b9cb-c4612039af01/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"c11b1f34-16cf-4ba6-8497-f305b53d5b01\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"California\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/c11b1f34-16cf-4ba6-8497-f305b53d5b01/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/c11b1f34-16cf-4ba6-8497-f305b53d5b01/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"e1d5af11-ee35-4650-bc30-3c1ce939a6e7\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Colorado\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/e1d5af11-ee35-4650-bc30-3c1ce939a6e7/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/e1d5af11-ee35-4650-bc30-3c1ce939a6e7/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a8a12eaf-dc7f-4d7b-bfcd-a92eef4ef9a8\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Connecticut\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/a8a12eaf-dc7f-4d7b-bfcd-a92eef4ef9a8/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/a8a12eaf-dc7f-4d7b-bfcd-a92eef4ef9a8/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b734f7a1-13fa-4af1-bde0-9a1e34f0a377\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Delaware\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/b734f7a1-13fa-4af1-bde0-9a1e34f0a377/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/b734f7a1-13fa-4af1-bde0-9a1e34f0a377/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4916a6b6-2566-43ff-a854-089c5ebb15b7\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Florida\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/4916a6b6-2566-43ff-a854-089c5ebb15b7/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/4916a6b6-2566-43ff-a854-089c5ebb15b7/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"0aa9b37a-fb2a-4695-9d50-b1eceaee84e3\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Georgia\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/0aa9b37a-fb2a-4695-9d50-b1eceaee84e3/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/0aa9b37a-fb2a-4695-9d50-b1eceaee84e3/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"7719cc14-485c-4476-9b73-bb7961a276d8\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Hawaii\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/7719cc14-485c-4476-9b73-bb7961a276d8/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/7719cc14-485c-4476-9b73-bb7961a276d8/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f4e0e04a-fe25-41a0-9a67-b027899b71f5\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Idaho\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/f4e0e04a-fe25-41a0-9a67-b027899b71f5/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/f4e0e04a-fe25-41a0-9a67-b027899b71f5/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"547b2ce1-ba2d-4cf2-8c09-9900aaf1291c\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Illinois\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/547b2ce1-ba2d-4cf2-8c09-9900aaf1291c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/547b2ce1-ba2d-4cf2-8c09-9900aaf1291c/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"8e195638-db30-4aae-a0af-bd760ec46c8e\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Indiana\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/8e195638-db30-4aae-a0af-bd760ec46c8e/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/8e195638-db30-4aae-a0af-bd760ec46c8e/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"27a229c7-9e98-4430-8420-7aed16440d73\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Iowa\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/27a229c7-9e98-4430-8420-7aed16440d73/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/27a229c7-9e98-4430-8420-7aed16440d73/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"1818dc95-6480-481d-a6d9-521cca1de4e0\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Kabulas\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/1818dc95-6480-481d-a6d9-521cca1de4e0/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/1818dc95-6480-481d-a6d9-521cca1de4e0/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"93adb85e-9fd2-4631-b91f-1f399a1c90e3\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Kansas\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/93adb85e-9fd2-4631-b91f-1f399a1c90e3/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/93adb85e-9fd2-4631-b91f-1f399a1c90e3/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"924d95a7-cdf2-494e-9671-53a22536f099\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Kentucky\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/924d95a7-cdf2-494e-9671-53a22536f099/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/924d95a7-cdf2-494e-9671-53a22536f099/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"bc10843f-8bb7-48fd-8022-b634c50e4f2a\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Louisiana\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/bc10843f-8bb7-48fd-8022-b634c50e4f2a/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/bc10843f-8bb7-48fd-8022-b634c50e4f2a/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"1e93b572-cba1-461c-88fb-170f2db8e7ed\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Maine\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/1e93b572-cba1-461c-88fb-170f2db8e7ed/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/1e93b572-cba1-461c-88fb-170f2db8e7ed/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"5d1ec5eb-8f2b-42f8-ad90-64023d74dabb\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Manitoba\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/5d1ec5eb-8f2b-42f8-ad90-64023d74dabb/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/5d1ec5eb-8f2b-42f8-ad90-64023d74dabb/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"4f5e27f7-d2df-4097-bc5f-c272b67d89af\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Maryland\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/4f5e27f7-d2df-4097-bc5f-c272b67d89af/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/4f5e27f7-d2df-4097-bc5f-c272b67d89af/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"cd1c365b-7e07-48e0-b6ae-b18cb620b0d9\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Massachusetts\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/cd1c365b-7e07-48e0-b6ae-b18cb620b0d9/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/cd1c365b-7e07-48e0-b6ae-b18cb620b0d9/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"eb5ab037-2edd-486d-a121-7bce532167cb\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Michigan\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/eb5ab037-2edd-486d-a121-7bce532167cb/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/eb5ab037-2edd-486d-a121-7bce532167cb/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"56ba0b45-d819-4e1e-9c45-a50aad86e88e\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Minnesota\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/56ba0b45-d819-4e1e-9c45-a50aad86e88e/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/56ba0b45-d819-4e1e-9c45-a50aad86e88e/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"5e960b5c-a7aa-428e-973d-bde0fe115fef\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Mississippi\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/5e960b5c-a7aa-428e-973d-bde0fe115fef/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/5e960b5c-a7aa-428e-973d-bde0fe115fef/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"53ecfa1f-3310-4029-896d-ccd330503be6\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Missouri\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/53ecfa1f-3310-4029-896d-ccd330503be6/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/53ecfa1f-3310-4029-896d-ccd330503be6/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"50d81302-87e2-42d2-ba38-31d80b2dc7b4\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Montana\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/50d81302-87e2-42d2-ba38-31d80b2dc7b4/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/50d81302-87e2-42d2-ba38-31d80b2dc7b4/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"c294b08b-e113-492f-8a59-3391f3582d35\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"N\\u2019Djamena\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/c294b08b-e113-492f-8a59-3391f3582d35/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/c294b08b-e113-492f-8a59-3391f3582d35/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"573b2794-7f53-4c07-8528-3f6b57041e5f\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Nebraska\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/573b2794-7f53-4c07-8528-3f6b57041e5f/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/573b2794-7f53-4c07-8528-3f6b57041e5f/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"6de4c3be-876e-47e2-93e0-98c0310e54d6\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Nevada\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/6de4c3be-876e-47e2-93e0-98c0310e54d6/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/6de4c3be-876e-47e2-93e0-98c0310e54d6/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"caba4832-474f-4185-83b9-504d77dc14cc\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"New Brunswick\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/caba4832-474f-4185-83b9-504d77dc14cc/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/caba4832-474f-4185-83b9-504d77dc14cc/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"e7bb7d87-5630-4d2e-8dab-28d05e1b366c\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Newfoundland And Labrador\"\n },\n \"relationships\": {\n \ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/e7bb7d87-5630-4d2e-8dab-28d05e1b366c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/e7bb7d87-5630-4d2e-8dab-28d05e1b366c/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"abffd2a0-4b51-4ca6-8eaa-445598c92e73\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"New Hampshire\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/abffd2a0-4b51-4ca6-8eaa-445598c92e73/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/abffd2a0-4b51-4ca6-8eaa-445598c92e73/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"346e64c8-18c2-4a12-b1e2-20e090043fca\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"New Jersey\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/346e64c8-18c2-4a12-b1e2-20e090043fca/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/346e64c8-18c2-4a12-b1e2-20e090043fca/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b47787e5-8171-43fe-a60b-5f73495d177c\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"New Mexico\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/b47787e5-8171-43fe-a60b-5f73495d177c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/b47787e5-8171-43fe-a60b-5f73495d177c/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"ab7e83bc-814b-4cfa-a14c-d2df3de2a545\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"New York\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/ab7e83bc-814b-4cfa-a14c-d2df3de2a545/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/ab7e83bc-814b-4cfa-a14c-d2df3de2a545/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a30e52bf-e8c0-4742-89d1-56d1809d8012\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"North Carolina\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/a30e52bf-e8c0-4742-89d1-56d1809d8012/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/a30e52bf-e8c0-4742-89d1-56d1809d8012/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f4d9190c-d3a9-49c1-a410-e359dde1c313\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"North Dakota\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/f4d9190c-d3a9-49c1-a410-e359dde1c313/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/f4d9190c-d3a9-49c1-a410-e359dde1c313/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"bbcae0f7-bc86-411f-bddd-f6c835c95512\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Northwest Territories\"\n },\n \"relationships\": {\n \ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/bbcae0f7-bc86-411f-bddd-f6c835c95512/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/bbcae0f7-bc86-411f-bddd-f6c835c95512/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"078a82db-c2f9-404c-afbf-095ccab9f403\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Nova Scotia\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/078a82db-c2f9-404c-afbf-095ccab9f403/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/078a82db-c2f9-404c-afbf-095ccab9f403/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"15065563-7127-43ec-af8f-64ab24d039b3\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Ohio\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/15065563-7127-43ec-af8f-64ab24d039b3/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/15065563-7127-43ec-af8f-64ab24d039b3/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"c081ae51-578e-424f-b625-363224957c08\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Oklahoma\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/c081ae51-578e-424f-b625-363224957c08/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/c081ae51-578e-424f-b625-363224957c08/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"77e4427d-ab97-45e5-b2a0-551bf9e28ba0\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Ontario\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/77e4427d-ab97-45e5-b2a0-551bf9e28ba0/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/77e4427d-ab97-45e5-b2a0-551bf9e28ba0/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"487f62e1-1df5-4e13-a297-9f6b3d3bd26b\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Oregon\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/487f62e1-1df5-4e13-a297-9f6b3d3bd26b/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/487f62e1-1df5-4e13-a297-9f6b3d3bd26b/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"90a27209-3208-482a-af2e-65208c2ff8f8\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Pennsylvania\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/90a27209-3208-482a-af2e-65208c2ff8f8/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/90a27209-3208-482a-af2e-65208c2ff8f8/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f6e22abb-c49b-494c-90bc-b34048a47956\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Prince Edward Island\"\n },\n \"relationships\": {\n \ - \ \"country\": {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/f6e22abb-c49b-494c-90bc-b34048a47956/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/f6e22abb-c49b-494c-90bc-b34048a47956/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"874747e9-b2e8-4ed4-bd02-9e759f19d8e2\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Quebec\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/874747e9-b2e8-4ed4-bd02-9e759f19d8e2/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/874747e9-b2e8-4ed4-bd02-9e759f19d8e2/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"0d010096-e5fd-4a12-9b01-2da492b8edf7\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Rabat\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/0d010096-e5fd-4a12-9b01-2da492b8edf7/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/0d010096-e5fd-4a12-9b01-2da492b8edf7/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"ee58ac57-72e2-4ec2-a518-3c5fa80ae5aa\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Rhode Island\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/ee58ac57-72e2-4ec2-a518-3c5fa80ae5aa/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/ee58ac57-72e2-4ec2-a518-3c5fa80ae5aa/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"1aca7960-a7ff-403c-b484-202e43a7e0d2\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Saskatchewan\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/1aca7960-a7ff-403c-b484-202e43a7e0d2/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/1aca7960-a7ff-403c-b484-202e43a7e0d2/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"43bf7c1a-9a89-4cb0-bbfd-8d3bb82dbb20\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"South Carolina\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/43bf7c1a-9a89-4cb0-bbfd-8d3bb82dbb20/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/43bf7c1a-9a89-4cb0-bbfd-8d3bb82dbb20/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"05d38ee3-1b5d-4a12-a718-091a853d6b62\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"South Dakota\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/05d38ee3-1b5d-4a12-a718-091a853d6b62/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/05d38ee3-1b5d-4a12-a718-091a853d6b62/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9a8cb25c-14a4-4eca-8807-880a0a013bdb\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Tennessee\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/9a8cb25c-14a4-4eca-8807-880a0a013bdb/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/9a8cb25c-14a4-4eca-8807-880a0a013bdb/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9ec3f82f-dd09-45cf-af5d-5345339340f6\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Texas\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/9ec3f82f-dd09-45cf-af5d-5345339340f6/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/9ec3f82f-dd09-45cf-af5d-5345339340f6/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"f282b69b-cbb4-43db-ae7f-b5ee7f1718fd\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Tralialia\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/f282b69b-cbb4-43db-ae7f-b5ee7f1718fd/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/f282b69b-cbb4-43db-ae7f-b5ee7f1718fd/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"cff808c1-f8cf-454d-8c3f-46112fb7ba44\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Utah\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/cff808c1-f8cf-454d-8c3f-46112fb7ba44/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/cff808c1-f8cf-454d-8c3f-46112fb7ba44/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"cde3e90c-9432-4844-82ee-45ec5d1df946\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Vermont\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/cde3e90c-9432-4844-82ee-45ec5d1df946/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/cde3e90c-9432-4844-82ee-45ec5d1df946/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"351ae60f-1f38-4f86-ac1c-07baff1abe65\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Virginia\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/351ae60f-1f38-4f86-ac1c-07baff1abe65/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/351ae60f-1f38-4f86-ac1c-07baff1abe65/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9ae4ce01-378e-480f-9a40-716713a27523\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Washington\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/9ae4ce01-378e-480f-9a40-716713a27523/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/9ae4ce01-378e-480f-9a40-716713a27523/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"2ed45c54-694c-4db1-9e7f-3c4441c49e64\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Washington DC\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/2ed45c54-694c-4db1-9e7f-3c4441c49e64/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/2ed45c54-694c-4db1-9e7f-3c4441c49e64/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"bb67b21c-fee8-459a-b395-1306742b8c7f\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Wisconsin\"\n },\n \"relationships\": {\n \"country\"\ - : {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/bb67b21c-fee8-459a-b395-1306742b8c7f/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/bb67b21c-fee8-459a-b395-1306742b8c7f/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a101ad5b-40d5-4fc8-b30a-4735b6c4664c\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Wyoming\"\n },\n \"relationships\": {\n \"country\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/a101ad5b-40d5-4fc8-b30a-4735b6c4664c/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/a101ad5b-40d5-4fc8-b30a-4735b6c4664c/country\"\ - \n }\n }\n }\n },\n {\n \"id\": \"82de821b-15fc-4ac1-a8fd-b0ca38019306\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\"\ - : \"Yukon\"\n },\n \"relationships\": {\n \"country\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/82de821b-15fc-4ac1-a8fd-b0ca38019306/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/82de821b-15fc-4ac1-a8fd-b0ca38019306/country\"\ - \n }\n }\n }\n }\n ]\n}" + string: '{"data":[{"id":"d2716c9b-0bff-4de8-a25e-d12bf6408d3a","type":"regions","attributes":{"name":"Alabama"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/d2716c9b-0bff-4de8-a25e-d12bf6408d3a/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/d2716c9b-0bff-4de8-a25e-d12bf6408d3a/country"}}}},{"id":"59d352b7-9a17-4722-a1fb-9a79b2c9007a","type":"regions","attributes":{"name":"Alaska"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/59d352b7-9a17-4722-a1fb-9a79b2c9007a/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/59d352b7-9a17-4722-a1fb-9a79b2c9007a/country"}}}},{"id":"dd7bf52d-2418-4b41-a17d-9d01a46f22ff","type":"regions","attributes":{"name":"Alberta"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/dd7bf52d-2418-4b41-a17d-9d01a46f22ff/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/dd7bf52d-2418-4b41-a17d-9d01a46f22ff/country"}}}},{"id":"8bef58e3-8e0e-43ba-8d03-1143968a6a47","type":"regions","attributes":{"name":"Arizona"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/8bef58e3-8e0e-43ba-8d03-1143968a6a47/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/8bef58e3-8e0e-43ba-8d03-1143968a6a47/country"}}}},{"id":"6b7eb128-9c01-4d26-89e9-7918508cb213","type":"regions","attributes":{"name":"Arkansas"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/6b7eb128-9c01-4d26-89e9-7918508cb213/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/6b7eb128-9c01-4d26-89e9-7918508cb213/country"}}}},{"id":"4dae7cbc-9808-4b6b-b9cb-c4612039af01","type":"regions","attributes":{"name":"British Columbia"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/4dae7cbc-9808-4b6b-b9cb-c4612039af01/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/4dae7cbc-9808-4b6b-b9cb-c4612039af01/country"}}}},{"id":"c11b1f34-16cf-4ba6-8497-f305b53d5b01","type":"regions","attributes":{"name":"California"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/c11b1f34-16cf-4ba6-8497-f305b53d5b01/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/c11b1f34-16cf-4ba6-8497-f305b53d5b01/country"}}}},{"id":"e1d5af11-ee35-4650-bc30-3c1ce939a6e7","type":"regions","attributes":{"name":"Colorado"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/e1d5af11-ee35-4650-bc30-3c1ce939a6e7/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/e1d5af11-ee35-4650-bc30-3c1ce939a6e7/country"}}}},{"id":"a8a12eaf-dc7f-4d7b-bfcd-a92eef4ef9a8","type":"regions","attributes":{"name":"Connecticut"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/a8a12eaf-dc7f-4d7b-bfcd-a92eef4ef9a8/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/a8a12eaf-dc7f-4d7b-bfcd-a92eef4ef9a8/country"}}}},{"id":"b734f7a1-13fa-4af1-bde0-9a1e34f0a377","type":"regions","attributes":{"name":"Delaware"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/b734f7a1-13fa-4af1-bde0-9a1e34f0a377/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/b734f7a1-13fa-4af1-bde0-9a1e34f0a377/country"}}}},{"id":"4916a6b6-2566-43ff-a854-089c5ebb15b7","type":"regions","attributes":{"name":"Florida"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/4916a6b6-2566-43ff-a854-089c5ebb15b7/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/4916a6b6-2566-43ff-a854-089c5ebb15b7/country"}}}},{"id":"0aa9b37a-fb2a-4695-9d50-b1eceaee84e3","type":"regions","attributes":{"name":"Georgia"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/0aa9b37a-fb2a-4695-9d50-b1eceaee84e3/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/0aa9b37a-fb2a-4695-9d50-b1eceaee84e3/country"}}}},{"id":"7719cc14-485c-4476-9b73-bb7961a276d8","type":"regions","attributes":{"name":"Hawaii"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/7719cc14-485c-4476-9b73-bb7961a276d8/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/7719cc14-485c-4476-9b73-bb7961a276d8/country"}}}},{"id":"f4e0e04a-fe25-41a0-9a67-b027899b71f5","type":"regions","attributes":{"name":"Idaho"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/f4e0e04a-fe25-41a0-9a67-b027899b71f5/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/f4e0e04a-fe25-41a0-9a67-b027899b71f5/country"}}}},{"id":"547b2ce1-ba2d-4cf2-8c09-9900aaf1291c","type":"regions","attributes":{"name":"Illinois"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/547b2ce1-ba2d-4cf2-8c09-9900aaf1291c/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/547b2ce1-ba2d-4cf2-8c09-9900aaf1291c/country"}}}},{"id":"8e195638-db30-4aae-a0af-bd760ec46c8e","type":"regions","attributes":{"name":"Indiana"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/8e195638-db30-4aae-a0af-bd760ec46c8e/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/8e195638-db30-4aae-a0af-bd760ec46c8e/country"}}}},{"id":"27a229c7-9e98-4430-8420-7aed16440d73","type":"regions","attributes":{"name":"Iowa"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/27a229c7-9e98-4430-8420-7aed16440d73/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/27a229c7-9e98-4430-8420-7aed16440d73/country"}}}},{"id":"1818dc95-6480-481d-a6d9-521cca1de4e0","type":"regions","attributes":{"name":"Kabulas"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/1818dc95-6480-481d-a6d9-521cca1de4e0/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/1818dc95-6480-481d-a6d9-521cca1de4e0/country"}}}},{"id":"93adb85e-9fd2-4631-b91f-1f399a1c90e3","type":"regions","attributes":{"name":"Kansas"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/93adb85e-9fd2-4631-b91f-1f399a1c90e3/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/93adb85e-9fd2-4631-b91f-1f399a1c90e3/country"}}}},{"id":"924d95a7-cdf2-494e-9671-53a22536f099","type":"regions","attributes":{"name":"Kentucky"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/924d95a7-cdf2-494e-9671-53a22536f099/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/924d95a7-cdf2-494e-9671-53a22536f099/country"}}}},{"id":"bc10843f-8bb7-48fd-8022-b634c50e4f2a","type":"regions","attributes":{"name":"Louisiana"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/bc10843f-8bb7-48fd-8022-b634c50e4f2a/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/bc10843f-8bb7-48fd-8022-b634c50e4f2a/country"}}}},{"id":"1e93b572-cba1-461c-88fb-170f2db8e7ed","type":"regions","attributes":{"name":"Maine"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/1e93b572-cba1-461c-88fb-170f2db8e7ed/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/1e93b572-cba1-461c-88fb-170f2db8e7ed/country"}}}},{"id":"5d1ec5eb-8f2b-42f8-ad90-64023d74dabb","type":"regions","attributes":{"name":"Manitoba"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/5d1ec5eb-8f2b-42f8-ad90-64023d74dabb/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/5d1ec5eb-8f2b-42f8-ad90-64023d74dabb/country"}}}},{"id":"4f5e27f7-d2df-4097-bc5f-c272b67d89af","type":"regions","attributes":{"name":"Maryland"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/4f5e27f7-d2df-4097-bc5f-c272b67d89af/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/4f5e27f7-d2df-4097-bc5f-c272b67d89af/country"}}}},{"id":"cd1c365b-7e07-48e0-b6ae-b18cb620b0d9","type":"regions","attributes":{"name":"Massachusetts"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/cd1c365b-7e07-48e0-b6ae-b18cb620b0d9/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/cd1c365b-7e07-48e0-b6ae-b18cb620b0d9/country"}}}},{"id":"eb5ab037-2edd-486d-a121-7bce532167cb","type":"regions","attributes":{"name":"Michigan"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/eb5ab037-2edd-486d-a121-7bce532167cb/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/eb5ab037-2edd-486d-a121-7bce532167cb/country"}}}},{"id":"56ba0b45-d819-4e1e-9c45-a50aad86e88e","type":"regions","attributes":{"name":"Minnesota"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/56ba0b45-d819-4e1e-9c45-a50aad86e88e/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/56ba0b45-d819-4e1e-9c45-a50aad86e88e/country"}}}},{"id":"5e960b5c-a7aa-428e-973d-bde0fe115fef","type":"regions","attributes":{"name":"Mississippi"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/5e960b5c-a7aa-428e-973d-bde0fe115fef/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/5e960b5c-a7aa-428e-973d-bde0fe115fef/country"}}}},{"id":"53ecfa1f-3310-4029-896d-ccd330503be6","type":"regions","attributes":{"name":"Missouri"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/53ecfa1f-3310-4029-896d-ccd330503be6/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/53ecfa1f-3310-4029-896d-ccd330503be6/country"}}}},{"id":"50d81302-87e2-42d2-ba38-31d80b2dc7b4","type":"regions","attributes":{"name":"Montana"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/50d81302-87e2-42d2-ba38-31d80b2dc7b4/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/50d81302-87e2-42d2-ba38-31d80b2dc7b4/country"}}}},{"id":"c294b08b-e113-492f-8a59-3391f3582d35","type":"regions","attributes":{"name":"N’Djamena"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/c294b08b-e113-492f-8a59-3391f3582d35/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/c294b08b-e113-492f-8a59-3391f3582d35/country"}}}},{"id":"573b2794-7f53-4c07-8528-3f6b57041e5f","type":"regions","attributes":{"name":"Nebraska"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/573b2794-7f53-4c07-8528-3f6b57041e5f/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/573b2794-7f53-4c07-8528-3f6b57041e5f/country"}}}},{"id":"6de4c3be-876e-47e2-93e0-98c0310e54d6","type":"regions","attributes":{"name":"Nevada"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/6de4c3be-876e-47e2-93e0-98c0310e54d6/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/6de4c3be-876e-47e2-93e0-98c0310e54d6/country"}}}},{"id":"caba4832-474f-4185-83b9-504d77dc14cc","type":"regions","attributes":{"name":"New Brunswick"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/caba4832-474f-4185-83b9-504d77dc14cc/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/caba4832-474f-4185-83b9-504d77dc14cc/country"}}}},{"id":"e7bb7d87-5630-4d2e-8dab-28d05e1b366c","type":"regions","attributes":{"name":"Newfoundland And Labrador"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/e7bb7d87-5630-4d2e-8dab-28d05e1b366c/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/e7bb7d87-5630-4d2e-8dab-28d05e1b366c/country"}}}},{"id":"abffd2a0-4b51-4ca6-8eaa-445598c92e73","type":"regions","attributes":{"name":"New Hampshire"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/abffd2a0-4b51-4ca6-8eaa-445598c92e73/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/abffd2a0-4b51-4ca6-8eaa-445598c92e73/country"}}}},{"id":"346e64c8-18c2-4a12-b1e2-20e090043fca","type":"regions","attributes":{"name":"New Jersey"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/346e64c8-18c2-4a12-b1e2-20e090043fca/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/346e64c8-18c2-4a12-b1e2-20e090043fca/country"}}}},{"id":"b47787e5-8171-43fe-a60b-5f73495d177c","type":"regions","attributes":{"name":"New Mexico"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/b47787e5-8171-43fe-a60b-5f73495d177c/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/b47787e5-8171-43fe-a60b-5f73495d177c/country"}}}},{"id":"ab7e83bc-814b-4cfa-a14c-d2df3de2a545","type":"regions","attributes":{"name":"New York"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/ab7e83bc-814b-4cfa-a14c-d2df3de2a545/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/ab7e83bc-814b-4cfa-a14c-d2df3de2a545/country"}}}},{"id":"a30e52bf-e8c0-4742-89d1-56d1809d8012","type":"regions","attributes":{"name":"North Carolina"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/a30e52bf-e8c0-4742-89d1-56d1809d8012/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/a30e52bf-e8c0-4742-89d1-56d1809d8012/country"}}}},{"id":"f4d9190c-d3a9-49c1-a410-e359dde1c313","type":"regions","attributes":{"name":"North Dakota"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/f4d9190c-d3a9-49c1-a410-e359dde1c313/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/f4d9190c-d3a9-49c1-a410-e359dde1c313/country"}}}},{"id":"bbcae0f7-bc86-411f-bddd-f6c835c95512","type":"regions","attributes":{"name":"Northwest Territories"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/bbcae0f7-bc86-411f-bddd-f6c835c95512/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/bbcae0f7-bc86-411f-bddd-f6c835c95512/country"}}}},{"id":"078a82db-c2f9-404c-afbf-095ccab9f403","type":"regions","attributes":{"name":"Nova Scotia"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/078a82db-c2f9-404c-afbf-095ccab9f403/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/078a82db-c2f9-404c-afbf-095ccab9f403/country"}}}},{"id":"15065563-7127-43ec-af8f-64ab24d039b3","type":"regions","attributes":{"name":"Ohio"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/15065563-7127-43ec-af8f-64ab24d039b3/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/15065563-7127-43ec-af8f-64ab24d039b3/country"}}}},{"id":"c081ae51-578e-424f-b625-363224957c08","type":"regions","attributes":{"name":"Oklahoma"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/c081ae51-578e-424f-b625-363224957c08/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/c081ae51-578e-424f-b625-363224957c08/country"}}}},{"id":"77e4427d-ab97-45e5-b2a0-551bf9e28ba0","type":"regions","attributes":{"name":"Ontario"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/77e4427d-ab97-45e5-b2a0-551bf9e28ba0/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/77e4427d-ab97-45e5-b2a0-551bf9e28ba0/country"}}}},{"id":"487f62e1-1df5-4e13-a297-9f6b3d3bd26b","type":"regions","attributes":{"name":"Oregon"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/487f62e1-1df5-4e13-a297-9f6b3d3bd26b/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/487f62e1-1df5-4e13-a297-9f6b3d3bd26b/country"}}}},{"id":"90a27209-3208-482a-af2e-65208c2ff8f8","type":"regions","attributes":{"name":"Pennsylvania"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/90a27209-3208-482a-af2e-65208c2ff8f8/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/90a27209-3208-482a-af2e-65208c2ff8f8/country"}}}},{"id":"f6e22abb-c49b-494c-90bc-b34048a47956","type":"regions","attributes":{"name":"Prince Edward Island"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/f6e22abb-c49b-494c-90bc-b34048a47956/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/f6e22abb-c49b-494c-90bc-b34048a47956/country"}}}},{"id":"874747e9-b2e8-4ed4-bd02-9e759f19d8e2","type":"regions","attributes":{"name":"Quebec"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/874747e9-b2e8-4ed4-bd02-9e759f19d8e2/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/874747e9-b2e8-4ed4-bd02-9e759f19d8e2/country"}}}},{"id":"0d010096-e5fd-4a12-9b01-2da492b8edf7","type":"regions","attributes":{"name":"Rabat"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/0d010096-e5fd-4a12-9b01-2da492b8edf7/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/0d010096-e5fd-4a12-9b01-2da492b8edf7/country"}}}},{"id":"ee58ac57-72e2-4ec2-a518-3c5fa80ae5aa","type":"regions","attributes":{"name":"Rhode Island"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/ee58ac57-72e2-4ec2-a518-3c5fa80ae5aa/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/ee58ac57-72e2-4ec2-a518-3c5fa80ae5aa/country"}}}},{"id":"1aca7960-a7ff-403c-b484-202e43a7e0d2","type":"regions","attributes":{"name":"Saskatchewan"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/1aca7960-a7ff-403c-b484-202e43a7e0d2/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/1aca7960-a7ff-403c-b484-202e43a7e0d2/country"}}}},{"id":"43bf7c1a-9a89-4cb0-bbfd-8d3bb82dbb20","type":"regions","attributes":{"name":"South Carolina"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/43bf7c1a-9a89-4cb0-bbfd-8d3bb82dbb20/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/43bf7c1a-9a89-4cb0-bbfd-8d3bb82dbb20/country"}}}},{"id":"05d38ee3-1b5d-4a12-a718-091a853d6b62","type":"regions","attributes":{"name":"South Dakota"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/05d38ee3-1b5d-4a12-a718-091a853d6b62/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/05d38ee3-1b5d-4a12-a718-091a853d6b62/country"}}}},{"id":"9a8cb25c-14a4-4eca-8807-880a0a013bdb","type":"regions","attributes":{"name":"Tennessee"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/9a8cb25c-14a4-4eca-8807-880a0a013bdb/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/9a8cb25c-14a4-4eca-8807-880a0a013bdb/country"}}}},{"id":"9ec3f82f-dd09-45cf-af5d-5345339340f6","type":"regions","attributes":{"name":"Texas"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/9ec3f82f-dd09-45cf-af5d-5345339340f6/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/9ec3f82f-dd09-45cf-af5d-5345339340f6/country"}}}},{"id":"f282b69b-cbb4-43db-ae7f-b5ee7f1718fd","type":"regions","attributes":{"name":"Tralialia"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/f282b69b-cbb4-43db-ae7f-b5ee7f1718fd/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/f282b69b-cbb4-43db-ae7f-b5ee7f1718fd/country"}}}},{"id":"cff808c1-f8cf-454d-8c3f-46112fb7ba44","type":"regions","attributes":{"name":"Utah"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/cff808c1-f8cf-454d-8c3f-46112fb7ba44/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/cff808c1-f8cf-454d-8c3f-46112fb7ba44/country"}}}},{"id":"cde3e90c-9432-4844-82ee-45ec5d1df946","type":"regions","attributes":{"name":"Vermont"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/cde3e90c-9432-4844-82ee-45ec5d1df946/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/cde3e90c-9432-4844-82ee-45ec5d1df946/country"}}}},{"id":"351ae60f-1f38-4f86-ac1c-07baff1abe65","type":"regions","attributes":{"name":"Virginia"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/351ae60f-1f38-4f86-ac1c-07baff1abe65/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/351ae60f-1f38-4f86-ac1c-07baff1abe65/country"}}}},{"id":"9ae4ce01-378e-480f-9a40-716713a27523","type":"regions","attributes":{"name":"Washington"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/9ae4ce01-378e-480f-9a40-716713a27523/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/9ae4ce01-378e-480f-9a40-716713a27523/country"}}}},{"id":"2ed45c54-694c-4db1-9e7f-3c4441c49e64","type":"regions","attributes":{"name":"Washington DC"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/2ed45c54-694c-4db1-9e7f-3c4441c49e64/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/2ed45c54-694c-4db1-9e7f-3c4441c49e64/country"}}}},{"id":"bb67b21c-fee8-459a-b395-1306742b8c7f","type":"regions","attributes":{"name":"Wisconsin"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/bb67b21c-fee8-459a-b395-1306742b8c7f/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/bb67b21c-fee8-459a-b395-1306742b8c7f/country"}}}},{"id":"a101ad5b-40d5-4fc8-b30a-4735b6c4664c","type":"regions","attributes":{"name":"Wyoming"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/a101ad5b-40d5-4fc8-b30a-4735b6c4664c/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/a101ad5b-40d5-4fc8-b30a-4735b6c4664c/country"}}}},{"id":"82de821b-15fc-4ac1-a8fd-b0ca38019306","type":"regions","attributes":{"name":"Yukon"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/82de821b-15fc-4ac1-a8fd-b0ca38019306/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/82de821b-15fc-4ac1-a8fd-b0ca38019306/country"}}}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/regions/show.yaml b/tests/fixtures/regions/show.yaml index da338fc..a240585 100644 --- a/tests/fixtures/regions/show.yaml +++ b/tests/fixtures/regions/show.yaml @@ -12,17 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/regions/c11b1f34-16cf-4ba6-8497-f305b53d5b01 response: body: - string: "{\n \"data\": {\n \"id\": \"c11b1f34-16cf-4ba6-8497-f305b53d5b01\"\ - ,\n \"type\": \"regions\",\n \"attributes\": {\n \"name\": \"California\"\ - \n },\n \"relationships\": {\n \"country\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/regions/c11b1f34-16cf-4ba6-8497-f305b53d5b01/relationships/country\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/regions/c11b1f34-16cf-4ba6-8497-f305b53d5b01/country\"\ - \n },\n \"data\": {\n \"type\": \"countries\",\n \ - \ \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\n }\n \ - \ }\n }\n },\n \"included\": [\n {\n \"id\": \"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9\"\ - ,\n \"type\": \"countries\",\n \"attributes\": {\n \"name\"\ - : \"United States\",\n \"prefix\": \"1\",\n \"iso\": \"US\"\n\ - \ }\n }\n ]\n}" + string: '{"data":{"id":"c11b1f34-16cf-4ba6-8497-f305b53d5b01","type":"regions","attributes":{"name":"California"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/regions/c11b1f34-16cf-4ba6-8497-f305b53d5b01/relationships/country","related":"https://sandbox-api.didww.com/v3/regions/c11b1f34-16cf-4ba6-8497-f305b53d5b01/country"},"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}}}},"included":[{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/shared_capacity_groups/create.yaml b/tests/fixtures/shared_capacity_groups/create.yaml index cab2ca2..375b9d0 100644 --- a/tests/fixtures/shared_capacity_groups/create.yaml +++ b/tests/fixtures/shared_capacity_groups/create.yaml @@ -12,17 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/shared_capacity_groups response: body: - string: "{\n \"data\": {\n \"id\": \"3688a9c3-354f-4e16-b458-1d2df9f02547\"\ - ,\n \"type\": \"shared_capacity_groups\",\n \"attributes\": {\n \ - \ \"name\": \"python-sdk\",\n \"shared_channels_count\": 5,\n \"created_at\"\ - : \"2019-01-02T09:41:26.083Z\",\n \"metered_channels_count\": 0\n \ - \ },\n \"relationships\": {\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/3688a9c3-354f-4e16-b458-1d2df9f02547/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/3688a9c3-354f-4e16-b458-1d2df9f02547/capacity_pool\"\ - \n }\n },\n \"dids\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/3688a9c3-354f-4e16-b458-1d2df9f02547/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/3688a9c3-354f-4e16-b458-1d2df9f02547/dids\"\ - \n }\n }\n }\n }\n}" + string: '{"data":{"id":"3688a9c3-354f-4e16-b458-1d2df9f02547","type":"shared_capacity_groups","attributes":{"name":"python-sdk","shared_channels_count":5,"created_at":"2019-01-02T09:41:26.083Z","metered_channels_count":0},"relationships":{"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/3688a9c3-354f-4e16-b458-1d2df9f02547/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/3688a9c3-354f-4e16-b458-1d2df9f02547/capacity_pool"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/3688a9c3-354f-4e16-b458-1d2df9f02547/relationships/dids","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/3688a9c3-354f-4e16-b458-1d2df9f02547/dids"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/shared_capacity_groups/create_error.yaml b/tests/fixtures/shared_capacity_groups/create_error.yaml index 37d3806..73a39e9 100644 --- a/tests/fixtures/shared_capacity_groups/create_error.yaml +++ b/tests/fixtures/shared_capacity_groups/create_error.yaml @@ -12,10 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/shared_capacity_groups response: body: - string: "{\n \"errors\": [\n {\n \"title\": \"can't be blank\",\n \ - \ \"detail\": \"capacity_pool - can't be blank\",\n \"code\": \"\ - 100\",\n \"source\": {\n \"pointer\": \"/data/relationships/capacity_pool\"\ - \n },\n \"status\": \"422\"\n }\n ]\n}" + string: '{"errors":[{"title":"can''t be blank","detail":"capacity_pool - can''t be blank","code":"100","source":{"pointer":"/data/relationships/capacity_pool"},"status":"422"}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/shared_capacity_groups/list.yaml b/tests/fixtures/shared_capacity_groups/list.yaml index e7117f5..53d0b1b 100644 --- a/tests/fixtures/shared_capacity_groups/list.yaml +++ b/tests/fixtures/shared_capacity_groups/list.yaml @@ -12,50 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/shared_capacity_groups response: body: - string: "{\n \"data\": [\n {\n \"id\": \"89f987e2-0862-4bf4-a3f4-cdc89af0d875\"\ - ,\n \"type\": \"shared_capacity_groups\",\n \"attributes\": {\n\ - \ \"name\": \"didww\",\n \"shared_channels_count\": 19,\n \ - \ \"created_at\": \"2018-06-19T11:41:21.644Z\",\n \"metered_channels_count\"\ - : 0\n },\n \"relationships\": {\n \"capacity_pool\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/capacity_pool\"\ - \n }\n },\n \"dids\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/dids\"\ - \n }\n }\n }\n },\n {\n \"id\": \"206881de-7a92-4415-aa32-b05458c79623\"\ - ,\n \"type\": \"shared_capacity_groups\",\n \"attributes\": {\n\ - \ \"name\": \"Pay Per Minute\",\n \"shared_channels_count\"\ - : 0,\n \"created_at\": \"2018-06-19T11:41:21.644Z\",\n \"metered_channels_count\"\ - : 100\n },\n \"relationships\": {\n \"capacity_pool\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/capacity_pool\"\ - \n }\n },\n \"dids\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/dids\"\ - \n }\n }\n }\n },\n {\n \"id\": \"e67b7be7-0698-41eb-9aca-7217903bf0e8\"\ - ,\n \"type\": \"shared_capacity_groups\",\n \"attributes\": {\n\ - \ \"name\": \"test\",\n \"shared_channels_count\": 5,\n \ - \ \"created_at\": \"2018-06-19T12:26:48.938Z\",\n \"metered_channels_count\"\ - : 5\n },\n \"relationships\": {\n \"capacity_pool\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/capacity_pool\"\ - \n }\n },\n \"dids\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/dids\"\ - \n }\n }\n }\n },\n {\n \"id\": \"ea258df5-702f-40a9-91a2-4f713945e472\"\ - ,\n \"type\": \"shared_capacity_groups\",\n \"attributes\": {\n\ - \ \"name\": \"ttt\",\n \"shared_channels_count\": 1,\n \ - \ \"created_at\": \"2018-06-19T11:41:21.644Z\",\n \"metered_channels_count\"\ - : 0\n },\n \"relationships\": {\n \"capacity_pool\": {\n\ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/ea258df5-702f-40a9-91a2-4f713945e472/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/ea258df5-702f-40a9-91a2-4f713945e472/capacity_pool\"\ - \n }\n },\n \"dids\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/ea258df5-702f-40a9-91a2-4f713945e472/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/ea258df5-702f-40a9-91a2-4f713945e472/dids\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 4\n },\n \"links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50\"\ - \n }\n}" + string: '{"data":[{"id":"89f987e2-0862-4bf4-a3f4-cdc89af0d875","type":"shared_capacity_groups","attributes":{"name":"didww","shared_channels_count":19,"created_at":"2018-06-19T11:41:21.644Z","metered_channels_count":0},"relationships":{"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/capacity_pool"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/dids","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/dids"}}}},{"id":"206881de-7a92-4415-aa32-b05458c79623","type":"shared_capacity_groups","attributes":{"name":"Pay Per Minute","shared_channels_count":0,"created_at":"2018-06-19T11:41:21.644Z","metered_channels_count":100},"relationships":{"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/capacity_pool"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/relationships/dids","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/206881de-7a92-4415-aa32-b05458c79623/dids"}}}},{"id":"e67b7be7-0698-41eb-9aca-7217903bf0e8","type":"shared_capacity_groups","attributes":{"name":"test","shared_channels_count":5,"created_at":"2018-06-19T12:26:48.938Z","metered_channels_count":5},"relationships":{"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/capacity_pool"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/relationships/dids","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/e67b7be7-0698-41eb-9aca-7217903bf0e8/dids"}}}},{"id":"ea258df5-702f-40a9-91a2-4f713945e472","type":"shared_capacity_groups","attributes":{"name":"ttt","shared_channels_count":1,"created_at":"2018-06-19T11:41:21.644Z","metered_channels_count":0},"relationships":{"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/ea258df5-702f-40a9-91a2-4f713945e472/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/ea258df5-702f-40a9-91a2-4f713945e472/capacity_pool"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/ea258df5-702f-40a9-91a2-4f713945e472/relationships/dids","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/ea258df5-702f-40a9-91a2-4f713945e472/dids"}}}}],"meta":{"total_records":4},"links":{"first":"https://sandbox-api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50","last":"https://sandbox-api.didww.com/v3/shared_capacity_groups?page%5Bnumber%5D=1&page%5Bsize%5D=50"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/shared_capacity_groups/show.yaml b/tests/fixtures/shared_capacity_groups/show.yaml index 82421b1..2f8b80b 100644 --- a/tests/fixtures/shared_capacity_groups/show.yaml +++ b/tests/fixtures/shared_capacity_groups/show.yaml @@ -12,531 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875 response: body: - string: "{\n \"data\": {\n \"id\": \"89f987e2-0862-4bf4-a3f4-cdc89af0d875\"\ - ,\n \"type\": \"shared_capacity_groups\",\n \"attributes\": {\n \ - \ \"name\": \"didww\",\n \"shared_channels_count\": 19,\n \"created_at\"\ - : \"2018-06-19T11:41:21.644Z\",\n \"metered_channels_count\": 0,\n\ - \ \"external_reference_id\": \"crm-scg-0001\"\n },\n \"relationships\": {\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/capacity_pool\"\ - \n },\n \"data\": {\n \"type\": \"capacity_pools\"\ - ,\n \"id\": \"f288d07c-e2fc-4ae6-9837-b18fb469c324\"\n }\n\ - \ },\n \"dids\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/dids\"\ - \n },\n \"data\": [\n {\n \"type\": \"dids\"\ - ,\n \"id\": \"0e63926a-a9cc-4597-b58b-620c3b05cd7f\"\n \ - \ },\n {\n \"type\": \"dids\",\n \"id\": \"\ - ac6b3d66-3b45-423b-b378-52e236f18399\"\n },\n {\n \ - \ \"type\": \"dids\",\n \"id\": \"619a9f6a-78f8-4f87-9d18-ecbff657f014\"\ - \n },\n {\n \"type\": \"dids\",\n \ - \ \"id\": \"78771845-2f29-46bc-8151-53732926d3ed\"\n },\n \ - \ {\n \"type\": \"dids\",\n \"id\": \"98798cf5-80ee-4736-aff9-4d3ce60ae29a\"\ - \n },\n {\n \"type\": \"dids\",\n \ - \ \"id\": \"7a8a797d-b0e8-4e90-ac32-0a251ca3d612\"\n },\n \ - \ {\n \"type\": \"dids\",\n \"id\": \"a79c8633-60d6-4640-9a72-680d59cb44ee\"\ - \n },\n {\n \"type\": \"dids\",\n \ - \ \"id\": \"9467643f-8fbc-4e25-9818-59f8ccfb915a\"\n },\n \ - \ {\n \"type\": \"dids\",\n \"id\": \"06e783b2-860c-4c6d-911d-989c081e1f46\"\ - \n },\n {\n \"type\": \"dids\",\n \ - \ \"id\": \"a0366c97-a34f-4b09-a615-4e41bdec9abd\"\n },\n \ - \ {\n \"type\": \"dids\",\n \"id\": \"d526e2d6-9015-49f8-b474-74ab2aad33ab\"\ - \n },\n {\n \"type\": \"dids\",\n \ - \ \"id\": \"5e78f52d-2328-4ecd-9f85-bcb28737e47f\"\n },\n \ - \ {\n \"type\": \"dids\",\n \"id\": \"683a7cbb-0859-438e-9540-105f3411c98f\"\ - \n },\n {\n \"type\": \"dids\",\n \ - \ \"id\": \"db9de004-95e2-4f14-8867-bd43183d9c2c\"\n },\n \ - \ {\n \"type\": \"dids\",\n \"id\": \"d962f2b1-a34d-45dc-9964-2a0ad83ffbd2\"\ - \n },\n {\n \"type\": \"dids\",\n \ - \ \"id\": \"be060f8b-00f3-4ee3-983a-abefaba7c6fa\"\n },\n \ - \ {\n \"type\": \"dids\",\n \"id\": \"1f07c315-8921-4c74-ab80-1a23fea87623\"\ - \n },\n {\n \"type\": \"dids\",\n \ - \ \"id\": \"d6235d1e-092b-48a1-a295-e1b13dafcda2\"\n }\n ]\n\ - \ }\n }\n },\n \"included\": [\n {\n \"id\": \"f288d07c-e2fc-4ae6-9837-b18fb469c324\"\ - ,\n \"type\": \"capacity_pools\",\n \"attributes\": {\n \"\ - name\": \"Standard\",\n \"renew_date\": \"2019-01-21\",\n \"\ - total_channels_count\": 25,\n \"assigned_channels_count\": 24,\n \ - \ \"minimum_limit\": 0,\n \"minimum_qty_per_order\": 1,\n \ - \ \"setup_price\": \"0.0\",\n \"monthly_price\": \"15.0\",\n \ - \ \"metered_rate\": \"1.0\"\n },\n \"relationships\": {\n \ - \ \"countries\": {\n \"links\": {\n \"self\": \"\ - https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/countries\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/countries\"\ - \n }\n },\n \"shared_capacity_groups\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/shared_capacity_groups\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/shared_capacity_groups\"\ - \n }\n },\n \"qty_based_pricings\": {\n \"\ - links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/qty_based_pricings\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/qty_based_pricings\"\ - \n }\n }\n }\n },\n {\n \"id\": \"0e63926a-a9cc-4597-b58b-620c3b05cd7f\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T16:44:05.634Z\",\n \"number\"\ - : \"18082068798\",\n \"expires_at\": \"2019-01-27T16:44:06.207Z\",\n\ - \ \"channels_included_count\": 2,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"ac6b3d66-3b45-423b-b378-52e236f18399\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : true,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T16:45:15.997Z\",\n \"number\"\ - : \"18082068794\",\n \"expires_at\": \"2019-01-27T16:45:15.957Z\",\n\ - \ \"channels_included_count\": 2,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"619a9f6a-78f8-4f87-9d18-ecbff657f014\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T16:42:07.700Z\",\n \"number\"\ - : \"542323629641\",\n \"expires_at\": \"2019-01-27T16:43:05.192Z\"\ - ,\n \"channels_included_count\": 0,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"78771845-2f29-46bc-8151-53732926d3ed\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T16:42:07.725Z\",\n \"number\"\ - : \"542323629643\",\n \"expires_at\": \"2019-01-27T16:43:05.159Z\"\ - ,\n \"channels_included_count\": 0,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"98798cf5-80ee-4736-aff9-4d3ce60ae29a\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : true,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T16:45:16.033Z\",\n \"number\"\ - : \"18082068799\",\n \"expires_at\": \"2019-01-27T16:45:15.958Z\",\n\ - \ \"channels_included_count\": 2,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"7a8a797d-b0e8-4e90-ac32-0a251ca3d612\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-28T10:40:48.488Z\",\n \"number\"\ - : \"14057782140\",\n \"expires_at\": \"2019-01-28T10:41:04.529Z\",\n\ - \ \"channels_included_count\": 2,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a79c8633-60d6-4640-9a72-680d59cb44ee\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:59:55.175Z\",\n \"number\"\ - : \"16091609123456799\",\n \"expires_at\": \"2019-01-27T10:00:04.659Z\"\ - ,\n \"channels_included_count\": 2,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"9467643f-8fbc-4e25-9818-59f8ccfb915a\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:59:55.053Z\",\n \"number\"\ - : \"16091609123456798\",\n \"expires_at\": \"2019-01-27T10:00:04.715Z\"\ - ,\n \"channels_included_count\": 0,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"06e783b2-860c-4c6d-911d-989c081e1f46\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:56:40.275Z\",\n \"number\"\ - : \"16091609123456795\",\n \"expires_at\": \"2019-01-27T09:57:02.119Z\"\ - ,\n \"channels_included_count\": 0,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"a0366c97-a34f-4b09-a615-4e41bdec9abd\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:56:40.237Z\",\n \"number\"\ - : \"16091609123456794\",\n \"expires_at\": \"2019-01-27T09:57:02.150Z\"\ - ,\n \"channels_included_count\": 0,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"d526e2d6-9015-49f8-b474-74ab2aad33ab\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:55:12.536Z\",\n \"number\"\ - : \"16091234567\",\n \"expires_at\": \"2019-01-27T09:56:02.662Z\",\n\ - \ \"channels_included_count\": 0,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"5e78f52d-2328-4ecd-9f85-bcb28737e47f\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:55:12.575Z\",\n \"number\"\ - : \"16091609123456789\",\n \"expires_at\": \"2019-01-27T09:56:02.627Z\"\ - ,\n \"channels_included_count\": 0,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"683a7cbb-0859-438e-9540-105f3411c98f\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:55:12.699Z\",\n \"number\"\ - : \"16091609123456790\",\n \"expires_at\": \"2019-01-27T09:56:02.559Z\"\ - ,\n \"channels_included_count\": 2,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"db9de004-95e2-4f14-8867-bd43183d9c2c\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:56:01.638Z\",\n \"number\"\ - : \"16091609123456791\",\n \"expires_at\": \"2019-01-27T09:56:02.821Z\"\ - ,\n \"channels_included_count\": 0,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"d962f2b1-a34d-45dc-9964-2a0ad83ffbd2\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:56:01.679Z\",\n \"number\"\ - : \"16091609123456792\",\n \"expires_at\": \"2019-01-27T09:56:02.792Z\"\ - ,\n \"channels_included_count\": 0,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"be060f8b-00f3-4ee3-983a-abefaba7c6fa\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:56:01.799Z\",\n \"number\"\ - : \"16091609123456793\",\n \"expires_at\": \"2019-01-27T09:56:02.759Z\"\ - ,\n \"channels_included_count\": 2,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"1f07c315-8921-4c74-ab80-1a23fea87623\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : false,\n \"capacity_limit\": 2,\n \"description\": \"something\"\ - ,\n \"terminated\": false,\n \"awaiting_registration\": false,\n\ - \ \"created_at\": \"2018-12-27T09:56:40.396Z\",\n \"number\"\ - : \"16091609123456796\",\n \"expires_at\": \"2019-01-27T09:57:02.026Z\"\ - ,\n \"channels_included_count\": 2,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/shared_capacity_group\"\ - \n }\n }\n }\n },\n {\n \"id\": \"d6235d1e-092b-48a1-a295-e1b13dafcda2\"\ - ,\n \"type\": \"dids\",\n \"attributes\": {\n \"blocked\"\ - : true,\n \"capacity_limit\": 8,\n \"description\": null,\n\ - \ \"terminated\": false,\n \"awaiting_registration\": true,\n\ - \ \"created_at\": \"2017-05-24T08:04:41.572Z\",\n \"number\"\ - : \"380442213578\",\n \"expires_at\": \"2017-06-24T08:04:41.603Z\"\ - ,\n \"channels_included_count\": 0,\n \"billing_cycles_count\": null,\n\ - \ \"dedicated_channels_count\": 0\n },\n \"relationships\"\ - : {\n \"did_group\": {\n \"links\": {\n \"self\"\ - : \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/did_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/did_group\"\ - \n }\n },\n \"order\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/order\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/order\"\ - \n }\n },\n \"trunk\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/trunk\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/trunk\"\ - \n }\n },\n \"trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/trunk_group\"\ - \n }\n },\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/capacity_pool\"\ - \n }\n },\n \"shared_capacity_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/shared_capacity_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/shared_capacity_group\"\ - \n }\n }\n }\n }\n ]\n}" + string: '{"data":{"id":"89f987e2-0862-4bf4-a3f4-cdc89af0d875","type":"shared_capacity_groups","attributes":{"name":"didww","shared_channels_count":19,"created_at":"2018-06-19T11:41:21.644Z","metered_channels_count":0,"external_reference_id":"crm-scg-0001"},"relationships":{"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/capacity_pool"},"data":{"type":"capacity_pools","id":"f288d07c-e2fc-4ae6-9837-b18fb469c324"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/dids","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/dids"},"data":[{"type":"dids","id":"0e63926a-a9cc-4597-b58b-620c3b05cd7f"},{"type":"dids","id":"ac6b3d66-3b45-423b-b378-52e236f18399"},{"type":"dids","id":"619a9f6a-78f8-4f87-9d18-ecbff657f014"},{"type":"dids","id":"78771845-2f29-46bc-8151-53732926d3ed"},{"type":"dids","id":"98798cf5-80ee-4736-aff9-4d3ce60ae29a"},{"type":"dids","id":"7a8a797d-b0e8-4e90-ac32-0a251ca3d612"},{"type":"dids","id":"a79c8633-60d6-4640-9a72-680d59cb44ee"},{"type":"dids","id":"9467643f-8fbc-4e25-9818-59f8ccfb915a"},{"type":"dids","id":"06e783b2-860c-4c6d-911d-989c081e1f46"},{"type":"dids","id":"a0366c97-a34f-4b09-a615-4e41bdec9abd"},{"type":"dids","id":"d526e2d6-9015-49f8-b474-74ab2aad33ab"},{"type":"dids","id":"5e78f52d-2328-4ecd-9f85-bcb28737e47f"},{"type":"dids","id":"683a7cbb-0859-438e-9540-105f3411c98f"},{"type":"dids","id":"db9de004-95e2-4f14-8867-bd43183d9c2c"},{"type":"dids","id":"d962f2b1-a34d-45dc-9964-2a0ad83ffbd2"},{"type":"dids","id":"be060f8b-00f3-4ee3-983a-abefaba7c6fa"},{"type":"dids","id":"1f07c315-8921-4c74-ab80-1a23fea87623"},{"type":"dids","id":"d6235d1e-092b-48a1-a295-e1b13dafcda2"}]}}},"included":[{"id":"f288d07c-e2fc-4ae6-9837-b18fb469c324","type":"capacity_pools","attributes":{"name":"Standard","renew_date":"2019-01-21","total_channels_count":25,"assigned_channels_count":24,"minimum_limit":0,"minimum_qty_per_order":1,"setup_price":"0.0","monthly_price":"15.0","metered_rate":"1.0"},"relationships":{"countries":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/countries","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/countries"}},"shared_capacity_groups":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/shared_capacity_groups","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/shared_capacity_groups"}},"qty_based_pricings":{"links":{"self":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/relationships/qty_based_pricings","related":"https://sandbox-api.didww.com/v3/capacity_pools/f288d07c-e2fc-4ae6-9837-b18fb469c324/qty_based_pricings"}}}},{"id":"0e63926a-a9cc-4597-b58b-620c3b05cd7f","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T16:44:05.634Z","number":"18082068798","expires_at":"2019-01-27T16:44:06.207Z","channels_included_count":2,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/0e63926a-a9cc-4597-b58b-620c3b05cd7f/shared_capacity_group"}}}},{"id":"ac6b3d66-3b45-423b-b378-52e236f18399","type":"dids","attributes":{"blocked":true,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T16:45:15.997Z","number":"18082068794","expires_at":"2019-01-27T16:45:15.957Z","channels_included_count":2,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/ac6b3d66-3b45-423b-b378-52e236f18399/shared_capacity_group"}}}},{"id":"619a9f6a-78f8-4f87-9d18-ecbff657f014","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T16:42:07.700Z","number":"542323629641","expires_at":"2019-01-27T16:43:05.192Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/619a9f6a-78f8-4f87-9d18-ecbff657f014/shared_capacity_group"}}}},{"id":"78771845-2f29-46bc-8151-53732926d3ed","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T16:42:07.725Z","number":"542323629643","expires_at":"2019-01-27T16:43:05.159Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/78771845-2f29-46bc-8151-53732926d3ed/shared_capacity_group"}}}},{"id":"98798cf5-80ee-4736-aff9-4d3ce60ae29a","type":"dids","attributes":{"blocked":true,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T16:45:16.033Z","number":"18082068799","expires_at":"2019-01-27T16:45:15.958Z","channels_included_count":2,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/98798cf5-80ee-4736-aff9-4d3ce60ae29a/shared_capacity_group"}}}},{"id":"7a8a797d-b0e8-4e90-ac32-0a251ca3d612","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-28T10:40:48.488Z","number":"14057782140","expires_at":"2019-01-28T10:41:04.529Z","channels_included_count":2,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/7a8a797d-b0e8-4e90-ac32-0a251ca3d612/shared_capacity_group"}}}},{"id":"a79c8633-60d6-4640-9a72-680d59cb44ee","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:59:55.175Z","number":"16091609123456799","expires_at":"2019-01-27T10:00:04.659Z","channels_included_count":2,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/a79c8633-60d6-4640-9a72-680d59cb44ee/shared_capacity_group"}}}},{"id":"9467643f-8fbc-4e25-9818-59f8ccfb915a","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:59:55.053Z","number":"16091609123456798","expires_at":"2019-01-27T10:00:04.715Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/9467643f-8fbc-4e25-9818-59f8ccfb915a/shared_capacity_group"}}}},{"id":"06e783b2-860c-4c6d-911d-989c081e1f46","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:56:40.275Z","number":"16091609123456795","expires_at":"2019-01-27T09:57:02.119Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/06e783b2-860c-4c6d-911d-989c081e1f46/shared_capacity_group"}}}},{"id":"a0366c97-a34f-4b09-a615-4e41bdec9abd","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:56:40.237Z","number":"16091609123456794","expires_at":"2019-01-27T09:57:02.150Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/a0366c97-a34f-4b09-a615-4e41bdec9abd/shared_capacity_group"}}}},{"id":"d526e2d6-9015-49f8-b474-74ab2aad33ab","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:55:12.536Z","number":"16091234567","expires_at":"2019-01-27T09:56:02.662Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/d526e2d6-9015-49f8-b474-74ab2aad33ab/shared_capacity_group"}}}},{"id":"5e78f52d-2328-4ecd-9f85-bcb28737e47f","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:55:12.575Z","number":"16091609123456789","expires_at":"2019-01-27T09:56:02.627Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/5e78f52d-2328-4ecd-9f85-bcb28737e47f/shared_capacity_group"}}}},{"id":"683a7cbb-0859-438e-9540-105f3411c98f","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:55:12.699Z","number":"16091609123456790","expires_at":"2019-01-27T09:56:02.559Z","channels_included_count":2,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/683a7cbb-0859-438e-9540-105f3411c98f/shared_capacity_group"}}}},{"id":"db9de004-95e2-4f14-8867-bd43183d9c2c","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:56:01.638Z","number":"16091609123456791","expires_at":"2019-01-27T09:56:02.821Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/db9de004-95e2-4f14-8867-bd43183d9c2c/shared_capacity_group"}}}},{"id":"d962f2b1-a34d-45dc-9964-2a0ad83ffbd2","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:56:01.679Z","number":"16091609123456792","expires_at":"2019-01-27T09:56:02.792Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/d962f2b1-a34d-45dc-9964-2a0ad83ffbd2/shared_capacity_group"}}}},{"id":"be060f8b-00f3-4ee3-983a-abefaba7c6fa","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:56:01.799Z","number":"16091609123456793","expires_at":"2019-01-27T09:56:02.759Z","channels_included_count":2,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/be060f8b-00f3-4ee3-983a-abefaba7c6fa/shared_capacity_group"}}}},{"id":"1f07c315-8921-4c74-ab80-1a23fea87623","type":"dids","attributes":{"blocked":false,"capacity_limit":2,"description":"something","terminated":false,"awaiting_registration":false,"created_at":"2018-12-27T09:56:40.396Z","number":"16091609123456796","expires_at":"2019-01-27T09:57:02.026Z","channels_included_count":2,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/1f07c315-8921-4c74-ab80-1a23fea87623/shared_capacity_group"}}}},{"id":"d6235d1e-092b-48a1-a295-e1b13dafcda2","type":"dids","attributes":{"blocked":true,"capacity_limit":8,"description":null,"terminated":false,"awaiting_registration":true,"created_at":"2017-05-24T08:04:41.572Z","number":"380442213578","expires_at":"2017-06-24T08:04:41.603Z","channels_included_count":0,"billing_cycles_count":null,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/order"}},"trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/trunk","related":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/trunk"}},"trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/trunk_group","related":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/trunk_group"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/d6235d1e-092b-48a1-a295-e1b13dafcda2/shared_capacity_group"}}}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/shared_capacity_groups/update.yaml b/tests/fixtures/shared_capacity_groups/update.yaml index 0fc9c96..d3d0cb5 100644 --- a/tests/fixtures/shared_capacity_groups/update.yaml +++ b/tests/fixtures/shared_capacity_groups/update.yaml @@ -12,17 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875 response: body: - string: "{\n \"data\": {\n \"id\": \"89f987e2-0862-4bf4-a3f4-cdc89af0d875\"\ - ,\n \"type\": \"shared_capacity_groups\",\n \"attributes\": {\n \ - \ \"name\": \"didww1\",\n \"shared_channels_count\": 10,\n \"created_at\"\ - : \"2018-06-19T11:41:21.644Z\",\n \"metered_channels_count\": 2\n \ - \ },\n \"relationships\": {\n \"capacity_pool\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/capacity_pool\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/capacity_pool\"\ - \n }\n },\n \"dids\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/dids\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/dids\"\ - \n }\n }\n }\n }\n}" + string: '{"data":{"id":"89f987e2-0862-4bf4-a3f4-cdc89af0d875","type":"shared_capacity_groups","attributes":{"name":"didww1","shared_channels_count":10,"created_at":"2018-06-19T11:41:21.644Z","metered_channels_count":2},"relationships":{"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/capacity_pool"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/relationships/dids","related":"https://sandbox-api.didww.com/v3/shared_capacity_groups/89f987e2-0862-4bf4-a3f4-cdc89af0d875/dids"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/supporting_document_templates/list.yaml b/tests/fixtures/supporting_document_templates/list.yaml index 294c352..f4ccdb9 100644 --- a/tests/fixtures/supporting_document_templates/list.yaml +++ b/tests/fixtures/supporting_document_templates/list.yaml @@ -12,31 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/supporting_document_templates response: body: - string: "{\n \"data\": [\n {\n \"id\": \"206ccec2-1166-461f-9f58-3a56823db548\"\ - ,\n \"type\": \"supporting_document_templates\",\n \"attributes\"\ - : {\n \"name\": \"Generic LOI\",\n \"permanent\": false,\n \ - \ \"url\": \"https://sandbox-api.didww.com/storage/public/w7f2irbo819la7vd7up7u67pkmkn\"\ - \n }\n },\n {\n \"id\": \"fd38c86d-b69b-4ca8-b73c-286a3b93d107\"\ - ,\n \"type\": \"supporting_document_templates\",\n \"attributes\"\ - : {\n \"name\": \"Belgium Registration Form\",\n \"permanent\"\ - : true,\n \"url\": \"https://sandbox-api.didww.com/storage/public/e8lziulj68xetfa5ed6na3g7q7ra\"\ - \n }\n },\n {\n \"id\": \"4199435f-646e-4e9d-a143-8f3b972b10c5\"\ - ,\n \"type\": \"supporting_document_templates\",\n \"attributes\"\ - : {\n \"name\": \"Germany Special Registration Form\",\n \"\ - permanent\": true,\n \"url\": \"https://sandbox-api.didww.com/storage/public/4rghqnqtba0fa7mbdgig086xej1e\"\ - \n }\n },\n {\n \"id\": \"94be4d74-c968-4d81-91c5-2d11b4e45328\"\ - ,\n \"type\": \"supporting_document_templates\",\n \"attributes\"\ - : {\n \"name\": \"LOI Example\",\n \"permanent\": false,\n \ - \ \"url\": \"https://sandbox-api.didww.com/storage/public/xptvgb8derrz0ru95wr9oi68g9tg\"\ - \n }\n },\n {\n \"id\": \"eb810289-8620-44e1-982d-13e6cee70404\"\ - ,\n \"type\": \"supporting_document_templates\",\n \"attributes\"\ - : {\n \"name\": \"TestPermanDoc\",\n \"permanent\": true,\n\ - \ \"url\": \"https://sandbox-api.didww.com/storage/public/owwqi77007ks4qx198b7su3eukg6\"\ - \n }\n }\n ],\n \"meta\": {\n \"total_records\": 30,\n \"\ - api_version\": \"2026-04-16\"\n },\n \"links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/supporting_document_templates?page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - ,\n \"next\": \"https://sandbox-api.didww.com/v3/supporting_document_templates?page%5Bnumber%5D=2&page%5Bsize%5D=5\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/supporting_document_templates?page%5Bnumber%5D=6&page%5Bsize%5D=5\"\ - \n }\n}" + string: '{"data":[{"id":"206ccec2-1166-461f-9f58-3a56823db548","type":"supporting_document_templates","attributes":{"name":"Generic LOI","permanent":false,"url":"https://sandbox-api.didww.com/storage/public/w7f2irbo819la7vd7up7u67pkmkn"}},{"id":"fd38c86d-b69b-4ca8-b73c-286a3b93d107","type":"supporting_document_templates","attributes":{"name":"Belgium Registration Form","permanent":true,"url":"https://sandbox-api.didww.com/storage/public/e8lziulj68xetfa5ed6na3g7q7ra"}},{"id":"4199435f-646e-4e9d-a143-8f3b972b10c5","type":"supporting_document_templates","attributes":{"name":"Germany Special Registration Form","permanent":true,"url":"https://sandbox-api.didww.com/storage/public/4rghqnqtba0fa7mbdgig086xej1e"}},{"id":"94be4d74-c968-4d81-91c5-2d11b4e45328","type":"supporting_document_templates","attributes":{"name":"LOI Example","permanent":false,"url":"https://sandbox-api.didww.com/storage/public/xptvgb8derrz0ru95wr9oi68g9tg"}},{"id":"eb810289-8620-44e1-982d-13e6cee70404","type":"supporting_document_templates","attributes":{"name":"TestPermanDoc","permanent":true,"url":"https://sandbox-api.didww.com/storage/public/owwqi77007ks4qx198b7su3eukg6"}}],"meta":{"total_records":30,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/supporting_document_templates?page%5Bnumber%5D=1&page%5Bsize%5D=5","next":"https://sandbox-api.didww.com/v3/supporting_document_templates?page%5Bnumber%5D=2&page%5Bsize%5D=5","last":"https://sandbox-api.didww.com/v3/supporting_document_templates?page%5Bnumber%5D=6&page%5Bsize%5D=5"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_in_trunk_groups/create.yaml b/tests/fixtures/voice_in_trunk_groups/create.yaml index 77d6f46..95ada4b 100644 --- a/tests/fixtures/voice_in_trunk_groups/create.yaml +++ b/tests/fixtures/voice_in_trunk_groups/create.yaml @@ -1,7 +1,6 @@ interactions: - request: - body: '{"data":{"type":"voice_in_trunk_groups","attributes":{"name":"trunk group - sample with 2 trunks","capacity_limit":1000},"relationships":{"voice_in_trunks":{"data":[{"type":"voice_in_trunks","id":"7c15bca2-7f17-46fb-9486-7e2a17158c7e"},{"type":"voice_in_trunks","id":"b07a4cab-48c6-4b3a-9670-11b90b81bdef"}]}}}}' + body: '{"data":{"type":"voice_in_trunk_groups","attributes":{"name":"trunk group sample with 2 trunks","capacity_limit":1000},"relationships":{"voice_in_trunks":{"data":[{"type":"voice_in_trunks","id":"7c15bca2-7f17-46fb-9486-7e2a17158c7e"},{"type":"voice_in_trunks","id":"b07a4cab-48c6-4b3a-9670-11b90b81bdef"}]}}}}' headers: Accept: - application/vnd.api+json @@ -13,80 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_in_trunk_groups response: body: - string: "{\n \"data\": {\n \"id\": \"b2319703-ce6c-480d-bb53-614e7abcfc96\"\ - ,\n \"type\": \"voice_in_trunk_groups\",\n \"attributes\": {\n \ - \ \"created_at\": \"2018-12-28T11:07:28.007Z\",\n \"name\": \"trunk group\ - \ sample with 2 trunks\",\n \"capacity_limit\": 1000\n },\n \"\ - relationships\": {\n \"voice_in_trunks\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/b2319703-ce6c-480d-bb53-614e7abcfc96/relationships/voice_in_trunks\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/b2319703-ce6c-480d-bb53-614e7abcfc96/voice_in_trunks\"\ - \n },\n \"data\": [\n {\n \"type\": \"voice_in_trunks\"\ - ,\n \"id\": \"7c15bca2-7f17-46fb-9486-7e2a17158c7e\"\n \ - \ },\n {\n \"type\": \"voice_in_trunks\",\n \ - \ \"id\": \"b07a4cab-48c6-4b3a-9670-11b90b81bdef\"\n }\n \ - \ ]\n }\n },\n \"meta\": {\n \"trunks_count\": 2\n }\n\ - \ },\n \"included\": [\n {\n \"id\": \"7c15bca2-7f17-46fb-9486-7e2a17158c7e\"\ - ,\n \"type\": \"voice_in_trunks\",\n \"attributes\": {\n \ - \ \"priority\": 10,\n \"capacity_limit\": null,\n \"weight\"\ - : 65535,\n \"name\": \"test custom11\",\n \"cli_format\": \"\ - e164\",\n \"cli_prefix\": \"+\",\n \"description\": \"\",\n\ - \ \"ringing_timeout\": null,\n \"configuration\": {\n \ - \ \"type\": \"sip_configurations\",\n \"attributes\": {\n \ - \ \"username\": \"{CALL_DID}\",\n \"host\": \"203.0.113.1\"\ - ,\n \"port\": null,\n \"codec_ids\": [\n \ - \ 9,\n 8,\n 6\n ],\n \"\ - rx_dtmf_format_id\": 1,\n \"tx_dtmf_format_id\": 1,\n \ - \ \"resolve_ruri\": false,\n \"auth_enabled\": false,\n \ - \ \"auth_user\": null,\n \"auth_password\": null,\n \ - \ \"auth_from_user\": null,\n \"auth_from_domain\": null,\n\ - \ \"sst_enabled\": false,\n \"sst_min_timer\": 600,\n\ - \ \"sst_max_timer\": 900,\n \"sst_accept_501\": true,\n\ - \ \"sip_timer_b\": 8000,\n \"dns_srv_failover_timer\"\ - : 2000,\n \"rtp_ping\": false,\n \"rtp_timeout\": 30,\n\ - \ \"force_symmetric_rtp\": false,\n \"symmetric_rtp_ignore_rtcp\"\ - : false,\n \"rerouting_disconnect_code_ids\": null,\n \ - \ \"sst_session_expires\": null,\n \"sst_refresh_method_id\"\ - : 1,\n \"transport_protocol_id\": 1,\n \"max_transfers\"\ - : 0,\n \"max_30x_redirects\": 0,\n \"media_encryption_mode\"\ - : \"disabled\",\n \"stir_shaken_mode\": \"disabled\",\n \ - \ \"allowed_rtp_ips\": null\n }\n },\n \"created_at\": \"2015-05-03T13:38:21.000Z\"\n },\n\ - \ \"relationships\": {\n \"voice_in_trunk_group\": {\n \ - \ \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/7c15bca2-7f17-46fb-9486-7e2a17158c7e/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/7c15bca2-7f17-46fb-9486-7e2a17158c7e/voice_in_trunk_group\"\ - \n }\n },\n \"pop\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/7c15bca2-7f17-46fb-9486-7e2a17158c7e/relationships/pop\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/7c15bca2-7f17-46fb-9486-7e2a17158c7e/pop\"\ - \n }\n }\n }\n },\n {\n \"id\": \"b07a4cab-48c6-4b3a-9670-11b90b81bdef\"\ - ,\n \"type\": \"voice_in_trunks\",\n \"attributes\": {\n \ - \ \"priority\": 1,\n \"capacity_limit\": null,\n \"weight\"\ - : 65535,\n \"name\": \"URI 420225850033\",\n \"cli_format\"\ - : \"e164\",\n \"cli_prefix\": null,\n \"description\": null,\n\ - \ \"ringing_timeout\": null,\n \"configuration\": {\n \ - \ \"type\": \"sip_configurations\",\n \"attributes\": {\n \ - \ \"username\": \"{DID}\",\n \"host\": \"didww.com\",\n\ - \ \"port\": null,\n \"codec_ids\": [\n \ - \ 9,\n 10,\n 8,\n 7,\n \ - \ 6\n ],\n \"rx_dtmf_format_id\": 1,\n \"\ - tx_dtmf_format_id\": 1,\n \"resolve_ruri\": false,\n \ - \ \"auth_enabled\": false,\n \"auth_user\": null,\n \ - \ \"auth_password\": null,\n \"auth_from_user\": null,\n \ - \ \"auth_from_domain\": null,\n \"sst_enabled\": false,\n\ - \ \"sst_min_timer\": 600,\n \"sst_max_timer\": 900,\n\ - \ \"sst_accept_501\": true,\n \"sip_timer_b\": 8000,\n\ - \ \"dns_srv_failover_timer\": 2000,\n \"rtp_ping\":\ - \ false,\n \"rtp_timeout\": 30,\n \"force_symmetric_rtp\"\ - : false,\n \"symmetric_rtp_ignore_rtcp\": false,\n \"\ - rerouting_disconnect_code_ids\": null,\n \"sst_session_expires\"\ - : null,\n \"sst_refresh_method_id\": 1,\n \"transport_protocol_id\"\ - : 1,\n \"max_transfers\": 0,\n \"max_30x_redirects\"\ - : 0\n }\n },\n \"created_at\": \"2016-12-12T14:05:51.304Z\"\ - \n },\n \"relationships\": {\n \"voice_in_trunk_group\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/b07a4cab-48c6-4b3a-9670-11b90b81bdef/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/b07a4cab-48c6-4b3a-9670-11b90b81bdef/voice_in_trunk_group\"\ - \n }\n },\n \"pop\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/b07a4cab-48c6-4b3a-9670-11b90b81bdef/relationships/pop\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/b07a4cab-48c6-4b3a-9670-11b90b81bdef/pop\"\ - \n }\n }\n }\n }\n ]\n}" + string: '{"data":{"id":"b2319703-ce6c-480d-bb53-614e7abcfc96","type":"voice_in_trunk_groups","attributes":{"created_at":"2018-12-28T11:07:28.007Z","name":"trunk group sample with 2 trunks","capacity_limit":1000},"relationships":{"voice_in_trunks":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/b2319703-ce6c-480d-bb53-614e7abcfc96/relationships/voice_in_trunks","related":"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/b2319703-ce6c-480d-bb53-614e7abcfc96/voice_in_trunks"},"data":[{"type":"voice_in_trunks","id":"7c15bca2-7f17-46fb-9486-7e2a17158c7e"},{"type":"voice_in_trunks","id":"b07a4cab-48c6-4b3a-9670-11b90b81bdef"}]}},"meta":{"trunks_count":2}},"included":[{"id":"7c15bca2-7f17-46fb-9486-7e2a17158c7e","type":"voice_in_trunks","attributes":{"priority":10,"capacity_limit":null,"weight":65535,"name":"test custom11","cli_format":"e164","cli_prefix":"+","description":"","ringing_timeout":null,"configuration":{"type":"sip_configurations","attributes":{"username":"{CALL_DID}","host":"203.0.113.1","port":null,"codec_ids":[9,8,6],"rx_dtmf_format_id":1,"tx_dtmf_format_id":1,"resolve_ruri":false,"auth_enabled":false,"auth_user":null,"auth_password":null,"auth_from_user":null,"auth_from_domain":null,"sst_enabled":false,"sst_min_timer":600,"sst_max_timer":900,"sst_accept_501":true,"sip_timer_b":8000,"dns_srv_failover_timer":2000,"rtp_ping":false,"rtp_timeout":30,"force_symmetric_rtp":false,"symmetric_rtp_ignore_rtcp":false,"rerouting_disconnect_code_ids":null,"sst_session_expires":null,"sst_refresh_method_id":1,"transport_protocol_id":1,"max_transfers":0,"max_30x_redirects":0,"media_encryption_mode":"disabled","stir_shaken_mode":"disabled","allowed_rtp_ips":null}},"created_at":"2015-05-03T13:38:21.000Z"},"relationships":{"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/7c15bca2-7f17-46fb-9486-7e2a17158c7e/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/7c15bca2-7f17-46fb-9486-7e2a17158c7e/voice_in_trunk_group"}},"pop":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/7c15bca2-7f17-46fb-9486-7e2a17158c7e/relationships/pop","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/7c15bca2-7f17-46fb-9486-7e2a17158c7e/pop"}}}},{"id":"b07a4cab-48c6-4b3a-9670-11b90b81bdef","type":"voice_in_trunks","attributes":{"priority":1,"capacity_limit":null,"weight":65535,"name":"URI 420225850033","cli_format":"e164","cli_prefix":null,"description":null,"ringing_timeout":null,"configuration":{"type":"sip_configurations","attributes":{"username":"{DID}","host":"didww.com","port":null,"codec_ids":[9,10,8,7,6],"rx_dtmf_format_id":1,"tx_dtmf_format_id":1,"resolve_ruri":false,"auth_enabled":false,"auth_user":null,"auth_password":null,"auth_from_user":null,"auth_from_domain":null,"sst_enabled":false,"sst_min_timer":600,"sst_max_timer":900,"sst_accept_501":true,"sip_timer_b":8000,"dns_srv_failover_timer":2000,"rtp_ping":false,"rtp_timeout":30,"force_symmetric_rtp":false,"symmetric_rtp_ignore_rtcp":false,"rerouting_disconnect_code_ids":null,"sst_session_expires":null,"sst_refresh_method_id":1,"transport_protocol_id":1,"max_transfers":0,"max_30x_redirects":0}},"created_at":"2016-12-12T14:05:51.304Z"},"relationships":{"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/b07a4cab-48c6-4b3a-9670-11b90b81bdef/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/b07a4cab-48c6-4b3a-9670-11b90b81bdef/voice_in_trunk_group"}},"pop":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/b07a4cab-48c6-4b3a-9670-11b90b81bdef/relationships/pop","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/b07a4cab-48c6-4b3a-9670-11b90b81bdef/pop"}}}}]}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_in_trunk_groups/list.yaml b/tests/fixtures/voice_in_trunk_groups/list.yaml index a280e13..2e4ab9f 100644 --- a/tests/fixtures/voice_in_trunk_groups/list.yaml +++ b/tests/fixtures/voice_in_trunk_groups/list.yaml @@ -12,94 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_in_trunk_groups response: body: - string: "{\n \"data\": [\n {\n \"id\": \"837c5764-a6c3-456f-aa37-71fc8f8ca07b\"\ - ,\n \"type\": \"voice_in_trunk_groups\",\n \"attributes\": {\n \ - \ \"created_at\": \"2017-11-14T15:07:25.571Z\",\n \"name\": \"\ - sample trunk group\",\n \"capacity_limit\": null\n },\n \"\ - relationships\": {\n \"voice_in_trunks\": {\n \"links\": {\n\ - \ \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/837c5764-a6c3-456f-aa37-71fc8f8ca07b/relationships/voice_in_trunks\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/837c5764-a6c3-456f-aa37-71fc8f8ca07b/voice_in_trunks\"\ - \n },\n \"data\": [\n {\n \"type\"\ - : \"voice_in_trunks\",\n \"id\": \"f691f93a-fa24-4260-b3eb-9f89a5442cf1\"\ - \n },\n {\n \"type\": \"voice_in_trunks\"\ - ,\n \"id\": \"1f5840fa-92a8-474b-a2de-cab0a0642ebb\"\n \ - \ }\n ]\n }\n },\n \"meta\": {\n \"\ - trunks_count\": 2\n }\n }\n ],\n \"included\": [\n {\n \"\ - id\": \"f691f93a-fa24-4260-b3eb-9f89a5442cf1\",\n \"type\": \"voice_in_trunks\"\ - ,\n \"attributes\": {\n \"priority\": 1,\n \"capacity_limit\"\ - : null,\n \"weight\": 65535,\n \"name\": \"URI 33141081249\"\ - ,\n \"cli_format\": \"e164\",\n \"cli_prefix\": null,\n \ - \ \"description\": null,\n \"ringing_timeout\": null,\n \"\ - configuration\": {\n \"type\": \"sip_configurations\",\n \ - \ \"attributes\": {\n \"username\": \"{DID}\",\n \"\ - host\": \"didww.com\",\n \"port\": null,\n \"codec_ids\"\ - : [\n 9,\n 10,\n 8,\n \ - \ 7,\n 6\n ],\n \"rx_dtmf_format_id\":\ - \ 1,\n \"tx_dtmf_format_id\": 1,\n \"resolve_ruri\"\ - : false,\n \"auth_enabled\": false,\n \"auth_user\"\ - : null,\n \"auth_password\": null,\n \"auth_from_user\"\ - : null,\n \"auth_from_domain\": null,\n \"sst_enabled\"\ - : false,\n \"sst_min_timer\": 600,\n \"sst_max_timer\"\ - : 900,\n \"sst_accept_501\": true,\n \"sip_timer_b\"\ - : 8000,\n \"dns_srv_failover_timer\": 2000,\n \"rtp_ping\"\ - : false,\n \"rtp_timeout\": 30,\n \"force_symmetric_rtp\"\ - : false,\n \"symmetric_rtp_ignore_rtcp\": false,\n \"\ - rerouting_disconnect_code_ids\": null,\n \"sst_session_expires\"\ - : null,\n \"sst_refresh_method_id\": 1,\n \"transport_protocol_id\"\ - : 1,\n \"max_transfers\": 0,\n \"max_30x_redirects\"\ - : 0\n }\n },\n \"created_at\": \"2016-12-12T14:56:19.560Z\"\ - \n },\n \"relationships\": {\n \"voice_in_trunk_group\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/f691f93a-fa24-4260-b3eb-9f89a5442cf1/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/f691f93a-fa24-4260-b3eb-9f89a5442cf1/voice_in_trunk_group\"\ - \n }\n },\n \"pop\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/f691f93a-fa24-4260-b3eb-9f89a5442cf1/relationships/pop\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/f691f93a-fa24-4260-b3eb-9f89a5442cf1/pop\"\ - \n }\n }\n }\n },\n {\n \"id\": \"1f5840fa-92a8-474b-a2de-cab0a0642ebb\"\ - ,\n \"type\": \"voice_in_trunks\",\n \"attributes\": {\n \ - \ \"priority\": 1,\n \"capacity_limit\": null,\n \"weight\"\ - : 65535,\n \"name\": \"Trunk sip Example\",\n \"cli_format\"\ - : \"e164\",\n \"cli_prefix\": \"\",\n \"description\": \"\"\ - ,\n \"ringing_timeout\": null,\n \"configuration\": {\n \ - \ \"type\": \"sip_configurations\",\n \"attributes\": {\n \ - \ \"username\": \"{DID}\",\n \"host\": \"didww.com\",\n\ - \ \"port\": null,\n \"codec_ids\": [\n \ - \ 9,\n 10,\n 8,\n 7,\n \ - \ 6\n ],\n \"rx_dtmf_format_id\": 1,\n \"\ - tx_dtmf_format_id\": 1,\n \"resolve_ruri\": false,\n \ - \ \"auth_enabled\": false,\n \"auth_user\": \"\",\n \ - \ \"auth_password\": \"\",\n \"auth_from_user\": \"\",\n \ - \ \"auth_from_domain\": \"\",\n \"sst_enabled\": false,\n\ - \ \"sst_min_timer\": 600,\n \"sst_max_timer\": 900,\n\ - \ \"sst_accept_501\": true,\n \"sip_timer_b\": 8000,\n\ - \ \"dns_srv_failover_timer\": 2000,\n \"rtp_ping\":\ - \ false,\n \"rtp_timeout\": 30,\n \"force_symmetric_rtp\"\ - : false,\n \"symmetric_rtp_ignore_rtcp\": false,\n \"\ - rerouting_disconnect_code_ids\": [\n 56,\n 58,\n\ - \ 59,\n 60,\n 64,\n 65,\n\ - \ 66,\n 67,\n 68,\n 69,\n\ - \ 70,\n 71,\n 72,\n 73,\n\ - \ 74,\n 75,\n 76,\n 77,\n\ - \ 78,\n 79,\n 80,\n 81,\n\ - \ 82,\n 83,\n 84,\n 86,\n\ - \ 87,\n 88,\n 89,\n 90,\n\ - \ 91,\n 92,\n 96,\n 97,\n\ - \ 98,\n 99,\n 100,\n 101,\n\ - \ 102,\n 103,\n 104,\n \ - \ 105,\n 106,\n 107,\n 108,\n \ - \ 1505\n ],\n \"sst_session_expires\": null,\n\ - \ \"sst_refresh_method_id\": 1,\n \"transport_protocol_id\"\ - : 1,\n \"max_transfers\": 0,\n \"max_30x_redirects\"\ - : 0\n }\n },\n \"created_at\": \"2016-12-12T14:58:42.098Z\"\ - \n },\n \"relationships\": {\n \"voice_in_trunk_group\":\ - \ {\n \"links\": {\n \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/1f5840fa-92a8-474b-a2de-cab0a0642ebb/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/1f5840fa-92a8-474b-a2de-cab0a0642ebb/voice_in_trunk_group\"\ - \n }\n },\n \"pop\": {\n \"links\": {\n \ - \ \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/1f5840fa-92a8-474b-a2de-cab0a0642ebb/relationships/pop\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/1f5840fa-92a8-474b-a2de-cab0a0642ebb/pop\"\ - \n }\n }\n }\n }\n ],\n \"meta\": {\n \"total_records\"\ - : 1\n },\n \"links\": {\n \"first\": \"https://sandbox-api.didww.com/v3/voice_in_trunk_groups?include=trunks&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - ,\n \"last\": \"https://sandbox-api.didww.com/v3/voice_in_trunk_groups?include=trunks&page%5Bnumber%5D=1&page%5Bsize%5D=5\"\ - \n }\n}" + string: '{"data":[{"id":"837c5764-a6c3-456f-aa37-71fc8f8ca07b","type":"voice_in_trunk_groups","attributes":{"created_at":"2017-11-14T15:07:25.571Z","name":"sample trunk group","capacity_limit":null},"relationships":{"voice_in_trunks":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/837c5764-a6c3-456f-aa37-71fc8f8ca07b/relationships/voice_in_trunks","related":"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/837c5764-a6c3-456f-aa37-71fc8f8ca07b/voice_in_trunks"},"data":[{"type":"voice_in_trunks","id":"f691f93a-fa24-4260-b3eb-9f89a5442cf1"},{"type":"voice_in_trunks","id":"1f5840fa-92a8-474b-a2de-cab0a0642ebb"}]}},"meta":{"trunks_count":2}}],"included":[{"id":"f691f93a-fa24-4260-b3eb-9f89a5442cf1","type":"voice_in_trunks","attributes":{"priority":1,"capacity_limit":null,"weight":65535,"name":"URI 33141081249","cli_format":"e164","cli_prefix":null,"description":null,"ringing_timeout":null,"configuration":{"type":"sip_configurations","attributes":{"username":"{DID}","host":"didww.com","port":null,"codec_ids":[9,10,8,7,6],"rx_dtmf_format_id":1,"tx_dtmf_format_id":1,"resolve_ruri":false,"auth_enabled":false,"auth_user":null,"auth_password":null,"auth_from_user":null,"auth_from_domain":null,"sst_enabled":false,"sst_min_timer":600,"sst_max_timer":900,"sst_accept_501":true,"sip_timer_b":8000,"dns_srv_failover_timer":2000,"rtp_ping":false,"rtp_timeout":30,"force_symmetric_rtp":false,"symmetric_rtp_ignore_rtcp":false,"rerouting_disconnect_code_ids":null,"sst_session_expires":null,"sst_refresh_method_id":1,"transport_protocol_id":1,"max_transfers":0,"max_30x_redirects":0}},"created_at":"2016-12-12T14:56:19.560Z"},"relationships":{"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/f691f93a-fa24-4260-b3eb-9f89a5442cf1/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/f691f93a-fa24-4260-b3eb-9f89a5442cf1/voice_in_trunk_group"}},"pop":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/f691f93a-fa24-4260-b3eb-9f89a5442cf1/relationships/pop","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/f691f93a-fa24-4260-b3eb-9f89a5442cf1/pop"}}}},{"id":"1f5840fa-92a8-474b-a2de-cab0a0642ebb","type":"voice_in_trunks","attributes":{"priority":1,"capacity_limit":null,"weight":65535,"name":"Trunk sip Example","cli_format":"e164","cli_prefix":"","description":"","ringing_timeout":null,"configuration":{"type":"sip_configurations","attributes":{"username":"{DID}","host":"didww.com","port":null,"codec_ids":[9,10,8,7,6],"rx_dtmf_format_id":1,"tx_dtmf_format_id":1,"resolve_ruri":false,"auth_enabled":false,"auth_user":"","auth_password":"","auth_from_user":"","auth_from_domain":"","sst_enabled":false,"sst_min_timer":600,"sst_max_timer":900,"sst_accept_501":true,"sip_timer_b":8000,"dns_srv_failover_timer":2000,"rtp_ping":false,"rtp_timeout":30,"force_symmetric_rtp":false,"symmetric_rtp_ignore_rtcp":false,"rerouting_disconnect_code_ids":[56,58,59,60,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,92,96,97,98,99,100,101,102,103,104,105,106,107,108,1505],"sst_session_expires":null,"sst_refresh_method_id":1,"transport_protocol_id":1,"max_transfers":0,"max_30x_redirects":0}},"created_at":"2016-12-12T14:58:42.098Z"},"relationships":{"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/1f5840fa-92a8-474b-a2de-cab0a0642ebb/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/1f5840fa-92a8-474b-a2de-cab0a0642ebb/voice_in_trunk_group"}},"pop":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/1f5840fa-92a8-474b-a2de-cab0a0642ebb/relationships/pop","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/1f5840fa-92a8-474b-a2de-cab0a0642ebb/pop"}}}}],"meta":{"total_records":1},"links":{"first":"https://sandbox-api.didww.com/v3/voice_in_trunk_groups?include=trunks&page%5Bnumber%5D=1&page%5Bsize%5D=5","last":"https://sandbox-api.didww.com/v3/voice_in_trunk_groups?include=trunks&page%5Bnumber%5D=1&page%5Bsize%5D=5"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_in_trunk_groups/update.yaml b/tests/fixtures/voice_in_trunk_groups/update.yaml index 8ce087b..130be19 100644 --- a/tests/fixtures/voice_in_trunk_groups/update.yaml +++ b/tests/fixtures/voice_in_trunk_groups/update.yaml @@ -12,15 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_in_trunk_groups/b2319703-ce6c-480d-bb53-614e7abcfc96 response: body: - string: "{\n \"data\": {\n \"id\": \"b2319703-ce6c-480d-bb53-614e7abcfc96\"\ - ,\n \"type\": \"voice_in_trunk_groups\",\n \"attributes\": {\n \ - \ \"created_at\": \"2018-12-28T11:07:28.007Z\",\n \"name\": \"trunk group\ - \ sample updated with 2 trunks\",\n \"capacity_limit\": 500\n },\n\ - \ \"relationships\": {\n \"voice_in_trunks\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/b2319703-ce6c-480d-bb53-614e7abcfc96/relationships/voice_in_trunks\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/b2319703-ce6c-480d-bb53-614e7abcfc96/voice_in_trunks\"\ - \n }\n }\n },\n \"meta\": {\n \"trunks_count\": 2\n\ - \ }\n }\n}" + string: '{"data":{"id":"b2319703-ce6c-480d-bb53-614e7abcfc96","type":"voice_in_trunk_groups","attributes":{"created_at":"2018-12-28T11:07:28.007Z","name":"trunk group sample updated with 2 trunks","capacity_limit":500},"relationships":{"voice_in_trunks":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/b2319703-ce6c-480d-bb53-614e7abcfc96/relationships/voice_in_trunks","related":"https://sandbox-api.didww.com/v3/voice_in_trunk_groups/b2319703-ce6c-480d-bb53-614e7abcfc96/voice_in_trunks"}}},"meta":{"trunks_count":2}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_in_trunks/create.yaml b/tests/fixtures/voice_in_trunks/create.yaml index 8f4fd53..0b4c33f 100644 --- a/tests/fixtures/voice_in_trunks/create.yaml +++ b/tests/fixtures/voice_in_trunks/create.yaml @@ -1,7 +1,6 @@ interactions: - request: - body: '{"data":{"type":"voice_in_trunks","attributes":{"configuration":{"type":"pstn_configurations","attributes":{"dst":"558540420024"}},"name":"hello, - test pstn trunk"}}}' + body: '{"data":{"type":"voice_in_trunks","attributes":{"configuration":{"type":"pstn_configurations","attributes":{"dst":"558540420024"}},"name":"hello, test pstn trunk"}}}' headers: Accept: - application/vnd.api+json @@ -13,21 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_in_trunks response: body: - string: "{\n \"data\": {\n \"id\": \"41b94706-325e-4704-a433-d65105758836\"\ - ,\n \"type\": \"voice_in_trunks\",\n \"attributes\": {\n \"priority\"\ - : 1,\n \"capacity_limit\": null,\n \"weight\": 65535,\n \"\ - name\": \"hello, test pstn trunk\",\n \"cli_format\": \"e164\",\n \ - \ \"cli_prefix\": null,\n \"description\": null,\n \"ringing_timeout\"\ - : null,\n \"configuration\": {\n \"type\": \"pstn_configurations\"\ - ,\n \"attributes\": {\n \"dst\": \"558540420024\"\n \ - \ }\n },\n \"created_at\": \"2018-12-29T09:51:54.661Z\"\n },\n\ - \ \"relationships\": {\n \"voice_in_trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/voice_in_trunk_group\"\ - \n }\n },\n \"pop\": {\n \"links\": {\n \"\ - self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/relationships/pop\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/pop\"\ - \n }\n }\n }\n }\n}" + string: '{"data":{"id":"41b94706-325e-4704-a433-d65105758836","type":"voice_in_trunks","attributes":{"priority":1,"capacity_limit":null,"weight":65535,"name":"hello, test pstn trunk","cli_format":"e164","cli_prefix":null,"description":null,"ringing_timeout":null,"configuration":{"type":"pstn_configurations","attributes":{"dst":"558540420024"}},"created_at":"2018-12-29T09:51:54.661Z"},"relationships":{"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/voice_in_trunk_group"}},"pop":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/relationships/pop","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/pop"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_in_trunks/create_sip_with_rerouting.yaml b/tests/fixtures/voice_in_trunks/create_sip_with_rerouting.yaml index 2a11ac2..bb54994 100644 --- a/tests/fixtures/voice_in_trunks/create_sip_with_rerouting.yaml +++ b/tests/fixtures/voice_in_trunks/create_sip_with_rerouting.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_in_trunks response: body: - string: '{"data":{"id":"a80006b6-4183-4865-8b99-7ebbd359a762","type":"voice_in_trunks","attributes":{"priority":1,"capacity_limit":null,"weight":65535,"name":"hello, test sip trunk","cli_format":"e164","cli_prefix":null,"description":null,"ringing_timeout":null,"configuration":{"type":"sip_configurations","attributes":{"username":"username","enabled_sip_registration":false,"use_did_in_ruri":false,"host":"203.0.113.110","port":5060,"codec_ids":[9,10,8,7,6],"rx_dtmf_format_id":1,"tx_dtmf_format_id":1,"resolve_ruri":false,"auth_enabled":false,"auth_user":null,"auth_password":null,"auth_from_user":null,"auth_from_domain":null,"sst_enabled":false,"sst_min_timer":600,"sst_max_timer":900,"sst_accept_501":true,"sip_timer_b":8000,"dns_srv_failover_timer":2000,"rtp_ping":false,"rtp_timeout":30,"force_symmetric_rtp":false,"symmetric_rtp_ignore_rtcp":false,"rerouting_disconnect_code_ids":[56,58,59,60,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,92,96,97,98,99,101,102,103,104,105,106,107,108,1505],"sst_session_expires":null,"sst_refresh_method_id":1,"transport_protocol_id":1,"max_transfers":0,"max_30x_redirects":0,"media_encryption_mode":"zrtp","stir_shaken_mode":"pai","allowed_rtp_ips":["203.0.113.1"],"network_protocol_priority":"force_ipv4","enabled_sip_registration":false,"use_did_in_ruri":false,"diversion_relay_policy":"as_is","diversion_inject_mode":"did_number","cnam_lookup":true,"incoming_auth_username":null,"incoming_auth_password":null}},"created_at":"2018-12-28T17:37:48.010Z"},"relationships":{"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/a80006b6-4183-4865-8b99-7ebbd359a762/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/a80006b6-4183-4865-8b99-7ebbd359a762/voice_in_trunk_group"}},"pop":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/a80006b6-4183-4865-8b99-7ebbd359a762/relationships/pop","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/a80006b6-4183-4865-8b99-7ebbd359a762/pop"}}}}}' + string: '{"data":{"id":"a80006b6-4183-4865-8b99-7ebbd359a762","type":"voice_in_trunks","attributes":{"priority":1,"capacity_limit":null,"weight":65535,"name":"hello, test sip trunk","cli_format":"e164","cli_prefix":null,"description":null,"ringing_timeout":null,"configuration":{"type":"sip_configurations","attributes":{"username":"username","enabled_sip_registration":false,"use_did_in_ruri":false,"host":"203.0.113.110","port":5060,"codec_ids":[9,10,8,7,6],"rx_dtmf_format_id":1,"tx_dtmf_format_id":1,"resolve_ruri":false,"auth_enabled":false,"auth_user":null,"auth_password":null,"auth_from_user":null,"auth_from_domain":null,"sst_enabled":false,"sst_min_timer":600,"sst_max_timer":900,"sst_accept_501":true,"sip_timer_b":8000,"dns_srv_failover_timer":2000,"rtp_ping":false,"rtp_timeout":30,"force_symmetric_rtp":false,"symmetric_rtp_ignore_rtcp":false,"rerouting_disconnect_code_ids":[56,58,59,60,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,86,87,88,89,90,91,92,96,97,98,99,101,102,103,104,105,106,107,108,1505],"sst_session_expires":null,"sst_refresh_method_id":1,"transport_protocol_id":1,"max_transfers":0,"max_30x_redirects":0,"media_encryption_mode":"zrtp","stir_shaken_mode":"pai","allowed_rtp_ips":["203.0.113.1"],"network_protocol_priority":"force_ipv4","diversion_relay_policy":"as_is","diversion_inject_mode":"did_number","cnam_lookup":true,"incoming_auth_username":null,"incoming_auth_password":null}},"created_at":"2018-12-28T17:37:48.010Z"},"relationships":{"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/a80006b6-4183-4865-8b99-7ebbd359a762/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/a80006b6-4183-4865-8b99-7ebbd359a762/voice_in_trunk_group"}},"pop":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/a80006b6-4183-4865-8b99-7ebbd359a762/relationships/pop","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/a80006b6-4183-4865-8b99-7ebbd359a762/pop"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_in_trunks/update_pstn.yaml b/tests/fixtures/voice_in_trunks/update_pstn.yaml index b1a713b..15296cb 100644 --- a/tests/fixtures/voice_in_trunks/update_pstn.yaml +++ b/tests/fixtures/voice_in_trunks/update_pstn.yaml @@ -12,21 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836 response: body: - string: "{\n \"data\": {\n \"id\": \"41b94706-325e-4704-a433-d65105758836\"\ - ,\n \"type\": \"voice_in_trunks\",\n \"attributes\": {\n \"priority\"\ - : 1,\n \"capacity_limit\": null,\n \"weight\": 65535,\n \"\ - name\": \"hello, updated test pstn trunk\",\n \"cli_format\": \"e164\"\ - ,\n \"cli_prefix\": null,\n \"description\": null,\n \"ringing_timeout\"\ - : null,\n \"configuration\": {\n \"type\": \"pstn_configurations\"\ - ,\n \"attributes\": {\n \"dst\": \"558540420025\"\n \ - \ }\n },\n \"created_at\": \"2018-12-29T09:51:54.661Z\"\n },\n\ - \ \"relationships\": {\n \"voice_in_trunk_group\": {\n \"links\"\ - : {\n \"self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/relationships/voice_in_trunk_group\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/voice_in_trunk_group\"\ - \n }\n },\n \"pop\": {\n \"links\": {\n \"\ - self\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/relationships/pop\"\ - ,\n \"related\": \"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/pop\"\ - \n }\n }\n }\n }\n}" + string: '{"data":{"id":"41b94706-325e-4704-a433-d65105758836","type":"voice_in_trunks","attributes":{"priority":1,"capacity_limit":null,"weight":65535,"name":"hello, updated test pstn trunk","cli_format":"e164","cli_prefix":null,"description":null,"ringing_timeout":null,"configuration":{"type":"pstn_configurations","attributes":{"dst":"558540420025"}},"created_at":"2018-12-29T09:51:54.661Z"},"relationships":{"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/voice_in_trunk_group"}},"pop":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/relationships/pop","related":"https://sandbox-api.didww.com/v3/voice_in_trunks/41b94706-325e-4704-a433-d65105758836/pop"}}}}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunk_regenerate_credentials/create.yaml b/tests/fixtures/voice_out_trunk_regenerate_credentials/create.yaml index b01c1c4..34ea05c 100644 --- a/tests/fixtures/voice_out_trunk_regenerate_credentials/create.yaml +++ b/tests/fixtures/voice_out_trunk_regenerate_credentials/create.yaml @@ -12,9 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_out_trunk_regenerate_credentials response: body: - string: "{\n \"data\": {\n \"id\": \"5fc59e7e-79eb-498a-8779-800416b5c68a\"\ - ,\n \"type\": \"voice_out_trunk_regenerate_credentials\"\n },\n \"meta\"\ - : {\n \"api_version\": \"2026-04-16\"\n }\n}" + string: '{"data":{"id":"5fc59e7e-79eb-498a-8779-800416b5c68a","type":"voice_out_trunk_regenerate_credentials"},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunks/create.yaml b/tests/fixtures/voice_out_trunks/create.yaml index fd82292..88ca466 100644 --- a/tests/fixtures/voice_out_trunks/create.yaml +++ b/tests/fixtures/voice_out_trunks/create.yaml @@ -1,10 +1,6 @@ interactions: - request: - body: '{"data": {"type": "voice_out_trunks", "attributes": {"name": "python-test", - "on_cli_mismatch_action": "replace_cli", "authentication_method": {"type": "ip_only", - "attributes": {"allowed_sip_ips": ["203.0.113.0/24"], "tech_prefix": ""}}}, "relationships": - {"default_did": {"data": {"type": "dids", "id": "7a028c32-e6b6-4c86-bf01-90f901b37012"}}, - "dids": {"data": [{"type": "dids", "id": "7a028c32-e6b6-4c86-bf01-90f901b37012"}]}}}}' + body: '{"data":{"type":"voice_out_trunks","attributes":{"name":"python-test","on_cli_mismatch_action":"replace_cli","authentication_method":{"type":"ip_only","attributes":{"allowed_sip_ips":["203.0.113.0/24"],"tech_prefix":""}}},"relationships":{"default_did":{"data":{"type":"dids","id":"7a028c32-e6b6-4c86-bf01-90f901b37012"}},"dids":{"data":[{"type":"dids","id":"7a028c32-e6b6-4c86-bf01-90f901b37012"}]}}}}' headers: Accept: - application/vnd.api+json @@ -16,19 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_out_trunks response: body: - string: '{"data": {"id": "b60201c1-21f0-4d9a-aafa-0e6d1e12f22e", "type": "voice_out_trunks", - "attributes": {"allowed_rtp_ips": null, "allow_any_did_as_cli": false, "status": - "active", "on_cli_mismatch_action": "replace_cli", "name": "python-test", - "capacity_limit": null, "created_at": "2022-02-03T08:21:29.798Z", "threshold_reached": - false, "threshold_amount": null, "media_encryption_mode": "disabled", "default_dst_action": - "allow_all", "dst_prefixes": [], "force_symmetric_rtp": false, "rtp_ping": - false, "callback_url": null, "authentication_method": {"type": "ip_only", - "attributes": {"allowed_sip_ips": ["203.0.113.0/24"], "tech_prefix": ""}}}, "relationships": - {"default_did": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/b60201c1-21f0-4d9a-aafa-0e6d1e12f22e/relationships/default_did", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/b60201c1-21f0-4d9a-aafa-0e6d1e12f22e/default_did"}}, - "dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/b60201c1-21f0-4d9a-aafa-0e6d1e12f22e/relationships/dids", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/b60201c1-21f0-4d9a-aafa-0e6d1e12f22e/dids"}}}, - "meta": {"spent_amount": "0.0"}}, "meta": {"api_version": "2026-04-16"}}' + string: '{"data":{"id":"b60201c1-21f0-4d9a-aafa-0e6d1e12f22e","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"active","on_cli_mismatch_action":"replace_cli","name":"python-test","capacity_limit":null,"created_at":"2022-02-03T08:21:29.798Z","threshold_reached":false,"threshold_amount":null,"media_encryption_mode":"disabled","default_dst_action":"allow_all","dst_prefixes":[],"force_symmetric_rtp":false,"rtp_ping":false,"callback_url":null,"authentication_method":{"type":"ip_only","attributes":{"allowed_sip_ips":["203.0.113.0/24"],"tech_prefix":""}}},"relationships":{"default_did":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/b60201c1-21f0-4d9a-aafa-0e6d1e12f22e/relationships/default_did","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/b60201c1-21f0-4d9a-aafa-0e6d1e12f22e/default_did"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/b60201c1-21f0-4d9a-aafa-0e6d1e12f22e/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/b60201c1-21f0-4d9a-aafa-0e6d1e12f22e/dids"}}},"meta":{"spent_amount":"0.0"}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunks/create_twilio.yaml b/tests/fixtures/voice_out_trunks/create_twilio.yaml index c7d6000..8a387d3 100644 --- a/tests/fixtures/voice_out_trunks/create_twilio.yaml +++ b/tests/fixtures/voice_out_trunks/create_twilio.yaml @@ -1,8 +1,6 @@ interactions: - request: - body: '{"data": {"type": "voice_out_trunks", "attributes": {"name": "SDK Test twilio - create", "on_cli_mismatch_action": "reject_call", "authentication_method": {"type": - "twilio", "attributes": {"twilio_account_sid": "AC33333333333333333333333333333333"}}}}}' + body: '{"data":{"type":"voice_out_trunks","attributes":{"name":"SDK Test twilio create","on_cli_mismatch_action":"reject_call","authentication_method":{"type":"twilio","attributes":{"twilio_account_sid":"AC33333333333333333333333333333333"}}}}}' headers: Accept: - application/vnd.api+json @@ -14,20 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_out_trunks response: body: - string: '{"data": {"id": "507fa5a2-fd58-4c4d-a231-efba27f67c3a", "type": "voice_out_trunks", - "attributes": {"allowed_rtp_ips": null, "allow_any_did_as_cli": false, "status": - "active", "on_cli_mismatch_action": "reject_call", "name": "SDK Test twilio - create", "capacity_limit": null, "created_at": "2026-04-23T19:59:39.154Z", - "threshold_reached": false, "threshold_amount": "3000.0", "media_encryption_mode": - "disabled", "default_dst_action": "allow_all", "dst_prefixes": [], "force_symmetric_rtp": - false, "rtp_ping": false, "callback_url": null, "external_reference_id": null, - "authentication_method": {"type": "twilio", "attributes": {"twilio_account_sid": - "AC33333333333333333333333333333333"}}, "emergency_enable_all": false, "rtp_timeout": - 30}, "relationships": {"dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/507fa5a2-fd58-4c4d-a231-efba27f67c3a/relationships/dids", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/507fa5a2-fd58-4c4d-a231-efba27f67c3a/dids"}}, - "emergency_dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/507fa5a2-fd58-4c4d-a231-efba27f67c3a/relationships/emergency_dids", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/507fa5a2-fd58-4c4d-a231-efba27f67c3a/emergency_dids"}}}, - "meta": {"spent_amount": "0.0"}}, "meta": {"api_version": "2026-04-16"}}' + string: '{"data":{"id":"507fa5a2-fd58-4c4d-a231-efba27f67c3a","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"active","on_cli_mismatch_action":"reject_call","name":"SDK Test twilio create","capacity_limit":null,"created_at":"2026-04-23T19:59:39.154Z","threshold_reached":false,"threshold_amount":"3000.0","media_encryption_mode":"disabled","default_dst_action":"allow_all","dst_prefixes":[],"force_symmetric_rtp":false,"rtp_ping":false,"callback_url":null,"external_reference_id":null,"authentication_method":{"type":"twilio","attributes":{"twilio_account_sid":"AC33333333333333333333333333333333"}},"emergency_enable_all":false,"rtp_timeout":30},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/507fa5a2-fd58-4c4d-a231-efba27f67c3a/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/507fa5a2-fd58-4c4d-a231-efba27f67c3a/dids"}},"emergency_dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/507fa5a2-fd58-4c4d-a231-efba27f67c3a/relationships/emergency_dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/507fa5a2-fd58-4c4d-a231-efba27f67c3a/emergency_dids"}}},"meta":{"spent_amount":"0.0"}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunks/list.yaml b/tests/fixtures/voice_out_trunks/list.yaml index 3d2c0fa..74a67de 100644 --- a/tests/fixtures/voice_out_trunks/list.yaml +++ b/tests/fixtures/voice_out_trunks/list.yaml @@ -12,35 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_out_trunks response: body: - string: '{"data": [{"id": "425ce763-a3a9-49b4-af5b-ada1a65c8864", "type": "voice_out_trunks", - "attributes": {"allowed_rtp_ips": null, "allow_any_did_as_cli": false, "status": - "blocked", "on_cli_mismatch_action": "replace_cli", "name": "test", "capacity_limit": - 123, "created_at": "2022-02-02T16:50:45.053Z", "threshold_reached": false, - "threshold_amount": "200.0", "media_encryption_mode": "srtp_sdes", "default_dst_action": - "reject_all", "dst_prefixes": ["370"], "force_symmetric_rtp": true, "rtp_ping": - true, "callback_url": null, "authentication_method": {"type": "credentials_and_ip", - "attributes": {"allowed_sip_ips": ["203.0.113.1/32"], "tech_prefix": "", "username": - "dpjgwbbac9", "password": "z0hshvbcy7"}}}, "relationships": {"default_did": - {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/default_did", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/default_did"}}, - "dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/dids", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/dids"}}}, - "meta": {"spent_amount": "0.0"}}, {"id": "b7183e37-f660-4d67-87dc-b2d9faa7041d", - "type": "voice_out_trunks", "attributes": {"allowed_rtp_ips": null, "allow_any_did_as_cli": - false, "status": "active", "on_cli_mismatch_action": "send_original_cli", - "name": "python-sdk", "capacity_limit": null, "created_at": "2022-02-02T17:05:58.661Z", - "threshold_reached": false, "threshold_amount": null, "media_encryption_mode": - "disabled", "default_dst_action": "allow_all", "dst_prefixes": [], "force_symmetric_rtp": - false, "rtp_ping": false, "callback_url": null, "authentication_method": {"type": - "credentials_and_ip", "attributes": {"allowed_sip_ips": ["203.0.113.0/24"], "tech_prefix": - "", "username": "50fb4hugfv", "password": "evhwkcfjm5"}}}, "relationships": - {"default_did": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/relationships/default_did", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/default_did"}}, - "dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/relationships/dids", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/dids"}}}, - "meta": {"spent_amount": "0.0"}}], "meta": {"total_records": 2, "api_version": - "2021-12-15"}, "links": {"first": "https://sandbox-api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50", - "last": "https://sandbox-api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50"}}' + string: '{"data":[{"id":"425ce763-a3a9-49b4-af5b-ada1a65c8864","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"blocked","on_cli_mismatch_action":"replace_cli","name":"test","capacity_limit":123,"created_at":"2022-02-02T16:50:45.053Z","threshold_reached":false,"threshold_amount":"200.0","media_encryption_mode":"srtp_sdes","default_dst_action":"reject_all","dst_prefixes":["370"],"force_symmetric_rtp":true,"rtp_ping":true,"callback_url":null,"authentication_method":{"type":"credentials_and_ip","attributes":{"allowed_sip_ips":["203.0.113.1/32"],"tech_prefix":"","username":"dpjgwbbac9","password":"z0hshvbcy7"}}},"relationships":{"default_did":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/default_did","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/default_did"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/dids"}}},"meta":{"spent_amount":"0.0"}},{"id":"b7183e37-f660-4d67-87dc-b2d9faa7041d","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"active","on_cli_mismatch_action":"send_original_cli","name":"python-sdk","capacity_limit":null,"created_at":"2022-02-02T17:05:58.661Z","threshold_reached":false,"threshold_amount":null,"media_encryption_mode":"disabled","default_dst_action":"allow_all","dst_prefixes":[],"force_symmetric_rtp":false,"rtp_ping":false,"callback_url":null,"authentication_method":{"type":"credentials_and_ip","attributes":{"allowed_sip_ips":["203.0.113.0/24"],"tech_prefix":"","username":"50fb4hugfv","password":"evhwkcfjm5"}}},"relationships":{"default_did":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/relationships/default_did","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/default_did"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/dids"}}},"meta":{"spent_amount":"0.0"}}],"meta":{"total_records":2,"api_version":"2021-12-15"},"links":{"first":"https://sandbox-api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50","last":"https://sandbox-api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunks/show.yaml b/tests/fixtures/voice_out_trunks/show.yaml index 5fa6393..5bfdebc 100644 --- a/tests/fixtures/voice_out_trunks/show.yaml +++ b/tests/fixtures/voice_out_trunks/show.yaml @@ -12,62 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864 response: body: - string: '{"data": {"id": "425ce763-a3a9-49b4-af5b-ada1a65c8864", "type": "voice_out_trunks", - "attributes": {"allowed_rtp_ips": null, "allow_any_did_as_cli": false, "status": - "blocked", "on_cli_mismatch_action": "replace_cli", "name": "test", "capacity_limit": - 123, "created_at": "2022-02-02T16:50:45.053Z", "threshold_reached": false, - "threshold_amount": "200.0", "media_encryption_mode": "srtp_sdes", "default_dst_action": - "reject_all", "dst_prefixes": ["370"], "force_symmetric_rtp": true, "rtp_ping": - true, "callback_url": null, "external_reference_id": "crm-vot-0001", "emergency_enable_all": - false, "rtp_timeout": 30, "authentication_method": {"type": "credentials_and_ip", - "attributes": {"allowed_sip_ips": ["203.0.113.1/32"], "tech_prefix": "", "username": - "dpjgwbbac9", "password": "z0hshvbcy7"}}}, "relationships": {"default_did": - {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/default_did", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/default_did"}, - "data": {"type": "dids", "id": "7de7f718-4042-4d74-9fe9-863fa1777520"}}, "dids": - {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/dids", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/dids"}, - "data": [{"type": "dids", "id": "eeda315a-f016-4945-a3a9-bafc24302cdd"}, {"type": - "dids", "id": "7de7f718-4042-4d74-9fe9-863fa1777520"}]}}, "meta": {"spent_amount": - "0.0"}}, "included": [{"id": "7de7f718-4042-4d74-9fe9-863fa1777520", "type": - "dids", "attributes": {"blocked": false, "capacity_limit": null, "description": - null, "terminated": false, "awaiting_registration": false, "created_at": "2020-08-05T08:11:38.492Z", - "billing_cycles_count": null, "number": "37061498222", "expires_at": "2022-02-05T08:11:43.079Z", - "channels_included_count": 0, "dedicated_channels_count": 0}, "relationships": - {"did_group": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/did_group", - "related": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/did_group"}}, - "order": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/order", - "related": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/order"}}, - "capacity_pool": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/capacity_pool", - "related": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/capacity_pool"}}, - "shared_capacity_group": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/shared_capacity_group", - "related": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/shared_capacity_group"}}, - "address_verification": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/address_verification", - "related": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/address_verification"}}, - "voice_in_trunk": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/voice_in_trunk", - "related": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/voice_in_trunk"}}, - "voice_in_trunk_group": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/voice_in_trunk_group", - "related": "https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/voice_in_trunk_group"}}}}, - {"id": "eeda315a-f016-4945-a3a9-bafc24302cdd", "type": "dids", "attributes": - {"blocked": false, "capacity_limit": null, "description": null, "terminated": - false, "awaiting_registration": false, "created_at": "2020-10-19T11:39:37.042Z", - "billing_cycles_count": null, "number": "46812111133", "expires_at": "2022-02-19T11:39:43.286Z", - "channels_included_count": 0, "dedicated_channels_count": 0}, "relationships": - {"did_group": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/did_group", - "related": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/did_group"}}, - "order": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/order", - "related": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/order"}}, - "capacity_pool": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/capacity_pool", - "related": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/capacity_pool"}}, - "shared_capacity_group": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/shared_capacity_group", - "related": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/shared_capacity_group"}}, - "address_verification": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/address_verification", - "related": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/address_verification"}}, - "voice_in_trunk": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/voice_in_trunk", - "related": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/voice_in_trunk"}}, - "voice_in_trunk_group": {"links": {"self": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/voice_in_trunk_group", - "related": "https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/voice_in_trunk_group"}}}}], - "meta": {"api_version": "2026-04-16"}}' + string: '{"data":{"id":"425ce763-a3a9-49b4-af5b-ada1a65c8864","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"blocked","on_cli_mismatch_action":"replace_cli","name":"test","capacity_limit":123,"created_at":"2022-02-02T16:50:45.053Z","threshold_reached":false,"threshold_amount":"200.0","media_encryption_mode":"srtp_sdes","default_dst_action":"reject_all","dst_prefixes":["370"],"force_symmetric_rtp":true,"rtp_ping":true,"callback_url":null,"external_reference_id":"crm-vot-0001","emergency_enable_all":false,"rtp_timeout":30,"authentication_method":{"type":"credentials_and_ip","attributes":{"allowed_sip_ips":["203.0.113.1/32"],"tech_prefix":"","username":"dpjgwbbac9","password":"z0hshvbcy7"}}},"relationships":{"default_did":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/default_did","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/default_did"},"data":{"type":"dids","id":"7de7f718-4042-4d74-9fe9-863fa1777520"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/dids"},"data":[{"type":"dids","id":"eeda315a-f016-4945-a3a9-bafc24302cdd"},{"type":"dids","id":"7de7f718-4042-4d74-9fe9-863fa1777520"}]}},"meta":{"spent_amount":"0.0"}},"included":[{"id":"7de7f718-4042-4d74-9fe9-863fa1777520","type":"dids","attributes":{"blocked":false,"capacity_limit":null,"description":null,"terminated":false,"awaiting_registration":false,"created_at":"2020-08-05T08:11:38.492Z","billing_cycles_count":null,"number":"37061498222","expires_at":"2022-02-05T08:11:43.079Z","channels_included_count":0,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/order"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/shared_capacity_group"}},"address_verification":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/address_verification","related":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/address_verification"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/7de7f718-4042-4d74-9fe9-863fa1777520/voice_in_trunk_group"}}}},{"id":"eeda315a-f016-4945-a3a9-bafc24302cdd","type":"dids","attributes":{"blocked":false,"capacity_limit":null,"description":null,"terminated":false,"awaiting_registration":false,"created_at":"2020-10-19T11:39:37.042Z","billing_cycles_count":null,"number":"46812111133","expires_at":"2022-02-19T11:39:43.286Z","channels_included_count":0,"dedicated_channels_count":0},"relationships":{"did_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/did_group","related":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/did_group"}},"order":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/order","related":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/order"}},"capacity_pool":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/capacity_pool","related":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/capacity_pool"}},"shared_capacity_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/shared_capacity_group","related":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/shared_capacity_group"}},"address_verification":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/address_verification","related":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/address_verification"}},"voice_in_trunk":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/voice_in_trunk","related":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/voice_in_trunk"}},"voice_in_trunk_group":{"links":{"self":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/relationships/voice_in_trunk_group","related":"https://sandbox-api.didww.com/v3/dids/eeda315a-f016-4945-a3a9-bafc24302cdd/voice_in_trunk_group"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunks/show_ip_only.yaml b/tests/fixtures/voice_out_trunks/show_ip_only.yaml index d0ed653..a97e3ee 100644 --- a/tests/fixtures/voice_out_trunks/show_ip_only.yaml +++ b/tests/fixtures/voice_out_trunks/show_ip_only.yaml @@ -12,20 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_out_trunks/23fd58f9-9094-406c-bfd9-f4d25bda13c6 response: body: - string: '{"data": {"id": "23fd58f9-9094-406c-bfd9-f4d25bda13c6", "type": "voice_out_trunks", - "attributes": {"allowed_rtp_ips": null, "allow_any_did_as_cli": false, "status": - "active", "on_cli_mismatch_action": "reject_call", "name": "SDK Test credentials_and_ip", - "capacity_limit": null, "created_at": "2026-04-23T19:52:20.859Z", "threshold_reached": - false, "threshold_amount": "3000.0", "media_encryption_mode": "disabled", - "default_dst_action": "allow_all", "dst_prefixes": [], "force_symmetric_rtp": - false, "rtp_ping": false, "callback_url": null, "external_reference_id": null, - "authentication_method": {"type": "ip_only", "attributes": {"allowed_sip_ips": - ["203.0.113.1/32"], "tech_prefix": null}}, "emergency_enable_all": false, - "rtp_timeout": 30}, "relationships": {"dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/23fd58f9-9094-406c-bfd9-f4d25bda13c6/relationships/dids", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/23fd58f9-9094-406c-bfd9-f4d25bda13c6/dids"}}, - "emergency_dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/23fd58f9-9094-406c-bfd9-f4d25bda13c6/relationships/emergency_dids", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/23fd58f9-9094-406c-bfd9-f4d25bda13c6/emergency_dids"}}}, - "meta": {"spent_amount": "0.0"}}, "meta": {"api_version": "2026-04-16"}}' + string: '{"data":{"id":"23fd58f9-9094-406c-bfd9-f4d25bda13c6","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"active","on_cli_mismatch_action":"reject_call","name":"SDK Test credentials_and_ip","capacity_limit":null,"created_at":"2026-04-23T19:52:20.859Z","threshold_reached":false,"threshold_amount":"3000.0","media_encryption_mode":"disabled","default_dst_action":"allow_all","dst_prefixes":[],"force_symmetric_rtp":false,"rtp_ping":false,"callback_url":null,"external_reference_id":null,"authentication_method":{"type":"ip_only","attributes":{"allowed_sip_ips":["203.0.113.1/32"],"tech_prefix":null}},"emergency_enable_all":false,"rtp_timeout":30},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/23fd58f9-9094-406c-bfd9-f4d25bda13c6/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/23fd58f9-9094-406c-bfd9-f4d25bda13c6/dids"}},"emergency_dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/23fd58f9-9094-406c-bfd9-f4d25bda13c6/relationships/emergency_dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/23fd58f9-9094-406c-bfd9-f4d25bda13c6/emergency_dids"}}},"meta":{"spent_amount":"0.0"}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunks/show_twilio.yaml b/tests/fixtures/voice_out_trunks/show_twilio.yaml index 546c741..1be9cff 100644 --- a/tests/fixtures/voice_out_trunks/show_twilio.yaml +++ b/tests/fixtures/voice_out_trunks/show_twilio.yaml @@ -12,20 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_out_trunks/b5e701f4-ea15-4f9d-8f35-6a0bdce04385 response: body: - string: '{"data": {"id": "b5e701f4-ea15-4f9d-8f35-6a0bdce04385", "type": "voice_out_trunks", - "attributes": {"allowed_rtp_ips": null, "allow_any_did_as_cli": false, "status": - "active", "on_cli_mismatch_action": "reject_call", "name": "SDK Test twilio", - "capacity_limit": null, "created_at": "2026-04-23T19:52:32.708Z", "threshold_reached": - false, "threshold_amount": "3000.0", "media_encryption_mode": "disabled", - "default_dst_action": "allow_all", "dst_prefixes": [], "force_symmetric_rtp": - false, "rtp_ping": false, "callback_url": null, "external_reference_id": null, - "authentication_method": {"type": "twilio", "attributes": {"twilio_account_sid": - "AC22222222222222222222222222222222"}}, "emergency_enable_all": false, "rtp_timeout": - 30}, "relationships": {"dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/b5e701f4-ea15-4f9d-8f35-6a0bdce04385/relationships/dids", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/b5e701f4-ea15-4f9d-8f35-6a0bdce04385/dids"}}, - "emergency_dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/b5e701f4-ea15-4f9d-8f35-6a0bdce04385/relationships/emergency_dids", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/b5e701f4-ea15-4f9d-8f35-6a0bdce04385/emergency_dids"}}}, - "meta": {"spent_amount": "0.0"}}, "meta": {"api_version": "2026-04-16"}}' + string: '{"data":{"id":"b5e701f4-ea15-4f9d-8f35-6a0bdce04385","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"active","on_cli_mismatch_action":"reject_call","name":"SDK Test twilio","capacity_limit":null,"created_at":"2026-04-23T19:52:32.708Z","threshold_reached":false,"threshold_amount":"3000.0","media_encryption_mode":"disabled","default_dst_action":"allow_all","dst_prefixes":[],"force_symmetric_rtp":false,"rtp_ping":false,"callback_url":null,"external_reference_id":null,"authentication_method":{"type":"twilio","attributes":{"twilio_account_sid":"AC22222222222222222222222222222222"}},"emergency_enable_all":false,"rtp_timeout":30},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/b5e701f4-ea15-4f9d-8f35-6a0bdce04385/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/b5e701f4-ea15-4f9d-8f35-6a0bdce04385/dids"}},"emergency_dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/b5e701f4-ea15-4f9d-8f35-6a0bdce04385/relationships/emergency_dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/b5e701f4-ea15-4f9d-8f35-6a0bdce04385/emergency_dids"}}},"meta":{"spent_amount":"0.0"}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunks/update.yaml b/tests/fixtures/voice_out_trunks/update.yaml index 9cf890c..5eebbae 100644 --- a/tests/fixtures/voice_out_trunks/update.yaml +++ b/tests/fixtures/voice_out_trunks/update.yaml @@ -12,20 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864 response: body: - string: '{"data": {"id": "425ce763-a3a9-49b4-af5b-ada1a65c8864", "type": "voice_out_trunks", - "attributes": {"allowed_rtp_ips": null, "allow_any_did_as_cli": false, "status": - "blocked", "on_cli_mismatch_action": "replace_cli", "name": "test", "capacity_limit": - 123, "created_at": "2022-02-02T16:50:45.053Z", "threshold_reached": false, - "threshold_amount": "200.0", "media_encryption_mode": "disabled", "default_dst_action": - "reject_all", "dst_prefixes": ["370"], "force_symmetric_rtp": true, "rtp_ping": - true, "callback_url": null, "authentication_method": {"type": "credentials_and_ip", - "attributes": {"allowed_sip_ips": ["203.0.113.1/32"], "tech_prefix": "", "username": - "dpjgwbbac9", "password": "z0hshvbcy7"}}}, "relationships": {"default_did": - {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/default_did", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/default_did"}}, - "dids": {"links": {"self": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/dids", - "related": "https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/dids"}}}, - "meta": {"spent_amount": "0.0"}}, "meta": {"api_version": "2026-04-16"}}' + string: '{"data":{"id":"425ce763-a3a9-49b4-af5b-ada1a65c8864","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"blocked","on_cli_mismatch_action":"replace_cli","name":"test","capacity_limit":123,"created_at":"2022-02-02T16:50:45.053Z","threshold_reached":false,"threshold_amount":"200.0","media_encryption_mode":"disabled","default_dst_action":"reject_all","dst_prefixes":["370"],"force_symmetric_rtp":true,"rtp_ping":true,"callback_url":null,"authentication_method":{"type":"credentials_and_ip","attributes":{"allowed_sip_ips":["203.0.113.1/32"],"tech_prefix":"","username":"dpjgwbbac9","password":"z0hshvbcy7"}}},"relationships":{"default_did":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/default_did","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/default_did"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/dids"}}},"meta":{"spent_amount":"0.0"}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json From 532ebc386629d2c6b43c34948b469f5f935d1493 Mon Sep 17 00:00:00 2001 From: Igor Fedoronchuk Date: Sun, 14 Jun 2026 11:30:14 +0200 Subject: [PATCH 4/4] fix(fixtures): refresh 8 more api_version values the initial sweep missed encrypted_files/list, address_verifications/create, areas/show, voice_out_trunks/list, identities/{create,update}, addresses/{create,update} still carried 2021-04-19 / 2021-12-15 in meta.api_version. Now 2026-04-16, consistent with every other fixture. --- tests/fixtures/address_verifications/create.yaml | 2 +- tests/fixtures/addresses/create.yaml | 2 +- tests/fixtures/addresses/update.yaml | 2 +- tests/fixtures/areas/show.yaml | 2 +- tests/fixtures/encrypted_files/list.yaml | 2 +- tests/fixtures/identities/create.yaml | 2 +- tests/fixtures/identities/update.yaml | 2 +- tests/fixtures/voice_out_trunks/list.yaml | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/fixtures/address_verifications/create.yaml b/tests/fixtures/address_verifications/create.yaml index db0adc9..5f6fa00 100644 --- a/tests/fixtures/address_verifications/create.yaml +++ b/tests/fixtures/address_verifications/create.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/address_verifications response: body: - string: '{"data":{"id":"78182ef2-8377-41cd-89e1-26e8266c9c94","type":"address_verifications","attributes":{"service_description":null,"callback_url":"http://example.com","callback_method":"get","status":"pending","reject_reasons":null,"created_at":"2021-04-01T15:01:32.668Z"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/dids"}},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/address"},"data":{"type":"addresses","id":"d3414687-40f4-4346-a267-c2c65117d28c"}}}},"included":[{"id":"d3414687-40f4-4346-a267-c2c65117d28c","type":"addresses","attributes":{"city_name":"Chicago","postal_code":"1234","address":"Main street","description":"some address","created_at":"2021-04-01T13:12:56.632Z"},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/identity"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/proofs"}}}}],"meta":{"api_version":"2021-04-19"}}' + string: '{"data":{"id":"78182ef2-8377-41cd-89e1-26e8266c9c94","type":"address_verifications","attributes":{"service_description":null,"callback_url":"http://example.com","callback_method":"get","status":"pending","reject_reasons":null,"created_at":"2021-04-01T15:01:32.668Z"},"relationships":{"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/relationships/dids","related":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/dids"}},"address":{"links":{"self":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/relationships/address","related":"https://sandbox-api.didww.com/v3/address_verifications/78182ef2-8377-41cd-89e1-26e8266c9c94/address"},"data":{"type":"addresses","id":"d3414687-40f4-4346-a267-c2c65117d28c"}}}},"included":[{"id":"d3414687-40f4-4346-a267-c2c65117d28c","type":"addresses","attributes":{"city_name":"Chicago","postal_code":"1234","address":"Main street","description":"some address","created_at":"2021-04-01T13:12:56.632Z"},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/identity"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/d3414687-40f4-4346-a267-c2c65117d28c/proofs"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/addresses/create.yaml b/tests/fixtures/addresses/create.yaml index e6451fe..31ef8ac 100644 --- a/tests/fixtures/addresses/create.yaml +++ b/tests/fixtures/addresses/create.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/addresses response: body: - string: '{"data":{"id":"bf69bc70-e1c2-442c-9f30-335ee299b663","type":"addresses","attributes":{"city_name":"New York","postal_code":"123","address":"some street","description":"test address","created_at":"2021-04-01T14:59:47.128Z","verified":false},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/identity"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/country"},"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/proofs"}}}},"included":[{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/regions"}}}}],"meta":{"api_version":"2021-04-19"}}' + string: '{"data":{"id":"bf69bc70-e1c2-442c-9f30-335ee299b663","type":"addresses","attributes":{"city_name":"New York","postal_code":"123","address":"some street","description":"test address","created_at":"2021-04-01T14:59:47.128Z","verified":false},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/identity"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/country"},"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/proofs"}}}},"included":[{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/regions"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/addresses/update.yaml b/tests/fixtures/addresses/update.yaml index c100180..8da7d0d 100644 --- a/tests/fixtures/addresses/update.yaml +++ b/tests/fixtures/addresses/update.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663 response: body: - string: '{"data":{"id":"bf69bc70-e1c2-442c-9f30-335ee299b663","type":"addresses","attributes":{"city_name":"Chicago","postal_code":"1234","address":"Main street","description":"some address","created_at":"2021-04-01T14:59:47.128Z","verified":false},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/identity"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/proofs"}}}},"meta":{"api_version":"2021-04-19"}}' + string: '{"data":{"id":"bf69bc70-e1c2-442c-9f30-335ee299b663","type":"addresses","attributes":{"city_name":"Chicago","postal_code":"1234","address":"Main street","description":"some address","created_at":"2021-04-01T14:59:47.128Z","verified":false},"relationships":{"identity":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/identity","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/identity"}},"country":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/country","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/relationships/proofs","related":"https://sandbox-api.didww.com/v3/addresses/bf69bc70-e1c2-442c-9f30-335ee299b663/proofs"}}}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/areas/show.yaml b/tests/fixtures/areas/show.yaml index 94e148d..a2f46d6 100644 --- a/tests/fixtures/areas/show.yaml +++ b/tests/fixtures/areas/show.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22 response: body: - string: '{"data":{"id":"ab2adc18-7c94-42d9-bdde-b28dfc373a22","type":"areas","attributes":{"name":"Tuscany"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/country"},"data":{"type":"countries","id":"05baebb6-4053-4870-acd6-8491eb200e0b"}}}},"included":[{"id":"05baebb6-4053-4870-acd6-8491eb200e0b","type":"countries","attributes":{"name":"Italy","prefix":"39","iso":"IT"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/05baebb6-4053-4870-acd6-8491eb200e0b/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/05baebb6-4053-4870-acd6-8491eb200e0b/regions"}}}}],"meta":{"api_version":"2021-04-19"}}' + string: '{"data":{"id":"ab2adc18-7c94-42d9-bdde-b28dfc373a22","type":"areas","attributes":{"name":"Tuscany"},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/relationships/country","related":"https://sandbox-api.didww.com/v3/areas/ab2adc18-7c94-42d9-bdde-b28dfc373a22/country"},"data":{"type":"countries","id":"05baebb6-4053-4870-acd6-8491eb200e0b"}}}},"included":[{"id":"05baebb6-4053-4870-acd6-8491eb200e0b","type":"countries","attributes":{"name":"Italy","prefix":"39","iso":"IT"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/05baebb6-4053-4870-acd6-8491eb200e0b/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/05baebb6-4053-4870-acd6-8491eb200e0b/regions"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/encrypted_files/list.yaml b/tests/fixtures/encrypted_files/list.yaml index 70725bf..644e76a 100644 --- a/tests/fixtures/encrypted_files/list.yaml +++ b/tests/fixtures/encrypted_files/list.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/encrypted_files response: body: - string: '{"data":[{"id":"7f2fbdca-8008-44ce-bcb6-3537ea5efaac","type":"encrypted_files","attributes":{"description":"file.enc","expires_at":"2021-04-02T13:42:51.612Z"}}],"meta":{"total_records":1,"api_version":"2021-04-19"},"links":{"first":"https://sandbox-api.didww.com/v3/encrypted_files?page%5Bnumber%5D=1&page%5Bsize%5D=5","last":"https://sandbox-api.didww.com/v3/encrypted_files?page%5Bnumber%5D=1&page%5Bsize%5D=5"}}' + string: '{"data":[{"id":"7f2fbdca-8008-44ce-bcb6-3537ea5efaac","type":"encrypted_files","attributes":{"description":"file.enc","expires_at":"2021-04-02T13:42:51.612Z"}}],"meta":{"total_records":1,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/encrypted_files?page%5Bnumber%5D=1&page%5Bsize%5D=5","last":"https://sandbox-api.didww.com/v3/encrypted_files?page%5Bnumber%5D=1&page%5Bsize%5D=5"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/identities/create.yaml b/tests/fixtures/identities/create.yaml index 260b729..001cdcc 100644 --- a/tests/fixtures/identities/create.yaml +++ b/tests/fixtures/identities/create.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/identities response: body: - string: '{"data":{"id":"e96ae7d1-11d5-42bc-a5c5-211f3c3788ae","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"123456789","id_number":"ABC1234","birth_date":"1970-01-01","company_name":"Test Company Limited","company_reg_number":"543221","vat_id":"GB1234","description":"test identity","personal_tax_id":"987654321","identity_type":"business","created_at":"2021-04-01T14:56:34.637Z","external_reference_id":"111","verified":false},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/country"},"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/proofs"}},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/addresses"}},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/permanent_documents"}}}},"included":[{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/regions"}}}}],"meta":{"api_version":"2021-04-19"}}' + string: '{"data":{"id":"e96ae7d1-11d5-42bc-a5c5-211f3c3788ae","type":"identities","attributes":{"first_name":"John","last_name":"Doe","phone_number":"123456789","id_number":"ABC1234","birth_date":"1970-01-01","company_name":"Test Company Limited","company_reg_number":"543221","vat_id":"GB1234","description":"test identity","personal_tax_id":"987654321","identity_type":"business","created_at":"2021-04-01T14:56:34.637Z","external_reference_id":"111","verified":false},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/country"},"data":{"type":"countries","id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/proofs"}},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/addresses"}},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/permanent_documents"}}}},"included":[{"id":"1f6fc2bd-f081-4202-9b1a-d9cb88d942b9","type":"countries","attributes":{"name":"United States","prefix":"1","iso":"US"},"relationships":{"regions":{"links":{"self":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/relationships/regions","related":"https://sandbox-api.didww.com/v3/countries/1f6fc2bd-f081-4202-9b1a-d9cb88d942b9/regions"}}}}],"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/identities/update.yaml b/tests/fixtures/identities/update.yaml index 73561a1..b08ae4d 100644 --- a/tests/fixtures/identities/update.yaml +++ b/tests/fixtures/identities/update.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae response: body: - string: '{"data":{"id":"e96ae7d1-11d5-42bc-a5c5-211f3c3788ae","type":"identities","attributes":{"first_name":"Jake","last_name":"Johnson","phone_number":"1111111","id_number":"CED4321","birth_date":"1979-01-01","company_name":"Some Company Limited","company_reg_number":"1222776","vat_id":"GB1235","description":"test","personal_tax_id":"983217654","identity_type":"business","created_at":"2021-04-01T14:56:34.637Z","external_reference_id":"112","verified":false},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/proofs"}},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/addresses"}},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/permanent_documents"}}}},"meta":{"api_version":"2021-04-19"}}' + string: '{"data":{"id":"e96ae7d1-11d5-42bc-a5c5-211f3c3788ae","type":"identities","attributes":{"first_name":"Jake","last_name":"Johnson","phone_number":"1111111","id_number":"CED4321","birth_date":"1979-01-01","company_name":"Some Company Limited","company_reg_number":"1222776","vat_id":"GB1235","description":"test","personal_tax_id":"983217654","identity_type":"business","created_at":"2021-04-01T14:56:34.637Z","external_reference_id":"112","verified":false},"relationships":{"country":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/country","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/country"}},"proofs":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/proofs","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/proofs"}},"addresses":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/addresses","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/addresses"}},"permanent_documents":{"links":{"self":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/relationships/permanent_documents","related":"https://sandbox-api.didww.com/v3/identities/e96ae7d1-11d5-42bc-a5c5-211f3c3788ae/permanent_documents"}}}},"meta":{"api_version":"2026-04-16"}}' headers: Content-Type: - application/vnd.api+json diff --git a/tests/fixtures/voice_out_trunks/list.yaml b/tests/fixtures/voice_out_trunks/list.yaml index 74a67de..890bc11 100644 --- a/tests/fixtures/voice_out_trunks/list.yaml +++ b/tests/fixtures/voice_out_trunks/list.yaml @@ -12,7 +12,7 @@ interactions: uri: https://sandbox-api.didww.com/v3/voice_out_trunks response: body: - string: '{"data":[{"id":"425ce763-a3a9-49b4-af5b-ada1a65c8864","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"blocked","on_cli_mismatch_action":"replace_cli","name":"test","capacity_limit":123,"created_at":"2022-02-02T16:50:45.053Z","threshold_reached":false,"threshold_amount":"200.0","media_encryption_mode":"srtp_sdes","default_dst_action":"reject_all","dst_prefixes":["370"],"force_symmetric_rtp":true,"rtp_ping":true,"callback_url":null,"authentication_method":{"type":"credentials_and_ip","attributes":{"allowed_sip_ips":["203.0.113.1/32"],"tech_prefix":"","username":"dpjgwbbac9","password":"z0hshvbcy7"}}},"relationships":{"default_did":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/default_did","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/default_did"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/dids"}}},"meta":{"spent_amount":"0.0"}},{"id":"b7183e37-f660-4d67-87dc-b2d9faa7041d","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"active","on_cli_mismatch_action":"send_original_cli","name":"python-sdk","capacity_limit":null,"created_at":"2022-02-02T17:05:58.661Z","threshold_reached":false,"threshold_amount":null,"media_encryption_mode":"disabled","default_dst_action":"allow_all","dst_prefixes":[],"force_symmetric_rtp":false,"rtp_ping":false,"callback_url":null,"authentication_method":{"type":"credentials_and_ip","attributes":{"allowed_sip_ips":["203.0.113.0/24"],"tech_prefix":"","username":"50fb4hugfv","password":"evhwkcfjm5"}}},"relationships":{"default_did":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/relationships/default_did","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/default_did"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/dids"}}},"meta":{"spent_amount":"0.0"}}],"meta":{"total_records":2,"api_version":"2021-12-15"},"links":{"first":"https://sandbox-api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50","last":"https://sandbox-api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50"}}' + string: '{"data":[{"id":"425ce763-a3a9-49b4-af5b-ada1a65c8864","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"blocked","on_cli_mismatch_action":"replace_cli","name":"test","capacity_limit":123,"created_at":"2022-02-02T16:50:45.053Z","threshold_reached":false,"threshold_amount":"200.0","media_encryption_mode":"srtp_sdes","default_dst_action":"reject_all","dst_prefixes":["370"],"force_symmetric_rtp":true,"rtp_ping":true,"callback_url":null,"authentication_method":{"type":"credentials_and_ip","attributes":{"allowed_sip_ips":["203.0.113.1/32"],"tech_prefix":"","username":"dpjgwbbac9","password":"z0hshvbcy7"}}},"relationships":{"default_did":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/default_did","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/default_did"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/425ce763-a3a9-49b4-af5b-ada1a65c8864/dids"}}},"meta":{"spent_amount":"0.0"}},{"id":"b7183e37-f660-4d67-87dc-b2d9faa7041d","type":"voice_out_trunks","attributes":{"allowed_rtp_ips":null,"allow_any_did_as_cli":false,"status":"active","on_cli_mismatch_action":"send_original_cli","name":"python-sdk","capacity_limit":null,"created_at":"2022-02-02T17:05:58.661Z","threshold_reached":false,"threshold_amount":null,"media_encryption_mode":"disabled","default_dst_action":"allow_all","dst_prefixes":[],"force_symmetric_rtp":false,"rtp_ping":false,"callback_url":null,"authentication_method":{"type":"credentials_and_ip","attributes":{"allowed_sip_ips":["203.0.113.0/24"],"tech_prefix":"","username":"50fb4hugfv","password":"evhwkcfjm5"}}},"relationships":{"default_did":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/relationships/default_did","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/default_did"}},"dids":{"links":{"self":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/relationships/dids","related":"https://sandbox-api.didww.com/v3/voice_out_trunks/b7183e37-f660-4d67-87dc-b2d9faa7041d/dids"}}},"meta":{"spent_amount":"0.0"}}],"meta":{"total_records":2,"api_version":"2026-04-16"},"links":{"first":"https://sandbox-api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50","last":"https://sandbox-api.didww.com/v3/voice_out_trunks?page%5Bnumber%5D=1&page%5Bsize%5D=50"}}' headers: Content-Type: - application/vnd.api+json