edge-php-sdk icon indicating copy to clipboard operation
edge-php-sdk copied to clipboard

\Apigee\Mint\Developer::getPrepaidBalance() incorrectly parse response as \Apigee\Mint\DeveloperBalance

Open mxr576 opened this issue 8 years ago • 0 comments

/v1/mint/organizations/[ORG]/developers/[DEVELOPER]/prepaid-developer-balance returns partial information compared with /v1/mint/organizations/[ORG]/developers/[DEVELOPER]/developer-balances (ex.: recurring payment settings are not available in the first response) but current implementation casts the response to the same object as it would be the second API's response and fills missing property's value with the default value of the property. Consequently, the first API call always returns false positive information about developer's recurring payment settings (isRecurring, recurringAmount, etc.) in the SDK.

mxr576 avatar Oct 18 '17 13:10 mxr576