Skip to content

Commit

Permalink
Merge pull request #115 from CyberSource/sep2024
Browse files Browse the repository at this point in the history
api spec changes sep24
  • Loading branch information
monu-kumar-visa authored Sep 30, 2024
2 parents 776fb80 + b3e48e3 commit e1a44fd
Show file tree
Hide file tree
Showing 174 changed files with 20,857 additions and 538 deletions.
2 changes: 1 addition & 1 deletion .swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.3
2.4.38
3 changes: 1 addition & 2 deletions cybersource_rest_client.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ require "cybersource_rest_client/version"

Gem::Specification.new do |s|
s.name = "cybersource_rest_client"
s.version = "0.0.65"
s.version = "0.0.66"
s.platform = Gem::Platform::RUBY
s.authors = ["CyberSource"]
s.email = ["[email protected]"]
Expand All @@ -40,7 +40,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rubocop', '~> 0.57.2'
s.add_development_dependency 'rspec', '~> 3.12', '>= 3.12.0'
s.add_development_dependency 'vcr', '~> 5.0', '>= 5.0.0'
s.add_development_dependency 'webmock', '~> 3.19', '>= 3.19.0'
s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
Expand Down
2 changes: 2 additions & 0 deletions docs/CardProcessingConfigCommon.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@ Name | Type | Description | Notes
**sub_merchant_business_name** | **String** | Sub-merchant's business name. Applicable for American Express Direct (amexdirect) processor. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th></tr></thead> <tr><td>American Express Direct</td><td>cnp, cp, hybrid</td><td>No</td><td>1</td><td>37</td><td>^[0-9a-zA-Z\-\_\,\\s.]+$</td></tr> </table> | [optional]
**prefer_cobadged_secondary_brand** | **BOOLEAN** | It denotes merchant's preference on secondary brand for routing in case of co-branded cards. Applicable for EFTPOS processors. | [optional]
**merchant_descriptor_information** | [**CardProcessingConfigCommonMerchantDescriptorInformation**](CardProcessingConfigCommonMerchantDescriptorInformation.md) | | [optional]
**government_controlled** | **BOOLEAN** | Indicates whether the merchant is government controlled. Applicable for VPC processors. | [optional]
**drop_billing_info** | **BOOLEAN** | This field is used to indicate whether the merchant wants to drop the billing information from the request. If this field is set to true, then the billing information will be dropped from the request. If this field is set to false, then the billing information will be sent in the request. | [optional]


2 changes: 2 additions & 0 deletions docs/CardProcessingConfigCommonAcquirer.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ Name | Type | Description | Notes
**institution_id** | **String** | Identifier of the acquirer. This number is usually assigned by Visa. Applicable for VPC, GPX (gpx), CMCIC (cmcic), EFTPOS, CB2A, CUP, American Express Direct (amexdirect) and Six (six) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cnp, cp, hybrid</td><td>Yes</td><td>1</td><td>13</td><td>^[0-9]+$</td><td>1111</td></tr> </table> | [optional]
**interbank_card_association_id** | **String** | Number assigned by MasterCard to banks to identify the member in transactions. Applicable for VPC and GPX (gpx) processors. | [optional]
**discover_institution_id** | **String** | Assigned by Discover to identify the acquirer. Applicable for VPC and GPX (gpx) processors. | [optional]
**union_pay_institution_id** | **String** | Assigned by China Union Pay to identify the acquirer. Applicable for VPC processors. | [optional]
**diners_club_institution_id** | **String** | Assigned by Diners Club to identify the acquirer. Applicable for VPC processors. | [optional]
**country_code** | **String** | ISO 4217 format. Applicable for VPC, GPX (gpx), EFTPOS, RUPAY, Prisma (prisma) and CUP processors. | [optional]
**file_destination_bin** | **String** | The BIN to which this capturefile is sent. This field must contain a valid BIN. Applicable for VPC and GPX (gpx) processors. | [optional]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ Name | Type | Description | Notes
**street** | **String** | Applicable for American Express Direct (amexdirect), TSYS (tsys) and Elavon Americas (elavonamericas) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th></tr></thead> <tr><td>American Express Direct</td><td>cnp, cp, hybrid</td><td>Yes</td><td>1</td><td>38</td><td>^[0-9a-zA-Z\\s]+$</td></tr> </table> | [optional]
**zip** | **String** | Applicable for Elavon Americas (elavonamericas), RUPAY, American Express Direct (amexdirect) and TSYS (tsys) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th></tr></thead> <tr><td>American Express Direct</td><td>cnp, cp, hybrid</td><td>Yes</td><td>1</td><td>15</td><td>^[0-9a-zA-Z\\s]+$</td></tr> </table> | [optional]
**url** | **String** | Applicable for RUPAY and American Express Direct (amexdirect) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th></tr></thead> <tr><td>American Express Direct</td><td>cnp, hybrid</td><td>Yes</td><td>1</td><td>40</td><td>URL</td></tr> <tr><td>American Express Direct</td><td>cp</td><td>No</td><td>1</td><td>40</td><td>URL</td></tr> </table> | [optional]
**country_of_origin** | **String** | Country Cf Origin of merchant is applicable for VPC Processors and is dependent on governmentControlled attribute. | [optional]


