Skip to content

Commit 3fc73cf

Browse files
authored
Merge pull request #97 from CyberSource/june-release
June release
2 parents 3edaeca + 4c5ce50 commit 3fc73cf

40 files changed

Lines changed: 2177 additions & 209 deletions

File tree

CyberSource/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,11 @@
268268
from .models.pts_v2_payments_post201_response_consumer_authentication_information_ivr import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationIvr
269269
from .models.pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthentication
270270
from .models.pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication_issuer_information import PtsV2PaymentsPost201ResponseConsumerAuthenticationInformationStrongAuthenticationIssuerInformation
271+
from .models.pts_v2_payments_post201_response_embedded_actions import PtsV2PaymentsPost201ResponseEmbeddedActions
272+
from .models.pts_v2_payments_post201_response_embedded_actions_capture import PtsV2PaymentsPost201ResponseEmbeddedActionsCAPTURE
273+
from .models.pts_v2_payments_post201_response_embedded_actions_consumer_authentication import PtsV2PaymentsPost201ResponseEmbeddedActionsCONSUMERAUTHENTICATION
274+
from .models.pts_v2_payments_post201_response_embedded_actions_decision import PtsV2PaymentsPost201ResponseEmbeddedActionsDECISION
275+
from .models.pts_v2_payments_post201_response_embedded_actions_watchlist_screening import PtsV2PaymentsPost201ResponseEmbeddedActionsWATCHLISTSCREENING
271276
from .models.pts_v2_payments_post201_response_error_information import PtsV2PaymentsPost201ResponseErrorInformation
272277
from .models.pts_v2_payments_post201_response_error_information_details import PtsV2PaymentsPost201ResponseErrorInformationDetails
273278
from .models.pts_v2_payments_post201_response_installment_information import PtsV2PaymentsPost201ResponseInstallmentInformation
@@ -880,6 +885,7 @@
880885
from .models.tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation
881886
from .models.tss_v2_transactions_post201_response__embedded_client_reference_information_partner import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformationPartner
882887
from .models.tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation
888+
from .models.tss_v2_transactions_post201_response__embedded_error_information import TssV2TransactionsPost201ResponseEmbeddedErrorInformation
883889
from .models.tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks
884890
from .models.tss_v2_transactions_post201_response__embedded_merchant_information import TssV2TransactionsPost201ResponseEmbeddedMerchantInformation
885891
from .models.tss_v2_transactions_post201_response__embedded_order_information import TssV2TransactionsPost201ResponseEmbeddedOrderInformation

CyberSource/api/plans_api.py

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def activate_plan(self, id, **kwargs):
6060
:param callback function: The callback function
6161
for asynchronous request. (optional)
6262
:param str id: Plan Id (required)
63-
:param object activate_plan_request:
6463
:return: InlineResponse2004
6564
If the method is called asynchronously,
6665
returns the request thread.
@@ -91,13 +90,12 @@ def activate_plan_with_http_info(self, id, **kwargs):
9190
:param callback function: The callback function
9291
for asynchronous request. (optional)
9392
:param str id: Plan Id (required)
94-
:param object activate_plan_request:
9593
:return: InlineResponse2004
9694
If the method is called asynchronously,
9795
returns the request thread.
9896
"""
9997

100-
all_params = ['id', 'activate_plan_request']
98+
all_params = ['id']
10199
all_params.append('callback')
102100
all_params.append('_return_http_data_only')
103101
all_params.append('_preload_content')
@@ -133,10 +131,10 @@ def activate_plan_with_http_info(self, id, **kwargs):
133131
local_var_files = {}
134132

135133
body_params = None
136-
if 'activate_plan_request' in params:
137-
body_params = params['activate_plan_request']
134+
if 'POST' in ('POST'):
135+
body_params = '{}'
138136
# HTTP header `Accept`
139-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
137+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
140138

141139
# HTTP header `Content-Type`
142140
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -246,7 +244,7 @@ def create_plan_with_http_info(self, create_plan_request, **kwargs):
246244
if 'create_plan_request' in params:
247245
body_params = params['create_plan_request']
248246
# HTTP header `Accept`
249-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
247+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
250248

251249
# HTTP header `Content-Type`
252250
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -284,7 +282,6 @@ def deactivate_plan(self, id, **kwargs):
284282
:param callback function: The callback function
285283
for asynchronous request. (optional)
286284
:param str id: Plan Id (required)
287-
:param object deactivate_plan_request:
288285
:return: InlineResponse2004
289286
If the method is called asynchronously,
290287
returns the request thread.
@@ -315,13 +312,12 @@ def deactivate_plan_with_http_info(self, id, **kwargs):
315312
:param callback function: The callback function
316313
for asynchronous request. (optional)
317314
:param str id: Plan Id (required)
318-
:param object deactivate_plan_request:
319315
:return: InlineResponse2004
320316
If the method is called asynchronously,
321317
returns the request thread.
322318
"""
323319

