Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = blueink-client-python
version = 1.3.0
version = 1.4.0
author = Blueink
author_email = pypi@blueink.com
description = Python Client for Blueink eSignature API
Expand Down
2 changes: 2 additions & 0 deletions src/blueink/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
CHECKBOX="chk",
CHECKBOXES="cbx",
ATTACHMENT="att",
STAMP="stp",
)

PACKET_STATUS = Munch(
Expand All @@ -75,6 +76,7 @@
EXPIRED="ex",
COMPLETE="co",
FAILED="fa",
REASSIGNED="ra",
)

V_PATTERN = Munch(
Expand Down
2 changes: 2 additions & 0 deletions src/blueink/model/bundles.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,8 @@ class Bundle(BaseModel):
team: Optional[str] = None
signing_brand: Optional[str] = None
expires: Optional[str] = None
allow_signer_reassign: Optional[bool] = None
allow_chained_signer_reassign: Optional[bool] = None
tag_values: Optional[dict] = None

@classmethod
Expand Down
3 changes: 2 additions & 1 deletion src/blueink/subclients/bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,8 @@ def update(self, bundle_id: str, data: dict) -> NormalizedResponse:
"""Partially update a Bundle (PATCH).

Typically used to update fields such as ``signing_brand``, ``team``,
``expires``, ``cc_emails`` and reminder settings on an existing bundle.
``expires``, ``cc_emails``, reminder settings, ``allow_signer_reassign``,
and ``allow_chained_signer_reassign`` on an existing bundle.

Args:
bundle_id: bundle slug
Expand Down
23 changes: 23 additions & 0 deletions src/blueink/tests/test_apiv2_218_constants.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
from blueink.constants import FIELD_KIND, PACKET_STATUS
from blueink.model.bundles import Bundle
from blueink.utils.testcase import TestCase


class TestApiV218Constants(TestCase):
def test_field_kind_includes_stamp(self):
self.assert_equal(FIELD_KIND.STAMP, "stp")
self.assert_in("stp", FIELD_KIND.values())

def test_packet_status_includes_reassigned(self):
self.assert_equal(PACKET_STATUS.REASSIGNED, "ra")
self.assert_in("ra", PACKET_STATUS.values())

def test_bundle_model_accepts_reassign_flags(self):
bundle = Bundle(
packets=[],
documents=[],
allow_signer_reassign=True,
allow_chained_signer_reassign=False,
)
self.assert_equal(bundle.allow_signer_reassign, True)
self.assert_equal(bundle.allow_chained_signer_reassign, False)
Loading