@@ -6256,7 +6256,7 @@ public void TestV2CoreEventGet()
6256
6256
HttpMethod . Get ,
6257
6257
"/v2/core/events" ,
6258
6258
( HttpStatusCode ) 200 ,
6259
- "{\" data\" :[{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event\" ,\" context \" :null, \" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" livemode\" :true, \" reason \" :null ,\" type\" :\" type\" }],\" next_page_url\" :null,\" previous_page_url\" :null}" ,
6259
+ "{\" data\" :[{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event\" ,\" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" livemode\" :true,\" type\" :\" type\" }],\" next_page_url\" :null,\" previous_page_url\" :null}" ,
6260
6260
"object_id=object_id" ) ;
6261
6261
var options = new Stripe . V2 . Core . EventListOptions
6262
6262
{
@@ -6279,7 +6279,7 @@ public void TestV2CoreEventGet2()
6279
6279
HttpMethod . Get ,
6280
6280
"/v2/core/events/id_123" ,
6281
6281
( HttpStatusCode ) 200 ,
6282
- "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event\" ,\" context \" :null, \" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" livemode\" :true, \" reason \" :null ,\" type\" :\" type\" }" ) ;
6282
+ "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event\" ,\" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" livemode\" :true,\" type\" :\" type\" }" ) ;
6283
6283
var client = new StripeClient ( this . Requestor ) ;
6284
6284
var service = client . V2 . Core . Events ;
6285
6285
Stripe . V2 . Event result = service . Get ( "id_123" ) ;
@@ -6293,7 +6293,7 @@ public void TestV2CoreEventDestinationGet()
6293
6293
HttpMethod . Get ,
6294
6294
"/v2/core/event_destinations" ,
6295
6295
( HttpStatusCode ) 200 ,
6296
- "{\" data\" :[{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" amazon_eventbridge \" :null, \" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" events_from \" :null, \" livemode\" :true,\" metadata \" :null, \" name\" :\" name\" ,\" snapshot_api_version \" :null, \" status\" :\" disabled\" ,\" status_details \" :null, \" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" , \" webhook_endpoint \" :null }],\" next_page_url\" :null,\" previous_page_url\" :null}" ) ;
6296
+ "{\" data\" :[{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" livemode\" :true,\" name\" :\" name\" ,\" status\" :\" disabled\" ,\" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" }],\" next_page_url\" :null,\" previous_page_url\" :null}" ) ;
6297
6297
var client = new StripeClient ( this . Requestor ) ;
6298
6298
var service = client . V2 . Core . EventDestinations ;
6299
6299
Stripe . V2 . StripeList < Stripe . V2 . EventDestination > eventDestinations = service
@@ -6308,7 +6308,7 @@ public void TestV2CoreEventDestinationPost()
6308
6308
HttpMethod . Post ,
6309
6309
"/v2/core/event_destinations" ,
6310
6310
( HttpStatusCode ) 200 ,
6311
- "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" amazon_eventbridge \" :null, \" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" events_from \" :null, \" livemode\" :true,\" metadata \" :null, \" name\" :\" name\" ,\" snapshot_api_version \" :null, \" status\" :\" disabled\" ,\" status_details \" :null, \" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" , \" webhook_endpoint \" :null }" ) ;
6311
+ "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" livemode\" :true,\" name\" :\" name\" ,\" status\" :\" disabled\" ,\" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" }" ) ;
6312
6312
var options = new Stripe . V2 . Core . EventDestinationCreateOptions
6313
6313
{
6314
6314
EnabledEvents = new List < string > { "enabled_events" } ,
@@ -6330,10 +6330,10 @@ public void TestV2CoreEventDestinationDelete()
6330
6330
HttpMethod . Delete ,
6331
6331
"/v2/core/event_destinations/id_123" ,
6332
6332
( HttpStatusCode ) 200 ,
6333
- "{\" id\" :\" obj_123 \" ,\" object\" :\" v2.core.event_destination \" , \" amazon_eventbridge \" :null, \" created \" : \" 1970-01-12T21:42:34.472Z \" , \" description \" : \" description \" , \" enabled_events \" :[ \" enabled_events \" ], \" event_payload \" : \" thin \" , \" events_from \" :null, \" livemode \" :true, \" metadata \" :null, \" name \" : \" name \" , \" snapshot_api_version \" :null, \" status \" : \" disabled \" , \" status_details \" :null, \" type \" : \" amazon_eventbridge \" , \" updated \" : \" 1970-01-03T17:07:10.277Z \" , \" webhook_endpoint \" :null }" ) ;
6333
+ "{\" id\" :\" abc_123 \" ,\" object\" :\" some.object.tag \" }" ) ;
6334
6334
var client = new StripeClient ( this . Requestor ) ;
6335
6335
var service = client . V2 . Core . EventDestinations ;
6336
- Stripe . V2 . EventDestination deleted = service . Delete ( "id_123" ) ;
6336
+ Stripe . V2 . DeletedObject deleted = service . Delete ( "id_123" ) ;
6337
6337
this . AssertRequest (
6338
6338
HttpMethod . Delete ,
6339
6339
"/v2/core/event_destinations/id_123" ) ;
@@ -6346,7 +6346,7 @@ public void TestV2CoreEventDestinationGet2()
6346
6346
HttpMethod . Get ,
6347
6347
"/v2/core/event_destinations/id_123" ,
6348
6348
( HttpStatusCode ) 200 ,
6349
- "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" amazon_eventbridge \" :null, \" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" events_from \" :null, \" livemode\" :true,\" metadata \" :null, \" name\" :\" name\" ,\" snapshot_api_version \" :null, \" status\" :\" disabled\" ,\" status_details \" :null, \" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" , \" webhook_endpoint \" :null }" ) ;
6349
+ "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" livemode\" :true,\" name\" :\" name\" ,\" status\" :\" disabled\" ,\" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" }" ) ;
6350
6350
var client = new StripeClient ( this . Requestor ) ;
6351
6351
var service = client . V2 . Core . EventDestinations ;
6352
6352
Stripe . V2 . EventDestination eventDestination = service . Get ( "id_123" ) ;
@@ -6362,7 +6362,7 @@ public void TestV2CoreEventDestinationPost2()
6362
6362
HttpMethod . Post ,
6363
6363
"/v2/core/event_destinations/id_123" ,
6364
6364
( HttpStatusCode ) 200 ,
6365
- "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" amazon_eventbridge \" :null, \" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" events_from \" :null, \" livemode\" :true,\" metadata \" :null, \" name\" :\" name\" ,\" snapshot_api_version \" :null, \" status\" :\" disabled\" ,\" status_details \" :null, \" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" , \" webhook_endpoint \" :null }" ) ;
6365
+ "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" livemode\" :true,\" name\" :\" name\" ,\" status\" :\" disabled\" ,\" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" }" ) ;
6366
6366
var options = new Stripe . V2 . Core . EventDestinationUpdateOptions ( ) ;
6367
6367
var client = new StripeClient ( this . Requestor ) ;
6368
6368
var service = client . V2 . Core . EventDestinations ;
@@ -6381,7 +6381,7 @@ public void TestV2CoreEventDestinationPost3()
6381
6381
HttpMethod . Post ,
6382
6382
"/v2/core/event_destinations/id_123/disable" ,
6383
6383
( HttpStatusCode ) 200 ,
6384
- "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" amazon_eventbridge \" :null, \" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" events_from \" :null, \" livemode\" :true,\" metadata \" :null, \" name\" :\" name\" ,\" snapshot_api_version \" :null, \" status\" :\" disabled\" ,\" status_details \" :null, \" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" , \" webhook_endpoint \" :null }" ) ;
6384
+ "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" livemode\" :true,\" name\" :\" name\" ,\" status\" :\" disabled\" ,\" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" }" ) ;
6385
6385
var client = new StripeClient ( this . Requestor ) ;
6386
6386
var service = client . V2 . Core . EventDestinations ;
6387
6387
Stripe . V2 . EventDestination eventDestination = service . Disable (
@@ -6398,7 +6398,7 @@ public void TestV2CoreEventDestinationPost4()
6398
6398
HttpMethod . Post ,
6399
6399
"/v2/core/event_destinations/id_123/enable" ,
6400
6400
( HttpStatusCode ) 200 ,
6401
- "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" amazon_eventbridge \" :null, \" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" events_from \" :null, \" livemode\" :true,\" metadata \" :null, \" name\" :\" name\" ,\" snapshot_api_version \" :null, \" status\" :\" disabled\" ,\" status_details \" :null, \" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" , \" webhook_endpoint \" :null }" ) ;
6401
+ "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event_destination\" ,\" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" description\" :\" description\" ,\" enabled_events\" :[\" enabled_events\" ],\" event_payload\" :\" thin\" ,\" livemode\" :true,\" name\" :\" name\" ,\" status\" :\" disabled\" ,\" type\" :\" amazon_eventbridge\" ,\" updated\" :\" 1970-01-03T17:07:10.277Z\" }" ) ;
6402
6402
var client = new StripeClient ( this . Requestor ) ;
6403
6403
var service = client . V2 . Core . EventDestinations ;
6404
6404
Stripe . V2 . EventDestination eventDestination = service . Enable (
@@ -6415,7 +6415,7 @@ public void TestV2CoreEventDestinationPost5()
6415
6415
HttpMethod . Post ,
6416
6416
"/v2/core/event_destinations/id_123/ping" ,
6417
6417
( HttpStatusCode ) 200 ,
6418
- "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event\" ,\" context \" :null, \" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" livemode\" :true, \" reason \" :null ,\" type\" :\" type\" }" ) ;
6418
+ "{\" id\" :\" obj_123\" ,\" object\" :\" v2.core.event\" ,\" created\" :\" 1970-01-12T21:42:34.472Z\" ,\" livemode\" :true,\" type\" :\" type\" }" ) ;
6419
6419
var client = new StripeClient ( this . Requestor ) ;
6420
6420
var service = client . V2 . Core . EventDestinations ;
6421
6421
Stripe . V2 . Event result = service . Ping ( "id_123" ) ;
0 commit comments