Skip to content

Commit 336eb12

Browse files
authored
Merge pull request #116 from CyberSource/june-2024-release
June 2024 release
2 parents e26399f + 0d98d67 commit 336eb12

File tree

33 files changed

+332
-77
lines changed

33 files changed

+332
-77
lines changed

CyberSource/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@
692692
from .models.ptsv2payments_client_reference_information_partner import Ptsv2paymentsClientReferenceInformationPartner
693693
from .models.ptsv2payments_consumer_authentication_information import Ptsv2paymentsConsumerAuthenticationInformation
694694
from .models.ptsv2payments_consumer_authentication_information_strong_authentication import Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication
695+
from .models.ptsv2payments_consumer_authentication_information_strong_authentication_issuer_information import Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation
695696
from .models.ptsv2payments_device_information import Ptsv2paymentsDeviceInformation
696697
from .models.ptsv2payments_device_information_raw_data import Ptsv2paymentsDeviceInformationRawData
697698
from .models.ptsv2payments_health_care_information import Ptsv2paymentsHealthCareInformation

CyberSource/api/invoices_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def get_all_invoices(self, offset, limit, **kwargs):
173173
for asynchronous request. (optional)
174174
:param int offset: Page offset number. (required)
175175
:param int limit: Maximum number of items you would like returned. (required)
176-
:param str status: The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
176+
:param str status: The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
177177
:return: InvoicingV2InvoicesAllGet200Response
178178
If the method is called asynchronously,
179179
returns the request thread.
@@ -205,7 +205,7 @@ def get_all_invoices_with_http_info(self, offset, limit, **kwargs):
205205
for asynchronous request. (optional)
206206
:param int offset: Page offset number. (required)
207207
:param int limit: Maximum number of items you would like returned. (required)
208-
:param str status: The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
208+
:param str status: The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
209209
:return: InvoicingV2InvoicesAllGet200Response
210210
If the method is called asynchronously,
211211
returns the request thread.

CyberSource/api/transient_token_data_api.py

+17-17
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def __init__(self, merchant_config, api_client=None):
4444

4545

4646