324-
all_params = ['id', 'deactivate_plan_request']
320+
all_params = ['id']
325321
all_params.append('callback')
326322
all_params.append('_return_http_data_only')
327323
all_params.append('_preload_content')
@@ -357,10 +353,10 @@ def deactivate_plan_with_http_info(self, id, **kwargs):
357353
local_var_files = {}
358354

359355
body_params = None
360-
if 'deactivate_plan_request' in params:
361-
body_params = params['deactivate_plan_request']
356+
if 'POST' in ('POST'):
357+
body_params = '{}'
362358
# HTTP header `Accept`
363-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
359+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
364360

365361
# HTTP header `Content-Type`
366362
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -472,7 +468,7 @@ def delete_plan_with_http_info(self, id, **kwargs):
472468
if 'DELETE' in ('POST'):
473469
body_params = '{}'
474470
# HTTP header `Accept`
475-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
471+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
476472

477473
# HTTP header `Content-Type`
478474
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -584,7 +580,7 @@ def get_plan_with_http_info(self, id, **kwargs):
584580
if 'GET' in ('POST'):
585581
body_params = '{}'
586582
# HTTP header `Accept`
587-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
583+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
588584

589585
# HTTP header `Content-Type`
590586
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -686,7 +682,7 @@ def get_plan_code_with_http_info(self, **kwargs):
686682
if 'GET' in ('POST'):
687683
body_params = '{}'
688684
# HTTP header `Accept`
689-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
685+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
690686

691687
# HTTP header `Content-Type`
692688
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -809,7 +805,7 @@ def get_plans_with_http_info(self, **kwargs):
809805
if 'GET' in ('POST'):
810806
body_params = '{}'
811807
# HTTP header `Accept`
812-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
808+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
813809

814810
# HTTP header `Content-Type`
815811
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -928,7 +924,7 @@ def update_plan_with_http_info(self, id, update_plan_request, **kwargs):
928924
if 'update_plan_request' in params:
929925
body_params = params['update_plan_request']
930926
# HTTP header `Accept`
931-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
927+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
932928

933929
# HTTP header `Content-Type`
934930
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])

CyberSource/api/subscriptions_api.py

Lines changed: 17 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def activate_subscription(self, id, **kwargs):
6060
:param callback function: The callback function
6161
for asynchronous request. (optional)
6262
:param str id: Subscription Id (required)
63-
:param object activate_subscription_request:
6463
:return: InlineResponse2009
6564
If the method is called asynchronously,
6665
returns the request thread.
@@ -91,13 +90,12 @@ def activate_subscription_with_http_info(self, id, **kwargs):
9190
:param callback function: The callback function
9291
for asynchronous request. (optional)
9392
:param str id: Subscription Id (required)
94-
:param object activate_subscription_request:
9593
:return: InlineResponse2009
9694
If the method is called asynchronously,
9795
returns the request thread.
9896
"""
9997

100-
all_params = ['id', 'activate_subscription_request']
98+
all_params = ['id']
10199
all_params.append('callback')
102100
all_params.append('_return_http_data_only')
103101
all_params.append('_preload_content')
@@ -133,10 +131,10 @@ def activate_subscription_with_http_info(self, id, **kwargs):
133131
local_var_files = {}
134132

135133
body_params = None
136-
if 'activate_subscription_request' in params:
137-
body_params = params['activate_subscription_request']
134+
if 'POST' in ('POST'):
135+
body_params = '{}'
138136
# HTTP header `Accept`
139-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
137+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
140138

141139
# HTTP header `Content-Type`
142140
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -174,7 +172,6 @@ def cancel_subscription(self, id, **kwargs):
174172
:param callback function: The callback function
175173
for asynchronous request. (optional)
176174
:param str id: Subscription Id (required)
177-
:param object cancel_subscription_request:
178175
:return: InlineResponse202
179176
If the method is called asynchronously,
180177
returns the request thread.
@@ -205,13 +202,12 @@ def cancel_subscription_with_http_info(self, id, **kwargs):
205202
:param callback function: The callback function
206203
for asynchronous request. (optional)
207204
:param str id: Subscription Id (required)
208-
:param object cancel_subscription_request:
209205
:return: InlineResponse202
210206
If the method is called asynchronously,
211207
returns the request thread.
212208
"""
213209

