com.safecharge.request.GetSubscriptionPlansRequest Maven / Gradle / Ivy
Show all versions of safecharge-sdk-java Show documentation
package com.safecharge.request;
import com.safecharge.request.builder.SafechargeBuilder;
import com.safecharge.util.Constants;
import com.safecharge.util.ValidChecksum;
import com.safecharge.util.ValidationUtils;
/**
* Copyright (C) 2007-2017 SafeCharge International Group Limited.
*
* Request to obtain available subscription plans for the merchant.
* Creating and updating subscription plans is possible using CPanel, SafeCharge’s back-office tool.
*
* For more information, please contact SafeCharge’s Integration Team at [email protected]
*
* @author Nikola Dichev
* @see CreateSubscriptionRequest
* @see GetSubscriptionsListRequest
* @see CancelSubscriptionRequest
* @since 6/5/2017
*/
@ValidChecksum(orderMappingName = Constants.ChecksumOrderMapping.GET_CASHIER_SUBSCRIPTIONS)
public class GetSubscriptionPlansRequest
extends SafechargeRequest {
public static Builder builder() {
return new Builder();
}
@Override
public String toString() {
final StringBuilder sb = new StringBuilder("GetSubscriptionPlansRequest{");
sb.append(super.toString())
.append('}');
return sb.toString();
}
public static class Builder extends SafechargeBuilder {
/**
* Builds the request.
*
* @return {@link SafechargeRequest} object build from the params set by this builder
*/
@Override
public SafechargeBaseRequest build() {
return ValidationUtils.validate(super.build(new GetSubscriptionPlansRequest()));
}
}
}