|
| 1 | +/** |
| 2 | + * This file is automatically created by Recurly's OpenAPI generation process and thus any edits you |
| 3 | + * make by hand will be lost. If you wish to make a change to this file, please create a Github |
| 4 | + * issue explaining the changes you need and we will usher them to the appropriate places. |
| 5 | + */ |
| 6 | +package com.recurly.v3.requests; |
| 7 | + |
| 8 | +import com.google.gson.annotations.Expose; |
| 9 | +import com.google.gson.annotations.SerializedName; |
| 10 | +import com.recurly.v3.Request; |
| 11 | +import com.recurly.v3.resources.*; |
| 12 | +import java.util.List; |
| 13 | + |
| 14 | +public class RecoveryAccountCreate extends Request { |
| 15 | + |
| 16 | + @SerializedName("address") |
| 17 | + @Expose |
| 18 | + private RecoveryAddress address; |
| 19 | + |
| 20 | + /** |
| 21 | + * If the premium Wallet feature is enabled, more than one payment method can be associated with |
| 22 | + * an account, and one can be designated as a primary and one as a backup. Without the Wallet |
| 23 | + * feature, only one payment method will be accepted. |
| 24 | + */ |
| 25 | + @SerializedName("billing_infos") |
| 26 | + @Expose |
| 27 | + private List<RecoveryBillingInfoCreate> billingInfos; |
| 28 | + |
| 29 | + /** The unique identifier of the account. This cannot be changed once the account is created. */ |
| 30 | + @SerializedName("code") |
| 31 | + @Expose |
| 32 | + private String code; |
| 33 | + |
| 34 | + /** |
| 35 | + * The custom fields will only be altered when they are included in a request. Sending an empty |
| 36 | + * array will not remove any existing values. To remove a field send the name with a null or empty |
| 37 | + * value. |
| 38 | + */ |
| 39 | + @SerializedName("custom_fields") |
| 40 | + @Expose |
| 41 | + private List<CustomField> customFields; |
| 42 | + |
| 43 | + /** |
| 44 | + * Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign |
| 45 | + * should be assigned to this account. For sites without multiple dunning campaigns enabled, the |
| 46 | + * default dunning campaign will always be used. |
| 47 | + */ |
| 48 | + @SerializedName("dunning_campaign_id") |
| 49 | + @Expose |
| 50 | + private String dunningCampaignId; |
| 51 | + |
| 52 | + /** The email address used for communicating with this customer. */ |
| 53 | + @SerializedName("email") |
| 54 | + @Expose |
| 55 | + private String email; |
| 56 | + |
| 57 | + public RecoveryAddress getAddress() { |
| 58 | + return this.address; |
| 59 | + } |
| 60 | + |
| 61 | + /** @param address */ |
| 62 | + public void setAddress(final RecoveryAddress address) { |
| 63 | + this.address = address; |
| 64 | + } |
| 65 | + |
| 66 | + /** |
| 67 | + * If the premium Wallet feature is enabled, more than one payment method can be associated with |
| 68 | + * an account, and one can be designated as a primary and one as a backup. Without the Wallet |
| 69 | + * feature, only one payment method will be accepted. |
| 70 | + */ |
| 71 | + public List<RecoveryBillingInfoCreate> getBillingInfos() { |
| 72 | + return this.billingInfos; |
| 73 | + } |
| 74 | + |
| 75 | + /** |
| 76 | + * @param billingInfos If the premium Wallet feature is enabled, more than one payment method can |
| 77 | + * be associated with an account, and one can be designated as a primary and one as a backup. |
| 78 | + * Without the Wallet feature, only one payment method will be accepted. |
| 79 | + */ |
| 80 | + public void setBillingInfos(final List<RecoveryBillingInfoCreate> billingInfos) { |
| 81 | + this.billingInfos = billingInfos; |
| 82 | + } |
| 83 | + |
| 84 | + /** The unique identifier of the account. This cannot be changed once the account is created. */ |
| 85 | + public String getCode() { |
| 86 | + return this.code; |
| 87 | + } |
| 88 | + |
| 89 | + /** |
| 90 | + * @param code The unique identifier of the account. This cannot be changed once the account is |
| 91 | + * created. |
| 92 | + */ |
| 93 | + public void setCode(final String code) { |
| 94 | + this.code = code; |
| 95 | + } |
| 96 | + |
| 97 | + /** |
| 98 | + * The custom fields will only be altered when they are included in a request. Sending an empty |
| 99 | + * array will not remove any existing values. To remove a field send the name with a null or empty |
| 100 | + * value. |
| 101 | + */ |
| 102 | + public List<CustomField> getCustomFields() { |
| 103 | + return this.customFields; |
| 104 | + } |
| 105 | + |
| 106 | + /** |
| 107 | + * @param customFields The custom fields will only be altered when they are included in a request. |
| 108 | + * Sending an empty array will not remove any existing values. To remove a field send the name |
| 109 | + * with a null or empty value. |
| 110 | + */ |
| 111 | + public void setCustomFields(final List<CustomField> customFields) { |
| 112 | + this.customFields = customFields; |
| 113 | + } |
| 114 | + |
| 115 | + /** |
| 116 | + * Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign |
| 117 | + * should be assigned to this account. For sites without multiple dunning campaigns enabled, the |
| 118 | + * default dunning campaign will always be used. |
| 119 | + */ |
| 120 | + public String getDunningCampaignId() { |
| 121 | + return this.dunningCampaignId; |
| 122 | + } |
| 123 | + |
| 124 | + /** |
| 125 | + * @param dunningCampaignId Unique ID to identify a dunning campaign. Used to specify if a |
| 126 | + * non-default dunning campaign should be assigned to this account. For sites without multiple |
| 127 | + * dunning campaigns enabled, the default dunning campaign will always be used. |
| 128 | + */ |
| 129 | + public void setDunningCampaignId(final String dunningCampaignId) { |
| 130 | + this.dunningCampaignId = dunningCampaignId; |
| 131 | + } |
| 132 | + |
| 133 | + /** The email address used for communicating with this customer. */ |
| 134 | + public String getEmail() { |
| 135 | + return this.email; |
| 136 | + } |
| 137 | + |
| 138 | + /** @param email The email address used for communicating with this customer. */ |
| 139 | + public void setEmail(final String email) { |
| 140 | + this.email = email; |
| 141 | + } |
| 142 | +} |
0 commit comments