criteo-api-retailmedia-sdk 2024.7.0.240731__py3-none-any.whl → 2024.7.0.240808__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.

Files changed (37) hide show
  1. {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/METADATA +3 -3
  2. {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/RECORD +33 -30
  3. criteo_api_retailmedia_v2024_07/__init__.py +1 -1
  4. criteo_api_retailmedia_v2024_07/api/balance_api.py +118 -90
  5. criteo_api_retailmedia_v2024_07/api/campaign_api.py +711 -707
  6. criteo_api_retailmedia_v2024_07/api_client.py +1 -1
  7. criteo_api_retailmedia_v2024_07/configuration.py +1 -1
  8. criteo_api_retailmedia_v2024_07/model/{external_add_funds_to_balance.py → add_funds_to_balance_v2.py} +12 -14
  9. criteo_api_retailmedia_v2024_07/model/{add_funds_to_balance_request.py → add_funds_to_balance_v2_request.py} +8 -8
  10. criteo_api_retailmedia_v2024_07/model/{external_balance_response.py → balance_response_v2.py} +46 -70
  11. criteo_api_retailmedia_v2024_07/model/{balance_response.py → balance_response_v2_response.py} +8 -8
  12. criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2.py +271 -0
  13. criteo_api_retailmedia_v2024_07/model/{change_dates_of_balance_request.py → change_dates_of_balance_v2_request.py} +8 -8
  14. criteo_api_retailmedia_v2024_07/model/{external_create_balance.py → create_balance_v2.py} +22 -34
  15. criteo_api_retailmedia_v2024_07/model/{create_balance_request.py → create_balance_v2_request.py} +8 -8
  16. criteo_api_retailmedia_v2024_07/model/line_item_product_status.py +291 -0
  17. criteo_api_retailmedia_v2024_07/model/{balance_response_paged_list_response.py → paged_resource_collection_outcome_of_balance_response_v2.py} +8 -8
  18. criteo_api_retailmedia_v2024_07/model/product_metadata.py +269 -0
  19. criteo_api_retailmedia_v2024_07/model/product_resource_outcome.py +266 -0
  20. criteo_api_retailmedia_v2024_07/model/promoted_product.py +270 -0
  21. criteo_api_retailmedia_v2024_07/model/promoted_product_resource.py +270 -0
  22. criteo_api_retailmedia_v2024_07/model/{external_promoted_product202110.py → promoted_product_resource_collection_input.py} +13 -14
  23. criteo_api_retailmedia_v2024_07/model/{promoted_product202110_paged_list_response.py → promoted_product_resource_collection_outcome.py} +25 -32
  24. criteo_api_retailmedia_v2024_07/model/{resource_of_add_funds_to_balance.py → resource_of_add_funds_to_balance_v2.py} +8 -8
  25. criteo_api_retailmedia_v2024_07/model/{resource_of_create_balance.py → resource_of_balance_response_v2.py} +8 -8
  26. criteo_api_retailmedia_v2024_07/model/{resource_of_update_balance_model.py → resource_of_change_dates_of_balance_v2.py} +8 -8
  27. criteo_api_retailmedia_v2024_07/model/{resource_of_balance_response.py → resource_of_create_balance_v2.py} +8 -8
  28. criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model_v2.py +277 -0
  29. criteo_api_retailmedia_v2024_07/model/{external_change_dates_of_balance.py → update_balance_model_v2.py} +22 -24
  30. criteo_api_retailmedia_v2024_07/model/{update_balance_model_request.py → update_balance_model_v2_request.py} +8 -8
  31. criteo_api_retailmedia_v2024_07/models/__init__.py +23 -20
  32. criteo_api_retailmedia_v2024_07/model/external_update_balance_model.py +0 -283
  33. criteo_api_retailmedia_v2024_07/model/promoted_product202110_list_request.py +0 -269
  34. criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance.py +0 -277
  35. criteo_api_retailmedia_v2024_07/model/resource_of_promoted_product202110.py +0 -277
  36. {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/WHEEL +0 -0
  37. {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/top_level.txt +0 -0
@@ -21,14 +21,14 @@ from criteo_api_retailmedia_v2024_07.model_utils import ( # noqa: F401
21
21
  none_type,
22
22
  validate_and_convert_types
23
23
  )
24
- from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_request import AddFundsToBalanceRequest
24
+ from criteo_api_retailmedia_v2024_07.model.add_funds_to_balance_v2_request import AddFundsToBalanceV2Request
25
25
  from criteo_api_retailmedia_v2024_07.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse
26
- from criteo_api_retailmedia_v2024_07.model.balance_response import BalanceResponse
27
- from criteo_api_retailmedia_v2024_07.model.balance_response_paged_list_response import BalanceResponsePagedListResponse
28
- from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_request import ChangeDatesOfBalanceRequest
29
- from criteo_api_retailmedia_v2024_07.model.create_balance_request import CreateBalanceRequest
26
+ from criteo_api_retailmedia_v2024_07.model.balance_response_v2_response import BalanceResponseV2Response
27
+ from criteo_api_retailmedia_v2024_07.model.change_dates_of_balance_v2_request import ChangeDatesOfBalanceV2Request
28
+ from criteo_api_retailmedia_v2024_07.model.create_balance_v2_request import CreateBalanceV2Request
30
29
  from criteo_api_retailmedia_v2024_07.model.page_of_balance_history_change_data_capture_v1 import PageOfBalanceHistoryChangeDataCaptureV1
31
- from criteo_api_retailmedia_v2024_07.model.update_balance_model_request import UpdateBalanceModelRequest
30
+ from criteo_api_retailmedia_v2024_07.model.paged_resource_collection_outcome_of_balance_response_v2 import PagedResourceCollectionOutcomeOfBalanceResponseV2
31
+ from criteo_api_retailmedia_v2024_07.model.update_balance_model_v2_request import UpdateBalanceModelV2Request
32
32
 
33
33
 
34
34
  class BalanceApi(object):
@@ -110,15 +110,15 @@ class BalanceApi(object):
110
110
  },
111
111
  api_client=api_client
112
112
  )
113
- self.get_api_v1_external_account_balances_by_account_id_endpoint = _Endpoint(
113
+ self.get_api_v2_external_account_balances_by_account_id_endpoint = _Endpoint(
114
114
  settings={
115
- 'response_type': (BalanceResponsePagedListResponse,),
115
+ 'response_type': (PagedResourceCollectionOutcomeOfBalanceResponseV2,),
116
116
  'auth': [
117
117
  'oauth',
118
118
  'oauth'
119
119
  ],
120
120
  'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances',
121
- 'operation_id': 'get_api_v1_external_account_balances_by_account_id',
121
+ 'operation_id': 'get_api_v2_external_account_balances_by_account_id',
122
122
  'http_method': 'GET',
123
123
  'servers': None,
124
124
  },
@@ -172,21 +172,23 @@ class BalanceApi(object):
172
172
  },
173
173
  headers_map={
174
174
  'accept': [
175
- 'application/json'
175
+ 'text/plain',
176
+ 'application/json',
177
+ 'text/json'
176
178
  ],
177
179
  'content_type': [],
178
180
  },
179
181
  api_client=api_client
180
182
  )
181
- self.get_api_v1_external_account_by_account_id_and_balance_id_endpoint = _Endpoint(
183
+ self.get_api_v2_external_account_by_account_id_balancesbalance_id_endpoint = _Endpoint(
182
184
  settings={
183
- 'response_type': (BalanceResponse,),
185
+ 'response_type': (BalanceResponseV2Response,),
184
186
  'auth': [
185
187
  'oauth',
186
188
  'oauth'
187
189
  ],
188
- 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balanceId}',
189
- 'operation_id': 'get_api_v1_external_account_by_account_id_and_balance_id',
190
+ 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balance-id}',
191
+ 'operation_id': 'get_api_v2_external_account_by_account_id_balancesbalance_id',
190
192
  'http_method': 'GET',
191
193
  'servers': None,
192
194
  },
@@ -219,7 +221,7 @@ class BalanceApi(object):
219
221
  },
220
222
  'attribute_map': {
221
223
  'account_id': 'account-id',
222
- 'balance_id': 'balanceId',
224
+ 'balance_id': 'balance-id',
223
225
  },
224
226
  'location_map': {
225
227
  'account_id': 'path',
@@ -230,7 +232,9 @@ class BalanceApi(object):
230
232
  },
231
233
  headers_map={
232
234
  'accept': [
233
- 'application/json'
235
+ 'text/plain',
236
+ 'application/json',
237
+ 'text/json'
234
238
  ],
235
239
  'content_type': [],
236
240
  },
@@ -315,15 +319,15 @@ class BalanceApi(object):
315
319
  },
