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

com.starkinfra.CreditSigner Maven / Gradle / Ivy

package com.starkinfra;

import com.starkinfra.utils.Resource;

import java.util.Map;
import java.util.HashMap;


public final class CreditSigner extends Resource {
    /**
     * CreditSigner object
     * 

* CreditNote signer's information. *

* Parameters: * name [string]: signer's name. ex: "Tony Stark" * contact [string]: signer's contact information. ex: "[email protected]" * method [string]: delivery method for the contract. ex: "link" * id [string]: unique id returned when the CreditSigner is created. ex: "5656565656565656" * */ static ClassData data = new ClassData(CreditSigner.class, "CreditSigner"); public String name; public String contact; public String method; /** * CreditSigner object *

* CreditNote signer's information. *

* Parameters: * @param name [string]: signer's name. ex: "Tony Stark" * @param contact [string]: signer's contact information. ex: "[email protected]" * @param method [string]: delivery method for the contract. ex: "link" * @param id [string]: unique id returned when the CreditSigner is created. ex: "5656565656565656" */ public CreditSigner(String name, String contact, String method, String id){ super(id); this.name = name; this.contact = contact; this.method = method; } /** * CreditSigner object *

* CreditNote signer's information. *

* Parameters (required): * @param data map of properties for the creation of the CreditSigner * name [string]: signer's name. ex: "Tony Stark" * contact [string]: signer's contact information. ex: "[email protected]" * method [string]: delivery method for the contract. ex: "link" *

* Attributes (return-only): * id [string]: unique id returned when the CreditSigner is created. ex: "5656565656565656" */ public CreditSigner(Map data) throws Exception { super(null); HashMap dataCopy = new HashMap<>(data); this.name = (String) dataCopy.remove("name"); this.contact = (String) dataCopy.remove("contact"); this.method = (String) dataCopy.remove("method"); if (!dataCopy.isEmpty()) { throw new Exception("Unknown parameters used in constructor: [" + String.join(", ", dataCopy.keySet()) + "]"); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy