Skip to content

Commit 162abb9

Browse files
committed
+ Made changes to SDK
1 parent 25260a8 commit 162abb9

25 files changed

+34972
-35918
lines changed

docs/PtsV2PaymentsPost201ResponseErrorInformation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**reason** | **String** | The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD | [optional]
6+
**reason** | **String** | The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD - PENDING_AUTHENTICATION | [optional]
77
**message** | **String** | The detail message related to the status and reason listed above. | [optional]
88
**details** | [**Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>**](PtsV2PaymentsPost201ResponseErrorInformationDetails.md) | | [optional]
99

generator/cybersource-rest-spec.json

Lines changed: 34897 additions & 35598 deletions
Large diffs are not rendered by default.

lib/cybersource_rest_client.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@
8585
require 'cybersource_rest_client/models/merchant_information'
8686
require 'cybersource_rest_client/models/merchant_initiated_transaction'
8787
require 'cybersource_rest_client/models/metadata'
88-
require 'cybersource_rest_client/models/mit_reversal_request'
89-
require 'cybersource_rest_client/models/mit_void_request'
9088
require 'cybersource_rest_client/models/model_409_link'
9189
require 'cybersource_rest_client/models/model_409_links'
9290
require 'cybersource_rest_client/models/oct_create_payment_request'

