Skip to content

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

@mxr576

Description

@mxr576

/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions