public static final class CustomerService.CustomerUpdateRequest extends PutRequest<Customer>
Request class for CustomerService.update(java.lang.String)
.
Updates a customer object. Supports all of the fields supported when creating a customer.
Modifier and Type | Method and Description |
---|---|
CustomerService.CustomerUpdateRequest |
withAddressLine1(java.lang.String addressLine1)
The first line of the customer’s address.
|
CustomerService.CustomerUpdateRequest |
withAddressLine2(java.lang.String addressLine2)
The second line of the customer’s address.
|
CustomerService.CustomerUpdateRequest |
withAddressLine3(java.lang.String addressLine3)
The third line of the customer’s address.
|
CustomerService.CustomerUpdateRequest |
withCity(java.lang.String city)
The city of the customer’s address.
|
CustomerService.CustomerUpdateRequest |
withCompanyName(java.lang.String companyName)
Customer’s company name.
|
CustomerService.CustomerUpdateRequest |
withCountryCode(java.lang.String countryCode)
ISO 3166-1 alpha-2 code.
|
CustomerService.CustomerUpdateRequest |
withDanishIdentityNumber(java.lang.String danishIdentityNumber)
For Danish customers only.
|
CustomerService.CustomerUpdateRequest |
withEmail(java.lang.String email)
Customer’s email address.
|
CustomerService.CustomerUpdateRequest |
withFamilyName(java.lang.String familyName)
Customer’s surname.
|
CustomerService.CustomerUpdateRequest |
withGivenName(java.lang.String givenName)
Customer’s first name.
|
CustomerService.CustomerUpdateRequest |
withHeader(java.lang.String headerName,
java.lang.String headerValue) |
CustomerService.CustomerUpdateRequest |
withLanguage(java.lang.String language)
ISO 639-1 code.
|
CustomerService.CustomerUpdateRequest |
withMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Key-value store of custom data.
|
CustomerService.CustomerUpdateRequest |
withMetadata(java.lang.String key,
java.lang.String value)
Key-value store of custom data.
|
CustomerService.CustomerUpdateRequest |
withPostalCode(java.lang.String postalCode)
The customer’s postal code.
|
CustomerService.CustomerUpdateRequest |
withRegion(java.lang.String region)
The customer’s address region, county or department.
|
CustomerService.CustomerUpdateRequest |
withSwedishIdentityNumber(java.lang.String swedishIdentityNumber)
For Swedish customers only.
|
execute, executeWrapped
public CustomerService.CustomerUpdateRequest withAddressLine1(java.lang.String addressLine1)
The first line of the customer’s address.
public CustomerService.CustomerUpdateRequest withAddressLine2(java.lang.String addressLine2)
The second line of the customer’s address.
public CustomerService.CustomerUpdateRequest withAddressLine3(java.lang.String addressLine3)
The third line of the customer’s address.
public CustomerService.CustomerUpdateRequest withCity(java.lang.String city)
The city of the customer’s address.
public CustomerService.CustomerUpdateRequest withCompanyName(java.lang.String companyName)
Customer’s company name. Required unless a given_name
and family_name
are provided.
public CustomerService.CustomerUpdateRequest withCountryCode(java.lang.String countryCode)
ISO 3166-1 alpha-2 code.
public CustomerService.CustomerUpdateRequest withDanishIdentityNumber(java.lang.String danishIdentityNumber)
For Danish customers only. The civic/company number (CPR or CVR) of the customer. Must be supplied if the customer’s bank account is denominated in Danish krone (DKK).
public CustomerService.CustomerUpdateRequest withEmail(java.lang.String email)
Customer’s email address. Required in most cases, as this allows GoCardless to send notifications to this customer.
public CustomerService.CustomerUpdateRequest withFamilyName(java.lang.String familyName)
Customer’s surname. Required unless a company_name
is provided.
public CustomerService.CustomerUpdateRequest withGivenName(java.lang.String givenName)
Customer’s first name. Required unless a company_name
is provided.
public CustomerService.CustomerUpdateRequest withLanguage(java.lang.String language)
ISO 639-1 code. Used as the language for notification emails sent by GoCardless if your organisation does not send its own (see compliance requirements). Currently only “en”, “fr”, “de”, “pt”, “es”, “it”, “nl”, “da”, “nb”, “sl”, “sv” are supported. If this is not provided, the language will be chosen based on the country_code
(if supplied) or default to “en”.
public CustomerService.CustomerUpdateRequest withMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
public CustomerService.CustomerUpdateRequest withMetadata(java.lang.String key, java.lang.String value)
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
public CustomerService.CustomerUpdateRequest withPostalCode(java.lang.String postalCode)
The customer’s postal code.
public CustomerService.CustomerUpdateRequest withRegion(java.lang.String region)
The customer’s address region, county or department.
public CustomerService.CustomerUpdateRequest withSwedishIdentityNumber(java.lang.String swedishIdentityNumber)
For Swedish customers only. The civic/company number (personnummer, samordningsnummer, or organisationsnummer) of the customer. Must be supplied if the customer’s bank account is denominated in Swedish krona (SEK). This field cannot be changed once it has been set.
public CustomerService.CustomerUpdateRequest withHeader(java.lang.String headerName, java.lang.String headerValue)