com.safecharge.response.GetSubscriptionPlansResponse Maven / Gradle / Ivy
Show all versions of safecharge-sdk-java Show documentation
package com.safecharge.response;
import java.util.List;
import com.safecharge.model.SubscriptionPlan;
/**
* Copyright (C) 2007-2017 SafeCharge International Group Limited.
*
* Response received from the SafeCharge's servers to the {@link com.safecharge.request.GetSubscriptionPlansRequest}.
*
* @author Nikola Dichev
* @see com.safecharge.request.GetSubscriptionPlansRequest
* @since 6/6/2017
*/
public class GetSubscriptionPlansResponse extends SafechargeResponse {
/**
* List of the available subscription plans as {@link SubscriptionPlan} objects.
*/
private List subscriptionPlans;
public List getSubscriptionPlans() {
return subscriptionPlans;
}
public void setSubscriptionPlans(List subscriptionPlans) {
this.subscriptionPlans = subscriptionPlans;
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("GetSubscriptionPlansResponse{");
sb.append("subscriptionPlans=")
.append(subscriptionPlans);
sb.append(", ")
.append(super.toString());
sb.append('}');
return sb.toString();
}
}