docusign 0.3.1

A fully generated & opinionated API client for the DocuSign API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
//! A fully generated, opinionated API client library for DocuSign.
//!
//! [![docs.rs](https://docs.rs/docusign/badge.svg)](https://docs.rs/docusign)
//!
//! ## API Details
//!
//! The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
//!
//! [API Terms of Service](https://www.docusign.com/company/terms-and-conditions/web)
//!
//! ### Contact
//!
//!
//! | name | url | email |
//! |----|----|----|
//! | DocuSign Developer Center | <https://developers.docusign.com/> | devcenter@docusign.com |
//!
//!
//!
//! ## Client Details
//!
//! This client is generated from the [DocuSign OpenAPI
//! specs](https://github.com/docusign/OpenAPI-Specifications) based on API spec version `v2.1`. This way it will remain
//! up to date as features are added. The documentation for the crate is generated
//! along with the code to make this library easy to use.
//!
//!
//! To install the library, add the following to your `Cargo.toml` file.
//!
//! ```toml
//! [dependencies]
//! docusign = "0.3.1"
//! ```
//!
//! ## Basic example
//!
//! Typical use will require intializing a `Client`. This requires
//! a user agent string and set of credentials.
//!
//! ```
//! use docusign::Client;
//!
//! let docusign = Client::new(
//!     String::from("client-id"),
//!     String::from("client-secret"),
//!     String::from("redirect-uri"),
//!     String::from("token"),
//!     String::from("refresh-token")
//! );
//! ```
//!
//! Alternatively, the library can search for most of the variables required for
//! the client in the environment:
//!
//! - `DOCUSIGN_CLIENT_ID`
//! - `DOCUSIGN_CLIENT_SECRET`
//! - `DOCUSIGN_REDIRECT_URI`
//!
//! And then you can create a client from the environment.
//!
//! ```
//! use docusign::Client;
//!
//! let docusign = Client::new_from_env(
//!     String::from("token"),
//!     String::from("refresh-token")
//! );
//! ```
//!
//! It is okay to pass empty values for `token` and `refresh_token`. In
//! the initial state of the client, you will not know these values.
//!
//! To start off a fresh client and get a `token` and `refresh_token`, use the following.
//!
//! ```
//! use docusign::Client;
//!
//! async fn do_call() {
//!     let mut docusign = Client::new_from_env("", "");
//!
//!     // Get the URL to request consent from the user.
//!     // You can optionally pass in scopes. If none are provided, then the
//!     // resulting URL will not have any scopes.
//!     let user_consent_url = docusign.user_consent_url(&["some-scope".to_string()]);
//!
//!     // In your redirect URL capture the code sent and our state.
//!     // Send it along to the request for the token.
//!     let code = "thing-from-redirect-url";
//!     let state = "state-from-redirect-url";
//!     let mut access_token = docusign.get_access_token(code, state).await.unwrap();
//!
//!     // You can additionally refresh the access token with the following.
//!     // You must have a refresh token to be able to call this function.
//!     access_token = docusign.refresh_access_token().await.unwrap();
//! }
//! ```
//!
#![allow(clippy::derive_partial_eq_without_eq)]
#![allow(clippy::too_many_arguments)]
#![allow(clippy::nonstandard_macro_braces)]
#![allow(clippy::large_enum_variant)]
#![allow(clippy::tabs_in_doc_comments)]
#![allow(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]

