Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Welcome to the Stark Infra Java SDK! This tool is made for Java developers who want to easily integrate with our API. This SDK version is compatible with the Stark Infra API v2.
package com.starkinfra;
import com.starkinfra.utils.Rest;
import com.starkinfra.utils.Resource;
import com.starkinfra.utils.Generator;
import com.starkinfra.utils.SubResource;
import java.util.Map;
import java.util.List;
import java.util.HashMap;
import java.util.ArrayList;
public final class IssuingCard extends Resource {
/**
* IssuingCard object
*
* The IssuingCard object displays the information of the cards created in your Workspace.
* Sensitive information will only be returned when the "expand" parameter is used, to avoid security concerns.
*
* When you initialize a IssuingCard, the entity will not be automatically
* created in the Stark Infra API. The 'create' function sends the objects
* to the Stark Infra API and returns the created object.
*
* Parameters:
* holderName [string]: card holder name. ex: "Tony Stark"
* holderTaxId [string]: card holder tax ID. ex: "012.345.678-90"
* holderExternalId [string]: card holder unique id, generated by the user to avoid duplicated holders. ex: "my-entity/123"
* displayName [string, default ""]: card displayed name. ex: "ANTHONY STARK"
* rules [list of IssuingRule or HashMap, default []]: [EXPANDABLE] list of card spending rules.
* productId [string, default ""]: card product ID to which the card is bound. ex: "53810200"
* tags [list of strings, default []]: list of strings for tagging. ex: ["travel", "food"]
* streetLine1 [string, default sub-issuer street line 1]: card holder main address. ex: "Av. Paulista, 200"
* streetLine2 [string, default sub-issuer street line 2]: card holder address complement. ex: "Apto. 123"
* district [string, default sub-issuer district]: card holder address district / neighbourhood. ex: "Bela Vista"
* city [string, default sub-issuer city]: card holder address city. ex: "Rio de Janeiro"
* stateCode [string, default sub-issuer state code]: card holder address state. ex: "GO"
* zipCode [string, default sub-issuer zip code]: card holder address zip code. ex: "01311-200"
* id [string]: unique id returned when IssuingCard is created. ex: "5656565656565656"
* holderId [string]: card holder unique id. ex: "5656565656565656"
* type [string]: card type. ex: "virtual"
* status [string]: current IssuingCard status. ex: "canceled" or "active"
* number [string]: [EXPANDABLE] masked card number. Expand to unmask the value. ex: "123".
* securityCode [string]: [EXPANDABLE] masked card verification value (cvv). Expand to unmask the value. ex: "123".
* expiration [string]: [EXPANDABLE] masked card expiration datetime. Expand to unmask the value. ex: "2020-03-10 10:30:00.000000+00:00"
* updated [string]: latest update datetime for the IssuingCard. ex: "2020-03-10 10:30:00.000000+00:00"
* created [string]: creation datetime for the IssuingCard. ex: "2020-03-10 10:30:00.000000+00:00"
*
*/
static ClassData data = new ClassData(IssuingCard.class, "IssuingCard");
public String holderName;
public String holderTaxId;
public String holderExternalId;
public String displayName;
public List rules;
public String productId;
public String[] tags;
public String streetLine1;
public String streetLine2;
public String district;
public String city;
public String stateCode;
public String zipCode;
public String holderId;
public String type;
public String status;
public String number;
public String securityCode;
public String expiration;
public String updated;
public String created;
/**
* IssuingCard object
*
* The IssuingCard object displays Card's information created in your Workspace.
*
* When you initialize a IssuingCard, the entity will not be automatically
* created in the Stark Infra API. The 'create' function sends the objects
* to the Stark Infra API and returns the created object.
*
* Parameters:
* @param holderName [string]: card holder name. ex: "Tony Stark"
* @param holderTaxId [string]: card holder tax ID. ex: "012.345.678-90"
* @param holderExternalId [string]: card holder unique id, generated by the user to avoid duplicated holders. ex: "my-entity/123"
* @param displayName [string, default ""]: card displayed name. ex: "ANTHONY STARK"
* @param rules [list of IssuingRule or HashMap, default []]: [EXPANDABLE] list of card spending rules.
* @param productId [string, default ""]: card product ID to which the card is bound. ex: "53810200"
* @param tags [list of strings, default []]: list of strings for tagging. ex: ["travel", "food"]
* @param streetLine1 [string, default sub-issuer street line 1]: card holder main address. ex: "Av. Paulista, 200"
* @param streetLine2 [string, default sub-issuer street line 2]: card holder address complement. ex: "Apto. 123"
* @param district [string, default sub-issuer district]: card holder address district / neighbourhood. ex: "Bela Vista"
* @param city [string, default sub-issuer city]: card holder address city. ex: "Rio de Janeiro"
* @param stateCode [string, default sub-issuer state code]: card holder address state. ex: "GO"
* @param zipCode [string, default sub-issuer zip code]: card holder address zip code. ex: "01311-200"
* @param id [string]: unique id returned when IssuingCard is created. ex: "5656565656565656"
* @param holderId [string]: card holder unique id. ex: "5656565656565656"
* @param type [string]: card type. ex: "virtual"
* @param status [string]: current IssuingCard status. ex: "canceled" or "active"
* @param number [string]: [EXPANDABLE] masked card number. Expand to unmask the value. ex: "123".
* @param securityCode [string]: [EXPANDABLE] masked card verification value (cvv). Expand to unmask the value. ex: "123".
* @param expiration [string]: [EXPANDABLE] masked card expiration datetime. Expand to unmask the value. ex: "2020-03-10 10:30:00.000000+00:00"
* @param updated [string]: latest update datetime for the IssuingCard. ex: "2020-03-10 10:30:00.000000+00:00"
* @param created [string]: creation datetime for the IssuingCard. ex: "2020-03-10 10:30:00.000000+00:00"
*/
public IssuingCard(String holderName, String holderTaxId, String holderExternalId, String displayName,
List rules, String productId, String[] tags, String streetLine1, String streetLine2,
String district, String city, String stateCode, String zipCode, String id, String holderId,
String type, String status, String number, String securityCode, String expiration,
String updated, String created
) {
super(id);
this.holderName = holderName;
this.holderTaxId = holderTaxId;
this.holderExternalId = holderExternalId;
this.displayName = displayName;
this.rules = rules;
this.productId = productId;
this.tags = tags;
this.streetLine1 = streetLine1;
this.streetLine2 = streetLine2;
this.district = district;
this.city = city;
this.stateCode = stateCode;
this.zipCode = zipCode;
this.holderId = holderId;
this.type = type;
this.status = status;
this.number = number;
this.securityCode = securityCode;
this.expiration = expiration;
this.updated = updated;
this.created = created;
}
/**
* IssuingCard object
*
* The IssuingCard object displays Card's information created in your Workspace.
*
* When you initialize a IssuingCard, the entity will not be automatically
* created in the Stark Infra API. The 'create' function sends the objects
* to the Stark Infra API and returns the created object.
*
* Parameters (required):
* @param data map of properties for the creation of the IssuingCard
* holderName [string]: card holder name. ex: "Tony Stark"
* holderTaxId [string]: card holder tax ID. ex: "012.345.678-90"
* holderExternalId [string]: card holder unique id, generated by the user to avoid duplicated holders. ex: "my-entity/123"
*
* Parameters (optional):
* displayName [string, default ""]: card displayed name. ex: "ANTHONY STARK"
* rules [list of IssuingRule or HashMap, default []]: [EXPANDABLE] list of card spending rules.
* productId [string, default ""]: product ID to which the card is bound. ex: "53810200"
* tags [list of strings, default []]: list of strings for tagging. ex: ["travel", "food"]
* streetLine1 [string, default sub-issuer street line 1]: card holder main address. ex: "Av. Paulista, 200"
* streetLine2 [string, default sub-issuer street line 2]: card holder address complement. ex: "Apto. 123"
* district [string, default sub-issuer district]: card holder address district / neighbourhood. ex: "Bela Vista"
* city [string, default sub-issuer city]: card holder address city. ex: "Rio de Janeiro"
* stateCode [string, default sub-issuer state code]: card holder address state. ex: "GO"
* zipCode [string, default sub-issuer zip code]: card holder address zip code. ex: "01311-200"
*
* Attributes (return-only):
* id [string]: unique id returned when IssuingCard is created. ex: "5656565656565656"
* holderId [string]: card holder unique id. ex: "5656565656565656"
* type [string]: card type. ex: "virtual"
* status [string]: current IssuingCard status. ex: "canceled" or "active"
* number [string]: [EXPANDABLE] masked card number. Expand to unmask the value. ex: "123".
* securityCode [string]: [EXPANDABLE] masked card verification value (cvv). Expand to unmask the value. ex: "123".
* expiration [string]: [EXPANDABLE] masked card expiration datetime. Expand to unmask the value. ex: "2020-03-10 10:30:00.000000+00:00".
* updated [string]: latest update datetime for the IssuingCard. ex: "2020-03-10 10:30:00.000000+00:00"
* created [string]: creation datetime for the IssuingCard. ex: "2020-03-10 10:30:00.000000+00:00"
* @throws Exception error in the request
*/
public IssuingCard(Map data) throws Exception {
super(null);
HashMap dataCopy = new HashMap<>(data);
this.tags = (String[]) dataCopy.remove("tags");
this.holderExternalId = (String) dataCopy.remove("holderExternalId");
this.holderName = (String) dataCopy.remove("holderName");
this.holderTaxId = (String) dataCopy.remove("holderTaxId");
this.displayName = (String) dataCopy.remove("displayName");
this.rules = IssuingRule.parseRules((List