214-
all_params = ['id', 'cancel_subscription_request']
210+
all_params = ['id']
215211
all_params.append('callback')
216212
all_params.append('_return_http_data_only')
217213
all_params.append('_preload_content')
@@ -247,10 +243,10 @@ def cancel_subscription_with_http_info(self, id, **kwargs):
247243
local_var_files = {}
248244

249245
body_params = None
250-
if 'cancel_subscription_request' in params:
251-
body_params = params['cancel_subscription_request']
246+
if 'POST' in ('POST'):
247+
body_params = '{}'
252248
# HTTP header `Accept`
253-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
249+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
254250

255251
# HTTP header `Content-Type`
256252
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -360,7 +356,7 @@ def create_subscription_with_http_info(self, create_subscription_request, **kwar
360356
if 'create_subscription_request' in params:
361357
body_params = params['create_subscription_request']
362358
# HTTP header `Accept`
363-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
359+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
364360

365361
# HTTP header `Content-Type`
366362
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -479,7 +475,7 @@ def get_all_subscriptions_with_http_info(self, **kwargs):
479475
if 'GET' in ('POST'):
480476
body_params = '{}'
481477
# HTTP header `Accept`
482-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
478+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
483479

484480
# HTTP header `Content-Type`
485481
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -591,7 +587,7 @@ def get_subscription_with_http_info(self, id, **kwargs):
591587
if 'GET' in ('POST'):
592588
body_params = '{}'
593589
# HTTP header `Accept`
594-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
590+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
595591

596592
# HTTP header `Content-Type`
597593
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -693,7 +689,7 @@ def get_subscription_code_with_http_info(self, **kwargs):
693689
if 'GET' in ('POST'):
694690
body_params = '{}'
695691
# HTTP header `Accept`
696-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
692+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
697693

698694
# HTTP header `Content-Type`
699695
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -731,7 +727,6 @@ def suspend_subscription(self, id, **kwargs):
731727
:param callback function: The callback function
732728
for asynchronous request. (optional)
733729
:param str id: Subscription Id (required)
734-
:param object suspend_subscription_request:
735730
:return: InlineResponse2021
736731
If the method is called asynchronously,
737732
returns the request thread.
@@ -762,13 +757,12 @@ def suspend_subscription_with_http_info(self, id, **kwargs):
762757
:param callback function: The callback function
763758
for asynchronous request. (optional)
764759
:param str id: Subscription Id (required)
765-
:param object suspend_subscription_request:
766760
:return: InlineResponse2021
767761
If the method is called asynchronously,
768762
returns the request thread.
769763
"""
770764

771-
all_params = ['id', 'suspend_subscription_request']
765+
all_params = ['id']
772766
all_params.append('callback')
773767
all_params.append('_return_http_data_only')
774768
all_params.append('_preload_content')
@@ -804,10 +798,10 @@ def suspend_subscription_with_http_info(self, id, **kwargs):
804798
local_var_files = {}
805799

806800
body_params = None
807-
if 'suspend_subscription_request' in params:
808-
body_params = params['suspend_subscription_request']
801+
if 'POST' in ('POST'):
802+
body_params = '{}'
809803
# HTTP header `Accept`
810-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
804+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
811805

812806
# HTTP header `Content-Type`
813807
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
@@ -926,7 +920,7 @@ def update_subscription_with_http_info(self, id, update_subscription, **kwargs):
926920
if 'update_subscription' in params:
927921
body_params = params['update_subscription']
928922
# HTTP header `Accept`
929-
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
923+
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
930924

931925
# HTTP header `Content-Type`
932926
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])

0 commit comments

Comments
 (0)