public function disableRecurringPayments(string $currencyCode, string $paymentProviderId): BalanceInterface
    {
        $response = $this->client->post(
            $this->getBaseEndpointUri()->withPath("{$this->getBaseEndpointUri()->getPath()}/recurring-setup")->withQuery(http_build_query(['supportedCurrencyId' => $currencyCode])),
            (string) json_encode((object) [
                'providerId' => $paymentProviderId,
                'chargePerUsage' => 'true',
            ])
        );

        return $this->entitySerializer->deserialize(
            (string) $response->getBody(),
            $this->getEntityClass(),
            'json'
        );
    }
public function disableRecurringPayments(string $currencyCode, string $paymentProviderId): BalanceInterface
    {
        $response = $this->client->post(
            $this->getBaseEndpointUri()->withPath("{$this->getBaseEndpointUri()->getPath()}/recurring-setup")->withQuery(http_build_query(['supportedCurrencyId' => $currencyCode])),
            (string) json_encode((object) [
                'providerId' => $paymentProviderId,
                'chargePerUsage' => 'true',
            ])
        );

        return $this->entitySerializer->deserialize(
            (string) $response->getBody(),
            $this->getEntityClass(),
            'json'
        );
    }
public function disableRecurringPayments ( string $ currencyCode , string $ paymentProviderId ) : BalanceInterface { $ response = $ this -> client -> post ( $ this -> getBaseEndpointUri ( ) -> withPath ( "{$this->getBaseEndpointUri()->getPath()}/recurring-setup" ) -> withQuery ( http_build_query ( [ 'supportedCurrencyId' => $ currencyCode ] ) ) , ( string ) json_encode ( ( object ) [ 'providerId' => $ paymentProviderId , 'chargePerUsage' => 'true' , ] ) ) ; return $ this -> entitySerializer -> deserialize ( ( string ) $ response -> getBody ( ) , $ this -> getEntityClass ( ) , 'json' ) ; }
Deactivate recurring payments.

@param string $currencyCode
@param string $paymentProviderId

@return \Apigee\Edge\Api\Monetization\Entity\BalanceInterface
Deactivate recurring payments .