3 changes: 3 additions & 0 deletions docs/CardProcessingConfigCommonProcessors.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Name | Type | Description | Notes
**terminal_id** | **String** | The 'Terminal Id' aka TID, is an identifier used for with your payments processor. Depending on the processor and payment acceptance type this may also be the default Terminal ID used for Card Present and Virtual Terminal transactions. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Min. Length</th><th>Max. Length</th><th>Regex</th></tr></thead> <tr><td>Barclays HISO</td><td>cnp, hybrid</td><td>Yes</td><td>1</td><td>16</td><td>^[0-9a-zA-Z]+$</td></tr> <tr><td>Barclays HISO</td><td>cp</td><td>No</td><td>1</td><td>16</td><td>^[0-9a-zA-Z]+$</td></tr> </table> | [optional]
**payment_types** | [**Hash<String, CardProcessingConfigCommonPaymentTypes>**](CardProcessingConfigCommonPaymentTypes.md) | Valid values are: * VISA * MASTERCARD * AMERICAN_EXPRESS * CUP * EFTPOS * DINERS_CLUB * DISCOVER * JCB | [optional]
**currencies** | [**Hash<String, CardProcessingConfigCommonCurrencies1>**](CardProcessingConfigCommonCurrencies1.md) | Three-character [ISO 4217 ALPHA-3 Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) | [optional]
**visa_aggregator_id** | **String** | This field is used as aggregator Id when Visa payment type is selected | [optional]
**amex_aggregator_id** | **String** | This field is used as aggregator Id when Amex payment type is selected | [optional]
**master_card_aggregator_id** | **String** | This field is used as aggregator Id when Master Card payment type is selected | [optional]
**sic_code** | **String** | The Standard Industrial Classification (SIC) are four-digit codes that categorize the industries that companies belong to based on their business activities. Standard Industrial Classification codes were mostly replaced by the six-digit North American Industry Classification System (NAICS). Applicable for VPC and GPX (gpx) processors. | [optional]
**allow_multiple_bills** | **BOOLEAN** | Allows multiple captures for a single authorization transaction. Applicable for Paymentech Tampa (paymentechtampa), VPC, American Express Direct (amexdirect) and GPX (gpx) processors. Validation details (for selected processors)... <table> <thead><tr><th>Processor</th><th>Acceptance Type</th><th>Required</th><th>Default Value</th></tr></thead> <tr><td>American Express Direct</td><td>cp, hybrid</td><td>Yes</td><td>No</td></tr> <tr><td>American Express Direct</td><td>cnp</td><td>No</td><td>No</td></tr> </table> | [optional]
**allow_merchant_descriptor_override** | **BOOLEAN** | Enables partner to enable/disable merchant descriptors values. Applicable for VPC, EFTPOS and CUP processors. | [optional]
Expand Down
56 changes: 56 additions & 0 deletions docs/FlexAPIApi.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# CyberSource::FlexAPIApi

All URIs are relative to *https://apitest.cybersource.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**generate_flex_api_capture_context**](FlexAPIApi.md#generate_flex_api_capture_context) | **POST** /flex/v2/sessions | Establish a Payment Session with a Capture Context


# **generate_flex_api_capture_context**
> String generate_flex_api_capture_context(generate_flex_api_capture_context_request)
Establish a Payment Session with a Capture Context

To establish a payment session, include the API fields you plan to use in that session in the body of the request. The system then returns a JSON Web Token (JWT) that includes the capture context. To determine which fields to include in your capture context, identify the personal information that you wish to isolate from the payment session. **Capture Context Fields**<br> When making a session request, any fields that you request to be added to the capture context are required by default. However, you can choose to make a field optional by setting the required parameter to false.

### Example
```ruby
# load the gem
require 'cybersource_rest_client'

api_instance = CyberSource::FlexAPIApi.new

generate_flex_api_capture_context_request = CyberSource::GenerateFlexAPICaptureContextRequest.new # GenerateFlexAPICaptureContextRequest |


begin
#Establish a Payment Session with a Capture Context
result = api_instance.generate_flex_api_capture_context(generate_flex_api_capture_context_request)
p result
rescue CyberSource::ApiError => e
puts "Exception when calling FlexAPIApi->generate_flex_api_capture_context: #{e}"
end
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**generate_flex_api_capture_context_request** | [**GenerateFlexAPICaptureContextRequest**](GenerateFlexAPICaptureContextRequest.md)| |

### Return type

**String**

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: application/json;charset=utf-8
- **Accept**: application/jwt



9 changes: 9 additions & 0 deletions docs/Flexv2sessionsFields.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CyberSource::Flexv2sessionsFields

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**order_information** | [**Flexv2sessionsFieldsOrderInformation**](Flexv2sessionsFieldsOrderInformation.md) | | [optional]
**payment_information** | [**Flexv2sessionsFieldsPaymentInformation**](Flexv2sessionsFieldsPaymentInformation.md) | | [optional]


10 changes: 10 additions & 0 deletions docs/Flexv2sessionsFieldsOrderInformation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# CyberSource::Flexv2sessionsFieldsOrderInformation

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**amount_details** | [**Flexv2sessionsFieldsOrderInformationAmountDetails**](Flexv2sessionsFieldsOrderInformationAmountDetails.md) | | [optional]
**bill_to** | [**Flexv2sessionsFieldsOrderInformationBillTo**](Flexv2sessionsFieldsOrderInformationBillTo.md) | | [optional]
**ship_to** | [**Flexv2sessionsFieldsOrderInformationShipTo**](Flexv2sessionsFieldsOrderInformationShipTo.md) | | [optional]


9 changes: 9 additions & 0 deletions docs/Flexv2sessionsFieldsOrderInformationAmountDetails.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CyberSource::Flexv2sessionsFieldsOrderInformationAmountDetails

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**total_amount** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**currency** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]


Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# CyberSource::Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**required** | **BOOLEAN** | | [optional]


20 changes: 20 additions & 0 deletions docs/Flexv2sessionsFieldsOrderInformationBillTo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# CyberSource::Flexv2sessionsFieldsOrderInformationBillTo

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**address1** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**address2** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**administrative_area** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**building_number** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**country** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**district** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**locality** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**postal_code** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**email** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**first_name** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**last_name** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**phone_number** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**company** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]


18 changes: 18 additions & 0 deletions docs/Flexv2sessionsFieldsOrderInformationShipTo.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# CyberSource::Flexv2sessionsFieldsOrderInformationShipTo

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**address1** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**address2** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**administrative_area** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**building_number** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**country** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**district** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**locality** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**postal_code** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**first_name** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**last_name** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**company** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]


8 changes: 8 additions & 0 deletions docs/Flexv2sessionsFieldsPaymentInformation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# CyberSource::Flexv2sessionsFieldsPaymentInformation

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**card** | [**Flexv2sessionsFieldsPaymentInformationCard**](Flexv2sessionsFieldsPaymentInformationCard.md) | | [optional]


12 changes: 12 additions & 0 deletions docs/Flexv2sessionsFieldsPaymentInformationCard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# CyberSource::Flexv2sessionsFieldsPaymentInformationCard

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**number** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**type** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**security_code** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**expiration_month** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]
**expiration_year** | [**Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount**](Flexv2sessionsFieldsOrderInformationAmountDetailsTotalAmount.md) | | [optional]


8 changes: 8 additions & 0 deletions docs/GenerateFlexAPICaptureContextRequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# CyberSource::GenerateFlexAPICaptureContextRequest

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**fields** | [**Flexv2sessionsFields**](Flexv2sessionsFields.md) | | [optional]


Loading

0 comments on commit e1a44fd

Please sign in to comment.