47-
def get_payment_credentials_for_transient_token(self, jti, **kwargs):
47+
def get_payment_credentials_for_transient_token(self, payment_credentials_reference, **kwargs):
4848
"""
4949
Get Payment Credentials
5050
Retrieve the Payment data captured by Unified Checkout. This API is used to retrieve the detailed data represented by the Transient Token. This API will return PCI payment data captured by the Unified Checkout platform.
@@ -54,11 +54,11 @@ def get_payment_credentials_for_transient_token(self, jti, **kwargs):
5454
>>> def callback_function(response):
5555
>>> pprint(response)
5656
>>>
57-
>>> thread = api.get_payment_credentials_for_transient_token(jti, callback=callback_function)
57+
>>> thread = api.get_payment_credentials_for_transient_token(payment_credentials_reference, callback=callback_function)
5858
5959
:param callback function: The callback function
6060
for asynchronous request. (optional)
61-
:param str jti: The jti field contained within the Transient token returned from a successful Unified Checkout transaction (required)
61+
:param str payment_credentials_reference: The paymentCredentialsReference field contained within the Transient token returned from a successful Unified Checkout transaction (required)
6262
:return: str
6363
If the method is called asynchronously,
6464
returns the request thread.
@@ -69,12 +69,12 @@ def get_payment_credentials_for_transient_token(self, jti, **kwargs):
6969

7070
kwargs['_return_http_data_only'] = True
7171
if kwargs.get('callback'):
72-
return self.get_payment_credentials_for_transient_token_with_http_info(jti, **kwargs)
72+
return self.get_payment_credentials_for_transient_token_with_http_info(payment_credentials_reference, **kwargs)
7373
else:
74-
(data) = self.get_payment_credentials_for_transient_token_with_http_info(jti, **kwargs)
74+
(data) = self.get_payment_credentials_for_transient_token_with_http_info(payment_credentials_reference, **kwargs)
7575
return data
7676

77-
def get_payment_credentials_for_transient_token_with_http_info(self, jti, **kwargs):
77+
def get_payment_credentials_for_transient_token_with_http_info(self, payment_credentials_reference, **kwargs):
7878
"""
7979
Get Payment Credentials
8080
Retrieve the Payment data captured by Unified Checkout. This API is used to retrieve the detailed data represented by the Transient Token. This API will return PCI payment data captured by the Unified Checkout platform.
@@ -84,17 +84,17 @@ def get_payment_credentials_for_transient_token_with_http_info(self, jti, **kwar
8484
>>> def callback_function(response):
8585
>>> pprint(response)
8686
>>>
87-
>>> thread = api.get_payment_credentials_for_transient_token_with_http_info(jti, callback=callback_function)
87+
>>> thread = api.get_payment_credentials_for_transient_token_with_http_info(payment_credentials_reference, callback=callback_function)
8888
8989
:param callback function: The callback function
9090
for asynchronous request. (optional)
91-
:param str jti: The jti field contained within the Transient token returned from a successful Unified Checkout transaction (required)
91+
:param str payment_credentials_reference: The paymentCredentialsReference field contained within the Transient token returned from a successful Unified Checkout transaction (required)
9292
:return: str
9393
If the method is called asynchronously,
9494
returns the request thread.
9595
"""
9696

97-
all_params = ['jti']
97+
all_params = ['payment_credentials_reference']
9898
all_params.append('callback')
9999
all_params.append('_return_http_data_only')
100100
all_params.append('_preload_content')
@@ -109,19 +109,19 @@ def get_payment_credentials_for_transient_token_with_http_info(self, jti, **kwar
109109
)
110110
params[key] = val
111111
del params['kwargs']
112-
# verify the required parameter 'jti' is set
113-
if ('jti' not in params) or (params['jti'] is None):
112+
# verify the required parameter 'payment_credentials_reference' is set
113+
if ('payment_credentials_reference' not in params) or (params['payment_credentials_reference'] is None):
114114
if self.api_client.mconfig.log_config.enable_log:
115-
self.logger.error("InvalidArgumentException : Missing the required parameter `jti` when calling `get_payment_credentials_for_transient_token`")
116-
raise ValueError("Missing the required parameter `jti` when calling `get_payment_credentials_for_transient_token`")
115+
self.logger.error("InvalidArgumentException : Missing the required parameter `payment_credentials_reference` when calling `get_payment_credentials_for_transient_token`")
116+
raise ValueError("Missing the required parameter `payment_credentials_reference` when calling `get_payment_credentials_for_transient_token`")
117117

118118

119119
collection_formats = {}
120120

121121
path_params = {}
122-
if 'jti' in params:
123-
path_params['jti'] = params['jti']
124-
jti=jti
122+
if 'payment_credentials_reference' in params:
123+
path_params['paymentCredentialsReference'] = params['payment_credentials_reference']
124+
paymentCredentialsReference=payment_credentials_reference
125125

126126
query_params = []
127127

@@ -142,7 +142,7 @@ def get_payment_credentials_for_transient_token_with_http_info(self, jti, **kwar
142142
# Authentication setting
143143
auth_settings = []
144144

145-
return self.api_client.call_api(f'/up/v1/payment-credentials/{jti}', 'GET',
145+
return self.api_client.call_api(f'/flex/v2/payment-credentials/{paymentCredentialsReference}', 'GET',
146146
path_params,
147147
query_params,
148148
header_params,

CyberSource/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,7 @@
692692
from .ptsv2payments_client_reference_information_partner import Ptsv2paymentsClientReferenceInformationPartner
693693
from .ptsv2payments_consumer_authentication_information import Ptsv2paymentsConsumerAuthenticationInformation
694694
from .ptsv2payments_consumer_authentication_information_strong_authentication import Ptsv2paymentsConsumerAuthenticationInformationStrongAuthentication
695+
from .ptsv2payments_consumer_authentication_information_strong_authentication_issuer_information import Ptsv2paymentsConsumerAuthenticationInformationStrongAuthenticationIssuerInformation
695696
from .ptsv2payments_device_information import Ptsv2paymentsDeviceInformation
696697
from .ptsv2payments_device_information_raw_data import Ptsv2paymentsDeviceInformationRawData
697698
from .ptsv2payments_health_care_information import Ptsv2paymentsHealthCareInformation

CyberSource/models/invoicing_v2_invoices_all_get200_response_invoices.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def id(self, id):
120120
def status(self):
121121
"""
122122
Gets the status of this InvoicingV2InvoicesAllGet200ResponseInvoices.
123-
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
123+
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
124124
125125
:return: The status of this InvoicingV2InvoicesAllGet200ResponseInvoices.
126126
:rtype: str
@@ -131,7 +131,7 @@ def status(self):
131131
def status(self, status):
132132
"""
133133
Sets the status of this InvoicingV2InvoicesAllGet200ResponseInvoices.
134-
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
134+
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
135135
136136
:param status: The status of this InvoicingV2InvoicesAllGet200ResponseInvoices.
137137
:type: str

CyberSource/models/invoicing_v2_invoices_get200_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def submit_time_utc(self, submit_time_utc):
153153
def status(self):
154154
"""
155155
Gets the status of this InvoicingV2InvoicesGet200Response.
156-
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
156+
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
157157
158158
:return: The status of this InvoicingV2InvoicesGet200Response.
159159
:rtype: str
@@ -164,7 +164,7 @@ def status(self):
164164
def status(self, status):
165165
"""
166166
Sets the status of this InvoicingV2InvoicesGet200Response.
167-
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
167+
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
168168
169169
:param status: The status of this InvoicingV2InvoicesGet200Response.
170170
:type: str

CyberSource/models/invoicing_v2_invoices_post201_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def submit_time_utc(self, submit_time_utc):
148148
def status(self):
149149
"""
150150
Gets the status of this InvoicingV2InvoicesPost201Response.
151-
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
151+
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
152152
153153
:return: The status of this InvoicingV2InvoicesPost201Response.
154154
:rtype: str
@@ -159,7 +159,7 @@ def status(self):
159159
def status(self, status):
160160
"""
161161
Sets the status of this InvoicingV2InvoicesPost201Response.
162-
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
162+
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
163163
164164
:param status: The status of this InvoicingV2InvoicesPost201Response.
165165
:type: str

CyberSource/models/invoicing_v2_invoices_post202_response.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def submit_time_utc(self, submit_time_utc):
9494
def status(self):
9595
"""
9696
Gets the status of this InvoicingV2InvoicesPost202Response.
97-
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
97+
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
9898
9999
:return: The status of this InvoicingV2InvoicesPost202Response.
100100
:rtype: str
@@ -105,7 +105,7 @@ def status(self):
105105
def status(self, status):
106106
"""
107107
Sets the status of this InvoicingV2InvoicesPost202Response.
108-
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
108+
The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED - PENDING
109109
110110
:param status: The status of this InvoicingV2InvoicesPost202Response.
111111
:type: str

CyberSource/models/ptsv2paymentreferences_payment_information_card.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def security_code(self, security_code):
191191
def use_as(self):
192192
"""
193193
Gets the use_as of this Ptsv2paymentreferencesPaymentInformationCard.
194-
Flag that specifies the type of account associated with the card. This field is available only for China UnionPay, Cielo, Comercio Latino and Visa Platform Connect. The cardholder provides this information during the payment process. This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. **China UnionPayCard Transactions on China UnionPay:** Possible values: - C: Domestic credit card - D: Domestic debit card - F: International credit card - I: International debit card When the value is D, the e-commerce indicator and CAVV fields must be included in the authorization request. When the value is C, F or I the card verification number, expiration month and expiration year fields must in included in the authorization request. **Cielo and Comercio Latino Credit Card Transactions:** On these processors, this field is supported only for authorizations. Possible values: - CR: Credit card - DB: Debit card **Visa Platform Connect Credit Card Transactions:** This field is supported only for all card Types on Visa Platform Connect. A value of CR or DB in the useAs field takes precedence over any value in the Source Account Type field.
194+
Flag that specifies the type of account associated with the card. This field is available only for China UnionPay, Cielo, Comercio Latino and Visa Platform Connect. The cardholder provides this information during the payment process. This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. **China UnionPayCard Transactions on China UnionPay:** Possible values: - C: Domestic credit card - D: Domestic debit card - F: International credit card - I: International debit card When the value is D, the e-commerce indicator and CAVV fields must be included in the authorization request. When the value is C, F or I the card verification number, expiration month and expiration year fields must in included in the authorization request. **Cielo and Comercio Latino Credit Card Transactions:** On these processors, this field is supported only for authorizations. Possible values: - CR: Credit card - DB: Debit card **Visa Platform Connect Credit Card Transactions:** This field is supported for all card types on Visa Platform Connect. For combo **card present** transactions with Mastercard on Brazilian-issued cards, possible values: - CR: Credit card - DB: Debit Card For combo **card not present** transactions with Mastercard on Brazilian-issued cards, possible values: - C: Credit card - D: Debit card A value of CR or DB in the useAs field takes precedence over any value in the Source Account Type field.
195195
196196
:return: The use_as of this Ptsv2paymentreferencesPaymentInformationCard.
197197
:rtype: str
@@ -202,7 +202,7 @@ def use_as(self):
202202
def use_as(self, use_as):
203203
"""
204204
Sets the use_as of this Ptsv2paymentreferencesPaymentInformationCard.
205-
Flag that specifies the type of account associated with the card. This field is available only for China UnionPay, Cielo, Comercio Latino and Visa Platform Connect. The cardholder provides this information during the payment process. This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. **China UnionPayCard Transactions on China UnionPay:** Possible values: - C: Domestic credit card - D: Domestic debit card - F: International credit card - I: International debit card When the value is D, the e-commerce indicator and CAVV fields must be included in the authorization request. When the value is C, F or I the card verification number, expiration month and expiration year fields must in included in the authorization request. **Cielo and Comercio Latino Credit Card Transactions:** On these processors, this field is supported only for authorizations. Possible values: - CR: Credit card - DB: Debit card **Visa Platform Connect Credit Card Transactions:** This field is supported only for all card Types on Visa Platform Connect. A value of CR or DB in the useAs field takes precedence over any value in the Source Account Type field.
205+
Flag that specifies the type of account associated with the card. This field is available only for China UnionPay, Cielo, Comercio Latino and Visa Platform Connect. The cardholder provides this information during the payment process. This field is required for: - Debit transactions on Cielo and Comercio Latino. - Transactions with Brazilian-issued cards on CyberSource through VisaNet. **China UnionPayCard Transactions on China UnionPay:** Possible values: - C: Domestic credit card - D: Domestic debit card - F: International credit card - I: International debit card When the value is D, the e-commerce indicator and CAVV fields must be included in the authorization request. When the value is C, F or I the card verification number, expiration month and expiration year fields must in included in the authorization request. **Cielo and Comercio Latino Credit Card Transactions:** On these processors, this field is supported only for authorizations. Possible values: - CR: Credit card - DB: Debit card **Visa Platform Connect Credit Card Transactions:** This field is supported for all card types on Visa Platform Connect. For combo **card present** transactions with Mastercard on Brazilian-issued cards, possible values: - CR: Credit card - DB: Debit Card For combo **card not present** transactions with Mastercard on Brazilian-issued cards, possible values: - C: Credit card - D: Debit card A value of CR or DB in the useAs field takes precedence over any value in the Source Account Type field.
206206
207207
:param use_as: The use_as of this Ptsv2paymentreferencesPaymentInformationCard.
208208
:type: str

0 commit comments

Comments
 (0)