lib/cybersource_rest_client/api/payer_authentication_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def check_payer_auth_enrollment_with_http_info(check_payer_auth_enrollment_reque
5858
# header parameters
5959
header_params = {}
6060
# HTTP header 'Accept' (if needed)
61-
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
61+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
6262
# HTTP header 'Content-Type'
6363
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
6464

@@ -123,7 +123,7 @@ def risk_v1_authentication_results_post_with_http_info(request, opts = {})
123123
# header parameters
124124
header_params = {}
125125
# HTTP header 'Accept' (if needed)
126-
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
126+
header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
127127
# HTTP header 'Content-Type'
128128
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
129129

lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
module CyberSource
1616
class PtsV2PaymentsPost201ResponseErrorInformation
17-
# The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD
17+
# The reason of the status. Possible values: - AVS_FAILED - CONTACT_PROCESSOR - EXPIRED_CARD - PROCESSOR_DECLINED - INSUFFICIENT_FUND - STOLEN_LOST_CARD - ISSUER_UNAVAILABLE - UNAUTHORIZED_CARD - CVN_NOT_MATCH - EXCEEDS_CREDIT_LIMIT - INVALID_CVN - DECLINED_CHECK - BLACKLISTED_CUSTOMER - SUSPENDED_ACCOUNT - PAYMENT_REFUSED - CV_FAILED - INVALID_ACCOUNT - GENERAL_DECLINE - INVALID_MERCHANT_CONFIGURATION - DECISION_PROFILE_REJECT - SCORE_EXCEEDS_THRESHOLD - PENDING_AUTHENTICATION
1818
attr_accessor :reason
1919

2020
# The detail message related to the status and reason listed above.
@@ -95,15 +95,15 @@ def list_invalid_properties
9595
# Check to see if the all the properties in the model are valid
9696
# @return true if the model is valid
9797
def valid?
98-
reason_validator = EnumAttributeValidator.new('String', ['AVS_FAILED', 'CONTACT_PROCESSOR', 'EXPIRED_CARD', 'PROCESSOR_DECLINED', 'INSUFFICIENT_FUND', 'STOLEN_LOST_CARD', 'ISSUER_UNAVAILABLE', 'UNAUTHORIZED_CARD', 'CVN_NOT_MATCH', 'EXCEEDS_CREDIT_LIMIT', 'INVALID_CVN', 'DECLINED_CHECK', 'BLACKLISTED_CUSTOMER', 'SUSPENDED_ACCOUNT', 'PAYMENT_REFUSED', 'CV_FAILED', 'INVALID_ACCOUNT', 'GENERAL_DECLINE', 'INVALID_MERCHANT_CONFIGURATION', 'DECISION_PROFILE_REJECT', 'SCORE_EXCEEDS_THRESHOLD'])
98+
reason_validator = EnumAttributeValidator.new('String', ['AVS_FAILED', 'CONTACT_PROCESSOR', 'EXPIRED_CARD', 'PROCESSOR_DECLINED', 'INSUFFICIENT_FUND', 'STOLEN_LOST_CARD', 'ISSUER_UNAVAILABLE', 'UNAUTHORIZED_CARD', 'CVN_NOT_MATCH', 'EXCEEDS_CREDIT_LIMIT', 'INVALID_CVN', 'DECLINED_CHECK', 'BLACKLISTED_CUSTOMER', 'SUSPENDED_ACCOUNT', 'PAYMENT_REFUSED', 'CV_FAILED', 'INVALID_ACCOUNT', 'GENERAL_DECLINE', 'INVALID_MERCHANT_CONFIGURATION', 'DECISION_PROFILE_REJECT', 'SCORE_EXCEEDS_THRESHOLD', 'PENDING_AUTHENTICATION'])
9999
return false unless reason_validator.valid?(@reason)
100100
true
101101
end
102102

103103
# Custom attribute writer method checking allowed values (enum).
104104
# @param [Object] reason Object to be assigned
105105
def reason=(reason)
106-
validator = EnumAttributeValidator.new('String', ['AVS_FAILED', 'CONTACT_PROCESSOR', 'EXPIRED_CARD', 'PROCESSOR_DECLINED', 'INSUFFICIENT_FUND', 'STOLEN_LOST_CARD', 'ISSUER_UNAVAILABLE', 'UNAUTHORIZED_CARD', 'CVN_NOT_MATCH', 'EXCEEDS_CREDIT_LIMIT', 'INVALID_CVN', 'DECLINED_CHECK', 'BLACKLISTED_CUSTOMER', 'SUSPENDED_ACCOUNT', 'PAYMENT_REFUSED', 'CV_FAILED', 'INVALID_ACCOUNT', 'GENERAL_DECLINE', 'INVALID_MERCHANT_CONFIGURATION', 'DECISION_PROFILE_REJECT', 'SCORE_EXCEEDS_THRESHOLD'])
106+
validator = EnumAttributeValidator.new('String', ['AVS_FAILED', 'CONTACT_PROCESSOR', 'EXPIRED_CARD', 'PROCESSOR_DECLINED', 'INSUFFICIENT_FUND', 'STOLEN_LOST_CARD', 'ISSUER_UNAVAILABLE', 'UNAUTHORIZED_CARD', 'CVN_NOT_MATCH', 'EXCEEDS_CREDIT_LIMIT', 'INVALID_CVN', 'DECLINED_CHECK', 'BLACKLISTED_CUSTOMER', 'SUSPENDED_ACCOUNT', 'PAYMENT_REFUSED', 'CV_FAILED', 'INVALID_ACCOUNT', 'GENERAL_DECLINE', 'INVALID_MERCHANT_CONFIGURATION', 'DECISION_PROFILE_REJECT', 'SCORE_EXCEEDS_THRESHOLD', 'PENDING_AUTHENTICATION'])
107107
unless validator.valid?(reason)
108108
fail ArgumentError, 'invalid value for "reason", must be one of #{validator.allowable_values}.'
109109
end

spec/api/payment_batch_summaries_api_spec.rb

Lines changed: 0 additions & 52 deletions
This file was deleted.

spec/api/search_transactions_api_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747
# unit tests for get_search
4848
# Get Search results
49-
# Include the Search ID in the GET request to retrieve the search results.
49+
# Include the Search ID in the GET request to retrieve the search results.
5050
# @param search_id Search ID.
5151
# @param [Hash] opts the optional parameters
5252
# @return [TssV2TransactionsPost201Response]

spec/api/transaction_batches_api_spec.rb

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,40 +32,26 @@
3232
end
3333
end
3434

35-
# unit tests for get_transaction_batch_details
36-
# Filters batch response.
37-
# Filters batch response.
38-
# @param transaction_batch_id Transaction Batch Id, this is unique.
35+
# unit tests for pts_v1_transaction_batches_get
36+
# Gets a list of batch files
37+
# Provide the search range
38+
# @param start_time Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ
39+
# @param end_time Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ
3940
# @param [Hash] opts the optional parameters
40-
# @option opts [Date] :upload_date Date in which the original batch file was uploaded. Date must be in ISO-8601 format.
41-
# @option opts [String] :status Allows you to filter by rejected response.
42-
# @return [nil]
43-
describe 'get_transaction_batch_details test' do
41+
# @return [PtsV1TransactionBatchesGet200Response]
42+
describe 'pts_v1_transaction_batches_get test' do
4443
it 'should work' do
4544
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
4645
end
4746
end
4847

49-
# unit tests for get_transaction_batch_id
48+
# unit tests for pts_v1_transaction_batches_id_get
5049
# Get individual batch file
5150
# Provide the search range
5251
# @param id The batch id assigned for the template.
5352
# @param [Hash] opts the optional parameters
5453
# @return [PtsV1TransactionBatchesIdGet200Response]
55-
describe 'get_transaction_batch_id test' do
56-
it 'should work' do
57-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58-
end
59-
end
60-
61-
# unit tests for get_transaction_batches
62-
# Get a list of batch files
63-
# Provide the search range
64-
# @param start_time Valid report Start Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ
65-
# @param end_time Valid report End Time in **ISO 8601 format** Please refer the following link to know more about ISO 8601 format. - https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14 **Example date format:** - yyyy-MM-dd'T'HH:mm:ss.SSSZZ
66-
# @param [Hash] opts the optional parameters
67-
# @return [PtsV1TransactionBatchesGet200Response]
68-
describe 'get_transaction_batches test' do
54+
describe 'pts_v1_transaction_batches_id_get test' do
6955
it 'should work' do
7056
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
7157
end

spec/api/user_management_api_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
end
3434

3535
# unit tests for get_users
36-
# Get user based on organization Id, username, permission and role
36+
# Get user information
3737
# This endpoint is to get all the user information depending on the filter criteria passed in the query.
3838
# @param [Hash] opts the optional parameters
3939
# @option opts [String] :organization_id This is the orgId of the organization which the user belongs to.

spec/models/inline_response_200_payment_batch_summaries_spec.rb

Lines changed: 0 additions & 107 deletions
This file was deleted.

0 commit comments

Comments
 (0)