Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 132 additions & 0 deletions lib/cardcontact.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
import ProcessOut = require('./processout');
declare class CardContact {
private client;
/**
* Address line of the card holder
* @type {string}
*/
private address1;
/**
* Secondary address line of the card holder
* @type {string}
*/
private address2;
/**
* City of the card holder
* @type {string}
*/
private city;
/**
* State of the card holder
* @type {string}
*/
private state;
/**
* Country code of the card holder (ISO-3166, 2 characters format)
* @type {string}
*/
private countryCode;
/**
* ZIP code of the card holder
* @type {string}
*/
private zip;
/**
* CardContact constructor
* @param {ProcessOut} client
* @param {array} prefill (optional)
*/
constructor(client: ProcessOut, prefill: CardContact);
getProcessOutObjectClass(): string;
/**
* Get Address1
* Address line of the card holder
* @return {string}
*/
getAddress1(): string;
/**
* Set Address1
* Address line of the card holder
* @param {string} val
* @return {CardContact}
*/
setAddress1(val: string): CardContact;
/**
* Get Address2
* Secondary address line of the card holder
* @return {string}
*/
getAddress2(): string;
/**
* Set Address2
* Secondary address line of the card holder
* @param {string} val
* @return {CardContact}
*/
setAddress2(val: string): CardContact;
/**
* Get City
* City of the card holder
* @return {string}
*/
getCity(): string;
/**
* Set City
* City of the card holder
* @param {string} val
* @return {CardContact}
*/
setCity(val: string): CardContact;
/**
* Get State
* State of the card holder
* @return {string}
*/
getState(): string;
/**
* Set State
* State of the card holder
* @param {string} val
* @return {CardContact}
*/
setState(val: string): CardContact;
/**
* Get CountryCode
* Country code of the card holder (ISO-3166, 2 characters format)
* @return {string}
*/
getCountryCode(): string;
/**
* Set CountryCode
* Country code of the card holder (ISO-3166, 2 characters format)
* @param {string} val
* @return {CardContact}
*/
setCountryCode(val: string): CardContact;
/**
* Get Zip
* ZIP code of the card holder
* @return {string}
*/
getZip(): string;
/**
* Set Zip
* ZIP code of the card holder
* @param {string} val
* @return {CardContact}
*/
setZip(val: string): CardContact;
/**
* Fills the current object with the new values pulled from the data
* @param {array} data
* @return {CardContact}
*/
fillWithData(data: any): CardContact;
/**
* Implements a JSON custom marshaller
* @return {any}
*/
toJSON(): any;
}
export = CardContact;
//# sourceMappingURL=cardcontact.d.ts.map
1 change: 1 addition & 0 deletions lib/cardcontact.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

195 changes: 195 additions & 0 deletions lib/cardcontact.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/cardcontact.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading