Skip to content

Commit c42d3c2

Browse files
committed
june spec changes
1 parent 3edaeca commit c42d3c2

20 files changed

Lines changed: 730 additions & 171 deletions

CyberSource/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,7 @@
880880
from .models.tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation
881881
from .models.tss_v2_transactions_post201_response__embedded_client_reference_information_partner import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformationPartner
882882
from .models.tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation
883+
from .models.tss_v2_transactions_post201_response__embedded_error_information import TssV2TransactionsPost201ResponseEmbeddedErrorInformation
883884
from .models.tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks
884885
from .models.tss_v2_transactions_post201_response__embedded_merchant_information import TssV2TransactionsPost201ResponseEmbeddedMerchantInformation
885886
from .models.tss_v2_transactions_post201_response__embedded_order_information import TssV2TransactionsPost201ResponseEmbeddedOrderInformation

CyberSource/api/plans_api.py

Lines changed: 6 additions & 10 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,8 +131,8 @@ 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`
139137
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
140138

@@ -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,8 +353,8 @@ 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`
363359
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
364360

CyberSource/api/subscriptions_api.py

Lines changed: 9 additions & 15 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,8 +131,8 @@ 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`
139137
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
140138

@@ -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,8 +243,8 @@ 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`
253249
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
254250

@@ -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,8 +798,8 @@ 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`
810804
header_params['Accept'] = self.api_client.select_header_accept(['application/hal+json;charset=utf-8'])
811805

CyberSource/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -880,6 +880,7 @@
880880
from .tss_v2_transactions_post201_response__embedded_client_reference_information import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformation
881881
from .tss_v2_transactions_post201_response__embedded_client_reference_information_partner import TssV2TransactionsPost201ResponseEmbeddedClientReferenceInformationPartner
882882
from .tss_v2_transactions_post201_response__embedded_consumer_authentication_information import TssV2TransactionsPost201ResponseEmbeddedConsumerAuthenticationInformation
883+
from .tss_v2_transactions_post201_response__embedded_error_information import TssV2TransactionsPost201ResponseEmbeddedErrorInformation
883884
from .tss_v2_transactions_post201_response__embedded__links import TssV2TransactionsPost201ResponseEmbeddedLinks
884885
from .tss_v2_transactions_post201_response__embedded_merchant_information import TssV2TransactionsPost201ResponseEmbeddedMerchantInformation
885886
from .tss_v2_transactions_post201_response__embedded_order_information import TssV2TransactionsPost201ResponseEmbeddedOrderInformation

CyberSource/models/ptsv2payments_recipient_information.py

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,19 @@ class Ptsv2paymentsRecipientInformation(object):
3434
'account_id': 'str',
3535
'last_name': 'str',
3636
'middle_name': 'str',
37-
'postal_code': 'str'
37+
'postal_code': 'str',
38+
'date_of_birth': 'str'
3839
}
3940

4041
attribute_map = {
4142
'account_id': 'accountId',
4243
'last_name': 'lastName',
4344
'middle_name': 'middleName',
44-
'postal_code': 'postalCode'
45+
'postal_code': 'postalCode',
46+
'date_of_birth': 'dateOfBirth'
4547
}
4648

47-
def __init__(self, account_id=None, last_name=None, middle_name=None, postal_code=None):
49+
def __init__(self, account_id=None, last_name=None, middle_name=None, postal_code=None, date_of_birth=None):
4850
"""
4951
Ptsv2paymentsRecipientInformation - a model defined in Swagger
5052
"""
@@ -53,6 +55,7 @@ def __init__(self, account_id=None, last_name=None, middle_name=None, postal_cod
5355
self._last_name = None
5456
self._middle_name = None
5557
self._postal_code = None
58+
self._date_of_birth = None
5659

5760
if account_id is not None:
5861
self.account_id = account_id
@@ -62,6 +65,8 @@ def __init__(self, account_id=None, last_name=None, middle_name=None, postal_cod
6265
self.middle_name = middle_name
6366
if postal_code is not None:
6467
self.postal_code = postal_code
68+
if date_of_birth is not None:
69+
self.date_of_birth = date_of_birth
6570

6671
@property
6772
def account_id(self):
@@ -155,6 +160,29 @@ def postal_code(self, postal_code):
155160

156161
self._postal_code = postal_code
157162

163+
@property
164+
def date_of_birth(self):
165+
"""
166+
Gets the date_of_birth of this Ptsv2paymentsRecipientInformation.
167+
Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
168+
169+
:return: The date_of_birth of this Ptsv2paymentsRecipientInformation.
170+
:rtype: str
171+
"""
172+
return self._date_of_birth
173+
174+
@date_of_birth.setter
175+
def date_of_birth(self, date_of_birth):
176+
"""
177+
Sets the date_of_birth of this Ptsv2paymentsRecipientInformation.
178+
Recipient’s date of birth. **Format**: `YYYYMMDD`. This field is a `pass-through`, which means that CyberSource ensures that the value is eight numeric characters but otherwise does not verify the value or modify it in any way before sending it to the processor. If the field is not required for the transaction, CyberSource does not forward it to the processor. For more details, see `recipient_date_of_birth` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/)
179+
180+
:param date_of_birth: The date_of_birth of this Ptsv2paymentsRecipientInformation.
181+
:type: str
182+
"""
183+
184+
self._date_of_birth = date_of_birth
185+
158186
def to_dict(self):
159187
"""
160188
Returns the model properties as a dict

CyberSource/models/tss_v2_transactions_get200_response.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class TssV2TransactionsGet200Response(object):
3636
'reconciliation_id': 'str',
3737
'merchant_id': 'str',
3838
'submit_time_utc': 'str',
39+
'status': 'str',
3940
'application_information': 'TssV2TransactionsGet200ResponseApplicationInformation',
4041
'buyer_information': 'TssV2TransactionsGet200ResponseBuyerInformation',
4142
'client_reference_information': 'TssV2TransactionsGet200ResponseClientReferenceInformation',
@@ -66,6 +67,7 @@ class TssV2TransactionsGet200Response(object):
6667
'reconciliation_id': 'reconciliationId',
6768
'merchant_id': 'merchantId',
6869
'submit_time_utc': 'submitTimeUTC',
70+
'status': 'status',
6971
'application_information': 'applicationInformation',
7072
'buyer_information': 'buyerInformation',
7173
'client_reference_information': 'clientReferenceInformation',
@@ -90,7 +92,7 @@ class TssV2TransactionsGet200Response(object):
9092
'links': '_links'
9193
}
9294

93-
def __init__(self, id=None, root_id=None, reconciliation_id=None, merchant_id=None, submit_time_utc=None, application_information=None, buyer_information=None, client_reference_information=None, consumer_authentication_information=None, device_information=None, error_information=None, installment_information=None, fraud_marking_information=None, health_care_information=None, merchant_defined_information=None, merchant_information=None, order_information=None, payment_information=None, payment_insights_information=None, payout_options=None, processing_information=None, processor_information=None, point_of_sale_information=None, risk_information=None, sender_information=None, token_information=None, links=None):
95+
def __init__(self, id=None, root_id=None, reconciliation_id=None, merchant_id=None, submit_time_utc=None, status=None, application_information=None, buyer_information=None, client_reference_information=None, consumer_authentication_information=None, device_information=None, error_information=None, installment_information=None, fraud_marking_information=None, health_care_information=None, merchant_defined_information=None, merchant_information=None, order_information=None, payment_information=None, payment_insights_information=None, payout_options=None, processing_information=None, processor_information=None, point_of_sale_information=None, risk_information=None, sender_information=None, token_information=None, links=None):
9496
"""
9597
TssV2TransactionsGet200Response - a model defined in Swagger
9698
"""
@@ -100,6 +102,7 @@ def __init__(self, id=None, root_id=None, reconciliation_id=None, merchant_id=No
100102
self._reconciliation_id = None
101103
self._merchant_id = None
102104
self._submit_time_utc = None
105+
self._status = None
103106
self._application_information = None
104107
self._buyer_information = None
105108
self._client_reference_information = None
@@ -133,6 +136,8 @@ def __init__(self, id=None, root_id=None, reconciliation_id=None, merchant_id=No
133136
self.merchant_id = merchant_id
134137
if submit_time_utc is not None:
135138
self.submit_time_utc = submit_time_utc
139+
if status is not None:
140+
self.status = status
136141
if application_information is not None:
137142
self.application_information = application_information
138143
if buyer_information is not None:
@@ -293,6 +298,29 @@ def submit_time_utc(self, submit_time_utc):
293298

294299
self._submit_time_utc = submit_time_utc
295300

301+
@property
302+
def status(self):
303+
"""
304+
Gets the status of this TssV2TransactionsGet200Response.
305+
The status of the submitted transaction.
306+
307+
:return: The status of this TssV2TransactionsGet200Response.
308+
:rtype: str
309+
"""
310+
return self._status
311+
312+
@status.setter
313+
def status(self, status):
314+
"""
315+
Sets the status of this TssV2TransactionsGet200Response.
316+
The status of the submitted transaction.
317+
318+
:param status: The status of this TssV2TransactionsGet200Response.
319+
:type: str
320+
"""
321+
322+
self._status = status
323+
296324
@property
297325
def application_information(self):
298326
"""

CyberSource/models/tss_v2_transactions_post201_response.py

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class TssV2TransactionsPost201Response(object):
4141
'sort': 'str',
4242
'count': 'int',
4343
'total_count': 'int',
44-
'status': 'str',
4544
'submit_time_utc': 'str',
4645
'embedded': 'TssV2TransactionsPost201ResponseEmbedded',
4746
'links': 'PtsV2IncrementalAuthorizationPatch201ResponseLinks'
@@ -58,13 +57,12 @@ class TssV2TransactionsPost201Response(object):
5857
'sort': 'sort',
5958
'count': 'count',
6059
'total_count': 'totalCount',
61-
'status': 'status',
6260
'submit_time_utc': 'submitTimeUtc',
6361
'embedded': '_embedded',
6462
'links': '_links'
6563
}
6664

67-
def __init__(self, search_id=None, save=None, name=None, timezone=None, query=None, offset=None, limit=None, sort=None, count=None, total_count=None, status=None, submit_time_utc=None, embedded=None, links=None):
65+
def __init__(self, search_id=None, save=None, name=None, timezone=None, query=None, offset=None, limit=None, sort=None, count=None, total_count=None, submit_time_utc=None, embedded=None, links=None):
6866
"""
6967
TssV2TransactionsPost201Response - a model defined in Swagger
7068
"""
@@ -79,7 +77,6 @@ def __init__(self, search_id=None, save=None, name=None, timezone=None, query=No
7977
self._sort = None
8078
self._count = None
8179
self._total_count = None
82-
self._status = None
8380
self._submit_time_utc = None
8481
self._embedded = None
8582
self._links = None
@@ -104,8 +101,6 @@ def __init__(self, search_id=None, save=None, name=None, timezone=None, query=No
104101
self.count = count
105102
if total_count is not None:
106103
self.total_count = total_count
107-
if status is not None:
108-
self.status = status
109104
if submit_time_utc is not None:
110105
self.submit_time_utc = submit_time_utc
111106
if embedded is not None:
@@ -343,29 +338,6 @@ def total_count(self, total_count):
343338

344339
self._total_count = total_count
345340

346-
@property
347-
def status(self):
348-
"""
349-
Gets the status of this TssV2TransactionsPost201Response.
350-
The status of the submitted transaction.
351-
352-
:return: The status of this TssV2TransactionsPost201Response.
353-
:rtype: str
354-
"""
355-
return self._status
356-
357-
@status.setter
358-
def status(self, status):
359-
"""
360-
Sets the status of this TssV2TransactionsPost201Response.
361-
The status of the submitted transaction.
362-
363-
:param status: The status of this TssV2TransactionsPost201Response.
364-
:type: str
365-
"""
366-
367-
self._status = status
368-
369341
@property
370342
def submit_time_utc(self):
371343
"""

0 commit comments

Comments
 (0)