@verdocs/js-sdk 5.3.5 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1881,9 +1881,11 @@ const envelopeRecipientDecline = (endpoint, envelopeId, roleName) => updateRecip
1881
1881
  */
1882
1882
  const envelopeRecipientChangeOwner = (endpoint, envelope_id, role_name, email, first_name, last_name) => updateRecipientStatus(endpoint, envelope_id, role_name, { action: 'owner_update', email, first_name, last_name });
1883
1883
  /**
1884
- * Agree to electronic signing.
1884
+ * Agree to electronic signing disclosures.
1885
1885
  */
1886
- const envelopeRecipientAgree = (endpoint, envelopeId, roleName, agreed, disclosures) => updateRecipientStatus(endpoint, envelopeId, roleName, { action: 'update', agreed, disclosures });
1886
+ const envelopeRecipientAgree = (endpoint, envelopeId, roleName, disclosures) => endpoint.api //
1887
+ .put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'accept', disclosures })
1888
+ .then((r) => r.data);
1887
1889
  /**
1888
1890
  * Change a recipient's name.
1889
1891
  */