Skip to content

Commit ea29ad1

Browse files
chore: generate code
1 parent 2676419 commit ea29ad1

10 files changed

Lines changed: 152 additions & 84 deletions

‎src/main/java/com/sumup/sdk/clients/CheckoutsAsyncClient.java‎

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,15 @@ public CheckoutsAsyncClient(ApiClient apiClient) {
4343
/**
4444
* Create a checkout
4545
*
46-
* <p>Creates a new payment checkout resource. The unique `checkout_reference` created by this
47-
* request, is used for further manipulation of the checkout. For 3DS checkouts, add the
48-
* `redirect_url` parameter to your request body schema. To use the [Hosted
49-
* Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) page, set the
50-
* `hosted_checkout.enabled` to `true`. Follow by processing a checkout to charge the provided
51-
* payment instrument.
46+
* <p>Creates a payment checkout for the specified merchant, amount, and currency. Supply a
47+
* `checkout_reference` to identify the payment attempt in your own systems. Creating a checkout
48+
* does not charge a payment instrument. Set `hosted_checkout.enabled` to `true` to receive a
49+
* [Hosted Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) URL
50+
* where the customer can complete the payment. Use `redirect_url` for redirect-based payment and
51+
* 3DS flows. If `return_url` is provided, SumUp sends processing updates to that backend callback
52+
* URL. Complete the payment through [Hosted
53+
* Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) or the
54+
* [Payment Widget](https://developer.sumup.com/online-payments/checkouts/card-widget).
5255
*
5356
* <p>Operation ID: CreateCheckout
5457
*
@@ -66,12 +69,15 @@ public CompletableFuture<com.sumup.sdk.models.Checkout> create(
6669
/**
6770
* Create a checkout
6871
*
69-
* <p>Creates a new payment checkout resource. The unique `checkout_reference` created by this
70-
* request, is used for further manipulation of the checkout. For 3DS checkouts, add the
71-
* `redirect_url` parameter to your request body schema. To use the [Hosted
72-
* Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) page, set the
73-
* `hosted_checkout.enabled` to `true`. Follow by processing a checkout to charge the provided
74-
* payment instrument.
72+
* <p>Creates a payment checkout for the specified merchant, amount, and currency. Supply a
73+
* `checkout_reference` to identify the payment attempt in your own systems. Creating a checkout
74+
* does not charge a payment instrument. Set `hosted_checkout.enabled` to `true` to receive a
75+
* [Hosted Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) URL
76+
* where the customer can complete the payment. Use `redirect_url` for redirect-based payment and
77+
* 3DS flows. If `return_url` is provided, SumUp sends processing updates to that backend callback
78+
* URL. Complete the payment through [Hosted
79+
* Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) or the
80+
* [Payment Widget](https://developer.sumup.com/online-payments/checkouts/card-widget).
7581
*
7682
* <p>Operation ID: CreateCheckout
7783
*
@@ -477,7 +483,10 @@ public CompletableFuture<com.sumup.sdk.models.CheckoutSuccess2> process(
477483
/**
478484
* Update a checkout
479485
*
480-
* <p>Updates an identified checkout resource.
486+
* <p>Updates the amount, currency, description, reference, expiration, or customer associated
487+
* with an existing checkout. Only the supplied fields are updated. This request changes the
488+
* checkout details; it does not charge a payment instrument. Process the checkout separately to
489+
* attempt a payment.
481490
*
482491
* <p>Operation ID: UpdateCheckout
483492
*
@@ -496,7 +505,10 @@ public CompletableFuture<com.sumup.sdk.models.Checkout> update(
496505
/**
497506
* Update a checkout
498507
*
499-
* <p>Updates an identified checkout resource.
508+
* <p>Updates the amount, currency, description, reference, expiration, or customer associated
509+
* with an existing checkout. Only the supplied fields are updated. This request changes the
510+
* checkout details; it does not charge a payment instrument. Process the checkout separately to
511+
* attempt a payment.
500512
*
501513
* <p>Operation ID: UpdateCheckout
502514
*

‎src/main/java/com/sumup/sdk/clients/CheckoutsClient.java‎

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@ public CheckoutsClient(ApiClient apiClient) {
4242
/**
4343
* Create a checkout
4444
*
45-
* <p>Creates a new payment checkout resource. The unique `checkout_reference` created by this
46-
* request, is used for further manipulation of the checkout. For 3DS checkouts, add the
47-
* `redirect_url` parameter to your request body schema. To use the [Hosted
48-
* Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) page, set the
49-
* `hosted_checkout.enabled` to `true`. Follow by processing a checkout to charge the provided
50-
* payment instrument.
45+
* <p>Creates a payment checkout for the specified merchant, amount, and currency. Supply a
46+
* `checkout_reference` to identify the payment attempt in your own systems. Creating a checkout
47+
* does not charge a payment instrument. Set `hosted_checkout.enabled` to `true` to receive a
48+
* [Hosted Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) URL
49+
* where the customer can complete the payment. Use `redirect_url` for redirect-based payment and
50+
* 3DS flows. If `return_url` is provided, SumUp sends processing updates to that backend callback
51+
* URL. Complete the payment through [Hosted
52+
* Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) or the
53+
* [Payment Widget](https://developer.sumup.com/online-payments/checkouts/card-widget).
5154
*
5255
* <p>Operation ID: CreateCheckout
5356
*
@@ -65,12 +68,15 @@ public com.sumup.sdk.models.Checkout create(com.sumup.sdk.models.CheckoutCreateR
6568
/**
6669
* Create a checkout
6770
*
68-
* <p>Creates a new payment checkout resource. The unique `checkout_reference` created by this
69-
* request, is used for further manipulation of the checkout. For 3DS checkouts, add the
70-
* `redirect_url` parameter to your request body schema. To use the [Hosted
71-
* Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) page, set the
72-
* `hosted_checkout.enabled` to `true`. Follow by processing a checkout to charge the provided
73-
* payment instrument.
71+
* <p>Creates a payment checkout for the specified merchant, amount, and currency. Supply a
72+
* `checkout_reference` to identify the payment attempt in your own systems. Creating a checkout
73+
* does not charge a payment instrument. Set `hosted_checkout.enabled` to `true` to receive a
74+
* [Hosted Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) URL
75+
* where the customer can complete the payment. Use `redirect_url` for redirect-based payment and
76+
* 3DS flows. If `return_url` is provided, SumUp sends processing updates to that backend callback
77+
* URL. Complete the payment through [Hosted
78+
* Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) or the
79+
* [Payment Widget](https://developer.sumup.com/online-payments/checkouts/card-widget).
7480
*
7581
* <p>Operation ID: CreateCheckout
7682
*
@@ -465,7 +471,10 @@ public com.sumup.sdk.models.CheckoutSuccess2 process(
465471
/**
466472
* Update a checkout
467473
*
468-
* <p>Updates an identified checkout resource.
474+
* <p>Updates the amount, currency, description, reference, expiration, or customer associated
475+
* with an existing checkout. Only the supplied fields are updated. This request changes the
476+
* checkout details; it does not charge a payment instrument. Process the checkout separately to
477+
* attempt a payment.
469478
*
470479
* <p>Operation ID: UpdateCheckout
471480
*
@@ -484,7 +493,10 @@ public com.sumup.sdk.models.Checkout update(
484493
/**
485494
* Update a checkout
486495
*
487-
* <p>Updates an identified checkout resource.
496+
* <p>Updates the amount, currency, description, reference, expiration, or customer associated
497+
* with an existing checkout. Only the supplied fields are updated. This request changes the
498+
* checkout details; it does not charge a payment instrument. Process the checkout separately to
499+
* attempt a payment.
488500
*
489501
* <p>Operation ID: UpdateCheckout
490502
*

‎src/main/java/com/sumup/sdk/clients/MembersAsyncClient.java‎

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ public MembersAsyncClient(ApiClient apiClient) {
3232
/**
3333
* Create a member
3434
*
35-
* <p>Create a merchant member.
35+
* <p>Adds a member to the merchant account with the specified roles. By default, sends an
36+
* invitation email to the provided address. The recipient must accept the invitation to join the
37+
* account. When `is_managed_user` is `true`, creates a managed user with the provided password
38+
* and optional nickname and assigns the roles directly, without sending an invitation.
3639
*
3740
* <p>Operation ID: CreateMerchantMember
3841
*
@@ -52,7 +55,10 @@ public CompletableFuture<com.sumup.sdk.models.Member> create(
5255
/**
5356
* Create a member
5457
*
55-
* <p>Create a merchant member.
58+
* <p>Adds a member to the merchant account with the specified roles. By default, sends an
59+
* invitation email to the provided address. The recipient must accept the invitation to join the
60+
* account. When `is_managed_user` is `true`, creates a managed user with the provided password
61+
* and optional nickname and assigns the roles directly, without sending an invitation.
5662
*
5763
* <p>Operation ID: CreateMerchantMember
5864
*
@@ -266,7 +272,11 @@ public CompletableFuture<com.sumup.sdk.models.ListMerchantMembersResponse> list(
266272
/**
267273
* Update a member
268274
*
269-
* <p>Update the merchant member.
275+
* <p>Updates a merchant member and returns the updated member. Providing `roles` replaces the
276+
* member's assigned roles and can grant or revoke access. Providing `metadata` replaces the
277+
* entire metadata object. For managed users, `user.nickname` changes the display name and
278+
* `user.password` replaces the password. Updating the password also enables the managed user
279+
* account.
270280
*
271281
* <p>Operation ID: UpdateMerchantMember
272282
*
@@ -289,7 +299,11 @@ public CompletableFuture<com.sumup.sdk.models.Member> update(
289299
/**
290300
* Update a member
291301
*
292-
* <p>Update the merchant member.
302+
* <p>Updates a merchant member and returns the updated member. Providing `roles` replaces the
303+
* member's assigned roles and can grant or revoke access. Providing `metadata` replaces the
304+
* entire metadata object. For managed users, `user.nickname` changes the display name and
305+
* `user.password` replaces the password. Updating the password also enables the managed user
306+
* account.
293307
*
294308
* <p>Operation ID: UpdateMerchantMember
295309
*
@@ -407,19 +421,6 @@ public ListMerchantMembersQueryParams userId(java.util.UUID value) {
407421
return this;
408422
}
409423

410-
/**
411-
* Sets the user.type query parameter.
412-
*
413-
* @param value Filter the returned members by user type. Repeat this parameter to include
414-
* multiple user types.
415-
* @return This ListMerchantMembersQueryParams instance.
416-
*/
417-
public ListMerchantMembersQueryParams userType(
418-
java.util.List<com.sumup.sdk.models.UserType> value) {
419-
this.values.put("user.type", Objects.requireNonNull(value, "userType"));
420-
return this;
421-
}
422-
423424
/**
424425
* Converts query parameters to a map understood by ApiClient.
425426
*

‎src/main/java/com/sumup/sdk/clients/MembersClient.java‎

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ public MembersClient(ApiClient apiClient) {
3131
/**
3232
* Create a member
3333
*
34-
* <p>Create a merchant member.
34+
* <p>Adds a member to the merchant account with the specified roles. By default, sends an
35+
* invitation email to the provided address. The recipient must accept the invitation to join the
36+
* account. When `is_managed_user` is `true`, creates a managed user with the provided password
37+
* and optional nickname and assigns the roles directly, without sending an invitation.
3538
*
3639
* <p>Operation ID: CreateMerchantMember
3740
*
@@ -51,7 +54,10 @@ public com.sumup.sdk.models.Member create(
5154
/**
5255
* Create a member
5356
*
54-
* <p>Create a merchant member.
57+
* <p>Adds a member to the merchant account with the specified roles. By default, sends an
58+
* invitation email to the provided address. The recipient must accept the invitation to join the
59+
* account. When `is_managed_user` is `true`, creates a managed user with the provided password
60+
* and optional nickname and assigns the roles directly, without sending an invitation.
5561
*
5662
* <p>Operation ID: CreateMerchantMember
5763
*
@@ -258,7 +264,11 @@ public com.sumup.sdk.models.ListMerchantMembersResponse list(
258264
/**
259265
* Update a member
260266
*
261-
* <p>Update the merchant member.
267+
* <p>Updates a merchant member and returns the updated member. Providing `roles` replaces the
268+
* member's assigned roles and can grant or revoke access. Providing `metadata` replaces the
269+
* entire metadata object. For managed users, `user.nickname` changes the display name and
270+
* `user.password` replaces the password. Updating the password also enables the managed user
271+
* account.
262272
*
263273
* <p>Operation ID: UpdateMerchantMember
264274
*
@@ -281,7 +291,11 @@ public com.sumup.sdk.models.Member update(
281291
/**
282292
* Update a member
283293
*
284-
* <p>Update the merchant member.
294+
* <p>Updates a merchant member and returns the updated member. Providing `roles` replaces the
295+
* member's assigned roles and can grant or revoke access. Providing `metadata` replaces the
296+
* entire metadata object. For managed users, `user.nickname` changes the display name and
297+
* `user.password` replaces the password. Updating the password also enables the managed user
298+
* account.
285299
*
286300
* <p>Operation ID: UpdateMerchantMember
287301
*
@@ -399,19 +413,6 @@ public ListMerchantMembersQueryParams userId(java.util.UUID value) {
399413
return this;
400414
}
401415

402-
/**
403-
* Sets the user.type query parameter.
404-
*
405-
* @param value Filter the returned members by user type. Repeat this parameter to include
406-
* multiple user types.
407-
* @return This ListMerchantMembersQueryParams instance.
408-
*/
409-
public ListMerchantMembersQueryParams userType(
410-
java.util.List<com.sumup.sdk.models.UserType> value) {
411-
this.values.put("user.type", Objects.requireNonNull(value, "userType"));
412-
return this;
413-
}
414-
415416
/**
416417
* Converts query parameters to a map understood by ApiClient.
417418
*

‎src/main/java/com/sumup/sdk/clients/MembershipsAsyncClient.java‎

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,17 @@ public ListMembershipsQueryParams resourceAttributesSandbox(Boolean value) {
150150
return this;
151151
}
152152

153+
/**
154+
* Sets the resource.id query parameter.
155+
*
156+
* @param value Filter memberships by the ID of the resource the membership is in.
157+
* @return This ListMembershipsQueryParams instance.
158+
*/
159+
public ListMembershipsQueryParams resourceId(String value) {
160+
this.values.put("resource.id", Objects.requireNonNull(value, "resourceId"));
161+
return this;
162+
}
163+
153164
/**
154165
* Sets the resource.name query parameter.
155166
*
@@ -164,9 +175,10 @@ public ListMembershipsQueryParams resourceName(String value) {
164175
/**
165176
* Sets the resource.parent.id query parameter.
166177
*
167-
* @param value Filter memberships by the parent of the resource the membership is in. When
168-
* filtering by parent both `resource.parent.id` and `resource.parent.type` must be present.
169-
* Pass explicit null to filter for resources without a parent.
178+
* @param value Filter memberships by the parent of the resource the membership is in. Omit both
179+
* `resource.parent.id` and `resource.parent.type` to skip parent filtering. When filtering
180+
* by parent, both parameters must be present. To select resources without a parent, set
181+
* each parameter to an empty value. Otherwise, both parameters must identify a parent.
170182
* @return This ListMembershipsQueryParams instance.
171183
*/
172184
public ListMembershipsQueryParams resourceParentId(String value) {
@@ -177,12 +189,13 @@ public ListMembershipsQueryParams resourceParentId(String value) {
177189
/**
178190
* Sets the resource.parent.type query parameter.
179191
*
180-
* @param value Filter memberships by the parent of the resource the membership is in. When
181-
* filtering by parent both `resource.parent.id` and `resource.parent.type` must be present.
182-
* Pass explicit null to filter for resources without a parent.
192+
* @param value Filter memberships by the parent of the resource the membership is in. Omit both
193+
* `resource.parent.id` and `resource.parent.type` to skip parent filtering. When filtering
194+
* by parent, both parameters must be present. To select resources without a parent, set
195+
* each parameter to an empty value. Otherwise, both parameters must identify a parent.
183196
* @return This ListMembershipsQueryParams instance.
184197
*/
185-
public ListMembershipsQueryParams resourceParentType(java.util.Map<String, Object> value) {
198+
public ListMembershipsQueryParams resourceParentType(String value) {
186199
this.values.put("resource.parent.type", Objects.requireNonNull(value, "resourceParentType"));
187200
return this;
188201
}

‎src/main/java/com/sumup/sdk/clients/MembershipsClient.java‎

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,17 @@ public ListMembershipsQueryParams resourceAttributesSandbox(Boolean value) {
145145
return this;
146146
}
147147

148+
/**
149+
* Sets the resource.id query parameter.
150+
*
151+
* @param value Filter memberships by the ID of the resource the membership is in.
152+
* @return This ListMembershipsQueryParams instance.
153+
*/
154+
public ListMembershipsQueryParams resourceId(String value) {
155+
this.values.put("resource.id", Objects.requireNonNull(value, "resourceId"));
156+
return this;
157+
}
158+
148159
/**
149160
* Sets the resource.name query parameter.
150161
*
@@ -159,9 +170,10 @@ public ListMembershipsQueryParams resourceName(String value) {
159170
/**
160171
* Sets the resource.parent.id query parameter.
161172
*
162-
* @param value Filter memberships by the parent of the resource the membership is in. When
163-
* filtering by parent both `resource.parent.id` and `resource.parent.type` must be present.
164-
* Pass explicit null to filter for resources without a parent.
173+
* @param value Filter memberships by the parent of the resource the membership is in. Omit both
174+
* `resource.parent.id` and `resource.parent.type` to skip parent filtering. When filtering
175+
* by parent, both parameters must be present. To select resources without a parent, set
176+
* each parameter to an empty value. Otherwise, both parameters must identify a parent.
165177
* @return This ListMembershipsQueryParams instance.
166178
*/
167179
public ListMembershipsQueryParams resourceParentId(String value) {
@@ -172,12 +184,13 @@ public ListMembershipsQueryParams resourceParentId(String value) {
172184
/**
173185
* Sets the resource.parent.type query parameter.
174186
*
175-
* @param value Filter memberships by the parent of the resource the membership is in. When
176-
* filtering by parent both `resource.parent.id` and `resource.parent.type` must be present.
177-
* Pass explicit null to filter for resources without a parent.
187+
* @param value Filter memberships by the parent of the resource the membership is in. Omit both
188+
* `resource.parent.id` and `resource.parent.type` to skip parent filtering. When filtering
189+
* by parent, both parameters must be present. To select resources without a parent, set
190+
* each parameter to an empty value. Otherwise, both parameters must identify a parent.
178191
* @return This ListMembershipsQueryParams instance.
179192
*/
180-
public ListMembershipsQueryParams resourceParentType(java.util.Map<String, Object> value) {
193+
public ListMembershipsQueryParams resourceParentType(String value) {
181194
this.values.put("resource.parent.type", Objects.requireNonNull(value, "resourceParentType"));
182195
return this;
183196
}

0 commit comments

Comments
 (0)