Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 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.16"
s.version = "0.0.17"
s.platform = Gem::Platform::RUBY
s.authors = ["CyberSource"]
s.email = ["cybersourcedev@gmail.com"]
Expand Down
2 changes: 1 addition & 1 deletion docs/CaptureApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ No authorization required
### HTTP request headers

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



2 changes: 1 addition & 1 deletion docs/RequestBody.md → docs/CreateAdhocReportRequest.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CyberSource::RequestBody
# CyberSource::CreateAdhocReportRequest

## Properties
Name | Type | Description | Notes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CyberSource::RequestBody1
# CyberSource::CreateReportSubscriptionRequest

## Properties
Name | Type | Description | Notes
Expand Down
4 changes: 2 additions & 2 deletions docs/CreditApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All URIs are relative to *https://apitest.cybersource.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_credit**](CreditApi.md#create_credit) | **POST** /pts/v2/credits/ | Process a Credit
[**create_credit**](CreditApi.md#create_credit) | **POST** /pts/v2/credits | Process a Credit


# **create_credit**
Expand Down Expand Up @@ -50,7 +50,7 @@ No authorization required
### HTTP request headers

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



8 changes: 4 additions & 4 deletions docs/DownloadDTDApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ All URIs are relative to *https://apitest.cybersource.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_dtdv2**](DownloadDTDApi.md#get_dtdv2) | **GET** /dtds/{reportDefinitionNameVersion} | Used to download DTDs for reports
[**get_dtdv2**](DownloadDTDApi.md#get_dtdv2) | **GET** /dtds/{reportDefinitionNameVersion} | Download DTD for report


# **get_dtdv2**
> get_dtdv2(report_definition_name_version)

Used to download DTDs for reports
Download DTD for report

Downloads DTDs for reports on no-auth.
Used to download DTDs for reports on no-auth.

### Example
```ruby
Expand All @@ -25,7 +25,7 @@ report_definition_name_version = "report_definition_name_version_example" # Stri


begin
#Used to download DTDs for reports
#Download DTD for report
api_instance.get_dtdv2(report_definition_name_version)
rescue CyberSource::ApiError => e
puts "Exception when calling DownloadDTDApi->get_dtdv2: #{e}"
Expand Down
8 changes: 4 additions & 4 deletions docs/DownloadXSDApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ All URIs are relative to *https://apitest.cybersource.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**get_xsdv2**](DownloadXSDApi.md#get_xsdv2) | **GET** /xsds/{reportDefinitionNameVersion} | Used to download XSDs for reports
[**get_xsdv2**](DownloadXSDApi.md#get_xsdv2) | **GET** /xsds/{reportDefinitionNameVersion} | Download XSD for report


# **get_xsdv2**
> get_xsdv2(report_definition_name_version)

Used to download XSDs for reports
Download XSD for report

Downloads XSDs for reports on no-auth.
Used to download XSDs for reports on no-auth.

### Example
```ruby
Expand All @@ -25,7 +25,7 @@ report_definition_name_version = "report_definition_name_version_example" # Stri


begin
#Used to download XSDs for reports
#Download XSD for report
api_instance.get_xsdv2(report_definition_name_version)
rescue CyberSource::ApiError => e
puts "Exception when calling DownloadXSDApi->get_xsdv2: #{e}"
Expand Down
5 changes: 3 additions & 2 deletions docs/Error.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**response_status** | [**InlineResponseDefaultResponseStatus**](InlineResponseDefaultResponseStatus.md) | | [optional]
**_links** | [**ErrorLinks**](ErrorLinks.md) | | [optional]
**type** | **String** | | [optional]
**message** | **String** | The detailed message related to the type stated above. | [optional]
**details** | [**Tmsv1instrumentidentifiersDetails**](Tmsv1instrumentidentifiersDetails.md) | | [optional]


2 changes: 1 addition & 1 deletion docs/ErrorBean.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ Name | Type | Description | Notes
**localization_key** | **String** | Localization Key Name | [optional]
**correlation_id** | **String** | Correlation Id | [optional]
**detail** | **String** | Error Detail | [optional]
**fields** | [**Array<InlineResponse4001Fields>**](InlineResponse4001Fields.md) | Error fields List | [optional]
**fields** | [**Array<InlineResponse400Fields>**](InlineResponse400Fields.md) | Error fields List | [optional]


4 changes: 2 additions & 2 deletions docs/ErrorLinks.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_self** | [**InlineResponseDefaultLinksNext**](InlineResponseDefaultLinksNext.md) | | [optional]
**documentation** | [**Array<InlineResponseDefaultLinksNext>**](InlineResponseDefaultLinksNext.md) | | [optional]
**_next** | [**Array<InlineResponseDefaultLinksNext>**](InlineResponseDefaultLinksNext.md) | | [optional]
**documentation** | [**Array<InlineResponseDefaultLinksNext>**](InlineResponseDefaultLinksNext.md) | | [optional]
**_self** | [**InlineResponseDefaultLinksNext**](InlineResponseDefaultLinksNext.md) | | [optional]


2 changes: 0 additions & 2 deletions docs/ErrorResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,5 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**response_status** | [**InlineResponseDefaultResponseStatus**](InlineResponseDefaultResponseStatus.md) | | [optional]
**_links** | [**InlineResponseDefaultLinks**](InlineResponseDefaultLinks.md) | | [optional]


9 changes: 6 additions & 3 deletions docs/InlineResponse400.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**type** | **String** | | [optional]
**message** | **String** | The detailed message related to the type stated above. | [optional]
**details** | [**Tmsv1instrumentidentifiersDetails**](Tmsv1instrumentidentifiersDetails.md) | | [optional]
**code** | **String** | Error code |
**message** | **String** | Error message |
**localization_key** | **String** | Localization Key Name | [optional]
**correlation_id** | **String** | Correlation Id | [optional]
**detail** | **String** | Error Detail | [optional]
**fields** | [**Array<InlineResponse400Fields>**](InlineResponse400Fields.md) | Error fields List | [optional]


9 changes: 3 additions & 6 deletions docs/InlineResponse4001.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**code** | **String** | Error code |
**message** | **String** | Error message |
**localization_key** | **String** | Localization Key Name | [optional]
**correlation_id** | **String** | Correlation Id | [optional]
**detail** | **String** | Error Detail | [optional]
**fields** | [**Array<InlineResponse4001Fields>**](InlineResponse4001Fields.md) | Error fields List | [optional]
**type** | **String** | | [optional]
**message** | **String** | The detailed message related to the type stated above. | [optional]
**details** | [**Tmsv1instrumentidentifiersDetails**](Tmsv1instrumentidentifiersDetails.md) | | [optional]


Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# CyberSource::InlineResponse4001Fields
# CyberSource::InlineResponse400Fields

## Properties
Name | Type | Description | Notes
Expand Down
4 changes: 1 addition & 3 deletions docs/Link.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**href** | **String** | URI of the linked resource. | [optional]
**title** | **String** | Label of the linked resource. | [optional]
**method** | **String** | HTTP method of the linked resource. | [optional]
**href** | **String** | | [optional]


6 changes: 3 additions & 3 deletions docs/Links.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_self** | [**InlineResponseDefaultLinksNext**](InlineResponseDefaultLinksNext.md) | | [optional]
**documentation** | [**Array<InlineResponseDefaultLinksNext>**](InlineResponseDefaultLinksNext.md) | | [optional]
**_next** | [**Array<InlineResponseDefaultLinksNext>**](InlineResponseDefaultLinksNext.md) | | [optional]
**_self** | [**TmsV1InstrumentIdentifiersPost200ResponseLinksSelf**](TmsV1InstrumentIdentifiersPost200ResponseLinksSelf.md) | | [optional]
**ancestor** | [**TmsV1InstrumentIdentifiersPost200ResponseLinksSelf**](TmsV1InstrumentIdentifiersPost200ResponseLinksSelf.md) | | [optional]
**successor** | [**TmsV1InstrumentIdentifiersPost200ResponseLinksSelf**](TmsV1InstrumentIdentifiersPost200ResponseLinksSelf.md) | | [optional]


4 changes: 2 additions & 2 deletions docs/PaymentsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ All URIs are relative to *https://apitest.cybersource.com*

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_payment**](PaymentsApi.md#create_payment) | **POST** /pts/v2/payments/ | Process a Payment
[**create_payment**](PaymentsApi.md#create_payment) | **POST** /pts/v2/payments | Process a Payment


# **create_payment**
Expand Down Expand Up @@ -50,7 +50,7 @@ No authorization required
### HTTP request headers

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



2 changes: 1 addition & 1 deletion docs/PayoutsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ No authorization required
### HTTP request headers

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



2 changes: 2 additions & 0 deletions docs/Ptsv2creditsProcessingInformation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ Name | Type | Description | Notes
**industry_data_type** | **String** | Flag that indicates that the transaction includes airline data or restaurant data. This field must be set to `airline` in order for airline data to be sent to the processor. For example, if this field is not set to airline or is not included in the request, CyberSource does not send airline data to the processor. You must set this field to `restaurant` in order for restaurant data to be sent to the processor. When this field is not set to restaurant or is not included in the request, CyberSource does not send restaurant data to the processor. Possible Values: - **airline** - **restaurant** | [optional]
**recurring_options** | [**Ptsv2paymentsidrefundsProcessingInformationRecurringOptions**](Ptsv2paymentsidrefundsProcessingInformationRecurringOptions.md) | | [optional]
**bank_transfer_options** | [**Ptsv2creditsProcessingInformationBankTransferOptions**](Ptsv2creditsProcessingInformationBankTransferOptions.md) | | [optional]
**purchase_options** | [**Ptsv2creditsProcessingInformationPurchaseOptions**](Ptsv2creditsProcessingInformationPurchaseOptions.md) | | [optional]
**electronic_benefits_transfer** | [**Ptsv2creditsProcessingInformationElectronicBenefitsTransfer**](Ptsv2creditsProcessingInformationElectronicBenefitsTransfer.md) | | [optional]


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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**category** | **String** | Flag that specifies the category for the EBT transaction. Possible values: - `CASH`: Cash benefits, which can be used to purchase any item at a participating retailer, as well as to obtain cash-back or make a cash withdrawal from a participating ATM. - `FOOD`: Food stamp benefits, which can be used only to purchase food items authorized by the USDA SNAP program. | [optional]


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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**is_electronic_benefits_transfer** | **BOOLEAN** | Flag that indicates that this transaction is an EBT transaction.Possible values: - **true** - **false** | [optional]


1 change: 1 addition & 0 deletions docs/Ptsv2paymentsOrderInformationAmountDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ Name | Type | Description | Notes
**service_fee_amount** | **String** | Service fee. Required for service fee transactions. | [optional]
**original_amount** | **String** | Amount in your original local pricing currency. This value cannot be negative. You can include a decimal point (.) in this field to denote the currency exponent, but you cannot include any other special characters. If needed, CyberSource truncates the amount to the correct number of decimal places. For details, see the `original_amount` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) | [optional]
**original_currency** | **String** | Your local pricing currency code. For the possible values, see the [ISO Standard Currency Codes.](http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf) For details, see `original_currency` field description in [Credit Card Services Using the SCMP API.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) For details about converting a foreign cardholder’s purchase from your local pricing currency to the cardholder’s billing currency, see the [Dynamic Currency Conversion with a Third Party Provider Guide.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm). | [optional]
**cashback_amount** | **String** | Cashback amount requested by the customer. If a cashback amount is included in the request, it must be included in the orderInformation.amountDetails.totalAmount value. | [optional]


2 changes: 1 addition & 1 deletion docs/Ptsv2paymentsOrderInformationLineItems.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
**product_code** | **String** | Type of product. This value is used to determine the category that the product is in: electronic, handling, physical, service, or shipping. The default value is **default**. If you are performing an authorization transaction (`processingOptions.capture` is set to `false`), and you set this field to a value other than default or any of the values related to shipping and handling, then the fields `quantity`, `productName`, and `productSku` are required. It can also have a value of \"gift_card\". For details, see the `product_code` field description in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) | [optional]
**product_name** | **String** | For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when `orderInformation.lineItems[].productCode` is not set to `default` or one of the other values that are related to shipping and/or handling. | [optional]
**product_sku** | **String** | Stock Keeping Unit (SKU) code for the product. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when _orderInformation.lineItems[].productCode_ is not set to **default** or one of the other values that are related to shipping and/or handling. | [optional]
**quantity** | **Float** | Number of units for this order. The default is `1`. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when _orderInformation.lineItems[].productCode_ is not set to **default** or one of the other values that are related to shipping and/or handling. When orderInformation.lineItems[].productCode is \"gift_card\", this is the total count of individual prepaid gift cards purchased. | [optional]
**quantity** | **Integer** | Number of units for this order. The default is `1`. For an authorization or capture transaction (`processingOptions.capture` is set to `true` or `false`), this field is required when _orderInformation.lineItems[].productCode_ is not set to **default** or one of the other values that are related to shipping and/or handling. When orderInformation.lineItems[].productCode is \"gift_card\", this is the total count of individual prepaid gift cards purchased. | [optional]
**unit_price** | **String** | Per-item price of the product. This value cannot be negative. You can include a decimal point (.), but you cannot include any other special characters. CyberSource truncates the amount to the correct number of decimal places. For processor-specific information, see the `amount` field description in [Credit Card Services Using the SCMP API.](http://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html) **Important** Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. See these guides for details: - [Merchant Descriptors Using the SCMP API Guide] (https://apps.cybersource.com/library/documentation/dev_guides/Merchant_Descriptors_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) - \"Capture Information for Specific Processors\" section in the [Credit Card Services Using the SCMP API Guide](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### DCC with a Third-Party Provider Set this field to the converted amount that was returned by the DCC provider. You must include either the 1st line item in the order and this field, or the request-level field `orderInformation.amountDetails.totalAmount` in your request. For details, see \"Dynamic Currency Conversion with a Third Party Provider\" in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### FDMS South If you accept IDR or CLP currencies, see the entry for FDMS South in the [Merchant Descriptors Using the SCMP API Guide.] (https://apps.cybersource.com/library/documentation/dev_guides/Merchant_Descriptors_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) #### Zero Amount Authorizations If your processor supports zero amount authorizations, you can set this field to 0 for the authorization to check if the card is lost or stolen. See \"Zero Amount Authorizations\" in the [Credit Card Services Using the SCMP API Guide.](https://apps.cybersource.com/library/documentation/dev_guides/CC_Svcs_SCMP_API/html/wwhelp/wwhimpl/js/html/wwhelp.htm) | [optional]
**unit_of_measure** | **String** | Unit of measure, or unit of measure code, for the item. | [optional]
**total_amount** | **String** | Total amount for the item. Normally calculated as the unit price times quantity. When `orderInformation.lineItems[].productCode` is \"gift_card\", this is the purchase amount total for prepaid gift cards in major units. Example: 123.45 USD = 123 | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/Ptsv2paymentsPaymentInformation.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ Name | Type | Description | Notes
**fluid_data** | [**Ptsv2paymentsPaymentInformationFluidData**](Ptsv2paymentsPaymentInformationFluidData.md) | | [optional]
**customer** | [**Ptsv2paymentsPaymentInformationCustomer**](Ptsv2paymentsPaymentInformationCustomer.md) | | [optional]
**bank** | [**Ptsv2paymentsPaymentInformationBank**](Ptsv2paymentsPaymentInformationBank.md) | | [optional]
**payment_type** | [**Ptsv2paymentsPaymentInformationPaymentType**](Ptsv2paymentsPaymentInformationPaymentType.md) | | [optional]


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

## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | A Payment Type is an agreed means for a payee to receive legal tender from a payer. The way one pays for a commercial financial transaction. Examples: Card, Bank Transfer, Digital, Direct Debit. Possible values: - `CARD` (use this for a PIN debit transaction) | [optional]
**sub_type_name** | **String** | SubType Name is detail information about Payment Type. Examples: For Card, if Credit or Debit or PrePaid. For Bank Transfer, if Online Bank Transfer or Wire Transfers. - `DEBIT` (use this for a PIN debit transaction) | [optional]
**method** | [**Ptsv2paymentsPaymentInformationPaymentTypeMethod**](Ptsv2paymentsPaymentInformationPaymentTypeMethod.md) | | [optional]


Loading