/// The AcccountBrands resource provides methods that enable you to create and manage brands for an account.
///
///Branding enables you to add the look and feel of your organization's brand to the sending, signing, and email processes, making it easier for recipients to identify envelopes coming from your organization.
///
///The DocuSign Account Custom Branding feature enables you to set the colors, logo, and text that recipients see at the account level. The settings associated with a brand are applied to all of the envelopes that use the brand. You can create multiple brand profiles for different corporate brands or internal departments.
///
///**Note**: To use this resource, branding for either signing or sending must be enabled for the account (either `canSelfBrandSend`, `canSelfBrandSign`, or both of these account settings must be set to **true**).
pub mod account_brands;
/// The `AccountConsumerDisclosures` resource provides methods that enable you to enable, retrieve, and manage the Electronic Record and Signature Consent Disclosure (ERSD) options for your account. This is the disclosure that displays to each new recipient who is going to sign or add other information, or who is required to view the documents you send to them. The recipient must read and agree to the terms of the disclosure before they can access and take action on the documents you send. The ERSD does not apply to copy-only recipients, but does apply to recipients who must sign or view your documents.
///
///You can use either the default ERSD that DocuSign provides for U.S.-based transactions, or a custom ERSD.
///
///## Languages
///
///**Important**: The system does not translate the ERSD for you. The default ERSD is always in English. For a custom ERSD, an account administrator must create a version of the disclosure for each language that your signers use. When you create a version of your custom ERSD for a specific signer language, you must:
///
///1. Specify the language code (`langCode`) for the signer language.
///2. Provide the `esignAgreementText` and `esignText` in the language associated with the `langCode`.
///
///For more information, see [Legal Disclosure](https://support.docusign.com/en/guides/ndse-admin-guide-legal-disclosure).
pub mod account_consumer_disclosures;
/// Custom fields enable you to record custom information about envelopes that you can then use for sorting, organizing, searching, and other downstream processes.
///
///For example, you can use custom fields to copy envelopes or data to multiple areas in Salesforce. eOriginal customers can eVault all of their documents from the web app by setting an account custom field with a name like `eVault with eOriginal` to **true**.
///
///You can also use account custom fields to set the following information:
///
///- Tracking ID
///- Department
///- Use case
///- Other envelope metadata
///
///## Envelope Custom Field Visibility
///
///When you create an envelope custom field for your account, you have the following options:
///
///- Make it a required field for senders at the time of sending
///- Display it as an optional field at the time of sending
///- Set a specific value for the field behind the scenes (NOT SURE IF THIS IS RIGHT; MIGHT JUST BE AN UNUSED DRAFT FIELD)
///
///Envelope recipients do not see the envelope custom fields.
///
///## Types of Envelope Custom Fields
///
///There are two types of envelope custom fields:
///
///- `text`: Enables the sender to enter the value for the field.
///- `list`: Enables the sender to select the value of the field from a predetermined list.
pub mod account_custom_fields;
/// The AccountPasswordRules resource provides methods that allow you to obtain and update account password rules, as well as membership and account rules.
pub mod account_password_rules;
/// An account permission profile is assigned to a group of users, enabling you to set permissions for all of the users in the group at the same time. You are not required to set Permission Profiles for a group, but it makes it easier to manage user permissions for a large number of users.
///
///DocuSign offers the following account permission profiles:
///
///- DocuSign Viewer
///- DocuSign Sender
///- Account Administrator
///
///You can also create your own custom account permission profiles.
///.
pub mod account_permission_profiles;
/// .
pub mod account_seal_providers;
/// Standards-Based Signatures (SBS) is the label used to describe DocuSign's suite of signatures that comply with regional and industry regulations, such as the electronic IDentification, Authentication and trust Services (eIDAS) regulation in Europe.
///
///## Feature Differences When Using Standards-Based Signatures
///
///Some DocuSign features are not compatible with Standards-Based Signatures, while others work somewhat differently. It's important to understand these key differences.
///
///### DocuSign Features Not Compatible with SBS
///
///- Attachment by fax
///- Concatenation of signer attachments
///- Legacy digital signatures
///- Markup
///- Notary
///
///### DocuSign Features That Change with SBS
///
///The following features work slightly differently with SBS:
///
///- **Advanced Correct**: After the first signature, adding or deleting a field is not allowed. This behavior occurs because SBS does not allow adding or removing form fields after a digital signature has already been applied to a PDF.
///- **Downloading Combined Envelopes**: A combined PDF is not digitally signed. This behavior occurs because concatenating digitally signed PDFs breaks the digital signatures on the PDFs.
///- **Freeform Signing**: After someone has signed, allows only signature and initials on free-form. This behavior occurs because if another signer has already signed the document, adding fields other than signature fields will break the existing digital signatures on the document.
///- **Watermarks**: All watermarks are added as PDF annotations. This behavior occurs because burning the watermark into the PDF will break the digital signatures on the document.
///- **Wet Signing**: Wet-signed documents are added as new documents to envelopes. This behavior results in the uploaded or faxed, physically signed document being added as a new document to the envelope. This new document gets only a platform seal.
///
///For more information, see [Standards Based Signatures](https://developers.docusign.com/esign-rest-api/guides/standards-based-signatures).
pub mod account_signature_providers;
/// .
pub mod account_signatures;
/// The AccountTabSettings resource provides methods that allow you to manage
///tab settings for an account.
///.
pub mod account_tab_settings;
/// The AccountWatermarks resource provides methods that allow you to obtain, preview and update watermark information.
pub mod account_watermarks;
/// The Accounts resource provides methods that allow you to create, delete, and manage your accounts.
pub mod accounts;
/// .
pub mod appliance_info;
/// You can configure automatic archiving of emails sent from all of your DocuSign accounts.
///
///For more information, see [Email Archive Configuration](https://support.docusign.com/en/guides/ndse-admin-guide-email-archive-configuration).
///
///**Note**: This feature is only available for certain account plans and must be enabled by DocuSign.
pub mod bcc_email_archive;
/// The Billing resource provides methods that allow you to manage the billing plans,associated with an account.
pub mod billing_plans;
/// You can use bulk send lists for anything that you need to send to a large number of recipients on a
///recurring basis, such as:
///
///- Compliance letters (privacy, security, and ethics consent forms)
///- New hire onboarding documents (benefits, transit, and parking information and payroll forms)
///- Other Human Resources documents
///- Event-related forms
///
///The API creates a separate copy of the envelope for each recipient that you specify. Each instance of the envelope is called a
///`BulkCopy`. You can use a bulk send list to send up to 1,000 copies per call.
///
///After you create a bulk send list, it persists and can be reused and edited any number of times.
///
///## Customizing Bulk Send Lists
///
///You can customize individual copies of the envelope. For example, you can customize the email notification and
///language and add personalized notes.
///
///For example, if one recipient prefers to access their DocuSign envelopes behind an access code, and another prefers her
///email in French, you can implement those customizations.
///
///## Using Bulk Send
///
///The bulk send feature uses the following flow:
///
///1. Create a draft envelope by calling the [Envelopes::createEnvelope][createEnvelope] method. Add placeholders for bulk send information to the envelope, including:
///    - Email address placeholders.
///    - Tab placeholders. Assign `tabLabels` to these placeholders that will make sense for matching the tabs to values in the bulk send list. For example, if you're sending a field trip permission slip to parents, you might create a placeholder text tab called `StudentName` that will you will then populate with the names of individual students in the bulk send list. You can use the following types of text tabs, radio group tabs, and list tabs to match bulk send recipients to an envelope.
///    - Any envelope custom fields. These fields must match the envelope custom fields in envelope copies in the bulk send list.
///2. Create a bulk send list by using the [BulkSend::createBulkSendList][create_list] method.
///3. (Optional) Test compatibility. Use the [BulkSend::createBulkSendTestRequest][create_test] method to test your bulk
///   send list for compatibility with the envelope or template that you want to send. For example, a template that has
///   three roles is not compatible with a bulk send list that has only two recipients. For this reason, you might want to
///   test compatibility first. A successful test result returns the Boolean value `true`. An unsuccessful test returns a
///   JSON response that contains information about the errors that occurred.
///4. Send your envelope to the list by using the [BulkSend::createBulkSendRequest][create_request] method. The response
///   returns a `batchId` that you can use for tracking and other purposes.
///
///The API creates and queues your envelopes asynchronously behind the scenes. You can get the status of the batch by
///using the [BulkEnvelopes_GetBulkEnvelopesBatchId][getbulkenv] method, passing in the `batchId`.
///
///To get the envelopes generated for the `batchId`, use the [Envelopes:listStatusChanges][GetEnvelopes] method, passing in
///a `custom_field` named `BulkBatchId` where the value is the `batchId` that was returned in step 4.
///
///Example:
///
///`custom_field=BulkBatchId={{batchId}}`
///
///**Bulk Send Requirements and Limitations**
///
///* Bulk send must be enabled for your account (in the `accountSettingsInformation` object, `enableBulkRecipient` must be set to **true**) and for the user sending the envelopes (the `allowBulkRecipients` property in `userSettings` must be set to **true**).
///* You can include up to 1,000 bulk recipients in each request.
///* When you send an envelope with bulk recipients, envelopes are added to a bulk recipient queue and sent in a metered fashion. An account can have a total of 2,000 total envelopes in the queue at a time.  If this limit is reached, an error message displays to the sender. If you receive this error, wait and resend the envelope at a later time.
///
///If you frequently run into queue limits, contact your account manager to discuss modifying the queue limits for your account.
///
///[create_list]:    https://developers.docusign.com/docs/esign-rest-api/reference/BulkEnvelopes/BulkSend/createBulkSendList/
///[create_test]:    https://developers.docusign.com/docs/esign-rest-api/reference/BulkEnvelopes/BulkSend/createBulkSendTestRequest/
///[create_request]: https://developers.docusign.com/docs/esign-rest-api/reference/BulkEnvelopes/BulkSend/createBulkSendRequest/
///[getbulkenv]:     https://developers.docusign.com/docs/esign-rest-api/reference/BulkEnvelopes/BulkSend/getBulkSendLists/
///[GetEnvelopes]:   https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/Envelopes/listStatusChanges/
///
///[createEnvelope]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeCustomFields/create/
///
///
///For more information about using bulk send, see [Bulk Sending Envelopes](https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/envelopes/bulk-send/).
///.
pub mod bulk_send;
/// A chunked upload is a temporary file that you upload in parts and stage at DocuSign, then refer to as the content for other API calls. For example, you might use it for document content when assembling an envelope or template.
///
///A chunked upload is linked to the DocuSign account member who initiated the API call. This user is the only user who is able to reference the chunked upload.
///
///A ChunkedUpload is intended to be an area for briefly staging data for use with other DocuSign API calls. The ChunkedUpload API endpoints do not provide an action to download the ChunkedUpload's content.
///
///The typical flow for using a chunked upload involves the following steps:
///
///1) Initiate the chunked upload with content representing part 0.
///
///2) Add more parts to the chunked upload until you have transmitted the entirety of the content.
///
///3) Commit the chunked upload, preparing it for use with other API calls.
///
///4) Assemble a DocuSign envelope with a document that includes a reference to the chunked upload as the content.
///
///5) Continue with envelope-related processes.
///
///**Note**: You must fully upload and use a chunked upload within 20 minutes of initializing it.
///
///After the chunked upload has been correctly referenced within another API call, it becomes unavailable for any further use and is promptly removed from the system.
///
///Chunked uploads have the following limits, which are configured per DocuSign environment, account, or integrator:
///
///- The maximum number of all of a member's unexpired, unconsumed ChunkedUploads. The default value is 10.
///- The maximum total size of all of a member's unexpired, unconsumed  ChunkedUploads. The default value is 1 GB.
///- The amount of time that a chunked upload is active after you initialize it. The default value is 20 minutes.
///.
pub mod chunked_uploads;
/// The CloudStorage resource provides methods that allow you to list files stored on your cloud storage provider.
pub mod cloud_storage;
/// The following providers are supported:
///
///* Google Drive
///* Dropbox
///* Box
///* Evernote
///* OneDrive
///
///To use cloud storage files, you must first give DocuSign access to your cloud storage provider. You can disconnect authorized a cloud storage provider at any time.
pub mod cloud_storage_providers;
/// The comments resource provides a method that enables you to download a PDF file containing all of the comments that recipients and the sender have added to the documents in an envelope.
///
///Comments are disabled by default. To use the comments feature, an account administrator must enable comments on the account (in the `accountSettingsInformation` object, set the `enableSigningExtensionComments` property to **true**).
///
///For more information, see [Comments Settings](https://support.docusign.com/en/guides/ndse-admin-guide-comments-settings).
pub mod comments;
/// The `ConnectConfigurations` resource enables you to configure the DocuSign Connect service for your account.
///
///You can use this resource to configure account-level webhooks that send notifications about every envelope sent from your account. You can set account-level webhooks to listen for events for envelopes sent by a specific user on your account, by multiple specific users, or from any of the users on your account. These events will be tracked, and can be delivered to a listening application.
///
///**Note**: To use DocuSign Connect, it must be enabled in your DocuSign account. It is not enabled by default.
///
///## Aggregated Messages
///
///To avoid duplicate simultaneous events, you can configure Connect to aggregate similar events into a single delivery. By default, aggregation is enabled on all Connect configurations. Similar or simultaneous events will be aggregated so your listener doesn't receive extraneous messages.
///
///For example, when the final recipient signs an envelope,  the system delivers a single, aggregated Connect event, rather than separate Recipient: complete and Envelope: complete messages. This aggregation process ensures that you only receive the minimal viable number of messages about an envelope's life cycle.
///
///## Send Individual Messages
///
///When you enable Send Individual Messages (SIM) mode on a Connect configuration, DocuSign will deliver notifications for all envelope events individually. In contrast with aggregated messages, when a final recipient completes an envelope, your listener will receive a single Recipient: complete event followed by a single Envelope: complete event for the final participating party on the agreement.  If you need more granular control over event notifications, you can enable SIM mode in the Admin area of the RADmin console. For more information about SIM mode, see [Using Connect's New Send Individual Messages Feature](https://www.docusign.com/blog/dsdev-connect-send-individual-messages/).
///
///**Note**: To create an envelope-level webhook instead of using account-level webhooks, use the Envelopes::Create method and add an `eventNotification` object to an envelope object.
pub mod connect_configurations;
/// The ConnectEvents resource provides methods that allow you to read, delete, and republish the connect logs associated with an envelope.
pub mod connect_events;
/// .
pub mod connect_secret;
/// DocuSign eSignature includes a contacts list (also referred to as an address book) to help make sending envelopes even easier. When you send an envelope, the recipients' names and email addresses are automatically added to your contacts list. You can use the contacts list to quickly add recipients to the envelopes you send. The `Contacts` resource provides methods that enable you to manage your contacts.
///
///.
pub mod contacts;
/// The CustomTabs resource provides methods that allow you create and manage custom tabs based on the existing DocuSign tabs.
///
///You can create a tab with pre-defined properties, such as a text tab with a certain font type and validation pattern. Users can access the custom tabs when sending documents through the DocuSign web application.
///
///Custom tabs can be created based on the  approve, checkbox, company, date, date signed, decline, email, email address, envelope ID, first name, formula, full name, initial here, last name, list, note, number, radio, sign here, signer attachment, SSN, text, title, and zip tabs.
pub mod custom_tabs;
/// **Note**: Responsive Signing is disabled by default. To use this functionality, an account administrator must switch the account setting `enableResponsiveSigning` to **true**.
///Also note that Smart Sections (creating a signable HTML document that uses collapsible sections and rotating tables) are premium features. To request them, contact your DocuSign account manager.
pub mod document_responsive_html_preview;
/// The ENoteConfigurations resource provides methods that allow you to manage
///information for the eNote eOriginal integration.
///.
pub mod e_note_configurations;
/// The EnvelopeAttachments resource provides methods that allow you to manage attachments.
///.
pub mod envelope_attachments;
/// The `EnvelopeConsumerDisclosures` resource provides methods that enable you to retrieve the Electronic Record and Signature Disclosure (ERSD) for an envelope recipient. This is the disclosure that displays to each new recipient who is going to sign or add other information, or who is required to view the documents you send to them. The recipient must read and agree to the terms of the disclosure before they can access and take action on the documents you send. The ERSD does not apply to copy-only recipients, but does apply to recipients who must sign or view your documents.
///
///You can retrieve either the default ERSD that DocuSign provides for U.S.-based transactions, or a custom ERSD.
///
///## Languages
///
///You specify the language of the disclosure version that you want to retrieve by using the `langCode` parameter.
///
///**Important**: The system does not translate the ERSD for you. An account administrator must create a version of the account-level disclosure for each language that your signers use.
///
///For more information, see [Legal Disclosure](https://support.docusign.com/en/guides/ndse-admin-guide-legal-disclosure).
pub mod envelope_consumer_disclosures;
/// The EnvelopeCustomFields resource provides methods that allow you manage custom fields in an envelope.
///
///Custom fields can be used in the envelopes for your account to record information about the envelope, help search for envelopes and track information. The envelope custom fields are shown in the Envelope Settings section when a user is creating an envelope in the DocuSign member console. The envelope custom fields are not seen by the envelope recipients.
///
///There are two types of envelope custom fields:
///
///- `text`: Enables the sender to enter the value for the field.
///- `list`: Enables the sender to select the value of the field from a predetermined list.
///
///You may assign up to three envelope custom fields to an envelope. This limit does not include account (document) custom fields.
pub mod envelope_custom_fields;
/// The EnvelopeDocumentFields resource provides methods that allow you to manage custom fields on a document.
///
///You can create custom versions of standard fields that combine of field properties, such as font type or size, or a validation setting.
///
///Note: Some advanced features and options are supported only in certain DocuSign plans. Your account plan might not support some options discussed in this help topic. For more information about which options are available for your account, check your account plan or contact your Account Manager.
pub mod envelope_document_fields;
/// .
pub mod envelope_document_html_definitions;
/// The EnvelopeDocumentTabs resource provides methods that enable you to manage tabs in envelopes. For a complete list of options, see the following Properties section.
pub mod envelope_document_tabs;
/// The Envelope Document Visibility resource provides methods for managing document visibility by recipient.
///.
pub mod envelope_document_visibility;
/// <!-- resources aren't rendered the same way
///     as other pages. This is a little hack to
///     make the headings work better -->
///<style>
///h1, h2, h3 {
///  margin-top: 1em;
///}
///</style>
///
///The EnvelopeDocuments resource provides methods
///that manage documents in an envelope.
///You can:
///* add one or more documents to the envelope
///* retrieve one or more documents from the envelope
///* delete documents from the envelope
///
///All of the methods in this resource
///operate on on an existing envelope.
///Before you can add documents
///to an envelope,
///you must first create it
///with the [Envelopes: create][envelopescreate] method.
///
///
///[envelopescreate]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/Envelopes/create/
///
///.
pub mod envelope_documents;
/// The EnvelopeEmailSettings provide methods that allow you to manage the email override settings for an envelope.
///
///Email override settings change the reply to email address, name, or the BCC for email archive information, for the envelope. Note that changing email settings will only affect email communications that occur after the addition was made.
///
///The BCC Email address feature is designed to provide a copy of all email communications for external archiving purposes. DocuSign recommends that envelopes sent using the BCC for Email Archive feature, including the BCC Email Override option, include additional signer authentication options. To send a copy of the envelope to a recipient who does not need to sign, use a Carbon Copies or Certified Deliveries Recipient Type.
pub mod envelope_email_settings;
/// The EnvelopeFormData resource provides a method for downloading the data that users have entered into a form associated with an envelope.
pub mod envelope_form_data;
/// .
pub mod envelope_html_definitions;
/// The EnvelopeLocks resource provides methods that allow you to
///manage locks on an envelope.
///
///To prevent users from changing an envelope while another user is
///modifying it, you can lock the envelope and set the time until
///the lock expires.
///
///For example, you would use the following flow:
///
///1. Lock the envelope.
///2. Make changes to envelope.
///3. Delete the envelope lock and save the changes. If the envelope is based on a template that has a password, you must supply the template password to save the changes.
///
///**Note**: To use envelope locks, the user must have envelope locking capability enabled.
pub mod envelope_locks;
/// The EnvelopeRecipientTabs resource provides methods that enable you
///to add,
///update,
///and delete tabs
///from an envelope.
///Tabs are associated with a specific recipient
///in an envelope
///and are only used by the recipient types
///In Person Signers and Signers.
///
///<!-- START doctoc generated TOC please keep comment here to allow auto update -->
///<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
///**On this page**
///
///- [Tab Types](#tab-types)
///- [View Tab](#view-tab)
///- [Requesting Payments](#requesting-payments)
///- [Using Custom Tabs in Envelopes and Templates](#using-custom-tabs-in-envelopes-and-templates)
///- [Anchoring Tabs](#anchoring-tabs)
///- [Automatically Populating Tabs](#automatically-populating-tabs)
///
///<!-- END doctoc generated TOC please keep comment here to allow auto update -->
///
///
///## Tab Types
///
///Some tabs enable values to be entered by the signer.
///Those tabs' values can be preset either through the web browser
///or via the API. Other tab types use information that is already
///recognized by the DocuSign platform.
///These tabs cannot have their value updated on a per-tab basis
///by the API or via the browser. In some cases, the info might be
///settable using a different technique.
///For example, the Full name tab uses the signer's name,
///which is set elsewhere in the request.
///
///Here is the list of tabs and whether you can or cannot set their values in the tab definition:
///
///<br>
///
///| Tab Type                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
///| :------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
///| Approve (`approve`)                    | Allows the recipient to approve documents without placing a signature or initials on the document. If the recipient clicks the tab during the signing process, the recipient is considered to have signed the document. No information is shown on the document of the approval, but it is recorded as a signature in the envelope history. This value **can't** be set.                                                                                                                                                                                                                                              |
///| Checkbox (`checkbox`)                  | Allows the recipient to select a yes/no (on/off) option. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
///| Company (`company`)                    | Displays the recipient's company name. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
///| Date Signed (`dateSigned`)             | Displays the date that the recipient signed the document. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
///| Date (`date`)                          | Allows the recipient to enter a date. Date tabs are one-line fields that allow date information to be entered in any format. The tooltip for this tab recommends entering the date as MM/DD/YYYY, but this is not enforced. The format entered by the signer is retained. If you need a particular date format enforced, DocuSign recommends using a Text tab with a validation pattern and a validation message to enforce the format. This value can be set.                                                                                                                                                        |
///| Decline (`decline`)                    | Allows the recipient the option of declining an envelope. If the recipient clicks the tab during the signing process, the envelope is voided. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                            |
///| Email Address (`emailAddress`)         | Displays the recipient's email as entered in the recipient information. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
///| Email (`email`)                        | Allows the recipient to enter an email address. This is a one-line field that checks that a valid email address is entered. It uses the same parameters as a Text tab, with the validation message and pattern set for email information.<br><br>When getting information that includes this tab type, the original value of the tab when the associated envelope was sent is included in the response. This value can be set.                                                                                                                                                                                        |
///| Envelope ID (`envelopeId`)             | Displays the envelope ID. Recipients cannot enter or change the information in this tab.  This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
///| First Name (`firstName`)               | Displays the recipient's first name. This tab takes the recipient's name as entered in the recipient information, splits it into sections based on spaces and uses the first section as the first name. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                  |
///| Formula Tab (`formulaTab`)             | The value of a formula tab is calculated from the values of other number or date tabs in the document. When the recipient completes the underlying fields, the formula tab calculates and displays the result. This value can be set.The `formula` property of the tab contains the references to the underlying tabs. See [Calculated Fields] in the DocuSign Support Center to learn more about formulas. If a formula tab contains a `paymentDetails` property, the tab is considered a payment item. See [Requesting Payments Along with Signatures] in the DocuSign Support Center to learn more about payments. |
///| Full Name (`fullName`)                 | Displays the recipient's full name. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
///| Initial Here (`initialHere`)           | Allows the recipient to initial the document. May be optional. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
///| Last Name (`lastName`)                 | Displays the recipient's last name. This tab takes the recipient's name as entered in the recipient information, splits it into sections based on spaces and uses the last section as the last name. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                     |
///| List (`list`)                          | This tab offers a list of options to choose from. The `listItems` property is used to specify the selectable options. This value can be set,                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
///| Notarize (`notarize`)                  | Place this tab on a page to alert Notary recipients that they must take action. Only one notarize tab can appear on a page. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
///| Note (`note`)                          | Displays additional information, in the form of a note, for the recipient. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
///| Number (`number`)                      | Allows the recipient to enter numbers and decimal (.) points. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
///| Radio Group (`radioGroup`)             | This group tab is used to place radio buttons on a document. The `radios` property is used to add and place the radio buttons associated with the group. Only one radio button can be selected in a group. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                     |
///| Sign Here (`signHere`)                 | Allows the recipient to sign a document. May be optional. This value **can't** be set. <br/>**Note**: `signHere` tabs can also be used to add a visual representation for  an electronic seal in a document.                                                                                                                                                                                                                                                                                                                                                                                                          |
///| Signer Attachment (`signerAttachment`) | Allows the recipient to attach supporting documents to an envelope. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
///| SSN (`ssn`)                            | A one-line field that allows the recipient to enter a Social Security Number. The SSN can be typed with or without dashes. It uses the same parameters as a Text tab, with the validation message and pattern set for SSN information.  This value can be set.                                                                                                                                                                                                                                                                                                                                                        |
///| Text (`text`)                          | Allows the recipient to enter any type of text. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
///| Title (`title`)                        | Displays the recipient's title. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
///| View (`view`)                          | The View tab is used with the Approve tab to handle supplemental documents. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
///| Zip (`zip`)                            | Allows the recipient to enter a ZIP code. The ZIP code can be five digits or nine digits in the ZIP+4 format. The zip code can be typed with or without dashes. It uses the same parameters as a Text tab, with the validation message and pattern set for ZIP code information. This value can be set.                                                                                                                                                                                                                                                                                                               |
///
///
///[approve]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[checkbox]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[company]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[dateSigned]:		    https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[date]:		          https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[decline]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[emailAddress]:     https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[email]:		        https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[envelopeId]:	    	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[firstName]:	    	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[formulaTab]:	    	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[fullName]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[initialHere]:	  	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[lastName]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[list]:	           	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[notarize]:         https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[note]:		          https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[number]:		        https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[radioGroup]:		    https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[signerAttachment]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[signHere]:	      	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[ssn]:	          	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[text]:	          	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[title]:	        	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[view]:		          https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///[zip]:	          	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
///
///[calculatedfields]: https://support.docusign.com/en/guides/ndse-user-guide-calculated-fields
///[paymentguide]:     https://support.docusign.com/en/guides/requesting-payments-along-with-signatures
///
///
///
///
///
///
///## View Tab
///
///The View tab is used on supplemental documents.
///To learn more about using the View tab with
///supplemental documents, see
///[Using Supplemental Documents][usingsupdocs]
///in the [Sending Documents][sendenvelopes] section of
///the [Envelope: create][envelopecreate] method.
///
///[sendenvelopes]:  https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/Envelopes/create/
///[usingsupdocs]:   https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/documents/supplemental/
///[envelopecreate]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/Envelopes/create/
///
///<br>
///
///| Name              | Required  | Type    | Description |
///| :----             | :----     | :----   | :----       |
///| documentId        | Yes       | String  | The document ID number that the tab is placed on. This must refer to an existing Document's ID attribute. |
///| pageNumber        | Yes       | String  | Must be set to 1. |
///| recipientId       | Yes       | String  | The recipient associated with the tab. Must refer to an existing recipient's ID attribute. |
///| required          | No        | Boolean | If **true**, the recipient is required to select the supplemental document View button during signing. |
///| tabLabel          | No        | String  | The label used for the tab.  If an empty string is provided for this, an empty sting is used. If no value is provided, the tab type is used as the value. Maximum of 500 characters. |
///| templateLocked    | No        | Boolean | Optional. Used only when working with template tabs. If **true**, the attributes of the tab cannot be changed by the sender. |
///| templateRequired  | No        | Boolean | Optional. Used only when working with template tabs. If **true**, the tab cannot be removed by the sender. |
///| xPosition         | Yes       | String  | Required, but can be 0.  |
///| yPosition         | Yes       | String  | Required, but can be 0. |
///
///
///## Requesting Payments
///
///The Payments feature of the DocuSign eSignature REST API
///lets you collect payments
///along with signatures and other information.
///
///To send a request for payment
///and collect payments,
///you need a payment gateway account,
///which is the destination for the payments.
///Create a payment account
///with a supported payment gateway,
///and then connect the payment gateway account
///to your DocuSign account.
///To learn how to connect a payment gateway account
///to your DocuSign account
///see [Managing Payment Gateways][paymentgateways]
///in the DocuSign Support Center.
///You must connect and manage payment gateway accounts manually
///through the DocuSign Admin console
///and through your chosen payment gateway.
///There is no public API
///for connecting payment gateway accounts
///to DocuSign accounts
///or for managing payment gateway accounts.
///
///Currently
///[Stripe][stripe],
///[Braintree](https://www.braintreepayments.com/), and
///[Authorize.net](https://www.authorize.net/)
///are the supported payment gateways.
///
///### How Payments Work
///
///To make a request for payment,
///use a [`formulaTab`][formulatab]
///that has a
///[`paymentDetails`][paymentdetails] object.
///This object includes
///a list of [`paymentLineItem`][paymentlineitem] objects.
///Each line item refers to a [`number`][numbertab] tab
///that contains the value of the each item.
///The purpose of the line items
///is to transmit them to the payment gateway
///as metadata, so that you can use the information
///in the payment processor.
///
///**Note**: If the fileExtension parameter is not added in an API call, only base64 converted pdf files will be accepted.
///Any attempt to send a non pdf file without using fileExtension results in an error.
///
///This is an example request for two books.
///Each book is specified in the `number` tabs
///labeled "Hamlet" and "Tempest".
///The books are referenced as line items
///by their tab labels
///within the `paymentDetails` object
///of a `formula` tab.
///The formula of the `formula` tab
///add the values of the same two `number` tabs.
///
///```json
///{
///  "documents": [
///    {
///      "documentBase64": "<base64-encoded PDF document>",
///      "documentId": "1",
///      "fileExtension": "pdf",
///      "name": "payment.pdf"
///    }
///  ],
///  "emailSubject": "Order Some Books",
///  "recipients": {
///    "signers": [
///      {
///        "email": "vreader@example.com",
///        "name": "Voracious Reader",
///        "recipientId": "1",
///        "routingOrder": "1",
///        "tabs": {
///          . . .
///          "numberTabs": [
///            {
///              "value": "10.00",
///              "width": 78,
///              "required": "true",
///              "locked": "true",
///              "tabLabel": "Hamlet",
///              "documentId": "1",
///              "pageNumber": "1",
///              "xPosition": "323",
///              "yPosition": "134"
///            },
///            {
///              "value": "10.00",
///              "width": 78,
///              "required": "true",
///              "locked": "true",
///              "tabLabel": "Tempest",
///              "documentId": "1",
///              "pageNumber": "1",
///              "xPosition": "323",
///              "yPosition": "154"
///            }
///          ],
///          "formulaTabs": [
///            {
///              "required": "true",
///              "formula": "([Hamlet] + [Tempest]) * 100",
///              "roundDecimalPlaces": "2",
///              "paymentDetails": {
///                "currencyCode": "USD",
///                "lineItems": [
///                  {
///                    "name": "Hamlet",
///                    "description": "The Danish Play",
///                    "itemCode": "SHAK1",
///                    "amountReference": "Hamlet"
///                  },
///                  {
///                    "name": "Othello",
///                    "description": "The one with Caliban in it",
///                    "itemCode": "SHAK2",
///                    "amountReference": "Tempest"
///                  }
///                ],
///                "gatewayAccountId": "e76668b4-xxxx-xxxx-xxxx-a208d659e490"
///              },
///              "tabLabel": "Payment1",
///              "documentId": "1",
///              "pageNumber": "1",
///              "xPosition": 300,
///              "yPosition": 200
///            }
///          ]
///        }
///      }
///    ]
///  },
///  "status": "sent"
///}
///```
///
///Use the
///[EnvelopeRecipients: list][enveloperecipientslist] method
///to check the status of a payment.
///When the payment is successful,
///the `status` property of
///the [`paymentDetails`][paymentdetails] object
///is `payment_complete`.
///
///```json
///{
///  "signers": [
///    {
///      "tabs": {
///        . . .
///        "numberTabs": [
///          {
///            "value": "10.00",
///            "tabLabel": "Hamlet",
///            "documentId": "1",
///            "recipientId": "1",
///            "pageNumber": "1",
///            "xPosition": "323",
///            "yPosition": "134",
///          },
///          {
///            "value": "10.00",
///            "tabLabel": "Tempest",
///            "documentId": "1",
///            "recipientId": "1",
///            "pageNumber": "1",
///          }
///        ],
///        "formulaTabs": [
///          {
///            "formula": "([Hamlet] + [Tempest]) * 100",
///            "roundDecimalPlaces": "2",
///            "paymentDetails": {
///              "status": "payment_complete",
///              "currencyCode": "USD",
///              "lineItems": [
///                {
///                  "name": "Hamlet",
///                  "description": "The Danish Play",
///                  "itemCode": "SHAK1",
///                  "amountReference": "Hamlet"
///                },
///                {
///                  "name": "Tempest",
///                  "description": "The one with Caliban in it",
///                  "itemCode": "SHAK2",
///                  "amountReference": "Tempest"
///                }
///              ],
///              "gatewayAccountId": "e76668b4-xxxx-xxxx-xxxx-a208d659e490"
///            },
///            "value": "20",
///            "required": "true",
///            "locked": "false",
///            "tabLabel": "Payment1",
///            "documentId": "1",
///            "recipientId": "1",
///            "pageNumber": "1",
///          }
///        ]
///      },
///      "creationReason": "sender",
///      "email": "vreader@example.com",
///      "name": "Voracious Reader",
///      "recipientId": "1",
///      "requireIdLookup": "false",
///      "status": "completed",
///    }
///  ],
///  . . .
///}
///```
///
///#### How to make a request for future payments
///
///Use the following steps to make a request to collect a signer's payment method for future use:
///
///1. Add a text tab with a descriptive `tabLabel` such as `FuturePayment`.
///2. In the formula tab's `paymentDetails` object, add a `lineItem` object that references the `tabLabel` from step 1.
///
///**Note**: Do not include this new `lineItem` in formula calculations.
///
///The following example builds on the previous code block to also collect a payment method for future use:
///
///```
///{
///  "documents": [
///    {
///      "documentBase64": "<base64-encoded PDF document>",
///      "documentId": "1",
///      "fileExtension": "pdf",
///      "name": "payment.pdf"
///    }
///  ],
///  "emailSubject": "Order Some Books",
///  "recipients": {
///    "signers": [
///      {
///        "email": "vreader@example.com",
///        "name": "Voracious Reader",
///        "recipientId": "1",
///        "routingOrder": "1",
///        "tabs": {
///          "numberTabs": [
///            {
///              "value": "10.00",
///              "width": 78,
///              "required": "true",
///              "locked": "true",
///              "tabLabel": "Hamlet",
///              "documentId": "1",
///              "pageNumber": "1",
///              "xPosition": "323",
///              "yPosition": "134"
///            },
///            {
///              "value": "10.00",
///              "width": 78,
///              "required": "true",
///              "locked": "true",
///              "tabLabel": "Tempest",
///              "documentId": "1",
///              "pageNumber": "1",
///              "xPosition": "323",
///              "yPosition": "154"
///            }
///          ],
///          "textTabs": [
///            {
///              "value": "",
///              "width": 78,
///              "required": "true",
///              "locked": "true",
///              "tabLabel": "FuturePayment",
///              "documentId": "1",
///              "pageNumber": "1",
///              "xPosition": "323",
///              "yPosition": "174"
///            }
///          ],
///          "formulaTabs": [
///            {
///              "required": "true",
///              "formula": "([Hamlet] + [Tempest]) * 100",
///              "roundDecimalPlaces": "2",
///              "paymentDetails": {
///                "currencyCode": "USD",
///                "paymentOption": "save_and_authorize",
///                "lineItems": [
///                  {
///                    "name": "Hamlet",
///                    "description": "The Danish Play",
///                    "itemCode": "SHAK1",
///                    "amountReference": "Hamlet"
///                  },
///                  {
///                    "name": "Othello",
///                    "description": "The one with Caliban in it",
///                    "itemCode": "SHAK2",
///                    "amountReference": "Tempest"
///                  },
///                  {
///                    "name": "Request books",
///                    "description": "collect Payment method",
///                    "itemCode": "",
///                    "amountReference": "FuturePayment"
///                  }
///                ],
///                "gatewayAccountId": "e76668b4-xxxx-xxxx-xxxx-a208d659e490"
///              },
///              "tabLabel": "Payment1",
///              "documentId": "1",
///              "pageNumber": "1",
///              "xPosition": 300,
///              "yPosition": 200
///            }
///          ]
///        }
///      }
///    ]
///  },
///  "status": "sent"
///}
///```
///
///### Some Things to Keep in Mind About Payments
///
///* An envelope is not completed until all payments are completed.
///
///* If a DocuSign account Administrator
///  deletes a payment gateway account connection
///  DocuSign cancels all in-process envelopes
///  that reference the deleted payment gateway account.
///
///* If the sender voids an envelope,
///  all payment authorizations are canceled.
///
///* If a required recipient refuses to sign,
///  all authorized payments are canceled.
///
///* If a required recipient's payment fails authorization,
///  DocuSign attempts to recover
///  by sending the recipient
///  notification about the failed payment authorization.
///  The recipient has the opportunity
///  to correct the payment method information.
///
///* Each recipient's payment is authorized separately.
///  Accounts are charged and payment made
///  after all required tabs are completed,
///  and all payments in an envelope for all recipients are authorized.
///
///* Refunds are not supported.
///  Conduct refunds or payment changes
///  with the payment gateway separately from DocuSign.
///
///* At this time, DocuSign does not charge a per-transaction fee.
///
///
///[enveloperecipientslist]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipients/list/
///[formulatab]:             https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/create/
///[ISO4217]:                https://en.wikipedia.org/wiki/ISO_4217
///[numbertab]:              https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/create/
///[paymentgateways]:        https://support.docusign.com/en/guides/managing-payment-gateways
///[paymentguide]:           https://support.docusign.com/en/guides/requesting-payments-along-with-signatures
///[paymentlineitem]:        https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/create/
///[paymentdetails]:         https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/create/
///[stripe]:                 https://stripe.com/
///
///
///## Using Custom Tabs in Envelopes and Templates
///
///Custom Tabs can be added to envelopes and templates
///by setting the `customTabId` property
///when creating an envelope or template recipient
///or when adding a new tab for an existing recipient.
///The custom tab must be added as the correct tab type.
///For example if the custom tab type is text, it cannot be used as a number tab.
///
///When the `customTabId` property is set,
///the new tab inherits all the custom tab properties.
///Required information that is not included in the custom tab,
///such as document ID and page ID, must be included when adding the tab.
///If the custom tab does not have anchor settings, the X and Y positions must be included.
///
///After the tab is created,
///it is treated as any other tab for updating or deleting.
///
///## Anchoring Tabs
///
///The tab anchoring option
///allows you to send documents for signature
///that do not have a fixed layout or format.
///In these documents you might not know
///the absolute location of the tabs
///when you design your API client application because the tabs must move with text.
///As an alternative to sending X and Y coordinates for tabs,
///the DocuSign Service can derive an anchor location for the tab
///by correlating anchor information to data within the document.
///
///When the DocuSign Service receives a request that contains tabs
///with anchor information,
///it searches the document for instances of the `anchorString` property.
///When found,
///it places a tab of the specified type for the designated recipient.
///Tab positions are established by setting offsets for the tab.
///
///When you apply tabs to the document,
///DocuSign does not remove or replace the text in the `anchorString` property. You can hide codified anchors by using the same font color as the background of the document. So the anchor can be used by DocuSign processes and it will not be visible on the document.
///
///To use an anchoring option:
///
///1. Identify the location in the document by text string. You can use a pre-existing text string or add a new one.
///For best performance DocuSign recommends using single word anchor strings when possible, especially when there are a large number of pages in the envelope.
///For example, you might want to add a Sign Here tab to the "Borrower's Signature" lines in a document, but that phrase might occur in places in the document where you don't want to tab to appear. In this case, you could add the text "BorrowerSignHere" in white font color (so that isn't visible in the document) to all the places you want Sign Here tabs to appear and use "BorrowerSignHere" as the anchor string.
///1. Reference the anchor through the `anchorString` property of the tab.
///1. Determine the offset from the anchor string location to where the tab should be placed.
///
///Setting a positive value in the `anchorXOffset` property moves the tab right on the page and positive values in the  `anchorYoffset` prove moves the tab down the page. The `anchorUnits` property specifies the units used for the offsets.
///For Sign Here and Initial Here tabs the bottom-left of the anchor string is equivalent to position (0,0), and the bottom-left of the tab graphic is placed relative to that.
///For all other tabs the bottom-left of the anchor string is equivalent to position (0,0), and the top-left of the tab graphic is placed relative to that.
///DocuSign does not currently provide tools to derive the offset values. Determination of the proper offset will likely require some trial-and-error.
///
///### Rules for working with anchor tags
///
///When anchor tabs are used, all documents in the envelope are searched for the `anchorString` property.
///
///* You set the text of the anchor string in the `anchorString` property. DocuSign tabs are created for each instance of the `anchorString` property within the document, so special care must be taken to establish unique anchor strings that do not result in unintentional tabs.
///* You cannot use the same anchored tab for different recipients for the same document.
///* The DocuSign system cannot search for text that is embedded in an image when checking for anchor strings.
///* X or Y offsets supplied for a tab apply to all instances of the tab in the document. To use different offsets at different locations in the document for the same recipient, create multiple, unique anchor tabs.
///* If the Y offset value of an anchor string would force a tab outside of the page boundaries, the tag is placed at the page boundary. If the X offset value places a tab outside of the page boundaries, the error message `Invalid_User_Offset` is sent. The error message includes the X offset that resulted in the error.
///* The system does not support an anchor string embedded in the form of a PDF X-object in the document.
///* The system does not re-flow the text that surrounds the anchor tabs. It is the responsibility of the document author to provide sufficient white space to contain the potential width of the ultimate tab value.
///
///### Tips and Tricks
///
///The following are tips for effective use of anchor tags:
///* In order to avoid unintentional conflicts between text contained in an `anchorString` property and the text that naturally exists in documents, establish a codified syntax for the anchor string text that is unlikely to appear elsewhere in a document.
///* Develop an extensible and consistent syntax that can be used across multiple document types.
///* Especially for documents that have variable numbers of tabs or signers, author the source document to include hidden anchor tabs for all potential signers/permutations. Then, control the tabs that are actually placed by including/excluding the anchor tabs in the request. This approach allows a single document to be used for all use cases instead of maintaining separate documents for each scenario.
///
///## Automatically Populating Tabs
///
///If you want similar tab types
///to automatically populate with the same data,
///you must follow these guidelines:
///
///* Each `tabLabel` entry must have the characters
///  `\\*` in front of the label.
///  If you omit the `\\*` prefix,
///  only the first occurrence of the tab is populated.
///
///  When automatically populating tabs,
///  the `tabLabel` must not contain any spaces.
///  In the JSON example below,
///  the Text tabs  properties `StudentLastName` and `StudentFirstName`
///  will be auto-populated as specified ("Doe" and "John")
///  each place they appear throughout the envelope.
///
///  ```
///  "tabs": {
///    "textTabs": [
///    {
///      "tabLabel": "\\*StudentLastName",
///      "value": "Doe"
///    },
///    {
///      "tabLabel": "\\*StudentFirstName",
///      "value": "John"
///    }]
///  }
///  ```
///
///* Note that `\\*` matches _anything_.  If you were to add
///  another tab with the `tabLabel` set to `\\*Name` to the
///  example above, it would end up matching the other two
///  labels as well.
///
///* Each occurrence of the tab must have identical properties.
///
///  For example, suppose there are two Text tabs in a document,
///  each with `tabLabel` set to `Name`.
///  If one tab has the `bold` property set to **true**,
///  and the other has the `bold` property set to **false**,
///  only the first one will be populated.
///  In order to automatically populate both occurrences
///  of the `Name` Text tabs,
///  the `bold` property must be set to the same value for both tabs.
///.
pub mod envelope_recipient_tabs;
/// The EnvelopeRecipients resource enables you manage the recipients of an envelope. All recipient types share a set of [core parameters](#core-recipient-parameters), but some recipient types have additional parameters. You specify the recipient type using the `recipientType` parameter. The recipient types are as follows:
///
///<br>
///
///| Recipient type | Description |
///| :--- | :--- |
///| [Agent](#agent-recipient) | Agent recipients can add name and email information for recipients that appear after the agent in routing order. |
///| [Carbon Copy](#carbon-copy-recipient) | Carbon copy recipients get a copy of the envelope but don't need to sign, initial, date, or add information to any of the documents. This type of recipient can be used in any routing order. Carbon copy recipients receive their copy of the envelope when the envelope reaches the recipient's order in the process flow and when the envelope is completed. |
///| [Certified Delivery](#certified-delivery-recipient) | Certified delivery recipients must receive the completed documents for the envelope to be completed. However, they don't need to sign, initial, date, or add information to any of the documents. |
///| [Editor](#editor-recipient) | Editors have the same management and access rights for the envelope as the sender. They can make changes to the envelope as if they were using the Advanced Correct feature. This recipient can add name and email information, add or change the routing order, set authentication options, and can edit signature/initial tabs and data fields for the remaining recipients. The recipient must have a DocuSign account to be an editor. |
///| [In-Person Signer](#in-person-signer-recipient) | In-person signer recipients are DocuSign users who act as signing hosts in the same physical location as the signer. |
///| [Intermediary](#intermediary-recipient) | Intermediaries are recipients who can, but are not required to, add name and email information for recipients at the same or subsequent level in the routing order, unless subsequent agents, editors, or intermediaries are added. |
///| [Seal](#seal-recipient) | Electronic seal recipients represent legal entities rather than individuals. Organizations and governments can use electronic seals to show evidence of origin and integrity of documents. |
///| [Signer](#signer-recipient) | Signers are recipients who must sign, initial, date, or add data to form fields on the documents in the envelope. |
///| [Witness](#witness-recipient) | Witnesses are recipients whose signatures affirm that the identified signers have signed the documents in the envelope. |
///
///<br>
///
///Not all recipients are are available to all account types. Review your account plan to determine which recipient types are available to you. All recipient types are available in the Demo environment.
///
///
///## Core Recipient Parameters
///
///All recipients, regardless of type, have the same common core parameters. The following table contains the descriptions for the core properties for all recipient types:
///
///<br>
///
///| Name | Required | Schema Type | Description |
///| :--- | :--- | :--- | :--- |
///| email | Yes | Email | Email of the recipient. Notification will be sent to this email id.<br/>Maximum Length: 100 characters. |
///| name | Yes | String | Full legal name of the recipient.<br/>Maximum Length: 100 characters.<br/><br/>**Note:** If you are creating an envelope with DocuSign EU advanced signature enabled, ensure that recipient names do not contain any of the following characters: **^ : \ @ , + <** |
///| accessCode | No | String | This optional element specifies the access code a recipient has to enter to validate the identity.<br/>Maximum Length: 50 characters. |
///| addAccessCodeToEmail | No | Boolean | This optional attribute indicates that the access code is added to the email sent to the recipient; this nullifies the Security measure of Access Code on the recipient. |
///| agentCanEditEmail | No | Boolean | When set to **true**, the agent recipient associated with this recipient can change the recipient's pre-populated email address. This element is only active if enabled for the account. |
///| agentCanEditName | No | Boolean | When set to **true**, the agent recipient associated with this recipient can change the recipient's pre-populated name (`UserName`). This element is only active if enabled for the account. |
///| clientUserId | No | String | This specifies whether the recipient is embedded or remote.<br/><br/>If the `clientUserId` property is not null then the recipient is embedded. Note that if the `ClientUserId` property is set and either `SignerMustHaveAccount` or `SignerMustLoginToSign` property of the account settings is set to  **true**, an error is generated on sending. Maximum length: 100 characters. |
///| embeddedRecipientStartURL | No | String | This is a sender provided valid URL string for redirecting an embedded recipient. When using this option, the embedded recipient still receives an email from DocuSign, just as a remote recipient would, but when the document link in the email is clicked the recipient is redirected, through DocuSign, to this URL to complete their actions. When routing to the URL, it is up to the sender's system (the server responding to the URL) to then request a recipient token to launch a signing session.<br/><br/>If the value `SIGN_AT_DOCUSIGN` is used for this node, the recipient is directed to an embedded signing or viewing process directly at DocuSign. The signing or viewing action is initiated by the DocuSign system and the transaction activity and Certificate of Completion records will reflect this. In all other ways the process is identical to an embedded signing or viewing operation that would be launched by any partner.<br/><br/>It is important to remember that in a typical embedded workflow the authentication of an embedded recipient is the responsibility of the sending application and DocuSign expects that senders will follow their own process for establishing the recipient's identity. In this workflow the recipient goes through the sending application before the embedded signing or viewing process in initiated. However, when the sending application sets  the `EmbeddedRecipientStartURL` property to `SIGN_AT_DOCUSIGN`, the recipient goes directly to the embedded signing or viewing process bypassing the sending application and any authentication steps the sending application would use. In this case, DocuSign recommends that one of the normal DocuSign authentication features (Access Code, Phone Authentication, SMS Authentication, etc.) be used to verify the identity of the recipient.<br/><br>If the `clientUserId` property is NOT set and the `embeddedRecipientStartURL` property is set, DocuSign ignores the redirect URL and launch the standard signing process for the email recipient. Information can be appended to the `embeddedRecipientStartURL` property using merge fields. The available merge fields items are: envelopeId, recipientId, recipientName, recipientEmail, and customFields. The customFields must be part of the recipient or envelope. The merge fields are enclosed in double brackets.<br/><br/>_Example_:<br/>`http://senderHost/[[mergeField1]]/ beginSigningSession? [[mergeField2]]&[[mergeField3]]` |
///| customFields | No | customField |An optional array of strings that allows the sender to provide custom data about the recipient. This information is returned in the envelope status but otherwise not used by DocuSign. String `customField` properties have a maximum length of 100 characters. |
///| emailNotification | No | emailNotification | An optional complex type that has information for setting the language for the recipient's email information. It is composed of three elements:<br/><br/>*emailBody*: a string with the email message sent to the recipient.<br/>Maximum Length: 10000 characters.<br/><br/>*emailSubject*: a string with the subject of the email sent to the recipient.<br/>Maximum Length: 100 characters.<br/><br/>*supportedLanguage*: The simple type enumeration (two-letter code) for the language to use for the standard email format and the signing view for the recipient. To retrieve the possible values, use the [Accounts::listSupportedLanguages method][ListLang].<br/><br/>**Note**: You can set the `emailNotification` property separately for each recipient. If you set the value only for certain recipients, the other recipients will inherit the this value from the top-level `emailSubject` and `emailBlurb`.  |
///| excludedDocuments | No | Array of Strings | Specifies the documents that are not visible to this recipient. Document Visibility must be enabled for the account and the enforceSignerVisibility property must be set to true for the envelope to use this.<br/><br/>When the enforceSignerVisibility property is set to **true**, documents with tabs can only be viewed by signers that have a tab on that document. Recipients that have an administrative role (Agent, Editor, or Intermediaries) or informational role (Certified Deliveries or Carbon Copies) can always see all the documents in an envelope, unless they are specifically excluded using this setting when an envelope is sent. Documents that do not have tabs are always visible to all recipients, unless they are specifically excluded using this setting when an envelope is sent. |
///| idCheckConfigurationName | No | String |Specifies authentication check by name. The names used here must be the same as the authentication type names used by the account (these name can also be found in the web console sending interface in the Identify list for a recipient). This overrides any default authentication setting.<br/><br/>_Example_:<br/> Your account has ID Check and SMS Authentication available and in the web console Identify list these appear as 'ID Check $' and 'SMS Auth $'. To use ID check in an envelope, the `idCheckConfigurationName` property must be  set to `ID Check $`. To use SMS, it must be set to `SMS Auth $` and you must add phone number information to the `smsAuthentication` node.|
///| iDCheckInformationInput | No | IdCheckInformationInput | This complex element contains input information related to a recipient ID check. It can include the following information.<br/><br/>*addressInformationInput*: Used to set recipient address information and consists of:<br/><br/>*addressInformation*: consists of six elements, with street2 and zipPlus4 being optional. The elements are: street1, street2, city, state, zip, zipPlus4\. The maximum number of characters in each element are: street1/street2 = 150 characters, city = 50 characters, state = 2 characters, and zip/zipPlus4 = 20 characters.<br/><br/>displayLevelCode: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*dobInformationInput*: Used to set recipient date of birth information and consists of:<br/><br/>*dateOfBirth*: Specifies the recipient's date, month and year of birth.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*ssn4InformationInput*: Used to set the last four digits of the recipient's SSN information and consists of:<br/><br/>*ssn4*: Specifies the last four digits of the recipient's SSN.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*ssn9InformationInput*: Used to set the recipient's SSN information. Note that the ssn9 information can never be returned in the response. The ssn9 input consists of:<br/><br/><br/><br/>*ssn9*: Specifies the recipient's SSN.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay. |
///| inheritEmailNotificationConfiguration | No | Boolean | Optional element. If true and the envelope recipient creates a DocuSign account after signing, the Manage Account Email Notification settings are used as the default settings for the recipient's account. |
///| note | No | String | A note that is unique to this recipient. This note is sent to the recipient via the signing email. The note displays in the signing UI near the upper left corner of the document on the signing screen.<br/>Maximum Length: 1000 characters. |
///| phoneAuthentication | No | RecipientPhoneAuthentication | Optional element. Contains the elements: <br/><br/> *recipMayProvideNumber*:Boolean. When set to **true** thenrecipient can use whatever phone number they choose to.<br/><br/> *senderProvidedNumbers*: ArrayOfString. A list of phone numbers the recipient can use. <br/>
///| recipientId | No | String | Unique for the recipient. It is used by the tab element to indicate which recipient is to sign the Document. |
///| requireIdLookup | No | Boolean | When set to **true**, the recipient is required to use the specified ID check method (including Phone and SMS authentication) to validate their identity. |
///| roleName | No* | String | Optional element. Specifies the role name associated with the recipient.<br/><br/>This is required when working with template recipients. |
///| routingOrder | Yes | String | This element specifies the routing order of the recipient in the envelope. |
///| smsAuthentication | No | senderProvidedNumbers | Optional element. Contains the element:<br/><br/>*senderProvidedNumbers*: Array that contains a list of phone numbers the recipient can use for SMS text authentication. |
///| templateAccessCodeRequired | No | Boolean | Optional element. Used only when working with template recipients. When set to **true** and the `TemplateLocked` parameter is set to **true**, the sender must enter an access code. |
///| templateLocked | No | Boolean | Optional element. Used only when working with template recipients. When set to **true**, the sender cannot change any attributes of the recipient. |
///| templateRequired | No | Boolean | Optional element. Used only when working with template recipients. When set to **true**,  the sender may not remove the recipient. |
///| identityVerification <a name="toto"></a> | No | identityVerification | Optional element. Specifies ID Verification applied on an envelope by workflow ID. <br/>See the [list](https://developers.docusign.com/docs/esign-rest-api/reference/accounts/identityverifications/list/) method in the [IdentityVerifications](https://developers.docusign.com/docs/esign-rest-api/reference/accounts/identityverifications/) resource for more information on how to retrieve workflow IDs available for an account. <br/>This can be used in addition to other [recipient authentication](https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/recipients/auth/) methods. <br/>Note that ID Verification and ID Check are two distinct methods. ID Verification checks recipients' identity by verifying their ID while ID Check relies on data available on public records (such as current and former address). |
///
///<br>
///
///
///
///## Agent Recipient
///
///An agent recipient can add name and email information for recipients that appear after the agent in routing order.
///
///In addition to the [core parameters](#core-recipient-parameters), this recipient type has the following parameters:
///
///<br>
///
///| Name | Required | Schema Type | Description |
///| :--- | :--- | :--- | :--- |
///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
///
///<br>
///
///
///
///## Carbon Copy Recipient
///
///Carbon copy recipients receive a copy of the envelope but don't need to sign, initial, date or add information to any of the documents. You can place this type of recipient in any routing order. Carbon copy recipients receive their copy of the envelope when the envelope reaches the recipient's order in the process flow and when the envelope is completed.
///
///In addition to the [core parameters](#core-recipient-parameters), this recipient type has the following parameters:
///
///<br>
///
///| Name | Required | Schema Type | Description |
///| :--- | :--- | :--- | :--- |
///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
///
///<br>
///
///
///
///## Certified Delivery Recipient
///
///Certified delivery recipients must receive the completed documents for the envelope to be completed. However, they don't need to sign, initial, date or add information to any of the documents.
///
///In addition to the [core parameters](#core-recipient-parameters), this recipient type has the following parameters:
///
///<br>
///
///| Name | Required | Schema Type | Description |
///| :--- | :--- | :--- | :--- |
///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
///
///<br>
///
///
///
///## Editor Recipient
///
///Editors have the same management and access rights for the envelope as the sender. They can make changes to the envelope as if they were using the Advanced Correct feature. This recipient can add name and email information, add or change the routing order and set authentication options for the remaining recipients. Additionally, this recipient can edit signature/initial tabs and data fields for the remaining recipients. The recipient must have a DocuSign account to be an editor.
///
///In addition to the [core parameters](#core-recipient-parameters), this recipient type has the following parameters:
///
///<br>
///
///
///| Name | Required | Schema Type | Description |
///| :--- | :--- | :--- | :--- |
///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
///
///
///<br>
///
///
///## In-Person Signer Recipient
///
///An in-person recipient is a DocuSign user, acting as a Signing Host, who is in the same physical location as the signer.
///
///The following restrictions apply to using electronic notary when sending documents:
///
///* Authentication methods are allowed for the signer but not the notary.
///* The Sign On Paper, Document Markup, Field Markup and Change Signer options cannot be used for the documents.
///* Tabs may be assigned to the signer, but cannot be assigned to the notary.
///
///See [eNotary Resources][enotary-resources] in the DocuSign Support Center for more information about how the eNotary feature works.
///
///In addition to the [core parameters](#core-recipient-parameters), this type adds the following parameters:
///
///<br>
///
///
///| Name 	| Required 	| Schema Type 	| Description 	|
///|-----------------------	|-----------------------------------------------------	|-------------	|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------	|
///| inPersonSigningType 	| No 	| String 	| Specifies whether the envelope uses the eNotary feature. The accepted values are:<ul markdown=1><li>`inPersonSigner` The envelope uses the normal in-person signing flow.</li><li>`notary`: The envelope uses the eNotary signing flow.</li></ul> 	|
///| notaryHost 	| Yes, when `inPersonSigningType` is `notary` 	| NotaryHost 	| Sets the information for the notary host for the notary in person signing flow. The following information is required: <ul markdown=1> <li>`recipientId`: A unique ID number for the notary signing host. </li> <li>`name`: Specifies the notary's full legal name.</li> <li>`email`: Specifies the notary's email address. </li> </ul> 	|
///| autoNavigation 	| No 	| Boolean 	| Specifies whether auto navigation is set for the recipient. 	|
///| defaultRecipient 	| No 	| Boolean 	| When set to **true**, this is the default recipient for the envelope. This option is used when creating an envelope from a template. 	|
///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
///| hostName 	| Yes, when `inPersonSigningType` is `inPersonSigner` 	| String 	| The name of the signing host. This is the DocuSign user that is hosting the in-person signing session. 	|
///| hostEmail 	| Yes, when `inPersonSigningType` is `inPersonSigner` 	| String 	| The email address of the signing host. This is the DocuSign user that is hosting the in-person signing session. 	|
///| signerName 	| Yes, when `inPersonSigningType` is `inPersonSigner` 	| String 	| The in-person signer's full legal name. 	|
///| Name 	| Yes, when `inPersonSigningType` is `notary` 	| String 	| The full legal name of the signer in an eNotary flow. 	|
///| email 	| Yes, when `inPersonSigningType` is `notary` 	| String 	| The signer's email address in an eNotary flow. 	|
///| recipientSuppliesTabs 	| No 	| Boolean 	| Indicates whether the recipient supplies tabs in the document. 	|
///| signatureInfo 	| No 	| String 	| Optional element only used with the recipient types In Person Signers, Signers, and Witnesses.<br/><br/>Allows the sender to pre-specify the signature name, signature initials, and signature font used in the signature stamp for the recipient. 	|
///| signInEachLocation 	| No 	| Boolean 	| When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab (instead of adopting a signature/initial style or only drawing a signature/initial once). 	|
///| tabs 	| No 	| Tab 	| Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Specifies the Tabs associated with the recipient. See the [EnvelopeRecipientTabs resource](https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/) for more information about tabs. 	|
///|  	|  	|  	|  	|
///
///
///<br>
///
///
///
///## Intermediary Recipient
///
///An intermediary is a recipient who can, but is not required to, add name and email information for recipients at the same or subsequent level in the routing order, unless subsequent agents, editors or intermediaries are added.
///
///In addition to the [core parameters](#core-recipient-parameters), this recipient type has the following parameters:
///
///<br>
///
///
///| Name | Required | Schema Type | Description |
///| :--- | :--- | :--- | :--- |
///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
///
///<br>
///
///
///
///## Seal Recipient
///
///An electronic seal recipient is a legal entity rather than an actual person. Electronic Seals can be used by organizations and governments to show evidence of origin and integrity of documents. Even though electronic seals can be represented by a tab in a document, they do not require user interaction and apply automatically in the order specified by the sender. The sender is therefore the person authorizing usage of the electronic seal in the flow.
///
///Electronic seal recipients rely on a subset of core properties, described as follows, plus the `recipientSignatureProviders` parameter:
///
///
///<br>
///
///
///| Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Schema Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Description&nbsp;&nbsp;&nbsp;&nbsp; |
///| :--- | :--- | :--- | :--- |
///| recipientId| Yes | String | Indicates the unique ID of the applied electronic seal.<br/>|
///| routingOrder| No (default: 1) | String | Specifies the routing order of the electronic seal in the envelope. <br />The routing order assigned to your electronic seal cannot be shared with another recipient. It is recommended that you set a routing order for your electronic seals.. |
///| recipientSignatureProviders| Yes | String | Indicates which electronic seal to apply on documents when creating an envelope. |
///
///
///<br>
///
///
///
///By default, Electronic Seals apply on all documents in an envelope. However, the sealDocumentsWithTabsOnly property (see recipientSignatureProvider) allows you to seal only documents that have signHere tabs set for the Electronic Seal recipients.
///
///<br>
///
///
///
///## Signer Recipient
///
///A signer is a recipient who must sign, initial, date, or add data to form fields on the documents in the envelope.
///
///In addition to the [core parameters](#core-recipient-parameters), this recipient type adds the following parameters:
///
///<br>
///
///
///| Name | Required | Schema Type | Description |
///| :--- | :--- | :--- | :--- |
///| autoNavigation | No | Boolean | Specifies whether auto navigation is set for the recipient.|
///| defaultRecipient | No | Boolean | When set to **true**, this is the default recipient for the envelope. This option is used with the CreateEnvelopeFromTemplatesAndForms method. |
///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
///| isBulkRecipient | No | Boolean | Indicates whether the recipient is a bulk send recipient or not. |
///| recipientSuppliesTabs | No | Boolean | Indicates whether the recipient supplies tabs in the document. |
///| signInEachLocation | No | Boolean | When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab (instead of adopting a signature/initial style or only drawing a signature/initial once). |
///| signatureInfo | No | String | Optional element only used with recipient types In Person Signers, Signers, and Witnesses.<br/><br/>Allows the sender to pre-specify the signature name, signature initials, and signature font used in the signature stamp for the recipient. |
///| signerEmail | No | String | Optional element. The email address for an In-Person Signer recipient Type.<br/>Maximum Length: 100 characters. |
///| signerName | Yes | String | Required element with recipient type In Person Signers.<br/>Maximum Length: 100 characters.<br/><br/>The full legal name of a signer for the envelope. |
///| tabs | No | Tab | Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Specifies the Tabs associated with the recipient. See the the [EnvelopeRecipientTabs resource](https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/enveloperecipienttabs/)  for more information about tabs. |
///
///<br>
///
///[enotary-resources]: https://support.docusign.com/en/guides/ndse-user-guide-enotary-resources
///
///
///## Witness Recipient
///
///A witness is a recipient whose signature affirms that the identified signers have signed the documents in the envelope.
///
///In addition to the [core parameters](#core-recipient-parameters), this recipient type adds the following parameters:
///
///<br>
///
///
///| Name | Required | Schema Type | Description |
///| :--- | :--- | :--- | :--- |
///| autoNavigation | No | Boolean |	Specifies whether auto navigation is set for the recipient. |
///| defaultRecipient | No | Boolean | When set to **true**, this is the default recipient for the envelope. This option is used when creating an envelope from a template. |
///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
///| isBulkRecipient | No | Boolean | Indicates whether the recipient is a bulk send recipient or not. |
///| recipientSignatureProviders | Yes | String | Indicates which electronic seal to apply on documents when creating an envelope. |
///| recipientSuppliesTabs | No | Boolean | Indicates whether the recipient supplies tabs in the document. |
///| recipientType | Yes | String | Indicates the recipient type. |
///|requireSignerCertificate | No | Boolean | Indicates whether the envelope requires a signer certificate for this recipient. |
///| requireSignOnPaper | No | Boolean | Specifies whether the signer must print, sign, and upload or fax the signed documents to DocuSign. |
///| signatureInfo | No | Boolean | Optional element only used with recipient types In Person Signers, Signers, and Witnesses. Enables the sender to pre-specify the signature name, signature initials, and signature font used in the signature stamp for the recipient. |
///| signInEachLocation | No | Boolean | When set to **true** and the feature is enabled in the sender's account, specifies that the signing recipient is required to sign and initial at each signature/initial tab (instead of once). |
///| signingGroupId | No | String | The id of the [signing group](https://support.docusign.com/en/guides/ndse-user-guide-signing-groups). |
///| signingGroupName | No | String | The display name for the signing group. Maximum Length: 100 characters. |
///| signingGroupUsers | No | userInfo | A complex type that contains information about the users in the signing group. |
///| witnessFor | Yes | String | Indicates the person or party for whom the recipient is a witness. |
///| witnessForGuid | Yes | String | GUID identifying the person or party for whom the recipient is a witness. |
///
///
///[ListLang]: https://developers.docusign.com/docs/esign-rest-api/reference/Accounts/Accounts/listSupportedLanguages/
///.
pub mod envelope_recipients;
/// The EnvelopeTemplates resource provides methods that allow you to add and delete templates on envelopes and documents.
pub mod envelope_templates;
/// Envelope transfer rules enable administrators to transfer envelopes and templates from user to another. For example, you might do this when an employee leaves the company. To transfer ownership of envelopes and templates, the **Transfer Custody** feature must be enabled for your account.
///
///For more information about this functionality, see [Transfer Envelopes and Templates](https://support.docusign.com/en/guides/ndse-admin-guide-transfer-envelopes-templates).
pub mod envelope_transfer_rules;
/// The `EnvelopeViews` resource provides methods that return URLs that you can embed into your application to provide access to the DocuSign UI.
///
///The following Envelope Views are available:
///
///-  Console View: The authentication view of the DocuSign UI.
///-  Correct View: The correction view of the DocuSign UI.
///-  Edit View: The editing view of the DocuSign UI.
///   **Note**: This provides the same functionality as the sender view.
///-  Recipient View: The view the recipient sees in the DocuSign UI.
///-  Shared Recipient View: The view a user sees of a shared envelope in the DocuSign UI.
///-  Sender View: The sending view of the DocuSign UI.
pub mod envelope_views;
/// .
pub mod envelope_workflow_definition;
/// The Envelope resource provides methods that allow you to manipulate and monitor envelopes.
///
///Once you have authenticated the user you can use the Envelopes: createEnvelope method to create an envelope. You can call the EnvelopeDocuments: update or EnvelopeDocuments: updateList method to add additional documents.
///
///Setting the `status` property on the envelope to `sent` allows you to send it or `created` to save it as a draft.
///
///You can receive envelope event notifications by setting the `eventNotification` properties. When the envelope or recipient status changes to one of the specified status codes, a notification is sent to a URL that you specify.
///
///If you have an envelope that you have previously saved, you can modify the subject and message, send it, void it, or place it in the purge queue using the Envelope: update method.
///
///In addition to receiving notifications you can monitor the status of the envelopes using the following methods:
///* Envelope: getEnvelope - To get the status of a envelope.
///* Envelope: listStatus - To get the envelope status for a set of envelopes.
///* Envelope: listStatusChanges - To get status changes information for one or more envelopes.
///
///If you need to delete a page from a document in an envelope, use the Envelope: deleteDocumentPage method.
///
///The resource also includes a number of methods that allow you to retrieve and set the initials and signature for certain types of recipients on the document.
pub mod envelopes;
/// .
pub mod favorite_templates;
/// The Folders resource provides methods that allow you to view contents of folders on the account and move envelopes between folders.
pub mod folders;
/// For the custom groups you define for your account, you can assign brands to specify the ones that group members can use. Group members can use the available brands when they send envelopes or create templates. For more information, see [Assign Brands to Groups](https://support.docusign.com/en/guides/ndse-admin-guide-assign-brands-to-groups).
pub mod group_brands;
/// The GroupUsers resource provides methods that allow you to manage the users in a group.
pub mod group_users;
/// The Groups resource provides methods that allow you to manage groups for the account.
///
///Groups can be used to help manage users by associating users with a group. A group can be associated with a Permission Profile, which sets the user permissions for users in that group without having to set the `userSettings` property for each user. You are not required to set Permission Profiles for a group, but this makes it easier to manage user permissions for a large number of users. Groups can also be used with template sharing to limit user access to templates.
pub mod groups;
/// The DocuSign Identity Verification process requires a signer to submit an image of their valid government ID and wait for the image to be uploaded and verified before they can access a document.
///
///Identity Verification supports government photo IDs and European eIDs, analyzing the document security features and matching the name on the agreement against the name on the ID. After a successful verification, the signer can view the agreement and sign as usual.
///
///To use Identity Verification, the [DocuSign Identity Verification](https://www.docusign.com/products/identify) product must be enabled for your account.
///
///For more information, see [Can I see (a photo of) your ID? Digital verification of real-world IDs](https://www.docusign.com/blog/can-i-see-a-photo-of-your-id-digital-verification-of-real-world-ids/).
pub mod identity_verifications;
/// The Invoices resource provides methods that allow you to manage the invoices for an account.
pub mod invoices;
/// DocuSign eNotary makes the notarization process fully digital
///for senders, signers, and notaries.
///It enables a notary public to act as an in-person witness
///to electronic signing of documents.
///Check the [DocuSign eNotary support documentation](https://support.docusign.com/en/guides/ndse-user-guide-enotary-resources)
///to see which jurisdictions are supported.
///
///.
pub mod notary;
/// .
pub mod notary_journals;
/// Creating, updating, and deleting notary jurisdiction objects.
pub mod notary_jurisdiction;
/// .
pub mod payment_gateway_accounts;
/// The Payments resource provides methods that allow you to manage payments for an account.
///
///These calls can only be used by users with account administrator privileges.
pub mod payments;
/// The PowerFormData resource provides a method for accessing PowerForm data.
///.
pub mod power_form_data;
/// PowerForms enable you to create self-service documents for signature. A PowerForm is an envelope initiated from a URL that you make available for signers to complete. You can either add a PowerForm to your website or email the URL to recipients. DocuSign saves the data that recipients enter so  you can easily integrate it with your other applications.
///
///For more information, see [Using PowerForms](https://support.docusign.com/en/guides/ndse-user-guide-using-powerforms).
///
///**Note**: PowerForms are available only for DocuSign Enterprise accounts.
///
///
///### Errors
///
///PowerForm methods return the following 404 errors:
///
///- `PowerForms_Recipient_Denied_Documents`: The recipient is denied access to the documents.
///- `PowerForms_DigitalCerts_Shared_Tabs_Not_Allowed`: Shared tags are not allowed because a digital certificate is required
///for a signer.
///- `PowerForms_DigitalCerts_Free_Form_Tabs_Not_Allowed`: Signers that are required to use a digital certificate must have at
///least one required, non-conditional signature or initials tab.
///- `PowerForms_DigitalCerts_Multiple_Recipients_Routing_Order`: Signers that are required to use a digital certificate must be the
///only recipient in a routing order. Edit the routing order or remove the digital certificate requirement.
///- `PowerForms_DigitalCerts_Markup_Not_Allowed`: Document markup is not allowed because a digital certificate is
///required for a signer.
///- `PowerForms_Incomplete_Recipient`: The recipient's username, email, or role is not set.
///- `PowerForms_PowerFormId_Required`: A `powerFormId` is required.
///- `PowerForms_PowerFormId_Mismatch`: A `powerFormId` mismatch has occurred.
///.
pub mod power_forms;
/// .
pub mod reports;
/// The RequestLogs resource provide methods that allow you to retrieve and delete the API request log files.
///
///The log files contain the API requests associated with your integration. They can aid you in troubleshooting specific issues within an integration, or if DocuSign Support requests an API trace log.
pub mod request_logs;
/// The Resources resource provides a method which retrieves the base resources that are available.
pub mod resources;
/// **Note**: Responsive Signing is disabled by default. To use this functionality, an account administrator must switch the account setting `enableResponsiveSigning` to **true**.
///Also note that Smart Sections (creating a signable HTML document that uses collapsible sections and rotating tables) are premium features. To request them, contact your DocuSign account manager.
pub mod responsive_html_preview;
/// The Services resource provides a method that allow you to retrieve the available service versions.
pub mod services;
/// The SigningGroupUsers resource provides methods that allow you to manage users in Signing Groups.
pub mod signing_group_users;
/// The SigningGroups resource provides methods that allow you manage signing groups.
///
///Signing Groups allow you to create a group of people to which an envelope is sent. Any member of that group can open an envelope and sign the documents in the envelope with their own signature, even though a signature field was not directly assigned to them. When the Signing Group option is used, group members that open and sign the envelope are tracked in the envelope history and certificate.
///
///When one group member opens the envelope, it is temporarily locked and if other members try to open the envelope they will see a message saying the envelope is currently opened. If the group member exits the envelope without finishing the lock expires, allowing other group members to open and complete the envelope.
///
///When the envelope is complete, all members of the group will receive a completed notification and can access the completed envelope.
///The envelope history and Certificate of Completion will show that the envelope was sent to a signing group and record which members viewed and signed the envelope.
///
///An account can have a maximum of 50 signing groups. Each signing group can have a maximum of 50 group members.
///
///The Signing Groups feature is only supported in certain DocuSign Enterprise and System Automated Premium plans. Your account might not support this option. To access this functionality, contact your Account Manager or DocuSign Support (support@docusign.com) for assistance.
///
///For more information, see [Signing Groups](https://support.docusign.com/en/guides/ndse-user-guide-signing-groups).
pub mod signing_groups;
/// .
pub mod tabs_blob;
/// The TemplateBulkRecipients resource provide methods that allow you manage the bulk recipient file for an template.
///
///The bulk recipient CSV (Comma Separated Value) file contains the list of recipient names and email addresses that you can add to an template to send the same document to a large number of recipients.
///
///The required and optional information that can be included the file is described in the BulkEnvelope: updateRecipients method.
pub mod template_bulk_recipients;
/// The TemplateCustomFields resource provides methods that allow you manage custom fields in an template.
///
///Custom fields can be used in the templates for your account to record information about the template, help search for templates and track information. The template custom fields are shown in the Template Settings section when a user is creating an template in the DocuSign member console. The template custom fields are not seen by the template recipients.
///
///There are two types of custom fields:
///
///- `text`: Enables the sender to enter the value for the field.
///- `list`: Enables the sender to select the value of the field from a predetermined list.
pub mod template_custom_fields;
/// The TemplateDocumentFields resource provides methods that allow you to manage custom fields on a document.
///
///You can create custom versions of standard fields that combine of field properties, such as font type or size, or a validation setting.
///
///Note: Some advanced features and options are supported only in certain DocuSign plans. Your account plan might not support some options discussed in this help topic. For more information about which options are available for your account, check your account plan or contact your Account Manager.
pub mod template_document_fields;
/// .
pub mod template_document_html_definitions;
/// **Note**: Responsive Signing is disabled by default. To use this functionality, an account administrator must switch the account setting `enableResponsiveSigning` to **true**.
///Also note that Smart Sections (creating a signable HTML document that uses collapsible sections and rotating tables) are premium features. To request them, contact your DocuSign account manager.
pub mod template_document_responsive_html_preview;
/// The EnvelopeDocumentTabs resource provides methods that enable you to manage tabs in a template.
pub mod template_document_tabs;
/// The Template Document Visibility resource provides methods for managing template document visibility by recipient.
///.
pub mod template_document_visibility;
/// <!-- resources aren't rendered the same way
///     as other pages. This is a little hack to
///     make the headings work better -->
///<style>
///h1, h2, h3 {
///  margin-top: 1em;
///}
///</style>
///
///The TemplateDocuments resource provides methods
///that manage documents in a template.
///You can:
///* Add one or more documents to the template
///* Retrieve one or more documents from the template
///* Delete documents from the template
///
///All of the methods associated with this resource
///operate on an existing template.
///Before you can add documents
///to a template,
///you must first create it
///with the [Templates:: Create][templatescreate] method.
///
///[templatescreate]: https://developers.docusign.com/docs/esign-rest-api/reference/Templates/Templates/create/
///.
pub mod template_documents;
/// .
pub mod template_html_definitions;
/// The TemplateLocks resource provides methods that allow you to
///manage locks on a template.
///
///To prevent users from changing a template while another user is
///modifying it, you can lock the template and set the time until
///the lock expires.
///
///For example, you would use the following flow:
///
///1. Lock the template.
///2. Make changes to template.
///3. Delete the template lock and save the changes. If the template has a password, you must supply the template password to save the changes.
///
///**Note**: To use template locks, the user must have envelope locking capability enabled.
pub mod template_locks;
/// <!-- resources aren't rendered the same way
///     as other pages. This is a little hack to
///     make the headings work better -->
///<style>
///h1, h2, h3 {
///  margin-top: 1em;
///}
///</style>
///
///The TemplateRecipientTabs resource provides methods that let you
///add,
///update,
///and delete tabs
///from an envelope.
///Tabs are associated with a specific recipient
///in an envelope
///and are only used by the recipient types
///In Person Signers and Signers.
///
///
///## Tab Types
///
///This table lists the available tab types.
///
///<br>
///
///
///| Tab Type              | Description |
///| :-------              | :---------- |
///| Approve Tab           | Place this tab on the document if you want the recipient to approve documents in an envelope without placing a signature or initials on the document. If the recipient clicks the Approve tab during the signing process, the recipient is considered to have signed the document. No information is shown on the document for the approval, but it is recorded as a signature in the envelope history. |
///| Checkbox Tab          | Place this tab on the document in a location where the recipient can select a yes/no (on/off) type option. |
///| Company Tab           | Place this tab on the document where you want the recipient's company name to appear. |
///| Date Signed Tab       | Place this tab on the document where you want the date the recipient signed the document to appear. |
///| Date Tab              | Place this tab on the document where you want the recipient to enter a date. Date tabs are single-line fields that allow date information to be entered in any format. The tooltip for this tab recommends entering the date as MM/DD/YYYY, but this is not enforced. The format entered by the signer is retained. If you need a particular date format enforced, DocuSign recommends using a Text tab with a Validation Pattern and Validation Message to enforce the format. |
///| Decline Tab           | Place this tab on the document where you want to give the recipient the option of declining an envelope. If the recipient clicks the Decline tab during the signing process, the envelope is voided. |
///| Email Address Tab     | Place this tab on a document where you want the recipient's email, as entered in the recipient information, to appear. |
///| Email Tab             | This is a single-line field that accepts all characters. |
///| Envelope ID Tab       | Place this tab on the document where you want the envelope ID for to appear. Recipients cannot enter or change the information in this tab. It is for informational purposes only. |
///| First Name Tab        | Place this tab on a document where you want the recipient's first name to appear. This tab splits the recipient's name (as entered in the recipient information) into sections based on spaces and uses the first section as the first name. |
///| Formula Tab           | This tab is used to add a calculated field to a document. Envelope recipients cannot directly enter information into the tab. The formula tab calculates and displays a new value when changes are made to the reference tab values. The reference tab information and calculation operations are entered in the "formula" element. See the Using the Calculated Fields Feature quick start guide or DocuSign Service User Guide for more information about formulas.  |
///| Full Name Tab         | Place this tab on the document where you want the recipient's full name to appear. |
///| Initial Here Tab      | Place this tab where the recipient must initial the document. This tab can be set to be optional.  |
///| Last Name Tab         | Place this tab on a document where you want the recipient's last name to appear. This tab splits the recipient's name (as entered in the recipient information) into sections based on spaces and uses the last section as the last name. |
///| List Tab              | This tab has a list of options that a recipient can select. The `listItems` parameter is used to set the options that can be selected.  |
///| Note Tab              | Place this tab on the document where you want to add a note for the recipient on a document. |
///| Number Tab            | This tab is a field where the recipient can enter numbers and decimal (.) points.  |
///| Radio Group Tab       | This group tab is used to place radio buttons on a document. The `radios` parameter is used to add and place the radio buttons associated with the group. Only one radio button can be selected in a group.  |
///| Sign Here Tab         | Place this tab where the recipient must sign the document. This tab can be set to be optional.  |
///| Signer Attachment Tab | The signer attachment is where the recipient initiates the process of adding supporting documents to an envelope. |
///| SSN Tab               | This tab is a single-line field where the recipient can enter numbers. A Social Security Number can be typed with or without dashes. |
///| Text Tab              | This tab is a field where the recipient can enter any type of characters.  |
///| Title Tab             | Place this tab on the document where you want the recipient's title to appear. |
///| Zip Tab               | This tab is a single-line field where the recipient can enter numbers. |
///
///
///## Using Custom Tabs in Envelopes and Templates
///
///Custom Tabs can be added to envelopes and templates
///by setting the `customTabId` property
///when creating an envelope or template recipient
///or when adding a new tab for an existing recipient.
///The custom tab must be added as the correct tab type.
///For example if the custom tab type is text, it cannot be used as a number tab.
///
///When the `customTabId` property is set,
///the new tab inherits all the custom tab properties.
///Required information that is not included in the custom tab,
///such as document ID and page ID, must be included when adding the tab.
///If the custom tab does not have anchor settings, the X and Y positions must be included.
///
///After the tab is created,
///it is treated as any other tab for updating or deleting.
///
///## Anchoring Tabs
///
///The tab anchoring option
///allows you to send documents for signature
///that do not have a fixed layout or format.
///In these documents you might not know
///the absolute location of the tabs
///when you design your API client application because the tabs must move with text.
///As an alternative to sending X and Y coordinates for tabs,
///the DocuSign Service can derive an anchor location for the tab
///by correlating anchor information to data within the document.
///
///When the DocuSign Service receives a request that contains tabs
///with anchor information,
///it searches the document for instances of the `anchorString` property.
///When found,
///it places a tab of the specified type for the designated recipient.
///Tab positions are established by setting offsets for the tab.
///
///When you apply tabs to the document,
///DocuSign does not remove or replace the text in the `anchorString` property. You can hide codified anchors by using the same font color as the background of the document. So the anchor can be used by DocuSign processes and it will not be visible on the document.
///
///To use an anchoring option:
///
///1. Identify the location in the document by text string. You can use a pre-existing text string or add a new one.
///For best performance DocuSign recommends using single word anchor strings when possible, especially when there are a large number of pages in the envelope.
///For example, you might want to add a Sign Here tab to the "Borrower's Signature" lines in a document, but that phrase might occur in places in the document where you don't want to tab to appear. In this case, you could add the text "BorrowerSignHere" in white font color (so that isn't visible in the document) to all the places you want Sign Here tabs to appear and use "BorrowerSignHere" as the anchor string.
///1. Reference the anchor through the `anchorString` property of the tab.
///1. Determine the offset from the anchor string location to where the tab should be placed.
///
///Setting a positive value in the `anchorXOffset` property moves the tab right on the page and positive values in the  `anchorYoffset` prove moves the tab down the page. The `anchorUnits` property specifies the units used for the offsets.
///For Sign Here and Initial Here tabs the bottom-left of the anchor string is equivalent to position (0,0), and the bottom-left of the tab graphic is placed relative to that.
///For all other tabs the bottom-left of the anchor string is equivalent to position (0,0), and the top-left of the tab graphic is placed relative to that.
///DocuSign does not currently provide tools to derive the offset values. Determination of the proper offset will likely require some trial-and-error.
///
///### Rules for working with anchor tags
///
///When anchor tabs are used, all documents in the envelope are searched for the `anchorString` property.
///
///* You set the text of the anchor string in the `anchorString` property. DocuSign tabs are created for each instance of the `anchorString` property within the document, so special care must be taken to establish unique anchor strings that do not result in unintentional tabs.
///* You cannot use the same anchored tab for different recipients for the same document.
///* The DocuSign system cannot search for text that is embedded in an image when checking for anchor strings.
///* X or Y offsets supplied for a tab apply to all instances of the tab in the document. To use different offsets at different locations in the document for the same recipient, create multiple, unique anchor tabs.
///* If the Y offset value of an anchor string would force a tab outside of the page boundaries, the tag is placed at the page boundary. If the X offset value places a tab outside of the page boundaries, the error message `Invalid_User_Offset` is sent. The error message includes the X offset that resulted in the error.
///* The system does not support an anchor string embedded in the form of a PDF X-object in the document.
///* The system does not re-flow the text that surrounds the anchor tabs. It is the responsibility of the document author to provide sufficient white space to contain the potential width of the ultimate tab value.
///
///### Tips and Tricks
///
///The following are tips for effective use of anchor tags:
///* In order to avoid unintentional conflicts between text contained in an `anchorString` property and the text that naturally exists in documents, establish a codified syntax for the anchor string text that is unlikely to appear elsewhere in a document.
///* Develop an extensible and consistent syntax that can be used across multiple document types.
///* Especially for documents that have variable numbers of tabs or signers, author the source document to include hidden anchor tabs for all potential signers/permutations. Then, control the tabs that are actually placed by including/excluding the anchor tabs in the request. This approach allows a single document to be used for all use cases instead of maintaining separate documents for each scenario.
///
///## Automatically Populating Tabs
///
///If you want similar tab types
///to automatically populate with the same data,
///you must follow these guidelines:
///
///* Each `tabLabel` entry must have the characters
///  `\\*` in front of the label.
///  If you omit the `\\*` prefix,
///  only the first occurrence of the tab is populated.
///
///  When automatically populating tabs,
///  the `tabLabel` must not contain any spaces.
///  In the JSON example below,
///  the Text tabs  properties `StudentLastName` and `StudentFirstName`
///  will be auto-populated as specified ("Doe" and "John")
///  each place they appear throughout the envelope.
///
///  ```
///  "tabs": {
///    "textTabs": [
///    {
///      "tabLabel": "\\*StudentLastName",
///      "value": "Doe"
///    },
///    {
///      "tabLabel": "\\*StudentFirstName",
///      "value": "John"
///    }]
///  }
///  ```
///
///* Each occurrence of the tab must have identical properties.
///
///  For example, suppose there are two Text tabs in a document,
///  each with `tabLabel` set to `Name`.
///  If one tab has the `bold` property set to **true**,
///  and the other has the `bold` property set to **false**,
///  only the first one will be populated.
///  In order to automatically populate both occurrences
///  of the `Name` Text tabs,
///  the `bold` property must be set to the same value for both tabs.
///.
pub mod template_recipient_tabs;
/// The TemplateRecipients resource allows you manage the recipients of an template.
///
///The exact parameters associated with a recipient depend on the recipient type. There are seven recipient types: Agents, Carbon Copies, Certified Deliveries, Editors, In Person Signers, Intermediaries, and Signers.
///
///Not all recipients are are available to all account types, review you account plan to determine which recipient types are available to you. If you are working in the Demo environment, all recipient types are available.
///
///Each recipient type is described below:
///
///[Agents](#agents): This recipient can add name and email information for recipients that appear after the recipient in routing order.
///
///[Carbon Copies](#carboncopies): Use this action if the recipient should get a copy of the template, but the recipient does not need to sign, initial, date or add information to any of the documents. This type of recipient can be placed in any order in the recipient list. The recipient receives a copy of the template when the template reaches the recipient's order in the process flow and when the template is completed.
///
///[Certified Deliveries](#certifiedDeliveries): Use this action if the recipient must receive the completed documents for the template to be completed, but the recipient does not need to sign, initial, date or add information to any of the documents.
///
///[Editors](#editors): This recipient has the same management and access rights for the template as the sender and can make changes to the template as if they were using the Advanced Correct feature. This recipient can add name and email information, add or change the routing order and set authentication options for the remaining recipients. Additionally, this recipient can edit signature/initial tabs and data fields for the remaining recipients. The recipient must have a DocuSign account to be an editor.
///
///[In Person Signers](#inPerson): Use this action if the signer is in the same physical location as a DocuSign user who will act as a Signing Host for the transaction. The recipient added is the Signing Host and new separate Signer Name field appears after Sign in person is selected.
///
///[Intermediaries](#intermediaries): This recipient can, but is not required to, add name and email information for recipients at the same or subsequent level in the routing order (until subsequent Agents, Editors or Intermediaries recipient types are added).
///
///[Signers](#signers): Use this action if your recipient must sign, initial, date or add data to form fields on the documents in the template.
///
///### Core JSON Layout
///
///The following shows the core JSON layout for a recipient.
///
///```
///"email": "email.name@company.com",
///  "name": "recipient name",
///  "accessCode": "",
///  "addAccessCodeToEmail": false,
///  "clientUserIs": null,
///  "embeddedRecipientStartURL": "string",
///  "customFields": {
///    "sample string 1",
///    "sample string 2"
///  },
///  "emailNotification"{
///    "emailBody":"email text",
///    "emailSubject":"Subject text",
///    "supportedLanguage":"en",
///  },
///  "excludedDocuments": ["2", "4"],
///  "idCheckConfigurationName": null,
///  "idCheckInformationInput": {
///    "addressInformationInput": {
///      "addressInformation": {
///        "street1": "sample string 1",
///        "street2": "sample string 2",
///        "city": "sample string 3",
///        "state": "sample string 4",
///        "zip": "sample string 5",
///        "zipPlus4": "sample string 6"
///      },
///      "displayLevelCode": "sample string 1",
///      "receiveInResponse": "sample string 2"
///    },
///    "dobInformationInput": {
///      "dateOfBirth": "sample string 1",
///      "displayLevelCode": "sample string 2",
///      "receiveInResponse": "sample string 3"
///    },
///    "ssn4InformationInput": {
///      "ssn4": "sample string 1",
///      "displayLevelCode": "sample string 2",
///      "receiveInResponse": "sample string 3"
///    },
///    "ssn9InformationInput": {
///      "ssn9": "sample string 1",
///      "displayLevelCode": "sample string 2"
///    }
///  },
///  "inheritEmailNotificationConfiguration": false,
///  "note": "",
///  "phoneAuthentication": {
///    "recipMayProvideNumber": "sample string 1",
///    "validateRecipProvidedNumber": "sample string 2",
///    "recordVoicePrint": "sample string 3",
///    "senderProvidedNumbers": [
///      "sample string 1",
///      "sample string 2"
///    ]
///  },
///  "recipientAttachment": null,
///  "recipientCaptiveInfo": null,
///  "recipientId": "1",
///  "requireIdLookup": false,
///  "roleName": "",
///  "routingOrder": 1,
///  "samlAuthentication": {
///    "samlAssertionAttributes": [
///      {
///        "name": "string",
///        "value": "string"
///      },
///      {
///        "name": "string",
///        "value": "string"
///      }
///    ]
///  },
///  "smsAuthentication": {
///    "senderProvidedNumbers":[
///      "sample string 1",
///      "sample string 2"
///    ]
///  },
///  "socialAuthentications": null,
///  "templateAccessCodeRequired": false,
///  "templateLocked": false,
///  "templateRequired": false,
///...
///```
///
///### Core Recipient Parameters
///
///The following table contains the descriptions for the core properties for a recipient.
///
///| Name | Required? | Schema Type | Description |
///| --- | --- | --- | --- |
///| email | Yes | Email | Email of the recipient. Notification will be sent to this email id.<br/>Maximum Length: 100 characters. |
///| name | Yes | String | Full legal name of the recipient.<br/>Maximum Length: 100 characters. |
///| accessCode | No | String | This optional element specifies the access code a recipient has to enter to validate the identity.<br/>Maximum Length: 50 characters. |
///| addAccessCodeToEmail | No | Boolean | This optional attribute indicates that the access code is added to the email sent to the recipient; this nullifies the Security measure of Access Code on the recipient. |
///| clientUserId | No | String | This specifies whether the recipient is embedded or remote.<br/><br/>If the `clientUserId` property is not null then the recipient is embedded. Note that if the `ClientUserId` property is set and either `SignerMustHaveAccount` or `SignerMustLoginToSign` property of the account settings is set to  **true**, an error is generated on sending. |
///| embeddedRecipientStartURL | No | String | This is a sender provided valid URL string for redirecting an embedded recipient. When using this option, the embedded recipient still receives an email from DocuSign, just as a remote recipient would, but when the document link in the email is clicked the recipient is redirected, through DocuSign, to this URL to complete their actions. When routing to the URL, it is up to the sender's system (the server responding to the URL) to then request a recipient token to launch a signing session.<br/><br/>If the value `SIGN_AT_DOCUSIGN` is used for this node, the recipient is directed to an embedded signing or viewing process directly at DocuSign. The signing or viewing action is initiated by the DocuSign system and the transaction activity and Certificate of Completion records will reflect this. In all other ways the process is identical to an embedded signing or viewing operation that would be launched by any partner.<br/><br/>It is important to remember that in a typical embedded workflow the authentication of an embedded recipient is the responsibility of the sending application and DocuSign expects that senders will follow their own process for establishing the recipient's identity. In this workflow the recipient goes through the sending application before the embedded signing or viewing process in initiated. However, when the sending application sets  the `EmbeddedRecipientStartURL` property to `SIGN_AT_DOCUSIGN`, the recipient goes directly to the embedded signing or viewing process bypassing the sending application and any authentication steps the sending application would use. In this case, DocuSign recommends that one of the normal DocuSign authentication features (Access Code, Phone Authentication, SMS Authentication, etc.) be used to verify the identity of the recipient.<br/><br>If the `clientUserId` property is NOT set and the `embeddedRecipientStartURL` property is set, DocuSign ignores the redirect URL and launch the standard signing process for the email recipient. Information can be appended to the `embeddedRecipientStartURL` property using merge fields. The available merge fields items are: templateId, recipientId, recipientName, recipientEmail, and customFields. The customFields must be part of the recipient or template. The merge fields are enclosed in double brackets.<br/><br/>_Example_:<br/>`http://senderHost/[[mergeField1]]/ beginSigningSession? [[mergeField2]]&[[mergeField3]]` |
///| customFields | No | customField |An optional array of strings that allows the sender to provide custom data about the recipient. This information is returned in the template status but otherwise not used by DocuSign. String `customField` properties have a maximum length of 100 characters. |
///| emailNotification | No | emailNotification | An optional complex type that has information for setting the language for the recipient's email information. It is composed of three elements:<br/><br/>*emailBody*: a string with the email message sent to the recipient.<br/>Maximum Length: 10000 characters.<br/><br/>*emailSubject*: a string with the subject of the email sent to the recipient.<br/>Maximum Length: 100 characters.<br/><br/>*supportedLanguage*: The simple type enumeration of the language used. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), Bahasa Indonesia (id), Bahasa Melayu (ms) Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro),Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi).<br/><br/>**IMPORTANT**: If this is enabled for one recipient, it overrides the Template Subject and `EmailBlurb` property settings. Also, you must set the  `emailNotification` property for all recipients. |
///| excludedDocuments | No | Array of Strings | Specifies the documents that are not visible to this recipient. Document Visibility must be enabled for the account and the enforceSignerVisibility property must be set to true for the template to use this.<br/><br/>When the enforceSignerVisibility property is set to **true**, documents with tabs can only be viewed by signers that have a tab on that document. Recipients that have an administrative role (Agent, Editor, or Intermediaries) or informational role (Certified Deliveries or Carbon Copies) can always see all the documents in an template, unless they are specifically excluded using this setting when an template is sent. Documents that do not have tabs are always visible to all recipients, unless they are specifically excluded using this setting when an template is sent. |
///| idCheckConfigurationName | No | String |Specifies authentication check by name. The names used here must be the same as the authentication type names used by the account (these name can also be found in the web console sending interface in the Identify list for a recipient). This overrides any default authentication setting.<br/><br/>_Example_:<br/> Your account has ID Check and SMS Authentication available and in the web console Identify list these appear as 'ID Check $' and 'SMS Auth $'. To use ID check in an template, the `idCheckConfigurationName` property must be  set to `ID Check $`. To use SMS, it must be set to `SMS Auth $` and you must add phone number information to the `smsAuthentication` node.|
///| iDCheckInformationInput | No | IdCheckInformationInput | This complex element contains input information related to a recipient ID check. It can include the following information.<br/><br/>*addressInformationInput*: Used to set recipient address information and consists of:<br/><br/>*addressInformation*: consists of six elements, with street2 and zipPlus4 being optional. The elements are: street1, street2, city, state, zip, zipPlus4\. The maximum number of characters in each element are: street1/street2 = 150 characters, city = 50 characters, state = 2 characters, and zip/zipPlus4 = 20 characters.<br/><br/>displayLevelCode: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*dobInformationInput*: Used to set recipient date of birth information and consists of:<br/><br/>*dateOfBirth*: Specifies the recipient's date, month and year of birth.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*ssn4InformationInput*: Used to set the last four digits of the recipient's SSN information and consists of:<br/><br/>*ssn4*: Specifies the last four digits of the recipient's SSN.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*ssn9InformationInput*: Used to set the recipient's SSN information. Note that the ssn9 information can never be returned in the response. The ssn9 input consists of:<br/><br/><br/><br/>*ssn9*: Specifies the recipient's SSN.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay. |
///| inheritEmailNotificationConfiguration | No | Boolean | Optional element. If true and the template recipient creates a DocuSign account after signing, the Manage Account Email Notification settings are used as the default settings for the recipient's account. |
///| note | No | String | A note that is unique to this recipient. This note is sent to the recipient via the signing email. The note displays in the signing UI near the upper left corner of the document on the signing screen.<br/>Maximum Length: 1000 characters. |
///| phoneAuthentication | No | RecipientPhoneAuthentication | Optional element. Contains the elements: <br/><br/> *recipMayProvideNumber*:Boolean. When set to **true** thenrecipient can use whatever phone number they choose to.<br/><br/> *senderProvidedNumbers*: ArrayOfString. A list of phone numbers the recipient can use. <br/><br/>*recordVoicePrint* - Reserved <br/><br/>*validateRecipProvidedNumber* - Reserved| |
///| recipientAttachment | No | Attachment | Reserved |
///| recipientId | No | String | Unique for the recipient. It is used by the tab element to indicate which recipient is to sign the Document. |
///| requireIdLookup | No | Boolean | When set to **true**, the recipient is required to use the specified ID check method (including Phone and SMS authentication) to validate their identity. |
///| roleName | No* | String | Optional element. Specifies the role name associated with the recipient.<br/><br/>This is required when working with template recipients. |
///| routingOrder | Yes | String | This element specifies the routing order of the recipient in the template. |
///| samlAuthentication | No | samlAssertionAttributes | Optional element, account must be set up to use SSO to use this. Contains the name/value pair information for the SAML assertion attributes:<br/><br/>*name*: The name of the SAML assertion attribute.<br/><br/>*value*: The value associated with the named SAML assertion attribute. |
///| smsAuthentication | No | senderProvidedNumbers | Optional element. Contains the element:<br/><br/>*senderProvidedNumbers*: Array that contains a list of phone numbers the recipient can use for SMS text authentication. |
///| socialAuthentications | No | Boolean | Lists the social ID type that can be used for recipient authentication. |
///| templateAccessCodeRequired | No | Boolean | Optional element. Used only when working with template recipients. When set to **true** and the `TemplateLocked` parameter is set to **true**, the sender must enter an access code. |
///| templateLocked | No | Boolean | Optional element. Used only when working with template recipients. When set to **true**, the sender cannot change any attributes of the recipient. |
///| templateRequired | No | Boolean | Optional element. Used only when working with template recipients. When set to **true**,  the sender may not remove the recipient. |
///
///## <a name="agents"></a> Agents Recipient
///
///This recipient can add name and email information for recipients that appear after the recipient in routing order.
///
///#### Example Agents layout
///
///```
///"agents": [{
/// <core parameters>
///  "canEditRecipientEmails": false,
///  "canEditRecipientNames": false
///}],
///```
///
///The additional parameters for Agents recipient are shown below:
///
///| Name | Required? | Schema Type | Description |
///| --- | --- | --- | --- |
///| canEditRecipientEmails | No | Boolean | Optional element. When set to **true**, the Agents Recipient associated with this Recipient can change the Recipient's pre-populated Email address. This element is only active if enabled for the account. |
///| canEditRecipientNames | No | Boolean | Optional element. When set to **true**, the Agents Recipient associated with this recipient can change the recipient's pre-populated name (`UserName`). This element is only active if enabled for the account. |
///
///## <a name="carbonCopies"></a>Carbon Copies Recipient
///
///Use this type if the recipient should get a copy of the template, but the recipient does not need to sign, initial, date, or add information to any of the documents. This type of recipient can be placed in any order in the recipient list. The recipient receives a copy of the template when the template reaches the recipient's order in the process flow and when the template is completed.
///
///#### Example Carbon Copies layout
///
///```
///"carbonCopies": [{
/// <core parameters>
///```
///
///The Carbon Copies recipient uses only the core parameters.
///
///## <a name="certifiedDeliveries"></a>Certified Deliveries Recipient
///
///Use this action if the recipient must receive the completed documents for the template to be completed, but the recipient does not need to sign, initial, date, or add information to any of the documents.
///
///#### Example Certified Deliveries layout
///
///```
///"certifiedDeliveries": [{
///<core parameters>
///}],
///```
///The Certified Deliveries recipient uses only the core parameters.
///
///## <a name="editors"></a>Editors Recipient
///
///This recipient has the same management and access rights for the template as the sender and can make changes to the template as if they were using the Advanced Correct feature. This recipient can add name and email information, add or change the routing order and set authentication options for the remaining recipients. Additionally, this recipient can edit signature/initial tabs and data fields for the remaining recipients. The recipient must have a DocuSign account to be an editor.
///
///#### Example Editors layout
///
///```
///"editors": [{
/// <core parameters>
///  "canEditRecipientEmails": false,
///  "canEditRecipientNames": false
///}],
///```
///
///The additional parameters for Editors recipient are shown below:
///
///| Name | Required? | Schema Type | Description |
///| --- | --- | --- | --- |
///| canEditRecipientEmails | No | Boolean | Optional element. When set to **true**, the Editors Recipient associated with this Recipient can change the Recipient's pre-populated Email address. This element is only active if enabled for the account. |
///| canEditRecipientNames | No | Boolean | Optional element. When set to **true**, the Editors Recipient associated with this recipient can change the recipient's pre-populated name (`UserName`). This element is only active if enabled for the account. |
///
///## <a name="inPerson"></a>In Person Signers Recipient
///
///Use this type if the signer is in the same physical location as a DocuSign user who will act as a Signing Host for the transaction. The recipient added is the Signing Host and new separate Signer Name field appears after Sign in person is selected.
///
///#### Example In Person Signers layout
///
///```
///"inPersonSigners": [{
///  "hostEmail": "signing.host@company.com",
///  "hostName": "Mike Host",
/// <core parameters>
///  "autoNavigation": false,
///  "defaultRecipient": false,
///  "signInEachLocation": false,
///  "signatureInfo": null,
///  "signerEmail": "signer.name@company.com",
///  "signerName": "MC Clap Your Hands",
///  "tabs": {
///    "approveTabs": null,
///    "checkboxTabs": null,
///    "companyTabs": null,
///    "dateSignedTabs": null,
///    "dateTabs": null,
///    "declineTabs": null,
///    "emailTabs": null,
///    "templateIdTabs": null,
///    "fullNameTabs": null,
///    "initialHereTabs": null,
///    "listTabs": null,
///    "noteTabs": null,
///    "numberTabs": null,
///    "radioGroupTabs": null,
///    "signHereTabs": [{
///    "signerAttachmentTabs": null,
///    "ssnTabs": null,
///    "textTabs": null,
///    "titleTabs": null,
///    "zipTabs": null
///  }
///}],
///```
///
///The additional and changed parameters for In Person Signers recipient are shown below:
///
///| Name | Required? | Schema Type | Description |
///| --- | --- | --- | --- |
///| hostEmail | Yes | Email | Required element for In Person Signers recipient Type.<br/>Maximum Length: 100 characters.<br/><br/>Specifies the email for the signing host. |
///| hostName | Yes | String | Required element for In Person Signers recipient Type.<br/>Maximum Length: 100 characters.<br/><br/>Specifies the email for the signing host.|
///| autoNavigation | No | Boolean | Specifies whether auto navigation is set for the recipient.|
///| defaultRecipient | No | Boolean | When set to **true**, this is the default recipient for the template. This option is used with the CreateTemplateFromTemplatesAndForms method. |
///| signInEachLocation | No | Boolean | When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab (instead of adopting a signature/initial style or only drawing a signature/initial once). |
///| signatureInfo | No | String | Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Allows the sender to pre-specify the signature name, signature initials, and signature font used in the signature stamp for the recipient. |
///| signerEmail | No | String | Optional element. The email address for an InPersonSigner recipient Type.<br/>Maximum Length: 100 characters. |
///| signerName | Yes | String | Required element with recipient type In Person Signers.<br/>Maximum Length: 100 characters.<br/><br/>The full legal name of a signer for the template. |
///| tabs | No | Tab | Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Specifies the Tabs associated with the recipient. See the See the the [EnvelopeRecipientTabs resource](https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/enveloperecipienttabs/)  for more information about tabs. for more information about tabs. |
///
///## <a name="intermediaries"></a>Intermediaries Recipient
///
///This recipient can, but is not required to, add name and email information for recipients at the same or subsequent level in the routing order (until subsequent Agents, Editors or Intermediaries recipient types are added).
///
///#### Example Intermediaries layout
///
///```
///"intermediaries": [{
///<core parameters>
///  "canEditRecipientEmails": false,
///  "canEditRecipientNames": false
///}],
///```
///
///The parameters for Intermediaries recipient are shown below:
///
///| Name | Required? | Schema Type | Description |
///| --- | --- | --- | --- |
///| canEditRecipientEmails | No | Boolean | Optional element. When set to **true**, the Agents Recipient associated with this Recipient can change the Recipient's pre-populated Email address. This element is only active if enabled for the account. |
///| canEditRecipientNames | No | Boolean | Optional element. When set to **true**, the Agents Recipient associated with this recipient can change the recipient's pre-populated name (`UserName`). This element is only active if enabled for the account. |
///
///## <a name="signers"></a>Signers Recipient
///
///Use this action if your recipient must sign, initial, date, or add data to form fields on the documents in the template.
///
///#### Example Signers layout
///
///```
///"Signers": [{
///<core paramters>
///  "autoNavigation": false,
///  "defaultRecipient": false,
///  "signInEachLocation": false,
///  "signatureInfo": null,
///  "tabs": {
///    "approveTabs": null,
///    "checkboxTabs": null,
///    "companyTabs": null,
///    "dateSignedTabs": null,
///    "dateTabs": null,
///    "declineTabs": null,
///    "emailTabs": null,
///    "templateIdTabs": null,
///    "fullNameTabs": null,
///    "initialHereTabs": null,
///    "listTabs": null,
///    "noteTabs": null,
///    "numberTabs": null,
///    "radioGroupTabs": null,
///    "signHereTabs": [{
///    "signerAttachmentTabs": null,
///    "ssnTabs": null,
///    "textTabs": null,
///    "titleTabs": null,
///    "zipTabs": null
///  }
///  "deliveryMethod":"",
///  "deliveredDateTime":"String Content",
///  "signedDateTime":"String Content",
///  "offlineAttributes":{
///    "deviceName":"String Content",
///    "deviceModel":"String Content",
///    "gpsLatitude":"String Content",
///    "gpsLongitude":"String Content",
///    "accountEsignId":"String Content"
///  }
///}],
///```
///
///The additional parameters for Signers recipient are shown below:
///
///| Name | Required? | Schema Type | Description |
///| --- | --- | --- | --- |
///| autoNavigation | No | Boolean | Specifies whether auto navigation is set for the recipient.|
///| defaultRecipient | No | Boolean | When set to **true**, this is the default recipient for the template. This option is used with the CreateTemplateFromTemplatesAndForms method. |
///| signInEachLocation | No | Boolean | When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab (instead of adopting a signature/initial style or only drawing a signature/initial once). |
///| signatureInfo | No | String | Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Allows the sender to pre-specify the signature name, signature initials, and signature font used in the signature stamp for the recipient. |
///| signerEmail | No | String | Optional element. The email address for an InPersonSigner recipient Type.<br/>Maximum Length: 100 characters. |
///| signerName | Yes | String | Required element with recipient type In Person Signers.<br/>Maximum Length: 100 characters.<br/><br/>The full legal name of a signer for the template. |
///| tabs | No | Tab | Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Specifies the Tabs associated with the recipient. See the See the [EnvelopeRecipientTabs resource](https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/enveloperecipienttabs/)  for more information about tabs. section for more information about tabs. |
///| deliveryMethod | No | String | Reserved: For DocuSign use only.|
///| deliveredDateTime | No | DateTime | Reserved: For DocuSign use only. |
///| signedDateTime | No | DateTime | Reserved: For DocuSign use only. |
///| offlineAttributes | No | &nbsp; | Reserved: For DocuSign use only.|
///.
pub mod template_recipients;
/// **Note**: Responsive Signing is disabled by default. To use this functionality, an account administrator must switch the account setting `enableResponsiveSigning` to **true**.
///Also note that Smart Sections (creating a signable HTML document that uses collapsible sections and rotating tables) are premium features. To request them, contact your DocuSign account manager.
pub mod template_responsive_html_preview;
/// The TemplateViews resource
///provides a method that returns a URL
///that you can embed in your application
///to generate a template view that uses the DocuSign UI.
///
///One template view is available:
///
///* Edit View: The DocuSign UI for editing a template.
///
///This resource is related to the [EnvelopeViews][envelopeviews] resource.
///Both resources enable you to embed the DocuSign UI into your application.
///
///
///[envelopeviews]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeViews/
///.
pub mod template_views;
/// The Template resource provides methods that allow you to manipulate and monitor templates.
///
///Once you have authenticated the user you can use the Templates: createTemplate method to create a template. You can call the TemplateDocuments: update or TemplateDocuments: updateList method to add more documents.
///
///If you have a template that you have previously saved, you can modify the subject and message, send it, void it, or purge it from the DocuSign system using the Template: update method.
///
///In addition to receiving notifications, you can monitor the status of the templates using the following methods:
///
///* Template: getTemplate - Gets the status of a template.
///* Template: listStatus - Gets the status for a set of templates.
///* Template: listStatusChanges - Gets status change information for one or more templates.
///
///If you need to delete a page from a document in a template, use the Template: deleteDocumentPage method.
///
///The resource also includes a number of methods that allow you to retrieve and set the initials and signature for certain types of recipients on the document.
pub mod templates;
#[cfg(test)]
mod tests;
pub mod types;
/// The UserCustomSettings resource provides methods that allow you to manage the custom settings for a user.
///
///Custom settings are a flexible way to store and retrieve custom user information that can be used in your own system.
///
///There is a limit on the size for all the custom user settings for a single user. All the custom user settings for a single user is limited to 4,000 characters, which includes the xml and json structure for the settings.
pub mod user_custom_settings;
/// The UserProfiles resource provides methods that allow you to manage a user's profile.
pub mod user_profiles;
/// The UserSignatures resource provides methods that allow you manage the  intials and signature images for a user.
pub mod user_signatures;
/// The Users resource provides methods that enable you to manage users for an account.
///
///The following User methods do not use the `title` property in the Users object:
///
///- create
///- delete
///- deleteProfileImage
///- get
///- getProfileImage
///- getSettings
///- list
///- update
///- updateList
///- updateProfileImag
///- updateSettings
///
///Instead, you can retrieve and set the user's job title by using the UserProfiles:Get and UserProfiles:Update methods. For more information, see [UserProfiles](https://developers.docusign.com/docs/esign-rest-api/reference/Users/UserProfiles).
pub mod users;
#[doc(hidden)]
pub mod utils;
/// The WorkspaceItems resource provides methods that enable you to manage
///workspace items.
///.
pub mod workspace_items;
/// A workspace is a collaborative space for sharing documents and managing workflows. A workspace has a single owner who must be a DocuSign user. The owner can invite others to the workspace as collaborators. Individuals who are not DocuSign users must create a DocuSign account to join a workspace as a collaborator.
///
///You can create an envelope directly from a workspace.
///
///Workspaces store the following information:
///
///- **Files**: Files uploaded to a workspace for storage or reuse.
///- **Documents**: A document is a component of a transaction, template, or workspace. When a file is added to a transaction, template, or workspace, it is copied as a document. Each document in a workspace has a single owner.
///- **Templates**: A set of documents that you can use to create a transaction or a workspace.
///- **Transactions**: A transaction is a series of workflow events related to one or more documents. These events route the documents to one or more individuals for the purposes of doing business. Each transaction has a single owner (the sender).
///
///**Note**: Documents in a template are not individually listed as files.
pub mod workspaces;

