@verdocs/js-sdk 5.3.4 → 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.d.mts CHANGED
@@ -680,9 +680,9 @@ interface IRecipient {
680
680
  /** Last 4 digits of SSN. Only used in KBA workflows. */
681
681
  ssn_last_4?: string | null;
682
682
  /** The disclosure text the recipient accepted. */
683
- disclosure?: string | null;
683
+ disclosures?: string | null;
684
684
  /** Date/time the recipient agreed to their e-signing disclosures. */
685
- disclosure_accepted_at?: string | null;
685
+ disclosures_accepted_at?: string | null;
686
686
  /** Date of birth. Only used in KBA workflows. */
687
687
  dob?: string | null;
688
688
  /**
@@ -1384,7 +1384,7 @@ interface IUpdateRecipientStatus {
1384
1384
  interface IUpdateRecipientAgreedParams {
1385
1385
  action: "update";
1386
1386
  agreed: boolean;
1387
- disclosure?: string;
1387
+ disclosures?: string;
1388
1388
  }
1389
1389
  interface IUpdateRecipientNameParams {
1390
1390
  action: "update";
@@ -1974,9 +1974,9 @@ declare const envelopeRecipientDecline: (endpoint: VerdocsEndpoint, envelopeId:
1974
1974
  */
1975
1975
  declare const envelopeRecipientChangeOwner: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, email: string, first_name: string, last_name: string) => Promise<IRecipient>;
1976
1976
  /**
1977
- * Agree to electronic signing.
1977
+ * Agree to electronic signing disclosures.
1978
1978
  */
1979
- declare const envelopeRecipientAgree: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, agreed: boolean, disclosure?: string) => Promise<IRecipient>;
1979
+ declare const envelopeRecipientAgree: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, disclosures?: string) => Promise<IRecipient>;
1980
1980
  /**
1981
1981
  * Change a recipient's name.
1982
1982
  */
package/dist/index.d.ts CHANGED
@@ -680,9 +680,9 @@ interface IRecipient {
680
680
  /** Last 4 digits of SSN. Only used in KBA workflows. */
681
681
  ssn_last_4?: string | null;
682
682
  /** The disclosure text the recipient accepted. */
683
- disclosure?: string | null;
683
+ disclosures?: string | null;
684
684
  /** Date/time the recipient agreed to their e-signing disclosures. */
685
- disclosure_accepted_at?: string | null;
685
+ disclosures_accepted_at?: string | null;
686
686
  /** Date of birth. Only used in KBA workflows. */
687
687
  dob?: string | null;
688
688
  /**
@@ -1384,7 +1384,7 @@ interface IUpdateRecipientStatus {
1384
1384
  interface IUpdateRecipientAgreedParams {
1385
1385
  action: "update";
1386
1386
  agreed: boolean;
1387
- disclosure?: string;
1387
+ disclosures?: string;
1388
1388
  }
1389
1389
  interface IUpdateRecipientNameParams {
1390
1390
  action: "update";
@@ -1974,9 +1974,9 @@ declare const envelopeRecipientDecline: (endpoint: VerdocsEndpoint, envelopeId:
1974
1974
  */
1975
1975
  declare const envelopeRecipientChangeOwner: (endpoint: VerdocsEndpoint, envelope_id: string, role_name: string, email: string, first_name: string, last_name: string) => Promise<IRecipient>;
1976
1976
  /**
1977
- * Agree to electronic signing.
1977
+ * Agree to electronic signing disclosures.
1978
1978
  */
1979
- declare const envelopeRecipientAgree: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, agreed: boolean, disclosure?: string) => Promise<IRecipient>;
1979
+ declare const envelopeRecipientAgree: (endpoint: VerdocsEndpoint, envelopeId: string, roleName: string, disclosures?: string) => Promise<IRecipient>;
1980
1980
  /**
1981
1981
  * Change a recipient's name.
1982
1982
  */
package/dist/index.js CHANGED
@@ -1883,9 +1883,11 @@ const envelopeRecipientDecline = (endpoint, envelopeId, roleName) => updateRecip
1883
1883
  */
1884
1884
  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 });
1885
1885
  /**
1886
- * Agree to electronic signing.
1886
+ * Agree to electronic signing disclosures.
1887
1887
  */
1888
- const envelopeRecipientAgree = (endpoint, envelopeId, roleName, agreed, disclosure) => updateRecipientStatus(endpoint, envelopeId, roleName, { action: 'update', agreed, disclosure });
1888
+ const envelopeRecipientAgree = (endpoint, envelopeId, roleName, disclosures) => endpoint.api //
1889
+ .put(`/v2/envelopes/${envelopeId}/recipients/${encodeURIComponent(roleName)}`, { action: 'accept', disclosures })
1890
+ .then((r) => r.data);
1889
1891
  /**
1890
1892
  * Change a recipient's name.
1891
1893
  */