316
320
  api_client=api_client
317
321
  )
318
- self.patch_api_v1_external_account_by_account_id_and_balance_id_endpoint = _Endpoint(
322
+ self.patch_api_v2_external_account_by_account_id_balancesbalance_id_endpoint = _Endpoint(
319
323
  settings={
320
- 'response_type': (BalanceResponse,),
324
+ 'response_type': (BalanceResponseV2Response,),
321
325
  'auth': [
322
326
  'oauth',
323
327
  'oauth'
324
328
  ],
325
- 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balanceId}',
326
- 'operation_id': 'patch_api_v1_external_account_by_account_id_and_balance_id',
329
+ 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balance-id}',
330
+ 'operation_id': 'patch_api_v2_external_account_by_account_id_balancesbalance_id',
327
331
  'http_method': 'PATCH',
328
332
  'servers': None,
329
333
  },
@@ -331,11 +335,12 @@ class BalanceApi(object):
331
335
  'all': [
332
336
  'account_id',
333
337
  'balance_id',
334
- 'update_balance_model_request',
338
+ 'update_balance_model_v2_request',
335
339
  ],
336
340
  'required': [
337
341
  'account_id',
338
342
  'balance_id',
343
+ 'update_balance_model_v2_request',
339
344
  ],
340
345
  'nullable': [
341
346
  ],
