Skip to content

Latest commit

 

History

History
44 lines (34 loc) · 1.22 KB

File metadata and controls

44 lines (34 loc) · 1.22 KB

Patch Billing Plan Input

Input structure for the method PatchBillingPlanAsync

Structure

PatchBillingPlanInput

Fields

Name Type Tags Description Getter Setter
Id String Required The ID of the plan. String getId() setId(String id)
ContentType String Required, Constant Value: "application/json" String getContentType() setContentType(String contentType)
Body List<Patch> Optional - List getBody() setBody(List body)

Example

import com.paypal.sdk.ApiHelper;
import com.paypal.sdk.models.Patch;
import com.paypal.sdk.models.PatchBillingPlanInput;
import com.paypal.sdk.models.PatchOp;
import com.paypal.sdk.utilities.JsonValue;
import java.io.IOException;
import java.util.Arrays;

PatchBillingPlanInput patchBillingPlanInput = new PatchBillingPlanInput.Builder(
    "id0",
    "application/json"
)
.body(Arrays.asList(
        new Patch.Builder(
            PatchOp.ADD
        )
        .path("path0")
        .value(ApiHelper.tryDeserialize("{\"key1\":\"val1\",\"key2\":\"val2\"}", JsonValue.class))
        .from("from6")
        .build()
    ))
.build();