Beispiel #1
0
        /// <summary>
        /// Deletes the specified billing plan.
        /// </summary>
        /// <param name="apiContext">APIContext used for the API call.</param>
        /// <param name="planId">ID of the billing plan to delete.</param>
        public static void Delete(APIContext apiContext, string planId)
        {
            var patchRequest = new PatchRequest
            {
                new Patch
                {
                    op    = "replace",
                    path  = "/",
                    value = new Plan {
                        state = "DELETED"
                    }
                }
            };

            Plan.Update(apiContext, planId, patchRequest);
        }
Beispiel #2
0
 /// <summary>
 /// Replace specific fields within a billing plan by passing the ID of the billing plan to the request URI. In addition, pass a patch object in the request JSON that specifies the operation to perform, field to update, and new value for each update.
 /// </summary>
 /// <param name="apiContext">APIContext used for the API call.</param>
 /// <param name="patchRequest">PatchRequest</param>
 public void Update(APIContext apiContext, PatchRequest patchRequest)
 {
     Plan.Update(apiContext, this.id, patchRequest);
 }