@@ -88,6 +88,7 @@ public UpsertBillingCouponResponse upsertBillingCoupon(
88
88
.method ("POST" , body )
89
89
.headers (Headers .of (clientOptions .headers (requestOptions )))
90
90
.addHeader ("Content-Type" , "application/json" )
91
+ .addHeader ("Accept" , "application/json" )
91
92
.build ();
92
93
OkHttpClient client = clientOptions .httpClient ();
93
94
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -148,6 +149,7 @@ public UpsertBillingCustomerResponse upsertBillingCustomer(
148
149
.method ("POST" , body )
149
150
.headers (Headers .of (clientOptions .headers (requestOptions )))
150
151
.addHeader ("Content-Type" , "application/json" )
152
+ .addHeader ("Accept" , "application/json" )
151
153
.build ();
152
154
OkHttpClient client = clientOptions .httpClient ();
153
155
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -218,7 +220,8 @@ public ListCustomersResponse listCustomers(ListCustomersRequest request, Request
218
220
.url (httpUrl .build ())
219
221
.method ("GET" , null )
220
222
.headers (Headers .of (clientOptions .headers (requestOptions )))
221
- .addHeader ("Content-Type" , "application/json" );
223
+ .addHeader ("Content-Type" , "application/json" )
224
+ .addHeader ("Accept" , "application/json" );
222
225
Request okhttpRequest = _requestBuilder .build ();
223
226
OkHttpClient client = clientOptions .httpClient ();
224
227
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -289,7 +292,8 @@ public CountCustomersResponse countCustomers(CountCustomersRequest request, Requ
289
292
.url (httpUrl .build ())
290
293
.method ("GET" , null )
291
294
.headers (Headers .of (clientOptions .headers (requestOptions )))
292
- .addHeader ("Content-Type" , "application/json" );
295
+ .addHeader ("Content-Type" , "application/json" )
296
+ .addHeader ("Accept" , "application/json" );
293
297
Request okhttpRequest = _requestBuilder .build ();
294
298
OkHttpClient client = clientOptions .httpClient ();
295
299
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -355,7 +359,8 @@ public ListInvoicesResponse listInvoices(ListInvoicesRequest request, RequestOpt
355
359
.url (httpUrl .build ())
356
360
.method ("GET" , null )
357
361
.headers (Headers .of (clientOptions .headers (requestOptions )))
358
- .addHeader ("Content-Type" , "application/json" );
362
+ .addHeader ("Content-Type" , "application/json" )
363
+ .addHeader ("Accept" , "application/json" );
359
364
Request okhttpRequest = _requestBuilder .build ();
360
365
OkHttpClient client = clientOptions .httpClient ();
361
366
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -415,6 +420,7 @@ public UpsertInvoiceResponse upsertInvoice(CreateInvoiceRequestBody request, Req
415
420
.method ("POST" , body )
416
421
.headers (Headers .of (clientOptions .headers (requestOptions )))
417
422
.addHeader ("Content-Type" , "application/json" )
423
+ .addHeader ("Accept" , "application/json" )
418
424
.build ();
419
425
OkHttpClient client = clientOptions .httpClient ();
420
426
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -478,7 +484,8 @@ public ListMetersResponse listMeters(ListMetersRequest request, RequestOptions r
478
484
.url (httpUrl .build ())
479
485
.method ("GET" , null )
480
486
.headers (Headers .of (clientOptions .headers (requestOptions )))
481
- .addHeader ("Content-Type" , "application/json" );
487
+ .addHeader ("Content-Type" , "application/json" )
488
+ .addHeader ("Accept" , "application/json" );
482
489
Request okhttpRequest = _requestBuilder .build ();
483
490
OkHttpClient client = clientOptions .httpClient ();
484
491
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -539,6 +546,7 @@ public UpsertBillingMeterResponse upsertBillingMeter(
539
546
.method ("POST" , body )
540
547
.headers (Headers .of (clientOptions .headers (requestOptions )))
541
548
.addHeader ("Content-Type" , "application/json" )
549
+ .addHeader ("Accept" , "application/json" )
542
550
.build ();
543
551
OkHttpClient client = clientOptions .httpClient ();
544
552
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -605,7 +613,8 @@ public ListPaymentMethodsResponse listPaymentMethods(
605
613
.url (httpUrl .build ())
606
614
.method ("GET" , null )
607
615
.headers (Headers .of (clientOptions .headers (requestOptions )))
608
- .addHeader ("Content-Type" , "application/json" );
616
+ .addHeader ("Content-Type" , "application/json" )
617
+ .addHeader ("Accept" , "application/json" );
609
618
Request okhttpRequest = _requestBuilder .build ();
610
619
OkHttpClient client = clientOptions .httpClient ();
611
620
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -666,6 +675,7 @@ public UpsertPaymentMethodResponse upsertPaymentMethod(
666
675
.method ("POST" , body )
667
676
.headers (Headers .of (clientOptions .headers (requestOptions )))
668
677
.addHeader ("Content-Type" , "application/json" )
678
+ .addHeader ("Accept" , "application/json" )
669
679
.build ();
670
680
OkHttpClient client = clientOptions .httpClient ();
671
681
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -739,7 +749,8 @@ public SearchBillingPricesResponse searchBillingPrices(
739
749
.url (httpUrl .build ())
740
750
.method ("GET" , null )
741
751
.headers (Headers .of (clientOptions .headers (requestOptions )))
742
- .addHeader ("Content-Type" , "application/json" );
752
+ .addHeader ("Content-Type" , "application/json" )
753
+ .addHeader ("Accept" , "application/json" );
743
754
Request okhttpRequest = _requestBuilder .build ();
744
755
OkHttpClient client = clientOptions .httpClient ();
745
756
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -800,6 +811,7 @@ public UpsertBillingPriceResponse upsertBillingPrice(
800
811
.method ("POST" , body )
801
812
.headers (Headers .of (clientOptions .headers (requestOptions )))
802
813
.addHeader ("Content-Type" , "application/json" )
814
+ .addHeader ("Accept" , "application/json" )
803
815
.build ();
804
816
OkHttpClient client = clientOptions .httpClient ();
805
817
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -887,7 +899,8 @@ public ListProductPricesResponse listProductPrices(
887
899
.url (httpUrl .build ())
888
900
.method ("GET" , null )
889
901
.headers (Headers .of (clientOptions .headers (requestOptions )))
890
- .addHeader ("Content-Type" , "application/json" );
902
+ .addHeader ("Content-Type" , "application/json" )
903
+ .addHeader ("Accept" , "application/json" );
891
904
Request okhttpRequest = _requestBuilder .build ();
892
905
OkHttpClient client = clientOptions .httpClient ();
893
906
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -941,6 +954,7 @@ public DeleteProductPriceResponse deleteProductPrice(String billingId, RequestOp
941
954
.method ("DELETE" , null )
942
955
.headers (Headers .of (clientOptions .headers (requestOptions )))
943
956
.addHeader ("Content-Type" , "application/json" )
957
+ .addHeader ("Accept" , "application/json" )
944
958
.build ();
945
959
OkHttpClient client = clientOptions .httpClient ();
946
960
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -1001,6 +1015,7 @@ public UpsertBillingProductResponse upsertBillingProduct(
1001
1015
.method ("POST" , body )
1002
1016
.headers (Headers .of (clientOptions .headers (requestOptions )))
1003
1017
.addHeader ("Content-Type" , "application/json" )
1018
+ .addHeader ("Accept" , "application/json" )
1004
1019
.build ();
1005
1020
OkHttpClient client = clientOptions .httpClient ();
1006
1021
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -1088,7 +1103,8 @@ public ListBillingProductsResponse listBillingProducts(
1088
1103
.url (httpUrl .build ())
1089
1104
.method ("GET" , null )
1090
1105
.headers (Headers .of (clientOptions .headers (requestOptions )))
1091
- .addHeader ("Content-Type" , "application/json" );
1106
+ .addHeader ("Content-Type" , "application/json" )
1107
+ .addHeader ("Accept" , "application/json" );
1092
1108
Request okhttpRequest = _requestBuilder .build ();
1093
1109
OkHttpClient client = clientOptions .httpClient ();
1094
1110
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -1176,7 +1192,8 @@ public CountBillingProductsResponse countBillingProducts(
1176
1192
.url (httpUrl .build ())
1177
1193
.method ("GET" , null )
1178
1194
.headers (Headers .of (clientOptions .headers (requestOptions )))
1179
- .addHeader ("Content-Type" , "application/json" );
1195
+ .addHeader ("Content-Type" , "application/json" )
1196
+ .addHeader ("Accept" , "application/json" );
1180
1197
Request okhttpRequest = _requestBuilder .build ();
1181
1198
OkHttpClient client = clientOptions .httpClient ();
1182
1199
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
@@ -1237,6 +1254,7 @@ public UpsertBillingSubscriptionResponse upsertBillingSubscription(
1237
1254
.method ("POST" , body )
1238
1255
.headers (Headers .of (clientOptions .headers (requestOptions )))
1239
1256
.addHeader ("Content-Type" , "application/json" )
1257
+ .addHeader ("Accept" , "application/json" )
1240
1258
.build ();
1241
1259
OkHttpClient client = clientOptions .httpClient ();
1242
1260
if (requestOptions != null && requestOptions .getTimeout ().isPresent ()) {
0 commit comments