@@ -36,8 +36,9 @@ import kotlin.jvm.optionals.getOrNull
3636/* *
3737 * This endpoint can be used to update the `payment_provider`, `payment_provider_id`, `name`,
3838 * `email`, `email_delivery`, `tax_id`, `auto_collection`, `metadata`, `shipping_address`,
39- * `billing_address`, and `additional_emails` of an existing customer. Other fields on a customer
40- * are currently immutable.
39+ * `billing_address`, `additional_emails`, and `currency` of an existing customer. `currency` can
40+ * only be set if it has not already been set on the customer. Other fields on a customer are
41+ * currently immutable.
4142 */
4243class CustomerUpdateParams
4344private constructor (
@@ -94,8 +95,9 @@ private constructor(
9495 fun billingAddress (): Optional <AddressInput > = body.billingAddress()
9596
9697 /* *
97- * An ISO 4217 currency string used for the customer's invoices and balance. If not set at
98- * creation time, will be set at subscription creation time.
98+ * An ISO 4217 currency string used for the customer's invoices and balance. This can only be
99+ * set if the customer does not already have a currency configured. If not set at creation or
100+ * update time, it will be set at subscription creation time.
99101 *
100102 * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the server
101103 * responded with an unexpected value).
@@ -682,8 +684,9 @@ private constructor(
682684 }
683685
684686 /* *
685- * An ISO 4217 currency string used for the customer's invoices and balance. If not set at
686- * creation time, will be set at subscription creation time.
687+ * An ISO 4217 currency string used for the customer's invoices and balance. This can only
688+ * be set if the customer does not already have a currency configured. If not set at
689+ * creation or update time, it will be set at subscription creation time.
687690 */
688691 fun currency (currency : String? ) = apply { body.currency(currency) }
689692
@@ -1506,8 +1509,9 @@ private constructor(
15061509 fun billingAddress (): Optional <AddressInput > = billingAddress.getOptional(" billing_address" )
15071510
15081511 /* *
1509- * An ISO 4217 currency string used for the customer's invoices and balance. If not set at
1510- * creation time, will be set at subscription creation time.
1512+ * An ISO 4217 currency string used for the customer's invoices and balance. This can only
1513+ * be set if the customer does not already have a currency configured. If not set at
1514+ * creation or update time, it will be set at subscription creation time.
15111515 *
15121516 * @throws OrbInvalidDataException if the JSON field has an unexpected type (e.g. if the
15131517 * server responded with an unexpected value).
@@ -2154,8 +2158,9 @@ private constructor(
21542158 }
21552159
21562160 /* *
2157- * An ISO 4217 currency string used for the customer's invoices and balance. If not set
2158- * at creation time, will be set at subscription creation time.
2161+ * An ISO 4217 currency string used for the customer's invoices and balance. This can
2162+ * only be set if the customer does not already have a currency configured. If not set
2163+ * at creation or update time, it will be set at subscription creation time.
21592164 */
21602165 fun currency (currency : String? ) = currency(JsonField .ofNullable(currency))
21612166
0 commit comments