use anyhow::{anyhow, Error, Result};

pub const DEFAULT_HOST: &str = "https://na4.docusign.net";

mod progenitor_support {
    use percent_encoding::{utf8_percent_encode, AsciiSet, CONTROLS};

    const PATH_SET: &AsciiSet = &CONTROLS
        .add(b' ')
        .add(b'"')
        .add(b'#')
        .add(b'<')
        .add(b'>')
        .add(b'?')
        .add(b'`')
        .add(b'{')
        .add(b'}');

    #[allow(dead_code)]
    pub(crate) fn encode_path(pc: &str) -> String {
        utf8_percent_encode(pc, PATH_SET).to_string()
    }
}

use std::convert::TryInto;
use std::env;
use std::ops::Add;
use std::sync::Arc;
use std::time::{Duration, Instant};
use tokio::sync::RwLock;

const TOKEN_ENDPOINT: &str = "https://account.docusign.com/oauth/token";
const USER_CONSENT_ENDPOINT: &str = "https://account.docusign.com/oauth/auth";

/// Entrypoint for interacting with the API client.
#[derive(Clone)]
pub struct Client {
    host: String,
    token: Arc<RwLock<InnerToken>>,
    client_id: String,
    client_secret: String,
    redirect_uri: String,

    auto_refresh: bool,
    client: reqwest_middleware::ClientWithMiddleware,
}

use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

#[derive(Debug, JsonSchema, Clone, Default, Serialize, Deserialize)]
pub struct AccessToken {
    #[serde(
        default,
        skip_serializing_if = "String::is_empty",
        deserialize_with = "crate::utils::deserialize_null_string::deserialize"
    )]
    pub token_type: String,

    #[serde(
        default,
        skip_serializing_if = "String::is_empty",
        deserialize_with = "crate::utils::deserialize_null_string::deserialize"
    )]
    pub access_token: String,
    #[serde(default)]
    pub expires_in: i64,

    #[serde(
        default,
        skip_serializing_if = "String::is_empty",
        deserialize_with = "crate::utils::deserialize_null_string::deserialize"
    )]
    pub refresh_token: String,
    #[serde(default, alias = "x_refresh_token_expires_in")]
    pub refresh_token_expires_in: i64,

    #[serde(
        default,
        skip_serializing_if = "String::is_empty",
        deserialize_with = "crate::utils::deserialize_null_string::deserialize"
    )]
    pub scope: String,
}

/// Time in seconds before the access token expiration point that a refresh should
/// be performed. This value is subtracted from the `expires_in` value returned by
/// the provider prior to storing
const REFRESH_THRESHOLD: Duration = Duration::from_secs(60);

#[derive(Debug, Clone)]
struct InnerToken {
    access_token: String,
    refresh_token: String,
    expires_at: Option<Instant>,
}

impl Client {
    /// Create a new Client struct. It takes a type that can convert into
    /// an &str (`String` or `Vec<u8>` for example). As long as the function is
    /// given a valid API key your requests will work.
    pub fn new<I, K, R, T, Q>(
        client_id: I,
        client_secret: K,
        redirect_uri: R,
        token: T,
        refresh_token: Q,
    ) -> Self
    where
        I: ToString,
        K: ToString,
        R: ToString,
        T: ToString,
        Q: ToString,
    {
        // Retry up to 3 times with increasing intervals between attempts.
        let retry_policy =
            reqwest_retry::policies::ExponentialBackoff::builder().build_with_max_retries(3);
        let client = reqwest::Client::builder().build();
        match client {
            Ok(c) => {
                let client = reqwest_middleware::ClientBuilder::new(c)
                    // Trace HTTP requests. See the tracing crate to make use of these traces.
                    .with(reqwest_tracing::TracingMiddleware::default())
                    // Retry failed requests.
                    .with(reqwest_conditional_middleware::ConditionalMiddleware::new(
                        reqwest_retry::RetryTransientMiddleware::new_with_policy(retry_policy),
                        |req: &reqwest::Request| req.try_clone().is_some(),
                    ))
                    .build();

                Client {
                    host: DEFAULT_HOST.to_string(),
                    client_id: client_id.to_string(),
                    client_secret: client_secret.to_string(),
                    redirect_uri: redirect_uri.to_string(),
                    token: Arc::new(RwLock::new(InnerToken {
                        access_token: token.to_string(),
                        refresh_token: refresh_token.to_string(),
                        expires_at: None,
                    })),

                    auto_refresh: false,
                    client,
                }
            }
            Err(e) => panic!("creating reqwest client failed: {:?}", e),
        }
    }

    /// Enables or disables the automatic refreshing of access tokens upon expiration
    pub fn set_auto_access_token_refresh(&mut self, enabled: bool) -> &mut Self {
        self.auto_refresh = enabled;
        self
    }

    /// Sets a specific `Instant` at which the access token should be considered expired.
    /// The expiration value will only be used when automatic access token refreshing is
    /// also enabled. `None` may be passed in if the expiration is unknown. In this case
    /// automatic refreshes will be attempted when encountering an UNAUTHENTICATED status
    /// code on a response.
    pub async fn set_expires_at(&self, expires_at: Option<Instant>) -> &Self {
        self.token.write().await.expires_at = expires_at;
        self
    }

    /// Gets the `Instant` at which the access token used by this client is set to expire
    /// if one is known
    pub async fn expires_at(&self) -> Option<Instant> {
        self.token.read().await.expires_at
    }

    /// Sets the number of seconds in which the current access token should be considered
    /// expired
    pub async fn set_expires_in(&self, expires_in: i64) -> &Self {
        self.token.write().await.expires_at = Self::compute_expires_at(expires_in);
        self
    }

    /// Gets the number of seconds from now in which the current access token will be
    /// considered expired if one is known
    pub async fn expires_in(&self) -> Option<Duration> {
        self.token
            .read()
            .await
            .expires_at
            .map(|i| i.duration_since(Instant::now()))
    }

    /// Determines if the access token currently stored in the client is expired. If the
    /// expiration can not be determined, None is returned
    pub async fn is_expired(&self) -> Option<bool> {
        self.token
            .read()
            .await
            .expires_at
            .map(|expiration| expiration <= Instant::now())
    }

    fn compute_expires_at(expires_in: i64) -> Option<Instant> {
        let seconds_valid = expires_in
            .try_into()
            .ok()
            .map(Duration::from_secs)
            .and_then(|dur| dur.checked_sub(REFRESH_THRESHOLD))
            .or_else(|| Some(Duration::from_secs(0)));

        seconds_valid.map(|seconds_valid| Instant::now().add(seconds_valid))
    }

    /// Override the default host for the client.
    pub fn with_host<H>(&self, host: H) -> Self
    where
        H: ToString,
    {
        let mut c = self.clone();
        c.host = host.to_string();
        c
    }

    /// Create a new Client struct from environment variables. It
    /// takes a type that can convert into
    /// an &str (`String` or `Vec<u8>` for example). As long as the function is
    /// given a valid API key and your requests will work.
    /// We pass in the token and refresh token to the client so if you are storing
    /// it in a database, you can get it first.
    pub fn new_from_env<T, R>(token: T, refresh_token: R) -> Self
    where
        T: ToString,
        R: ToString,
    {
        let client_id = env::var("DOCUSIGN_CLIENT_ID").expect("must set DOCUSIGN_CLIENT_ID");
        let client_secret =
            env::var("DOCUSIGN_CLIENT_SECRET").expect("must set DOCUSIGN_CLIENT_SECRET");
        let redirect_uri =
            env::var("DOCUSIGN_REDIRECT_URI").expect("must set DOCUSIGN_REDIRECT_URI");

        Client::new(client_id, client_secret, redirect_uri, token, refresh_token)
    }

    /// Return a user consent url with an optional set of scopes.
    /// If no scopes are provided, they will not be passed in the url.
    pub fn user_consent_url(&self, scopes: &[String]) -> String {
        let state = uuid::Uuid::new_v4();

        let url = format!(
            "{}?client_id={}&response_type=code&redirect_uri={}&state={}",
            USER_CONSENT_ENDPOINT, self.client_id, self.redirect_uri, state
        );

        if scopes.is_empty() {
            return url;
        }

        // Add the scopes.
        format!("{}&scope={}", url, scopes.join(" "))
    }

    /// Refresh an access token from a refresh token. Client must have a refresh token
    /// for this to work.
    pub async fn refresh_access_token(&self) -> Result<AccessToken> {
        let response = {
            let refresh_token = &self.token.read().await.refresh_token;

            if refresh_token.is_empty() {
                anyhow!("refresh token cannot be empty");
            }

            let mut headers = reqwest::header::HeaderMap::new();
            headers.append(
                reqwest::header::ACCEPT,
                reqwest::header::HeaderValue::from_static("application/json"),
            );

            let params = [
                ("grant_type", "refresh_token"),
                ("refresh_token", refresh_token),
                ("client_id", &self.client_id),
                ("client_secret", &self.client_secret),
                ("redirect_uri", &self.redirect_uri),
            ];
            let client = reqwest::Client::new();
            client
                .post(TOKEN_ENDPOINT)
                .headers(headers)
                .form(&params)
                .basic_auth(&self.client_id, Some(&self.client_secret))
                .send()
                .await?
        };

        // Unwrap the response.
        let t: AccessToken = response.json().await?;

        let refresh_token = self.token.read().await.refresh_token.clone();

        *self.token.write().await = InnerToken {
            access_token: t.access_token.clone(),
            refresh_token,
            expires_at: Self::compute_expires_at(t.expires_in),
        };

        Ok(t)
    }

    /// Get an access token from the code returned by the URL paramter sent to the
    /// redirect URL.
    pub async fn get_access_token(&mut self, code: &str, state: &str) -> Result<AccessToken> {
        let mut headers = reqwest::header::HeaderMap::new();
        headers.append(
            reqwest::header::ACCEPT,
            reqwest::header::HeaderValue::from_static("application/json"),
        );

        let params = [
            ("grant_type", "authorization_code"),
            ("code", code),
            ("client_id", &self.client_id),
            ("client_secret", &self.client_secret),
            ("redirect_uri", &self.redirect_uri),
            ("state", state),
        ];
        let client = reqwest::Client::new();
        let resp = client
            .post(TOKEN_ENDPOINT)
            .headers(headers)
            .form(&params)
            .basic_auth(&self.client_id, Some(&self.client_secret))
            .send()
            .await?;

        // Unwrap the response.
        let t: AccessToken = resp.json().await?;

        *self.token.write().await = InnerToken {
            access_token: t.access_token.clone(),
            refresh_token: t.refresh_token.clone(),
            expires_at: Self::compute_expires_at(t.expires_in),
        };

        Ok(t)
    }

    async fn url_and_auth(&self, uri: &str) -> Result<(reqwest::Url, Option<String>)> {
        let parsed_url = uri.parse::<reqwest::Url>();

        let auth = format!("Bearer {}", self.token.read().await.access_token);
        parsed_url.map(|u| (u, Some(auth))).map_err(Error::from)
    }

    async fn make_request(
        &self,
        method: &reqwest::Method,
        uri: &str,
        body: Option<reqwest::Body>,
    ) -> Result<reqwest::Request> {
        let u = if uri.starts_with("https://") {
            uri.to_string()
        } else {
            (self.host.clone() + uri).to_string()
        };
        let (url, auth) = self.url_and_auth(&u).await?;

        let instance = <&Client>::clone(&self);

        let mut req = instance.client.request(method.clone(), url);

        // Set the default headers.
        req = req.header(
            reqwest::header::ACCEPT,
            reqwest::header::HeaderValue::from_static("application/json"),
        );
        req = req.header(
            reqwest::header::CONTENT_TYPE,
            reqwest::header::HeaderValue::from_static("application/json"),
        );

        if let Some(auth_str) = auth {
            req = req.header(http::header::AUTHORIZATION, &*auth_str);
        }

        if let Some(body) = body {
            req = req.body(body);
        }

        Ok(req.build()?)
    }

    async fn request_raw(
        &self,
        method: reqwest::Method,
        uri: &str,
        body: Option<reqwest::Body>,
    ) -> Result<reqwest::Response> {
        if self.auto_refresh {
            let expired = self.is_expired().await;

            match expired {
                // We have a known expired token, we know we need to perform a refresh prior to
                // attempting to make a request
                Some(true) => {
                    self.refresh_access_token().await?;
                }

                // We have a (theoretically) known good token available. We make an optimistic
                // attempting at the request. If the token is no longer good, then something other
                // than the expiration is triggering the failure. We defer handling of these errors
                // to the caller
                Some(false) => (),

                // We do not know what state we are in. We could have a valid or expired token.
                // Generally this means we are in one of two cases:
                //   1. We have not yet performed a token refresh, nor has the user provided
                //      expiration data, and therefore do not know the expiration of the user
                //      provided token
                //   2. The provider is returning unusable expiration times, at which point we
                //      choose to ignore them
                None => (),
            }
        }

        let req = self.make_request(&method, uri, body).await?;
        let resp = self.client.execute(req).await?;

        Ok(resp)
    }

    async fn request<Out>(
        &self,
        method: reqwest::Method,
        uri: &str,
        body: Option<reqwest::Body>,
    ) -> Result<Out>
    where
        Out: serde::de::DeserializeOwned + 'static + Send,
    {
        let response = self.request_raw(method, uri, body).await?;

        let status = response.status();

        let response_body = response.bytes().await?;

        if status.is_success() {
            log::debug!("Received successful response. Read payload.");
            let parsed_response = if status == http::StatusCode::NO_CONTENT
                || std::any::TypeId::of::<Out>() == std::any::TypeId::of::<()>()
            {
                serde_json::from_str("null")
            } else {
                serde_json::from_slice::<Out>(&response_body)
            };
            parsed_response.map_err(Error::from)
        } else {
            let error = if response_body.is_empty() {
                anyhow!("code: {}, empty response", status)
            } else {
                anyhow!(
                    "code: {}, error: {:?}",
                    status,
                    String::from_utf8_lossy(&response_body),
                )
            };

            Err(error)
        }
    }

    async fn request_with_links<Out>(
        &self,
        method: http::Method,
        uri: &str,
        body: Option<reqwest::Body>,
    ) -> Result<(Option<hyperx::header::Link>, Out)>
    where
        Out: serde::de::DeserializeOwned + 'static + Send,
    {
        let response = self.request_raw(method, uri, body).await?;

        let status = response.status();
        let link = response
            .headers()
            .get(http::header::LINK)
            .and_then(|l| l.to_str().ok())
            .and_then(|l| l.parse().ok());

        let response_body = response.bytes().await?;

        if status.is_success() {
            log::debug!("Received successful response. Read payload.");

            let parsed_response = if status == http::StatusCode::NO_CONTENT
                || std::any::TypeId::of::<Out>() == std::any::TypeId::of::<()>()
            {
                serde_json::from_str("null")
            } else {
                serde_json::from_slice::<Out>(&response_body)
            };
            parsed_response.map(|out| (link, out)).map_err(Error::from)
        } else {
            let error = if response_body.is_empty() {
                anyhow!("code: {}, empty response", status)
            } else {
                anyhow!(
                    "code: {}, error: {:?}",
                    status,
                    String::from_utf8_lossy(&response_body),
                )
            };
            Err(error)
        }
    }

    /* TODO: make this more DRY */
    #[allow(dead_code)]
    async fn post_form<Out>(&self, uri: &str, form: reqwest::multipart::Form) -> Result<Out>
    where
        Out: serde::de::DeserializeOwned + 'static + Send,
    {
        let u = if uri.starts_with("https://") {
            uri.to_string()
        } else {
            (self.host.clone() + uri).to_string()
        };
        let (url, auth) = self.url_and_auth(&u).await?;

        let instance = <&Client>::clone(&self);

        let mut req = instance.client.request(http::Method::POST, url);

        // Set the default headers.
        req = req.header(
            reqwest::header::ACCEPT,
            reqwest::header::HeaderValue::from_static("application/json"),
        );

        if let Some(auth_str) = auth {
            req = req.header(http::header::AUTHORIZATION, &*auth_str);
        }

        req = req.multipart(form);

        let response = req.send().await?;

        let status = response.status();

        let response_body = response.bytes().await?;

        if status.is_success() {
            log::debug!("Received successful response. Read payload.");
            let parsed_response = if status == http::StatusCode::NO_CONTENT
                || std::any::TypeId::of::<Out>() == std::any::TypeId::of::<()>()
            {
                serde_json::from_str("null")
            } else if std::any::TypeId::of::<Out>() == std::any::TypeId::of::<String>() {
                // Parse the output as a string.
                serde_json::from_value(serde_json::json!(&String::from_utf8(
                    response_body.to_vec()
                )?))
            } else {
                serde_json::from_slice::<Out>(&response_body)
            };
            parsed_response.map_err(Error::from)
        } else {
            let error = if response_body.is_empty() {
                anyhow!("code: {}, empty response", status)
            } else {
                anyhow!(
                    "code: {}, error: {:?}",
                    status,
                    String::from_utf8_lossy(&response_body),
                )
            };

            Err(error)
        }
    }

    /* TODO: make this more DRY */
    #[allow(dead_code)]
    async fn request_with_accept_mime<Out>(
        &self,
        method: reqwest::Method,
        uri: &str,
        accept_mime_type: &str,
    ) -> Result<Out>
    where
        Out: serde::de::DeserializeOwned + 'static + Send,
    {
        let u = if uri.starts_with("https://") {
            uri.to_string()
        } else {
            (self.host.clone() + uri).to_string()
        };
        let (url, auth) = self.url_and_auth(&u).await?;

        let instance = <&Client>::clone(&self);

        let mut req = instance.client.request(method, url);

        // Set the default headers.
        req = req.header(
            reqwest::header::ACCEPT,
            reqwest::header::HeaderValue::from_str(accept_mime_type)?,
        );

        if let Some(auth_str) = auth {
            req = req.header(http::header::AUTHORIZATION, &*auth_str);
        }

        let response = req.send().await?;

        let status = response.status();

        let response_body = response.bytes().await?;

        if status.is_success() {
            log::debug!("Received successful response. Read payload.");
            let parsed_response = if status == http::StatusCode::NO_CONTENT
                || std::any::TypeId::of::<Out>() == std::any::TypeId::of::<()>()
            {
                serde_json::from_str("null")
            } else if std::any::TypeId::of::<Out>() == std::any::TypeId::of::<String>() {
                // Parse the output as a string.
                serde_json::from_value(serde_json::json!(&String::from_utf8(
                    response_body.to_vec()
                )?))
            } else {
                serde_json::from_slice::<Out>(&response_body)
            };
            parsed_response.map_err(Error::from)
        } else {
            let error = if response_body.is_empty() {
                anyhow!("code: {}, empty response", status)
            } else {
                anyhow!(
                    "code: {}, error: {:?}",
                    status,
                    String::from_utf8_lossy(&response_body),
                )
            };

            Err(error)
        }
    }

    /* TODO: make this more DRY */
    #[allow(dead_code)]
    async fn request_with_mime<Out>(
        &self,
        method: reqwest::Method,
        uri: &str,
        content: &[u8],
        mime_type: &str,
    ) -> Result<Out>
    where
        Out: serde::de::DeserializeOwned + 'static + Send,
    {
        let u = if uri.starts_with("https://") {
            uri.to_string()
        } else {
            (self.host.clone() + uri).to_string()
        };
        let (url, auth) = self.url_and_auth(&u).await?;

        let instance = <&Client>::clone(&self);

        let mut req = instance.client.request(method, url);

        // Set the default headers.
        req = req.header(
            reqwest::header::ACCEPT,
            reqwest::header::HeaderValue::from_static("application/json"),
        );
        req = req.header(
            reqwest::header::CONTENT_TYPE,
            reqwest::header::HeaderValue::from_bytes(mime_type.as_bytes()).unwrap(),
        );
        // We are likely uploading a file so add the right headers.
        req = req.header(
            reqwest::header::HeaderName::from_static("x-upload-content-type"),
            reqwest::header::HeaderValue::from_static("application/octet-stream"),
        );
        req = req.header(
            reqwest::header::HeaderName::from_static("x-upload-content-length"),
            reqwest::header::HeaderValue::from_bytes(format!("{}", content.len()).as_bytes())
                .unwrap(),
        );

        if let Some(auth_str) = auth {
            req = req.header(http::header::AUTHORIZATION, &*auth_str);
        }

        if content.len() > 1 {
            let b = bytes::Bytes::copy_from_slice(content);
            // We are uploading a file so add that as the body.
            req = req.body(b);
        }

        let response = req.send().await?;

        let status = response.status();

        let response_body = response.bytes().await?;

        if status.is_success() {
            log::debug!("Received successful response. Read payload.");
            let parsed_response = if status == http::StatusCode::NO_CONTENT
                || std::any::TypeId::of::<Out>() == std::any::TypeId::of::<()>()
            {
                serde_json::from_str("null")
            } else {
                serde_json::from_slice::<Out>(&response_body)
            };
            parsed_response.map_err(Error::from)
        } else {
            let error = if response_body.is_empty() {
                anyhow!("code: {}, empty response", status)
            } else {
                anyhow!(
                    "code: {}, error: {:?}",
                    status,
                    String::from_utf8_lossy(&response_body),
                )
            };

            Err(error)
        }
    }

    async fn request_entity<D>(
        &self,
        method: http::Method,
        uri: &str,
        body: Option<reqwest::Body>,
    ) -> Result<D>
    where
        D: serde::de::DeserializeOwned + 'static + Send,
    {
        let r = self.request(method, uri, body).await?;
        Ok(r)
    }

    #[allow(dead_code)]
    async fn get<D>(&self, uri: &str, message: Option<reqwest::Body>) -> Result<D>
    where
        D: serde::de::DeserializeOwned + 'static + Send,
    {
        self.request_entity(http::Method::GET, &(self.host.to_string() + uri), message)
            .await
    }

    #[allow(dead_code)]
    async fn get_all_pages<D>(&self, uri: &str, _message: Option<reqwest::Body>) -> Result<Vec<D>>
    where
        D: serde::de::DeserializeOwned + 'static + Send,
    {
        // TODO: implement this.
        self.unfold(uri).await
    }

    /// "unfold" paginated results of a vector of items
    #[allow(dead_code)]
    async fn unfold<D>(&self, uri: &str) -> Result<Vec<D>>
    where
        D: serde::de::DeserializeOwned + 'static + Send,
    {
        let mut global_items = Vec::new();
        let (new_link, mut items) = self.get_pages(uri).await?;
        let mut link = new_link;
        while !items.is_empty() {
            global_items.append(&mut items);
            // We need to get the next link.
            if let Some(url) = link.as_ref().and_then(crate::utils::next_link) {
                let url = reqwest::Url::parse(&url)?;
                let (new_link, new_items) = self.get_pages_url(&url).await?;
                link = new_link;
                items = new_items;
            }
        }

        Ok(global_items)
    }

    #[allow(dead_code)]
    async fn get_pages<D>(&self, uri: &str) -> Result<(Option<hyperx::header::Link>, Vec<D>)>
    where
        D: serde::de::DeserializeOwned + 'static + Send,
    {
        self.request_with_links(http::Method::GET, &(self.host.to_string() + uri), None)
            .await
    }

    #[allow(dead_code)]
    async fn get_pages_url<D>(
        &self,
        url: &reqwest::Url,
    ) -> Result<(Option<hyperx::header::Link>, Vec<D>)>
    where
        D: serde::de::DeserializeOwned + 'static + Send,
    {
        self.request_with_links(http::Method::GET, url.as_str(), None)
            .await
    }

    #[allow(dead_code)]
    async fn post<D>(&self, uri: &str, message: Option<reqwest::Body>) -> Result<D>
    where
        D: serde::de::DeserializeOwned + 'static + Send,
    {
        self.request_entity(http::Method::POST, &(self.host.to_string() + uri), message)
            .await
    }

    #[allow(dead_code)]
    async fn patch<D>(&self, uri: &str, message: Option<reqwest::Body>) -> Result<D>
    where
        D: serde::de::DeserializeOwned + 'static + Send,
    {
        self.request_entity(http::Method::PATCH, &(self.host.to_string() + uri), message)
            .await
    }

    #[allow(dead_code)]
    async fn put<D>(&self, uri: &str, message: Option<reqwest::Body>) -> Result<D>
    where
        D: serde::de::DeserializeOwned + 'static + Send,
    {
        self.request_entity(http::Method::PUT, &(self.host.to_string() + uri), message)
            .await
    }

    #[allow(dead_code)]
    async fn delete<D>(&self, uri: &str, message: Option<reqwest::Body>) -> Result<D>
    where
        D: serde::de::DeserializeOwned + 'static + Send,
    {
        self.request_entity(
            http::Method::DELETE,
            &(self.host.to_string() + uri),
            message,
        )
        .await
    }

    /// The AcccountBrands resource provides methods that enable you to create and manage brands for an account.
    ///
    ///Branding enables you to add the look and feel of your organization's brand to the sending, signing, and email processes, making it easier for recipients to identify envelopes coming from your organization.
    ///
    ///The DocuSign Account Custom Branding feature enables you to set the colors, logo, and text that recipients see at the account level. The settings associated with a brand are applied to all of the envelopes that use the brand. You can create multiple brand profiles for different corporate brands or internal departments.
    ///
    ///**Note**: To use this resource, branding for either signing or sending must be enabled for the account (either `canSelfBrandSend`, `canSelfBrandSign`, or both of these account settings must be set to **true**).
    pub fn account_brands(&self) -> account_brands::AccountBrands {
        account_brands::AccountBrands::new(self.clone())
    }

    /// The `AccountConsumerDisclosures` resource provides methods that enable you to enable, retrieve, and manage the Electronic Record and Signature Consent Disclosure (ERSD) options for your account. This is the disclosure that displays to each new recipient who is going to sign or add other information, or who is required to view the documents you send to them. The recipient must read and agree to the terms of the disclosure before they can access and take action on the documents you send. The ERSD does not apply to copy-only recipients, but does apply to recipients who must sign or view your documents.
    ///
    ///You can use either the default ERSD that DocuSign provides for U.S.-based transactions, or a custom ERSD.
    ///
    ///## Languages
    ///
    ///**Important**: The system does not translate the ERSD for you. The default ERSD is always in English. For a custom ERSD, an account administrator must create a version of the disclosure for each language that your signers use. When you create a version of your custom ERSD for a specific signer language, you must:
    ///
    ///1. Specify the language code (`langCode`) for the signer language.
    ///2. Provide the `esignAgreementText` and `esignText` in the language associated with the `langCode`.
    ///
    ///For more information, see [Legal Disclosure](https://support.docusign.com/en/guides/ndse-admin-guide-legal-disclosure).
    pub fn account_consumer_disclosures(
        &self,
    ) -> account_consumer_disclosures::AccountConsumerDisclosures {
        account_consumer_disclosures::AccountConsumerDisclosures::new(self.clone())
    }

    /// Custom fields enable you to record custom information about envelopes that you can then use for sorting, organizing, searching, and other downstream processes.
    ///
    ///For example, you can use custom fields to copy envelopes or data to multiple areas in Salesforce. eOriginal customers can eVault all of their documents from the web app by setting an account custom field with a name like `eVault with eOriginal` to **true**.
    ///
    ///You can also use account custom fields to set the following information:
    ///
    ///- Tracking ID
    ///- Department
    ///- Use case
    ///- Other envelope metadata
    ///
    ///## Envelope Custom Field Visibility
    ///
    ///When you create an envelope custom field for your account, you have the following options:
    ///
    ///- Make it a required field for senders at the time of sending
    ///- Display it as an optional field at the time of sending
    ///- Set a specific value for the field behind the scenes (NOT SURE IF THIS IS RIGHT; MIGHT JUST BE AN UNUSED DRAFT FIELD)
    ///
    ///Envelope recipients do not see the envelope custom fields.
    ///
    ///## Types of Envelope Custom Fields
    ///
    ///There are two types of envelope custom fields:
    ///
    ///- `text`: Enables the sender to enter the value for the field.
    ///- `list`: Enables the sender to select the value of the field from a predetermined list.
    pub fn account_custom_fields(&self) -> account_custom_fields::AccountCustomFields {
        account_custom_fields::AccountCustomFields::new(self.clone())
    }

    /// The EnvelopeCustomFields resource provides methods that allow you manage custom fields in an envelope.
    ///
    ///Custom fields can be used in the envelopes for your account to record information about the envelope, help search for envelopes and track information. The envelope custom fields are shown in the Envelope Settings section when a user is creating an envelope in the DocuSign member console. The envelope custom fields are not seen by the envelope recipients.
    ///
    ///There are two types of envelope custom fields:
    ///
    ///- `text`: Enables the sender to enter the value for the field.
    ///- `list`: Enables the sender to select the value of the field from a predetermined list.
    ///
    ///You may assign up to three envelope custom fields to an envelope. This limit does not include account (document) custom fields.
    pub fn envelope_custom_fields(&self) -> envelope_custom_fields::EnvelopeCustomFields {
        envelope_custom_fields::EnvelopeCustomFields::new(self.clone())
    }

    /// The EnvelopeDocumentFields resource provides methods that allow you to manage custom fields on a document.
    ///
    ///You can create custom versions of standard fields that combine of field properties, such as font type or size, or a validation setting.
    ///
    ///Note: Some advanced features and options are supported only in certain DocuSign plans. Your account plan might not support some options discussed in this help topic. For more information about which options are available for your account, check your account plan or contact your Account Manager.
    pub fn envelope_document_fields(&self) -> envelope_document_fields::EnvelopeDocumentFields {
        envelope_document_fields::EnvelopeDocumentFields::new(self.clone())
    }

    /// The EnvelopeLocks resource provides methods that allow you to
    ///manage locks on an envelope.
    ///
    ///To prevent users from changing an envelope while another user is
    ///modifying it, you can lock the envelope and set the time until
    ///the lock expires.
    ///
    ///For example, you would use the following flow:
    ///
    ///1. Lock the envelope.
    ///2. Make changes to envelope.
    ///3. Delete the envelope lock and save the changes. If the envelope is based on a template that has a password, you must supply the template password to save the changes.
    ///
    ///**Note**: To use envelope locks, the user must have envelope locking capability enabled.
    pub fn envelope_locks(&self) -> envelope_locks::EnvelopeLocks {
        envelope_locks::EnvelopeLocks::new(self.clone())
    }

    /// The EnvelopeRecipients resource enables you manage the recipients of an envelope. All recipient types share a set of [core parameters](#core-recipient-parameters), but some recipient types have additional parameters. You specify the recipient type using the `recipientType` parameter. The recipient types are as follows:
    ///
    ///<br>
    ///
    ///| Recipient type | Description |
    ///| :--- | :--- |
    ///| [Agent](#agent-recipient) | Agent recipients can add name and email information for recipients that appear after the agent in routing order. |
    ///| [Carbon Copy](#carbon-copy-recipient) | Carbon copy recipients get a copy of the envelope but don't need to sign, initial, date, or add information to any of the documents. This type of recipient can be used in any routing order. Carbon copy recipients receive their copy of the envelope when the envelope reaches the recipient's order in the process flow and when the envelope is completed. |
    ///| [Certified Delivery](#certified-delivery-recipient) | Certified delivery recipients must receive the completed documents for the envelope to be completed. However, they don't need to sign, initial, date, or add information to any of the documents. |
    ///| [Editor](#editor-recipient) | Editors have the same management and access rights for the envelope as the sender. They can make changes to the envelope as if they were using the Advanced Correct feature. This recipient can add name and email information, add or change the routing order, set authentication options, and can edit signature/initial tabs and data fields for the remaining recipients. The recipient must have a DocuSign account to be an editor. |
    ///| [In-Person Signer](#in-person-signer-recipient) | In-person signer recipients are DocuSign users who act as signing hosts in the same physical location as the signer. |
    ///| [Intermediary](#intermediary-recipient) | Intermediaries are recipients who can, but are not required to, add name and email information for recipients at the same or subsequent level in the routing order, unless subsequent agents, editors, or intermediaries are added. |
    ///| [Seal](#seal-recipient) | Electronic seal recipients represent legal entities rather than individuals. Organizations and governments can use electronic seals to show evidence of origin and integrity of documents. |
    ///| [Signer](#signer-recipient) | Signers are recipients who must sign, initial, date, or add data to form fields on the documents in the envelope. |
    ///| [Witness](#witness-recipient) | Witnesses are recipients whose signatures affirm that the identified signers have signed the documents in the envelope. |
    ///
    ///<br>
    ///
    ///Not all recipients are are available to all account types. Review your account plan to determine which recipient types are available to you. All recipient types are available in the Demo environment.
    ///
    ///
    ///## Core Recipient Parameters
    ///
    ///All recipients, regardless of type, have the same common core parameters. The following table contains the descriptions for the core properties for all recipient types:
    ///
    ///<br>
    ///
    ///| Name | Required | Schema Type | Description |
    ///| :--- | :--- | :--- | :--- |
    ///| email | Yes | Email | Email of the recipient. Notification will be sent to this email id.<br/>Maximum Length: 100 characters. |
    ///| name | Yes | String | Full legal name of the recipient.<br/>Maximum Length: 100 characters.<br/><br/>**Note:** If you are creating an envelope with DocuSign EU advanced signature enabled, ensure that recipient names do not contain any of the following characters: **^ : \ @ , + <** |
    ///| accessCode | No | String | This optional element specifies the access code a recipient has to enter to validate the identity.<br/>Maximum Length: 50 characters. |
    ///| addAccessCodeToEmail | No | Boolean | This optional attribute indicates that the access code is added to the email sent to the recipient; this nullifies the Security measure of Access Code on the recipient. |
    ///| agentCanEditEmail | No | Boolean | When set to **true**, the agent recipient associated with this recipient can change the recipient's pre-populated email address. This element is only active if enabled for the account. |
    ///| agentCanEditName | No | Boolean | When set to **true**, the agent recipient associated with this recipient can change the recipient's pre-populated name (`UserName`). This element is only active if enabled for the account. |
    ///| clientUserId | No | String | This specifies whether the recipient is embedded or remote.<br/><br/>If the `clientUserId` property is not null then the recipient is embedded. Note that if the `ClientUserId` property is set and either `SignerMustHaveAccount` or `SignerMustLoginToSign` property of the account settings is set to  **true**, an error is generated on sending. Maximum length: 100 characters. |
    ///| embeddedRecipientStartURL | No | String | This is a sender provided valid URL string for redirecting an embedded recipient. When using this option, the embedded recipient still receives an email from DocuSign, just as a remote recipient would, but when the document link in the email is clicked the recipient is redirected, through DocuSign, to this URL to complete their actions. When routing to the URL, it is up to the sender's system (the server responding to the URL) to then request a recipient token to launch a signing session.<br/><br/>If the value `SIGN_AT_DOCUSIGN` is used for this node, the recipient is directed to an embedded signing or viewing process directly at DocuSign. The signing or viewing action is initiated by the DocuSign system and the transaction activity and Certificate of Completion records will reflect this. In all other ways the process is identical to an embedded signing or viewing operation that would be launched by any partner.<br/><br/>It is important to remember that in a typical embedded workflow the authentication of an embedded recipient is the responsibility of the sending application and DocuSign expects that senders will follow their own process for establishing the recipient's identity. In this workflow the recipient goes through the sending application before the embedded signing or viewing process in initiated. However, when the sending application sets  the `EmbeddedRecipientStartURL` property to `SIGN_AT_DOCUSIGN`, the recipient goes directly to the embedded signing or viewing process bypassing the sending application and any authentication steps the sending application would use. In this case, DocuSign recommends that one of the normal DocuSign authentication features (Access Code, Phone Authentication, SMS Authentication, etc.) be used to verify the identity of the recipient.<br/><br>If the `clientUserId` property is NOT set and the `embeddedRecipientStartURL` property is set, DocuSign ignores the redirect URL and launch the standard signing process for the email recipient. Information can be appended to the `embeddedRecipientStartURL` property using merge fields. The available merge fields items are: envelopeId, recipientId, recipientName, recipientEmail, and customFields. The customFields must be part of the recipient or envelope. The merge fields are enclosed in double brackets.<br/><br/>_Example_:<br/>`http://senderHost/[[mergeField1]]/ beginSigningSession? [[mergeField2]]&[[mergeField3]]` |
    ///| customFields | No | customField |An optional array of strings that allows the sender to provide custom data about the recipient. This information is returned in the envelope status but otherwise not used by DocuSign. String `customField` properties have a maximum length of 100 characters. |
    ///| emailNotification | No | emailNotification | An optional complex type that has information for setting the language for the recipient's email information. It is composed of three elements:<br/><br/>*emailBody*: a string with the email message sent to the recipient.<br/>Maximum Length: 10000 characters.<br/><br/>*emailSubject*: a string with the subject of the email sent to the recipient.<br/>Maximum Length: 100 characters.<br/><br/>*supportedLanguage*: The simple type enumeration (two-letter code) for the language to use for the standard email format and the signing view for the recipient. To retrieve the possible values, use the [Accounts::listSupportedLanguages method][ListLang].<br/><br/>**Note**: You can set the `emailNotification` property separately for each recipient. If you set the value only for certain recipients, the other recipients will inherit the this value from the top-level `emailSubject` and `emailBlurb`.  |
    ///| excludedDocuments | No | Array of Strings | Specifies the documents that are not visible to this recipient. Document Visibility must be enabled for the account and the enforceSignerVisibility property must be set to true for the envelope to use this.<br/><br/>When the enforceSignerVisibility property is set to **true**, documents with tabs can only be viewed by signers that have a tab on that document. Recipients that have an administrative role (Agent, Editor, or Intermediaries) or informational role (Certified Deliveries or Carbon Copies) can always see all the documents in an envelope, unless they are specifically excluded using this setting when an envelope is sent. Documents that do not have tabs are always visible to all recipients, unless they are specifically excluded using this setting when an envelope is sent. |
    ///| idCheckConfigurationName | No | String |Specifies authentication check by name. The names used here must be the same as the authentication type names used by the account (these name can also be found in the web console sending interface in the Identify list for a recipient). This overrides any default authentication setting.<br/><br/>_Example_:<br/> Your account has ID Check and SMS Authentication available and in the web console Identify list these appear as 'ID Check $' and 'SMS Auth $'. To use ID check in an envelope, the `idCheckConfigurationName` property must be  set to `ID Check $`. To use SMS, it must be set to `SMS Auth $` and you must add phone number information to the `smsAuthentication` node.|
    ///| iDCheckInformationInput | No | IdCheckInformationInput | This complex element contains input information related to a recipient ID check. It can include the following information.<br/><br/>*addressInformationInput*: Used to set recipient address information and consists of:<br/><br/>*addressInformation*: consists of six elements, with street2 and zipPlus4 being optional. The elements are: street1, street2, city, state, zip, zipPlus4\. The maximum number of characters in each element are: street1/street2 = 150 characters, city = 50 characters, state = 2 characters, and zip/zipPlus4 = 20 characters.<br/><br/>displayLevelCode: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*dobInformationInput*: Used to set recipient date of birth information and consists of:<br/><br/>*dateOfBirth*: Specifies the recipient's date, month and year of birth.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*ssn4InformationInput*: Used to set the last four digits of the recipient's SSN information and consists of:<br/><br/>*ssn4*: Specifies the last four digits of the recipient's SSN.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*ssn9InformationInput*: Used to set the recipient's SSN information. Note that the ssn9 information can never be returned in the response. The ssn9 input consists of:<br/><br/><br/><br/>*ssn9*: Specifies the recipient's SSN.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay. |
    ///| inheritEmailNotificationConfiguration | No | Boolean | Optional element. If true and the envelope recipient creates a DocuSign account after signing, the Manage Account Email Notification settings are used as the default settings for the recipient's account. |
    ///| note | No | String | A note that is unique to this recipient. This note is sent to the recipient via the signing email. The note displays in the signing UI near the upper left corner of the document on the signing screen.<br/>Maximum Length: 1000 characters. |
    ///| phoneAuthentication | No | RecipientPhoneAuthentication | Optional element. Contains the elements: <br/><br/> *recipMayProvideNumber*:Boolean. When set to **true** thenrecipient can use whatever phone number they choose to.<br/><br/> *senderProvidedNumbers*: ArrayOfString. A list of phone numbers the recipient can use. <br/>
    ///| recipientId | No | String | Unique for the recipient. It is used by the tab element to indicate which recipient is to sign the Document. |
    ///| requireIdLookup | No | Boolean | When set to **true**, the recipient is required to use the specified ID check method (including Phone and SMS authentication) to validate their identity. |
    ///| roleName | No* | String | Optional element. Specifies the role name associated with the recipient.<br/><br/>This is required when working with template recipients. |
    ///| routingOrder | Yes | String | This element specifies the routing order of the recipient in the envelope. |
    ///| smsAuthentication | No | senderProvidedNumbers | Optional element. Contains the element:<br/><br/>*senderProvidedNumbers*: Array that contains a list of phone numbers the recipient can use for SMS text authentication. |
    ///| templateAccessCodeRequired | No | Boolean | Optional element. Used only when working with template recipients. When set to **true** and the `TemplateLocked` parameter is set to **true**, the sender must enter an access code. |
    ///| templateLocked | No | Boolean | Optional element. Used only when working with template recipients. When set to **true**, the sender cannot change any attributes of the recipient. |
    ///| templateRequired | No | Boolean | Optional element. Used only when working with template recipients. When set to **true**,  the sender may not remove the recipient. |
    ///| identityVerification <a name="toto"></a> | No | identityVerification | Optional element. Specifies ID Verification applied on an envelope by workflow ID. <br/>See the [list](https://developers.docusign.com/docs/esign-rest-api/reference/accounts/identityverifications/list/) method in the [IdentityVerifications](https://developers.docusign.com/docs/esign-rest-api/reference/accounts/identityverifications/) resource for more information on how to retrieve workflow IDs available for an account. <br/>This can be used in addition to other [recipient authentication](https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/recipients/auth/) methods. <br/>Note that ID Verification and ID Check are two distinct methods. ID Verification checks recipients' identity by verifying their ID while ID Check relies on data available on public records (such as current and former address). |
    ///
    ///<br>
    ///
    ///
    ///
    ///## Agent Recipient
    ///
    ///An agent recipient can add name and email information for recipients that appear after the agent in routing order.
    ///
    ///In addition to the [core parameters](#core-recipient-parameters), this recipient type has the following parameters:
    ///
    ///<br>
    ///
    ///| Name | Required | Schema Type | Description |
    ///| :--- | :--- | :--- | :--- |
    ///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
    ///
    ///<br>
    ///
    ///
    ///
    ///## Carbon Copy Recipient
    ///
    ///Carbon copy recipients receive a copy of the envelope but don't need to sign, initial, date or add information to any of the documents. You can place this type of recipient in any routing order. Carbon copy recipients receive their copy of the envelope when the envelope reaches the recipient's order in the process flow and when the envelope is completed.
    ///
    ///In addition to the [core parameters](#core-recipient-parameters), this recipient type has the following parameters:
    ///
    ///<br>
    ///
    ///| Name | Required | Schema Type | Description |
    ///| :--- | :--- | :--- | :--- |
    ///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
    ///
    ///<br>
    ///
    ///
    ///
    ///## Certified Delivery Recipient
    ///
    ///Certified delivery recipients must receive the completed documents for the envelope to be completed. However, they don't need to sign, initial, date or add information to any of the documents.
    ///
    ///In addition to the [core parameters](#core-recipient-parameters), this recipient type has the following parameters:
    ///
    ///<br>
    ///
    ///| Name | Required | Schema Type | Description |
    ///| :--- | :--- | :--- | :--- |
    ///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
    ///
    ///<br>
    ///
    ///
    ///
    ///## Editor Recipient
    ///
    ///Editors have the same management and access rights for the envelope as the sender. They can make changes to the envelope as if they were using the Advanced Correct feature. This recipient can add name and email information, add or change the routing order and set authentication options for the remaining recipients. Additionally, this recipient can edit signature/initial tabs and data fields for the remaining recipients. The recipient must have a DocuSign account to be an editor.
    ///
    ///In addition to the [core parameters](#core-recipient-parameters), this recipient type has the following parameters:
    ///
    ///<br>
    ///
    ///
    ///| Name | Required | Schema Type | Description |
    ///| :--- | :--- | :--- | :--- |
    ///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
    ///
    ///
    ///<br>
    ///
    ///
    ///## In-Person Signer Recipient
    ///
    ///An in-person recipient is a DocuSign user, acting as a Signing Host, who is in the same physical location as the signer.
    ///
    ///The following restrictions apply to using electronic notary when sending documents:
    ///
    ///* Authentication methods are allowed for the signer but not the notary.
    ///* The Sign On Paper, Document Markup, Field Markup and Change Signer options cannot be used for the documents.
    ///* Tabs may be assigned to the signer, but cannot be assigned to the notary.
    ///
    ///See [eNotary Resources][enotary-resources] in the DocuSign Support Center for more information about how the eNotary feature works.
    ///
    ///In addition to the [core parameters](#core-recipient-parameters), this type adds the following parameters:
    ///
    ///<br>
    ///
    ///
    ///| Name 	| Required 	| Schema Type 	| Description 	|
    ///|-----------------------	|-----------------------------------------------------	|-------------	|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------	|
    ///| inPersonSigningType 	| No 	| String 	| Specifies whether the envelope uses the eNotary feature. The accepted values are:<ul markdown=1><li>`inPersonSigner` The envelope uses the normal in-person signing flow.</li><li>`notary`: The envelope uses the eNotary signing flow.</li></ul> 	|
    ///| notaryHost 	| Yes, when `inPersonSigningType` is `notary` 	| NotaryHost 	| Sets the information for the notary host for the notary in person signing flow. The following information is required: <ul markdown=1> <li>`recipientId`: A unique ID number for the notary signing host. </li> <li>`name`: Specifies the notary's full legal name.</li> <li>`email`: Specifies the notary's email address. </li> </ul> 	|
    ///| autoNavigation 	| No 	| Boolean 	| Specifies whether auto navigation is set for the recipient. 	|
    ///| defaultRecipient 	| No 	| Boolean 	| When set to **true**, this is the default recipient for the envelope. This option is used when creating an envelope from a template. 	|
    ///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
    ///| hostName 	| Yes, when `inPersonSigningType` is `inPersonSigner` 	| String 	| The name of the signing host. This is the DocuSign user that is hosting the in-person signing session. 	|
    ///| hostEmail 	| Yes, when `inPersonSigningType` is `inPersonSigner` 	| String 	| The email address of the signing host. This is the DocuSign user that is hosting the in-person signing session. 	|
    ///| signerName 	| Yes, when `inPersonSigningType` is `inPersonSigner` 	| String 	| The in-person signer's full legal name. 	|
    ///| Name 	| Yes, when `inPersonSigningType` is `notary` 	| String 	| The full legal name of the signer in an eNotary flow. 	|
    ///| email 	| Yes, when `inPersonSigningType` is `notary` 	| String 	| The signer's email address in an eNotary flow. 	|
    ///| recipientSuppliesTabs 	| No 	| Boolean 	| Indicates whether the recipient supplies tabs in the document. 	|
    ///| signatureInfo 	| No 	| String 	| Optional element only used with the recipient types In Person Signers, Signers, and Witnesses.<br/><br/>Allows the sender to pre-specify the signature name, signature initials, and signature font used in the signature stamp for the recipient. 	|
    ///| signInEachLocation 	| No 	| Boolean 	| When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab (instead of adopting a signature/initial style or only drawing a signature/initial once). 	|
    ///| tabs 	| No 	| Tab 	| Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Specifies the Tabs associated with the recipient. See the [EnvelopeRecipientTabs resource](https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/) for more information about tabs. 	|
    ///|  	|  	|  	|  	|
    ///
    ///
    ///<br>
    ///
    ///
    ///
    ///## Intermediary Recipient
    ///
    ///An intermediary is a recipient who can, but is not required to, add name and email information for recipients at the same or subsequent level in the routing order, unless subsequent agents, editors or intermediaries are added.
    ///
    ///In addition to the [core parameters](#core-recipient-parameters), this recipient type has the following parameters:
    ///
    ///<br>
    ///
    ///
    ///| Name | Required | Schema Type | Description |
    ///| :--- | :--- | :--- | :--- |
    ///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
    ///
    ///<br>
    ///
    ///
    ///
    ///## Seal Recipient
    ///
    ///An electronic seal recipient is a legal entity rather than an actual person. Electronic Seals can be used by organizations and governments to show evidence of origin and integrity of documents. Even though electronic seals can be represented by a tab in a document, they do not require user interaction and apply automatically in the order specified by the sender. The sender is therefore the person authorizing usage of the electronic seal in the flow.
    ///
    ///Electronic seal recipients rely on a subset of core properties, described as follows, plus the `recipientSignatureProviders` parameter:
    ///
    ///
    ///<br>
    ///
    ///
    ///| Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Required&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Schema Type&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | Description&nbsp;&nbsp;&nbsp;&nbsp; |
    ///| :--- | :--- | :--- | :--- |
    ///| recipientId| Yes | String | Indicates the unique ID of the applied electronic seal.<br/>|
    ///| routingOrder| No (default: 1) | String | Specifies the routing order of the electronic seal in the envelope. <br />The routing order assigned to your electronic seal cannot be shared with another recipient. It is recommended that you set a routing order for your electronic seals.. |
    ///| recipientSignatureProviders| Yes | String | Indicates which electronic seal to apply on documents when creating an envelope. |
    ///
    ///
    ///<br>
    ///
    ///
    ///
    ///By default, Electronic Seals apply on all documents in an envelope. However, the sealDocumentsWithTabsOnly property (see recipientSignatureProvider) allows you to seal only documents that have signHere tabs set for the Electronic Seal recipients.
    ///
    ///<br>
    ///
    ///
    ///
    ///## Signer Recipient
    ///
    ///A signer is a recipient who must sign, initial, date, or add data to form fields on the documents in the envelope.
    ///
    ///In addition to the [core parameters](#core-recipient-parameters), this recipient type adds the following parameters:
    ///
    ///<br>
    ///
    ///
    ///| Name | Required | Schema Type | Description |
    ///| :--- | :--- | :--- | :--- |
    ///| autoNavigation | No | Boolean | Specifies whether auto navigation is set for the recipient.|
    ///| defaultRecipient | No | Boolean | When set to **true**, this is the default recipient for the envelope. This option is used with the CreateEnvelopeFromTemplatesAndForms method. |
    ///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
    ///| isBulkRecipient | No | Boolean | Indicates whether the recipient is a bulk send recipient or not. |
    ///| recipientSuppliesTabs | No | Boolean | Indicates whether the recipient supplies tabs in the document. |
    ///| signInEachLocation | No | Boolean | When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab (instead of adopting a signature/initial style or only drawing a signature/initial once). |
    ///| signatureInfo | No | String | Optional element only used with recipient types In Person Signers, Signers, and Witnesses.<br/><br/>Allows the sender to pre-specify the signature name, signature initials, and signature font used in the signature stamp for the recipient. |
    ///| signerEmail | No | String | Optional element. The email address for an In-Person Signer recipient Type.<br/>Maximum Length: 100 characters. |
    ///| signerName | Yes | String | Required element with recipient type In Person Signers.<br/>Maximum Length: 100 characters.<br/><br/>The full legal name of a signer for the envelope. |
    ///| tabs | No | Tab | Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Specifies the Tabs associated with the recipient. See the the [EnvelopeRecipientTabs resource](https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/enveloperecipienttabs/)  for more information about tabs. |
    ///
    ///<br>
    ///
    ///[enotary-resources]: https://support.docusign.com/en/guides/ndse-user-guide-enotary-resources
    ///
    ///
    ///## Witness Recipient
    ///
    ///A witness is a recipient whose signature affirms that the identified signers have signed the documents in the envelope.
    ///
    ///In addition to the [core parameters](#core-recipient-parameters), this recipient type adds the following parameters:
    ///
    ///<br>
    ///
    ///
    ///| Name | Required | Schema Type | Description |
    ///| :--- | :--- | :--- | :--- |
    ///| autoNavigation | No | Boolean |	Specifies whether auto navigation is set for the recipient. |
    ///| defaultRecipient | No | Boolean | When set to **true**, this is the default recipient for the envelope. This option is used when creating an envelope from a template. |
    ///| documentVisibility | No | documentVisibility | A complex type that specifies which documents are visible to this recipient. |
    ///| isBulkRecipient | No | Boolean | Indicates whether the recipient is a bulk send recipient or not. |
    ///| recipientSignatureProviders | Yes | String | Indicates which electronic seal to apply on documents when creating an envelope. |
    ///| recipientSuppliesTabs | No | Boolean | Indicates whether the recipient supplies tabs in the document. |
    ///| recipientType | Yes | String | Indicates the recipient type. |
    ///|requireSignerCertificate | No | Boolean | Indicates whether the envelope requires a signer certificate for this recipient. |
    ///| requireSignOnPaper | No | Boolean | Specifies whether the signer must print, sign, and upload or fax the signed documents to DocuSign. |
    ///| signatureInfo | No | Boolean | Optional element only used with recipient types In Person Signers, Signers, and Witnesses. Enables the sender to pre-specify the signature name, signature initials, and signature font used in the signature stamp for the recipient. |
    ///| signInEachLocation | No | Boolean | When set to **true** and the feature is enabled in the sender's account, specifies that the signing recipient is required to sign and initial at each signature/initial tab (instead of once). |
    ///| signingGroupId | No | String | The id of the [signing group](https://support.docusign.com/en/guides/ndse-user-guide-signing-groups). |
    ///| signingGroupName | No | String | The display name for the signing group. Maximum Length: 100 characters. |
    ///| signingGroupUsers | No | userInfo | A complex type that contains information about the users in the signing group. |
    ///| witnessFor | Yes | String | Indicates the person or party for whom the recipient is a witness. |
    ///| witnessForGuid | Yes | String | GUID identifying the person or party for whom the recipient is a witness. |
    ///
    ///
    ///[ListLang]: https://developers.docusign.com/docs/esign-rest-api/reference/Accounts/Accounts/listSupportedLanguages/
    ///.
    pub fn envelope_recipients(&self) -> envelope_recipients::EnvelopeRecipients {
        envelope_recipients::EnvelopeRecipients::new(self.clone())
    }

