In order to update the plan, you must define one or more patches to be applied to the plan. The patches will be applied in the order in which they're specified. The 'value' of each Patch object will need to be a Plan object that contains the fields that will be modified. More Information: https://developer.paypal.com/webapps/developer/docs/api/#patchrequest-object
NOTE: Only the 'replace' operation is supported when updating billing plans.
Get the plan we want to update.
Update the plan.
After it's been updated, get it again to make sure it was updated properly (and so we can see what it looks like afterwards).
Api Context
Pass in a
APIContext
object to authenticate the call and to send a unique request id (that ensures idempotency). The SDK generates a request id if you do not pass one explicitly. See Configuration.cs to know more about APIContext.