Skip to content

Commit 1b1f516

Browse files
authored
Merge pull request #71 from snavinch/master
+ Changes for July 2021 SDK Release
2 parents 0bb8784 + 206979c commit 1b1f516

File tree

52 files changed

+831
-310
lines changed

Some content is hidden

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

52 files changed

+831
-310
lines changed

CyberSource/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,13 @@
176176
from .models.pts_v2_payments_post201_response_order_information_amount_details import PtsV2PaymentsPost201ResponseOrderInformationAmountDetails
177177
from .models.pts_v2_payments_post201_response_order_information_invoice_details import PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails
178178
from .models.pts_v2_payments_post201_response_order_information_reward_points_details import PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails
179+
from .models.pts_v2_payments_post201_response_payment_account_information import PtsV2PaymentsPost201ResponsePaymentAccountInformation
180+
from .models.pts_v2_payments_post201_response_payment_account_information_card import PtsV2PaymentsPost201ResponsePaymentAccountInformationCard
179181
from .models.pts_v2_payments_post201_response_payment_information import PtsV2PaymentsPost201ResponsePaymentInformation
180182
from .models.pts_v2_payments_post201_response_payment_information_account_features import PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures
181183
from .models.pts_v2_payments_post201_response_payment_information_account_features_balances import PtsV2PaymentsPost201ResponsePaymentInformationAccountFeaturesBalances
182184
from .models.pts_v2_payments_post201_response_payment_information_bank import PtsV2PaymentsPost201ResponsePaymentInformationBank
183185
from .models.pts_v2_payments_post201_response_payment_information_bank_account import PtsV2PaymentsPost201ResponsePaymentInformationBankAccount
184-
from .models.pts_v2_payments_post201_response_payment_information_card import PtsV2PaymentsPost201ResponsePaymentInformationCard
185186
from .models.pts_v2_payments_post201_response_payment_information_instrument_identifier import PtsV2PaymentsPost201ResponsePaymentInformationInstrumentIdentifier
186187
from .models.pts_v2_payments_post201_response_payment_information_tokenized_card import PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard
187188
from .models.pts_v2_payments_post201_response_point_of_sale_information import PtsV2PaymentsPost201ResponsePointOfSaleInformation

CyberSource/apis/payments_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, merchant_config, api_client=None):
4545
def create_payment(self, create_payment_request, **kwargs):
4646
"""
4747
Process a Payment
48-
A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation. Find more on [Authorization with Add-On Features page.] (https://developer.cybersource.com/api/authorization-add-ons.html) Possible [RESPONSE CODES](https://developer.cybersource.com/api/reference/response-codes.html) . Processor specific [Testing Triggers](https://developer.cybersource.com/hello-world/testing-guide.html).
48+
A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation. Find more on [Authorization with Add-On Features page.](https://developer.cybersource.com/api/authorization-add-ons.html)
4949
This method makes a synchronous HTTP request by default. To make an
5050
asynchronous HTTP request, please define a `callback` function
5151
to be invoked when receiving the response.
@@ -71,7 +71,7 @@ def create_payment(self, create_payment_request, **kwargs):
7171
def create_payment_with_http_info(self, create_payment_request, **kwargs):
7272
"""
7373
Process a Payment
74-
A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation. Find more on [Authorization with Add-On Features page.] (https://developer.cybersource.com/api/authorization-add-ons.html) Possible [RESPONSE CODES](https://developer.cybersource.com/api/reference/response-codes.html) . Processor specific [Testing Triggers](https://developer.cybersource.com/hello-world/testing-guide.html).
74+
A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation. Find more on [Authorization with Add-On Features page.](https://developer.cybersource.com/api/authorization-add-ons.html)
7575
This method makes a synchronous HTTP request by default. To make an
7676
asynchronous HTTP request, please define a `callback` function
7777
to be invoked when receiving the response.

CyberSource/apis/refund_api.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, merchant_config, api_client=None):
4545
def refund_capture(self, refund_capture_request, id, **kwargs):
4646
"""
4747
Refund a Capture
48-
Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call Include the capture ID in the POST request to refund the captured amount.
48+
Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call. Include the capture ID in the POST request to refund the captured amount.
4949
This method makes a synchronous HTTP request by default. To make an
5050
asynchronous HTTP request, please define a `callback` function
5151
to be invoked when receiving the response.
@@ -72,7 +72,7 @@ def refund_capture(self, refund_capture_request, id, **kwargs):
7272
def refund_capture_with_http_info(self, refund_capture_request, id, **kwargs):
7373
"""
7474
Refund a Capture
75-
Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call Include the capture ID in the POST request to refund the captured amount.
75+
Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call. Include the capture ID in the POST request to refund the captured amount.
7676
This method makes a synchronous HTTP request by default. To make an
7777
asynchronous HTTP request, please define a `callback` function
7878
to be invoked when receiving the response.
@@ -158,7 +158,7 @@ def refund_capture_with_http_info(self, refund_capture_request, id, **kwargs):
158158
def refund_payment(self, refund_payment_request, id, **kwargs):
159159
"""
160160
Refund a Payment
161-
Refund a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call. Include the payment ID in the POST request to refund the payment amount.
161+
Refund a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call. Include the payment ID in the POST request to refund the payment amount.
162162
This method makes a synchronous HTTP request by default. To make an
163163
asynchronous HTTP request, please define a `callback` function
164164
to be invoked when receiving the response.
@@ -185,7 +185,7 @@ def refund_payment(self, refund_payment_request, id, **kwargs):
185185
def refund_payment_with_http_info(self, refund_payment_request, id, **kwargs):
186186
"""
187187
Refund a Payment
188-
Refund a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call. Include the payment ID in the POST request to refund the payment amount.
188+
Refund a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call. Include the payment ID in the POST request to refund the payment amount.
189189
This method makes a synchronous HTTP request by default. To make an
190190
asynchronous HTTP request, please define a `callback` function
191191
to be invoked when receiving the response.

CyberSource/apis/void_api.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def mit_void_with_http_info(self, mit_void_request, **kwargs):
151151
def void_capture(self, void_capture_request, id, **kwargs):
152152
"""
153153
Void a Capture
154-
Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call. Include the capture ID in the POST request to cancel the capture.
154+
Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call. Include the capture ID in the POST request to cancel the capture.
155155
This method makes a synchronous HTTP request by default. To make an
156156
asynchronous HTTP request, please define a `callback` function
157157
to be invoked when receiving the response.
@@ -178,7 +178,7 @@ def void_capture(self, void_capture_request, id, **kwargs):
178178
def void_capture_with_http_info(self, void_capture_request, id, **kwargs):
179179
"""
180180
Void a Capture
181-
Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call. Include the capture ID in the POST request to cancel the capture.
181+
Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call. Include the capture ID in the POST request to cancel the capture.
182182
This method makes a synchronous HTTP request by default. To make an
183183
asynchronous HTTP request, please define a `callback` function
184184
to be invoked when receiving the response.
@@ -377,7 +377,7 @@ def void_credit_with_http_info(self, void_credit_request, id, **kwargs):
377377
def void_payment(self, void_payment_request, id, **kwargs):
378378
"""
379379
Void a Payment
380-
Void a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call. Include the payment ID in the POST request to cancel the payment.
380+
Void a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call. Include the payment ID in the POST request to cancel the payment.
381381
This method makes a synchronous HTTP request by default. To make an
382382
asynchronous HTTP request, please define a `callback` function
383383
to be invoked when receiving the response.
@@ -404,7 +404,7 @@ def void_payment(self, void_payment_request, id, **kwargs):
404404
def void_payment_with_http_info(self, void_payment_request, id, **kwargs):
405405
"""
406406
Void a Payment
407-
Void a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call. Include the payment ID in the POST request to cancel the payment.
407+
Void a Payment API is only used, if you have requested Authorization and Capture together in [/pts/v2/payments](https://developer.cybersource.com/api-reference-assets/index.html#payments_payments) API call. Include the payment ID in the POST request to cancel the payment.
408408
This method makes a synchronous HTTP request by default. To make an
409409
asynchronous HTTP request, please define a `callback` function
410410
to be invoked when receiving the response.

CyberSource/models/__init__.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,13 @@
176176
from .pts_v2_payments_post201_response_order_information_amount_details import PtsV2PaymentsPost201ResponseOrderInformationAmountDetails
177177
from .pts_v2_payments_post201_response_order_information_invoice_details import PtsV2PaymentsPost201ResponseOrderInformationInvoiceDetails
178178
from .pts_v2_payments_post201_response_order_information_reward_points_details import PtsV2PaymentsPost201ResponseOrderInformationRewardPointsDetails
179+
from .pts_v2_payments_post201_response_payment_account_information import PtsV2PaymentsPost201ResponsePaymentAccountInformation
180+
from .pts_v2_payments_post201_response_payment_account_information_card import PtsV2PaymentsPost201ResponsePaymentAccountInformationCard
179181
from .pts_v2_payments_post201_response_payment_information import PtsV2PaymentsPost201ResponsePaymentInformation
180182
from .pts_v2_payments_post201_response_payment_information_account_features import PtsV2PaymentsPost201ResponsePaymentInformationAccountFeatures
181183
from .pts_v2_payments_post201_response_payment_information_account_features_balances import PtsV2PaymentsPost201ResponsePaymentInformationAccountFeaturesBalances
182184
from .pts_v2_payments_post201_response_payment_information_bank import PtsV2PaymentsPost201ResponsePaymentInformationBank
183185
from .pts_v2_payments_post201_response_payment_information_bank_account import PtsV2PaymentsPost201ResponsePaymentInformationBankAccount
184-
from .pts_v2_payments_post201_response_payment_information_card import PtsV2PaymentsPost201ResponsePaymentInformationCard
185186
from .pts_v2_payments_post201_response_payment_information_instrument_identifier import PtsV2PaymentsPost201ResponsePaymentInformationInstrumentIdentifier
186187
from .pts_v2_payments_post201_response_payment_information_tokenized_card import PtsV2PaymentsPost201ResponsePaymentInformationTokenizedCard
187188
from .pts_v2_payments_post201_response_point_of_sale_information import PtsV2PaymentsPost201ResponsePointOfSaleInformation

CyberSource/models/invoicing_v2_invoices_all_get200_response_customer_information.py

+31-3
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,27 @@ class InvoicingV2InvoicesAllGet200ResponseCustomerInformation(object):
3131
and the value is json key in definition.
3232
"""
3333
swagger_types = {
34-
'name': 'str'
34+
'name': 'str',
35+
'merchant_customer_id': 'str'
3536
}
3637

3738
attribute_map = {
38-
'name': 'name'
39+
'name': 'name',
40+
'merchant_customer_id': 'merchantCustomerId'
3941
}
4042

41-
def __init__(self, name=None):
43+
def __init__(self, name=None, merchant_customer_id=None):
4244
"""
4345
InvoicingV2InvoicesAllGet200ResponseCustomerInformation - a model defined in Swagger
4446
"""
4547

4648
self._name = None
49+
self._merchant_customer_id = None
4750

4851
if name is not None:
4952
self.name = name
53+
if merchant_customer_id is not None:
54+
self.merchant_customer_id = merchant_customer_id
5055

5156
@property
5257
def name(self):
@@ -71,6 +76,29 @@ def name(self, name):
7176

7277
self._name = name
7378

79+
@property
80+
def merchant_customer_id(self):
81+
"""
82+
Gets the merchant_customer_id of this InvoicingV2InvoicesAllGet200ResponseCustomerInformation.
83+
Your identifier for the customer. When a subscription or customer profile is being created, the maximum length for this field for most processors is 30. Otherwise, the maximum length is 100. #### Comercio Latino For recurring payments in Mexico, the value is the customer’s contract number. Note Before you request the authorization, you must inform the issuer of the customer contract numbers that will be used for recurring transactions. #### Worldpay VAP For a follow-on credit with Worldpay VAP, CyberSource checks the following locations, in the order given, for a customer account ID value and uses the first value it finds: 1. `customer_account_id` value in the follow-on credit request 2. Customer account ID value that was used for the capture that is being credited 3. Customer account ID value that was used for the original authorization If a customer account ID value cannot be found in any of these locations, then no value is used. For processor-specific information, see the `customer_account_id` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
84+
85+
:return: The merchant_customer_id of this InvoicingV2InvoicesAllGet200ResponseCustomerInformation.
86+
:rtype: str
87+
"""
88+
return self._merchant_customer_id
89+
90+
@merchant_customer_id.setter
91+
def merchant_customer_id(self, merchant_customer_id):
92+
"""
93+
Sets the merchant_customer_id of this InvoicingV2InvoicesAllGet200ResponseCustomerInformation.
94+
Your identifier for the customer. When a subscription or customer profile is being created, the maximum length for this field for most processors is 30. Otherwise, the maximum length is 100. #### Comercio Latino For recurring payments in Mexico, the value is the customer’s contract number. Note Before you request the authorization, you must inform the issuer of the customer contract numbers that will be used for recurring transactions. #### Worldpay VAP For a follow-on credit with Worldpay VAP, CyberSource checks the following locations, in the order given, for a customer account ID value and uses the first value it finds: 1. `customer_account_id` value in the follow-on credit request 2. Customer account ID value that was used for the capture that is being credited 3. Customer account ID value that was used for the original authorization If a customer account ID value cannot be found in any of these locations, then no value is used. For processor-specific information, see the `customer_account_id` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html)
95+
96+
:param merchant_customer_id: The merchant_customer_id of this InvoicingV2InvoicesAllGet200ResponseCustomerInformation.
97+
:type: str
98+
"""
99+
100+
self._merchant_customer_id = merchant_customer_id
101+
74102
def to_dict(self):
75103
"""
76104
Returns the model properties as a dict

0 commit comments

Comments
 (0)