Skip to content

Commit def68a7

Browse files
committed
fix: wrong param type
1 parent e9f07be commit def68a7

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/API/Subscription.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ public function find(string $id): array
6060
* Enable a subscription
6161
*
6262
* @param string $code Subscription code
63-
* @param array $token Email token
63+
* @param string $token Email token
6464
* @return array
6565
*/
66-
public function enable(string $code, array $token): array
66+
public function enable(string $code, string $token): array
6767
{
6868
$response = $this->httpClient->put("/subscription/enable", [
6969
'json' => json_encode(['code' => $code, 'token' => $token]),
@@ -76,10 +76,10 @@ public function enable(string $code, array $token): array
7676
* Disable a subscription
7777
*
7878
* @param string $code Subscription code
79-
* @param array $token Email token
79+
* @param string $token Email token
8080
* @return array
8181
*/
82-
public function disable(string $code, array $token): array
82+
public function disable(string $code, string $token): array
8383
{
8484
$response = $this->httpClient->put("/subscription/disable", [
8585
'json' => json_encode(['code' => $code, 'token' => $token]),

src/Options/Subscription/CreateOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function configureOptions(OptionsResolver $resolver): void
2828

2929
$resolver->define('authorization')
3030
->allowedTypes('string')
31-
->info('The interval of the plan');
31+
->info("If customer has multiple authorizations, you can set the desired authorization you wish to use for this subscription here. If this is not supplied, the customer's most recent authorization would be used");
3232

3333
$resolver->define('description')
3434
->allowedTypes('string')

0 commit comments

Comments
 (0)