diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d8d8eba..4cd9f0f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: lint: timeout-minutes: 10 name: lint - runs-on: ${{ github.repository == 'stainless-sdks/postgrid-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -44,7 +44,7 @@ jobs: permissions: contents: read id-token: write - runs-on: ${{ github.repository == 'stainless-sdks/postgrid-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 @@ -84,7 +84,7 @@ jobs: test: timeout-minutes: 10 name: test - runs-on: ${{ github.repository == 'stainless-sdks/postgrid-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} + runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 75ec52f..b44b287 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "2.3.0" + ".": "2.4.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index a18e8eb..8e68798 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 137 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/postgrid/postgrid-a1e82d54f9c6456622ef353b6864dd9ccc47c9b5cf6b5fbe98c123f2bdf30f34.yml -openapi_spec_hash: cd682fda35a9733c4bcd508b8d8e6eab +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/postgrid/postgrid-46a2722b802f0f4b91cb69f8131ea7d6ed816cb20e0fa795889df4f6d5d49b13.yml +openapi_spec_hash: 0189e95f47ebb161ed59339e0640b82f config_hash: f16e8e5b59ab878eee700d0f2dee5645 diff --git a/CHANGELOG.md b/CHANGELOG.md index fc9694b..c476b06 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 2.4.0 (2026-07-17) + +Full Changelog: [v2.3.0...v2.4.0](https://github.com/postgrid/postgrid-python/compare/v2.3.0...v2.4.0) + +### Features + +* Make Contact requirements for mailers clearer - can pass in ID or contact inline ([5015d23](https://github.com/postgrid/postgrid-python/commit/5015d230ab97935f90f21f9ab6489f0f08482d89)) +* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([5e47f3c](https://github.com/postgrid/postgrid-python/commit/5e47f3c364222a47680c85496002f389f2325fad)) + ## 2.3.0 (2026-06-12) Full Changelog: [v2.2.0...v2.3.0](https://github.com/postgrid/postgrid-python/compare/v2.2.0...v2.3.0) diff --git a/README.md b/README.md index ad1748d..1d73391 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,6 @@ client = PostGrid( contact = client.print_mail.contacts.create( address_line1="addressLine1", - country_code="countryCode", first_name="firstName", ) print(contact.id) @@ -64,7 +63,6 @@ client = AsyncPostGrid( async def main() -> None: contact = await client.print_mail.contacts.create( address_line1="addressLine1", - country_code="countryCode", first_name="firstName", ) print(contact.id) @@ -104,7 +102,6 @@ async def main() -> None: ) as client: contact = await client.print_mail.contacts.create( address_line1="addressLine1", - country_code="countryCode", first_name="firstName", ) print(contact.id) diff --git a/pyproject.toml b/pyproject.toml index 711fa68..d5b0e85 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "postgrid-python" -version = "2.3.0" +version = "2.4.0" description = "The official Python library for the PostGrid API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/postgrid/_version.py b/src/postgrid/_version.py index 2cb6ce1..b5a5378 100644 --- a/src/postgrid/_version.py +++ b/src/postgrid/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "postgrid" -__version__ = "2.3.0" # x-release-please-version +__version__ = "2.4.0" # x-release-please-version diff --git a/src/postgrid/resources/print_mail/boxes.py b/src/postgrid/resources/print_mail/boxes.py index dc64b23..68d4ade 100644 --- a/src/postgrid/resources/print_mail/boxes.py +++ b/src/postgrid/resources/print_mail/boxes.py @@ -121,13 +121,27 @@ def create( cheques: The cheques to be mailed in the box. Only 100 cheques can be included in a box at a time. - from_: The 'from' (sender) of the entire box. Accepts inline ContactCreate or a - contactID. + from_: + A contact provided in one of two ways: - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. + + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -422,13 +436,27 @@ async def create( cheques: The cheques to be mailed in the box. Only 100 cheques can be included in a box at a time. - from_: The 'from' (sender) of the entire box. Accepts inline ContactCreate or a - contactID. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. + + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. diff --git a/src/postgrid/resources/print_mail/cheques.py b/src/postgrid/resources/print_mail/cheques.py index 786de7a..747dc81 100644 --- a/src/postgrid/resources/print_mail/cheques.py +++ b/src/postgrid/resources/print_mail/cheques.py @@ -146,13 +146,27 @@ def create( bank_account: The bank account (ID) associated with the cheque. - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. + + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. currency_code: The currency code of the cheque. This will be set to the default currency of the bank account (`USD` for US bank accounts and `CAD` for Canadian bank accounts) @@ -201,11 +215,16 @@ def create( set to an incrementing number starting from 1 across your entire account, ensuring that every cheque has a unique number. - redirect_to: Providing this inserts a blank page at the start of the cheque with the - recipient you provide here. This leaves the cheque that follows intact, which - means you can use this to intercept at cheque at the redirected address and then - mail it forward to the final recipient yourself. One use case for this is - signing cheques at your office before mailing them out yourself. + redirect_to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. return_envelope: The return envelope (ID) sent out with the cheque, if any. Note that you must first order return envelopes using the Return Envelopes API. @@ -654,13 +673,27 @@ async def create( bank_account: The bank account (ID) associated with the cheque. - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. + + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. currency_code: The currency code of the cheque. This will be set to the default currency of the bank account (`USD` for US bank accounts and `CAD` for Canadian bank accounts) @@ -709,11 +742,16 @@ async def create( set to an incrementing number starting from 1 across your entire account, ensuring that every cheque has a unique number. - redirect_to: Providing this inserts a blank page at the start of the cheque with the - recipient you provide here. This leaves the cheque that follows intact, which - means you can use this to intercept at cheque at the redirected address and then - mail it forward to the final recipient yourself. One use case for this is - signing cheques at your office before mailing them out yourself. + redirect_to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. return_envelope: The return envelope (ID) sent out with the cheque, if any. Note that you must first order return envelopes using the Return Envelopes API. diff --git a/src/postgrid/resources/print_mail/contacts.py b/src/postgrid/resources/print_mail/contacts.py index bec762c..805af29 100644 --- a/src/postgrid/resources/print_mail/contacts.py +++ b/src/postgrid/resources/print_mail/contacts.py @@ -71,11 +71,11 @@ def create( self, *, address_line1: str, - country_code: str, first_name: str, address_line2: str | Omit = omit, city: str | Omit = omit, company_name: str | Omit = omit, + country_code: str | Omit = omit, description: str | Omit = omit, email: str | Omit = omit, force_verified_status: bool | Omit = omit, @@ -113,14 +113,15 @@ def create( Args: address_line1: The first line of the contact's address. - country_code: The ISO 3611-1 country code of the contact's address. - address_line2: Second line of the contact's address, if applicable. city: The city of the contact's address. company_name: Company name of the contact. + country_code: The ISO 3611-1 country code of the contact's address. If omitted, your + organization's default country code is used. + description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -164,9 +165,9 @@ def create( *, address_line1: str, company_name: str, - country_code: str, address_line2: str | Omit = omit, city: str | Omit = omit, + country_code: str | Omit = omit, description: str | Omit = omit, email: str | Omit = omit, first_name: str | Omit = omit, @@ -205,12 +206,13 @@ def create( Args: address_line1: The first line of the contact's address. - country_code: The ISO 3611-1 country code of the contact's address. - address_line2: Second line of the contact's address, if applicable. city: The city of the contact's address. + country_code: The ISO 3611-1 country code of the contact's address. If omitted, your + organization's default country code is used. + description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -250,16 +252,16 @@ def create( """ ... - @required_args(["address_line1", "country_code", "first_name"], ["address_line1", "company_name", "country_code"]) + @required_args(["address_line1", "first_name"], ["address_line1", "company_name"]) def create( self, *, address_line1: str, - country_code: str, first_name: str | Omit = omit, address_line2: str | Omit = omit, city: str | Omit = omit, company_name: str | Omit = omit, + country_code: str | Omit = omit, description: str | Omit = omit, email: str | Omit = omit, force_verified_status: bool | Omit = omit, @@ -283,11 +285,11 @@ def create( body=maybe_transform( { "address_line1": address_line1, - "country_code": country_code, "first_name": first_name, "address_line2": address_line2, "city": city, "company_name": company_name, + "country_code": country_code, "description": description, "email": email, "force_verified_status": force_verified_status, @@ -473,11 +475,11 @@ async def create( self, *, address_line1: str, - country_code: str, first_name: str, address_line2: str | Omit = omit, city: str | Omit = omit, company_name: str | Omit = omit, + country_code: str | Omit = omit, description: str | Omit = omit, email: str | Omit = omit, force_verified_status: bool | Omit = omit, @@ -515,14 +517,15 @@ async def create( Args: address_line1: The first line of the contact's address. - country_code: The ISO 3611-1 country code of the contact's address. - address_line2: Second line of the contact's address, if applicable. city: The city of the contact's address. company_name: Company name of the contact. + country_code: The ISO 3611-1 country code of the contact's address. If omitted, your + organization's default country code is used. + description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -566,9 +569,9 @@ async def create( *, address_line1: str, company_name: str, - country_code: str, address_line2: str | Omit = omit, city: str | Omit = omit, + country_code: str | Omit = omit, description: str | Omit = omit, email: str | Omit = omit, first_name: str | Omit = omit, @@ -607,12 +610,13 @@ async def create( Args: address_line1: The first line of the contact's address. - country_code: The ISO 3611-1 country code of the contact's address. - address_line2: Second line of the contact's address, if applicable. city: The city of the contact's address. + country_code: The ISO 3611-1 country code of the contact's address. If omitted, your + organization's default country code is used. + description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -652,16 +656,16 @@ async def create( """ ... - @required_args(["address_line1", "country_code", "first_name"], ["address_line1", "company_name", "country_code"]) + @required_args(["address_line1", "first_name"], ["address_line1", "company_name"]) async def create( self, *, address_line1: str, - country_code: str, first_name: str | Omit = omit, address_line2: str | Omit = omit, city: str | Omit = omit, company_name: str | Omit = omit, + country_code: str | Omit = omit, description: str | Omit = omit, email: str | Omit = omit, force_verified_status: bool | Omit = omit, @@ -685,11 +689,11 @@ async def create( body=await async_maybe_transform( { "address_line1": address_line1, - "country_code": country_code, "first_name": first_name, "address_line2": address_line2, "city": city, "company_name": company_name, + "country_code": country_code, "description": description, "email": email, "force_verified_status": force_verified_status, diff --git a/src/postgrid/resources/print_mail/events.py b/src/postgrid/resources/print_mail/events.py index 36dece2..876f3c2 100644 --- a/src/postgrid/resources/print_mail/events.py +++ b/src/postgrid/resources/print_mail/events.py @@ -77,6 +77,9 @@ def list( "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] ] | Omit = omit, @@ -174,6 +177,9 @@ def list( "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] ] | Omit = omit, diff --git a/src/postgrid/resources/print_mail/letters.py b/src/postgrid/resources/print_mail/letters.py index 002920e..bfc75c2 100644 --- a/src/postgrid/resources/print_mail/letters.py +++ b/src/postgrid/resources/print_mail/letters.py @@ -142,16 +142,30 @@ def create( upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. html: The HTML content for the letter. You can supply _either_ this or `template` but not both. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. address_placement: Enum representing the placement of the address on the letter. @@ -284,16 +298,30 @@ def create( upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. template: The template ID for the letter. You can supply _either_ this or `html` but not both. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. address_placement: Enum representing the placement of the address on the letter. @@ -426,15 +454,29 @@ def create( upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. pdf: A URL pointing to a PDF file for the letter or the PDF file itself. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. address_placement: Enum representing the placement of the address on the letter. @@ -937,16 +979,30 @@ async def create( upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. html: The HTML content for the letter. You can supply _either_ this or `template` but not both. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. address_placement: Enum representing the placement of the address on the letter. @@ -1079,16 +1135,30 @@ async def create( upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. template: The template ID for the letter. You can supply _either_ this or `html` but not both. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. address_placement: Enum representing the placement of the address on the letter. @@ -1221,15 +1291,29 @@ async def create( upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. pdf: A URL pointing to a PDF file for the letter or the PDF file itself. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. address_placement: Enum representing the placement of the address on the letter. diff --git a/src/postgrid/resources/print_mail/postcards.py b/src/postgrid/resources/print_mail/postcards.py index c023d95..e0a2d0e 100644 --- a/src/postgrid/resources/print_mail/postcards.py +++ b/src/postgrid/resources/print_mail/postcards.py @@ -140,17 +140,30 @@ def create( size: Enum representing the supported postcard sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. Unlike other order types, the sender - address is optional for postcards. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. mailing_class: The mailing class of this order. If not provided, automatically set to `first_class`. @@ -271,17 +284,30 @@ def create( size: Enum representing the supported postcard sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. Unlike other order types, the sender - address is optional for postcards. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. mailing_class: The mailing class of this order. If not provided, automatically set to `first_class`. @@ -398,17 +424,30 @@ def create( size: Enum representing the supported postcard sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. Unlike other order types, the sender - address is optional for postcards. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. mailing_class: The mailing class of this order. If not provided, automatically set to `first_class`. @@ -526,17 +565,30 @@ def create( size: Enum representing the supported postcard sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. Unlike other order types, the sender - address is optional for postcards. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. mailing_class: The mailing class of this order. If not provided, automatically set to `first_class`. @@ -1028,17 +1080,30 @@ async def create( size: Enum representing the supported postcard sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. Unlike other order types, the sender - address is optional for postcards. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. mailing_class: The mailing class of this order. If not provided, automatically set to `first_class`. @@ -1159,17 +1224,30 @@ async def create( size: Enum representing the supported postcard sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. Unlike other order types, the sender - address is optional for postcards. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. mailing_class: The mailing class of this order. If not provided, automatically set to `first_class`. @@ -1286,17 +1364,30 @@ async def create( size: Enum representing the supported postcard sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. Unlike other order types, the sender - address is optional for postcards. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. mailing_class: The mailing class of this order. If not provided, automatically set to `first_class`. @@ -1414,17 +1505,30 @@ async def create( size: Enum representing the supported postcard sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. Unlike other order types, the sender - address is optional for postcards. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. mailing_class: The mailing class of this order. If not provided, automatically set to `first_class`. diff --git a/src/postgrid/resources/print_mail/return_envelopes/return_envelopes.py b/src/postgrid/resources/print_mail/return_envelopes/return_envelopes.py index 481bcd0..9bc6108 100644 --- a/src/postgrid/resources/print_mail/return_envelopes/return_envelopes.py +++ b/src/postgrid/resources/print_mail/return_envelopes/return_envelopes.py @@ -98,8 +98,16 @@ def create( `return_envelope_already_exists_error`. Args: - to: A contact ID or a contact object containing the address that will be printed - onto the return envelope. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -284,8 +292,16 @@ async def create( `return_envelope_already_exists_error`. Args: - to: A contact ID or a contact object containing the address that will be printed - onto the return envelope. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. diff --git a/src/postgrid/resources/print_mail/self_mailers.py b/src/postgrid/resources/print_mail/self_mailers.py index 5abfacf..7cbbcab 100644 --- a/src/postgrid/resources/print_mail/self_mailers.py +++ b/src/postgrid/resources/print_mail/self_mailers.py @@ -121,8 +121,16 @@ def create( this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. inside_html: The HTML content for the inside of the self-mailer. You can supply _either_ this or `insideTemplate` but not both. @@ -132,10 +140,16 @@ def create( size: Enum representing the supported self-mailer sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -226,8 +240,16 @@ def create( this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. inside_template: The template ID for the inside of the self-mailer. You can supply _either_ this or `insideHTML` but not both. @@ -237,10 +259,16 @@ def create( size: Enum representing the supported self-mailer sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -330,8 +358,16 @@ def create( this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. pdf: A URL pointing to a 2 page PDF file. The first page is the inside of the self-mailer and the second page is the outside (where the address will be @@ -339,10 +375,16 @@ def create( size: Enum representing the supported self-mailer sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -432,8 +474,16 @@ def create( this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. pdf: Represents a raw file upload. Sending the actual file requires a `multipart/form-data` request; in `application/json` request bodies, supply a @@ -441,10 +491,16 @@ def create( size: Enum representing the supported self-mailer sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -856,8 +912,16 @@ async def create( this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. inside_html: The HTML content for the inside of the self-mailer. You can supply _either_ this or `insideTemplate` but not both. @@ -867,10 +931,16 @@ async def create( size: Enum representing the supported self-mailer sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -961,8 +1031,16 @@ async def create( this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. inside_template: The template ID for the inside of the self-mailer. You can supply _either_ this or `insideHTML` but not both. @@ -972,10 +1050,16 @@ async def create( size: Enum representing the supported self-mailer sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -1065,8 +1149,16 @@ async def create( this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. pdf: A URL pointing to a 2 page PDF file. The first page is the inside of the self-mailer and the second page is the outside (where the address will be @@ -1074,10 +1166,16 @@ async def create( size: Enum representing the supported self-mailer sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -1167,8 +1265,16 @@ async def create( this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to`. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. pdf: Represents a raw file upload. Sending the actual file requires a `multipart/form-data` request; in `application/json` request bodies, supply a @@ -1176,10 +1282,16 @@ async def create( size: Enum representing the supported self-mailer sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. diff --git a/src/postgrid/resources/print_mail/snap_packs.py b/src/postgrid/resources/print_mail/snap_packs.py index 3f91088..ad23df8 100644 --- a/src/postgrid/resources/print_mail/snap_packs.py +++ b/src/postgrid/resources/print_mail/snap_packs.py @@ -129,8 +129,16 @@ def create( use this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to` contact. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. inside_html: The HTML content for the inside of the snap pack. You can supply _either_ this or `insideTemplate` but not both. @@ -140,10 +148,16 @@ def create( size: Enum representing the supported snap pack sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -233,8 +247,16 @@ def create( use this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to` contact. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. inside_template: The template ID for the inside of the snap pack. You can supply _either_ this or `insideHTML` but not both. @@ -244,10 +266,16 @@ def create( size: Enum representing the supported snap pack sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -336,18 +364,32 @@ def create( use this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to` contact. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. pdf: A URL or a multipart-uploaded two-page PDF (first page is the outside, second page is the inside) that matches the selected snap pack size. size: Enum representing the supported snap pack sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -780,8 +822,16 @@ async def create( use this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to` contact. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. inside_html: The HTML content for the inside of the snap pack. You can supply _either_ this or `insideTemplate` but not both. @@ -791,10 +841,16 @@ async def create( size: Enum representing the supported snap pack sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -884,8 +940,16 @@ async def create( use this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to` contact. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. inside_template: The template ID for the inside of the snap pack. You can supply _either_ this or `insideHTML` but not both. @@ -895,10 +959,16 @@ async def create( size: Enum representing the supported snap pack sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. @@ -987,18 +1057,32 @@ async def create( use this content type to upload the PDF file directly. Args: - from_: The contact information of the sender. You can pass contact information inline - here just like you can for the `to` contact. + from_: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. pdf: A URL or a multipart-uploaded two-page PDF (first page is the outside, second page is the inside) that matches the selected snap pack size. size: Enum representing the supported snap pack sizes. - to: The recipient of this order. You can either supply the contact information - inline here or provide a contact ID. PostGrid will automatically deduplicate - contacts regardless of whether you provide the information inline here or call - the contact creation endpoint. + to: + A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. description: An optional string describing this resource. Will be visible in the API and the dashboard. diff --git a/src/postgrid/resources/print_mail/webhooks.py b/src/postgrid/resources/print_mail/webhooks.py index 17b5223..33c7fbd 100644 --- a/src/postgrid/resources/print_mail/webhooks.py +++ b/src/postgrid/resources/print_mail/webhooks.py @@ -99,6 +99,9 @@ def create( "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] ], url: str, @@ -216,6 +219,9 @@ def update( "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] ] | Omit = omit, @@ -486,6 +492,9 @@ async def create( "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] ], url: str, @@ -603,6 +612,9 @@ async def update( "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] ] | Omit = omit, diff --git a/src/postgrid/types/print_mail/box_create_params.py b/src/postgrid/types/print_mail/box_create_params.py index ffc08c8..be20510 100644 --- a/src/postgrid/types/print_mail/box_create_params.py +++ b/src/postgrid/types/print_mail/box_create_params.py @@ -21,17 +21,27 @@ class BoxCreateParams(TypedDict, total=False): """ from_: Required[Annotated[From, PropertyInfo(alias="from")]] - """The 'from' (sender) of the entire box. + """A contact provided in one of two ways: - Accepts inline ContactCreate or a contactID. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ to: Required[To] - """The recipient of this order. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str @@ -119,6 +129,16 @@ class Cheque(_ChequeReservedKeywords, total=False): """The cheque number.""" to: Required[ChequeTo] + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. + """ logo_url: Annotated[str, PropertyInfo(alias="logoURL")] """A URL to a logo for the cheque (optional).""" diff --git a/src/postgrid/types/print_mail/cheque_create_params.py b/src/postgrid/types/print_mail/cheque_create_params.py index 94f6132..7b52402 100644 --- a/src/postgrid/types/print_mail/cheque_create_params.py +++ b/src/postgrid/types/print_mail/cheque_create_params.py @@ -24,17 +24,27 @@ class ChequeCreateParams(TypedDict, total=False): """The bank account (ID) associated with the cheque.""" from_: Required[Annotated[From, PropertyInfo(alias="from")]] - """The contact information of the sender. + """A contact provided in one of two ways: - You can pass contact information inline here just like you can for the `to`. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ to: Required[To] - """The recipient of this order. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ currency_code: Annotated[Literal["USD", "CAD"], PropertyInfo(alias="currencyCode")] @@ -154,12 +164,15 @@ class ChequeCreateParams(TypedDict, total=False): """ redirect_to: Annotated[RedirectTo, PropertyInfo(alias="redirectTo")] - """ - Providing this inserts a blank page at the start of the cheque with the - recipient you provide here. This leaves the cheque that follows intact, which - means you can use this to intercept at cheque at the redirected address and then - mail it forward to the final recipient yourself. One use case for this is - signing cheques at your office before mailing them out yourself. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ return_envelope: Annotated[str, PropertyInfo(alias="returnEnvelope")] diff --git a/src/postgrid/types/print_mail/contact_create_params.py b/src/postgrid/types/print_mail/contact_create_params.py index 0967e58..ca31201 100644 --- a/src/postgrid/types/print_mail/contact_create_params.py +++ b/src/postgrid/types/print_mail/contact_create_params.py @@ -14,9 +14,6 @@ class ContactCreateWithFirstName(TypedDict, total=False): address_line1: Required[Annotated[str, PropertyInfo(alias="addressLine1")]] """The first line of the contact's address.""" - country_code: Required[Annotated[str, PropertyInfo(alias="countryCode")]] - """The ISO 3611-1 country code of the contact's address.""" - first_name: Required[Annotated[str, PropertyInfo(alias="firstName")]] address_line2: Annotated[str, PropertyInfo(alias="addressLine2")] @@ -28,6 +25,12 @@ class ContactCreateWithFirstName(TypedDict, total=False): company_name: Annotated[str, PropertyInfo(alias="companyName")] """Company name of the contact.""" + country_code: Annotated[str, PropertyInfo(alias="countryCode")] + """The ISO 3611-1 country code of the contact's address. + + If omitted, your organization's default country code is used. + """ + description: str """An optional string describing this resource. @@ -81,15 +84,18 @@ class ContactCreateWithCompanyName(TypedDict, total=False): company_name: Required[Annotated[str, PropertyInfo(alias="companyName")]] - country_code: Required[Annotated[str, PropertyInfo(alias="countryCode")]] - """The ISO 3611-1 country code of the contact's address.""" - address_line2: Annotated[str, PropertyInfo(alias="addressLine2")] """Second line of the contact's address, if applicable.""" city: str """The city of the contact's address.""" + country_code: Annotated[str, PropertyInfo(alias="countryCode")] + """The ISO 3611-1 country code of the contact's address. + + If omitted, your organization's default country code is used. + """ + description: str """An optional string describing this resource. diff --git a/src/postgrid/types/print_mail/contact_create_with_company_name_param.py b/src/postgrid/types/print_mail/contact_create_with_company_name_param.py index 303860c..5d91381 100644 --- a/src/postgrid/types/print_mail/contact_create_with_company_name_param.py +++ b/src/postgrid/types/print_mail/contact_create_with_company_name_param.py @@ -16,15 +16,18 @@ class ContactCreateWithCompanyNameParam(TypedDict, total=False): company_name: Required[Annotated[str, PropertyInfo(alias="companyName")]] - country_code: Required[Annotated[str, PropertyInfo(alias="countryCode")]] - """The ISO 3611-1 country code of the contact's address.""" - address_line2: Annotated[str, PropertyInfo(alias="addressLine2")] """Second line of the contact's address, if applicable.""" city: str """The city of the contact's address.""" + country_code: Annotated[str, PropertyInfo(alias="countryCode")] + """The ISO 3611-1 country code of the contact's address. + + If omitted, your organization's default country code is used. + """ + description: str """An optional string describing this resource. diff --git a/src/postgrid/types/print_mail/contact_create_with_first_name_param.py b/src/postgrid/types/print_mail/contact_create_with_first_name_param.py index c1b6c65..c8352c5 100644 --- a/src/postgrid/types/print_mail/contact_create_with_first_name_param.py +++ b/src/postgrid/types/print_mail/contact_create_with_first_name_param.py @@ -14,9 +14,6 @@ class ContactCreateWithFirstNameParam(TypedDict, total=False): address_line1: Required[Annotated[str, PropertyInfo(alias="addressLine1")]] """The first line of the contact's address.""" - country_code: Required[Annotated[str, PropertyInfo(alias="countryCode")]] - """The ISO 3611-1 country code of the contact's address.""" - first_name: Required[Annotated[str, PropertyInfo(alias="firstName")]] address_line2: Annotated[str, PropertyInfo(alias="addressLine2")] @@ -28,6 +25,12 @@ class ContactCreateWithFirstNameParam(TypedDict, total=False): company_name: Annotated[str, PropertyInfo(alias="companyName")] """Company name of the contact.""" + country_code: Annotated[str, PropertyInfo(alias="countryCode")] + """The ISO 3611-1 country code of the contact's address. + + If omitted, your organization's default country code is used. + """ + description: str """An optional string describing this resource. diff --git a/src/postgrid/types/print_mail/event.py b/src/postgrid/types/print_mail/event.py index 8fa34ec..be32502 100644 --- a/src/postgrid/types/print_mail/event.py +++ b/src/postgrid/types/print_mail/event.py @@ -44,6 +44,9 @@ class Event(BaseModel): "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] """The type of event that a Webhook can listen for and that an Event represents.""" diff --git a/src/postgrid/types/print_mail/event_list_params.py b/src/postgrid/types/print_mail/event_list_params.py index 9b30038..731b665 100644 --- a/src/postgrid/types/print_mail/event_list_params.py +++ b/src/postgrid/types/print_mail/event_list_params.py @@ -33,6 +33,9 @@ class EventListParams(TypedDict, total=False): "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] ] """An optional list of event types to filter the results by.""" diff --git a/src/postgrid/types/print_mail/letter_create_params.py b/src/postgrid/types/print_mail/letter_create_params.py index b46b309..85ef091 100644 --- a/src/postgrid/types/print_mail/letter_create_params.py +++ b/src/postgrid/types/print_mail/letter_create_params.py @@ -31,9 +31,15 @@ class LetterCreateWithHTML(TypedDict, total=False): from_: Required[Annotated[LetterCreateWithHTMLFrom, PropertyInfo(alias="from")]] - """The contact information of the sender. + """A contact provided in one of two ways: - You can pass contact information inline here just like you can for the `to`. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ html: Required[str] @@ -43,11 +49,15 @@ class LetterCreateWithHTML(TypedDict, total=False): """ to: Required[LetterCreateWithHTMLTo] - """The recipient of this order. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ address_placement: Annotated[AddressPlacement, PropertyInfo(alias="addressPlacement")] @@ -169,9 +179,15 @@ class LetterCreateWithHTML(TypedDict, total=False): class LetterCreateWithTemplate(TypedDict, total=False): from_: Required[Annotated[LetterCreateWithTemplateFrom, PropertyInfo(alias="from")]] - """The contact information of the sender. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can pass contact information inline here just like you can for the `to`. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ template: Required[str] @@ -181,11 +197,15 @@ class LetterCreateWithTemplate(TypedDict, total=False): """ to: Required[LetterCreateWithTemplateTo] - """The recipient of this order. + """A contact provided in one of two ways: - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ address_placement: Annotated[AddressPlacement, PropertyInfo(alias="addressPlacement")] @@ -307,20 +327,30 @@ class LetterCreateWithTemplate(TypedDict, total=False): class LetterCreateWithPdf(TypedDict, total=False): from_: Required[Annotated[LetterCreateWithPdfFrom, PropertyInfo(alias="from")]] - """The contact information of the sender. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can pass contact information inline here just like you can for the `to`. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ pdf: Required[Union[str, FileTypes]] """A URL pointing to a PDF file for the letter or the PDF file itself.""" to: Required[LetterCreateWithPdfTo] - """The recipient of this order. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ address_placement: Annotated[AddressPlacement, PropertyInfo(alias="addressPlacement")] diff --git a/src/postgrid/types/print_mail/postcard_create_params.py b/src/postgrid/types/print_mail/postcard_create_params.py index f848530..05db61e 100644 --- a/src/postgrid/types/print_mail/postcard_create_params.py +++ b/src/postgrid/types/print_mail/postcard_create_params.py @@ -45,11 +45,15 @@ class PostcardCreateWithHTML(TypedDict, total=False): """Enum representing the supported postcard sizes.""" to: Required[PostcardCreateWithHTMLTo] - """The recipient of this order. + """A contact provided in one of two ways: - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str @@ -59,10 +63,15 @@ class PostcardCreateWithHTML(TypedDict, total=False): """ from_: Annotated[PostcardCreateWithHTMLFrom, PropertyInfo(alias="from")] - """The contact information of the sender. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can pass contact information inline here just like you can for the `to`. - Unlike other order types, the sender address is optional for postcards. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ mailing_class: Annotated[ @@ -169,11 +178,15 @@ class PostcardCreateWithTemplate(TypedDict, total=False): """Enum representing the supported postcard sizes.""" to: Required[PostcardCreateWithTemplateTo] - """The recipient of this order. + """A contact provided in one of two ways: - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str @@ -183,10 +196,15 @@ class PostcardCreateWithTemplate(TypedDict, total=False): """ from_: Annotated[PostcardCreateWithTemplateFrom, PropertyInfo(alias="from")] - """The contact information of the sender. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can pass contact information inline here just like you can for the `to`. - Unlike other order types, the sender address is optional for postcards. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ mailing_class: Annotated[ @@ -290,11 +308,15 @@ class PostcardCreateWithPdfurl(TypedDict, total=False): """Enum representing the supported postcard sizes.""" to: Required[PostcardCreateWithPdfurlTo] - """The recipient of this order. + """A contact provided in one of two ways: - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str @@ -304,10 +326,15 @@ class PostcardCreateWithPdfurl(TypedDict, total=False): """ from_: Annotated[PostcardCreateWithPdfurlFrom, PropertyInfo(alias="from")] - """The contact information of the sender. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can pass contact information inline here just like you can for the `to`. - Unlike other order types, the sender address is optional for postcards. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ mailing_class: Annotated[ @@ -409,11 +436,15 @@ class PostcardCreateWithPdfFile(TypedDict, total=False): """Enum representing the supported postcard sizes.""" to: Required[PostcardCreateWithPdfFileTo] - """The recipient of this order. + """A contact provided in one of two ways: - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str @@ -423,10 +454,15 @@ class PostcardCreateWithPdfFile(TypedDict, total=False): """ from_: Annotated[PostcardCreateWithPdfFileFrom, PropertyInfo(alias="from")] - """The contact information of the sender. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can pass contact information inline here just like you can for the `to`. - Unlike other order types, the sender address is optional for postcards. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ mailing_class: Annotated[ diff --git a/src/postgrid/types/print_mail/return_envelope_create_params.py b/src/postgrid/types/print_mail/return_envelope_create_params.py index 43772fc..8eb1230 100644 --- a/src/postgrid/types/print_mail/return_envelope_create_params.py +++ b/src/postgrid/types/print_mail/return_envelope_create_params.py @@ -14,9 +14,15 @@ class ReturnEnvelopeCreateParams(TypedDict, total=False): to: Required[To] - """ - A contact ID or a contact object containing the address that will be printed - onto the return envelope. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str diff --git a/src/postgrid/types/print_mail/self_mailer_create_params.py b/src/postgrid/types/print_mail/self_mailer_create_params.py index 957e9f2..8361882 100644 --- a/src/postgrid/types/print_mail/self_mailer_create_params.py +++ b/src/postgrid/types/print_mail/self_mailer_create_params.py @@ -30,9 +30,15 @@ class SelfMailerCreateWithHTML(TypedDict, total=False): from_: Required[Annotated[SelfMailerCreateWithHTMLFrom, PropertyInfo(alias="from")]] - """The contact information of the sender. + """A contact provided in one of two ways: - You can pass contact information inline here just like you can for the `to`. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ inside_html: Required[Annotated[str, PropertyInfo(alias="insideHTML")]] @@ -51,11 +57,15 @@ class SelfMailerCreateWithHTML(TypedDict, total=False): """Enum representing the supported self-mailer sizes.""" to: Required[SelfMailerCreateWithHTMLTo] - """The recipient of this order. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str @@ -128,9 +138,15 @@ class SelfMailerCreateWithHTML(TypedDict, total=False): class SelfMailerCreateWithTemplate(TypedDict, total=False): from_: Required[Annotated[SelfMailerCreateWithTemplateFrom, PropertyInfo(alias="from")]] - """The contact information of the sender. + """A contact provided in one of two ways: - You can pass contact information inline here just like you can for the `to`. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ inside_template: Required[Annotated[str, PropertyInfo(alias="insideTemplate")]] @@ -149,11 +165,15 @@ class SelfMailerCreateWithTemplate(TypedDict, total=False): """Enum representing the supported self-mailer sizes.""" to: Required[SelfMailerCreateWithTemplateTo] - """The recipient of this order. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str @@ -230,9 +250,15 @@ class SelfMailerCreateWithTemplate(TypedDict, total=False): class SelfMailerCreateWithPdfurl(TypedDict, total=False): from_: Required[Annotated[SelfMailerCreateWithPdfurlFrom, PropertyInfo(alias="from")]] - """The contact information of the sender. + """A contact provided in one of two ways: - You can pass contact information inline here just like you can for the `to`. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ pdf: Required[str] @@ -246,11 +272,15 @@ class SelfMailerCreateWithPdfurl(TypedDict, total=False): """Enum representing the supported self-mailer sizes.""" to: Required[SelfMailerCreateWithPdfurlTo] - """The recipient of this order. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str @@ -325,9 +355,15 @@ class SelfMailerCreateWithPdfurl(TypedDict, total=False): class SelfMailerCreateWithPdfFile(TypedDict, total=False): from_: Required[Annotated[SelfMailerCreateWithPdfFileFrom, PropertyInfo(alias="from")]] - """The contact information of the sender. + """A contact provided in one of two ways: - You can pass contact information inline here just like you can for the `to`. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ pdf: Required[FileTypes] @@ -341,11 +377,15 @@ class SelfMailerCreateWithPdfFile(TypedDict, total=False): """Enum representing the supported self-mailer sizes.""" to: Required[SelfMailerCreateWithPdfFileTo] - """The recipient of this order. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str diff --git a/src/postgrid/types/print_mail/snap_pack_create_params.py b/src/postgrid/types/print_mail/snap_pack_create_params.py index 70975b9..1768be9 100644 --- a/src/postgrid/types/print_mail/snap_pack_create_params.py +++ b/src/postgrid/types/print_mail/snap_pack_create_params.py @@ -27,10 +27,15 @@ class SnapPackCreateWithHTML(TypedDict, total=False): from_: Required[Annotated[SnapPackCreateWithHTMLFrom, PropertyInfo(alias="from")]] - """The contact information of the sender. + """A contact provided in one of two ways: - You can pass contact information inline here just like you can for the `to` - contact. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ inside_html: Required[Annotated[str, PropertyInfo(alias="insideHTML")]] @@ -49,11 +54,15 @@ class SnapPackCreateWithHTML(TypedDict, total=False): """Enum representing the supported snap pack sizes.""" to: Required[SnapPackCreateWithHTMLTo] - """The recipient of this order. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str @@ -126,10 +135,15 @@ class SnapPackCreateWithHTML(TypedDict, total=False): class SnapPackCreateWithTemplate(TypedDict, total=False): from_: Required[Annotated[SnapPackCreateWithTemplateFrom, PropertyInfo(alias="from")]] - """The contact information of the sender. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can pass contact information inline here just like you can for the `to` - contact. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ inside_template: Required[Annotated[str, PropertyInfo(alias="insideTemplate")]] @@ -148,11 +162,15 @@ class SnapPackCreateWithTemplate(TypedDict, total=False): """Enum representing the supported snap pack sizes.""" to: Required[SnapPackCreateWithTemplateTo] - """The recipient of this order. + """A contact provided in one of two ways: - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str @@ -227,10 +245,15 @@ class SnapPackCreateWithTemplate(TypedDict, total=False): class SnapPackCreateWithPdf(TypedDict, total=False): from_: Required[Annotated[SnapPackCreateWithPdfFrom, PropertyInfo(alias="from")]] - """The contact information of the sender. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can pass contact information inline here just like you can for the `to` - contact. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ pdf: Required[Union[str, FileTypes]] @@ -243,11 +266,15 @@ class SnapPackCreateWithPdf(TypedDict, total=False): """Enum representing the supported snap pack sizes.""" to: Required[SnapPackCreateWithPdfTo] - """The recipient of this order. + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). - You can either supply the contact information inline here or provide a contact - ID. PostGrid will automatically deduplicate contacts regardless of whether you - provide the information inline here or call the contact creation endpoint. + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. """ description: str diff --git a/src/postgrid/types/print_mail/virtual_mailbox_create_params.py b/src/postgrid/types/print_mail/virtual_mailbox_create_params.py index 749207c..b3d94e7 100644 --- a/src/postgrid/types/print_mail/virtual_mailbox_create_params.py +++ b/src/postgrid/types/print_mail/virtual_mailbox_create_params.py @@ -30,4 +30,13 @@ class Capabilities(TypedDict, total=False): """If the virtual mailbox should support envelope scans or not.""" forward_mail_to: Annotated[CapabilitiesForwardMailTo, PropertyInfo(alias="forwardMailTo")] - """A contact ID or contact object.""" + """A contact provided in one of two ways: + + - an **inline contact body** with the same fields you would use to create a + contact (there is no need to create the contact first), or + - the **ID of an existing contact** (e.g. `contact_123`). + + You never send the full stored contact object (with `id`, `object`, + `addressStatus`, `createdAt`, etc.) here — that shape is only ever returned in + responses. + """ diff --git a/src/postgrid/types/print_mail/webhook.py b/src/postgrid/types/print_mail/webhook.py index c853cd2..00094ea 100644 --- a/src/postgrid/types/print_mail/webhook.py +++ b/src/postgrid/types/print_mail/webhook.py @@ -42,6 +42,9 @@ class Webhook(BaseModel): "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] ] = FieldInfo(alias="enabledEvents") """The list of event types this webhook listens for.""" diff --git a/src/postgrid/types/print_mail/webhook_create_params.py b/src/postgrid/types/print_mail/webhook_create_params.py index 291373b..84a6486 100644 --- a/src/postgrid/types/print_mail/webhook_create_params.py +++ b/src/postgrid/types/print_mail/webhook_create_params.py @@ -33,6 +33,9 @@ class WebhookCreateParams(TypedDict, total=False): "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] ], PropertyInfo(alias="enabledEvents"), diff --git a/src/postgrid/types/print_mail/webhook_invocation.py b/src/postgrid/types/print_mail/webhook_invocation.py index 3b112d5..757a8f7 100644 --- a/src/postgrid/types/print_mail/webhook_invocation.py +++ b/src/postgrid/types/print_mail/webhook_invocation.py @@ -46,6 +46,9 @@ class WebhookInvocation(BaseModel): "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] """The type of event that a Webhook can listen for and that an Event represents.""" diff --git a/src/postgrid/types/print_mail/webhook_update_params.py b/src/postgrid/types/print_mail/webhook_update_params.py index 4a0af36..609cd76 100644 --- a/src/postgrid/types/print_mail/webhook_update_params.py +++ b/src/postgrid/types/print_mail/webhook_update_params.py @@ -41,6 +41,9 @@ class WebhookUpdateParams(TypedDict, total=False): "campaign.created", "campaign.updated", "virtual_mailbox_item.created", + "postal_statement.created", + "document.created", + "document.updated", ] ], PropertyInfo(alias="enabledEvents"), diff --git a/tests/api_resources/print_mail/test_cheques.py b/tests/api_resources/print_mail/test_cheques.py index 7d4ed28..3a8e435 100644 --- a/tests/api_resources/print_mail/test_cheques.py +++ b/tests/api_resources/print_mail/test_cheques.py @@ -61,11 +61,11 @@ def test_method_create_with_all_params(self, client: PostGrid) -> None: number=123456, redirect_to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -456,11 +456,11 @@ async def test_method_create_with_all_params(self, async_client: AsyncPostGrid) number=123456, redirect_to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, diff --git a/tests/api_resources/print_mail/test_contacts.py b/tests/api_resources/print_mail/test_contacts.py index 5f2bc72..f6b5043 100644 --- a/tests/api_resources/print_mail/test_contacts.py +++ b/tests/api_resources/print_mail/test_contacts.py @@ -23,7 +23,6 @@ class TestContacts: def test_method_create_overload_1(self, client: PostGrid) -> None: contact = client.print_mail.contacts.create( address_line1="addressLine1", - country_code="countryCode", first_name="firstName", ) assert_matches_type(Contact, contact, path=["response"]) @@ -33,11 +32,11 @@ def test_method_create_overload_1(self, client: PostGrid) -> None: def test_method_create_with_all_params_overload_1(self, client: PostGrid) -> None: contact = client.print_mail.contacts.create( address_line1="addressLine1", - country_code="countryCode", first_name="firstName", address_line2="addressLine2", city="city", company_name="companyName", + country_code="countryCode", description="description", email="email", force_verified_status=True, @@ -57,7 +56,6 @@ def test_method_create_with_all_params_overload_1(self, client: PostGrid) -> Non def test_raw_response_create_overload_1(self, client: PostGrid) -> None: response = client.print_mail.contacts.with_raw_response.create( address_line1="addressLine1", - country_code="countryCode", first_name="firstName", ) @@ -71,7 +69,6 @@ def test_raw_response_create_overload_1(self, client: PostGrid) -> None: def test_streaming_response_create_overload_1(self, client: PostGrid) -> None: with client.print_mail.contacts.with_streaming_response.create( address_line1="addressLine1", - country_code="countryCode", first_name="firstName", ) as response: assert not response.is_closed @@ -88,7 +85,6 @@ def test_method_create_overload_2(self, client: PostGrid) -> None: contact = client.print_mail.contacts.create( address_line1="addressLine1", company_name="companyName", - country_code="countryCode", ) assert_matches_type(Contact, contact, path=["response"]) @@ -98,9 +94,9 @@ def test_method_create_with_all_params_overload_2(self, client: PostGrid) -> Non contact = client.print_mail.contacts.create( address_line1="addressLine1", company_name="companyName", - country_code="countryCode", address_line2="addressLine2", city="city", + country_code="countryCode", description="description", email="email", first_name="firstName", @@ -122,7 +118,6 @@ def test_raw_response_create_overload_2(self, client: PostGrid) -> None: response = client.print_mail.contacts.with_raw_response.create( address_line1="addressLine1", company_name="companyName", - country_code="countryCode", ) assert response.is_closed is True @@ -136,7 +131,6 @@ def test_streaming_response_create_overload_2(self, client: PostGrid) -> None: with client.print_mail.contacts.with_streaming_response.create( address_line1="addressLine1", company_name="companyName", - country_code="countryCode", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" @@ -279,7 +273,6 @@ class TestAsyncContacts: async def test_method_create_overload_1(self, async_client: AsyncPostGrid) -> None: contact = await async_client.print_mail.contacts.create( address_line1="addressLine1", - country_code="countryCode", first_name="firstName", ) assert_matches_type(Contact, contact, path=["response"]) @@ -289,11 +282,11 @@ async def test_method_create_overload_1(self, async_client: AsyncPostGrid) -> No async def test_method_create_with_all_params_overload_1(self, async_client: AsyncPostGrid) -> None: contact = await async_client.print_mail.contacts.create( address_line1="addressLine1", - country_code="countryCode", first_name="firstName", address_line2="addressLine2", city="city", company_name="companyName", + country_code="countryCode", description="description", email="email", force_verified_status=True, @@ -313,7 +306,6 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn async def test_raw_response_create_overload_1(self, async_client: AsyncPostGrid) -> None: response = await async_client.print_mail.contacts.with_raw_response.create( address_line1="addressLine1", - country_code="countryCode", first_name="firstName", ) @@ -327,7 +319,6 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncPostGrid) async def test_streaming_response_create_overload_1(self, async_client: AsyncPostGrid) -> None: async with async_client.print_mail.contacts.with_streaming_response.create( address_line1="addressLine1", - country_code="countryCode", first_name="firstName", ) as response: assert not response.is_closed @@ -344,7 +335,6 @@ async def test_method_create_overload_2(self, async_client: AsyncPostGrid) -> No contact = await async_client.print_mail.contacts.create( address_line1="addressLine1", company_name="companyName", - country_code="countryCode", ) assert_matches_type(Contact, contact, path=["response"]) @@ -354,9 +344,9 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn contact = await async_client.print_mail.contacts.create( address_line1="addressLine1", company_name="companyName", - country_code="countryCode", address_line2="addressLine2", city="city", + country_code="countryCode", description="description", email="email", first_name="firstName", @@ -378,7 +368,6 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncPostGrid) response = await async_client.print_mail.contacts.with_raw_response.create( address_line1="addressLine1", company_name="companyName", - country_code="countryCode", ) assert response.is_closed is True @@ -392,7 +381,6 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncPos async with async_client.print_mail.contacts.with_streaming_response.create( address_line1="addressLine1", company_name="companyName", - country_code="countryCode", ) as response: assert not response.is_closed assert response.http_request.headers.get("X-Stainless-Lang") == "python" diff --git a/tests/api_resources/print_mail/test_letters.py b/tests/api_resources/print_mail/test_letters.py index 7592e9f..9986e00 100644 --- a/tests/api_resources/print_mail/test_letters.py +++ b/tests/api_resources/print_mail/test_letters.py @@ -29,13 +29,11 @@ def test_method_create_overload_1(self, client: PostGrid) -> None: letter = client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, html="html", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -47,11 +45,11 @@ def test_method_create_with_all_params_overload_1(self, client: PostGrid) -> Non letter = client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -67,11 +65,11 @@ def test_method_create_with_all_params_overload_1(self, client: PostGrid) -> Non html="html", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -126,13 +124,11 @@ def test_raw_response_create_overload_1(self, client: PostGrid) -> None: response = client.print_mail.letters.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, html="html", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -148,13 +144,11 @@ def test_streaming_response_create_overload_1(self, client: PostGrid) -> None: with client.print_mail.letters.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, html="html", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -172,13 +166,11 @@ def test_method_create_overload_2(self, client: PostGrid) -> None: letter = client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, template="template", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -190,11 +182,11 @@ def test_method_create_with_all_params_overload_2(self, client: PostGrid) -> Non letter = client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -210,11 +202,11 @@ def test_method_create_with_all_params_overload_2(self, client: PostGrid) -> Non template="template", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -269,13 +261,11 @@ def test_raw_response_create_overload_2(self, client: PostGrid) -> None: response = client.print_mail.letters.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, template="template", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -291,13 +281,11 @@ def test_streaming_response_create_overload_2(self, client: PostGrid) -> None: with client.print_mail.letters.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, template="template", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -315,13 +303,11 @@ def test_method_create_overload_3(self, client: PostGrid) -> None: letter = client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -333,11 +319,11 @@ def test_method_create_with_all_params_overload_3(self, client: PostGrid) -> Non letter = client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -353,11 +339,11 @@ def test_method_create_with_all_params_overload_3(self, client: PostGrid) -> Non pdf="https://example.com", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -412,13 +398,11 @@ def test_raw_response_create_overload_3(self, client: PostGrid) -> None: response = client.print_mail.letters.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -434,13 +418,11 @@ def test_streaming_response_create_overload_3(self, client: PostGrid) -> None: with client.print_mail.letters.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -716,13 +698,11 @@ async def test_method_create_overload_1(self, async_client: AsyncPostGrid) -> No letter = await async_client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, html="html", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -734,11 +714,11 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn letter = await async_client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -754,11 +734,11 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn html="html", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -813,13 +793,11 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncPostGrid) response = await async_client.print_mail.letters.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, html="html", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -835,13 +813,11 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncPos async with async_client.print_mail.letters.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, html="html", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -859,13 +835,11 @@ async def test_method_create_overload_2(self, async_client: AsyncPostGrid) -> No letter = await async_client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, template="template", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -877,11 +851,11 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn letter = await async_client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -897,11 +871,11 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn template="template", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -956,13 +930,11 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncPostGrid) response = await async_client.print_mail.letters.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, template="template", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -978,13 +950,11 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncPos async with async_client.print_mail.letters.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, template="template", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -1002,13 +972,11 @@ async def test_method_create_overload_3(self, async_client: AsyncPostGrid) -> No letter = await async_client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -1020,11 +988,11 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn letter = await async_client.print_mail.letters.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -1040,11 +1008,11 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn pdf="https://example.com", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -1099,13 +1067,11 @@ async def test_raw_response_create_overload_3(self, async_client: AsyncPostGrid) response = await async_client.print_mail.letters.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -1121,13 +1087,11 @@ async def test_streaming_response_create_overload_3(self, async_client: AsyncPos async with async_client.print_mail.letters.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: diff --git a/tests/api_resources/print_mail/test_postcards.py b/tests/api_resources/print_mail/test_postcards.py index c661d0c..f88d81c 100644 --- a/tests/api_resources/print_mail/test_postcards.py +++ b/tests/api_resources/print_mail/test_postcards.py @@ -32,7 +32,6 @@ def test_method_create_overload_1(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -47,11 +46,11 @@ def test_method_create_with_all_params_overload_1(self, client: PostGrid) -> Non size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -67,11 +66,11 @@ def test_method_create_with_all_params_overload_1(self, client: PostGrid) -> Non description="description", from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -102,7 +101,6 @@ def test_raw_response_create_overload_1(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -121,7 +119,6 @@ def test_streaming_response_create_overload_1(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -142,7 +139,6 @@ def test_method_create_overload_2(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -157,11 +153,11 @@ def test_method_create_with_all_params_overload_2(self, client: PostGrid) -> Non size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -177,11 +173,11 @@ def test_method_create_with_all_params_overload_2(self, client: PostGrid) -> Non description="description", from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -212,7 +208,6 @@ def test_raw_response_create_overload_2(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -231,7 +226,6 @@ def test_streaming_response_create_overload_2(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -251,7 +245,6 @@ def test_method_create_overload_3(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -265,11 +258,11 @@ def test_method_create_with_all_params_overload_3(self, client: PostGrid) -> Non size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -285,11 +278,11 @@ def test_method_create_with_all_params_overload_3(self, client: PostGrid) -> Non description="description", from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -319,7 +312,6 @@ def test_raw_response_create_overload_3(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -337,7 +329,6 @@ def test_streaming_response_create_overload_3(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -357,7 +348,6 @@ def test_method_create_overload_4(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -371,11 +361,11 @@ def test_method_create_with_all_params_overload_4(self, client: PostGrid) -> Non size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -391,11 +381,11 @@ def test_method_create_with_all_params_overload_4(self, client: PostGrid) -> Non description="description", from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -425,7 +415,6 @@ def test_raw_response_create_overload_4(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -443,7 +432,6 @@ def test_streaming_response_create_overload_4(self, client: PostGrid) -> None: size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -722,7 +710,6 @@ async def test_method_create_overload_1(self, async_client: AsyncPostGrid) -> No size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -737,11 +724,11 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -757,11 +744,11 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn description="description", from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -792,7 +779,6 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncPostGrid) size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -811,7 +797,6 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncPos size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -832,7 +817,6 @@ async def test_method_create_overload_2(self, async_client: AsyncPostGrid) -> No size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -847,11 +831,11 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -867,11 +851,11 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn description="description", from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -902,7 +886,6 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncPostGrid) size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -921,7 +904,6 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncPos size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -941,7 +923,6 @@ async def test_method_create_overload_3(self, async_client: AsyncPostGrid) -> No size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -955,11 +936,11 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -975,11 +956,11 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn description="description", from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -1009,7 +990,6 @@ async def test_raw_response_create_overload_3(self, async_client: AsyncPostGrid) size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -1027,7 +1007,6 @@ async def test_streaming_response_create_overload_3(self, async_client: AsyncPos size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -1047,7 +1026,6 @@ async def test_method_create_overload_4(self, async_client: AsyncPostGrid) -> No size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -1061,11 +1039,11 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -1081,11 +1059,11 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn description="description", from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -1115,7 +1093,6 @@ async def test_raw_response_create_overload_4(self, async_client: AsyncPostGrid) size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -1133,7 +1110,6 @@ async def test_streaming_response_create_overload_4(self, async_client: AsyncPos size="6x4", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: diff --git a/tests/api_resources/print_mail/test_self_mailers.py b/tests/api_resources/print_mail/test_self_mailers.py index 8463a51..e260461 100644 --- a/tests/api_resources/print_mail/test_self_mailers.py +++ b/tests/api_resources/print_mail/test_self_mailers.py @@ -29,7 +29,6 @@ def test_method_create_overload_1(self, client: PostGrid) -> None: self_mailer = client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -37,7 +36,6 @@ def test_method_create_overload_1(self, client: PostGrid) -> None: size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -49,11 +47,11 @@ def test_method_create_with_all_params_overload_1(self, client: PostGrid) -> Non self_mailer = client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -71,11 +69,11 @@ def test_method_create_with_all_params_overload_1(self, client: PostGrid) -> Non size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -103,7 +101,6 @@ def test_raw_response_create_overload_1(self, client: PostGrid) -> None: response = client.print_mail.self_mailers.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -111,7 +108,6 @@ def test_raw_response_create_overload_1(self, client: PostGrid) -> None: size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -127,7 +123,6 @@ def test_streaming_response_create_overload_1(self, client: PostGrid) -> None: with client.print_mail.self_mailers.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -135,7 +130,6 @@ def test_streaming_response_create_overload_1(self, client: PostGrid) -> None: size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -153,7 +147,6 @@ def test_method_create_overload_2(self, client: PostGrid) -> None: self_mailer = client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -161,7 +154,6 @@ def test_method_create_overload_2(self, client: PostGrid) -> None: size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -173,11 +165,11 @@ def test_method_create_with_all_params_overload_2(self, client: PostGrid) -> Non self_mailer = client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -195,11 +187,11 @@ def test_method_create_with_all_params_overload_2(self, client: PostGrid) -> Non size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -227,7 +219,6 @@ def test_raw_response_create_overload_2(self, client: PostGrid) -> None: response = client.print_mail.self_mailers.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -235,7 +226,6 @@ def test_raw_response_create_overload_2(self, client: PostGrid) -> None: size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -251,7 +241,6 @@ def test_streaming_response_create_overload_2(self, client: PostGrid) -> None: with client.print_mail.self_mailers.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -259,7 +248,6 @@ def test_streaming_response_create_overload_2(self, client: PostGrid) -> None: size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -277,14 +265,12 @@ def test_method_create_overload_3(self, client: PostGrid) -> None: self_mailer = client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -296,11 +282,11 @@ def test_method_create_with_all_params_overload_3(self, client: PostGrid) -> Non self_mailer = client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -317,11 +303,11 @@ def test_method_create_with_all_params_overload_3(self, client: PostGrid) -> Non size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -349,14 +335,12 @@ def test_raw_response_create_overload_3(self, client: PostGrid) -> None: response = client.print_mail.self_mailers.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -372,14 +356,12 @@ def test_streaming_response_create_overload_3(self, client: PostGrid) -> None: with client.print_mail.self_mailers.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -397,14 +379,12 @@ def test_method_create_overload_4(self, client: PostGrid) -> None: self_mailer = client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf=b"Example data", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -416,11 +396,11 @@ def test_method_create_with_all_params_overload_4(self, client: PostGrid) -> Non self_mailer = client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -437,11 +417,11 @@ def test_method_create_with_all_params_overload_4(self, client: PostGrid) -> Non size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -469,14 +449,12 @@ def test_raw_response_create_overload_4(self, client: PostGrid) -> None: response = client.print_mail.self_mailers.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf=b"Example data", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -492,14 +470,12 @@ def test_streaming_response_create_overload_4(self, client: PostGrid) -> None: with client.print_mail.self_mailers.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf=b"Example data", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -729,7 +705,6 @@ async def test_method_create_overload_1(self, async_client: AsyncPostGrid) -> No self_mailer = await async_client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -737,7 +712,6 @@ async def test_method_create_overload_1(self, async_client: AsyncPostGrid) -> No size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -749,11 +723,11 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn self_mailer = await async_client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -771,11 +745,11 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -803,7 +777,6 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncPostGrid) response = await async_client.print_mail.self_mailers.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -811,7 +784,6 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncPostGrid) size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -827,7 +799,6 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncPos async with async_client.print_mail.self_mailers.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -835,7 +806,6 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncPos size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -853,7 +823,6 @@ async def test_method_create_overload_2(self, async_client: AsyncPostGrid) -> No self_mailer = await async_client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -861,7 +830,6 @@ async def test_method_create_overload_2(self, async_client: AsyncPostGrid) -> No size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -873,11 +841,11 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn self_mailer = await async_client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -895,11 +863,11 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -927,7 +895,6 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncPostGrid) response = await async_client.print_mail.self_mailers.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -935,7 +902,6 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncPostGrid) size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -951,7 +917,6 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncPos async with async_client.print_mail.self_mailers.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -959,7 +924,6 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncPos size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -977,14 +941,12 @@ async def test_method_create_overload_3(self, async_client: AsyncPostGrid) -> No self_mailer = await async_client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -996,11 +958,11 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn self_mailer = await async_client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -1017,11 +979,11 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -1049,14 +1011,12 @@ async def test_raw_response_create_overload_3(self, async_client: AsyncPostGrid) response = await async_client.print_mail.self_mailers.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -1072,14 +1032,12 @@ async def test_streaming_response_create_overload_3(self, async_client: AsyncPos async with async_client.print_mail.self_mailers.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -1097,14 +1055,12 @@ async def test_method_create_overload_4(self, async_client: AsyncPostGrid) -> No self_mailer = await async_client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf=b"Example data", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -1116,11 +1072,11 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn self_mailer = await async_client.print_mail.self_mailers.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -1137,11 +1093,11 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -1169,14 +1125,12 @@ async def test_raw_response_create_overload_4(self, async_client: AsyncPostGrid) response = await async_client.print_mail.self_mailers.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf=b"Example data", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -1192,14 +1146,12 @@ async def test_streaming_response_create_overload_4(self, async_client: AsyncPos async with async_client.print_mail.self_mailers.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf=b"Example data", size="8.5x11_bifold", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: diff --git a/tests/api_resources/print_mail/test_snap_packs.py b/tests/api_resources/print_mail/test_snap_packs.py index e4dfdf0..ba02a9a 100644 --- a/tests/api_resources/print_mail/test_snap_packs.py +++ b/tests/api_resources/print_mail/test_snap_packs.py @@ -29,7 +29,6 @@ def test_method_create_overload_1(self, client: PostGrid) -> None: snap_pack = client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -37,7 +36,6 @@ def test_method_create_overload_1(self, client: PostGrid) -> None: size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -49,11 +47,11 @@ def test_method_create_with_all_params_overload_1(self, client: PostGrid) -> Non snap_pack = client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -71,11 +69,11 @@ def test_method_create_with_all_params_overload_1(self, client: PostGrid) -> Non size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -103,7 +101,6 @@ def test_raw_response_create_overload_1(self, client: PostGrid) -> None: response = client.print_mail.snap_packs.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -111,7 +108,6 @@ def test_raw_response_create_overload_1(self, client: PostGrid) -> None: size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -127,7 +123,6 @@ def test_streaming_response_create_overload_1(self, client: PostGrid) -> None: with client.print_mail.snap_packs.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -135,7 +130,6 @@ def test_streaming_response_create_overload_1(self, client: PostGrid) -> None: size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -153,7 +147,6 @@ def test_method_create_overload_2(self, client: PostGrid) -> None: snap_pack = client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -161,7 +154,6 @@ def test_method_create_overload_2(self, client: PostGrid) -> None: size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -173,11 +165,11 @@ def test_method_create_with_all_params_overload_2(self, client: PostGrid) -> Non snap_pack = client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -195,11 +187,11 @@ def test_method_create_with_all_params_overload_2(self, client: PostGrid) -> Non size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -227,7 +219,6 @@ def test_raw_response_create_overload_2(self, client: PostGrid) -> None: response = client.print_mail.snap_packs.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -235,7 +226,6 @@ def test_raw_response_create_overload_2(self, client: PostGrid) -> None: size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -251,7 +241,6 @@ def test_streaming_response_create_overload_2(self, client: PostGrid) -> None: with client.print_mail.snap_packs.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -259,7 +248,6 @@ def test_streaming_response_create_overload_2(self, client: PostGrid) -> None: size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -277,14 +265,12 @@ def test_method_create_overload_3(self, client: PostGrid) -> None: snap_pack = client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -296,11 +282,11 @@ def test_method_create_with_all_params_overload_3(self, client: PostGrid) -> Non snap_pack = client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -317,11 +303,11 @@ def test_method_create_with_all_params_overload_3(self, client: PostGrid) -> Non size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -349,14 +335,12 @@ def test_raw_response_create_overload_3(self, client: PostGrid) -> None: response = client.print_mail.snap_packs.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -372,14 +356,12 @@ def test_streaming_response_create_overload_3(self, client: PostGrid) -> None: with client.print_mail.snap_packs.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -611,7 +593,6 @@ async def test_method_create_overload_1(self, async_client: AsyncPostGrid) -> No snap_pack = await async_client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -619,7 +600,6 @@ async def test_method_create_overload_1(self, async_client: AsyncPostGrid) -> No size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -631,11 +611,11 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn snap_pack = await async_client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -653,11 +633,11 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -685,7 +665,6 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncPostGrid) response = await async_client.print_mail.snap_packs.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -693,7 +672,6 @@ async def test_raw_response_create_overload_1(self, async_client: AsyncPostGrid) size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -709,7 +687,6 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncPos async with async_client.print_mail.snap_packs.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_html="insideHTML", @@ -717,7 +694,6 @@ async def test_streaming_response_create_overload_1(self, async_client: AsyncPos size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -735,7 +711,6 @@ async def test_method_create_overload_2(self, async_client: AsyncPostGrid) -> No snap_pack = await async_client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -743,7 +718,6 @@ async def test_method_create_overload_2(self, async_client: AsyncPostGrid) -> No size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -755,11 +729,11 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn snap_pack = await async_client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -777,11 +751,11 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -809,7 +783,6 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncPostGrid) response = await async_client.print_mail.snap_packs.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -817,7 +790,6 @@ async def test_raw_response_create_overload_2(self, async_client: AsyncPostGrid) size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -833,7 +805,6 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncPos async with async_client.print_mail.snap_packs.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, inside_template="insideTemplate", @@ -841,7 +812,6 @@ async def test_streaming_response_create_overload_2(self, async_client: AsyncPos size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: @@ -859,14 +829,12 @@ async def test_method_create_overload_3(self, async_client: AsyncPostGrid) -> No snap_pack = await async_client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -878,11 +846,11 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn snap_pack = await async_client.print_mail.snap_packs.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -899,11 +867,11 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", "address_line2": "addressLine2", "city": "city", "company_name": "companyName", + "country_code": "countryCode", "description": "description", "email": "email", "force_verified_status": True, @@ -931,14 +899,12 @@ async def test_raw_response_create_overload_3(self, async_client: AsyncPostGrid) response = await async_client.print_mail.snap_packs.with_raw_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) @@ -954,14 +920,12 @@ async def test_streaming_response_create_overload_3(self, async_client: AsyncPos async with async_client.print_mail.snap_packs.with_streaming_response.create( from_={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, pdf="https://example.com", size="8.5x11_bifold_v", to={ "address_line1": "addressLine1", - "country_code": "countryCode", "first_name": "firstName", }, ) as response: