public class

Source

extends Object
implements Serializable
java.lang.Object
   ↳ com.wsl.modules.stripe.complextypes.Source

Class Overview

Source represents the inputs for a source type. Datamapper seems to have trouble interpreting the native Stripe types, so this removes the extraneous overhead to simplify.

Summary

Fields
private String addressCity
private String addressCountry
private String addressLine1
private String addressLine2
private String addressState
private String addressZip
private String cvc
private String expMonth
private String expYear
private String name
private String number
Public Constructors
Source()
Public Methods
String getAddressCity()
String getAddressCountry()
String getAddressLine1()
String getAddressLine2()
String getAddressState()
String getAddressZip()
String getCvc()
String getExpMonth()
String getExpYear()
String getName()
String getNumber()
void setAddressCity(String addressCity)
void setAddressCountry(String addressCountry)
void setAddressLine1(String addressLine1)
void setAddressLine2(String addressLine2)
void setAddressState(String addressState)
void setAddressZip(String addressZip)
void setCvc(String cvc)
void setExpMonth(String expMonth)
void setExpYear(String expYear)
void setName(String name)
void setNumber(String number)
Map<String, Object> toDictionary()
Turns the object into a Stripe API-compliant dictionary with the correct values.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private String addressCity

private String addressCountry

private String addressLine1

private String addressLine2

private String addressState

private String addressZip

private String cvc

private String expMonth

private String expYear

private String name

private String number

Public Constructors

public Source ()

Public Methods

public String getAddressCity ()

Returns
  • the addressCity

public String getAddressCountry ()

Returns
  • the addressCountry

public String getAddressLine1 ()

Returns
  • the addressLine1

public String getAddressLine2 ()

Returns
  • the addressLine2

public String getAddressState ()

Returns
  • the addressState

public String getAddressZip ()

Returns
  • the addressZip

public String getCvc ()

Returns
  • the cvc

public String getExpMonth ()

Returns
  • the expMonth

public String getExpYear ()

Returns
  • the expYear

public String getName ()

Returns
  • the name

public String getNumber ()

Returns
  • the number

public void setAddressCity (String addressCity)

Parameters
addressCity The addressCity to set

public void setAddressCountry (String addressCountry)

Parameters
addressCountry The addressCountry to set

public void setAddressLine1 (String addressLine1)

Parameters
addressLine1 The addressLine1 to set

public void setAddressLine2 (String addressLine2)

Parameters
addressLine2 The addressLine2 to set

public void setAddressState (String addressState)

Parameters
addressState The addressState to set

public void setAddressZip (String addressZip)

Parameters
addressZip The addressZip to set

public void setCvc (String cvc)

Parameters
cvc The cvc to set

public void setExpMonth (String expMonth)

Parameters
expMonth The expMonth to set

public void setExpYear (String expYear)

Parameters
expYear The expYear to set

public void setName (String name)

Parameters
name The name to set

public void setNumber (String number)

Parameters
number The number to set

public Map<String, Object> toDictionary ()

Turns the object into a Stripe API-compliant dictionary with the correct values.

Returns
  • A map that represents the JSON dictionary.