    /// The EnvelopeRecipientTabs resource provides methods that enable you
    ///to add,
    ///update,
    ///and delete tabs
    ///from an envelope.
    ///Tabs are associated with a specific recipient
    ///in an envelope
    ///and are only used by the recipient types
    ///In Person Signers and Signers.
    ///
    ///<!-- START doctoc generated TOC please keep comment here to allow auto update -->
    ///<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
    ///**On this page**
    ///
    ///- [Tab Types](#tab-types)
    ///- [View Tab](#view-tab)
    ///- [Requesting Payments](#requesting-payments)
    ///- [Using Custom Tabs in Envelopes and Templates](#using-custom-tabs-in-envelopes-and-templates)
    ///- [Anchoring Tabs](#anchoring-tabs)
    ///- [Automatically Populating Tabs](#automatically-populating-tabs)
    ///
    ///<!-- END doctoc generated TOC please keep comment here to allow auto update -->
    ///
    ///
    ///## Tab Types
    ///
    ///Some tabs enable values to be entered by the signer.
    ///Those tabs' values can be preset either through the web browser
    ///or via the API. Other tab types use information that is already
    ///recognized by the DocuSign platform.
    ///These tabs cannot have their value updated on a per-tab basis
    ///by the API or via the browser. In some cases, the info might be
    ///settable using a different technique.
    ///For example, the Full name tab uses the signer's name,
    ///which is set elsewhere in the request.
    ///
    ///Here is the list of tabs and whether you can or cannot set their values in the tab definition:
    ///
    ///<br>
    ///
    ///| Tab Type                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
    ///| :------------------------------------- | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
    ///| Approve (`approve`)                    | Allows the recipient to approve documents without placing a signature or initials on the document. If the recipient clicks the tab during the signing process, the recipient is considered to have signed the document. No information is shown on the document of the approval, but it is recorded as a signature in the envelope history. This value **can't** be set.                                                                                                                                                                                                                                              |
    ///| Checkbox (`checkbox`)                  | Allows the recipient to select a yes/no (on/off) option. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
    ///| Company (`company`)                    | Displays the recipient's company name. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
    ///| Date Signed (`dateSigned`)             | Displays the date that the recipient signed the document. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
    ///| Date (`date`)                          | Allows the recipient to enter a date. Date tabs are one-line fields that allow date information to be entered in any format. The tooltip for this tab recommends entering the date as MM/DD/YYYY, but this is not enforced. The format entered by the signer is retained. If you need a particular date format enforced, DocuSign recommends using a Text tab with a validation pattern and a validation message to enforce the format. This value can be set.                                                                                                                                                        |
    ///| Decline (`decline`)                    | Allows the recipient the option of declining an envelope. If the recipient clicks the tab during the signing process, the envelope is voided. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                            |
    ///| Email Address (`emailAddress`)         | Displays the recipient's email as entered in the recipient information. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
    ///| Email (`email`)                        | Allows the recipient to enter an email address. This is a one-line field that checks that a valid email address is entered. It uses the same parameters as a Text tab, with the validation message and pattern set for email information.<br><br>When getting information that includes this tab type, the original value of the tab when the associated envelope was sent is included in the response. This value can be set.                                                                                                                                                                                        |
    ///| Envelope ID (`envelopeId`)             | Displays the envelope ID. Recipients cannot enter or change the information in this tab.  This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
    ///| First Name (`firstName`)               | Displays the recipient's first name. This tab takes the recipient's name as entered in the recipient information, splits it into sections based on spaces and uses the first section as the first name. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                  |
    ///| Formula Tab (`formulaTab`)             | The value of a formula tab is calculated from the values of other number or date tabs in the document. When the recipient completes the underlying fields, the formula tab calculates and displays the result. This value can be set.The `formula` property of the tab contains the references to the underlying tabs. See [Calculated Fields] in the DocuSign Support Center to learn more about formulas. If a formula tab contains a `paymentDetails` property, the tab is considered a payment item. See [Requesting Payments Along with Signatures] in the DocuSign Support Center to learn more about payments. |
    ///| Full Name (`fullName`)                 | Displays the recipient's full name. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
    ///| Initial Here (`initialHere`)           | Allows the recipient to initial the document. May be optional. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
    ///| Last Name (`lastName`)                 | Displays the recipient's last name. This tab takes the recipient's name as entered in the recipient information, splits it into sections based on spaces and uses the last section as the last name. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                     |
    ///| List (`list`)                          | This tab offers a list of options to choose from. The `listItems` property is used to specify the selectable options. This value can be set,                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
    ///| Notarize (`notarize`)                  | Place this tab on a page to alert Notary recipients that they must take action. Only one notarize tab can appear on a page. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
    ///| Note (`note`)                          | Displays additional information, in the form of a note, for the recipient. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
    ///| Number (`number`)                      | Allows the recipient to enter numbers and decimal (.) points. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
    ///| Radio Group (`radioGroup`)             | This group tab is used to place radio buttons on a document. The `radios` property is used to add and place the radio buttons associated with the group. Only one radio button can be selected in a group. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                     |
    ///| Sign Here (`signHere`)                 | Allows the recipient to sign a document. May be optional. This value **can't** be set. <br/>**Note**: `signHere` tabs can also be used to add a visual representation for  an electronic seal in a document.                                                                                                                                                                                                                                                                                                                                                                                                          |
    ///| Signer Attachment (`signerAttachment`) | Allows the recipient to attach supporting documents to an envelope. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
    ///| SSN (`ssn`)                            | A one-line field that allows the recipient to enter a Social Security Number. The SSN can be typed with or without dashes. It uses the same parameters as a Text tab, with the validation message and pattern set for SSN information.  This value can be set.                                                                                                                                                                                                                                                                                                                                                        |
    ///| Text (`text`)                          | Allows the recipient to enter any type of text. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
    ///| Title (`title`)                        | Displays the recipient's title. This value **can't** be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
    ///| View (`view`)                          | The View tab is used with the Approve tab to handle supplemental documents. This value can be set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
    ///| Zip (`zip`)                            | Allows the recipient to enter a ZIP code. The ZIP code can be five digits or nine digits in the ZIP+4 format. The zip code can be typed with or without dashes. It uses the same parameters as a Text tab, with the validation message and pattern set for ZIP code information. This value can be set.                                                                                                                                                                                                                                                                                                               |
    ///
    ///
    ///[approve]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[checkbox]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[company]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[dateSigned]:		    https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[date]:		          https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[decline]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[emailAddress]:     https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[email]:		        https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[envelopeId]:	    	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[firstName]:	    	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[formulaTab]:	    	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[fullName]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[initialHere]:	  	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[lastName]:		      https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[list]:	           	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[notarize]:         https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[note]:		          https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[number]:		        https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[radioGroup]:		    https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[signerAttachment]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[signHere]:	      	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[ssn]:	          	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[text]:	          	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[title]:	        	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[view]:		          https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///[zip]:	          	https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/#tab-types
    ///
    ///[calculatedfields]: https://support.docusign.com/en/guides/ndse-user-guide-calculated-fields
    ///[paymentguide]:     https://support.docusign.com/en/guides/requesting-payments-along-with-signatures
    ///
    ///
    ///
    ///
    ///
    ///
    ///## View Tab
    ///
    ///The View tab is used on supplemental documents.
    ///To learn more about using the View tab with
    ///supplemental documents, see
    ///[Using Supplemental Documents][usingsupdocs]
    ///in the [Sending Documents][sendenvelopes] section of
    ///the [Envelope: create][envelopecreate] method.
    ///
    ///[sendenvelopes]:  https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/Envelopes/create/
    ///[usingsupdocs]:   https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/documents/supplemental/
    ///[envelopecreate]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/Envelopes/create/
    ///
    ///<br>
    ///
    ///| Name              | Required  | Type    | Description |
    ///| :----             | :----     | :----   | :----       |
    ///| documentId        | Yes       | String  | The document ID number that the tab is placed on. This must refer to an existing Document's ID attribute. |
    ///| pageNumber        | Yes       | String  | Must be set to 1. |
    ///| recipientId       | Yes       | String  | The recipient associated with the tab. Must refer to an existing recipient's ID attribute. |
    ///| required          | No        | Boolean | If **true**, the recipient is required to select the supplemental document View button during signing. |
    ///| tabLabel          | No        | String  | The label used for the tab.  If an empty string is provided for this, an empty sting is used. If no value is provided, the tab type is used as the value. Maximum of 500 characters. |
    ///| templateLocked    | No        | Boolean | Optional. Used only when working with template tabs. If **true**, the attributes of the tab cannot be changed by the sender. |
    ///| templateRequired  | No        | Boolean | Optional. Used only when working with template tabs. If **true**, the tab cannot be removed by the sender. |
    ///| xPosition         | Yes       | String  | Required, but can be 0.  |
    ///| yPosition         | Yes       | String  | Required, but can be 0. |
    ///
    ///
    ///## Requesting Payments
    ///
    ///The Payments feature of the DocuSign eSignature REST API
    ///lets you collect payments
    ///along with signatures and other information.
    ///
    ///To send a request for payment
    ///and collect payments,
    ///you need a payment gateway account,
    ///which is the destination for the payments.
    ///Create a payment account
    ///with a supported payment gateway,
    ///and then connect the payment gateway account
    ///to your DocuSign account.
    ///To learn how to connect a payment gateway account
    ///to your DocuSign account
    ///see [Managing Payment Gateways][paymentgateways]
    ///in the DocuSign Support Center.
    ///You must connect and manage payment gateway accounts manually
    ///through the DocuSign Admin console
    ///and through your chosen payment gateway.
    ///There is no public API
    ///for connecting payment gateway accounts
    ///to DocuSign accounts
    ///or for managing payment gateway accounts.
    ///
    ///Currently
    ///[Stripe][stripe],
    ///[Braintree](https://www.braintreepayments.com/), and
    ///[Authorize.net](https://www.authorize.net/)
    ///are the supported payment gateways.
    ///
    ///### How Payments Work
    ///
    ///To make a request for payment,
    ///use a [`formulaTab`][formulatab]
    ///that has a
    ///[`paymentDetails`][paymentdetails] object.
    ///This object includes
    ///a list of [`paymentLineItem`][paymentlineitem] objects.
    ///Each line item refers to a [`number`][numbertab] tab
    ///that contains the value of the each item.
    ///The purpose of the line items
    ///is to transmit them to the payment gateway
    ///as metadata, so that you can use the information
    ///in the payment processor.
    ///
    ///**Note**: If the fileExtension parameter is not added in an API call, only base64 converted pdf files will be accepted.
    ///Any attempt to send a non pdf file without using fileExtension results in an error.
    ///
    ///This is an example request for two books.
    ///Each book is specified in the `number` tabs
    ///labeled "Hamlet" and "Tempest".
    ///The books are referenced as line items
    ///by their tab labels
    ///within the `paymentDetails` object
    ///of a `formula` tab.
    ///The formula of the `formula` tab
    ///add the values of the same two `number` tabs.
    ///
    ///```json
    ///{
    ///  "documents": [
    ///    {
    ///      "documentBase64": "<base64-encoded PDF document>",
    ///      "documentId": "1",
    ///      "fileExtension": "pdf",
    ///      "name": "payment.pdf"
    ///    }
    ///  ],
    ///  "emailSubject": "Order Some Books",
    ///  "recipients": {
    ///    "signers": [
    ///      {
    ///        "email": "vreader@example.com",
    ///        "name": "Voracious Reader",
    ///        "recipientId": "1",
    ///        "routingOrder": "1",
    ///        "tabs": {
    ///          . . .
    ///          "numberTabs": [
    ///            {
    ///              "value": "10.00",
    ///              "width": 78,
    ///              "required": "true",
    ///              "locked": "true",
    ///              "tabLabel": "Hamlet",
    ///              "documentId": "1",
    ///              "pageNumber": "1",
    ///              "xPosition": "323",
    ///              "yPosition": "134"
    ///            },
    ///            {
    ///              "value": "10.00",
    ///              "width": 78,
    ///              "required": "true",
    ///              "locked": "true",
    ///              "tabLabel": "Tempest",
    ///              "documentId": "1",
    ///              "pageNumber": "1",
    ///              "xPosition": "323",
    ///              "yPosition": "154"
    ///            }
    ///          ],
    ///          "formulaTabs": [
    ///            {
    ///              "required": "true",
    ///              "formula": "([Hamlet] + [Tempest]) * 100",
    ///              "roundDecimalPlaces": "2",
    ///              "paymentDetails": {
    ///                "currencyCode": "USD",
    ///                "lineItems": [
    ///                  {
    ///                    "name": "Hamlet",
    ///                    "description": "The Danish Play",
    ///                    "itemCode": "SHAK1",
    ///                    "amountReference": "Hamlet"
    ///                  },
    ///                  {
    ///                    "name": "Othello",
    ///                    "description": "The one with Caliban in it",
    ///                    "itemCode": "SHAK2",
    ///                    "amountReference": "Tempest"
    ///                  }
    ///                ],
    ///                "gatewayAccountId": "e76668b4-xxxx-xxxx-xxxx-a208d659e490"
    ///              },
    ///              "tabLabel": "Payment1",
    ///              "documentId": "1",
    ///              "pageNumber": "1",
    ///              "xPosition": 300,
    ///              "yPosition": 200
    ///            }
    ///          ]
    ///        }
    ///      }
    ///    ]
    ///  },
    ///  "status": "sent"
    ///}
    ///```
    ///
    ///Use the
    ///[EnvelopeRecipients: list][enveloperecipientslist] method
    ///to check the status of a payment.
    ///When the payment is successful,
    ///the `status` property of
    ///the [`paymentDetails`][paymentdetails] object
    ///is `payment_complete`.
    ///
    ///```json
    ///{
    ///  "signers": [
    ///    {
    ///      "tabs": {
    ///        . . .
    ///        "numberTabs": [
    ///          {
    ///            "value": "10.00",
    ///            "tabLabel": "Hamlet",
    ///            "documentId": "1",
    ///            "recipientId": "1",
    ///            "pageNumber": "1",
    ///            "xPosition": "323",
    ///            "yPosition": "134",
    ///          },
    ///          {
    ///            "value": "10.00",
    ///            "tabLabel": "Tempest",
    ///            "documentId": "1",
    ///            "recipientId": "1",
    ///            "pageNumber": "1",
    ///          }
    ///        ],
    ///        "formulaTabs": [
    ///          {
    ///            "formula": "([Hamlet] + [Tempest]) * 100",
    ///            "roundDecimalPlaces": "2",
    ///            "paymentDetails": {
    ///              "status": "payment_complete",
    ///              "currencyCode": "USD",
    ///              "lineItems": [
    ///                {
    ///                  "name": "Hamlet",
    ///                  "description": "The Danish Play",
    ///                  "itemCode": "SHAK1",
    ///                  "amountReference": "Hamlet"
    ///                },
    ///                {
    ///                  "name": "Tempest",
    ///                  "description": "The one with Caliban in it",
    ///                  "itemCode": "SHAK2",
    ///                  "amountReference": "Tempest"
    ///                }
    ///              ],
    ///              "gatewayAccountId": "e76668b4-xxxx-xxxx-xxxx-a208d659e490"
    ///            },
    ///            "value": "20",
    ///            "required": "true",
    ///            "locked": "false",
    ///            "tabLabel": "Payment1",
    ///            "documentId": "1",
    ///            "recipientId": "1",
    ///            "pageNumber": "1",
    ///          }
    ///        ]
    ///      },
    ///      "creationReason": "sender",
    ///      "email": "vreader@example.com",
    ///      "name": "Voracious Reader",
    ///      "recipientId": "1",
    ///      "requireIdLookup": "false",
    ///      "status": "completed",
    ///    }
    ///  ],
    ///  . . .
    ///}
    ///```
    ///
    ///#### How to make a request for future payments
    ///
    ///Use the following steps to make a request to collect a signer's payment method for future use:
    ///
    ///1. Add a text tab with a descriptive `tabLabel` such as `FuturePayment`.
    ///2. In the formula tab's `paymentDetails` object, add a `lineItem` object that references the `tabLabel` from step 1.
    ///
    ///**Note**: Do not include this new `lineItem` in formula calculations.
    ///
    ///The following example builds on the previous code block to also collect a payment method for future use:
    ///
    ///```
    ///{
    ///  "documents": [
    ///    {
    ///      "documentBase64": "<base64-encoded PDF document>",
    ///      "documentId": "1",
    ///      "fileExtension": "pdf",
    ///      "name": "payment.pdf"
    ///    }
    ///  ],
    ///  "emailSubject": "Order Some Books",
    ///  "recipients": {
    ///    "signers": [
    ///      {
    ///        "email": "vreader@example.com",
    ///        "name": "Voracious Reader",
    ///        "recipientId": "1",
    ///        "routingOrder": "1",
    ///        "tabs": {
    ///          "numberTabs": [
    ///            {
    ///              "value": "10.00",
    ///              "width": 78,
    ///              "required": "true",
    ///              "locked": "true",
    ///              "tabLabel": "Hamlet",
    ///              "documentId": "1",
    ///              "pageNumber": "1",
    ///              "xPosition": "323",
    ///              "yPosition": "134"
    ///            },
    ///            {
    ///              "value": "10.00",
    ///              "width": 78,
    ///              "required": "true",
    ///              "locked": "true",
    ///              "tabLabel": "Tempest",
    ///              "documentId": "1",
    ///              "pageNumber": "1",
    ///              "xPosition": "323",
    ///              "yPosition": "154"
    ///            }
    ///          ],
    ///          "textTabs": [
    ///            {
    ///              "value": "",
    ///              "width": 78,
    ///              "required": "true",
    ///              "locked": "true",
    ///              "tabLabel": "FuturePayment",
    ///              "documentId": "1",
    ///              "pageNumber": "1",
    ///              "xPosition": "323",
    ///              "yPosition": "174"
    ///            }
    ///          ],
    ///          "formulaTabs": [
    ///            {
    ///              "required": "true",
    ///              "formula": "([Hamlet] + [Tempest]) * 100",
    ///              "roundDecimalPlaces": "2",
    ///              "paymentDetails": {
    ///                "currencyCode": "USD",
    ///                "paymentOption": "save_and_authorize",
    ///                "lineItems": [
    ///                  {
    ///                    "name": "Hamlet",
    ///                    "description": "The Danish Play",
    ///                    "itemCode": "SHAK1",
    ///                    "amountReference": "Hamlet"
    ///                  },
    ///                  {
    ///                    "name": "Othello",
    ///                    "description": "The one with Caliban in it",
    ///                    "itemCode": "SHAK2",
    ///                    "amountReference": "Tempest"
    ///                  },
    ///                  {
    ///                    "name": "Request books",
    ///                    "description": "collect Payment method",
    ///                    "itemCode": "",
    ///                    "amountReference": "FuturePayment"
    ///                  }
    ///                ],
    ///                "gatewayAccountId": "e76668b4-xxxx-xxxx-xxxx-a208d659e490"
    ///              },
    ///              "tabLabel": "Payment1",
    ///              "documentId": "1",
    ///              "pageNumber": "1",
    ///              "xPosition": 300,
    ///              "yPosition": 200
    ///            }
    ///          ]
    ///        }
    ///      }
    ///    ]
    ///  },
    ///  "status": "sent"
    ///}
    ///```
    ///
    ///### Some Things to Keep in Mind About Payments
    ///
    ///* An envelope is not completed until all payments are completed.
    ///
    ///* If a DocuSign account Administrator
    ///  deletes a payment gateway account connection
    ///  DocuSign cancels all in-process envelopes
    ///  that reference the deleted payment gateway account.
    ///
    ///* If the sender voids an envelope,
    ///  all payment authorizations are canceled.
    ///
    ///* If a required recipient refuses to sign,
    ///  all authorized payments are canceled.
    ///
    ///* If a required recipient's payment fails authorization,
    ///  DocuSign attempts to recover
    ///  by sending the recipient
    ///  notification about the failed payment authorization.
    ///  The recipient has the opportunity
    ///  to correct the payment method information.
    ///
    ///* Each recipient's payment is authorized separately.
    ///  Accounts are charged and payment made
    ///  after all required tabs are completed,
    ///  and all payments in an envelope for all recipients are authorized.
    ///
    ///* Refunds are not supported.
    ///  Conduct refunds or payment changes
    ///  with the payment gateway separately from DocuSign.
    ///
    ///* At this time, DocuSign does not charge a per-transaction fee.
    ///
    ///
    ///[enveloperecipientslist]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipients/list/
    ///[formulatab]:             https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/create/
    ///[ISO4217]:                https://en.wikipedia.org/wiki/ISO_4217
    ///[numbertab]:              https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/create/
    ///[paymentgateways]:        https://support.docusign.com/en/guides/managing-payment-gateways
    ///[paymentguide]:           https://support.docusign.com/en/guides/requesting-payments-along-with-signatures
    ///[paymentlineitem]:        https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/create/
    ///[paymentdetails]:         https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeRecipientTabs/create/
    ///[stripe]:                 https://stripe.com/
    ///
    ///
    ///## Using Custom Tabs in Envelopes and Templates
    ///
    ///Custom Tabs can be added to envelopes and templates
    ///by setting the `customTabId` property
    ///when creating an envelope or template recipient
    ///or when adding a new tab for an existing recipient.
    ///The custom tab must be added as the correct tab type.
    ///For example if the custom tab type is text, it cannot be used as a number tab.
    ///
    ///When the `customTabId` property is set,
    ///the new tab inherits all the custom tab properties.
    ///Required information that is not included in the custom tab,
    ///such as document ID and page ID, must be included when adding the tab.
    ///If the custom tab does not have anchor settings, the X and Y positions must be included.
    ///
    ///After the tab is created,
    ///it is treated as any other tab for updating or deleting.
    ///
    ///## Anchoring Tabs
    ///
    ///The tab anchoring option
    ///allows you to send documents for signature
    ///that do not have a fixed layout or format.
    ///In these documents you might not know
    ///the absolute location of the tabs
    ///when you design your API client application because the tabs must move with text.
    ///As an alternative to sending X and Y coordinates for tabs,
    ///the DocuSign Service can derive an anchor location for the tab
    ///by correlating anchor information to data within the document.
    ///
    ///When the DocuSign Service receives a request that contains tabs
    ///with anchor information,
    ///it searches the document for instances of the `anchorString` property.
    ///When found,
    ///it places a tab of the specified type for the designated recipient.
    ///Tab positions are established by setting offsets for the tab.
    ///
    ///When you apply tabs to the document,
    ///DocuSign does not remove or replace the text in the `anchorString` property. You can hide codified anchors by using the same font color as the background of the document. So the anchor can be used by DocuSign processes and it will not be visible on the document.
    ///
    ///To use an anchoring option:
    ///
    ///1. Identify the location in the document by text string. You can use a pre-existing text string or add a new one.
    ///For best performance DocuSign recommends using single word anchor strings when possible, especially when there are a large number of pages in the envelope.
    ///For example, you might want to add a Sign Here tab to the "Borrower's Signature" lines in a document, but that phrase might occur in places in the document where you don't want to tab to appear. In this case, you could add the text "BorrowerSignHere" in white font color (so that isn't visible in the document) to all the places you want Sign Here tabs to appear and use "BorrowerSignHere" as the anchor string.
    ///1. Reference the anchor through the `anchorString` property of the tab.
    ///1. Determine the offset from the anchor string location to where the tab should be placed.
    ///
    ///Setting a positive value in the `anchorXOffset` property moves the tab right on the page and positive values in the  `anchorYoffset` prove moves the tab down the page. The `anchorUnits` property specifies the units used for the offsets.
    ///For Sign Here and Initial Here tabs the bottom-left of the anchor string is equivalent to position (0,0), and the bottom-left of the tab graphic is placed relative to that.
    ///For all other tabs the bottom-left of the anchor string is equivalent to position (0,0), and the top-left of the tab graphic is placed relative to that.
    ///DocuSign does not currently provide tools to derive the offset values. Determination of the proper offset will likely require some trial-and-error.
    ///
    ///### Rules for working with anchor tags
    ///
    ///When anchor tabs are used, all documents in the envelope are searched for the `anchorString` property.
    ///
    ///* You set the text of the anchor string in the `anchorString` property. DocuSign tabs are created for each instance of the `anchorString` property within the document, so special care must be taken to establish unique anchor strings that do not result in unintentional tabs.
    ///* You cannot use the same anchored tab for different recipients for the same document.
    ///* The DocuSign system cannot search for text that is embedded in an image when checking for anchor strings.
    ///* X or Y offsets supplied for a tab apply to all instances of the tab in the document. To use different offsets at different locations in the document for the same recipient, create multiple, unique anchor tabs.
    ///* If the Y offset value of an anchor string would force a tab outside of the page boundaries, the tag is placed at the page boundary. If the X offset value places a tab outside of the page boundaries, the error message `Invalid_User_Offset` is sent. The error message includes the X offset that resulted in the error.
    ///* The system does not support an anchor string embedded in the form of a PDF X-object in the document.
    ///* The system does not re-flow the text that surrounds the anchor tabs. It is the responsibility of the document author to provide sufficient white space to contain the potential width of the ultimate tab value.
    ///
    ///### Tips and Tricks
    ///
    ///The following are tips for effective use of anchor tags:
    ///* In order to avoid unintentional conflicts between text contained in an `anchorString` property and the text that naturally exists in documents, establish a codified syntax for the anchor string text that is unlikely to appear elsewhere in a document.
    ///* Develop an extensible and consistent syntax that can be used across multiple document types.
    ///* Especially for documents that have variable numbers of tabs or signers, author the source document to include hidden anchor tabs for all potential signers/permutations. Then, control the tabs that are actually placed by including/excluding the anchor tabs in the request. This approach allows a single document to be used for all use cases instead of maintaining separate documents for each scenario.
    ///
    ///## Automatically Populating Tabs
    ///
    ///If you want similar tab types
    ///to automatically populate with the same data,
    ///you must follow these guidelines:
    ///
    ///* Each `tabLabel` entry must have the characters
    ///  `\\*` in front of the label.
    ///  If you omit the `\\*` prefix,
    ///  only the first occurrence of the tab is populated.
    ///
    ///  When automatically populating tabs,
    ///  the `tabLabel` must not contain any spaces.
    ///  In the JSON example below,
    ///  the Text tabs  properties `StudentLastName` and `StudentFirstName`
    ///  will be auto-populated as specified ("Doe" and "John")
    ///  each place they appear throughout the envelope.
    ///
    ///  ```
    ///  "tabs": {
    ///    "textTabs": [
    ///    {
    ///      "tabLabel": "\\*StudentLastName",
    ///      "value": "Doe"
    ///    },
    ///    {
    ///      "tabLabel": "\\*StudentFirstName",
    ///      "value": "John"
    ///    }]
    ///  }
    ///  ```
    ///
    ///* Note that `\\*` matches _anything_.  If you were to add
    ///  another tab with the `tabLabel` set to `\\*Name` to the
    ///  example above, it would end up matching the other two
    ///  labels as well.
    ///
    ///* Each occurrence of the tab must have identical properties.
    ///
    ///  For example, suppose there are two Text tabs in a document,
    ///  each with `tabLabel` set to `Name`.
    ///  If one tab has the `bold` property set to **true**,
    ///  and the other has the `bold` property set to **false**,
    ///  only the first one will be populated.
    ///  In order to automatically populate both occurrences
    ///  of the `Name` Text tabs,
    ///  the `bold` property must be set to the same value for both tabs.
    ///.
    pub fn envelope_recipient_tabs(&self) -> envelope_recipient_tabs::EnvelopeRecipientTabs {
        envelope_recipient_tabs::EnvelopeRecipientTabs::new(self.clone())
    }

    /// The EnvelopeDocumentTabs resource provides methods that enable you to manage tabs in envelopes. For a complete list of options, see the following Properties section.
    pub fn envelope_document_tabs(&self) -> envelope_document_tabs::EnvelopeDocumentTabs {
        envelope_document_tabs::EnvelopeDocumentTabs::new(self.clone())
    }

    /// The EnvelopeDocumentTabs resource provides methods that enable you to manage tabs in a template.
    pub fn template_document_tabs(&self) -> template_document_tabs::TemplateDocumentTabs {
        template_document_tabs::TemplateDocumentTabs::new(self.clone())
    }

    /// The `EnvelopeViews` resource provides methods that return URLs that you can embed into your application to provide access to the DocuSign UI.
    ///
    ///The following Envelope Views are available:
    ///
    ///-  Console View: The authentication view of the DocuSign UI.
    ///-  Correct View: The correction view of the DocuSign UI.
    ///-  Edit View: The editing view of the DocuSign UI.
    ///   **Note**: This provides the same functionality as the sender view.
    ///-  Recipient View: The view the recipient sees in the DocuSign UI.
    ///-  Shared Recipient View: The view a user sees of a shared envelope in the DocuSign UI.
    ///-  Sender View: The sending view of the DocuSign UI.
    pub fn envelope_views(&self) -> envelope_views::EnvelopeViews {
        envelope_views::EnvelopeViews::new(self.clone())
    }

    /// .
    pub fn account_seal_providers(&self) -> account_seal_providers::AccountSealProviders {
        account_seal_providers::AccountSealProviders::new(self.clone())
    }

    /// The Accounts resource provides methods that allow you to create, delete, and manage your accounts.
    pub fn accounts(&self) -> accounts::Accounts {
        accounts::Accounts::new(self.clone())
    }

    /// Standards-Based Signatures (SBS) is the label used to describe DocuSign's suite of signatures that comply with regional and industry regulations, such as the electronic IDentification, Authentication and trust Services (eIDAS) regulation in Europe.
    ///
    ///## Feature Differences When Using Standards-Based Signatures
    ///
    ///Some DocuSign features are not compatible with Standards-Based Signatures, while others work somewhat differently. It's important to understand these key differences.
    ///
    ///### DocuSign Features Not Compatible with SBS
    ///
    ///- Attachment by fax
    ///- Concatenation of signer attachments
    ///- Legacy digital signatures
    ///- Markup
    ///- Notary
    ///
    ///### DocuSign Features That Change with SBS
    ///
    ///The following features work slightly differently with SBS:
    ///
    ///- **Advanced Correct**: After the first signature, adding or deleting a field is not allowed. This behavior occurs because SBS does not allow adding or removing form fields after a digital signature has already been applied to a PDF.
    ///- **Downloading Combined Envelopes**: A combined PDF is not digitally signed. This behavior occurs because concatenating digitally signed PDFs breaks the digital signatures on the PDFs.
    ///- **Freeform Signing**: After someone has signed, allows only signature and initials on free-form. This behavior occurs because if another signer has already signed the document, adding fields other than signature fields will break the existing digital signatures on the document.
    ///- **Watermarks**: All watermarks are added as PDF annotations. This behavior occurs because burning the watermark into the PDF will break the digital signatures on the document.
    ///- **Wet Signing**: Wet-signed documents are added as new documents to envelopes. This behavior results in the uploaded or faxed, physically signed document being added as a new document to the envelope. This new document gets only a platform seal.
    ///
    ///For more information, see [Standards Based Signatures](https://developers.docusign.com/esign-rest-api/guides/standards-based-signatures).
    pub fn account_signature_providers(
        &self,
    ) -> account_signature_providers::AccountSignatureProviders {
        account_signature_providers::AccountSignatureProviders::new(self.clone())
    }

    /// The Billing resource provides methods that allow you to manage the billing plans,associated with an account.
    pub fn billing_plans(&self) -> billing_plans::BillingPlans {
        billing_plans::BillingPlans::new(self.clone())
    }

    /// The Invoices resource provides methods that allow you to manage the invoices for an account.
    pub fn invoices(&self) -> invoices::Invoices {
        invoices::Invoices::new(self.clone())
    }

    /// The Payments resource provides methods that allow you to manage payments for an account.
    ///
    ///These calls can only be used by users with account administrator privileges.
    pub fn payments(&self) -> payments::Payments {
        payments::Payments::new(self.clone())
    }

    /// The CloudStorage resource provides methods that allow you to list files stored on your cloud storage provider.
    pub fn cloud_storage(&self) -> cloud_storage::CloudStorage {
        cloud_storage::CloudStorage::new(self.clone())
    }

    /// The following providers are supported:
    ///
    ///* Google Drive
    ///* Dropbox
    ///* Box
    ///* Evernote
    ///* OneDrive
    ///
    ///To use cloud storage files, you must first give DocuSign access to your cloud storage provider. You can disconnect authorized a cloud storage provider at any time.
    pub fn cloud_storage_providers(&self) -> cloud_storage_providers::CloudStorageProviders {
        cloud_storage_providers::CloudStorageProviders::new(self.clone())
    }

    /// The `ConnectConfigurations` resource enables you to configure the DocuSign Connect service for your account.
    ///
    ///You can use this resource to configure account-level webhooks that send notifications about every envelope sent from your account. You can set account-level webhooks to listen for events for envelopes sent by a specific user on your account, by multiple specific users, or from any of the users on your account. These events will be tracked, and can be delivered to a listening application.
    ///
    ///**Note**: To use DocuSign Connect, it must be enabled in your DocuSign account. It is not enabled by default.
    ///
    ///## Aggregated Messages
    ///
    ///To avoid duplicate simultaneous events, you can configure Connect to aggregate similar events into a single delivery. By default, aggregation is enabled on all Connect configurations. Similar or simultaneous events will be aggregated so your listener doesn't receive extraneous messages.
    ///
    ///For example, when the final recipient signs an envelope,  the system delivers a single, aggregated Connect event, rather than separate Recipient: complete and Envelope: complete messages. This aggregation process ensures that you only receive the minimal viable number of messages about an envelope's life cycle.
    ///
    ///## Send Individual Messages
    ///
    ///When you enable Send Individual Messages (SIM) mode on a Connect configuration, DocuSign will deliver notifications for all envelope events individually. In contrast with aggregated messages, when a final recipient completes an envelope, your listener will receive a single Recipient: complete event followed by a single Envelope: complete event for the final participating party on the agreement.  If you need more granular control over event notifications, you can enable SIM mode in the Admin area of the RADmin console. For more information about SIM mode, see [Using Connect's New Send Individual Messages Feature](https://www.docusign.com/blog/dsdev-connect-send-individual-messages/).
    ///
    ///**Note**: To create an envelope-level webhook instead of using account-level webhooks, use the Envelopes::Create method and add an `eventNotification` object to an envelope object.
    pub fn connect_configurations(&self) -> connect_configurations::ConnectConfigurations {
        connect_configurations::ConnectConfigurations::new(self.clone())
    }

    /// The ConnectEvents resource provides methods that allow you to read, delete, and republish the connect logs associated with an envelope.
    pub fn connect_events(&self) -> connect_events::ConnectEvents {
        connect_events::ConnectEvents::new(self.clone())
    }

    /// The CustomTabs resource provides methods that allow you create and manage custom tabs based on the existing DocuSign tabs.
    ///
    ///You can create a tab with pre-defined properties, such as a text tab with a certain font type and validation pattern. Users can access the custom tabs when sending documents through the DocuSign web application.
    ///
    ///Custom tabs can be created based on the  approve, checkbox, company, date, date signed, decline, email, email address, envelope ID, first name, formula, full name, initial here, last name, list, note, number, radio, sign here, signer attachment, SSN, text, title, and zip tabs.
    pub fn custom_tabs(&self) -> custom_tabs::CustomTabs {
        custom_tabs::CustomTabs::new(self.clone())
    }

    /// The RequestLogs resource provide methods that allow you to retrieve and delete the API request log files.
    ///
    ///The log files contain the API requests associated with your integration. They can aid you in troubleshooting specific issues within an integration, or if DocuSign Support requests an API trace log.
    pub fn request_logs(&self) -> request_logs::RequestLogs {
        request_logs::RequestLogs::new(self.clone())
    }

    /// The Resources resource provides a method which retrieves the base resources that are available.
    pub fn resources(&self) -> resources::Resources {
        resources::Resources::new(self.clone())
    }

    /// The Services resource provides a method that allow you to retrieve the available service versions.
    pub fn services(&self) -> services::Services {
        services::Services::new(self.clone())
    }

    /// The `EnvelopeConsumerDisclosures` resource provides methods that enable you to retrieve the Electronic Record and Signature Disclosure (ERSD) for an envelope recipient. This is the disclosure that displays to each new recipient who is going to sign or add other information, or who is required to view the documents you send to them. The recipient must read and agree to the terms of the disclosure before they can access and take action on the documents you send. The ERSD does not apply to copy-only recipients, but does apply to recipients who must sign or view your documents.
    ///
    ///You can retrieve either the default ERSD that DocuSign provides for U.S.-based transactions, or a custom ERSD.
    ///
    ///## Languages
    ///
    ///You specify the language of the disclosure version that you want to retrieve by using the `langCode` parameter.
    ///
    ///**Important**: The system does not translate the ERSD for you. An account administrator must create a version of the account-level disclosure for each language that your signers use.
    ///
    ///For more information, see [Legal Disclosure](https://support.docusign.com/en/guides/ndse-admin-guide-legal-disclosure).
    pub fn envelope_consumer_disclosures(
        &self,
    ) -> envelope_consumer_disclosures::EnvelopeConsumerDisclosures {
        envelope_consumer_disclosures::EnvelopeConsumerDisclosures::new(self.clone())
    }

