Skip to content

Instantly share code, notes, and snippets.

@webrobert
Last active February 10, 2023 22:16
Show Gist options
  • Save webrobert/ac541d79e2ede6237fd973f4e457983c to your computer and use it in GitHub Desktop.
Save webrobert/ac541d79e2ede6237fd973f4e457983c to your computer and use it in GitHub Desktop.
DocuSign\eSign\Model\EnvelopeDefinition {#924 ▼ // app/Services/Docusign.php:90
  #container: array:89 [▼
    // ...
    "composite_templates" => array:5 [▼
      0 => DocuSign\eSign\Model\CompositeTemplate {#923 ▼
        #container: array:5 [▼
          "composite_template_id" => "1" // tried using the same id for each composite_template and also incementing
          "document" => DocuSign\eSign\Model\Document {#841 ▼
            #container: array:27 [▼
              // ...
              "document_base64" => "JVBERi0xLjQKJdPr6eEKMSAwIG9iago8PC9DcmVhdG9yIChDaHJvbWl1bSkKL1Byb2R1Y2VyIChTa2lhL1BERiBtMTA5KQovQ3JlYXRpb25EYXRlIChEOjIwMjMwMjEwMjE0OTI2KzAwJzAwJykKL01vZERhdGUg ▶"
              "document_id" => "2" // used local document id each is different
              "file_extension" => "pdf"
              "name" => "purchase-and-sale-agreement.pdf"
            ]
          }
          "inline_templates" => array:1 [▼
            0 => DocuSign\eSign\Model\InlineTemplate {#871 ▼
              #container: array:5 [▼
                // ...
                "recipients" => DocuSign\eSign\Model\Recipients {#858 ▼
                  #container: array:14 [▼
                    // ...
                    "signers" => array:1 [▼
                      0 => DocuSign\eSign\Model\Signer {#931 ▼
                        #container: array:97 [▼
                          "email" => "[email protected]"
                          "name" => "Robert Tester"
                          "recipient_id" => "1"
                           // ...
                          "tabs" => DocuSign\eSign\Model\Tabs {#868 ▼
                            #container: array:39 [▼
           
                              // ...
                              "sign_here_tabs" => array:1 [▼
                                0 => DocuSign\eSign\Model\SignHere {#815 ▼
                                  #container: array:84 [▼
                                    "anchor_string" => "**signature**"
                                    "anchor_x_offset" => "98"
                                    "anchor_y_offset" => "-26"
                                    // ...
                                  ]
                                }
                              ]
                              // ...
                            ]
                          }
               
                        ]
                      }
                    ]
                  ]
                }
                "sequence" => "1"
              ]
            }
          ]
        ]
      }
      1 => DocuSign\eSign\Model\CompositeTemplate {#948 ▶}
      2 => DocuSign\eSign\Model\CompositeTemplate {#920 ▶}
      3 => DocuSign\eSign\Model\CompositeTemplate {#919 ▶}
      4 => DocuSign\eSign\Model\CompositeTemplate {#944 ▶}
    ],
    "email_subject" => "Please sign, PSA documents...",
   ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment