Skip to content

Commit 42853ff

Browse files
Merge pull request #172 from CyberSource/future
October2025 release
2 parents b85c4c0 + fa0758b commit 42853ff

File tree

241 files changed

+30679
-3626
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

241 files changed

+30679
-3626
lines changed

CyberSource/__init__.py

Lines changed: 58 additions & 9 deletions
Large diffs are not rendered by default.

CyberSource/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from .microform_integration_api import MicroformIntegrationApi
3030
from .net_fundings_api import NetFundingsApi
3131
from .notification_of_changes_api import NotificationOfChangesApi
32+
from .offers_api import OffersApi
3233
from .payer_authentication_api import PayerAuthenticationApi
3334
from .payment_batch_summaries_api import PaymentBatchSummariesApi
3435
from .payment_instrument_api import PaymentInstrumentApi
@@ -60,7 +61,6 @@
6061
from .billing_agreements_api import BillingAgreementsApi
6162
from .capture_api import CaptureApi
6263
from .credit_api import CreditApi
63-
from .merchant_defined_fields_api import MerchantDefinedFieldsApi
6464
from .orders_api import OrdersApi
6565
from .payment_tokens_api import PaymentTokensApi
6666
from .payments_api import PaymentsApi

CyberSource/api/merchant_defined_fields_api.py

Lines changed: 147 additions & 28 deletions
Large diffs are not rendered by default.

CyberSource/api/offers_api.py

Lines changed: 364 additions & 0 deletions
Large diffs are not rendered by default.

CyberSource/api/token_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def get_card_art_asset_with_http_info(self, instrument_identifier_id, token_prov
187187
def post_token_payment_credentials(self, token_id, post_payment_credentials_request, **kwargs):
188188
"""
189189
Generate Payment Credentials for a TMS Token
190-
| | | | | --- | --- | --- | |**Token**<br>A Token can represent your tokenized Customer, Payment Instrument or Instrument Identifier information.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Payment Credentials**<br>Contains payment information such as the network token, generated cryptogram for Visa & MasterCard or dynamic CVV for Amex in a JSON Web Encryption (JWE) response.<br>Your system can use this API to retrieve the Payment Credentials for an existing Customer, Payment Instrument or Instrument Identifier.
190+
| | | | | --- | --- | --- | |**Token**<br>A Token can represent your tokenized Customer, Payment Instrument, Instrument Identifier or Tokenized Card information.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Payment Credentials**<br>Contains payment information such as the network token, generated cryptogram for Visa & MasterCard or dynamic CVV for Amex in a JSON Web Encryption (JWE) response.<br>Your system can use this API to retrieve the Payment Credentials for an existing Customer, Payment Instrument, Instrument Identifier or Tokenized Card.<br>Optionally, **authenticated identities** information from Passkey authentication can be provided to potentially achieve liability shift, which may result in the return of an e-commerce indicator of 5 if successful.
191191
This method makes a synchronous HTTP request by default. To make an
192192
asynchronous HTTP request, please define a `callback` function
193193
to be invoked when receiving the response.
@@ -218,7 +218,7 @@ def post_token_payment_credentials(self, token_id, post_payment_credentials_requ
218218
def post_token_payment_credentials_with_http_info(self, token_id, post_payment_credentials_request, **kwargs):
219219
"""
220220
Generate Payment Credentials for a TMS Token
221-
| | | | | --- | --- | --- | |**Token**<br>A Token can represent your tokenized Customer, Payment Instrument or Instrument Identifier information.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Payment Credentials**<br>Contains payment information such as the network token, generated cryptogram for Visa & MasterCard or dynamic CVV for Amex in a JSON Web Encryption (JWE) response.<br>Your system can use this API to retrieve the Payment Credentials for an existing Customer, Payment Instrument or Instrument Identifier.
221+
| | | | | --- | --- | --- | |**Token**<br>A Token can represent your tokenized Customer, Payment Instrument, Instrument Identifier or Tokenized Card information.|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|**Payment Credentials**<br>Contains payment information such as the network token, generated cryptogram for Visa & MasterCard or dynamic CVV for Amex in a JSON Web Encryption (JWE) response.<br>Your system can use this API to retrieve the Payment Credentials for an existing Customer, Payment Instrument, Instrument Identifier or Tokenized Card.<br>Optionally, **authenticated identities** information from Passkey authentication can be provided to potentially achieve liability shift, which may result in the return of an e-commerce indicator of 5 if successful.
222222
This method makes a synchronous HTTP request by default. To make an
223223
asynchronous HTTP request, please define a `callback` function
224224
to be invoked when receiving the response.

CyberSource/api/tokenized_card_api.py

Lines changed: 2 additions & 136 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def delete_tokenized_card_with_http_info(self, tokenized_card_id, **kwargs):
173173
def get_tokenized_card(self, tokenized_card_id, **kwargs):
174174
"""
175175
Retrieve a Tokenized Card
176-
| | | | | --- | --- | --- | |**Tokenized Cards**<br>A Tokenized Card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
176+
| | | | | --- | --- | --- | |**Tokenized Cards**<br>A Tokenized Card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
177177
This method makes a synchronous HTTP request by default. To make an
178178
asynchronous HTTP request, please define a `callback` function
179179
to be invoked when receiving the response.
@@ -203,7 +203,7 @@ def get_tokenized_card(self, tokenized_card_id, **kwargs):
203203
def get_tokenized_card_with_http_info(self, tokenized_card_id, **kwargs):
204204
"""
205205
Retrieve a Tokenized Card
206-
| | | | | --- | --- | --- | |**Tokenized Cards**<br>A Tokenized Card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
206+
| | | | | --- | --- | --- | |**Tokenized Cards**<br>A Tokenized Card represents a network token. Network tokens perform better than regular card numbers and they are not necessarily invalidated when a cardholder loses their card, or it expires.
207207
This method makes a synchronous HTTP request by default. To make an
208208
asynchronous HTTP request, please define a `callback` function
209209
to be invoked when receiving the response.
@@ -295,140 +295,6 @@ def get_tokenized_card_with_http_info(self, tokenized_card_id, **kwargs):
295295
_request_timeout=params.get('_request_timeout'),
296296
collection_formats=collection_formats)
297297

298-
def post_issuer_life_cycle_simulation(self, profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, **kwargs):
299-
"""
300-
Simulate Issuer Life Cycle Management Events
301-
**Lifecycle Management Events**<br>Simulates an issuer life cycle manegement event for updates on the tokenized card. The events that can be simulated are: - Token status changes (e.g. active, suspended, deleted) - Updates to the underlying card, including card art changes, expiration date changes, and card number suffix. **Note:** This is only available in CAS environment.
302-
This method makes a synchronous HTTP request by default. To make an
303-
asynchronous HTTP request, please define a `callback` function
304-
to be invoked when receiving the response.
305-
>>> def callback_function(response):
306-
>>> pprint(response)
307-
>>>
308-
>>> thread = api.post_issuer_life_cycle_simulation(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, callback=callback_function)
309-
310-
:param callback function: The callback function
311-
for asynchronous request. (optional)
312-
:param str profile_id: The Id of a profile containing user specific TMS configuration. (required)
313-
:param str tokenized_card_id: The Id of a tokenized card. (required)
314-
:param PostIssuerLifeCycleSimulationRequest post_issuer_life_cycle_simulation_request: (required)
315-
:return: None
316-
If the method is called asynchronously,
317-
returns the request thread.
318-
"""
319-
320-
self.logger.info("CALL TO METHOD `post_issuer_life_cycle_simulation` STARTED")
321-
322-
kwargs['_return_http_data_only'] = True
323-
if kwargs.get('callback'):
324-
return self.post_issuer_life_cycle_simulation_with_http_info(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, **kwargs)
325-
else:
326-
(data) = self.post_issuer_life_cycle_simulation_with_http_info(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, **kwargs)
327-
return data
328-
329-
def post_issuer_life_cycle_simulation_with_http_info(self, profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, **kwargs):
330-
"""
331-
Simulate Issuer Life Cycle Management Events
332-
**Lifecycle Management Events**<br>Simulates an issuer life cycle manegement event for updates on the tokenized card. The events that can be simulated are: - Token status changes (e.g. active, suspended, deleted) - Updates to the underlying card, including card art changes, expiration date changes, and card number suffix. **Note:** This is only available in CAS environment.
333-
This method makes a synchronous HTTP request by default. To make an
334-
asynchronous HTTP request, please define a `callback` function
335-
to be invoked when receiving the response.
336-
>>> def callback_function(response):
337-
>>> pprint(response)
338-
>>>
339-
>>> thread = api.post_issuer_life_cycle_simulation_with_http_info(profile_id, tokenized_card_id, post_issuer_life_cycle_simulation_request, callback=callback_function)
340-
341-
:param callback function: The callback function
342-
for asynchronous request. (optional)
343-
:param str profile_id: The Id of a profile containing user specific TMS configuration. (required)
344-
:param str tokenized_card_id: The Id of a tokenized card. (required)
345-
:param PostIssuerLifeCycleSimulationRequest post_issuer_life_cycle_simulation_request: (required)
346-
:return: None
347-
If the method is called asynchronously,
348-
returns the request thread.
349-
"""
350-
351-
all_params = ['profile_id', 'tokenized_card_id', 'post_issuer_life_cycle_simulation_request']
352-
all_params.append('callback')
353-
all_params.append('_return_http_data_only')
354-
all_params.append('_preload_content')
355-
all_params.append('_request_timeout')
356-
357-
params = locals()
358-
for key, val in iteritems(params['kwargs']):
359-
if key not in all_params:
360-
raise TypeError(
361-
"Got an unexpected keyword argument '%s'"
362-
" to method post_issuer_life_cycle_simulation" % key
363-
)
364-
params[key] = val
365-
del params['kwargs']
366-
# verify the required parameter 'profile_id' is set
367-
if ('profile_id' not in params) or (params['profile_id'] is None):
368-
self.logger.error("InvalidArgumentException : Missing the required parameter `profile_id` when calling `post_issuer_life_cycle_simulation`")
369-
raise ValueError("Missing the required parameter `profile_id` when calling `post_issuer_life_cycle_simulation`")
370-
# verify the required parameter 'tokenized_card_id' is set
371-
if ('tokenized_card_id' not in params) or (params['tokenized_card_id'] is None):
372-
self.logger.error("InvalidArgumentException : Missing the required parameter `tokenized_card_id` when calling `post_issuer_life_cycle_simulation`")
373-
raise ValueError("Missing the required parameter `tokenized_card_id` when calling `post_issuer_life_cycle_simulation`")
374-
# verify the required parameter 'post_issuer_life_cycle_simulation_request' is set
375-
if ('post_issuer_life_cycle_simulation_request' not in params) or (params['post_issuer_life_cycle_simulation_request'] is None):
376-
self.logger.error("InvalidArgumentException : Missing the required parameter `post_issuer_life_cycle_simulation_request` when calling `post_issuer_life_cycle_simulation`")
377-
raise ValueError("Missing the required parameter `post_issuer_life_cycle_simulation_request` when calling `post_issuer_life_cycle_simulation`")
378-
379-
380-
collection_formats = {}
381-
382-
path_params = {}
383-
if 'tokenized_card_id' in params:
384-
path_params['tokenizedCardId'] = params['tokenized_card_id']
385-
tokenizedCardId=tokenized_card_id
386-
387-
query_params = []
388-
389-
header_params = {}
390-
if 'profile_id' in params:
391-
header_params['profile-id'] = params['profile_id']
392-
393-
form_params = []
394-
local_var_files = {}
395-
396-
# HTTP header `Accept`
397-
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
398-
399-
# HTTP header `Content-Type`
400-
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
401-
402-
body_params = None
403-
if 'post_issuer_life_cycle_simulation_request' in params:
404-
body_params = params['post_issuer_life_cycle_simulation_request']
405-
406-
sdkTracker = SdkTracker()
407-
body_params = sdkTracker.insert_developer_id_tracker(body_params, 'post_issuer_life_cycle_simulation_request', self.api_client.mconfig.run_environment, self.api_client.mconfig.defaultDeveloperId)
408-
body_params = process_body(body_params)
409-
410-
inbound_mle_status = "false"
411-
if MLEUtility.check_is_mle_for_api(self.api_client.mconfig, inbound_mle_status, "post_issuer_life_cycle_simulation,post_issuer_life_cycle_simulation_with_http_info"):
412-
body_params = MLEUtility.encrypt_request_payload(self.api_client.mconfig, body_params)
413-
414-
# Authentication setting
415-
auth_settings = []
416-
417-
return self.api_client.call_api(f'/tms/v2/tokenized-cards/{tokenizedCardId}/issuer-life-cycle-event-simulations', 'POST',
418-
path_params,
419-
query_params,
420-
header_params,
421-
body=body_params,
422-
post_params=form_params,
423-
files=local_var_files,
424-
response_type=None,
425-
auth_settings=auth_settings,
426-
callback=params.get('callback'),
427-
_return_http_data_only=params.get('_return_http_data_only'),
428-
_preload_content=params.get('_preload_content', True),
429-
_request_timeout=params.get('_request_timeout'),
430-
collection_formats=collection_formats)
431-
432298
def post_tokenized_card(self, tokenizedcard_request, **kwargs):
433299
"""
434300
Create a Tokenized Card

0 commit comments

Comments
 (0)