    /// <!-- resources aren't rendered the same way
    ///     as other pages. This is a little hack to
    ///     make the headings work better -->
    ///<style>
    ///h1, h2, h3 {
    ///  margin-top: 1em;
    ///}
    ///</style>
    ///
    ///The EnvelopeDocuments resource provides methods
    ///that manage documents in an envelope.
    ///You can:
    ///* add one or more documents to the envelope
    ///* retrieve one or more documents from the envelope
    ///* delete documents from the envelope
    ///
    ///All of the methods in this resource
    ///operate on on an existing envelope.
    ///Before you can add documents
    ///to an envelope,
    ///you must first create it
    ///with the [Envelopes: create][envelopescreate] method.
    ///
    ///
    ///[envelopescreate]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/Envelopes/create/
    ///
    ///.
    pub fn envelope_documents(&self) -> envelope_documents::EnvelopeDocuments {
        envelope_documents::EnvelopeDocuments::new(self.clone())
    }

    /// The EnvelopeEmailSettings provide methods that allow you to manage the email override settings for an envelope.
    ///
    ///Email override settings change the reply to email address, name, or the BCC for email archive information, for the envelope. Note that changing email settings will only affect email communications that occur after the addition was made.
    ///
    ///The BCC Email address feature is designed to provide a copy of all email communications for external archiving purposes. DocuSign recommends that envelopes sent using the BCC for Email Archive feature, including the BCC Email Override option, include additional signer authentication options. To send a copy of the envelope to a recipient who does not need to sign, use a Carbon Copies or Certified Deliveries Recipient Type.
    pub fn envelope_email_settings(&self) -> envelope_email_settings::EnvelopeEmailSettings {
        envelope_email_settings::EnvelopeEmailSettings::new(self.clone())
    }

    /// The Envelope resource provides methods that allow you to manipulate and monitor envelopes.
    ///
    ///Once you have authenticated the user you can use the Envelopes: createEnvelope method to create an envelope. You can call the EnvelopeDocuments: update or EnvelopeDocuments: updateList method to add additional documents.
    ///
    ///Setting the `status` property on the envelope to `sent` allows you to send it or `created` to save it as a draft.
    ///
    ///You can receive envelope event notifications by setting the `eventNotification` properties. When the envelope or recipient status changes to one of the specified status codes, a notification is sent to a URL that you specify.
    ///
    ///If you have an envelope that you have previously saved, you can modify the subject and message, send it, void it, or place it in the purge queue using the Envelope: update method.
    ///
    ///In addition to receiving notifications you can monitor the status of the envelopes using the following methods:
    ///* Envelope: getEnvelope - To get the status of a envelope.
    ///* Envelope: listStatus - To get the envelope status for a set of envelopes.
    ///* Envelope: listStatusChanges - To get status changes information for one or more envelopes.
    ///
    ///If you need to delete a page from a document in an envelope, use the Envelope: deleteDocumentPage method.
    ///
    ///The resource also includes a number of methods that allow you to retrieve and set the initials and signature for certain types of recipients on the document.
    pub fn envelopes(&self) -> envelopes::Envelopes {
        envelopes::Envelopes::new(self.clone())
    }

    /// The EnvelopeTemplates resource provides methods that allow you to add and delete templates on envelopes and documents.
    pub fn envelope_templates(&self) -> envelope_templates::EnvelopeTemplates {
        envelope_templates::EnvelopeTemplates::new(self.clone())
    }

    /// The Folders resource provides methods that allow you to view contents of folders on the account and move envelopes between folders.
    pub fn folders(&self) -> folders::Folders {
        folders::Folders::new(self.clone())
    }

    /// For the custom groups you define for your account, you can assign brands to specify the ones that group members can use. Group members can use the available brands when they send envelopes or create templates. For more information, see [Assign Brands to Groups](https://support.docusign.com/en/guides/ndse-admin-guide-assign-brands-to-groups).
    pub fn group_brands(&self) -> group_brands::GroupBrands {
        group_brands::GroupBrands::new(self.clone())
    }

    /// The Groups resource provides methods that allow you to manage groups for the account.
    ///
    ///Groups can be used to help manage users by associating users with a group. A group can be associated with a Permission Profile, which sets the user permissions for users in that group without having to set the `userSettings` property for each user. You are not required to set Permission Profiles for a group, but this makes it easier to manage user permissions for a large number of users. Groups can also be used with template sharing to limit user access to templates.
    pub fn groups(&self) -> groups::Groups {
        groups::Groups::new(self.clone())
    }

    /// The GroupUsers resource provides methods that allow you to manage the users in a group.
    pub fn group_users(&self) -> group_users::GroupUsers {
        group_users::GroupUsers::new(self.clone())
    }

    /// The SigningGroups resource provides methods that allow you manage signing groups.
    ///
    ///Signing Groups allow you to create a group of people to which an envelope is sent. Any member of that group can open an envelope and sign the documents in the envelope with their own signature, even though a signature field was not directly assigned to them. When the Signing Group option is used, group members that open and sign the envelope are tracked in the envelope history and certificate.
    ///
    ///When one group member opens the envelope, it is temporarily locked and if other members try to open the envelope they will see a message saying the envelope is currently opened. If the group member exits the envelope without finishing the lock expires, allowing other group members to open and complete the envelope.
    ///
    ///When the envelope is complete, all members of the group will receive a completed notification and can access the completed envelope.
    ///The envelope history and Certificate of Completion will show that the envelope was sent to a signing group and record which members viewed and signed the envelope.
    ///
    ///An account can have a maximum of 50 signing groups. Each signing group can have a maximum of 50 group members.
    ///
    ///The Signing Groups feature is only supported in certain DocuSign Enterprise and System Automated Premium plans. Your account might not support this option. To access this functionality, contact your Account Manager or DocuSign Support (support@docusign.com) for assistance.
    ///
    ///For more information, see [Signing Groups](https://support.docusign.com/en/guides/ndse-user-guide-signing-groups).
    pub fn signing_groups(&self) -> signing_groups::SigningGroups {
        signing_groups::SigningGroups::new(self.clone())
    }

    /// The SigningGroupUsers resource provides methods that allow you to manage users in Signing Groups.
    pub fn signing_group_users(&self) -> signing_group_users::SigningGroupUsers {
        signing_group_users::SigningGroupUsers::new(self.clone())
    }

    /// The TemplateRecipients resource allows you manage the recipients of an template.
    ///
    ///The exact parameters associated with a recipient depend on the recipient type. There are seven recipient types: Agents, Carbon Copies, Certified Deliveries, Editors, In Person Signers, Intermediaries, and Signers.
    ///
    ///Not all recipients are are available to all account types, review you account plan to determine which recipient types are available to you. If you are working in the Demo environment, all recipient types are available.
    ///
    ///Each recipient type is described below:
    ///
    ///[Agents](#agents): This recipient can add name and email information for recipients that appear after the recipient in routing order.
    ///
    ///[Carbon Copies](#carboncopies): Use this action if the recipient should get a copy of the template, but the recipient does not need to sign, initial, date or add information to any of the documents. This type of recipient can be placed in any order in the recipient list. The recipient receives a copy of the template when the template reaches the recipient's order in the process flow and when the template is completed.
    ///
    ///[Certified Deliveries](#certifiedDeliveries): Use this action if the recipient must receive the completed documents for the template to be completed, but the recipient does not need to sign, initial, date or add information to any of the documents.
    ///
    ///[Editors](#editors): This recipient has the same management and access rights for the template as the sender and can make changes to the template as if they were using the Advanced Correct feature. This recipient can add name and email information, add or change the routing order and set authentication options for the remaining recipients. Additionally, this recipient can edit signature/initial tabs and data fields for the remaining recipients. The recipient must have a DocuSign account to be an editor.
    ///
    ///[In Person Signers](#inPerson): Use this action if the signer is in the same physical location as a DocuSign user who will act as a Signing Host for the transaction. The recipient added is the Signing Host and new separate Signer Name field appears after Sign in person is selected.
    ///
    ///[Intermediaries](#intermediaries): This recipient can, but is not required to, add name and email information for recipients at the same or subsequent level in the routing order (until subsequent Agents, Editors or Intermediaries recipient types are added).
    ///
    ///[Signers](#signers): Use this action if your recipient must sign, initial, date or add data to form fields on the documents in the template.
    ///
    ///### Core JSON Layout
    ///
    ///The following shows the core JSON layout for a recipient.
    ///
    ///```
    ///"email": "email.name@company.com",
    ///  "name": "recipient name",
    ///  "accessCode": "",
    ///  "addAccessCodeToEmail": false,
    ///  "clientUserIs": null,
    ///  "embeddedRecipientStartURL": "string",
    ///  "customFields": {
    ///    "sample string 1",
    ///    "sample string 2"
    ///  },
    ///  "emailNotification"{
    ///    "emailBody":"email text",
    ///    "emailSubject":"Subject text",
    ///    "supportedLanguage":"en",
    ///  },
    ///  "excludedDocuments": ["2", "4"],
    ///  "idCheckConfigurationName": null,
    ///  "idCheckInformationInput": {
    ///    "addressInformationInput": {
    ///      "addressInformation": {
    ///        "street1": "sample string 1",
    ///        "street2": "sample string 2",
    ///        "city": "sample string 3",
    ///        "state": "sample string 4",
    ///        "zip": "sample string 5",
    ///        "zipPlus4": "sample string 6"
    ///      },
    ///      "displayLevelCode": "sample string 1",
    ///      "receiveInResponse": "sample string 2"
    ///    },
    ///    "dobInformationInput": {
    ///      "dateOfBirth": "sample string 1",
    ///      "displayLevelCode": "sample string 2",
    ///      "receiveInResponse": "sample string 3"
    ///    },
    ///    "ssn4InformationInput": {
    ///      "ssn4": "sample string 1",
    ///      "displayLevelCode": "sample string 2",
    ///      "receiveInResponse": "sample string 3"
    ///    },
    ///    "ssn9InformationInput": {
    ///      "ssn9": "sample string 1",
    ///      "displayLevelCode": "sample string 2"
    ///    }
    ///  },
    ///  "inheritEmailNotificationConfiguration": false,
    ///  "note": "",
    ///  "phoneAuthentication": {
    ///    "recipMayProvideNumber": "sample string 1",
    ///    "validateRecipProvidedNumber": "sample string 2",
    ///    "recordVoicePrint": "sample string 3",
    ///    "senderProvidedNumbers": [
    ///      "sample string 1",
    ///      "sample string 2"
    ///    ]
    ///  },
    ///  "recipientAttachment": null,
    ///  "recipientCaptiveInfo": null,
    ///  "recipientId": "1",
    ///  "requireIdLookup": false,
    ///  "roleName": "",
    ///  "routingOrder": 1,
    ///  "samlAuthentication": {
    ///    "samlAssertionAttributes": [
    ///      {
    ///        "name": "string",
    ///        "value": "string"
    ///      },
    ///      {
    ///        "name": "string",
    ///        "value": "string"
    ///      }
    ///    ]
    ///  },
    ///  "smsAuthentication": {
    ///    "senderProvidedNumbers":[
    ///      "sample string 1",
    ///      "sample string 2"
    ///    ]
    ///  },
    ///  "socialAuthentications": null,
    ///  "templateAccessCodeRequired": false,
    ///  "templateLocked": false,
    ///  "templateRequired": false,
    ///...
    ///```
    ///
    ///### Core Recipient Parameters
    ///
    ///The following table contains the descriptions for the core properties for a recipient.
    ///
    ///| Name | Required? | Schema Type | Description |
    ///| --- | --- | --- | --- |
    ///| email | Yes | Email | Email of the recipient. Notification will be sent to this email id.<br/>Maximum Length: 100 characters. |
    ///| name | Yes | String | Full legal name of the recipient.<br/>Maximum Length: 100 characters. |
    ///| accessCode | No | String | This optional element specifies the access code a recipient has to enter to validate the identity.<br/>Maximum Length: 50 characters. |
    ///| addAccessCodeToEmail | No | Boolean | This optional attribute indicates that the access code is added to the email sent to the recipient; this nullifies the Security measure of Access Code on the recipient. |
    ///| clientUserId | No | String | This specifies whether the recipient is embedded or remote.<br/><br/>If the `clientUserId` property is not null then the recipient is embedded. Note that if the `ClientUserId` property is set and either `SignerMustHaveAccount` or `SignerMustLoginToSign` property of the account settings is set to  **true**, an error is generated on sending. |
    ///| embeddedRecipientStartURL | No | String | This is a sender provided valid URL string for redirecting an embedded recipient. When using this option, the embedded recipient still receives an email from DocuSign, just as a remote recipient would, but when the document link in the email is clicked the recipient is redirected, through DocuSign, to this URL to complete their actions. When routing to the URL, it is up to the sender's system (the server responding to the URL) to then request a recipient token to launch a signing session.<br/><br/>If the value `SIGN_AT_DOCUSIGN` is used for this node, the recipient is directed to an embedded signing or viewing process directly at DocuSign. The signing or viewing action is initiated by the DocuSign system and the transaction activity and Certificate of Completion records will reflect this. In all other ways the process is identical to an embedded signing or viewing operation that would be launched by any partner.<br/><br/>It is important to remember that in a typical embedded workflow the authentication of an embedded recipient is the responsibility of the sending application and DocuSign expects that senders will follow their own process for establishing the recipient's identity. In this workflow the recipient goes through the sending application before the embedded signing or viewing process in initiated. However, when the sending application sets  the `EmbeddedRecipientStartURL` property to `SIGN_AT_DOCUSIGN`, the recipient goes directly to the embedded signing or viewing process bypassing the sending application and any authentication steps the sending application would use. In this case, DocuSign recommends that one of the normal DocuSign authentication features (Access Code, Phone Authentication, SMS Authentication, etc.) be used to verify the identity of the recipient.<br/><br>If the `clientUserId` property is NOT set and the `embeddedRecipientStartURL` property is set, DocuSign ignores the redirect URL and launch the standard signing process for the email recipient. Information can be appended to the `embeddedRecipientStartURL` property using merge fields. The available merge fields items are: templateId, recipientId, recipientName, recipientEmail, and customFields. The customFields must be part of the recipient or template. The merge fields are enclosed in double brackets.<br/><br/>_Example_:<br/>`http://senderHost/[[mergeField1]]/ beginSigningSession? [[mergeField2]]&[[mergeField3]]` |
    ///| customFields | No | customField |An optional array of strings that allows the sender to provide custom data about the recipient. This information is returned in the template status but otherwise not used by DocuSign. String `customField` properties have a maximum length of 100 characters. |
    ///| emailNotification | No | emailNotification | An optional complex type that has information for setting the language for the recipient's email information. It is composed of three elements:<br/><br/>*emailBody*: a string with the email message sent to the recipient.<br/>Maximum Length: 10000 characters.<br/><br/>*emailSubject*: a string with the subject of the email sent to the recipient.<br/>Maximum Length: 100 characters.<br/><br/>*supportedLanguage*: The simple type enumeration of the language used. The supported languages, with the language value shown in parenthesis, are: Arabic (ar), Bahasa Indonesia (id), Bahasa Melayu (ms) Bulgarian (bg), Czech (cs), Chinese Simplified (zh_CN), Chinese Traditional (zh_TW), Croatian (hr), Danish (da), Dutch (nl), English US (en), English UK (en_GB), Estonian (et), Farsi (fa), Finnish (fi), French (fr), French Canada (fr_CA), German (de), Greek (el), Hebrew (he), Hindi (hi), Hungarian (hu), Italian (it), Japanese (ja), Korean (ko), Latvian (lv), Lithuanian (lt), Norwegian (no), Polish (pl), Portuguese (pt), Portuguese Brazil (pt_BR), Romanian (ro),Russian (ru), Serbian (sr), Slovak (sk), Slovenian (sl), Spanish (es),Spanish Latin America (es_MX), Swedish (sv), Thai (th), Turkish (tr), Ukrainian (uk) and Vietnamese (vi).<br/><br/>**IMPORTANT**: If this is enabled for one recipient, it overrides the Template Subject and `EmailBlurb` property settings. Also, you must set the  `emailNotification` property for all recipients. |
    ///| excludedDocuments | No | Array of Strings | Specifies the documents that are not visible to this recipient. Document Visibility must be enabled for the account and the enforceSignerVisibility property must be set to true for the template to use this.<br/><br/>When the enforceSignerVisibility property is set to **true**, documents with tabs can only be viewed by signers that have a tab on that document. Recipients that have an administrative role (Agent, Editor, or Intermediaries) or informational role (Certified Deliveries or Carbon Copies) can always see all the documents in an template, unless they are specifically excluded using this setting when an template is sent. Documents that do not have tabs are always visible to all recipients, unless they are specifically excluded using this setting when an template is sent. |
    ///| idCheckConfigurationName | No | String |Specifies authentication check by name. The names used here must be the same as the authentication type names used by the account (these name can also be found in the web console sending interface in the Identify list for a recipient). This overrides any default authentication setting.<br/><br/>_Example_:<br/> Your account has ID Check and SMS Authentication available and in the web console Identify list these appear as 'ID Check $' and 'SMS Auth $'. To use ID check in an template, the `idCheckConfigurationName` property must be  set to `ID Check $`. To use SMS, it must be set to `SMS Auth $` and you must add phone number information to the `smsAuthentication` node.|
    ///| iDCheckInformationInput | No | IdCheckInformationInput | This complex element contains input information related to a recipient ID check. It can include the following information.<br/><br/>*addressInformationInput*: Used to set recipient address information and consists of:<br/><br/>*addressInformation*: consists of six elements, with street2 and zipPlus4 being optional. The elements are: street1, street2, city, state, zip, zipPlus4\. The maximum number of characters in each element are: street1/street2 = 150 characters, city = 50 characters, state = 2 characters, and zip/zipPlus4 = 20 characters.<br/><br/>displayLevelCode: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*dobInformationInput*: Used to set recipient date of birth information and consists of:<br/><br/>*dateOfBirth*: Specifies the recipient's date, month and year of birth.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*ssn4InformationInput*: Used to set the last four digits of the recipient's SSN information and consists of:<br/><br/>*ssn4*: Specifies the last four digits of the recipient's SSN.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay.<br/><br/>*receiveInResponse*: A Boolean element that specifies if the information needs to be returned in the response.<br/><br/>*ssn9InformationInput*: Used to set the recipient's SSN information. Note that the ssn9 information can never be returned in the response. The ssn9 input consists of:<br/><br/><br/><br/>*ssn9*: Specifies the recipient's SSN.<br/><br/>*displayLevelCode*: Specifies the display level for the recipient. Values are: ReadOnly, Editable, or DoNotDisplay. |
    ///| inheritEmailNotificationConfiguration | No | Boolean | Optional element. If true and the template recipient creates a DocuSign account after signing, the Manage Account Email Notification settings are used as the default settings for the recipient's account. |
    ///| note | No | String | A note that is unique to this recipient. This note is sent to the recipient via the signing email. The note displays in the signing UI near the upper left corner of the document on the signing screen.<br/>Maximum Length: 1000 characters. |
    ///| phoneAuthentication | No | RecipientPhoneAuthentication | Optional element. Contains the elements: <br/><br/> *recipMayProvideNumber*:Boolean. When set to **true** thenrecipient can use whatever phone number they choose to.<br/><br/> *senderProvidedNumbers*: ArrayOfString. A list of phone numbers the recipient can use. <br/><br/>*recordVoicePrint* - Reserved <br/><br/>*validateRecipProvidedNumber* - Reserved| |
    ///| recipientAttachment | No | Attachment | Reserved |
    ///| recipientId | No | String | Unique for the recipient. It is used by the tab element to indicate which recipient is to sign the Document. |
    ///| requireIdLookup | No | Boolean | When set to **true**, the recipient is required to use the specified ID check method (including Phone and SMS authentication) to validate their identity. |
    ///| roleName | No* | String | Optional element. Specifies the role name associated with the recipient.<br/><br/>This is required when working with template recipients. |
    ///| routingOrder | Yes | String | This element specifies the routing order of the recipient in the template. |
    ///| samlAuthentication | No | samlAssertionAttributes | Optional element, account must be set up to use SSO to use this. Contains the name/value pair information for the SAML assertion attributes:<br/><br/>*name*: The name of the SAML assertion attribute.<br/><br/>*value*: The value associated with the named SAML assertion attribute. |
    ///| smsAuthentication | No | senderProvidedNumbers | Optional element. Contains the element:<br/><br/>*senderProvidedNumbers*: Array that contains a list of phone numbers the recipient can use for SMS text authentication. |
    ///| socialAuthentications | No | Boolean | Lists the social ID type that can be used for recipient authentication. |
    ///| templateAccessCodeRequired | No | Boolean | Optional element. Used only when working with template recipients. When set to **true** and the `TemplateLocked` parameter is set to **true**, the sender must enter an access code. |
    ///| templateLocked | No | Boolean | Optional element. Used only when working with template recipients. When set to **true**, the sender cannot change any attributes of the recipient. |
    ///| templateRequired | No | Boolean | Optional element. Used only when working with template recipients. When set to **true**,  the sender may not remove the recipient. |
    ///
    ///## <a name="agents"></a> Agents Recipient
    ///
    ///This recipient can add name and email information for recipients that appear after the recipient in routing order.
    ///
    ///#### Example Agents layout
    ///
    ///```
    ///"agents": [{
    /// <core parameters>
    ///  "canEditRecipientEmails": false,
    ///  "canEditRecipientNames": false
    ///}],
    ///```
    ///
    ///The additional parameters for Agents recipient are shown below:
    ///
    ///| Name | Required? | Schema Type | Description |
    ///| --- | --- | --- | --- |
    ///| canEditRecipientEmails | No | Boolean | Optional element. When set to **true**, the Agents Recipient associated with this Recipient can change the Recipient's pre-populated Email address. This element is only active if enabled for the account. |
    ///| canEditRecipientNames | No | Boolean | Optional element. When set to **true**, the Agents Recipient associated with this recipient can change the recipient's pre-populated name (`UserName`). This element is only active if enabled for the account. |
    ///
    ///## <a name="carbonCopies"></a>Carbon Copies Recipient
    ///
    ///Use this type if the recipient should get a copy of the template, but the recipient does not need to sign, initial, date, or add information to any of the documents. This type of recipient can be placed in any order in the recipient list. The recipient receives a copy of the template when the template reaches the recipient's order in the process flow and when the template is completed.
    ///
    ///#### Example Carbon Copies layout
    ///
    ///```
    ///"carbonCopies": [{
    /// <core parameters>
    ///```
    ///
    ///The Carbon Copies recipient uses only the core parameters.
    ///
    ///## <a name="certifiedDeliveries"></a>Certified Deliveries Recipient
    ///
    ///Use this action if the recipient must receive the completed documents for the template to be completed, but the recipient does not need to sign, initial, date, or add information to any of the documents.
    ///
    ///#### Example Certified Deliveries layout
    ///
    ///```
    ///"certifiedDeliveries": [{
    ///<core parameters>
    ///}],
    ///```
    ///The Certified Deliveries recipient uses only the core parameters.
    ///
    ///## <a name="editors"></a>Editors Recipient
    ///
    ///This recipient has the same management and access rights for the template as the sender and can make changes to the template as if they were using the Advanced Correct feature. This recipient can add name and email information, add or change the routing order and set authentication options for the remaining recipients. Additionally, this recipient can edit signature/initial tabs and data fields for the remaining recipients. The recipient must have a DocuSign account to be an editor.
    ///
    ///#### Example Editors layout
    ///
    ///```
    ///"editors": [{
    /// <core parameters>
    ///  "canEditRecipientEmails": false,
    ///  "canEditRecipientNames": false
    ///}],
    ///```
    ///
    ///The additional parameters for Editors recipient are shown below:
    ///
    ///| Name | Required? | Schema Type | Description |
    ///| --- | --- | --- | --- |
    ///| canEditRecipientEmails | No | Boolean | Optional element. When set to **true**, the Editors Recipient associated with this Recipient can change the Recipient's pre-populated Email address. This element is only active if enabled for the account. |
    ///| canEditRecipientNames | No | Boolean | Optional element. When set to **true**, the Editors Recipient associated with this recipient can change the recipient's pre-populated name (`UserName`). This element is only active if enabled for the account. |
    ///
    ///## <a name="inPerson"></a>In Person Signers Recipient
    ///
    ///Use this type if the signer is in the same physical location as a DocuSign user who will act as a Signing Host for the transaction. The recipient added is the Signing Host and new separate Signer Name field appears after Sign in person is selected.
    ///
    ///#### Example In Person Signers layout
    ///
    ///```
    ///"inPersonSigners": [{
    ///  "hostEmail": "signing.host@company.com",
    ///  "hostName": "Mike Host",
    /// <core parameters>
    ///  "autoNavigation": false,
    ///  "defaultRecipient": false,
    ///  "signInEachLocation": false,
    ///  "signatureInfo": null,
    ///  "signerEmail": "signer.name@company.com",
    ///  "signerName": "MC Clap Your Hands",
    ///  "tabs": {
    ///    "approveTabs": null,
    ///    "checkboxTabs": null,
    ///    "companyTabs": null,
    ///    "dateSignedTabs": null,
    ///    "dateTabs": null,
    ///    "declineTabs": null,
    ///    "emailTabs": null,
    ///    "templateIdTabs": null,
    ///    "fullNameTabs": null,
    ///    "initialHereTabs": null,
    ///    "listTabs": null,
    ///    "noteTabs": null,
    ///    "numberTabs": null,
    ///    "radioGroupTabs": null,
    ///    "signHereTabs": [{
    ///    "signerAttachmentTabs": null,
    ///    "ssnTabs": null,
    ///    "textTabs": null,
    ///    "titleTabs": null,
    ///    "zipTabs": null
    ///  }
    ///}],
    ///```
    ///
    ///The additional and changed parameters for In Person Signers recipient are shown below:
    ///
    ///| Name | Required? | Schema Type | Description |
    ///| --- | --- | --- | --- |
    ///| hostEmail | Yes | Email | Required element for In Person Signers recipient Type.<br/>Maximum Length: 100 characters.<br/><br/>Specifies the email for the signing host. |
    ///| hostName | Yes | String | Required element for In Person Signers recipient Type.<br/>Maximum Length: 100 characters.<br/><br/>Specifies the email for the signing host.|
    ///| autoNavigation | No | Boolean | Specifies whether auto navigation is set for the recipient.|
    ///| defaultRecipient | No | Boolean | When set to **true**, this is the default recipient for the template. This option is used with the CreateTemplateFromTemplatesAndForms method. |
    ///| signInEachLocation | No | Boolean | When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab (instead of adopting a signature/initial style or only drawing a signature/initial once). |
    ///| signatureInfo | No | String | Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Allows the sender to pre-specify the signature name, signature initials, and signature font used in the signature stamp for the recipient. |
    ///| signerEmail | No | String | Optional element. The email address for an InPersonSigner recipient Type.<br/>Maximum Length: 100 characters. |
    ///| signerName | Yes | String | Required element with recipient type In Person Signers.<br/>Maximum Length: 100 characters.<br/><br/>The full legal name of a signer for the template. |
    ///| tabs | No | Tab | Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Specifies the Tabs associated with the recipient. See the See the the [EnvelopeRecipientTabs resource](https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/enveloperecipienttabs/)  for more information about tabs. for more information about tabs. |
    ///
    ///## <a name="intermediaries"></a>Intermediaries Recipient
    ///
    ///This recipient can, but is not required to, add name and email information for recipients at the same or subsequent level in the routing order (until subsequent Agents, Editors or Intermediaries recipient types are added).
    ///
    ///#### Example Intermediaries layout
    ///
    ///```
    ///"intermediaries": [{
    ///<core parameters>
    ///  "canEditRecipientEmails": false,
    ///  "canEditRecipientNames": false
    ///}],
    ///```
    ///
    ///The parameters for Intermediaries recipient are shown below:
    ///
    ///| Name | Required? | Schema Type | Description |
    ///| --- | --- | --- | --- |
    ///| canEditRecipientEmails | No | Boolean | Optional element. When set to **true**, the Agents Recipient associated with this Recipient can change the Recipient's pre-populated Email address. This element is only active if enabled for the account. |
    ///| canEditRecipientNames | No | Boolean | Optional element. When set to **true**, the Agents Recipient associated with this recipient can change the recipient's pre-populated name (`UserName`). This element is only active if enabled for the account. |
    ///
    ///## <a name="signers"></a>Signers Recipient
    ///
    ///Use this action if your recipient must sign, initial, date, or add data to form fields on the documents in the template.
    ///
    ///#### Example Signers layout
    ///
    ///```
    ///"Signers": [{
    ///<core paramters>
    ///  "autoNavigation": false,
    ///  "defaultRecipient": false,
    ///  "signInEachLocation": false,
    ///  "signatureInfo": null,
    ///  "tabs": {
    ///    "approveTabs": null,
    ///    "checkboxTabs": null,
    ///    "companyTabs": null,
    ///    "dateSignedTabs": null,
    ///    "dateTabs": null,
    ///    "declineTabs": null,
    ///    "emailTabs": null,
    ///    "templateIdTabs": null,
    ///    "fullNameTabs": null,
    ///    "initialHereTabs": null,
    ///    "listTabs": null,
    ///    "noteTabs": null,
    ///    "numberTabs": null,
    ///    "radioGroupTabs": null,
    ///    "signHereTabs": [{
    ///    "signerAttachmentTabs": null,
    ///    "ssnTabs": null,
    ///    "textTabs": null,
    ///    "titleTabs": null,
    ///    "zipTabs": null
    ///  }
    ///  "deliveryMethod":"",
    ///  "deliveredDateTime":"String Content",
    ///  "signedDateTime":"String Content",
    ///  "offlineAttributes":{
    ///    "deviceName":"String Content",
    ///    "deviceModel":"String Content",
    ///    "gpsLatitude":"String Content",
    ///    "gpsLongitude":"String Content",
    ///    "accountEsignId":"String Content"
    ///  }
    ///}],
    ///```
    ///
    ///The additional parameters for Signers recipient are shown below:
    ///
    ///| Name | Required? | Schema Type | Description |
    ///| --- | --- | --- | --- |
    ///| autoNavigation | No | Boolean | Specifies whether auto navigation is set for the recipient.|
    ///| defaultRecipient | No | Boolean | When set to **true**, this is the default recipient for the template. This option is used with the CreateTemplateFromTemplatesAndForms method. |
    ///| signInEachLocation | No | Boolean | When set to **true** and the feature is enabled in the sender's account, the signing recipient is required to draw signatures and initials at each signature/initial tab (instead of adopting a signature/initial style or only drawing a signature/initial once). |
    ///| signatureInfo | No | String | Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Allows the sender to pre-specify the signature name, signature initials, and signature font used in the signature stamp for the recipient. |
    ///| signerEmail | No | String | Optional element. The email address for an InPersonSigner recipient Type.<br/>Maximum Length: 100 characters. |
    ///| signerName | Yes | String | Required element with recipient type In Person Signers.<br/>Maximum Length: 100 characters.<br/><br/>The full legal name of a signer for the template. |
    ///| tabs | No | Tab | Optional element only used with recipient types In Person Signers and Signers.<br/><br/>Specifies the Tabs associated with the recipient. See the See the [EnvelopeRecipientTabs resource](https://developers.docusign.com/docs/esign-rest-api/reference/envelopes/enveloperecipienttabs/)  for more information about tabs. section for more information about tabs. |
    ///| deliveryMethod | No | String | Reserved: For DocuSign use only.|
    ///| deliveredDateTime | No | DateTime | Reserved: For DocuSign use only. |
    ///| signedDateTime | No | DateTime | Reserved: For DocuSign use only. |
    ///| offlineAttributes | No | &nbsp; | Reserved: For DocuSign use only.|
    ///.
    pub fn template_recipients(&self) -> template_recipients::TemplateRecipients {
        template_recipients::TemplateRecipients::new(self.clone())
    }

    /// The TemplateBulkRecipients resource provide methods that allow you manage the bulk recipient file for an template.
    ///
    ///The bulk recipient CSV (Comma Separated Value) file contains the list of recipient names and email addresses that you can add to an template to send the same document to a large number of recipients.
    ///
    ///The required and optional information that can be included the file is described in the BulkEnvelope: updateRecipients method.
    pub fn template_bulk_recipients(&self) -> template_bulk_recipients::TemplateBulkRecipients {
        template_bulk_recipients::TemplateBulkRecipients::new(self.clone())
    }

    /// The TemplateCustomFields resource provides methods that allow you manage custom fields in an template.
    ///
    ///Custom fields can be used in the templates for your account to record information about the template, help search for templates and track information. The template custom fields are shown in the Template Settings section when a user is creating an template in the DocuSign member console. The template custom fields are not seen by the template recipients.
    ///
    ///There are two types of custom fields:
    ///
    ///- `text`: Enables the sender to enter the value for the field.
    ///- `list`: Enables the sender to select the value of the field from a predetermined list.
    pub fn template_custom_fields(&self) -> template_custom_fields::TemplateCustomFields {
        template_custom_fields::TemplateCustomFields::new(self.clone())
    }

    /// The TemplateDocumentFields resource provides methods that allow you to manage custom fields on a document.
    ///
    ///You can create custom versions of standard fields that combine of field properties, such as font type or size, or a validation setting.
    ///
    ///Note: Some advanced features and options are supported only in certain DocuSign plans. Your account plan might not support some options discussed in this help topic. For more information about which options are available for your account, check your account plan or contact your Account Manager.
    pub fn template_document_fields(&self) -> template_document_fields::TemplateDocumentFields {
        template_document_fields::TemplateDocumentFields::new(self.clone())
    }

    /// <!-- resources aren't rendered the same way
    ///     as other pages. This is a little hack to
    ///     make the headings work better -->
    ///<style>
    ///h1, h2, h3 {
    ///  margin-top: 1em;
    ///}
    ///</style>
    ///
    ///The TemplateDocuments resource provides methods
    ///that manage documents in a template.
    ///You can:
    ///* Add one or more documents to the template
    ///* Retrieve one or more documents from the template
    ///* Delete documents from the template
    ///
    ///All of the methods associated with this resource
    ///operate on an existing template.
    ///Before you can add documents
    ///to a template,
    ///you must first create it
    ///with the [Templates:: Create][templatescreate] method.
    ///
    ///[templatescreate]: https://developers.docusign.com/docs/esign-rest-api/reference/Templates/Templates/create/
    ///.
    pub fn template_documents(&self) -> template_documents::TemplateDocuments {
        template_documents::TemplateDocuments::new(self.clone())
    }

    /// The TemplateLocks resource provides methods that allow you to
    ///manage locks on a template.
    ///
    ///To prevent users from changing a template while another user is
    ///modifying it, you can lock the template and set the time until
    ///the lock expires.
    ///
    ///For example, you would use the following flow:
    ///
    ///1. Lock the template.
    ///2. Make changes to template.
    ///3. Delete the template lock and save the changes. If the template has a password, you must supply the template password to save the changes.
    ///
    ///**Note**: To use template locks, the user must have envelope locking capability enabled.
    pub fn template_locks(&self) -> template_locks::TemplateLocks {
        template_locks::TemplateLocks::new(self.clone())
    }

