@@ -32,7 +32,7 @@ public interface IAccount
32
32
/// Retrieve account details
33
33
///
34
34
/// <remarks>
35
- /// Retrieve a shopper's account details, such as addresses and payment information
35
+ /// Retrieve a shopper's account details, such as addresses and payment information. The account's details are filtered to be relevant to your merchant account, and some fields may be missing for some accounts. See the schema for details.
36
36
/// </remarks>
37
37
/// </summary>
38
38
Task < AccountGetResponse > GetDetailsAsync ( string xPublishableKey , string xMerchantClientId ) ;
@@ -90,10 +90,10 @@ public class Account: IAccount
90
90
{
91
91
public SDKConfig SDKConfiguration { get ; private set ; }
92
92
private const string _language = "csharp" ;
93
- private const string _sdkVersion = "0.2.1 " ;
94
- private const string _sdkGenVersion = "2.409.8 " ;
95
- private const string _openapiDocVersion = "3.2.1 " ;
96
- private const string _userAgent = "speakeasy-sdk/csharp 0.2.1 2.409.8 3.2.1 Boltpay.SDK" ;
93
+ private const string _sdkVersion = "0.3.0 " ;
94
+ private const string _sdkGenVersion = "2.438.15 " ;
95
+ private const string _openapiDocVersion = "3.2.3 " ;
96
+ private const string _userAgent = "speakeasy-sdk/csharp 0.3.0 2.438.15 3.2.3 Boltpay.SDK" ;
97
97
private string _serverUrl = "" ;
98
98
private ISpeakeasyHttpClient _client ;
99
99
private Func < Boltpay . SDK . Models . Components . Security > ? _securitySource ;
@@ -178,10 +178,8 @@ public async Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, st
178
178
response . Account = obj ;
179
179
return response ;
180
180
}
181
- else
182
- {
183
- throw new SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
184
- }
181
+
182
+ throw new Models . Errors . SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
185
183
}
186
184
else if ( responseStatusCode >= 400 && responseStatusCode < 500 )
187
185
{
@@ -197,14 +195,12 @@ public async Task<AccountGetResponse> GetDetailsAsync(string xPublishableKey, st
197
195
throw new InvalidOperationException ( "Unknown error type." ) ;
198
196
} ;
199
197
}
200
- else
201
- {
202
- throw new SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
203
- }
198
+
199
+ throw new Models . Errors . SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
204
200
}
205
201
else if ( responseStatusCode >= 500 && responseStatusCode < 600 )
206
202
{
207
- throw new SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
203
+ throw new Models . Errors . SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
208
204
}
209
205
else
210
206
{
@@ -298,10 +294,8 @@ public async Task<AccountAddressCreateResponse> AddAddressAsync(string xPublisha
298
294
response . AddressListing = obj ;
299
295
return response ;
300
296
}
301
- else
302
- {
303
- throw new SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
304
- }
297
+
298
+ throw new Models . Errors . SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
305
299
}
306
300
else if ( responseStatusCode >= 400 && responseStatusCode < 500 )
307
301
{
@@ -317,14 +311,12 @@ public async Task<AccountAddressCreateResponse> AddAddressAsync(string xPublisha
317
311
throw new InvalidOperationException ( "Unknown error type." ) ;
318
312
} ;
319
313
}
320
- else
321
- {
322
- throw new SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
323
- }
314
+
315
+ throw new Models . Errors . SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
324
316
}
325
317
else if ( responseStatusCode >= 500 && responseStatusCode < 600 )
326
318
{
327
- throw new SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
319
+ throw new Models . Errors . SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
328
320
}
329
321
else
330
322
{
@@ -418,10 +410,8 @@ public async Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublish
418
410
response . AddressListing = obj ;
419
411
return response ;
420
412
}
421
- else
422
- {
423
- throw new SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
424
- }
413
+
414
+ throw new Models . Errors . SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
425
415
}
426
416
else if ( responseStatusCode >= 400 && responseStatusCode < 500 )
427
417
{
@@ -437,14 +427,12 @@ public async Task<AccountAddressEditResponse> UpdateAddressAsync(string xPublish
437
427
throw new InvalidOperationException ( "Unknown error type." ) ;
438
428
} ;
439
429
}
440
- else
441
- {
442
- throw new SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
443
- }
430
+
431
+ throw new Models . Errors . SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
444
432
}
445
433
else if ( responseStatusCode >= 500 && responseStatusCode < 600 )
446
434
{
447
- throw new SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
435
+ throw new Models . Errors . SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
448
436
}
449
437
else
450
438
{
@@ -529,14 +517,12 @@ public async Task<AccountAddressDeleteResponse> DeleteAddressAsync(string xPubli
529
517
throw new InvalidOperationException ( "Unknown error type." ) ;
530
518
} ;
531
519
}
532
- else
533
- {
534
- throw new SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
535
- }
520
+
521
+ throw new Models . Errors . SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
536
522
}
537
523
else if ( responseStatusCode >= 500 && responseStatusCode < 600 )
538
524
{
539
- throw new SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
525
+ throw new Models . Errors . SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
540
526
}
541
527
else
542
528
{
@@ -630,10 +616,8 @@ public async Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string
630
616
response . PaymentMethod = obj ;
631
617
return response ;
632
618
}
633
- else
634
- {
635
- throw new SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
636
- }
619
+
620
+ throw new Models . Errors . SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
637
621
}
638
622
else if ( responseStatusCode >= 400 && responseStatusCode < 500 )
639
623
{
@@ -651,14 +635,12 @@ public async Task<AccountAddPaymentMethodResponse> AddPaymentMethodAsync(string
651
635
throw new InvalidOperationException ( "Unknown error type." ) ;
652
636
} ;
653
637
}
654
- else
655
- {
656
- throw new SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
657
- }
638
+
639
+ throw new Models . Errors . SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
658
640
}
659
641
else if ( responseStatusCode >= 500 && responseStatusCode < 600 )
660
642
{
661
- throw new SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
643
+ throw new Models . Errors . SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
662
644
}
663
645
else
664
646
{
@@ -743,14 +725,12 @@ public async Task<AccountPaymentMethodDeleteResponse> DeletePaymentMethodAsync(s
743
725
throw new InvalidOperationException ( "Unknown error type." ) ;
744
726
} ;
745
727
}
746
- else
747
- {
748
- throw new SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
749
- }
728
+
729
+ throw new Models . Errors . SDKException ( "Unknown content type received" , httpRequest , httpResponse ) ;
750
730
}
751
731
else if ( responseStatusCode >= 500 && responseStatusCode < 600 )
752
732
{
753
- throw new SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
733
+ throw new Models . Errors . SDKException ( "API error occurred" , httpRequest , httpResponse ) ;
754
734
}
755
735
else
756
736
{
0 commit comments