Skip to content

Commit 1d6266d

Browse files
committed
Generate BalancePlatform services
1 parent 8218eb4 commit 1d6266d

18 files changed

+506
-62
lines changed

src/main/java/com/adyen/service/balanceplatform/AccountHoldersApi.java

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ public AccountHoldersApi(Client client, String baseURL) {
6565
*/
6666
public AccountHolder createAccountHolder(AccountHolderInfo accountHolderInfo)
6767
throws ApiException, IOException {
68-
return createAccountHolder(accountHolderInfo, null);
68+
RequestOptions requestOptions = null;
69+
return createAccountHolder(accountHolderInfo, requestOptions);
6970
}
7071

7172
/**
@@ -95,7 +96,8 @@ public AccountHolder createAccountHolder(
9596
* @throws ApiException if fails to make API call
9697
*/
9798
public AccountHolder getAccountHolder(String id) throws ApiException, IOException {
98-
return getAccountHolder(id, null);
99+
RequestOptions requestOptions = null;
100+
return getAccountHolder(id, requestOptions);
99101
}
100102

101103
/**
@@ -132,7 +134,8 @@ public AccountHolder getAccountHolder(String id, RequestOptions requestOptions)
132134
*/
133135
public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder(String id)
134136
throws ApiException, IOException {
135-
return getAllBalanceAccountsOfAccountHolder(id, null, null, null);
137+
RequestOptions requestOptions = null;
138+
return getAllBalanceAccountsOfAccountHolder(id, null, null, requestOptions);
136139
}
137140

138141
/**
@@ -184,7 +187,8 @@ public PaginatedBalanceAccountsResponse getAllBalanceAccountsOfAccountHolder(
184187
*/
185188
public TransactionRulesResponse getAllTransactionRulesForAccountHolder(String id)
186189
throws ApiException, IOException {
187-
return getAllTransactionRulesForAccountHolder(id, null);
190+
RequestOptions requestOptions = null;
191+
return getAllTransactionRulesForAccountHolder(id, requestOptions);
188192
}
189193

190194
/**
@@ -226,7 +230,8 @@ public TransactionRulesResponse getAllTransactionRulesForAccountHolder(
226230
*/
227231
public GetTaxFormResponse getTaxForm(String id, String formType, Integer year)
228232
throws ApiException, IOException {
229-
return getTaxForm(id, formType, year, null, null);
233+
RequestOptions requestOptions = null;
234+
return getTaxForm(id, formType, year, null, requestOptions);
230235
}
231236

232237
/**
@@ -285,7 +290,8 @@ public GetTaxFormResponse getTaxForm(
285290
public AccountHolder updateAccountHolder(
286291
String id, AccountHolderUpdateRequest accountHolderUpdateRequest)
287292
throws ApiException, IOException {
288-
return updateAccountHolder(id, accountHolderUpdateRequest, null);
293+
RequestOptions requestOptions = null;
294+
return updateAccountHolder(id, accountHolderUpdateRequest, requestOptions);
289295
}
290296

291297
/**

src/main/java/com/adyen/service/balanceplatform/AuthorizedCardUsersApi.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public AuthorizedCardUsersApi(Client client, String baseURL) {
6262
public void createAuthorisedCardUsers(
6363
String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers)
6464
throws ApiException, IOException {
65-
createAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, null);
65+
RequestOptions requestOptions = null;
66+
createAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, requestOptions);
6667
}
6768

6869
/**
@@ -103,7 +104,8 @@ public void createAuthorisedCardUsers(
103104
*/
104105
public void deleteAuthorisedCardUsers(String paymentInstrumentId)
105106
throws ApiException, IOException {
106-
deleteAuthorisedCardUsers(paymentInstrumentId, null);
107+
RequestOptions requestOptions = null;
108+
deleteAuthorisedCardUsers(paymentInstrumentId, requestOptions);
107109
}
108110

109111
/**
@@ -141,7 +143,8 @@ public void deleteAuthorisedCardUsers(String paymentInstrumentId, RequestOptions
141143
*/
142144
public AuthorisedCardUsers getAllAuthorisedCardUsers(String paymentInstrumentId)
143145
throws ApiException, IOException {
144-
return getAllAuthorisedCardUsers(paymentInstrumentId, null);
146+
RequestOptions requestOptions = null;
147+
return getAllAuthorisedCardUsers(paymentInstrumentId, requestOptions);
145148
}
146149

147150
/**
@@ -184,7 +187,8 @@ public AuthorisedCardUsers getAllAuthorisedCardUsers(
184187
public void updateAuthorisedCardUsers(
185188
String paymentInstrumentId, AuthorisedCardUsers authorisedCardUsers)
186189
throws ApiException, IOException {
187-
updateAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, null);
190+
RequestOptions requestOptions = null;
191+
updateAuthorisedCardUsers(paymentInstrumentId, authorisedCardUsers, requestOptions);
188192
}
189193

190194
/**

src/main/java/com/adyen/service/balanceplatform/BalanceAccountsApi.java

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ public BalanceAccountsApi(Client client, String baseURL) {
6868
*/
6969
public BalanceAccount createBalanceAccount(BalanceAccountInfo balanceAccountInfo)
7070
throws ApiException, IOException {
71-
return createBalanceAccount(balanceAccountInfo, null);
71+
RequestOptions requestOptions = null;
72+
return createBalanceAccount(balanceAccountInfo, requestOptions);
7273
}
7374

7475
/**
@@ -102,7 +103,8 @@ public BalanceAccount createBalanceAccount(
102103
public SweepConfigurationV2 createSweep(
103104
String balanceAccountId, CreateSweepConfigurationV2 createSweepConfigurationV2)
104105
throws ApiException, IOException {
105-
return createSweep(balanceAccountId, createSweepConfigurationV2, null);
106+
RequestOptions requestOptions = null;
107+
return createSweep(balanceAccountId, createSweepConfigurationV2, requestOptions);
106108
}
107109

108110
/**
@@ -146,7 +148,8 @@ public SweepConfigurationV2 createSweep(
146148
*/
147149
public void deleteSweep(String balanceAccountId, String sweepId)
148150
throws ApiException, IOException {
149-
deleteSweep(balanceAccountId, sweepId, null);
151+
RequestOptions requestOptions = null;
152+
deleteSweep(balanceAccountId, sweepId, requestOptions);
150153
}
151154

152155
/**
@@ -189,7 +192,8 @@ public void deleteSweep(String balanceAccountId, String sweepId, RequestOptions
189192
*/
190193
public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount(String balanceAccountId)
191194
throws ApiException, IOException {
192-
return getAllSweepsForBalanceAccount(balanceAccountId, null, null, null);
195+
RequestOptions requestOptions = null;
196+
return getAllSweepsForBalanceAccount(balanceAccountId, null, null, requestOptions);
193197
}
194198

195199
/**
@@ -242,7 +246,8 @@ public BalanceSweepConfigurationsResponse getAllSweepsForBalanceAccount(
242246
*/
243247
public TransactionRulesResponse getAllTransactionRulesForBalanceAccount(String id)
244248
throws ApiException, IOException {
245-
return getAllTransactionRulesForBalanceAccount(id, null);
249+
RequestOptions requestOptions = null;
250+
return getAllTransactionRulesForBalanceAccount(id, requestOptions);
246251
}
247252

248253
/**
@@ -279,7 +284,8 @@ public TransactionRulesResponse getAllTransactionRulesForBalanceAccount(
279284
* @throws ApiException if fails to make API call
280285
*/
281286
public BalanceAccount getBalanceAccount(String id) throws ApiException, IOException {
282-
return getBalanceAccount(id, null);
287+
RequestOptions requestOptions = null;
288+
return getBalanceAccount(id, requestOptions);
283289
}
284290

285291
/**
@@ -316,7 +322,8 @@ public BalanceAccount getBalanceAccount(String id, RequestOptions requestOptions
316322
*/
317323
public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceAccount(String id)
318324
throws ApiException, IOException {
319-
return getPaymentInstrumentsLinkedToBalanceAccount(id, null, null, null, null);
325+
RequestOptions requestOptions = null;
326+
return getPaymentInstrumentsLinkedToBalanceAccount(id, null, null, null, requestOptions);
320327
}
321328

322329
/**
@@ -375,7 +382,8 @@ public PaginatedPaymentInstrumentsResponse getPaymentInstrumentsLinkedToBalanceA
375382
*/
376383
public SweepConfigurationV2 getSweep(String balanceAccountId, String sweepId)
377384
throws ApiException, IOException {
378-
return getSweep(balanceAccountId, sweepId, null);
385+
RequestOptions requestOptions = null;
386+
return getSweep(balanceAccountId, sweepId, requestOptions);
379387
}
380388

381389
/**
@@ -423,7 +431,8 @@ public SweepConfigurationV2 getSweep(
423431
public BalanceAccount updateBalanceAccount(
424432
String id, BalanceAccountUpdateRequest balanceAccountUpdateRequest)
425433
throws ApiException, IOException {
426-
return updateBalanceAccount(id, balanceAccountUpdateRequest, null);
434+
RequestOptions requestOptions = null;
435+
return updateBalanceAccount(id, balanceAccountUpdateRequest, requestOptions);
427436
}
428437

429438
/**
@@ -470,7 +479,8 @@ public SweepConfigurationV2 updateSweep(
470479
String sweepId,
471480
UpdateSweepConfigurationV2 updateSweepConfigurationV2)
472481
throws ApiException, IOException {
473-
return updateSweep(balanceAccountId, sweepId, updateSweepConfigurationV2, null);
482+
RequestOptions requestOptions = null;
483+
return updateSweep(balanceAccountId, sweepId, updateSweepConfigurationV2, requestOptions);
474484
}
475485

476486
/**

src/main/java/com/adyen/service/balanceplatform/BalancesApi.java

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ public WebhookSetting createWebhookSetting(
7070
String webhookId,
7171
BalanceWebhookSettingInfo balanceWebhookSettingInfo)
7272
throws ApiException, IOException {
73-
return createWebhookSetting(balancePlatformId, webhookId, balanceWebhookSettingInfo, null);
73+
RequestOptions requestOptions = null;
74+
return createWebhookSetting(
75+
balancePlatformId, webhookId, balanceWebhookSettingInfo, requestOptions);
7476
}
7577

7678
/**
@@ -125,7 +127,8 @@ public WebhookSetting createWebhookSetting(
125127
*/
126128
public void deleteWebhookSetting(String balancePlatformId, String webhookId, String settingId)
127129
throws ApiException, IOException {
128-
deleteWebhookSetting(balancePlatformId, webhookId, settingId, null);
130+
RequestOptions requestOptions = null;
131+
deleteWebhookSetting(balancePlatformId, webhookId, settingId, requestOptions);
129132
}
130133

131134
/**
@@ -179,7 +182,8 @@ public void deleteWebhookSetting(
179182
*/
180183
public WebhookSettings getAllWebhookSettings(String balancePlatformId, String webhookId)
181184
throws ApiException, IOException {
182-
return getAllWebhookSettings(balancePlatformId, webhookId, null);
185+
RequestOptions requestOptions = null;
186+
return getAllWebhookSettings(balancePlatformId, webhookId, requestOptions);
183187
}
184188

185189
/**
@@ -232,7 +236,8 @@ public WebhookSettings getAllWebhookSettings(
232236
public WebhookSetting getWebhookSetting(
233237
String balancePlatformId, String webhookId, String settingId)
234238
throws ApiException, IOException {
235-
return getWebhookSetting(balancePlatformId, webhookId, settingId, null);
239+
RequestOptions requestOptions = null;
240+
return getWebhookSetting(balancePlatformId, webhookId, settingId, requestOptions);
236241
}
237242

238243
/**
@@ -297,8 +302,9 @@ public WebhookSetting updateWebhookSetting(
297302
String settingId,
298303
BalanceWebhookSettingInfoUpdate balanceWebhookSettingInfoUpdate)
299304
throws ApiException, IOException {
305+
RequestOptions requestOptions = null;
300306
return updateWebhookSetting(
301-
balancePlatformId, webhookId, settingId, balanceWebhookSettingInfoUpdate, null);
307+
balancePlatformId, webhookId, settingId, balanceWebhookSettingInfoUpdate, requestOptions);
302308
}
303309

304310
/**

src/main/java/com/adyen/service/balanceplatform/BankAccountValidationApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public BankAccountValidationApi(Client client, String baseURL) {
5959
public void validateBankAccountIdentification(
6060
BankAccountIdentificationValidationRequest bankAccountIdentificationValidationRequest)
6161
throws ApiException, IOException {
62-
validateBankAccountIdentification(bankAccountIdentificationValidationRequest, null);
62+
RequestOptions requestOptions = null;
63+
validateBankAccountIdentification(bankAccountIdentificationValidationRequest, requestOptions);
6364
}
6465

6566
/**

src/main/java/com/adyen/service/balanceplatform/CardOrdersApi.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public CardOrdersApi(Client client, String baseURL) {
6262
*/
6363
public PaginatedGetCardOrderItemResponse getCardOrderItems(String id)
6464
throws ApiException, IOException {
65-
return getCardOrderItems(id, null, null, null);
65+
RequestOptions requestOptions = null;
66+
return getCardOrderItems(id, null, null, requestOptions);
6667
}
6768

6869
/**
@@ -114,7 +115,9 @@ public PaginatedGetCardOrderItemResponse getCardOrderItems(
114115
* @throws ApiException if fails to make API call
115116
*/
116117
public PaginatedGetCardOrderResponse listCardOrders() throws ApiException, IOException {
117-
return listCardOrders(null, null, null, null, null, null, null, null, null, null, null, null);
118+
RequestOptions requestOptions = null;
119+
return listCardOrders(
120+
null, null, null, null, null, null, null, null, null, null, null, requestOptions);
118121
}
119122

120123
/**

src/main/java/com/adyen/service/balanceplatform/GrantAccountsApi.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public GrantAccountsApi(Client client, String baseURL) {
6262
*/
6363
@Deprecated
6464
public CapitalGrantAccount getGrantAccount(String id) throws ApiException, IOException {
65-
return getGrantAccount(id, null);
65+
RequestOptions requestOptions = null;
66+
return getGrantAccount(id, requestOptions);
6667
}
6768

6869
/**

src/main/java/com/adyen/service/balanceplatform/GrantOffersApi.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public GrantOffersApi(Client client, String baseURL) {
6464
@Deprecated
6565
public GrantOffers getAllAvailableGrantOffers(String accountHolderId)
6666
throws ApiException, IOException {
67-
return getAllAvailableGrantOffers(accountHolderId, null);
67+
RequestOptions requestOptions = null;
68+
return getAllAvailableGrantOffers(accountHolderId, requestOptions);
6869
}
6970

7071
/**
@@ -107,7 +108,8 @@ public GrantOffers getAllAvailableGrantOffers(
107108
*/
108109
@Deprecated
109110
public GrantOffer getGrantOffer(String grantOfferId) throws ApiException, IOException {
110-
return getGrantOffer(grantOfferId, null);
111+
RequestOptions requestOptions = null;
112+
return getGrantOffer(grantOfferId, requestOptions);
111113
}
112114

113115
/**

src/main/java/com/adyen/service/balanceplatform/ManageCardPinApi.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,8 @@ public ManageCardPinApi(Client client, String baseURL) {
6464
*/
6565
public PinChangeResponse changeCardPin(PinChangeRequest pinChangeRequest)
6666
throws ApiException, IOException {
67-
return changeCardPin(pinChangeRequest, null);
67+
RequestOptions requestOptions = null;
68+
return changeCardPin(pinChangeRequest, requestOptions);
6869
}
6970

7071
/**
@@ -93,7 +94,8 @@ public PinChangeResponse changeCardPin(
9394
* @throws ApiException if fails to make API call
9495
*/
9596
public PublicKeyResponse publicKey() throws ApiException, IOException {
96-
return publicKey(null, null, null);
97+
RequestOptions requestOptions = null;
98+
return publicKey(null, null, requestOptions);
9799
}
98100

99101
/**
@@ -136,7 +138,8 @@ public PublicKeyResponse publicKey(String purpose, String format, RequestOptions
136138
*/
137139
public RevealPinResponse revealCardPin(RevealPinRequest revealPinRequest)
138140
throws ApiException, IOException {
139-
return revealCardPin(revealPinRequest, null);
141+
RequestOptions requestOptions = null;
142+
return revealCardPin(revealPinRequest, requestOptions);
140143
}
141144

142145
/**

0 commit comments

Comments
 (0)