    /// The Template resource provides methods that allow you to manipulate and monitor templates.
    ///
    ///Once you have authenticated the user you can use the Templates: createTemplate method to create a template. You can call the TemplateDocuments: update or TemplateDocuments: updateList method to add more documents.
    ///
    ///If you have a template that you have previously saved, you can modify the subject and message, send it, void it, or purge it from the DocuSign system using the Template: update method.
    ///
    ///In addition to receiving notifications, you can monitor the status of the templates using the following methods:
    ///
    ///* Template: getTemplate - Gets the status of a template.
    ///* Template: listStatus - Gets the status for a set of templates.
    ///* Template: listStatusChanges - Gets status change information for one or more templates.
    ///
    ///If you need to delete a page from a document in a template, use the Template: deleteDocumentPage method.
    ///
    ///The resource also includes a number of methods that allow you to retrieve and set the initials and signature for certain types of recipients on the document.
    pub fn templates(&self) -> templates::Templates {
        templates::Templates::new(self.clone())
    }

    /// <!-- resources aren't rendered the same way
    ///     as other pages. This is a little hack to
    ///     make the headings work better -->
    ///<style>
    ///h1, h2, h3 {
    ///  margin-top: 1em;
    ///}
    ///</style>
    ///
    ///The TemplateRecipientTabs resource provides methods that let you
    ///add,
    ///update,
    ///and delete tabs
    ///from an envelope.
    ///Tabs are associated with a specific recipient
    ///in an envelope
    ///and are only used by the recipient types
    ///In Person Signers and Signers.
    ///
    ///
    ///## Tab Types
    ///
    ///This table lists the available tab types.
    ///
    ///<br>
    ///
    ///
    ///| Tab Type              | Description |
    ///| :-------              | :---------- |
    ///| Approve Tab           | Place this tab on the document if you want the recipient to approve documents in an envelope without placing a signature or initials on the document. If the recipient clicks the Approve tab during the signing process, the recipient is considered to have signed the document. No information is shown on the document for the approval, but it is recorded as a signature in the envelope history. |
    ///| Checkbox Tab          | Place this tab on the document in a location where the recipient can select a yes/no (on/off) type option. |
    ///| Company Tab           | Place this tab on the document where you want the recipient's company name to appear. |
    ///| Date Signed Tab       | Place this tab on the document where you want the date the recipient signed the document to appear. |
    ///| Date Tab              | Place this tab on the document where you want the recipient to enter a date. Date tabs are single-line fields that allow date information to be entered in any format. The tooltip for this tab recommends entering the date as MM/DD/YYYY, but this is not enforced. The format entered by the signer is retained. If you need a particular date format enforced, DocuSign recommends using a Text tab with a Validation Pattern and Validation Message to enforce the format. |
    ///| Decline Tab           | Place this tab on the document where you want to give the recipient the option of declining an envelope. If the recipient clicks the Decline tab during the signing process, the envelope is voided. |
    ///| Email Address Tab     | Place this tab on a document where you want the recipient's email, as entered in the recipient information, to appear. |
    ///| Email Tab             | This is a single-line field that accepts all characters. |
    ///| Envelope ID Tab       | Place this tab on the document where you want the envelope ID for to appear. Recipients cannot enter or change the information in this tab. It is for informational purposes only. |
    ///| First Name Tab        | Place this tab on a document where you want the recipient's first name to appear. This tab splits the recipient's name (as entered in the recipient information) into sections based on spaces and uses the first section as the first name. |
    ///| Formula Tab           | This tab is used to add a calculated field to a document. Envelope recipients cannot directly enter information into the tab. The formula tab calculates and displays a new value when changes are made to the reference tab values. The reference tab information and calculation operations are entered in the "formula" element. See the Using the Calculated Fields Feature quick start guide or DocuSign Service User Guide for more information about formulas.  |
    ///| Full Name Tab         | Place this tab on the document where you want the recipient's full name to appear. |
    ///| Initial Here Tab      | Place this tab where the recipient must initial the document. This tab can be set to be optional.  |
    ///| Last Name Tab         | Place this tab on a document where you want the recipient's last name to appear. This tab splits the recipient's name (as entered in the recipient information) into sections based on spaces and uses the last section as the last name. |
    ///| List Tab              | This tab has a list of options that a recipient can select. The `listItems` parameter is used to set the options that can be selected.  |
    ///| Note Tab              | Place this tab on the document where you want to add a note for the recipient on a document. |
    ///| Number Tab            | This tab is a field where the recipient can enter numbers and decimal (.) points.  |
    ///| Radio Group Tab       | This group tab is used to place radio buttons on a document. The `radios` parameter is used to add and place the radio buttons associated with the group. Only one radio button can be selected in a group.  |
    ///| Sign Here Tab         | Place this tab where the recipient must sign the document. This tab can be set to be optional.  |
    ///| Signer Attachment Tab | The signer attachment is where the recipient initiates the process of adding supporting documents to an envelope. |
    ///| SSN Tab               | This tab is a single-line field where the recipient can enter numbers. A Social Security Number can be typed with or without dashes. |
    ///| Text Tab              | This tab is a field where the recipient can enter any type of characters.  |
    ///| Title Tab             | Place this tab on the document where you want the recipient's title to appear. |
    ///| Zip Tab               | This tab is a single-line field where the recipient can enter numbers. |
    ///
    ///
    ///## Using Custom Tabs in Envelopes and Templates
    ///
    ///Custom Tabs can be added to envelopes and templates
    ///by setting the `customTabId` property
    ///when creating an envelope or template recipient
    ///or when adding a new tab for an existing recipient.
    ///The custom tab must be added as the correct tab type.
    ///For example if the custom tab type is text, it cannot be used as a number tab.
    ///
    ///When the `customTabId` property is set,
    ///the new tab inherits all the custom tab properties.
    ///Required information that is not included in the custom tab,
    ///such as document ID and page ID, must be included when adding the tab.
    ///If the custom tab does not have anchor settings, the X and Y positions must be included.
    ///
    ///After the tab is created,
    ///it is treated as any other tab for updating or deleting.
    ///
    ///## Anchoring Tabs
    ///
    ///The tab anchoring option
    ///allows you to send documents for signature
    ///that do not have a fixed layout or format.
    ///In these documents you might not know
    ///the absolute location of the tabs
    ///when you design your API client application because the tabs must move with text.
    ///As an alternative to sending X and Y coordinates for tabs,
    ///the DocuSign Service can derive an anchor location for the tab
    ///by correlating anchor information to data within the document.
    ///
    ///When the DocuSign Service receives a request that contains tabs
    ///with anchor information,
    ///it searches the document for instances of the `anchorString` property.
    ///When found,
    ///it places a tab of the specified type for the designated recipient.
    ///Tab positions are established by setting offsets for the tab.
    ///
    ///When you apply tabs to the document,
    ///DocuSign does not remove or replace the text in the `anchorString` property. You can hide codified anchors by using the same font color as the background of the document. So the anchor can be used by DocuSign processes and it will not be visible on the document.
    ///
    ///To use an anchoring option:
    ///
    ///1. Identify the location in the document by text string. You can use a pre-existing text string or add a new one.
    ///For best performance DocuSign recommends using single word anchor strings when possible, especially when there are a large number of pages in the envelope.
    ///For example, you might want to add a Sign Here tab to the "Borrower's Signature" lines in a document, but that phrase might occur in places in the document where you don't want to tab to appear. In this case, you could add the text "BorrowerSignHere" in white font color (so that isn't visible in the document) to all the places you want Sign Here tabs to appear and use "BorrowerSignHere" as the anchor string.
    ///1. Reference the anchor through the `anchorString` property of the tab.
    ///1. Determine the offset from the anchor string location to where the tab should be placed.
    ///
    ///Setting a positive value in the `anchorXOffset` property moves the tab right on the page and positive values in the  `anchorYoffset` prove moves the tab down the page. The `anchorUnits` property specifies the units used for the offsets.
    ///For Sign Here and Initial Here tabs the bottom-left of the anchor string is equivalent to position (0,0), and the bottom-left of the tab graphic is placed relative to that.
    ///For all other tabs the bottom-left of the anchor string is equivalent to position (0,0), and the top-left of the tab graphic is placed relative to that.
    ///DocuSign does not currently provide tools to derive the offset values. Determination of the proper offset will likely require some trial-and-error.
    ///
    ///### Rules for working with anchor tags
    ///
    ///When anchor tabs are used, all documents in the envelope are searched for the `anchorString` property.
    ///
    ///* You set the text of the anchor string in the `anchorString` property. DocuSign tabs are created for each instance of the `anchorString` property within the document, so special care must be taken to establish unique anchor strings that do not result in unintentional tabs.
    ///* You cannot use the same anchored tab for different recipients for the same document.
    ///* The DocuSign system cannot search for text that is embedded in an image when checking for anchor strings.
    ///* X or Y offsets supplied for a tab apply to all instances of the tab in the document. To use different offsets at different locations in the document for the same recipient, create multiple, unique anchor tabs.
    ///* If the Y offset value of an anchor string would force a tab outside of the page boundaries, the tag is placed at the page boundary. If the X offset value places a tab outside of the page boundaries, the error message `Invalid_User_Offset` is sent. The error message includes the X offset that resulted in the error.
    ///* The system does not support an anchor string embedded in the form of a PDF X-object in the document.
    ///* The system does not re-flow the text that surrounds the anchor tabs. It is the responsibility of the document author to provide sufficient white space to contain the potential width of the ultimate tab value.
    ///
    ///### Tips and Tricks
    ///
    ///The following are tips for effective use of anchor tags:
    ///* In order to avoid unintentional conflicts between text contained in an `anchorString` property and the text that naturally exists in documents, establish a codified syntax for the anchor string text that is unlikely to appear elsewhere in a document.
    ///* Develop an extensible and consistent syntax that can be used across multiple document types.
    ///* Especially for documents that have variable numbers of tabs or signers, author the source document to include hidden anchor tabs for all potential signers/permutations. Then, control the tabs that are actually placed by including/excluding the anchor tabs in the request. This approach allows a single document to be used for all use cases instead of maintaining separate documents for each scenario.
    ///
    ///## Automatically Populating Tabs
    ///
    ///If you want similar tab types
    ///to automatically populate with the same data,
    ///you must follow these guidelines:
    ///
    ///* Each `tabLabel` entry must have the characters
    ///  `\\*` in front of the label.
    ///  If you omit the `\\*` prefix,
    ///  only the first occurrence of the tab is populated.
    ///
    ///  When automatically populating tabs,
    ///  the `tabLabel` must not contain any spaces.
    ///  In the JSON example below,
    ///  the Text tabs  properties `StudentLastName` and `StudentFirstName`
    ///  will be auto-populated as specified ("Doe" and "John")
    ///  each place they appear throughout the envelope.
    ///
    ///  ```
    ///  "tabs": {
    ///    "textTabs": [
    ///    {
    ///      "tabLabel": "\\*StudentLastName",
    ///      "value": "Doe"
    ///    },
    ///    {
    ///      "tabLabel": "\\*StudentFirstName",
    ///      "value": "John"
    ///    }]
    ///  }
    ///  ```
    ///
    ///* Each occurrence of the tab must have identical properties.
    ///
    ///  For example, suppose there are two Text tabs in a document,
    ///  each with `tabLabel` set to `Name`.
    ///  If one tab has the `bold` property set to **true**,
    ///  and the other has the `bold` property set to **false**,
    ///  only the first one will be populated.
    ///  In order to automatically populate both occurrences
    ///  of the `Name` Text tabs,
    ///  the `bold` property must be set to the same value for both tabs.
    ///.
    pub fn template_recipient_tabs(&self) -> template_recipient_tabs::TemplateRecipientTabs {
        template_recipient_tabs::TemplateRecipientTabs::new(self.clone())
    }

    /// The TemplateViews resource
    ///provides a method that returns a URL
    ///that you can embed in your application
    ///to generate a template view that uses the DocuSign UI.
    ///
    ///One template view is available:
    ///
    ///* Edit View: The DocuSign UI for editing a template.
    ///
    ///This resource is related to the [EnvelopeViews][envelopeviews] resource.
    ///Both resources enable you to embed the DocuSign UI into your application.
    ///
    ///
    ///[envelopeviews]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeViews/
    ///.
    pub fn template_views(&self) -> template_views::TemplateViews {
        template_views::TemplateViews::new(self.clone())
    }

    /// The UserCustomSettings resource provides methods that allow you to manage the custom settings for a user.
    ///
    ///Custom settings are a flexible way to store and retrieve custom user information that can be used in your own system.
    ///
    ///There is a limit on the size for all the custom user settings for a single user. All the custom user settings for a single user is limited to 4,000 characters, which includes the xml and json structure for the settings.
    pub fn user_custom_settings(&self) -> user_custom_settings::UserCustomSettings {
        user_custom_settings::UserCustomSettings::new(self.clone())
    }

    /// The UserProfiles resource provides methods that allow you to manage a user's profile.
    pub fn user_profiles(&self) -> user_profiles::UserProfiles {
        user_profiles::UserProfiles::new(self.clone())
    }

    /// The Users resource provides methods that enable you to manage users for an account.
    ///
    ///The following User methods do not use the `title` property in the Users object:
    ///
    ///- create
    ///- delete
    ///- deleteProfileImage
    ///- get
    ///- getProfileImage
    ///- getSettings
    ///- list
    ///- update
    ///- updateList
    ///- updateProfileImag
    ///- updateSettings
    ///
    ///Instead, you can retrieve and set the user's job title by using the UserProfiles:Get and UserProfiles:Update methods. For more information, see [UserProfiles](https://developers.docusign.com/docs/esign-rest-api/reference/Users/UserProfiles).
    pub fn users(&self) -> users::Users {
        users::Users::new(self.clone())
    }

    /// The UserSignatures resource provides methods that allow you manage the  intials and signature images for a user.
    pub fn user_signatures(&self) -> user_signatures::UserSignatures {
        user_signatures::UserSignatures::new(self.clone())
    }

    /// DocuSign eSignature includes a contacts list (also referred to as an address book) to help make sending envelopes even easier. When you send an envelope, the recipients' names and email addresses are automatically added to your contacts list. You can use the contacts list to quickly add recipients to the envelopes you send. The `Contacts` resource provides methods that enable you to manage your contacts.
    ///
    ///.
    pub fn contacts(&self) -> contacts::Contacts {
        contacts::Contacts::new(self.clone())
    }

    /// The EnvelopeAttachments resource provides methods that allow you to manage attachments.
    ///.
    pub fn envelope_attachments(&self) -> envelope_attachments::EnvelopeAttachments {
        envelope_attachments::EnvelopeAttachments::new(self.clone())
    }

    /// An account permission profile is assigned to a group of users, enabling you to set permissions for all of the users in the group at the same time. You are not required to set Permission Profiles for a group, but it makes it easier to manage user permissions for a large number of users.
    ///
    ///DocuSign offers the following account permission profiles:
    ///
    ///- DocuSign Viewer
    ///- DocuSign Sender
    ///- Account Administrator
    ///
    ///You can also create your own custom account permission profiles.
    ///.
    pub fn account_permission_profiles(
        &self,
    ) -> account_permission_profiles::AccountPermissionProfiles {
        account_permission_profiles::AccountPermissionProfiles::new(self.clone())
    }

    /// PowerForms enable you to create self-service documents for signature. A PowerForm is an envelope initiated from a URL that you make available for signers to complete. You can either add a PowerForm to your website or email the URL to recipients. DocuSign saves the data that recipients enter so  you can easily integrate it with your other applications.
    ///
    ///For more information, see [Using PowerForms](https://support.docusign.com/en/guides/ndse-user-guide-using-powerforms).
    ///
    ///**Note**: PowerForms are available only for DocuSign Enterprise accounts.
    ///
    ///
    ///### Errors
    ///
    ///PowerForm methods return the following 404 errors:
    ///
    ///- `PowerForms_Recipient_Denied_Documents`: The recipient is denied access to the documents.
    ///- `PowerForms_DigitalCerts_Shared_Tabs_Not_Allowed`: Shared tags are not allowed because a digital certificate is required
    ///for a signer.
    ///- `PowerForms_DigitalCerts_Free_Form_Tabs_Not_Allowed`: Signers that are required to use a digital certificate must have at
    ///least one required, non-conditional signature or initials tab.
    ///- `PowerForms_DigitalCerts_Multiple_Recipients_Routing_Order`: Signers that are required to use a digital certificate must be the
    ///only recipient in a routing order. Edit the routing order or remove the digital certificate requirement.
    ///- `PowerForms_DigitalCerts_Markup_Not_Allowed`: Document markup is not allowed because a digital certificate is
    ///required for a signer.
    ///- `PowerForms_Incomplete_Recipient`: The recipient's username, email, or role is not set.
    ///- `PowerForms_PowerFormId_Required`: A `powerFormId` is required.
    ///- `PowerForms_PowerFormId_Mismatch`: A `powerFormId` mismatch has occurred.
    ///.
    pub fn power_forms(&self) -> power_forms::PowerForms {
        power_forms::PowerForms::new(self.clone())
    }

    /// The PowerFormData resource provides a method for accessing PowerForm data.
    ///.
    pub fn power_form_data(&self) -> power_form_data::PowerFormData {
        power_form_data::PowerFormData::new(self.clone())
    }

    /// The AccountTabSettings resource provides methods that allow you to manage
    ///tab settings for an account.
    ///.
    pub fn account_tab_settings(&self) -> account_tab_settings::AccountTabSettings {
        account_tab_settings::AccountTabSettings::new(self.clone())
    }

    /// The ENoteConfigurations resource provides methods that allow you to manage
    ///information for the eNote eOriginal integration.
    ///.
    pub fn e_note_configurations(&self) -> e_note_configurations::ENoteConfigurations {
        e_note_configurations::ENoteConfigurations::new(self.clone())
    }

    /// The WorkspaceItems resource provides methods that enable you to manage
    ///workspace items.
    ///.
    pub fn workspace_items(&self) -> workspace_items::WorkspaceItems {
        workspace_items::WorkspaceItems::new(self.clone())
    }

    /// A workspace is a collaborative space for sharing documents and managing workflows. A workspace has a single owner who must be a DocuSign user. The owner can invite others to the workspace as collaborators. Individuals who are not DocuSign users must create a DocuSign account to join a workspace as a collaborator.
    ///
    ///You can create an envelope directly from a workspace.
    ///
    ///Workspaces store the following information:
    ///
    ///- **Files**: Files uploaded to a workspace for storage or reuse.
    ///- **Documents**: A document is a component of a transaction, template, or workspace. When a file is added to a transaction, template, or workspace, it is copied as a document. Each document in a workspace has a single owner.
    ///- **Templates**: A set of documents that you can use to create a transaction or a workspace.
    ///- **Transactions**: A transaction is a series of workflow events related to one or more documents. These events route the documents to one or more individuals for the purposes of doing business. Each transaction has a single owner (the sender).
    ///
    ///**Note**: Documents in a template are not individually listed as files.
    pub fn workspaces(&self) -> workspaces::Workspaces {
        workspaces::Workspaces::new(self.clone())
    }

    /// A chunked upload is a temporary file that you upload in parts and stage at DocuSign, then refer to as the content for other API calls. For example, you might use it for document content when assembling an envelope or template.
    ///
    ///A chunked upload is linked to the DocuSign account member who initiated the API call. This user is the only user who is able to reference the chunked upload.
    ///
    ///A ChunkedUpload is intended to be an area for briefly staging data for use with other DocuSign API calls. The ChunkedUpload API endpoints do not provide an action to download the ChunkedUpload's content.
    ///
    ///The typical flow for using a chunked upload involves the following steps:
    ///
    ///1) Initiate the chunked upload with content representing part 0.
    ///
    ///2) Add more parts to the chunked upload until you have transmitted the entirety of the content.
    ///
    ///3) Commit the chunked upload, preparing it for use with other API calls.
    ///
    ///4) Assemble a DocuSign envelope with a document that includes a reference to the chunked upload as the content.
    ///
    ///5) Continue with envelope-related processes.
    ///
    ///**Note**: You must fully upload and use a chunked upload within 20 minutes of initializing it.
    ///
    ///After the chunked upload has been correctly referenced within another API call, it becomes unavailable for any further use and is promptly removed from the system.
    ///
    ///Chunked uploads have the following limits, which are configured per DocuSign environment, account, or integrator:
    ///
    ///- The maximum number of all of a member's unexpired, unconsumed ChunkedUploads. The default value is 10.
    ///- The maximum total size of all of a member's unexpired, unconsumed  ChunkedUploads. The default value is 1 GB.
    ///- The amount of time that a chunked upload is active after you initialize it. The default value is 20 minutes.
    ///.
    pub fn chunked_uploads(&self) -> chunked_uploads::ChunkedUploads {
        chunked_uploads::ChunkedUploads::new(self.clone())
    }

    /// The EnvelopeFormData resource provides a method for downloading the data that users have entered into a form associated with an envelope.
    pub fn envelope_form_data(&self) -> envelope_form_data::EnvelopeFormData {
        envelope_form_data::EnvelopeFormData::new(self.clone())
    }

    /// The Envelope Document Visibility resource provides methods for managing document visibility by recipient.
    ///.
    pub fn envelope_document_visibility(
        &self,
    ) -> envelope_document_visibility::EnvelopeDocumentVisibility {
        envelope_document_visibility::EnvelopeDocumentVisibility::new(self.clone())
    }

    /// The Template Document Visibility resource provides methods for managing template document visibility by recipient.
    ///.
    pub fn template_document_visibility(
        &self,
    ) -> template_document_visibility::TemplateDocumentVisibility {
        template_document_visibility::TemplateDocumentVisibility::new(self.clone())
    }

    /// The AccountPasswordRules resource provides methods that allow you to obtain and update account password rules, as well as membership and account rules.
    pub fn account_password_rules(&self) -> account_password_rules::AccountPasswordRules {
        account_password_rules::AccountPasswordRules::new(self.clone())
    }

    /// The AccountWatermarks resource provides methods that allow you to obtain, preview and update watermark information.
    pub fn account_watermarks(&self) -> account_watermarks::AccountWatermarks {
        account_watermarks::AccountWatermarks::new(self.clone())
    }

    /// .
    pub fn payment_gateway_accounts(&self) -> payment_gateway_accounts::PaymentGatewayAccounts {
        payment_gateway_accounts::PaymentGatewayAccounts::new(self.clone())
    }

    /// .
    pub fn notary_journals(&self) -> notary_journals::NotaryJournals {
        notary_journals::NotaryJournals::new(self.clone())
    }

    /// The DocuSign Identity Verification process requires a signer to submit an image of their valid government ID and wait for the image to be uploaded and verified before they can access a document.
    ///
    ///Identity Verification supports government photo IDs and European eIDs, analyzing the document security features and matching the name on the agreement against the name on the ID. After a successful verification, the signer can view the agreement and sign as usual.
    ///
    ///To use Identity Verification, the [DocuSign Identity Verification](https://www.docusign.com/products/identify) product must be enabled for your account.
    ///
    ///For more information, see [Can I see (a photo of) your ID? Digital verification of real-world IDs](https://www.docusign.com/blog/can-i-see-a-photo-of-your-id-digital-verification-of-real-world-ids/).
    pub fn identity_verifications(&self) -> identity_verifications::IdentityVerifications {
        identity_verifications::IdentityVerifications::new(self.clone())
    }

    /// .
    pub fn envelope_document_html_definitions(
        &self,
    ) -> envelope_document_html_definitions::EnvelopeDocumentHtmlDefinitions {
        envelope_document_html_definitions::EnvelopeDocumentHtmlDefinitions::new(self.clone())
    }

    /// **Note**: Responsive Signing is disabled by default. To use this functionality, an account administrator must switch the account setting `enableResponsiveSigning` to **true**.
    ///Also note that Smart Sections (creating a signable HTML document that uses collapsible sections and rotating tables) are premium features. To request them, contact your DocuSign account manager.
    pub fn document_responsive_html_preview(
        &self,
    ) -> document_responsive_html_preview::DocumentResponsiveHtmlPreview {
        document_responsive_html_preview::DocumentResponsiveHtmlPreview::new(self.clone())
    }

    /// .
    pub fn envelope_html_definitions(&self) -> envelope_html_definitions::EnvelopeHtmlDefinitions {
        envelope_html_definitions::EnvelopeHtmlDefinitions::new(self.clone())
    }

    /// **Note**: Responsive Signing is disabled by default. To use this functionality, an account administrator must switch the account setting `enableResponsiveSigning` to **true**.
    ///Also note that Smart Sections (creating a signable HTML document that uses collapsible sections and rotating tables) are premium features. To request them, contact your DocuSign account manager.
    pub fn responsive_html_preview(&self) -> responsive_html_preview::ResponsiveHtmlPreview {
        responsive_html_preview::ResponsiveHtmlPreview::new(self.clone())
    }

    /// **Note**: Responsive Signing is disabled by default. To use this functionality, an account administrator must switch the account setting `enableResponsiveSigning` to **true**.
    ///Also note that Smart Sections (creating a signable HTML document that uses collapsible sections and rotating tables) are premium features. To request them, contact your DocuSign account manager.
    pub fn template_document_responsive_html_preview(
        &self,
    ) -> template_document_responsive_html_preview::TemplateDocumentResponsiveHtmlPreview {
        template_document_responsive_html_preview::TemplateDocumentResponsiveHtmlPreview::new(
            self.clone(),
        )
    }

    /// **Note**: Responsive Signing is disabled by default. To use this functionality, an account administrator must switch the account setting `enableResponsiveSigning` to **true**.
    ///Also note that Smart Sections (creating a signable HTML document that uses collapsible sections and rotating tables) are premium features. To request them, contact your DocuSign account manager.
    pub fn template_responsive_html_preview(
        &self,
    ) -> template_responsive_html_preview::TemplateResponsiveHtmlPreview {
        template_responsive_html_preview::TemplateResponsiveHtmlPreview::new(self.clone())
    }

    /// .
    pub fn template_document_html_definitions(
        &self,
    ) -> template_document_html_definitions::TemplateDocumentHtmlDefinitions {
        template_document_html_definitions::TemplateDocumentHtmlDefinitions::new(self.clone())
    }

    /// .
    pub fn template_html_definitions(&self) -> template_html_definitions::TemplateHtmlDefinitions {
        template_html_definitions::TemplateHtmlDefinitions::new(self.clone())
    }

    /// Envelope transfer rules enable administrators to transfer envelopes and templates from user to another. For example, you might do this when an employee leaves the company. To transfer ownership of envelopes and templates, the **Transfer Custody** feature must be enabled for your account.
    ///
    ///For more information about this functionality, see [Transfer Envelopes and Templates](https://support.docusign.com/en/guides/ndse-admin-guide-transfer-envelopes-templates).
    pub fn envelope_transfer_rules(&self) -> envelope_transfer_rules::EnvelopeTransferRules {
        envelope_transfer_rules::EnvelopeTransferRules::new(self.clone())
    }

    /// You can use bulk send lists for anything that you need to send to a large number of recipients on a
    ///recurring basis, such as:
    ///
    ///- Compliance letters (privacy, security, and ethics consent forms)
    ///- New hire onboarding documents (benefits, transit, and parking information and payroll forms)
    ///- Other Human Resources documents
    ///- Event-related forms
    ///
    ///The API creates a separate copy of the envelope for each recipient that you specify. Each instance of the envelope is called a
    ///`BulkCopy`. You can use a bulk send list to send up to 1,000 copies per call.
    ///
    ///After you create a bulk send list, it persists and can be reused and edited any number of times.
    ///
    ///## Customizing Bulk Send Lists
    ///
    ///You can customize individual copies of the envelope. For example, you can customize the email notification and
    ///language and add personalized notes.
    ///
    ///For example, if one recipient prefers to access their DocuSign envelopes behind an access code, and another prefers her
    ///email in French, you can implement those customizations.
    ///
    ///## Using Bulk Send
    ///
    ///The bulk send feature uses the following flow:
    ///
    ///1. Create a draft envelope by calling the [Envelopes::createEnvelope][createEnvelope] method. Add placeholders for bulk send information to the envelope, including:
    ///    - Email address placeholders.
    ///    - Tab placeholders. Assign `tabLabels` to these placeholders that will make sense for matching the tabs to values in the bulk send list. For example, if you're sending a field trip permission slip to parents, you might create a placeholder text tab called `StudentName` that will you will then populate with the names of individual students in the bulk send list. You can use the following types of text tabs, radio group tabs, and list tabs to match bulk send recipients to an envelope.
    ///    - Any envelope custom fields. These fields must match the envelope custom fields in envelope copies in the bulk send list.
    ///2. Create a bulk send list by using the [BulkSend::createBulkSendList][create_list] method.
    ///3. (Optional) Test compatibility. Use the [BulkSend::createBulkSendTestRequest][create_test] method to test your bulk
    ///   send list for compatibility with the envelope or template that you want to send. For example, a template that has
    ///   three roles is not compatible with a bulk send list that has only two recipients. For this reason, you might want to
    ///   test compatibility first. A successful test result returns the Boolean value `true`. An unsuccessful test returns a
    ///   JSON response that contains information about the errors that occurred.
    ///4. Send your envelope to the list by using the [BulkSend::createBulkSendRequest][create_request] method. The response
    ///   returns a `batchId` that you can use for tracking and other purposes.
    ///
    ///The API creates and queues your envelopes asynchronously behind the scenes. You can get the status of the batch by
    ///using the [BulkEnvelopes_GetBulkEnvelopesBatchId][getbulkenv] method, passing in the `batchId`.
    ///
    ///To get the envelopes generated for the `batchId`, use the [Envelopes:listStatusChanges][GetEnvelopes] method, passing in
    ///a `custom_field` named `BulkBatchId` where the value is the `batchId` that was returned in step 4.
    ///
    ///Example:
    ///
    ///`custom_field=BulkBatchId={{batchId}}`
    ///
    ///**Bulk Send Requirements and Limitations**
    ///
    ///* Bulk send must be enabled for your account (in the `accountSettingsInformation` object, `enableBulkRecipient` must be set to **true**) and for the user sending the envelopes (the `allowBulkRecipients` property in `userSettings` must be set to **true**).
    ///* You can include up to 1,000 bulk recipients in each request.
    ///* When you send an envelope with bulk recipients, envelopes are added to a bulk recipient queue and sent in a metered fashion. An account can have a total of 2,000 total envelopes in the queue at a time.  If this limit is reached, an error message displays to the sender. If you receive this error, wait and resend the envelope at a later time.
    ///
    ///If you frequently run into queue limits, contact your account manager to discuss modifying the queue limits for your account.
    ///
    ///[create_list]:    https://developers.docusign.com/docs/esign-rest-api/reference/BulkEnvelopes/BulkSend/createBulkSendList/
    ///[create_test]:    https://developers.docusign.com/docs/esign-rest-api/reference/BulkEnvelopes/BulkSend/createBulkSendTestRequest/
    ///[create_request]: https://developers.docusign.com/docs/esign-rest-api/reference/BulkEnvelopes/BulkSend/createBulkSendRequest/
    ///[getbulkenv]:     https://developers.docusign.com/docs/esign-rest-api/reference/BulkEnvelopes/BulkSend/getBulkSendLists/
    ///[GetEnvelopes]:   https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/Envelopes/listStatusChanges/
    ///
    ///[createEnvelope]: https://developers.docusign.com/docs/esign-rest-api/reference/Envelopes/EnvelopeCustomFields/create/
    ///
    ///
    ///For more information about using bulk send, see [Bulk Sending Envelopes](https://developers.docusign.com/docs/esign-rest-api/esign101/concepts/envelopes/bulk-send/).
    ///.
    pub fn bulk_send(&self) -> bulk_send::BulkSend {
        bulk_send::BulkSend::new(self.clone())
    }

    /// You can configure automatic archiving of emails sent from all of your DocuSign accounts.
    ///
    ///For more information, see [Email Archive Configuration](https://support.docusign.com/en/guides/ndse-admin-guide-email-archive-configuration).
    ///
    ///**Note**: This feature is only available for certain account plans and must be enabled by DocuSign.
    pub fn bcc_email_archive(&self) -> bcc_email_archive::BccEmailArchive {
        bcc_email_archive::BccEmailArchive::new(self.clone())
    }

    /// .
    pub fn tabs_blob(&self) -> tabs_blob::TabsBlob {
        tabs_blob::TabsBlob::new(self.clone())
    }

    /// The comments resource provides a method that enables you to download a PDF file containing all of the comments that recipients and the sender have added to the documents in an envelope.
    ///
    ///Comments are disabled by default. To use the comments feature, an account administrator must enable comments on the account (in the `accountSettingsInformation` object, set the `enableSigningExtensionComments` property to **true**).
    ///
    ///For more information, see [Comments Settings](https://support.docusign.com/en/guides/ndse-admin-guide-comments-settings).
    pub fn comments(&self) -> comments::Comments {
        comments::Comments::new(self.clone())
    }

    /// .
    pub fn favorite_templates(&self) -> favorite_templates::FavoriteTemplates {
        favorite_templates::FavoriteTemplates::new(self.clone())
    }

    /// DocuSign eNotary makes the notarization process fully digital
    ///for senders, signers, and notaries.
    ///It enables a notary public to act as an in-person witness
    ///to electronic signing of documents.
    ///Check the [DocuSign eNotary support documentation](https://support.docusign.com/en/guides/ndse-user-guide-enotary-resources)
    ///to see which jurisdictions are supported.
    ///
    ///.
    pub fn notary(&self) -> notary::Notary {
        notary::Notary::new(self.clone())
    }

    /// Creating, updating, and deleting notary jurisdiction objects.
    pub fn notary_jurisdiction(&self) -> notary_jurisdiction::NotaryJurisdiction {
        notary_jurisdiction::NotaryJurisdiction::new(self.clone())
    }

    /// .
    pub fn envelope_workflow_definition(
        &self,
    ) -> envelope_workflow_definition::EnvelopeWorkflowDefinition {
        envelope_workflow_definition::EnvelopeWorkflowDefinition::new(self.clone())
    }

    /// .
    pub fn reports(&self) -> reports::Reports {
        reports::Reports::new(self.clone())
    }

    /// .
    pub fn account_signatures(&self) -> account_signatures::AccountSignatures {
        account_signatures::AccountSignatures::new(self.clone())
    }

    /// .
    pub fn appliance_info(&self) -> appliance_info::ApplianceInfo {
        appliance_info::ApplianceInfo::new(self.clone())
    }

    /// .
    pub fn connect_secret(&self) -> connect_secret::ConnectSecret {
        connect_secret::ConnectSecret::new(self.clone())
    }
}