@@ -354,24 +359,26 @@ class BalanceApi(object):
354
359
  (str,),
355
360
  'balance_id':
356
361
  (str,),
357
- 'update_balance_model_request':
358
- (UpdateBalanceModelRequest,),
362
+ 'update_balance_model_v2_request':
363
+ (UpdateBalanceModelV2Request,),
359
364
  },
360
365
  'attribute_map': {
361
366
  'account_id': 'account-id',
362
- 'balance_id': 'balanceId',
367
+ 'balance_id': 'balance-id',
363
368
  },
364
369
  'location_map': {
365
370
  'account_id': 'path',
366
371
  'balance_id': 'path',
367
- 'update_balance_model_request': 'body',
372
+ 'update_balance_model_v2_request': 'body',
368
373
  },
369
374
  'collection_format_map': {
370
375
  }
371
376
  },
372
377
  headers_map={
373
378
  'accept': [
374
- 'application/json'
379
+ 'text/plain',
380
+ 'application/json',
381
+ 'text/json'
375
382
  ],
376
383
  'content_type': [
377
384
  'application/json'
@@ -379,15 +386,15 @@ class BalanceApi(object):
379
386
  },
380
387
  api_client=api_client
381
388
  )
382
- self.post_api_v1_external_account_add_funds_by_account_id_and_balance_id_endpoint = _Endpoint(
389
+ self.post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id_endpoint = _Endpoint(
383
390
  settings={
384
- 'response_type': (BalanceResponse,),
391
+ 'response_type': (BalanceResponseV2Response,),
385
392
  'auth': [
386
393
  'oauth',
387
394
  'oauth'
388
395
  ],
389
- 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balanceId}/add-funds',
390
- 'operation_id': 'post_api_v1_external_account_add_funds_by_account_id_and_balance_id',
396
+ 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balance-id}/add-funds',
397
+ 'operation_id': 'post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id',
391
398
  'http_method': 'POST',
392
399
  'servers': None,
393
400
  },
