Skip to content

Commit 0b5d19b

Browse files
API spec changes
1 parent 4a7dbad commit 0b5d19b

File tree

97 files changed

+3915
-424
lines changed

Some content is hidden

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

97 files changed

+3915
-424
lines changed

CyberSource/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@
511511
from .models.pts_v2_payments_post201_response_links import PtsV2PaymentsPost201ResponseLinks
512512
from .models.pts_v2_payments_post201_response_links_self import PtsV2PaymentsPost201ResponseLinksSelf
513513
from .models.pts_v2_payments_post201_response_merchant_information import PtsV2PaymentsPost201ResponseMerchantInformation
514+
from .models.pts_v2_payments_post201_response_merchant_information_merchant_descriptor import PtsV2PaymentsPost201ResponseMerchantInformationMerchantDescriptor
514515
from .models.pts_v2_payments_post201_response_order_information import PtsV2PaymentsPost201ResponseOrderInformation
515516
from .models.pts_v2_payments_post201_response_order_information_amount_details import PtsV2PaymentsPost201ResponseOrderInformationAmountDetails
516517
from .models.pts_v2_payments_post201_response_order_information_bill_to import PtsV2PaymentsPost201ResponseOrderInformationBillTo
@@ -571,6 +572,7 @@
571572
from .models.pts_v2_payments_refund_post201_response_client_reference_information import PtsV2PaymentsRefundPost201ResponseClientReferenceInformation
572573
from .models.pts_v2_payments_refund_post201_response_links import PtsV2PaymentsRefundPost201ResponseLinks
573574
from .models.pts_v2_payments_refund_post201_response_order_information import PtsV2PaymentsRefundPost201ResponseOrderInformation
575+
from .models.pts_v2_payments_refund_post201_response_order_information_amount_details import PtsV2PaymentsRefundPost201ResponseOrderInformationAmountDetails
574576
from .models.pts_v2_payments_refund_post201_response_processor_information import PtsV2PaymentsRefundPost201ResponseProcessorInformation
575577
from .models.pts_v2_payments_refund_post201_response_refund_amount_details import PtsV2PaymentsRefundPost201ResponseRefundAmountDetails
576578
from .models.pts_v2_payments_refund_post400_response import PtsV2PaymentsRefundPost400Response
@@ -694,6 +696,8 @@
694696
from .models.ptsv2payments_device_information_raw_data import Ptsv2paymentsDeviceInformationRawData
695697
from .models.ptsv2payments_health_care_information import Ptsv2paymentsHealthCareInformation
696698
from .models.ptsv2payments_health_care_information_amount_details import Ptsv2paymentsHealthCareInformationAmountDetails
699+
from .models.ptsv2payments_hosted_payment_information import Ptsv2paymentsHostedPaymentInformation
700+
from .models.ptsv2payments_hosted_payment_information_user_agent import Ptsv2paymentsHostedPaymentInformationUserAgent
697701
from .models.ptsv2payments_installment_information import Ptsv2paymentsInstallmentInformation
698702
from .models.ptsv2payments_invoice_details import Ptsv2paymentsInvoiceDetails
699703
from .models.ptsv2payments_issuer_information import Ptsv2paymentsIssuerInformation
@@ -733,6 +737,8 @@
733737
from .models.ptsv2payments_payment_information_payment_instrument import Ptsv2paymentsPaymentInformationPaymentInstrument
734738
from .models.ptsv2payments_payment_information_payment_type import Ptsv2paymentsPaymentInformationPaymentType
735739
from .models.ptsv2payments_payment_information_payment_type_method import Ptsv2paymentsPaymentInformationPaymentTypeMethod
740+
from .models.ptsv2payments_payment_information_sepa import Ptsv2paymentsPaymentInformationSepa
741+
from .models.ptsv2payments_payment_information_sepa_direct_debit import Ptsv2paymentsPaymentInformationSepaDirectDebit
736742
from .models.ptsv2payments_payment_information_shipping_address import Ptsv2paymentsPaymentInformationShippingAddress
737743
from .models.ptsv2payments_payment_information_tokenized_card import Ptsv2paymentsPaymentInformationTokenizedCard
738744
from .models.ptsv2payments_point_of_sale_information import Ptsv2paymentsPointOfSaleInformation
@@ -1107,6 +1113,7 @@
11071113
from .models.tms_embedded_instrument_identifier_links_self import TmsEmbeddedInstrumentIdentifierLinksSelf
11081114
from .models.tms_embedded_instrument_identifier_metadata import TmsEmbeddedInstrumentIdentifierMetadata
11091115
from .models.tms_embedded_instrument_identifier_processing_information import TmsEmbeddedInstrumentIdentifierProcessingInformation
1116+
from .models.tms_embedded_instrument_identifier_token_provisioning_information import TmsEmbeddedInstrumentIdentifierTokenProvisioningInformation
11101117
from .models.tms_embedded_instrument_identifier_tokenized_card import TmsEmbeddedInstrumentIdentifierTokenizedCard
11111118
from .models.tms_embedded_instrument_identifier_tokenized_card_card import TmsEmbeddedInstrumentIdentifierTokenizedCardCard
11121119
from .models.tms_payment_instrument_processing_info import TmsPaymentInstrumentProcessingInfo
@@ -1337,6 +1344,7 @@
13371344
from .api.plans_api import PlansApi
13381345
from .api.purchase_and_refund_details_api import PurchaseAndRefundDetailsApi
13391346
from .api.push_funds_api import PushFundsApi
1347+
from .api.replay_webhooks_api import ReplayWebhooksApi
13401348
from .api.report_definitions_api import ReportDefinitionsApi
13411349
from .api.report_downloads_api import ReportDownloadsApi
13421350
from .api.report_subscriptions_api import ReportSubscriptionsApi

CyberSource/api/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from .plans_api import PlansApi
3030
from .purchase_and_refund_details_api import PurchaseAndRefundDetailsApi
3131
from .push_funds_api import PushFundsApi
32+
from .replay_webhooks_api import ReplayWebhooksApi
3233
from .report_definitions_api import ReportDefinitionsApi
3334
from .report_downloads_api import ReportDownloadsApi
3435
from .report_subscriptions_api import ReportSubscriptionsApi

CyberSource/api/manage_webhooks_api.py

-121
Original file line numberDiff line numberDiff line change
@@ -409,127 +409,6 @@ def get_webhook_subscriptions_by_org_with_http_info(self, organization_id, produ
409409
_request_timeout=params.get('_request_timeout'),
410410
collection_formats=collection_formats)
411411

412-
def replay_previous_webhooks(self, webhook_id, **kwargs):
413-
"""
414-
Replay Previous Webhooks
415-
Initiate a webhook replay request to replay transactions that happened in the past. Cannot execute more than 1 replay request at a time. While one request is processing, you will not be allowed to execute another replay. The difference between Start and End time cannot exceed a 24 hour window, and 1 month is the farthest date back that is eligible for replay.
416-
This method makes a synchronous HTTP request by default. To make an
417-
asynchronous HTTP request, please define a `callback` function
418-
to be invoked when receiving the response.
419-
>>> def callback_function(response):
420-
>>> pprint(response)
421-
>>>
422-
>>> thread = api.replay_previous_webhooks(webhook_id, callback=callback_function)
423-
424-
:param callback function: The callback function
425-
for asynchronous request. (optional)
426-
:param str webhook_id: The webhook uuid identifier. (required)
427-
:param ReplayWebhooksRequest replay_webhooks_request: The request query
428-
:return: None
429-
If the method is called asynchronously,
430-
returns the request thread.
431-
432-
DISCLAIMER:
433-
Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
434-
"""
435-
436-
if self.api_client.mconfig.log_config.enable_log:
437-
self.logger.info("CALL TO METHOD `replay_previous_webhooks` STARTED")
438-
439-
kwargs['_return_http_data_only'] = True
440-
if kwargs.get('callback'):
441-
return self.replay_previous_webhooks_with_http_info(webhook_id, **kwargs)
442-
else:
443-
(data) = self.replay_previous_webhooks_with_http_info(webhook_id, **kwargs)
444-
return data
445-
446-
def replay_previous_webhooks_with_http_info(self, webhook_id, **kwargs):
447-
"""
448-
Replay Previous Webhooks
449-
Initiate a webhook replay request to replay transactions that happened in the past. Cannot execute more than 1 replay request at a time. While one request is processing, you will not be allowed to execute another replay. The difference between Start and End time cannot exceed a 24 hour window, and 1 month is the farthest date back that is eligible for replay.
450-
This method makes a synchronous HTTP request by default. To make an
451-
asynchronous HTTP request, please define a `callback` function
452-
to be invoked when receiving the response.
453-
>>> def callback_function(response):
454-
>>> pprint(response)
455-
>>>
456-
>>> thread = api.replay_previous_webhooks_with_http_info(webhook_id, callback=callback_function)
457-
458-
:param callback function: The callback function
459-
for asynchronous request. (optional)
460-
:param str webhook_id: The webhook uuid identifier. (required)
461-
:param ReplayWebhooksRequest replay_webhooks_request: The request query
462-
:return: None
463-
If the method is called asynchronously,
464-
returns the request thread.
465-
"""
466-
467-
all_params = ['webhook_id', 'replay_webhooks_request']
468-
all_params.append('callback')
469-
all_params.append('_return_http_data_only')
470-
all_params.append('_preload_content')
471-
all_params.append('_request_timeout')
472-
473-
params = locals()
474-
for key, val in iteritems(params['kwargs']):
475-
if key not in all_params:
476-
raise TypeError(
477-
"Got an unexpected keyword argument '%s'"
478-
" to method replay_previous_webhooks" % key
479-
)
480-
params[key] = val
481-
del params['kwargs']
482-
# verify the required parameter 'webhook_id' is set
483-
if ('webhook_id' not in params) or (params['webhook_id'] is None):
484-
if self.api_client.mconfig.log_config.enable_log:
485-
self.logger.error("InvalidArgumentException : Missing the required parameter `webhook_id` when calling `replay_previous_webhooks`")
486-
raise ValueError("Missing the required parameter `webhook_id` when calling `replay_previous_webhooks`")
487-
488-
489-
collection_formats = {}
490-
491-
path_params = {}
492-
if 'webhook_id' in params:
493-
path_params['webhookId'] = params['webhook_id']
494-
webhookId=webhook_id
495-
496-
query_params = []
497-
498-
header_params = {}
499-
500-
form_params = []
501-
local_var_files = {}
502-
503-
body_params = None
504-
if 'replay_webhooks_request' in params:
505-
body_params = params['replay_webhooks_request']
506-
507-
sdkTracker = SdkTracker()
508-
body_params = sdkTracker.insert_developer_id_tracker(body_params, 'replay_webhooks_request', self.api_client.mconfig.run_environment)
509-
# HTTP header `Accept`
510-
header_params['Accept'] = self.api_client.select_header_accept(['application/json;charset=utf-8'])
511-
512-
# HTTP header `Content-Type`
513-
header_params['Content-Type'] = self.api_client.select_header_content_type(['application/json;charset=utf-8'])
514-
515-
# Authentication setting
516-
auth_settings = []
517-
518-
return self.api_client.call_api(f'/nrtf/v1/webhooks/{webhookId}/replays', 'POST',
519-
path_params,
520-
query_params,
521-
header_params,
522-
body=body_params,
523-
post_params=form_params,
524-
files=local_var_files,
525-
response_type=None,
526-
auth_settings=auth_settings,
527-
callback=params.get('callback'),
528-
_return_http_data_only=params.get('_return_http_data_only'),
529-
_preload_content=params.get('_preload_content', True),
530-
_request_timeout=params.get('_request_timeout'),
531-
collection_formats=collection_formats)
532-
533412
def save_asym_egress_key(self, v_c_sender_organization_id, v_c_permissions, save_asym_egress_key, **kwargs):
534413
"""
535414
Message Level Encryption

0 commit comments

Comments
 (0)