Skip to content

Commit 4933a7a

Browse files
author
Eric Tucker
committed
update to docusign/esign-client 6.0
1 parent e18ba77 commit 4933a7a

25 files changed

+505
-439
lines changed

bin/create-docblocs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function getParamType(array $parameters, string $param)
115115
{
116116
foreach ($parameters as $p) {
117117
if ($p->name === preg_replace('/^\$/', '', $param) && $p->hasType()) {
118-
return "\\" . ((string)$p->getType());
118+
return "\\" . preg_replace('/^\?/', '', (string)$p->getType());
119119
}
120120
}
121121

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"require": {
1616
"ext-json": "*",
1717
"php": "^7.3 | ^8.0",
18-
"docusign/esign-client": "^5.1"
18+
"docusign/esign-client": "^6.0"
1919
},
2020
"require-dev": {
2121
"phpunit/phpunit": "~9.5"

src/Api/Accounts.php

Lines changed: 34 additions & 33 deletions
Large diffs are not rendered by default.

src/Api/Authentication.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@
88
/**
99
* Class Authentication
1010
* @method Api\AuthenticationApi getClient()
11-
* @method \DocuSign\eSign\Client\ApiClient getApiClient() Get API client
12-
* @method Api\AuthenticationApi setApiClient(\DocuSign\eSign\Client\ApiClient $apiClient) Set the API client
13-
* @method void deleteSocialLogin(string $user_id, Models\SocialAccountInformation $social_account_information = null) Deletes user
11+
* @method DocuSign\eSign\Client\ApiClient getApiClient() Get API client
12+
* @method self setApiClient(ApiClient $apiClient) Set the API client
13+
* @method string updateResourcePath(string $resourcePath, string $baseName, string $paramName) Update
14+
* @method mixed deleteSocialLogin(?string $user_id, Models\SocialAccountInformation $social_account_information = null) Deletes user
1415
* @method Models\OauthAccess getOAuthToken() Creates an authorization token
15-
* @method Models\UserSocialIdResult listSocialLogins(string $user_id) Gets a list of a user
16+
* @method Models\UserSocialIdResult listSocialLogins(?string $user_id) Gets a list of a user
1617
* @method Api\AuthenticationApi\LoginOptions loginOptions(array $options = ['set_api_password' => null, 'set_embed_account_id_guid' => null, 'set_include_account_id_guid' => null, 'set_login_settings' => null])
1718
* @method Models\LoginInformation login(Api\AuthenticationApi\LoginOptions $options = null) Gets login information for a specified user
18-
* @method void revokeOAuthToken() Revokes an authorization token
19-
* @method void updatePassword(string $login_part, Models\UserPasswordInformation $user_password_information = null) Updates the password for a specified user is supported
20-
* @method void updateSocialLogin(string $user_id, Models\SocialAccountInformation $social_account_information = null) Adds social account for a user
19+
* @method mixed revokeOAuthToken() Revokes an authorization token
20+
* @method mixed updatePassword(?string $login_part, Models\UserPasswordInformation $user_password_information = null) Updates the password for a specified user is supported
21+
* @method mixed updateSocialLogin(?string $user_id, Models\SocialAccountInformation $social_account_information = null) Adds social account for a user
2122
*/
2223
class Authentication extends BaseApi
2324
{

src/Api/Billing.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
/**
99
* Class Billing
1010
* @method Api\BillingApi getClient()
11-
* @method \DocuSign\eSign\Client\ApiClient getApiClient() Get API client
12-
* @method Api\BillingApi setApiClient(\DocuSign\eSign\Client\ApiClient $apiClient) Set the API client
13-
* @method Models\BillingPlanResponse getBillingPlan(string $billing_plan_id) Get the billing plan details
11+
* @method DocuSign\eSign\Client\ApiClient getApiClient() Get API client
12+
* @method self setApiClient(ApiClient $apiClient) Set the API client
13+
* @method string updateResourcePath(string $resourcePath, string $baseName, string $paramName) Update
14+
* @method Models\BillingPlanResponse getBillingPlan(?string $billing_plan_id) Get the billing plan details
1415
* @method Models\CreditCardInformation getCreditCardInfo() Get metadata for a given credit card
1516
* @method Models\DowngradRequestBillingInfoResponse getDowngradeRequestBillingInfo() Returns downgrade plan information for the specified account
16-
* @method Models\BillingInvoice getInvoice(string $invoice_id) Retrieves a billing invoice
17-
* @method Models\BillingPaymentItem getPayment(string $payment_id) Gets billing payment information for a specific payment
18-
* @method Api\BillingApi\GetPlanOptions getPlanOptions(array $options = ['set_include_credit_card_information' => null, 'set_include_metadata' => null, 'set_include_successor_plans' => null])
17+
* @method Models\BillingInvoice getInvoice(?string $invoice_id) Retrieves a billing invoice
18+
* @method Models\BillingPaymentItem getPayment(?string $payment_id) Gets billing payment information for a specific payment
19+
* @method Api\BillingApi\GetPlanOptions getPlanOptions(array $options = ['set_include_credit_card_information' => null, 'set_include_downgrade_information' => null, 'set_include_metadata' => null, 'set_include_successor_plans' => null])
1920
* @method Models\AccountBillingPlanResponse getPlan(Api\BillingApi\GetPlanOptions $options = null) Get Account Billing Plan
2021
* @method Models\BillingPlansResponse listBillingPlans() Gets the list of available billing plans
2122
* @method Api\BillingApi\ListInvoicesOptions listInvoicesOptions(array $options = ['set_from_date' => null, 'set_to_date' => null])
@@ -24,7 +25,7 @@
2425
* @method Api\BillingApi\ListPaymentsOptions listPaymentsOptions(array $options = ['set_from_date' => null, 'set_to_date' => null])
2526
* @method Models\BillingPaymentsResponse listPayments(Api\BillingApi\ListPaymentsOptions $options = null) Gets payment information for one or more payments
2627
* @method Models\BillingPaymentResponse makePayment(Models\BillingPaymentRequest $billing_payment_request = null) Posts a payment to a past due invoice
27-
* @method void purchaseEnvelopes(Models\PurchasedEnvelopesInformation $purchased_envelopes_information = null) Reserverd
28+
* @method mixed purchaseEnvelopes(Models\PurchasedEnvelopesInformation $purchased_envelopes_information = null) Reserverd
2829
* @method Models\DowngradePlanUpdateResponse updateDowngradeAccountBillingPlan(Models\DowngradeBillingPlanInformation $downgrade_billing_plan_information = null) Queues downgrade billing plan request for an account
2930
* @method Api\BillingApi\UpdatePlanOptions updatePlanOptions(array $options = ['set_preview_billing_plan' => null])
3031
* @method Models\BillingPlanUpdateResponse updatePlan(Models\BillingPlanInformation $billing_plan_information = null, Api\BillingApi\UpdatePlanOptions $options = null) Updates the account billing plan

src/Api/BulkEnvelopes.php

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,26 @@
88
/**
99
* Class BulkEnvelopes
1010
* @method Api\BulkEnvelopesApi getClient()
11-
* @method \DocuSign\eSign\Client\ApiClient getApiClient() Get API client
12-
* @method Api\BulkEnvelopesApi setApiClient(\DocuSign\eSign\Client\ApiClient $apiClient) Set the API client
13-
* @method Models\BulkEnvelopesResponse callList(Api\BulkEnvelopesApi\ListOptions $options = null) Gets status information about bulk recipient batches
11+
* @method DocuSign\eSign\Client\ApiClient getApiClient() Get API client
12+
* @method self setApiClient(ApiClient $apiClient) Set the API client
13+
* @method string updateResourcePath(string $resourcePath, string $baseName, string $paramName) Update
1414
* @method Models\BulkSendingList createBulkSendList(Models\BulkSendingList $bulk_sending_list = null) Creates a new bulk send list
15-
* @method Models\BulkSendResponse createBulkSendRequest(string $bulk_send_list_id, Models\BulkSendRequest $bulk_send_request = null) Uses the specified bulk send list to send the envelope specified in the payload
16-
* @method Models\BulkSendTestResponse createBulkSendTestRequest(string $bulk_send_list_id, Models\BulkSendRequest $bulk_send_request = null) Tests whether the specified bulk sending list can be used to send an envelope
17-
* @method Models\BulkSendingListSummaries deleteBulkSendList(string $bulk_send_list_id) Deletes an existing bulk send list
18-
* @method Models\BulkRecipientsUpdateResponse deleteRecipients(string $envelope_id, string $recipient_id) Deletes the bulk recipient file from an envelope
19-
* @method Api\BulkEnvelopesApi\GetOptions getOptions(array $options = ['set_count' => null, 'set_include' => null, 'set_start_position' => null])
20-
* @method Models\BulkEnvelopeStatus get(string $batch_id, Api\BulkEnvelopesApi\GetOptions $options = null) Gets the status of a specified bulk send operation
21-
* @method Models\BulkSendBatchStatus getBulkSendBatchStatus(string $bulk_send_batch_id) Gets a specific bulk send batch status
22-
* @method Api\BulkEnvelopesApi\GetBulkSendBatchesOptions getBulkSendBatchesOptions(array $options = ['set_batch_ids' => null, 'set_count' => null, 'set_start_position' => null, 'set_status' => null])
15+
* @method Models\BulkSendResponse createBulkSendRequest(?string $bulk_send_list_id, Models\BulkSendRequest $bulk_send_request = null) Uses the specified bulk send list to send the envelope specified in the payload
16+
* @method Models\BulkSendTestResponse createBulkSendTestRequest(?string $bulk_send_list_id, Models\BulkSendRequest $bulk_send_request = null) Tests whether the specified bulk sending list can be used to send an envelope
17+
* @method Models\BulkSendingListSummaries deleteBulkSendList(?string $bulk_send_list_id) Deletes an existing bulk send list
18+
* @method Api\BulkEnvelopesApi\GetBulkSendBatchEnvelopesOptions getBulkSendBatchEnvelopesOptions(array $options = ['set_count' => null, 'set_include' => null, 'set_order' => null, 'set_order_by' => null, 'set_search_text' => null, 'set_start_position' => null, 'set_status' => null, 'set_user_id' => null])
19+
* @method Models\EnvelopesInformation getBulkSendBatchEnvelopes(?string $bulk_send_batch_id, Api\BulkEnvelopesApi\GetBulkSendBatchEnvelopesOptions $options = null) Gets envelopes from a specific bulk send batch
20+
* @method Models\BulkSendBatchStatus getBulkSendBatchStatus(?string $bulk_send_batch_id) Gets a specific bulk send batch status
21+
* @method Api\BulkEnvelopesApi\GetBulkSendBatchesOptions getBulkSendBatchesOptions(array $options = ['set_batch_ids' => null, 'set_count' => null, 'set_search_text' => null, 'set_start_position' => null, 'set_status' => null])
2322
* @method Models\BulkSendBatchSummaries getBulkSendBatches(Api\BulkEnvelopesApi\GetBulkSendBatchesOptions $options = null) Returns a list of bulk send batch satuses initiated by account
24-
* @method Models\BulkSendingList getBulkSendList(string $bulk_send_list_id) Gets a specific bulk send list
23+
* @method Models\BulkSendingList getBulkSendList(?string $bulk_send_list_id) Gets a specific bulk send list
2524
* @method Models\BulkSendingListSummaries getBulkSendLists() Lists top
26-
* @method Api\BulkEnvelopesApi\GetRecipientsOptions getRecipientsOptions(array $options = ['set_include_tabs' => null, 'set_start_position' => null])
27-
* @method Models\BulkRecipientsResponse getRecipients(string $envelope_id, string $recipient_id, Api\BulkEnvelopesApi\GetRecipientsOptions $options = null) Gets the bulk recipient file from an envelope
28-
* @method Models\BulkSendingList updateBulkSendList(string $bulk_send_list_id, Models\BulkSendingList $bulk_sending_list = null) Updates an existing bulk send list
29-
* @method Models\BulkRecipientsSummaryResponse updateRecipients(string $envelope_id, string $recipient_id, string $bulk_recipients_request) Adds or replaces envelope bulk recipients
25+
* @method Models\BulkSendBatchStatus updateBulkSendBatchStatus(?string $bulk_send_batch_id, Models\BulkSendBatchRequest $bulk_send_batch_request = null) Put
26+
* @method Models\BulkSendingList updateBulkSendList(?string $bulk_send_list_id, Models\BulkSendingList $bulk_sending_list = null) Updates an existing bulk send list
3027
*/
3128
class BulkEnvelopes extends BaseApi
3229
{
3330
protected $methodsWithAccountId = [
34-
'callList',
35-
'callListWithHttpInfo',
3631
'createBulkSendList',
3732
'createBulkSendListWithHttpInfo',
3833
'createBulkSendRequest',
@@ -41,10 +36,8 @@ class BulkEnvelopes extends BaseApi
4136
'createBulkSendTestRequestWithHttpInfo',
4237
'deleteBulkSendList',
4338
'deleteBulkSendListWithHttpInfo',
44-
'deleteRecipients',
45-
'deleteRecipientsWithHttpInfo',
46-
'get',
47-
'getWithHttpInfo',
39+
'getBulkSendBatchEnvelopes',
40+
'getBulkSendBatchEnvelopesWithHttpInfo',
4841
'getBulkSendBatchStatus',
4942
'getBulkSendBatchStatusWithHttpInfo',
5043
'getBulkSendBatches',
@@ -53,11 +46,9 @@ class BulkEnvelopes extends BaseApi
5346
'getBulkSendListWithHttpInfo',
5447
'getBulkSendLists',
5548
'getBulkSendListsWithHttpInfo',
56-
'getRecipients',
57-
'getRecipientsWithHttpInfo',
49+
'updateBulkSendBatchStatus',
50+
'updateBulkSendBatchStatusWithHttpInfo',
5851
'updateBulkSendList',
59-
'updateBulkSendListWithHttpInfo',
60-
'updateRecipients',
61-
'updateRecipientsWithHttpInfo'
52+
'updateBulkSendListWithHttpInfo'
6253
];
6354
}

src/Api/CloudStorage.php

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@
88
/**
99
* Class CloudStorage
1010
* @method Api\CloudStorageApi getClient()
11-
* @method \DocuSign\eSign\Client\ApiClient getApiClient() Get API client
12-
* @method Api\CloudStorageApi setApiClient(\DocuSign\eSign\Client\ApiClient $apiClient) Set the API client
13-
* @method Models\ExternalFolder callList(string $folder_id, string $service_id, string $user_id, Api\CloudStorageApi\ListOptions $options = null) Gets a list of all the items from the specified cloud storage provider
14-
* @method Models\CloudStorageProviders createProvider(string $user_id, Models\CloudStorageProviders $cloud_storage_providers = null) Configures the redirect URL information for one or more cloud storage providers for the specified user
15-
* @method Models\CloudStorageProviders deleteProvider(string $service_id, string $user_id) Deletes the user authentication information for the specified cloud storage provider
16-
* @method Models\CloudStorageProviders deleteProviders(string $user_id, Models\CloudStorageProviders $cloud_storage_providers = null) Deletes the user authentication information for one or more cloud storage providers
11+
* @method DocuSign\eSign\Client\ApiClient getApiClient() Get API client
12+
* @method self setApiClient(ApiClient $apiClient) Set the API client
13+
* @method string updateResourcePath(string $resourcePath, string $baseName, string $paramName) Update
14+
* @method Models\ExternalFolder callList(?string $folder_id, ?string $service_id, ?string $user_id, Api\CloudStorageApi\ListOptions $options = null) Gets a list of all the items from the specified cloud storage provider
15+
* @method Models\CloudStorageProviders createProvider(?string $user_id, Models\CloudStorageProviders $cloud_storage_providers = null) Configures the redirect URL information for one or more cloud storage providers for the specified user
16+
* @method Models\CloudStorageProviders deleteProvider(?string $service_id, ?string $user_id) Deletes the user authentication information for the specified cloud storage provider
17+
* @method Models\CloudStorageProviders deleteProviders(?string $user_id, Models\CloudStorageProviders $cloud_storage_providers = null) Deletes the user authentication information for one or more cloud storage providers
1718
* @method Api\CloudStorageApi\GetProviderOptions getProviderOptions(array $options = ['set_redirect_url' => null])
18-
* @method Models\CloudStorageProviders getProvider(string $service_id, string $user_id, Api\CloudStorageApi\GetProviderOptions $options = null) Gets the specified Cloud Storage Provider configuration for the User
19+
* @method Models\CloudStorageProviders getProvider(?string $service_id, ?string $user_id, Api\CloudStorageApi\GetProviderOptions $options = null) Gets the specified Cloud Storage Provider configuration for the User
1920
* @method Api\CloudStorageApi\ListFoldersOptions listFoldersOptions(array $options = ['set_cloud_storage_folder_path' => null, 'set_count' => null, 'set_order' => null, 'set_order_by' => null, 'set_search_text' => null, 'set_start_position' => null])
20-
* @method Models\ExternalFolder listFolders(string $service_id, string $user_id, Api\CloudStorageApi\ListFoldersOptions $options = null) Retrieves a list of all the items in a specified folder from the specified cloud storage provider
21+
* @method Models\ExternalFolder listFolders(?string $service_id, ?string $user_id, Api\CloudStorageApi\ListFoldersOptions $options = null) Retrieves a list of all the items in a specified folder from the specified cloud storage provider
2122
* @method Api\CloudStorageApi\ListProvidersOptions listProvidersOptions(array $options = ['set_redirect_url' => null])
22-
* @method Models\CloudStorageProviders listProviders(string $user_id, Api\CloudStorageApi\ListProvidersOptions $options = null) Get the Cloud Storage Provider configuration for the specified user
23+
* @method Models\CloudStorageProviders listProviders(?string $user_id, Api\CloudStorageApi\ListProvidersOptions $options = null) Get the Cloud Storage Provider configuration for the specified user
2324
*/
2425
class CloudStorage extends BaseApi
2526
{

0 commit comments

Comments
 (0)