@@ -395,11 +402,12 @@ class BalanceApi(object):
395
402
  'all': [
396
403
  'account_id',
397
404
  'balance_id',
398
- 'add_funds_to_balance_request',
405
+ 'add_funds_to_balance_v2_request',
399
406
  ],
400
407
  'required': [
401
408
  'account_id',
402
409
  'balance_id',
410
+ 'add_funds_to_balance_v2_request',
403
411
  ],
404
412
  'nullable': [
405
413
  ],
@@ -418,24 +426,26 @@ class BalanceApi(object):
418
426
  (str,),
419
427
  'balance_id':
420
428
  (str,),
421
- 'add_funds_to_balance_request':
422
- (AddFundsToBalanceRequest,),
429
+ 'add_funds_to_balance_v2_request':
430
+ (AddFundsToBalanceV2Request,),
423
431
  },
424
432
  'attribute_map': {
425
433
  'account_id': 'account-id',
426
- 'balance_id': 'balanceId',
434
+ 'balance_id': 'balance-id',
427
435
  },
428
436
  'location_map': {
429
437
  'account_id': 'path',
430
438
  'balance_id': 'path',
431
- 'add_funds_to_balance_request': 'body',
439
+ 'add_funds_to_balance_v2_request': 'body',
432
440
  },
433
441
  'collection_format_map': {
434
442
  }
435
443
  },
436
444
  headers_map={
437
445
  'accept': [
438
- 'application/json'
446
+ 'text/plain',
447
+ 'application/json',
448
+ 'text/json'
439
449
  ],
440
450
  'content_type': [
441
451
  'application/json'
@@ -443,25 +453,26 @@ class BalanceApi(object):
443
453
  },
444
454
  api_client=api_client
445
455
  )
