All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.chargebee.models.CustomerEntitlement Maven / Gradle / Ivy

There is a newer version: 3.28.0
Show newest version
package com.chargebee.models;

import com.chargebee.*;
import com.chargebee.internal.*;
import com.chargebee.filters.*;
import com.chargebee.filters.enums.SortOrder;
import com.chargebee.internal.HttpUtil.Method;
import com.chargebee.models.enums.*;
import org.json.*;
import java.io.*;
import java.sql.Timestamp;
import java.util.*;

public class CustomerEntitlement extends Resource {

    //Constructors
    //============

    public CustomerEntitlement(String jsonStr) {
        super(jsonStr);
    }

    public CustomerEntitlement(JSONObject jsonObj) {
        super(jsonObj);
    }

    // Fields
    //=======

    public String customerId() {
        return reqString("customer_id");
    }

    public String subscriptionId() {
        return optString("subscription_id");
    }

    public String featureId() {
        return optString("feature_id");
    }

    public String value() {
        return optString("value");
    }

    public String name() {
        return optString("name");
    }

    public Boolean isEnabled() {
        return reqBoolean("is_enabled");
    }

    // Operations
    //===========

    public static ListRequest entitlementsForCustomer(String id) {
        String uri = uri("customers", nullCheck(id), "customer_entitlements");
        return new ListRequest(uri);
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy