package com.sonic.lion.domain.resp;

import com.paypal.http.annotations.Model;
import com.paypal.http.annotations.SerializedName;
import com.paypal.orders.LinkDescription;
import lombok.Data;

import java.util.List;

/**
 * @author code
 * {
 * "plan_id": "P-52J16157DW1386843MKQEYYI",
 * "plan_overridden": false,
 * "links": [
 * {
 * "href": "https://www.paypal.com/webapps/billing/subscriptions/update?ba_token=BA-7T960188BR531494Y",
 * "rel": "approve",
 * "method": "GET"
 * },
 * {
 * "href": "https://api-m.paypal.com/v1/billing/subscriptions/I-YHK4D6794VNG",
 * "rel": "edit",
 * "method": "PATCH"
 * },
 * {
 * "href": "https://api-m.paypal.com/v1/billing/subscriptions/I-YHK4D6794VNG",
 * "rel": "self",
 * "method": "GET"
 * },
 * {
 * "href": "https://api-m.paypal.com/v1/billing/subscriptions/I-YHK4D6794VNG/cancel",
 * "rel": "cancel",
 * "method": "POST"
 * },
 * {
 * "href": "https://api-m.paypal.com/v1/billing/subscriptions/I-YHK4D6794VNG/suspend",
 * "rel": "suspend",
 * "method": "POST"
 * },
 * {
 * "href": "https://api-m.paypal.com/v1/billing/subscriptions/I-YHK4D6794VNG/capture",
 * "rel": "capture",
 * "method": "POST"
 * }
 * ]
 * }
 */
@Model
@Data
public class SubscriptionReviseResp {

    /**
     * 计划ID
     */
    @SerializedName("plan_id")
    private String plan_id;

    /**
     * 链接
     */
    @SerializedName(
            value = "links",
            listClass = LinkDescription.class
    )
    private List<LinkDescription> links;

}
