Skip to content

Commit 270e376

Browse files
fix: update singularization rules
1 parent b7eee64 commit 270e376

126 files changed

Lines changed: 2112 additions & 2158 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

finch-java-client-okhttp/src/main/kotlin/com/tryfinch/api/client/okhttp/FinchOkHttpClient.kt

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -227,33 +227,33 @@ class FinchOkHttpClient private constructor() {
227227

228228
fun putHeader(name: String, value: String) = apply { clientOptions.putHeader(name, value) }
229229

230-
fun putHeaders(name: String, values: Iterable<String>) = apply {
231-
clientOptions.putHeaders(name, values)
230+
fun putheaders(name: String, values: Iterable<String>) = apply {
231+
clientOptions.putheaders(name, values)
232232
}
233233

234-
fun putAllHeaders(headers: Headers) = apply { clientOptions.putAllHeaders(headers) }
234+
fun putAllheaders(headers: Headers) = apply { clientOptions.putAllheaders(headers) }
235235

236-
fun putAllHeaders(headers: Map<String, Iterable<String>>) = apply {
237-
clientOptions.putAllHeaders(headers)
236+
fun putAllheaders(headers: Map<String, Iterable<String>>) = apply {
237+
clientOptions.putAllheaders(headers)
238238
}
239239

240-
fun replaceHeaders(name: String, value: String) = apply {
241-
clientOptions.replaceHeaders(name, value)
240+
fun replaceheaders(name: String, value: String) = apply {
241+
clientOptions.replaceheaders(name, value)
242242
}
243243

244-
fun replaceHeaders(name: String, values: Iterable<String>) = apply {
245-
clientOptions.replaceHeaders(name, values)
244+
fun replaceheaders(name: String, values: Iterable<String>) = apply {
245+
clientOptions.replaceheaders(name, values)
246246
}
247247

248-
fun replaceAllHeaders(headers: Headers) = apply { clientOptions.replaceAllHeaders(headers) }
248+
fun replaceAllheaders(headers: Headers) = apply { clientOptions.replaceAllheaders(headers) }
249249

250-
fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
251-
clientOptions.replaceAllHeaders(headers)
250+
fun replaceAllheaders(headers: Map<String, Iterable<String>>) = apply {
251+
clientOptions.replaceAllheaders(headers)
252252
}
253253

254-
fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }
254+
fun removeheaders(name: String) = apply { clientOptions.removeheaders(name) }
255255

256-
fun removeAllHeaders(names: Set<String>) = apply { clientOptions.removeAllHeaders(names) }
256+
fun removeAllheaders(names: Set<String>) = apply { clientOptions.removeAllheaders(names) }
257257

258258
fun queryParams(queryParams: QueryParams) = apply { clientOptions.queryParams(queryParams) }
259259

@@ -265,38 +265,38 @@ class FinchOkHttpClient private constructor() {
265265
clientOptions.putQueryParam(key, value)
266266
}
267267

268-
fun putQueryParams(key: String, values: Iterable<String>) = apply {
269-
clientOptions.putQueryParams(key, values)
268+
fun putquery_params(key: String, values: Iterable<String>) = apply {
269+
clientOptions.putquery_params(key, values)
270270
}
271271

272-
fun putAllQueryParams(queryParams: QueryParams) = apply {
273-
clientOptions.putAllQueryParams(queryParams)
272+
fun putAllquery_params(queryParams: QueryParams) = apply {
273+
clientOptions.putAllquery_params(queryParams)
274274
}
275275

276-
fun putAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
277-
clientOptions.putAllQueryParams(queryParams)
276+
fun putAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
277+
clientOptions.putAllquery_params(queryParams)
278278
}
279279

280-
fun replaceQueryParams(key: String, value: String) = apply {
281-
clientOptions.replaceQueryParams(key, value)
280+
fun replacequery_params(key: String, value: String) = apply {
281+
clientOptions.replacequery_params(key, value)
282282
}
283283

284-
fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
285-
clientOptions.replaceQueryParams(key, values)
284+
fun replacequery_params(key: String, values: Iterable<String>) = apply {
285+
clientOptions.replacequery_params(key, values)
286286
}
287287

288-
fun replaceAllQueryParams(queryParams: QueryParams) = apply {
289-
clientOptions.replaceAllQueryParams(queryParams)
288+
fun replaceAllquery_params(queryParams: QueryParams) = apply {
289+
clientOptions.replaceAllquery_params(queryParams)
290290
}
291291

292-
fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
293-
clientOptions.replaceAllQueryParams(queryParams)
292+
fun replaceAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
293+
clientOptions.replaceAllquery_params(queryParams)
294294
}
295295

296-
fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }
296+
fun removequery_params(key: String) = apply { clientOptions.removequery_params(key) }
297297

298-
fun removeAllQueryParams(keys: Set<String>) = apply {
299-
clientOptions.removeAllQueryParams(keys)
298+
fun removeAllquery_params(keys: Set<String>) = apply {
299+
clientOptions.removeAllquery_params(keys)
300300
}
301301

302302
/**

finch-java-client-okhttp/src/main/kotlin/com/tryfinch/api/client/okhttp/FinchOkHttpClientAsync.kt

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -227,33 +227,33 @@ class FinchOkHttpClientAsync private constructor() {
227227

228228
fun putHeader(name: String, value: String) = apply { clientOptions.putHeader(name, value) }
229229

230-
fun putHeaders(name: String, values: Iterable<String>) = apply {
231-
clientOptions.putHeaders(name, values)
230+
fun putheaders(name: String, values: Iterable<String>) = apply {
231+
clientOptions.putheaders(name, values)
232232
}
233233

234-
fun putAllHeaders(headers: Headers) = apply { clientOptions.putAllHeaders(headers) }
234+
fun putAllheaders(headers: Headers) = apply { clientOptions.putAllheaders(headers) }
235235

236-
fun putAllHeaders(headers: Map<String, Iterable<String>>) = apply {
237-
clientOptions.putAllHeaders(headers)
236+
fun putAllheaders(headers: Map<String, Iterable<String>>) = apply {
237+
clientOptions.putAllheaders(headers)
238238
}
239239

240-
fun replaceHeaders(name: String, value: String) = apply {
241-
clientOptions.replaceHeaders(name, value)
240+
fun replaceheaders(name: String, value: String) = apply {
241+
clientOptions.replaceheaders(name, value)
242242
}
243243

244-
fun replaceHeaders(name: String, values: Iterable<String>) = apply {
245-
clientOptions.replaceHeaders(name, values)
244+
fun replaceheaders(name: String, values: Iterable<String>) = apply {
245+
clientOptions.replaceheaders(name, values)
246246
}
247247

248-
fun replaceAllHeaders(headers: Headers) = apply { clientOptions.replaceAllHeaders(headers) }
248+
fun replaceAllheaders(headers: Headers) = apply { clientOptions.replaceAllheaders(headers) }
249249

250-
fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
251-
clientOptions.replaceAllHeaders(headers)
250+
fun replaceAllheaders(headers: Map<String, Iterable<String>>) = apply {
251+
clientOptions.replaceAllheaders(headers)
252252
}
253253

254-
fun removeHeaders(name: String) = apply { clientOptions.removeHeaders(name) }
254+
fun removeheaders(name: String) = apply { clientOptions.removeheaders(name) }
255255

256-
fun removeAllHeaders(names: Set<String>) = apply { clientOptions.removeAllHeaders(names) }
256+
fun removeAllheaders(names: Set<String>) = apply { clientOptions.removeAllheaders(names) }
257257

258258
fun queryParams(queryParams: QueryParams) = apply { clientOptions.queryParams(queryParams) }
259259

@@ -265,38 +265,38 @@ class FinchOkHttpClientAsync private constructor() {
265265
clientOptions.putQueryParam(key, value)
266266
}
267267

268-
fun putQueryParams(key: String, values: Iterable<String>) = apply {
269-
clientOptions.putQueryParams(key, values)
268+
fun putquery_params(key: String, values: Iterable<String>) = apply {
269+
clientOptions.putquery_params(key, values)
270270
}
271271

272-
fun putAllQueryParams(queryParams: QueryParams) = apply {
273-
clientOptions.putAllQueryParams(queryParams)
272+
fun putAllquery_params(queryParams: QueryParams) = apply {
273+
clientOptions.putAllquery_params(queryParams)
274274
}
275275

276-
fun putAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
277-
clientOptions.putAllQueryParams(queryParams)
276+
fun putAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
277+
clientOptions.putAllquery_params(queryParams)
278278
}
279279

280-
fun replaceQueryParams(key: String, value: String) = apply {
281-
clientOptions.replaceQueryParams(key, value)
280+
fun replacequery_params(key: String, value: String) = apply {
281+
clientOptions.replacequery_params(key, value)
282282
}
283283

284-
fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
285-
clientOptions.replaceQueryParams(key, values)
284+
fun replacequery_params(key: String, values: Iterable<String>) = apply {
285+
clientOptions.replacequery_params(key, values)
286286
}
287287

288-
fun replaceAllQueryParams(queryParams: QueryParams) = apply {
289-
clientOptions.replaceAllQueryParams(queryParams)
288+
fun replaceAllquery_params(queryParams: QueryParams) = apply {
289+
clientOptions.replaceAllquery_params(queryParams)
290290
}
291291

292-
fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
293-
clientOptions.replaceAllQueryParams(queryParams)
292+
fun replaceAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
293+
clientOptions.replaceAllquery_params(queryParams)
294294
}
295295

296-
fun removeQueryParams(key: String) = apply { clientOptions.removeQueryParams(key) }
296+
fun removequery_params(key: String) = apply { clientOptions.removequery_params(key) }
297297

298-
fun removeAllQueryParams(keys: Set<String>) = apply {
299-
clientOptions.removeAllQueryParams(keys)
298+
fun removeAllquery_params(keys: Set<String>) = apply {
299+
clientOptions.removeAllquery_params(keys)
300300
}
301301

302302
/**

finch-java-core/src/main/kotlin/com/tryfinch/api/core/ClientOptions.kt

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -317,83 +317,83 @@ private constructor(
317317

318318
fun headers(headers: Headers) = apply {
319319
this.headers.clear()
320-
putAllHeaders(headers)
320+
putAllheaders(headers)
321321
}
322322

323323
fun headers(headers: Map<String, Iterable<String>>) = apply {
324324
this.headers.clear()
325-
putAllHeaders(headers)
325+
putAllheaders(headers)
326326
}
327327

328328
fun putHeader(name: String, value: String) = apply { headers.put(name, value) }
329329

330-
fun putHeaders(name: String, values: Iterable<String>) = apply { headers.put(name, values) }
330+
fun putheaders(name: String, values: Iterable<String>) = apply { headers.put(name, values) }
331331

332-
fun putAllHeaders(headers: Headers) = apply { this.headers.putAll(headers) }
332+
fun putAllheaders(headers: Headers) = apply { this.headers.putAll(headers) }
333333

334-
fun putAllHeaders(headers: Map<String, Iterable<String>>) = apply {
334+
fun putAllheaders(headers: Map<String, Iterable<String>>) = apply {
335335
this.headers.putAll(headers)
336336
}
337337

338-
fun replaceHeaders(name: String, value: String) = apply { headers.replace(name, value) }
338+
fun replaceheaders(name: String, value: String) = apply { headers.replace(name, value) }
339339

340-
fun replaceHeaders(name: String, values: Iterable<String>) = apply {
340+
fun replaceheaders(name: String, values: Iterable<String>) = apply {
341341
headers.replace(name, values)
342342
}
343343

344-
fun replaceAllHeaders(headers: Headers) = apply { this.headers.replaceAll(headers) }
344+
fun replaceAllheaders(headers: Headers) = apply { this.headers.replaceAll(headers) }
345345

346-
fun replaceAllHeaders(headers: Map<String, Iterable<String>>) = apply {
346+
fun replaceAllheaders(headers: Map<String, Iterable<String>>) = apply {
347347
this.headers.replaceAll(headers)
348348
}
349349

350-
fun removeHeaders(name: String) = apply { headers.remove(name) }
350+
fun removeheaders(name: String) = apply { headers.remove(name) }
351351

352-
fun removeAllHeaders(names: Set<String>) = apply { headers.removeAll(names) }
352+
fun removeAllheaders(names: Set<String>) = apply { headers.removeAll(names) }
353353

354354
fun queryParams(queryParams: QueryParams) = apply {
355355
this.queryParams.clear()
356-
putAllQueryParams(queryParams)
356+
putAllquery_params(queryParams)
357357
}
358358

359359
fun queryParams(queryParams: Map<String, Iterable<String>>) = apply {
360360
this.queryParams.clear()
361-
putAllQueryParams(queryParams)
361+
putAllquery_params(queryParams)
362362
}
363363

364364
fun putQueryParam(key: String, value: String) = apply { queryParams.put(key, value) }
365365

366-
fun putQueryParams(key: String, values: Iterable<String>) = apply {
366+
fun putquery_params(key: String, values: Iterable<String>) = apply {
367367
queryParams.put(key, values)
368368
}
369369

370-
fun putAllQueryParams(queryParams: QueryParams) = apply {
370+
fun putAllquery_params(queryParams: QueryParams) = apply {
371371
this.queryParams.putAll(queryParams)
372372
}
373373

374-
fun putAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
374+
fun putAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
375375
this.queryParams.putAll(queryParams)
376376
}
377377

378-
fun replaceQueryParams(key: String, value: String) = apply {
378+
fun replacequery_params(key: String, value: String) = apply {
379379
queryParams.replace(key, value)
380380
}
381381

382-
fun replaceQueryParams(key: String, values: Iterable<String>) = apply {
382+
fun replacequery_params(key: String, values: Iterable<String>) = apply {
383383
queryParams.replace(key, values)
384384
}
385385

386-
fun replaceAllQueryParams(queryParams: QueryParams) = apply {
386+
fun replaceAllquery_params(queryParams: QueryParams) = apply {
387387
this.queryParams.replaceAll(queryParams)
388388
}
389389

390-
fun replaceAllQueryParams(queryParams: Map<String, Iterable<String>>) = apply {
390+
fun replaceAllquery_params(queryParams: Map<String, Iterable<String>>) = apply {
391391
this.queryParams.replaceAll(queryParams)
392392
}
393393

394-
fun removeQueryParams(key: String) = apply { queryParams.remove(key) }
394+
fun removequery_params(key: String) = apply { queryParams.remove(key) }
395395

396-
fun removeAllQueryParams(keys: Set<String>) = apply { queryParams.removeAll(keys) }
396+
fun removeAllquery_params(keys: Set<String>) = apply { queryParams.removeAll(keys) }
397397

398398
fun timeout(): Timeout = timeout
399399

0 commit comments

Comments
 (0)