446
- self.post_api_v1_external_account_balances_by_account_id_endpoint = _Endpoint(
456
+ self.post_api_v2_external_account_balances_by_account_id_endpoint = _Endpoint(
447
457
  settings={
448
- 'response_type': (BalanceResponse,),
458
+ 'response_type': (BalanceResponseV2Response,),
449
459
  'auth': [
450
460
  'oauth',
451
461
  'oauth'
452
462
  ],
453
463
  'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances',
454
- 'operation_id': 'post_api_v1_external_account_balances_by_account_id',
464
+ 'operation_id': 'post_api_v2_external_account_balances_by_account_id',
455
465
  'http_method': 'POST',
456
466
  'servers': None,
457
467
  },
458
468
  params_map={
459
469
  'all': [
460
470
  'account_id',
461
- 'create_balance_request',
471
+ 'create_balance_v2_request',
462
472
  ],
463
473
  'required': [
464
474
  'account_id',
475
+ 'create_balance_v2_request',
465
476
  ],
466
477
  'nullable': [
467
478
  ],
@@ -478,22 +489,24 @@ class BalanceApi(object):
478
489
  'openapi_types': {
479
490
  'account_id':
480
491
  (str,),
481
- 'create_balance_request':
482
- (CreateBalanceRequest,),
492
+ 'create_balance_v2_request':
493
+ (CreateBalanceV2Request,),
483
494
  },
484
495
  'attribute_map': {
485
496
  'account_id': 'account-id',
486
497
  },
487
498
  'location_map': {
488
499
  'account_id': 'path',
489
- 'create_balance_request': 'body',
500
+ 'create_balance_v2_request': 'body',
490
501
  },
491
502
  'collection_format_map': {
492
503
  }
493
504
  },
494
505
  headers_map={
495
506
  'accept': [
496
- 'application/json'
507
+ 'text/plain',
508
+ 'application/json',
509
+ 'text/json'
497
510
  ],
498
511
  'content_type': [
499
512
  'application/json'
@@ -501,15 +514,15 @@ class BalanceApi(object):
501
514
  },
502
515
  api_client=api_client
503
516
  )
504
- self.post_api_v1_external_account_change_dates_by_account_id_and_balance_id_endpoint = _Endpoint(
517
+ self.post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id_endpoint = _Endpoint(
505
518
  settings={
506
- 'response_type': (BalanceResponse,),
519
+ 'response_type': (BalanceResponseV2Response,),
507
520
  'auth': [
508
521
  'oauth',
509
522
  'oauth'
510
523
  ],
511
- 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balanceId}/change-dates',
512
- 'operation_id': 'post_api_v1_external_account_change_dates_by_account_id_and_balance_id',
524
+ 'endpoint_path': '/2024-07/retail-media/accounts/{account-id}/balances/{balance-id}/change-dates',
525
+ 'operation_id': 'post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id',
513
526
  'http_method': 'POST',
514
527
  'servers': None,
515
528
  },
@@ -517,11 +530,12 @@ class BalanceApi(object):
517
530
  'all': [
518
531
  'account_id',
519
532
  'balance_id',
520
- 'change_dates_of_balance_request',
533
+ 'change_dates_of_balance_v2_request',
521
534
  ],
522
535
  'required': [
523
536
  'account_id',
524
537
  'balance_id',
538
+ 'change_dates_of_balance_v2_request',
525
539
  ],
526
540
  'nullable': [
527
541
  ],
@@ -540,24 +554,26 @@ class BalanceApi(object):
540
554
  (str,),
541
555
  'balance_id':
542
556
  (str,),
543
- 'change_dates_of_balance_request':
544
- (ChangeDatesOfBalanceRequest,),
557
+ 'change_dates_of_balance_v2_request':
558
+ (ChangeDatesOfBalanceV2Request,),
545
559
  },
546
560
  'attribute_map': {
547
561
  'account_id': 'account-id',
548
- 'balance_id': 'balanceId',
562
+ 'balance_id': 'balance-id',
549
563
  },
550
564
  'location_map': {
551
565
  'account_id': 'path',
552
566
  'balance_id': 'path',
553
- 'change_dates_of_balance_request': 'body',
567
+ 'change_dates_of_balance_v2_request': 'body',
554
568
  },
555
569
  'collection_format_map': {
556
570
  }
557
571
  },
558
572
  headers_map={
559
573
  'accept': [
560
- 'application/json'
574
+ 'text/plain',
575
+ 'application/json',
576
+ 'text/json'
561
577
  ],
562
578
  'content_type': [
563
579
  'application/json'
@@ -652,22 +668,22 @@ class BalanceApi(object):
652
668
  balance_id
653
669
  return self.get_api202110_external_balance_campaigns_by_balance_id_endpoint.call_with_http_info(**kwargs)
654
670
 
655
- def get_api_v1_external_account_balances_by_account_id(
671
+ def get_api_v2_external_account_balances_by_account_id(
656
672
  self,
657
673
  account_id,
658
674
  **kwargs
659
675
  ):
660
- """get_api_v1_external_account_balances_by_account_id # noqa: E501
676
+ """get_api_v2_external_account_balances_by_account_id # noqa: E501
661
677
 
662
- Get page of balances for the given accountId. # noqa: E501
678
+ Gets page of balance objects for the given account id # noqa: E501
663
679
  This method makes a synchronous HTTP request by default. To make an
664
680
  asynchronous HTTP request, please pass async_req=True
665
681
 
666
- >>> thread = api.get_api_v1_external_account_balances_by_account_id(account_id, async_req=True)
682
+ >>> thread = api.get_api_v2_external_account_balances_by_account_id(account_id, async_req=True)
667
683
  >>> result = thread.get()
668
684
 
669
685
  Args:
670
- account_id (str): The account to get page of balances for
686
+ account_id (str): The account to get balances for
671
687
 
672
688
  Keyword Args:
673
689
  limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
@@ -705,7 +721,7 @@ class BalanceApi(object):
705
721
  async_req (bool): execute request asynchronously
706
722
 
707
723
  Returns:
708
- BalanceResponsePagedListResponse
724
+ PagedResourceCollectionOutcomeOfBalanceResponseV2
709
725
  If the method is called asynchronously, returns the request
710
726
  thread.
711
727
  """
@@ -736,21 +752,21 @@ class BalanceApi(object):
736
752
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
737
753
  kwargs['account_id'] = \
738
754
  account_id
739
- return self.get_api_v1_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs)
755
+ return self.get_api_v2_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs)
740
756
 
741
- def get_api_v1_external_account_by_account_id_and_balance_id(
757
+ def get_api_v2_external_account_by_account_id_balancesbalance_id(
742
758
  self,
743
759
  account_id,
744
760
  balance_id,
745
761
  **kwargs
746
762
  ):
747
- """get_api_v1_external_account_by_account_id_and_balance_id # noqa: E501
763
+ """get_api_v2_external_account_by_account_id_balancesbalance_id # noqa: E501
748
764
 
749
765
  Get a balance for the given account id and balance id # noqa: E501
750
766
  This method makes a synchronous HTTP request by default. To make an
751
767
  asynchronous HTTP request, please pass async_req=True
752
768
 
753
- >>> thread = api.get_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id, async_req=True)
769
+ >>> thread = api.get_api_v2_external_account_by_account_id_balancesbalance_id(account_id, balance_id, async_req=True)
754
770
  >>> result = thread.get()
755
771
 
756
772
  Args:
@@ -790,7 +806,7 @@ class BalanceApi(object):
790
806
  async_req (bool): execute request asynchronously
791
807
 
792
808
  Returns:
793
- BalanceResponse
809
+ BalanceResponseV2Response
794
810
  If the method is called asynchronously, returns the request
795
811
  thread.
796
812
  """
@@ -823,7 +839,7 @@ class BalanceApi(object):
823
839
  account_id
824
840
  kwargs['balance_id'] = \
825
841
  balance_id
826
- return self.get_api_v1_external_account_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs)
842
+ return self.get_api_v2_external_account_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs)
827
843
 
828
844
  def get_balance_history(
829
845
  self,
@@ -911,27 +927,28 @@ class BalanceApi(object):
911
927
  balance_id
912
928
  return self.get_balance_history_endpoint.call_with_http_info(**kwargs)
913
929
 
914
- def patch_api_v1_external_account_by_account_id_and_balance_id(
930
+ def patch_api_v2_external_account_by_account_id_balancesbalance_id(
915
931
  self,
916
932
  account_id,
917
933
  balance_id,
934
+ update_balance_model_v2_request,
918
935
  **kwargs
919
936
  ):
920
- """patch_api_v1_external_account_by_account_id_and_balance_id # noqa: E501
937
+ """patch_api_v2_external_account_by_account_id_balancesbalance_id # noqa: E501
921
938
 
922
939
  Modify a balance for the given account id # noqa: E501
923
940
  This method makes a synchronous HTTP request by default. To make an
924
941
  asynchronous HTTP request, please pass async_req=True
925
942
 
926
- >>> thread = api.patch_api_v1_external_account_by_account_id_and_balance_id(account_id, balance_id, async_req=True)
943
+ >>> thread = api.patch_api_v2_external_account_by_account_id_balancesbalance_id(account_id, balance_id, update_balance_model_v2_request, async_req=True)
927
944
  >>> result = thread.get()
928
945
 
929
946
  Args:
930
947
  account_id (str): The account of the balance
931
948
  balance_id (str): The balance to change the dates
949
+ update_balance_model_v2_request (UpdateBalanceModelV2Request): An object that represents the available options to modify a balance.
932
950
 
933
951
  Keyword Args:
934
- update_balance_model_request (UpdateBalanceModelRequest): [optional]
935
952
  _return_http_data_only (bool): response data without head status
936
953
  code and headers. Default is True.
937
954
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -964,7 +981,7 @@ class BalanceApi(object):
964
981
  async_req (bool): execute request asynchronously
965
982
 
966
983
  Returns:
967
- BalanceResponse
984
+ BalanceResponseV2Response
968
985
  If the method is called asynchronously, returns the request
969
986
  thread.
970
987
  """
@@ -997,29 +1014,32 @@ class BalanceApi(object):
997
1014
  account_id
998
1015
  kwargs['balance_id'] = \
999
1016
  balance_id
1000
- return self.patch_api_v1_external_account_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs)
1017
+ kwargs['update_balance_model_v2_request'] = \
1018
+ update_balance_model_v2_request
1019
+ return self.patch_api_v2_external_account_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs)
1001
1020
 
1002
- def post_api_v1_external_account_add_funds_by_account_id_and_balance_id(
1021
+ def post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id(
1003
1022
  self,
1004
1023
  account_id,
1005
1024
  balance_id,
1025
+ add_funds_to_balance_v2_request,
1006
1026
  **kwargs
1007
1027
  ):
1008
- """post_api_v1_external_account_add_funds_by_account_id_and_balance_id # noqa: E501
1028
+ """post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id # noqa: E501
1009
1029
 
1010
1030
  Add funds to a balance for the given account id # noqa: E501
1011
1031
  This method makes a synchronous HTTP request by default. To make an
1012
1032
  asynchronous HTTP request, please pass async_req=True
1013
1033
 
1014
- >>> thread = api.post_api_v1_external_account_add_funds_by_account_id_and_balance_id(account_id, balance_id, async_req=True)
1034
+ >>> thread = api.post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id(account_id, balance_id, add_funds_to_balance_v2_request, async_req=True)
1015
1035
  >>> result = thread.get()
1016
1036
 
1017
1037
  Args:
1018
1038
  account_id (str): The account of the balance
1019
1039
  balance_id (str): The balance to add funds to
1040
+ add_funds_to_balance_v2_request (AddFundsToBalanceV2Request): An object that represents the available options of adding funds to a balance.
1020
1041
 
1021
1042
  Keyword Args:
1022
- add_funds_to_balance_request (AddFundsToBalanceRequest): [optional]
1023
1043
  _return_http_data_only (bool): response data without head status
1024
1044
  code and headers. Default is True.
1025
1045
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -1052,7 +1072,7 @@ class BalanceApi(object):
1052
1072
  async_req (bool): execute request asynchronously
1053
1073
 
1054
1074
  Returns:
1055
- BalanceResponse
1075
+ BalanceResponseV2Response
1056
1076
  If the method is called asynchronously, returns the request
1057
1077
  thread.
1058
1078
  """
@@ -1085,27 +1105,30 @@ class BalanceApi(object):
1085
1105
  account_id
1086
1106
  kwargs['balance_id'] = \
1087
1107
  balance_id
1088
- return self.post_api_v1_external_account_add_funds_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs)
1108
+ kwargs['add_funds_to_balance_v2_request'] = \
1109
+ add_funds_to_balance_v2_request
1110
+ return self.post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs)
1089
1111
 
1090
- def post_api_v1_external_account_balances_by_account_id(
1112
+ def post_api_v2_external_account_balances_by_account_id(
1091
1113
  self,
1092
1114
  account_id,
1115
+ create_balance_v2_request,
1093
1116
  **kwargs
1094
1117
  ):
1095
- """post_api_v1_external_account_balances_by_account_id # noqa: E501
1118
+ """post_api_v2_external_account_balances_by_account_id # noqa: E501
1096
1119
 
1097
1120
  Create balance for the given account id # noqa: E501
1098
1121
  This method makes a synchronous HTTP request by default. To make an
1099
1122
  asynchronous HTTP request, please pass async_req=True
1100
1123
 
1101
- >>> thread = api.post_api_v1_external_account_balances_by_account_id(account_id, async_req=True)
1124
+ >>> thread = api.post_api_v2_external_account_balances_by_account_id(account_id, create_balance_v2_request, async_req=True)
1102
1125
  >>> result = thread.get()
1103
1126
 
1104
1127
  Args:
1105
1128
  account_id (str): The account to create balances for
1129
+ create_balance_v2_request (CreateBalanceV2Request): An object that represents the available options to set when creating a Retail Media Balance
1106
1130
 
1107
1131
  Keyword Args:
1108
- create_balance_request (CreateBalanceRequest): [optional]
1109
1132
  _return_http_data_only (bool): response data without head status
1110
1133
  code and headers. Default is True.
1111
1134
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -1138,7 +1161,7 @@ class BalanceApi(object):
1138
1161
  async_req (bool): execute request asynchronously
1139
1162
 
1140
1163
  Returns:
1141
- BalanceResponse
1164
+ BalanceResponseV2Response
1142
1165
  If the method is called asynchronously, returns the request
1143
1166
  thread.
1144
1167
  """
@@ -1169,29 +1192,32 @@ class BalanceApi(object):
1169
1192
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
1170
1193
  kwargs['account_id'] = \
1171
1194
  account_id
1172
- return self.post_api_v1_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs)
1195
+ kwargs['create_balance_v2_request'] = \
1196
+ create_balance_v2_request
1197
+ return self.post_api_v2_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs)
1173
1198
 
1174
- def post_api_v1_external_account_change_dates_by_account_id_and_balance_id(
1199
+ def post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id(
1175
1200
  self,
1176
1201
  account_id,
1177
1202
  balance_id,
1203
+ change_dates_of_balance_v2_request,
1178
1204
  **kwargs
1179
1205
  ):
1180
- """post_api_v1_external_account_change_dates_by_account_id_and_balance_id # noqa: E501
1206
+ """post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id # noqa: E501
1181
1207
 
1182
1208
  Change dates of a balance for the given account id # noqa: E501
1183
1209
  This method makes a synchronous HTTP request by default. To make an
1184
1210
  asynchronous HTTP request, please pass async_req=True
1185
1211
 
1186
- >>> thread = api.post_api_v1_external_account_change_dates_by_account_id_and_balance_id(account_id, balance_id, async_req=True)
1212
+ >>> thread = api.post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id(account_id, balance_id, change_dates_of_balance_v2_request, async_req=True)
1187
1213
  >>> result = thread.get()
1188
1214
 
1189
1215
  Args:
1190
1216
  account_id (str): The account of the balance
1191
1217
  balance_id (str): The balance to change the dates
1218
+ change_dates_of_balance_v2_request (ChangeDatesOfBalanceV2Request): An object that represents the available options to modify schedule of a balance.
1192
1219
 
1193
1220
  Keyword Args:
1194
- change_dates_of_balance_request (ChangeDatesOfBalanceRequest): [optional]
1195
1221
  _return_http_data_only (bool): response data without head status
1196
1222
  code and headers. Default is True.
1197
1223
  _preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -1224,7 +1250,7 @@ class BalanceApi(object):
1224
1250
  async_req (bool): execute request asynchronously
1225
1251
 
1226
1252
  Returns:
1227
- BalanceResponse
1253
+ BalanceResponseV2Response
1228
1254
  If the method is called asynchronously, returns the request
1229
1255
  thread.
1230
1256
  """
@@ -1257,5 +1283,7 @@ class BalanceApi(object):
1257
1283
  account_id
1258
1284
  kwargs['balance_id'] = \
1259
1285
  balance_id
1260
- return self.post_api_v1_external_account_change_dates_by_account_id_and_balance_id_endpoint.call_with_http_info(**kwargs)
1286
+ kwargs['change_dates_of_balance_v2_request'] = \
1287
+ change_dates_of_balance_v2_request
1288
+ return self.post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs)
1261
1289