diff --git a/cybersource_rest_client.gemspec b/cybersource_rest_client.gemspec index 1829165c..58edc64d 100644 --- a/cybersource_rest_client.gemspec +++ b/cybersource_rest_client.gemspec @@ -17,7 +17,7 @@ require "cybersource_rest_client/version" Gem::Specification.new do |s| s.name = "cybersource_rest_client" - s.version = "0.0.73" + s.version = "0.0.74" s.platform = Gem::Platform::RUBY s.authors = ["CyberSource"] s.email = ["cybersourcedev@gmail.com"] diff --git a/docs/BatchesApi.md b/docs/BatchesApi.md index 85fff250..e684544c 100644 --- a/docs/BatchesApi.md +++ b/docs/BatchesApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description # **get_batch_report** -> InlineResponse2009 get_batch_report(batch_id) +> InlineResponse20010 get_batch_report(batch_id) Retrieve a Batch Report @@ -44,7 +44,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2009**](InlineResponse2009.md) +[**InlineResponse20010**](InlineResponse20010.md) ### Authorization @@ -58,7 +58,7 @@ No authorization required # **get_batch_status** -> InlineResponse2008 get_batch_status(batch_id) +> InlineResponse2009 get_batch_status(batch_id) Retrieve a Batch Status @@ -91,7 +91,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2008**](InlineResponse2008.md) +[**InlineResponse2009**](InlineResponse2009.md) ### Authorization @@ -105,7 +105,7 @@ No authorization required # **get_batches_list** -> InlineResponse2007 get_batches_list(opts) +> InlineResponse2008 get_batches_list(opts) List Batches @@ -145,7 +145,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2007**](InlineResponse2007.md) +[**InlineResponse2008**](InlineResponse2008.md) ### Authorization diff --git a/docs/DeAssociationRequestBody.md b/docs/DeAssociationRequestBody.md new file mode 100644 index 00000000..dfb13ea9 --- /dev/null +++ b/docs/DeAssociationRequestBody.md @@ -0,0 +1,8 @@ +# CyberSource::DeAssociationRequestBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**device_id** | **String** | UUID of the device which needs to be de-associated | [optional] + + diff --git a/docs/DeviceDeAssociationApi.md b/docs/DeviceDeAssociationApi.md new file mode 100644 index 00000000..15708f0b --- /dev/null +++ b/docs/DeviceDeAssociationApi.md @@ -0,0 +1,103 @@ +# CyberSource::DeviceDeAssociationApi + +All URIs are relative to *https://apitest.cybersource.com* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**delete_terminal_association**](DeviceDeAssociationApi.md#delete_terminal_association) | **PATCH** /dms/v2/devices/deassociate | De-associate a device from merchant or account V2 +[**post_de_associate_v3_terminal**](DeviceDeAssociationApi.md#post_de_associate_v3_terminal) | **POST** /dms/v3/devices/deassociate | De-associate a device from merchant to account or reseller and from account to reseller + + +# **delete_terminal_association** +> delete_terminal_association(de_association_request_body) + +De-associate a device from merchant or account V2 + +The current association of the device will be removed and will be assigned back to parent in the hierarchy based on internal logic + +### Example +```ruby +# load the gem +require 'cybersource_rest_client' + +api_instance = CyberSource::DeviceDeAssociationApi.new + +de_association_request_body = CyberSource::DeAssociationRequestBody.new # DeAssociationRequestBody | de association of the deviceId in the request body. + + +begin + #De-associate a device from merchant or account V2 + api_instance.delete_terminal_association(de_association_request_body) +rescue CyberSource::ApiError => e + puts "Exception when calling DeviceDeAssociationApi->delete_terminal_association: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **de_association_request_body** | [**DeAssociationRequestBody**](DeAssociationRequestBody.md)| de association of the deviceId in the request body. | + +### Return type + +nil (empty response body) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=UTF-8 + - **Accept**: application/hal+json;charset=utf-8 + + + +# **post_de_associate_v3_terminal** +> Array<InlineResponse2006> post_de_associate_v3_terminal(device_de_associate_v3_request) + +De-associate a device from merchant to account or reseller and from account to reseller + +A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user. + +### Example +```ruby +# load the gem +require 'cybersource_rest_client' + +api_instance = CyberSource::DeviceDeAssociationApi.new + +device_de_associate_v3_request = [CyberSource::DeviceDeAssociateV3Request.new] # Array | deviceId that has to be de-associated to the destination organizationId. + + +begin + #De-associate a device from merchant to account or reseller and from account to reseller + result = api_instance.post_de_associate_v3_terminal(device_de_associate_v3_request) + p result +rescue CyberSource::ApiError => e + puts "Exception when calling DeviceDeAssociationApi->post_de_associate_v3_terminal: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **device_de_associate_v3_request** | [**Array<DeviceDeAssociateV3Request>**](DeviceDeAssociateV3Request.md)| deviceId that has to be de-associated to the destination organizationId. | + +### Return type + +[**Array<InlineResponse2006>**](InlineResponse2006.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=UTF-8 + - **Accept**: application/json;charset=UTF-8 + + + diff --git a/docs/DeviceDeAssociationV3Api.md b/docs/DeviceDeAssociationV3Api.md deleted file mode 100644 index a0d28500..00000000 --- a/docs/DeviceDeAssociationV3Api.md +++ /dev/null @@ -1,56 +0,0 @@ -# CyberSource::DeviceDeAssociationV3Api - -All URIs are relative to *https://apitest.cybersource.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**post_de_associate_v3_terminal**](DeviceDeAssociationV3Api.md#post_de_associate_v3_terminal) | **POST** /dms/v3/devices/deassociate | De-associate a device from merchant to account or reseller and from account to reseller V3 - - -# **post_de_associate_v3_terminal** -> Array<InlineResponse2005> post_de_associate_v3_terminal(device_de_associate_v3_request) - -De-associate a device from merchant to account or reseller and from account to reseller V3 - -A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user. - -### Example -```ruby -# load the gem -require 'cybersource_rest_client' - -api_instance = CyberSource::DeviceDeAssociationV3Api.new - -device_de_associate_v3_request = [CyberSource::DeviceDeAssociateV3Request.new] # Array | deviceId that has to be de-associated to the destination organizationId. - - -begin - #De-associate a device from merchant to account or reseller and from account to reseller V3 - result = api_instance.post_de_associate_v3_terminal(device_de_associate_v3_request) - p result -rescue CyberSource::ApiError => e - puts "Exception when calling DeviceDeAssociationV3Api->post_de_associate_v3_terminal: #{e}" -end -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **device_de_associate_v3_request** | [**Array<DeviceDeAssociateV3Request>**](DeviceDeAssociateV3Request.md)| deviceId that has to be de-associated to the destination organizationId. | - -### Return type - -[**Array<InlineResponse2005>**](InlineResponse2005.md) - -### Authorization - -No authorization required - -### HTTP request headers - - - **Content-Type**: application/json;charset=UTF-8 - - **Accept**: application/json;charset=UTF-8 - - - diff --git a/docs/DeviceSearchApi.md b/docs/DeviceSearchApi.md index 5f2f2c39..7ad69796 100644 --- a/docs/DeviceSearchApi.md +++ b/docs/DeviceSearchApi.md @@ -4,13 +4,61 @@ All URIs are relative to *https://apitest.cybersource.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**post_search_query_v3**](DeviceSearchApi.md#post_search_query_v3) | **POST** /dms/v3/devices/search | Retrieve List of Devices for a given search query V3 +[**post_search_query**](DeviceSearchApi.md#post_search_query) | **POST** /dms/v2/devices/search | Retrieve List of Devices for a given search query V2 +[**post_search_query_v3**](DeviceSearchApi.md#post_search_query_v3) | **POST** /dms/v3/devices/search | Retrieve List of Devices for a given search query + + +# **post_search_query** +> InlineResponse2005 post_search_query(post_device_search_request) + +Retrieve List of Devices for a given search query V2 + +Retrieves list of terminals in paginated format. + +### Example +```ruby +# load the gem +require 'cybersource_rest_client' + +api_instance = CyberSource::DeviceSearchApi.new + +post_device_search_request = CyberSource::PostDeviceSearchRequest.new # PostDeviceSearchRequest | + + +begin + #Retrieve List of Devices for a given search query V2 + result = api_instance.post_search_query(post_device_search_request) + p result +rescue CyberSource::ApiError => e + puts "Exception when calling DeviceSearchApi->post_search_query: #{e}" +end +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **post_device_search_request** | [**PostDeviceSearchRequest**](PostDeviceSearchRequest.md)| | + +### Return type + +[**InlineResponse2005**](InlineResponse2005.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json;charset=UTF-8 + - **Accept**: application/json;charset=UTF-8 + # **post_search_query_v3** -> InlineResponse2006 post_search_query_v3(post_device_search_request_v3) +> InlineResponse2007 post_search_query_v3(post_device_search_request_v3) -Retrieve List of Devices for a given search query V3 +Retrieve List of Devices for a given search query Search for devices matching a given search query. The search query supports serialNumber, readerId, terminalId, status, statusChangeReason or organizationId Matching results are paginated. @@ -25,7 +73,7 @@ post_device_search_request_v3 = CyberSource::PostDeviceSearchRequestV3.new # Pos begin - #Retrieve List of Devices for a given search query V3 + #Retrieve List of Devices for a given search query result = api_instance.post_search_query_v3(post_device_search_request_v3) p result rescue CyberSource::ApiError => e @@ -41,7 +89,7 @@ Name | Type | Description | Notes ### Return type -[**InlineResponse2006**](InlineResponse2006.md) +[**InlineResponse2007**](InlineResponse2007.md) ### Authorization diff --git a/docs/GenerateCaptureContextRequest.md b/docs/GenerateCaptureContextRequest.md index f94c3bb3..d164bae9 100644 --- a/docs/GenerateCaptureContextRequest.md +++ b/docs/GenerateCaptureContextRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **client_version** | **String** | Specify the version of Microform that you want to use. | [optional] **target_origins** | **Array<String>** | The [target origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the website on which you will be launching Microform is defined by the scheme (protocol), hostname (domain) and port number (if used). You must use https://hostname (unless you use http://localhost) Wildcards are NOT supported. Ensure that subdomains are included. Any valid top-level domain is supported (e.g. .com, .co.uk, .gov.br etc) Examples: - https://example.com - https://subdomain.example.com - https://example.com:8080<br><br> If you are embedding within multiple nested iframes you need to specify the origins of all the browser contexts used, for example: targetOrigins: [ \"https://example.com\", \"https://basket.example.com\", \"https://ecom.example.com\" ]<br><br> You can supply up to nine origins within the targetOrigins field for nested iframes. If the list of origins exceeds five ensure that you: - Compare the list of origins in the v2/sessions targetOrigins field against the location.ancestorOrigins of the browser. - Ensure that the count of origins and their content matches in both. If any origins are absent or mismatched, the system will prevent Microform from loading and display a client-side error message. | [optional] -**allowed_card_networks** | **Array<String>** | The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA **Important:** - When integrating Microform (Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request. - When integrating Microform (ACH/eCheck) the allowedCardNetworks field is not required in the capture context request. - When integrating both Microform (Card) and Microform (ACH/eCheck) at least one card network should be specified in the allowedCardNetworks field in the capture context request. | [optional] +**allowed_card_networks** | **Array<String>** | The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA - PAYPAK **Important:** - When integrating Microform (Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request. - When integrating Microform (ACH/eCheck) the allowedCardNetworks field is not required in the capture context request. - When integrating both Microform (Card) and Microform (ACH/eCheck) at least one card network should be specified in the allowedCardNetworks field in the capture context request. | [optional] **allowed_payment_types** | **Array<String>** | The payment types that are allowed for the merchant. Possible values when launching Microform: - CARD - CHECK <br><br> | [optional] **transient_token_response_options** | [**Microformv2sessionsTransientTokenResponseOptions**](Microformv2sessionsTransientTokenResponseOptions.md) | | [optional] diff --git a/docs/GenerateUnifiedCheckoutCaptureContextRequest.md b/docs/GenerateUnifiedCheckoutCaptureContextRequest.md index 350a83c9..00b6f55f 100644 --- a/docs/GenerateUnifiedCheckoutCaptureContextRequest.md +++ b/docs/GenerateUnifiedCheckoutCaptureContextRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **client_version** | **String** | Specify the version of Unified Checkout that you want to use. | [optional] **target_origins** | **Array<String>** | The [target origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the website on which you will be launching Unified Checkout is defined by the scheme (protocol), hostname (domain) and port number (if used). You must use https://hostname (unless you use http://localhost) Wildcards are NOT supported. Ensure that subdomains are included. Any valid top-level domain is supported (e.g. .com, .co.uk, .gov.br etc) Examples: - https://example.com - https://subdomain.example.com - https://example.com:8080<br><br> If you are embedding within multiple nested iframes you need to specify the origins of all the browser contexts used, for example: targetOrigins: [ \"https://example.com\", \"https://basket.example.com\", \"https://ecom.example.com\" ] | [optional] -**allowed_card_networks** | **Array<String>** | The list of card networks you want to use for this Unified Checkout transaction. Unified Checkout currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA | [optional] -**allowed_payment_types** | **Array<String>** | The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE <br><br> Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY <br><br> **Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.<br><br> **Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay. | [optional] +**allowed_card_networks** | **Array<String>** | The list of card networks you want to use for this Unified Checkout transaction. Unified Checkout currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA - PAYPAK | [optional] +**allowed_payment_types** | **Array<String>** | The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE <br><br> Unified Checkout also supports the following Alternative Payments: - AFTERPAY<br><br> Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY <br><br> **Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.<br><br> **Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.<br><br> **Managing Google Pay Authentication Types** Where Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". This is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\". - UAE - Argentina - Brazil - Chile - Colombia - Kuwait - Mexico - Peru - Qatar - Saudi Arabia - Ukraine - South Africa<br><br> If false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry. | [optional] **country** | **String** | Country the purchase is originating from (e.g. country of the merchant). Use the two-character ISO Standard | [optional] **locale** | **String** | Localization of the User experience conforming to the ISO 639-1 language standards and two-character ISO Standard Country Code. Please refer to list of [supported locales through Unified Checkout](https://developer.cybersource.com/docs/cybs/en-us/unified-checkout/developer/all/rest/unified-checkout/uc-appendix-languages.html) | [optional] **capture_mandate** | [**Upv1capturecontextsCaptureMandate**](Upv1capturecontextsCaptureMandate.md) | | [optional] diff --git a/docs/GetSubscriptionResponse.md b/docs/GetSubscriptionResponse.md index 453bf3f7..ff7876c6 100644 --- a/docs/GetSubscriptionResponse.md +++ b/docs/GetSubscriptionResponse.md @@ -10,5 +10,6 @@ Name | Type | Description | Notes **subscription_information** | [**GetAllSubscriptionsResponseSubscriptionInformation**](GetAllSubscriptionsResponseSubscriptionInformation.md) | | [optional] **payment_information** | [**GetAllSubscriptionsResponsePaymentInformation**](GetAllSubscriptionsResponsePaymentInformation.md) | | [optional] **order_information** | [**GetAllSubscriptionsResponseOrderInformation**](GetAllSubscriptionsResponseOrderInformation.md) | | [optional] +**reactivation_information** | [**GetSubscriptionResponseReactivationInformation**](GetSubscriptionResponseReactivationInformation.md) | | [optional] diff --git a/docs/GetSubscriptionResponseReactivationInformation.md b/docs/GetSubscriptionResponseReactivationInformation.md new file mode 100644 index 00000000..11cc06ce --- /dev/null +++ b/docs/GetSubscriptionResponseReactivationInformation.md @@ -0,0 +1,9 @@ +# CyberSource::GetSubscriptionResponseReactivationInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**skipped_payments_count** | **String** | Number of payments that should have occurred while the subscription was in a suspended status. | [optional] +**skipped_payments_total_amount** | **String** | Total amount that will be charged upon reactivation if `processSkippedPayments` is set to `true`. | [optional] + + diff --git a/docs/InlineResponse20010.md b/docs/InlineResponse20010.md new file mode 100644 index 00000000..57338966 --- /dev/null +++ b/docs/InlineResponse20010.md @@ -0,0 +1,17 @@ +# CyberSource::InlineResponse20010 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**version** | **String** | | [optional] +**report_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] +**batch_id** | **String** | Unique identification number assigned to the submitted request. | [optional] +**batch_source** | **String** | Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE | [optional] +**batch_ca_endpoints** | **String** | | [optional] +**batch_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] +**merchant_reference** | **String** | Reference used by merchant to identify batch. | [optional] +**totals** | [**InlineResponse2008EmbeddedTotals**](InlineResponse2008EmbeddedTotals.md) | | [optional] +**billing** | [**InlineResponse2009Billing**](InlineResponse2009Billing.md) | | [optional] +**records** | [**Array<InlineResponse20010Records>**](InlineResponse20010Records.md) | | [optional] + + diff --git a/docs/InlineResponse20010Records.md b/docs/InlineResponse20010Records.md new file mode 100644 index 00000000..ef9f3b75 --- /dev/null +++ b/docs/InlineResponse20010Records.md @@ -0,0 +1,10 @@ +# CyberSource::InlineResponse20010Records + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | | [optional] +**source_record** | [**InlineResponse20010SourceRecord**](InlineResponse20010SourceRecord.md) | | [optional] +**response_record** | [**InlineResponse20010ResponseRecord**](InlineResponse20010ResponseRecord.md) | | [optional] + + diff --git a/docs/InlineResponse2009ResponseRecord.md b/docs/InlineResponse20010ResponseRecord.md similarity index 75% rename from docs/InlineResponse2009ResponseRecord.md rename to docs/InlineResponse20010ResponseRecord.md index e21a4e79..c858a475 100644 --- a/docs/InlineResponse2009ResponseRecord.md +++ b/docs/InlineResponse20010ResponseRecord.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2009ResponseRecord +# CyberSource::InlineResponse20010ResponseRecord ## Properties Name | Type | Description | Notes @@ -12,6 +12,6 @@ Name | Type | Description | Notes **card_expiry_month** | **String** | | [optional] **card_expiry_year** | **String** | | [optional] **card_type** | **String** | | [optional] -**additional_updates** | [**Array<InlineResponse2009ResponseRecordAdditionalUpdates>**](InlineResponse2009ResponseRecordAdditionalUpdates.md) | | [optional] +**additional_updates** | [**Array<InlineResponse20010ResponseRecordAdditionalUpdates>**](InlineResponse20010ResponseRecordAdditionalUpdates.md) | | [optional] diff --git a/docs/InlineResponse2009ResponseRecordAdditionalUpdates.md b/docs/InlineResponse20010ResponseRecordAdditionalUpdates.md similarity index 85% rename from docs/InlineResponse2009ResponseRecordAdditionalUpdates.md rename to docs/InlineResponse20010ResponseRecordAdditionalUpdates.md index 889c1648..c7bf5890 100644 --- a/docs/InlineResponse2009ResponseRecordAdditionalUpdates.md +++ b/docs/InlineResponse20010ResponseRecordAdditionalUpdates.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2009ResponseRecordAdditionalUpdates +# CyberSource::InlineResponse20010ResponseRecordAdditionalUpdates ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2009SourceRecord.md b/docs/InlineResponse20010SourceRecord.md similarity index 91% rename from docs/InlineResponse2009SourceRecord.md rename to docs/InlineResponse20010SourceRecord.md index 9a3416fd..a6f1a4ab 100644 --- a/docs/InlineResponse2009SourceRecord.md +++ b/docs/InlineResponse20010SourceRecord.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2009SourceRecord +# CyberSource::InlineResponse20010SourceRecord ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2005.md b/docs/InlineResponse2005.md index 69e217d8..6d713201 100644 --- a/docs/InlineResponse2005.md +++ b/docs/InlineResponse2005.md @@ -3,7 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**status** | **String** | Possible values: - OK | [optional] -**devices** | [**Array<Dmsv3devicesdeassociateDevices>**](Dmsv3devicesdeassociateDevices.md) | | [optional] +**total_count** | **Integer** | Total number of results. | [optional] +**offset** | **Integer** | Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. | [optional] +**limit** | **Integer** | Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. | [optional] +**sort** | **String** | A comma separated list of the following form: `submitTimeUtc:desc` | [optional] +**count** | **Integer** | Results for this page, this could be below the limit. | [optional] +**devices** | [**Array<InlineResponse2005Devices>**](InlineResponse2005Devices.md) | A collection of devices | [optional] diff --git a/docs/InlineResponse2005Devices.md b/docs/InlineResponse2005Devices.md new file mode 100644 index 00000000..664f03c6 --- /dev/null +++ b/docs/InlineResponse2005Devices.md @@ -0,0 +1,16 @@ +# CyberSource::InlineResponse2005Devices + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reader_id** | **String** | | [optional] +**terminal_serial_number** | **String** | | [optional] +**terminal_id** | **String** | | [optional] +**model** | **String** | | [optional] +**make** | **String** | | [optional] +**hardware_revision** | **String** | | [optional] +**status** | **String** | Status of the device. Possible Values: - 'ACTIVE' - 'INACTIVE' | [optional] +**creation_date** | **String** | | [optional] +**pin** | **String** | | [optional] + + diff --git a/docs/InlineResponse2006.md b/docs/InlineResponse2006.md index 7f6c03c3..b6e2c295 100644 --- a/docs/InlineResponse2006.md +++ b/docs/InlineResponse2006.md @@ -3,11 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**total_count** | **Integer** | Total number of results. | [optional] -**offset** | **Integer** | Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. | [optional] -**limit** | **Integer** | Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. | [optional] -**sort** | **String** | A comma separated list of the following form: `terminalCreationDate:desc or serialNumber or terminalUpdationDate` | [optional] -**count** | **Integer** | Results for this page, this could be below the limit. | [optional] -**devices** | [**Array<InlineResponse2006Devices>**](InlineResponse2006Devices.md) | A collection of devices | [optional] +**status** | **String** | Possible values: - OK | [optional] +**devices** | [**Array<Dmsv3devicesdeassociateDevices>**](Dmsv3devicesdeassociateDevices.md) | | [optional] diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md index a9715ab6..3f41995f 100644 --- a/docs/InlineResponse2007.md +++ b/docs/InlineResponse2007.md @@ -3,12 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**Array<InlineResponse2007Links>**](InlineResponse2007Links.md) | | [optional] -**object** | **String** | | [optional] -**offset** | **Integer** | | [optional] -**limit** | **Integer** | | [optional] -**count** | **Integer** | | [optional] -**total** | **Integer** | | [optional] -**_embedded** | [**InlineResponse2007Embedded**](InlineResponse2007Embedded.md) | | [optional] +**total_count** | **Integer** | Total number of results. | [optional] +**offset** | **Integer** | Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. | [optional] +**limit** | **Integer** | Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. | [optional] +**sort** | **String** | A comma separated list of the following form: `terminalCreationDate:desc or serialNumber or terminalUpdationDate` | [optional] +**count** | **Integer** | Results for this page, this could be below the limit. | [optional] +**devices** | [**Array<InlineResponse2007Devices>**](InlineResponse2007Devices.md) | A collection of devices | [optional] diff --git a/docs/InlineResponse2006Devices.md b/docs/InlineResponse2007Devices.md similarity index 85% rename from docs/InlineResponse2006Devices.md rename to docs/InlineResponse2007Devices.md index 1e4ada64..662ae960 100644 --- a/docs/InlineResponse2006Devices.md +++ b/docs/InlineResponse2007Devices.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2006Devices +# CyberSource::InlineResponse2007Devices ## Properties Name | Type | Description | Notes @@ -14,6 +14,6 @@ Name | Type | Description | Notes **account_id** | **String** | ID of the account to whom the device assigned. | [optional] **terminal_creation_date** | **DateTime** | Timestamp in which the device was created. | [optional] **terminal_updation_date** | **DateTime** | Timestamp in which the device was updated/modified. | [optional] -**payment_processor_to_terminal_map** | [**InlineResponse2006PaymentProcessorToTerminalMap**](InlineResponse2006PaymentProcessorToTerminalMap.md) | | [optional] +**payment_processor_to_terminal_map** | [**InlineResponse2007PaymentProcessorToTerminalMap**](InlineResponse2007PaymentProcessorToTerminalMap.md) | | [optional] diff --git a/docs/InlineResponse2007Embedded.md b/docs/InlineResponse2007Embedded.md deleted file mode 100644 index 33845d09..00000000 --- a/docs/InlineResponse2007Embedded.md +++ /dev/null @@ -1,8 +0,0 @@ -# CyberSource::InlineResponse2007Embedded - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**batches** | [**Array<InlineResponse2007EmbeddedBatches>**](InlineResponse2007EmbeddedBatches.md) | | [optional] - - diff --git a/docs/InlineResponse2007EmbeddedLinks.md b/docs/InlineResponse2007EmbeddedLinks.md deleted file mode 100644 index df6e0592..00000000 --- a/docs/InlineResponse2007EmbeddedLinks.md +++ /dev/null @@ -1,8 +0,0 @@ -# CyberSource::InlineResponse2007EmbeddedLinks - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reports** | [**Array<InlineResponse2007EmbeddedLinksReports>**](InlineResponse2007EmbeddedLinksReports.md) | | [optional] - - diff --git a/docs/InlineResponse2007Links.md b/docs/InlineResponse2007Links.md deleted file mode 100644 index 5dea921d..00000000 --- a/docs/InlineResponse2007Links.md +++ /dev/null @@ -1,9 +0,0 @@ -# CyberSource::InlineResponse2007Links - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rel** | **String** | Valid Values: * self * first * last * prev * next | [optional] -**href** | **String** | | [optional] - - diff --git a/docs/InlineResponse2006PaymentProcessorToTerminalMap.md b/docs/InlineResponse2007PaymentProcessorToTerminalMap.md similarity index 76% rename from docs/InlineResponse2006PaymentProcessorToTerminalMap.md rename to docs/InlineResponse2007PaymentProcessorToTerminalMap.md index 2af38545..8ed85b75 100644 --- a/docs/InlineResponse2006PaymentProcessorToTerminalMap.md +++ b/docs/InlineResponse2007PaymentProcessorToTerminalMap.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2006PaymentProcessorToTerminalMap +# CyberSource::InlineResponse2007PaymentProcessorToTerminalMap ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md index 50e979f5..ccac490e 100644 --- a/docs/InlineResponse2008.md +++ b/docs/InlineResponse2008.md @@ -3,15 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**InlineResponse2008Links**](InlineResponse2008Links.md) | | [optional] -**batch_id** | **String** | Unique identification number assigned to the submitted request. | [optional] -**batch_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] -**batch_source** | **String** | Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE | [optional] -**merchant_reference** | **String** | Reference used by merchant to identify batch. | [optional] -**batch_ca_endpoints** | **String** | | [optional] -**status** | **String** | Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED | [optional] -**totals** | [**InlineResponse2007EmbeddedTotals**](InlineResponse2007EmbeddedTotals.md) | | [optional] -**billing** | [**InlineResponse2008Billing**](InlineResponse2008Billing.md) | | [optional] -**description** | **String** | | [optional] +**_links** | [**Array<InlineResponse2008Links>**](InlineResponse2008Links.md) | | [optional] +**object** | **String** | | [optional] +**offset** | **Integer** | | [optional] +**limit** | **Integer** | | [optional] +**count** | **Integer** | | [optional] +**total** | **Integer** | | [optional] +**_embedded** | [**InlineResponse2008Embedded**](InlineResponse2008Embedded.md) | | [optional] diff --git a/docs/InlineResponse2008Embedded.md b/docs/InlineResponse2008Embedded.md new file mode 100644 index 00000000..b71af438 --- /dev/null +++ b/docs/InlineResponse2008Embedded.md @@ -0,0 +1,8 @@ +# CyberSource::InlineResponse2008Embedded + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**batches** | [**Array<InlineResponse2008EmbeddedBatches>**](InlineResponse2008EmbeddedBatches.md) | | [optional] + + diff --git a/docs/InlineResponse2007EmbeddedBatches.md b/docs/InlineResponse2008EmbeddedBatches.md similarity index 80% rename from docs/InlineResponse2007EmbeddedBatches.md rename to docs/InlineResponse2008EmbeddedBatches.md index ebcf788f..2e43c13e 100644 --- a/docs/InlineResponse2007EmbeddedBatches.md +++ b/docs/InlineResponse2008EmbeddedBatches.md @@ -1,9 +1,9 @@ -# CyberSource::InlineResponse2007EmbeddedBatches +# CyberSource::InlineResponse2008EmbeddedBatches ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_links** | [**InlineResponse2007EmbeddedLinks**](InlineResponse2007EmbeddedLinks.md) | | [optional] +**_links** | [**InlineResponse2008EmbeddedLinks**](InlineResponse2008EmbeddedLinks.md) | | [optional] **batch_id** | **String** | Unique identification number assigned to the submitted request. | [optional] **batch_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] **batch_modified_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] @@ -12,6 +12,6 @@ Name | Type | Description | Notes **merchant_reference** | **String** | Reference used by merchant to identify batch. | [optional] **batch_ca_endpoints** | **Array<String>** | Valid Values: * VISA * MASTERCARD * AMEX | [optional] **status** | **String** | Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETE | [optional] -**totals** | [**InlineResponse2007EmbeddedTotals**](InlineResponse2007EmbeddedTotals.md) | | [optional] +**totals** | [**InlineResponse2008EmbeddedTotals**](InlineResponse2008EmbeddedTotals.md) | | [optional] diff --git a/docs/InlineResponse2008EmbeddedLinks.md b/docs/InlineResponse2008EmbeddedLinks.md new file mode 100644 index 00000000..f4e5d7a5 --- /dev/null +++ b/docs/InlineResponse2008EmbeddedLinks.md @@ -0,0 +1,8 @@ +# CyberSource::InlineResponse2008EmbeddedLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**reports** | [**Array<InlineResponse2008EmbeddedLinksReports>**](InlineResponse2008EmbeddedLinksReports.md) | | [optional] + + diff --git a/docs/InlineResponse2007EmbeddedLinksReports.md b/docs/InlineResponse2008EmbeddedLinksReports.md similarity index 73% rename from docs/InlineResponse2007EmbeddedLinksReports.md rename to docs/InlineResponse2008EmbeddedLinksReports.md index 039fbdd7..3196a498 100644 --- a/docs/InlineResponse2007EmbeddedLinksReports.md +++ b/docs/InlineResponse2008EmbeddedLinksReports.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2007EmbeddedLinksReports +# CyberSource::InlineResponse2008EmbeddedLinksReports ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2007EmbeddedTotals.md b/docs/InlineResponse2008EmbeddedTotals.md similarity index 88% rename from docs/InlineResponse2007EmbeddedTotals.md rename to docs/InlineResponse2008EmbeddedTotals.md index 30aaedf0..61445806 100644 --- a/docs/InlineResponse2007EmbeddedTotals.md +++ b/docs/InlineResponse2008EmbeddedTotals.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2007EmbeddedTotals +# CyberSource::InlineResponse2008EmbeddedTotals ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2008Links.md b/docs/InlineResponse2008Links.md index 6ee89143..a4b3beb8 100644 --- a/docs/InlineResponse2008Links.md +++ b/docs/InlineResponse2008Links.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**_self** | [**InlineResponse202LinksStatus**](InlineResponse202LinksStatus.md) | | [optional] -**report** | [**Array<InlineResponse2008LinksReport>**](InlineResponse2008LinksReport.md) | | [optional] +**rel** | **String** | Valid Values: * self * first * last * prev * next | [optional] +**href** | **String** | | [optional] diff --git a/docs/InlineResponse2009.md b/docs/InlineResponse2009.md index 71146b3e..1326bd78 100644 --- a/docs/InlineResponse2009.md +++ b/docs/InlineResponse2009.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**version** | **String** | | [optional] -**report_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] +**_links** | [**InlineResponse2009Links**](InlineResponse2009Links.md) | | [optional] **batch_id** | **String** | Unique identification number assigned to the submitted request. | [optional] -**batch_source** | **String** | Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE | [optional] -**batch_ca_endpoints** | **String** | | [optional] **batch_created_date** | **String** | ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ | [optional] +**batch_source** | **String** | Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE | [optional] **merchant_reference** | **String** | Reference used by merchant to identify batch. | [optional] -**totals** | [**InlineResponse2007EmbeddedTotals**](InlineResponse2007EmbeddedTotals.md) | | [optional] -**billing** | [**InlineResponse2008Billing**](InlineResponse2008Billing.md) | | [optional] -**records** | [**Array<InlineResponse2009Records>**](InlineResponse2009Records.md) | | [optional] +**batch_ca_endpoints** | **String** | | [optional] +**status** | **String** | Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED | [optional] +**totals** | [**InlineResponse2008EmbeddedTotals**](InlineResponse2008EmbeddedTotals.md) | | [optional] +**billing** | [**InlineResponse2009Billing**](InlineResponse2009Billing.md) | | [optional] +**description** | **String** | | [optional] diff --git a/docs/InlineResponse2008Billing.md b/docs/InlineResponse2009Billing.md similarity index 86% rename from docs/InlineResponse2008Billing.md rename to docs/InlineResponse2009Billing.md index e310abbf..eb0910e2 100644 --- a/docs/InlineResponse2008Billing.md +++ b/docs/InlineResponse2009Billing.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2008Billing +# CyberSource::InlineResponse2009Billing ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2009Links.md b/docs/InlineResponse2009Links.md new file mode 100644 index 00000000..d5e5138d --- /dev/null +++ b/docs/InlineResponse2009Links.md @@ -0,0 +1,9 @@ +# CyberSource::InlineResponse2009Links + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**_self** | [**InlineResponse202LinksStatus**](InlineResponse202LinksStatus.md) | | [optional] +**report** | [**Array<InlineResponse2009LinksReport>**](InlineResponse2009LinksReport.md) | | [optional] + + diff --git a/docs/InlineResponse2008LinksReport.md b/docs/InlineResponse2009LinksReport.md similarity index 77% rename from docs/InlineResponse2008LinksReport.md rename to docs/InlineResponse2009LinksReport.md index be16da92..32df2867 100644 --- a/docs/InlineResponse2008LinksReport.md +++ b/docs/InlineResponse2009LinksReport.md @@ -1,4 +1,4 @@ -# CyberSource::InlineResponse2008LinksReport +# CyberSource::InlineResponse2009LinksReport ## Properties Name | Type | Description | Notes diff --git a/docs/InlineResponse2009Records.md b/docs/InlineResponse2009Records.md deleted file mode 100644 index 66d45a70..00000000 --- a/docs/InlineResponse2009Records.md +++ /dev/null @@ -1,10 +0,0 @@ -# CyberSource::InlineResponse2009Records - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**source_record** | [**InlineResponse2009SourceRecord**](InlineResponse2009SourceRecord.md) | | [optional] -**response_record** | [**InlineResponse2009ResponseRecord**](InlineResponse2009ResponseRecord.md) | | [optional] - - diff --git a/docs/PaymentsProducts.md b/docs/PaymentsProducts.md index 737d675c..06c35385 100644 --- a/docs/PaymentsProducts.md +++ b/docs/PaymentsProducts.md @@ -20,7 +20,7 @@ Name | Type | Description | Notes **payouts** | [**PaymentsProductsPayouts**](PaymentsProductsPayouts.md) | | [optional] **differential_fee** | [**PaymentsProductsDifferentialFee**](PaymentsProductsDifferentialFee.md) | | [optional] **pay_by_link** | [**PaymentsProductsTax**](PaymentsProductsTax.md) | | [optional] -**unified_checkout** | [**PaymentsProductsTax**](PaymentsProductsTax.md) | | [optional] +**unified_checkout** | [**PaymentsProductsUnifiedCheckout**](PaymentsProductsUnifiedCheckout.md) | | [optional] **receivables_manager** | [**PaymentsProductsTax**](PaymentsProductsTax.md) | | [optional] **service_fee** | [**PaymentsProductsServiceFee**](PaymentsProductsServiceFee.md) | | [optional] diff --git a/docs/PaymentsProductsUnifiedCheckout.md b/docs/PaymentsProductsUnifiedCheckout.md new file mode 100644 index 00000000..30eb57f8 --- /dev/null +++ b/docs/PaymentsProductsUnifiedCheckout.md @@ -0,0 +1,9 @@ +# CyberSource::PaymentsProductsUnifiedCheckout + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**subscription_information** | [**PaymentsProductsUnifiedCheckoutSubscriptionInformation**](PaymentsProductsUnifiedCheckoutSubscriptionInformation.md) | | [optional] +**configuration_information** | [**PaymentsProductsUnifiedCheckoutConfigurationInformation**](PaymentsProductsUnifiedCheckoutConfigurationInformation.md) | | [optional] + + diff --git a/docs/PaymentsProductsUnifiedCheckoutConfigurationInformation.md b/docs/PaymentsProductsUnifiedCheckoutConfigurationInformation.md new file mode 100644 index 00000000..df2bd87a --- /dev/null +++ b/docs/PaymentsProductsUnifiedCheckoutConfigurationInformation.md @@ -0,0 +1,8 @@ +# CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**configurations** | [**PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations**](PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations.md) | | [optional] + + diff --git a/docs/PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations.md b/docs/PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations.md new file mode 100644 index 00000000..7197237a --- /dev/null +++ b/docs/PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations.md @@ -0,0 +1,8 @@ +# CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**features** | [**PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures**](PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures.md) | | [optional] + + diff --git a/docs/PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures.md b/docs/PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures.md new file mode 100644 index 00000000..2a7d0d8b --- /dev/null +++ b/docs/PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures.md @@ -0,0 +1,8 @@ +# CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**paze** | [**PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze**](PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze.md) | | [optional] + + diff --git a/docs/PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze.md b/docs/PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze.md new file mode 100644 index 00000000..41fed441 --- /dev/null +++ b/docs/PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze.md @@ -0,0 +1,10 @@ +# CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**financial_institution** | **String** | Indicates the financial institution with whom the contract has been signed Possible values: - BANKOFAMERICA - WELLSFARGO | [optional] +**financial_institution_contract** | **BOOLEAN** | Indicates if the contract has been signed with the selected bank | [optional] +**paze_enabled_in_profile** | **BOOLEAN** | Paze enabled in the profile for the merchants | [optional] + + diff --git a/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformation.md b/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformation.md new file mode 100644 index 00000000..8062e1a0 --- /dev/null +++ b/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformation.md @@ -0,0 +1,11 @@ +# CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformation + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **BOOLEAN** | | [optional] +**enablement_status** | **String** | Possible values: - PENDING - ENABLED_AND_USABLE - ENABLED_NOT_USABLE - DISABLED | [optional] [default to 'ENABLED_AND_USABLE'] +**self_serviceability** | **String** | Indicates if the organization can enable this product using self service. Possible values: - SELF_SERVICEABLE - NOT_SELF_SERVICEABLE - SELF_SERVICE_ONLY | [optional] [default to 'NOT_SELF_SERVICEABLE'] +**features** | [**PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures**](PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures.md) | | [optional] + + diff --git a/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures.md b/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures.md new file mode 100644 index 00000000..e14e1ab4 --- /dev/null +++ b/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures.md @@ -0,0 +1,8 @@ +# CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**paze_for_unified_checkout** | [**PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout**](PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout.md) | | [optional] + + diff --git a/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout.md b/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout.md new file mode 100644 index 00000000..495266a5 --- /dev/null +++ b/docs/PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout.md @@ -0,0 +1,8 @@ +# CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **BOOLEAN** | | [optional] + + diff --git a/docs/PostDeviceSearchRequest.md b/docs/PostDeviceSearchRequest.md new file mode 100644 index 00000000..bbd59d82 --- /dev/null +++ b/docs/PostDeviceSearchRequest.md @@ -0,0 +1,11 @@ +# CyberSource::PostDeviceSearchRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**query** | **String** | The Search Query to retrieve the Terminals(Example :- terminalSerialNumber:12345678 AND readerId:66c395ca-4f20-4b40-acac-5ff4c772d5f9 AND terminalId:T9KN88RTPE). Empty Query returns everything for the given organization. | [optional] +**sort** | **String** | The Sort Query to order the Terminals by. By Default, It is in ascending order of last update of a device. | [optional] +**offset** | **Integer** | The offset or page number. | [optional] +**limit** | **Integer** | Number of devices to retrieve in one request. | [optional] + + diff --git a/docs/Riskv1decisionsTravelInformationLegs.md b/docs/Riskv1decisionsTravelInformationLegs.md index 8c8ee76d..ea575538 100644 --- a/docs/Riskv1decisionsTravelInformationLegs.md +++ b/docs/Riskv1decisionsTravelInformationLegs.md @@ -7,5 +7,6 @@ Name | Type | Description | Notes **destination** | **String** | Use to specify the airport code for the destination of the leg of the trip, which is designated by the pound (#) symbol in the field name. This code is usually three digits long, for example: SFO = San Francisco. Do not use the colon (:) or the dash (-). For airport codes, see [IATA Airline and Airport Code Search](https://www.iata.org/publications/Pages/code-search.aspx). The leg number can be a positive integer from 0 to N. For example: `travelInformation.legs.0.destination=SFO` `travelInformation.legs.1.destination=SFO` **Note** In your request, send either the complete route or the individual legs (`legs.0.origination` and `legs.n.destination`). If you send all the fields, the complete route takes precedence over the individual legs. For details, see the `decision_manager_travel_leg#_dest` field description in _Decision Manager Using the SCMP API Developer Guide_ on the [CyberSource Business Center.](https://ebc2.cybersource.com/ebc2/) Click **Decision Manager** > **Documentation** > **Guides** > _Decision Manager Using the SCMP API Developer Guide_ (PDF link). | [optional] **carrier_code** | **String** | International Air Transport Association (IATA) code for the carrier for this leg of the trip. Required for each leg. Required for American Express SafeKey (U.S.) for travel-related requests. | [optional] **departure_date** | **String** | Departure date for the first leg of the trip. Format: YYYYMMDD. Required for American Express SafeKey (U.S.) for travel-related requests. | [optional] +**departure_time** | **Integer** | Time of departure for this leg of the trip. The format is military time and HHMM: If not all zeros, then the hours must be `00-23` and the minutes must be `00-59`. Format: English characters only. Optional request field for travel legs. | [optional] diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md index b1e50bfc..855c6863 100644 --- a/docs/SubscriptionsApi.md +++ b/docs/SubscriptionsApi.md @@ -15,11 +15,11 @@ Method | HTTP request | Description # **activate_subscription** -> ActivateSubscriptionResponse activate_subscription(id) +> ActivateSubscriptionResponse activate_subscription(id, opts) Activate a Subscription -Activate a `CANCELLED` Or `SUSPENDED` Subscription +Activate a `SUSPENDED` Subscription ### Example ```ruby @@ -30,10 +30,13 @@ api_instance = CyberSource::SubscriptionsApi.new id = 'id_example' # String | Subscription Id +opts = { + process_skipped_payments: true # BOOLEAN | Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. +} begin #Activate a Subscription - result = api_instance.activate_subscription(id) + result = api_instance.activate_subscription(id, opts) p result rescue CyberSource::ApiError => e puts "Exception when calling SubscriptionsApi->activate_subscription: #{e}" @@ -45,6 +48,7 @@ end Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| Subscription Id | + **process_skipped_payments** | **BOOLEAN**| Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. | [optional] [default to true] ### Return type diff --git a/docs/TssV2TransactionsGet200ResponseProcessorInformation.md b/docs/TssV2TransactionsGet200ResponseProcessorInformation.md index 3ff37114..8275ca3c 100644 --- a/docs/TssV2TransactionsGet200ResponseProcessorInformation.md +++ b/docs/TssV2TransactionsGet200ResponseProcessorInformation.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **card_verification** | [**Riskv1decisionsProcessorInformationCardVerification**](Riskv1decisionsProcessorInformationCardVerification.md) | | [optional] **ach_verification** | [**PtsV2PaymentsPost201ResponseProcessorInformationAchVerification**](PtsV2PaymentsPost201ResponseProcessorInformationAchVerification.md) | | [optional] **electronic_verification_results** | [**TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults**](TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults.md) | | [optional] +**event_status** | **String** | The event status. | [optional] **system_trace_audit_number** | **String** | This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. Returned by authorization and incremental authorization services. #### American Express Direct System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. #### CyberSource through VisaNet System trace number that must be printed on the customer's receipt. | [optional] **response_code_source** | **String** | Used by Visa only and contains the response source/reason code that identifies the source of the response decision. | [optional] **payment_account_reference_number** | **String** | Payment Account Reference (PAR) is a non-financial reference assigned to each unique payment account and used to link a payment account to associated network tokens, i.e. the same PAR is returned for PAN-based and tokenized transactions, such as from digital wallets. PAR can be returned in authorisation responses for requests initiated with both real PANs and tokenized PANs. PAR can be used by merchants for fraud detection and regulatory compliance across different channels and digital wallets. PAR allows all participants in the payments chain to have a single, non-sensitive value assigned to a consumer. This value can be used in place of sensitive card holder identification fields, and transmitted across the payments ecosystem to facilitate card holder identification. **Note** On CyberSource through VisaNet, the value for this field corresponds to the following data in the TC 33 capture file: - Record: CP01 TCR8 - Position: 79-110 - Field: Payment Account Reference The TC 33 Capture file contains information about the purchases and refunds that a merchant submits to CyberSource. CyberSource through VisaNet creates the TC 33 Capture file at the end of the day and sends it to the merchant's acquirer, who uses this information to facilitate end-of-day clearing processing with payment networks. | [optional] diff --git a/docs/Upv1capturecontextsCaptureMandate.md b/docs/Upv1capturecontextsCaptureMandate.md index b67ebf7b..5bb7bac1 100644 --- a/docs/Upv1capturecontextsCaptureMandate.md +++ b/docs/Upv1capturecontextsCaptureMandate.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **request_shipping** | **BOOLEAN** | Configure Unified Checkout to capture customer shipping details. Possible values: - True - False | [optional] **ship_to_countries** | **Array<String>** | List of countries available to ship to. Use the two-character ISO Standard Country Codes. | [optional] **show_accepted_network_icons** | **BOOLEAN** | Configure Unified Checkout to display the list of accepted card networks beneath the payment button Possible values: - True - False | [optional] +**show_confirmation_step** | **BOOLEAN** | Configure Unified Checkout to display the final confirmation screen when using Click to Pay.<br> Where 'BillingType'= NONE and 'requestShipping'= FALSE and the customer is using an existing Click to Pay card as their chosen payment method, a final confirmation screen can be removed allowing the customer to check out as soon as they have selected their payment method from within their Click to Pay card tray. Possible values: - True - False | [optional] **request_save_card** | **BOOLEAN** | Configure Unified Checkout to display the \"Save card for future use\" checkbox.<br> Configurable check box that will show in a Manual card entry flow to allow a Cardholder to give consent to store their manually entered credential with the Merchant that they are paying.<br> Applicable when manually entering the details and not enrolling in Click to Pay. Possible values: - True - False<br><br> **Use Cases:** **Offer consumers option to save their card in Unified Checkout:** - Include the captureMandate.requestSaveCard field in the capture context request and set it to true. - When set to true, this will show a checkbox with the message 'Save card for future use' in Unified Checkout. - When selected this provides a response in both the Transient Token and Get Credentials API response.<br><br> **Do not offer consumers the option to save their card in Unified Checkout:** - Include the captureMandate.requestSaveCard field in the capture context request and set it to false OR omit the field from the capture context request. - When set to false, the save card option is not shown to consumers when manually entering card details. | [optional] **combo_card** | **BOOLEAN** | Configure Unified Checkout to display combo card at checkout.<br> A combo debit/credit card is a single card that functions both as a Debit/Credit card. Unified Checkout / Click to Pay Drop-in UI allows the Cardholder to choose whether they would like the transaction to be paid for using either debit or credit card. **Important:** This is applicable to Visa cards only. Possible values: - True - False<br><br> **Use Cases:** **Offer Combo Card at Checkout:** - Include the captureMandate.comboCard field in the capture context request and set it to true. - When set to true, Combo Card selection is shown at checkout <br><br> **Do not offer Combo Card at Checkout:** - Include the captureMandate.comboCard field in the capture context request and set it to false OR omit the field from the capture context request. - The Combo Card selection is not shown at checkout. | [optional] **cpf** | **BOOLEAN** | Configure Unified Checkout to display and capture the CPF number (Cadastro de Pessoas FĂ­sicas). The CPF number is a unique 11-digit identifier issued to Brazilian citizens and residents for tax purposes. Possible values: - True - False<br><br> This field is optional. If set to true the field is required. If set to false the field is optional. If the field is not included in the capture context then it is not captured.<br><br> **Important:** - If PANENTRY is specified in the allowedPaymentTypes field, the CPF number will be displayed in Unified Checkout regardless of what card number is entered. - If CLICKTOPAY is specified in the allowedPaymentTypes field, the CPF number will be displayed in Unified Checkout only when a Visa Click To Pay card is entered. | [optional] diff --git a/docs/Upv1capturecontextsCompleteMandate.md b/docs/Upv1capturecontextsCompleteMandate.md index 8419b7be..f1577955 100644 --- a/docs/Upv1capturecontextsCompleteMandate.md +++ b/docs/Upv1capturecontextsCompleteMandate.md @@ -3,7 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**type** | **String** | This field is used to indicate how a payment should be processed. Possible values: - AUTH: Use this value when you want to authorize a payment without capturing it immediately. Payment types that initiate an immediate transfer of funds are not allowed. If a capture context request includes a payment type incompatible with this mode, a 400 error will be returned.<br><br> - CAPTURE: Use this value when you want to capture the payment immediately during the transaction. Note: Some payment types may return a PENDING status, requiring an additional status check call to determine the final outcome of the payment.<br><br> - PREFER_AUTH: Use this value to offer multiple alternative payment options during the Unified Checkout experience. This option authorizes the payment without immediate capture, where available. Payment types like account-to-account transfers that initiate an immediate transfer of funds are allowed and presented to the customer. If selected, an immediate transfer of funds occurs; otherwise, a final backend call is needed to capture the payment. Transactions can be AUTHORIZED, CAPTURED, or PENDING. | [optional] -**decision_manager** | **BOOLEAN** | Configure Unified Checkout to determine whether Decision Manager is invoked during service orchestration. Possible values: - True - False<br><br> Setting this value to True indicates that device fingerprinting will be executed to add additional information for risk service Setting this value to False indicates that you do not wish to run device fingerprinting and skip decision manager services. | [optional] +**type** | **String** | This field is used to indicate how a payment should be processed. Possible values: - AUTH: Use this value when you want to authorize a payment within Unified Checkout without capturing it immediately. Payment types that initiate an immediate transfer of funds are NOT allowed. If a capture context request includes a payment type incompatible with this mode, a 400 error will be returned. A merchant would need to perform their own capture via API where applicable.<br><br> - CAPTURE: Use this value when you want to perform a sale within Unified Checkout and capture the payment immediately during the transaction. Note: Some payment types may return a PENDING status, requiring an additional status check call to determine the final outcome of the payment.<br><br> - PREFER_AUTH: Use this value to offer multiple alternative payment options during the Unified Checkout experience. This option authorizes the payment without immediate capture, where available. It will perform a \"CAPTURE\" where an \"AUTH\" is not allowed by the payment type. Transactions can be AUTHORIZED, CAPTURED, or PENDING. If an \"AUTH\" is performed, a merchant would need to perform their own capture via API where applicable. | [optional] +**decision_manager** | **BOOLEAN** | Configure Unified Checkout to determine whether Decision Manager is invoked during service orchestration. Possible values: - True - False<br><br> Setting this value to True indicates that device fingerprinting will be executed to add additional information for risk service Setting this value to False (or not provided) indicates that you do not wish to run device fingerprinting and skip decision manager services. | [optional] +**consumer_authentication** | **BOOLEAN** | Configure Unified Checkout to determine whether Consumer Authentication is invoked during service orchestration. Possible values: - True - False<br><br> Setting this value to True will attempt to perform authentication using the Payer Authentication Service. Setting this value to False (or not provided) indicates that you do not wish to perform authentication using the Payer Authentication Service. | [optional] diff --git a/generator/cybersource-rest-spec-ruby.json b/generator/cybersource-rest-spec-ruby.json index 40976fa4..031457ea 100644 --- a/generator/cybersource-rest-spec-ruby.json +++ b/generator/cybersource-rest-spec-ruby.json @@ -288,7 +288,7 @@ }, { "name": "bankAccountValidation", - "description": "The Visa Bank Account Validation Service is a new standalone product designed to validate bank account details for eCheck transactions. It ensures that all eCheck transactions comply with Nacha guidelines by validating the routing and account numbers.\nThere will be 2 modes of validation:\n1. Basic Mode: Validate account number format and routing number\n2. Advance mode : Validate account and routing number combination. If the Advanced mode is Unavailable or cannot validate the account, the default behavior will be to fallback to the Basic Mode.\n" + "description": "The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha's account validation mandate for Web-debit transactions.\n" } ], "x-devcenter-metaData": { @@ -388,7 +388,7 @@ }, { "name": "Visa_Bank_Account_Validation", - "description": "The Visa Bank Account Validation Service is a new standalone product designed to validate bank account details for eCheck transactions. It ensures that all eCheck transactions comply with Nacha guidelines by validating the routing and account numbers.\nThere will be 2 modes of validation:\n1. Basic Mode: Validate account number format and routing number\n2. Advance mode : Validate account and routing number combination. If the Advanced mode is Unavailable or cannot validate the account, the default behavior will be to fallback to the Basic Mode.\n" + "description": "The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha's account validation mandate for Web-debit transactions.\n" } ] }, @@ -82180,7 +82180,7 @@ "items": { "type": "string" }, - "description": "The list of card networks you want to use for this Microform transaction.\n\nMicroform currently supports the following card networks:\n- VISA\n- MASTERCARD\n- AMEX\n- CARNET\n- CARTESBANCAIRES\n- CUP\n- DINERSCLUB\n- DISCOVER\n- EFTPOS\n- ELO\n- JCB\n- JCREW\n- MADA\n- MAESTRO\n- MEEZA\n\n**Important:** \n - When integrating Microform (Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request.\n - When integrating Microform (ACH/eCheck) the allowedCardNetworks field is not required in the capture context request.\n - When integrating both Microform (Card) and Microform (ACH/eCheck) at least one card network should be specified in the allowedCardNetworks field in the capture context request.\n" + "description": "The list of card networks you want to use for this Microform transaction.\n\nMicroform currently supports the following card networks:\n- VISA\n- MASTERCARD\n- AMEX\n- CARNET\n- CARTESBANCAIRES\n- CUP\n- DINERSCLUB\n- DISCOVER\n- EFTPOS\n- ELO\n- JCB\n- JCREW\n- MADA\n- MAESTRO\n- MEEZA\n- PAYPAK\n\n**Important:** \n - When integrating Microform (Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request.\n - When integrating Microform (ACH/eCheck) the allowedCardNetworks field is not required in the capture context request.\n - When integrating both Microform (Card) and Microform (ACH/eCheck) at least one card network should be specified in the allowedCardNetworks field in the capture context request.\n" }, "allowedPaymentTypes": { "type": "array", @@ -82205,6 +82205,23 @@ "x-example": { "example0": { "summary": "Generate Capture Context (Card)", + "value": { + "clientVersion": "v2", + "targetOrigins": [ + "https://www.test.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" + ], + "allowedPaymentTypes": [ + "CARD" + ] + } + }, + "example1": { + "summary": "Generate Capture Context With Full List of Card Networks (Card)", "value": { "clientVersion": "v2", "targetOrigins": [ @@ -82214,8 +82231,8 @@ "VISA", "MASTERCARD", "AMEX", - "CARNET", "CARTESBANCAIRES", + "CARNET", "CUP", "DINERSCLUB", "DISCOVER", @@ -82225,15 +82242,16 @@ "JCREW", "MADA", "MAESTRO", - "MEEZA" + "MEEZA", + "PAYPAK" ], "allowedPaymentTypes": [ "CARD" ] } }, - "example1": { - "summary": "Generate Capture Context (ACH/Echeck)", + "example2": { + "summary": "Generate Capture Context (ACH/eCheck)", "value": { "clientVersion": "v2", "targetOrigins": [ @@ -82244,7 +82262,7 @@ ] } }, - "example2": { + "example3": { "summary": "Generate Capture Context (Card - Opt-out of receiving card number prefix)", "value": { "clientVersion": "v2", @@ -82254,19 +82272,7 @@ "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "AMEX" ], "allowedPaymentTypes": [ "CARD" @@ -83874,6 +83880,11 @@ "departureDate": { "type": "string", "description": "Departure date for the first leg of the trip. Format: YYYYMMDD.\nRequired for American Express SafeKey (U.S.) for travel-related requests.\n" + }, + "departureTime": { + "type": "integer", + "maxLength": 4, + "description": "Time of departure for this leg of the trip. The format is military time and HHMM:\nIf not all zeros, then the hours must be `00-23` and the minutes must be `00-59`.\nFormat: English characters only.\nOptional request field for travel legs.\n" } } } @@ -87495,6 +87506,11 @@ "departureDate": { "type": "string", "description": "Departure date for the first leg of the trip. Format: YYYYMMDD.\nRequired for American Express SafeKey (U.S.) for travel-related requests.\n" + }, + "departureTime": { + "type": "integer", + "maxLength": 4, + "description": "Time of departure for this leg of the trip. The format is military time and HHMM:\nIf not all zeros, then the hours must be `00-23` and the minutes must be `00-59`.\nFormat: English characters only.\nOptional request field for travel legs.\n" } } } @@ -98193,6 +98209,21 @@ } } } + }, + "reactivationInformation": { + "type": "object", + "properties": { + "skippedPaymentsCount": { + "type": "string", + "maxLength": 10, + "description": "Number of payments that should have occurred while the subscription was in a suspended status.\n" + }, + "skippedPaymentsTotalAmount": { + "type": "string", + "maxLength": 19, + "description": "Total amount that will be charged upon reactivation if `processSkippedPayments` is set to `true`.\n" + } + } } } } @@ -98982,7 +99013,7 @@ "/rbs/v1/subscriptions/{id}/activate": { "post": { "summary": "Activate a Subscription", - "description": "Activate a `CANCELLED` Or `SUSPENDED` Subscription\n", + "description": "Activate a `SUSPENDED` Subscription\n", "tags": [ "Subscriptions" ], @@ -99008,6 +99039,14 @@ "type": "string", "required": true, "description": "Subscription Id" + }, + { + "name": "processSkippedPayments", + "in": "query", + "type": "boolean", + "description": "Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true.", + "required": false, + "default": true } ], "responses": { @@ -102181,6 +102220,10 @@ } } }, + "eventStatus": { + "type": "string", + "description": "The event status.\n" + }, "systemTraceAuditNumber": { "type": "string", "maxLength": 6, @@ -102818,6 +102861,7 @@ "postalCode": "78717", "postalCodeRaw": "1166678717" }, + "eventStatus": "Pending", "systemTraceAuditNumber": "123456", "responseCodeSource": "0", "paymentAccountReferenceNumber": "abc4545345dfsf2342342wfa" @@ -124236,10 +124280,62 @@ "enabled": { "type": "boolean" }, + "enablementStatus": { + "type": "string", + "default": "ENABLED_AND_USABLE", + "description": "Possible values:\n- PENDING\n- ENABLED_AND_USABLE\n- ENABLED_NOT_USABLE\n- DISABLED" + }, "selfServiceability": { "type": "string", "default": "NOT_SELF_SERVICEABLE", "description": "Indicates if the organization can enable this product using self service. \nPossible values:\n- SELF_SERVICEABLE\n- NOT_SELF_SERVICEABLE\n- SELF_SERVICE_ONLY" + }, + "features": { + "type": "object", + "properties": { + "pazeForUnifiedCheckout": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "description": "Enabling Paze under unified checkout" + } + } + } + } + }, + "configurationInformation": { + "type": "object", + "properties": { + "configurations": { + "type": "object", + "properties": { + "features": { + "type": "object", + "properties": { + "paze": { + "type": "object", + "properties": { + "financialInstitution": { + "type": "string", + "description": "Indicates the financial institution with whom the contract has been signed \nPossible values:\n- BANKOFAMERICA\n- WELLSFARGO" + }, + "financialInstitutionContract": { + "type": "boolean", + "description": "Indicates if the contract has been signed with the selected bank" + }, + "pazeEnabledInProfile": { + "type": "boolean", + "description": "Paze enabled in the profile for the merchants" + } + }, + "description": "Paze specific required configuration details under unified checkout" + } + } + } + } } } } @@ -133093,10 +133189,62 @@ "enabled": { "type": "boolean" }, + "enablementStatus": { + "type": "string", + "default": "ENABLED_AND_USABLE", + "description": "Possible values:\n- PENDING\n- ENABLED_AND_USABLE\n- ENABLED_NOT_USABLE\n- DISABLED" + }, "selfServiceability": { "type": "string", "default": "NOT_SELF_SERVICEABLE", "description": "Indicates if the organization can enable this product using self service. \nPossible values:\n- SELF_SERVICEABLE\n- NOT_SELF_SERVICEABLE\n- SELF_SERVICE_ONLY" + }, + "features": { + "type": "object", + "properties": { + "pazeForUnifiedCheckout": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "description": "Enabling Paze under unified checkout" + } + } + } + } + }, + "configurationInformation": { + "type": "object", + "properties": { + "configurations": { + "type": "object", + "properties": { + "features": { + "type": "object", + "properties": { + "paze": { + "type": "object", + "properties": { + "financialInstitution": { + "type": "string", + "description": "Indicates the financial institution with whom the contract has been signed \nPossible values:\n- BANKOFAMERICA\n- WELLSFARGO" + }, + "financialInstitutionContract": { + "type": "boolean", + "description": "Indicates if the contract has been signed with the selected bank" + }, + "pazeEnabledInProfile": { + "type": "boolean", + "description": "Paze enabled in the profile for the merchants" + } + }, + "description": "Paze specific required configuration details under unified checkout" + } + } + } + } } } } @@ -138106,46 +138254,50 @@ } } }, - "/dms/v3/devices/deassociate": { + "/dms/v2/devices/search": { "post": { - "summary": "De-associate a device from merchant to account or reseller and from account to reseller V3", - "description": "A device will be de-associated from its current organization and moved up in the hierarchy.\nThe device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user.\n", - "tags": [ - "Device De-Association V3" - ], - "operationId": "postDeAssociateV3Terminal", - "x-devcenter-metaData": { - "categoryTag": "Device_Management" - }, + "summary": "Retrieve List of Devices for a given search query V2", + "description": "Retrieves list of terminals in paginated format.", "parameters": [ { - "name": "deviceDeAssociateV3Request", - "required": true, + "name": "postDeviceSearchRequest", "in": "body", - "description": "deviceId that has to be de-associated to the destination organizationId.", + "required": true, "schema": { - "type": "array", - "items": { - "type": "object", - "required": [ - "deviceId" - ], - "properties": { - "deviceId": { - "type": "string", - "description": "ID of the device to be de-associated.", - "maxLength": 256 - }, - "organizationId": { - "type": "string", - "description": "A field representing value of either account id or portfolio id.", - "maxLength": 30 - } + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The Search Query to retrieve the Terminals(Example :- terminalSerialNumber:12345678 AND readerId:66c395ca-4f20-4b40-acac-5ff4c772d5f9 AND terminalId:T9KN88RTPE). Empty Query returns everything for the given organization." + }, + "sort": { + "type": "string", + "description": "The Sort Query to order the Terminals by. By Default, It is in ascending order of last update of a device." + }, + "offset": { + "type": "integer", + "format": "int64", + "description": "The offset or page number." + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "Number of devices to retrieve in one request." } } } } ], + "tags": [ + "Device Search" + ], + "operationId": "postSearchQuery", + "x-devcenter-metaData": { + "categoryTag": "Device_Management", + "firstLevelApiLifeCycle": "hidden", + "secondLevelApiLifeCycle": "hidden", + "apiLifeCycle": "hidden" + }, "consumes": [ "application/json;charset=UTF-8" ], @@ -138154,70 +138306,528 @@ ], "responses": { "200": { - "description": "De-associated all device(s) to their respective destination(s)", - "schema": { - "type": "array", - "description": "A collection of details of each device de-associate", - "items": { - "type": "object", - "properties": { - "status": { - "type": "string", - "description": "Possible values:\n- OK" - }, - "devices": { - "type": "array", - "items": { - "type": "object", - "properties": { - "deviceId": { - "type": "string", - "example": "73c7d8ba-3673-4baf-801e-cf4bf5cc2b57" - }, - "reason": { - "type": "string", - "example": "Device detached successfully." - }, - "code": { - "type": "string", - "example": "deviceDetach.sync.success" - } - } - } - } - } - } - } - }, - "206": { - "description": "Partial Success. De-associated device(s) to their respective destination(s)", + "description": "Retrieved all Devices matched by the search query", "schema": { - "type": "array", - "description": "A collection of details of each device de-associate", - "items": { - "type": "object", - "properties": { - "status": { - "type": "string", - "description": "Possible values:\n- OK\n- BAD_REQUEST" - }, - "devices": { - "type": "array", - "items": { - "type": "object", - "properties": { - "deviceId": { - "type": "string", - "example": "73c7d8ba-3673-4baf-801e-cf4bf5cc2b57" - }, - "reason": { - "type": "string", - "example": "Device detached successfully." - }, - "code": { - "type": "string", - "example": "deviceDetach.sync.success" - } + "type": "object", + "properties": { + "totalCount": { + "type": "integer", + "description": "Total number of results." + }, + "offset": { + "type": "integer", + "description": "Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset.\n\nFor example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this:\n\n`offset=0`\n`offset=5`\n`offset=10`\n\n**Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned.\n" + }, + "limit": { + "type": "integer", + "description": "Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500.\n" + }, + "sort": { + "type": "string", + "description": "A comma separated list of the following form:\n\n`submitTimeUtc:desc`\n" + }, + "count": { + "type": "integer", + "description": "Results for this page, this could be below the limit." + }, + "devices": { + "type": "array", + "description": "A collection of devices", + "items": { + "type": "object", + "properties": { + "readerId": { + "type": "string", + "maxLength": 36 + }, + "terminalSerialNumber": { + "type": "string", + "maxLength": 256, + "pattern": "[0-9a-zA-Z][0-9a-zA-Z-]*" + }, + "terminalId": { + "type": "string", + "maxLength": 256 + }, + "model": { + "type": "string", + "maxLength": 256, + "pattern": "^[0-9a-zA-Z_ ]*$" + }, + "make": { + "type": "string", + "maxLength": 100, + "pattern": "^[0-9a-zA-Z_ ]*$" + }, + "hardwareRevision": { + "type": "string", + "maxLength": 256, + "pattern": "^[0-9a-zA-Z][0-9a-zA-Z-/_.]*$" + }, + "status": { + "type": "string", + "description": "Status of the device.\nPossible Values:\n - 'ACTIVE'\n - 'INACTIVE'\n" + }, + "creationDate": { + "type": "string", + "maxLength": 20, + "pattern": "YYYY-MM-DDThh:mm:ssZ" + }, + "pin": { + "type": "string" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request. \nPossible values:\n- BAD_REQUEST" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "details": { + "type": "array", + "description": "An optional array which provides more details of the error.", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string", + "description": "This is the flattened JSON object field name/path that is either missing or invalid." + }, + "reason": { + "type": "string", + "description": "Possible reasons for the error.\n" + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact field error." + } + } + } + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- UNAUTHORIZED" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- FORBIDDEN" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "404": { + "description": "Not Found", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- NOT_FOUND" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "500": { + "description": "Unexpected system error or system timeout.", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- INTERNAL_SERVER_ERROR" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + } + } + } + }, + "/dms/v2/devices/deassociate": { + "patch": { + "summary": "De-associate a device from merchant or account V2", + "description": "The current association of the device will be removed and will be assigned back to parent in the hierarchy based on internal logic", + "tags": [ + "Device De-Association" + ], + "operationId": "deleteTerminalAssociation", + "x-devcenter-metaData": { + "categoryTag": "Device_Management", + "firstLevelApiLifeCycle": "hidden", + "secondLevelApiLifeCycle": "hidden", + "apiLifeCycle": "hidden" + }, + "parameters": [ + { + "name": "deAssociationRequestBody", + "required": true, + "in": "body", + "description": "de association of the deviceId in the request body.", + "schema": { + "type": "object", + "properties": { + "deviceId": { + "type": "string", + "description": "UUID of the device which needs to be de-associated" + } + } + } + } + ], + "consumes": [ + "application/json;charset=UTF-8" + ], + "responses": { + "204": { + "description": "The request is fulfilled but does not need to return a body" + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request. \nPossible values:\n- BAD_REQUEST" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "details": { + "type": "array", + "description": "An optional array which provides more details of the error.", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string", + "description": "This is the flattened JSON object field name/path that is either missing or invalid." + }, + "reason": { + "type": "string", + "description": "Possible reasons for the error.\n" + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact field error." + } + } + } + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- UNAUTHORIZED" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- FORBIDDEN" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "404": { + "description": "Not Found", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- NOT_FOUND" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "500": { + "description": "Unexpected system error or system timeout.", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- INTERNAL_SERVER_ERROR" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + } + }, + "x-example": { + "example0": { + "summary": "De-associate a device based on its deviceId.", + "value": { + "deviceId": "6ba4a8e3-d437-476d-ab94-996598ac8706" + } + } + } + } + }, + "/dms/v3/devices/deassociate": { + "post": { + "summary": "De-associate a device from merchant to account or reseller and from account to reseller", + "description": "A device will be de-associated from its current organization and moved up in the hierarchy.\nThe device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user.\n", + "tags": [ + "Device De-Association" + ], + "operationId": "postDeAssociateV3Terminal", + "x-devcenter-metaData": { + "categoryTag": "Device_Management" + }, + "parameters": [ + { + "name": "deviceDeAssociateV3Request", + "required": true, + "in": "body", + "description": "deviceId that has to be de-associated to the destination organizationId.", + "schema": { + "type": "array", + "items": { + "type": "object", + "required": [ + "deviceId" + ], + "properties": { + "deviceId": { + "type": "string", + "description": "ID of the device to be de-associated.", + "maxLength": 256 + }, + "organizationId": { + "type": "string", + "description": "A field representing value of either account id or portfolio id.", + "maxLength": 30 + } + } + } + } + } + ], + "consumes": [ + "application/json;charset=UTF-8" + ], + "produces": [ + "application/json;charset=UTF-8" + ], + "responses": { + "200": { + "description": "De-associated all device(s) to their respective destination(s)", + "schema": { + "type": "array", + "description": "A collection of details of each device de-associate", + "items": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "Possible values:\n- OK" + }, + "devices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "deviceId": { + "type": "string", + "example": "73c7d8ba-3673-4baf-801e-cf4bf5cc2b57" + }, + "reason": { + "type": "string", + "example": "Device detached successfully." + }, + "code": { + "type": "string", + "example": "deviceDetach.sync.success" + } + } + } + } + } + } + } + }, + "206": { + "description": "Partial Success. De-associated device(s) to their respective destination(s)", + "schema": { + "type": "array", + "description": "A collection of details of each device de-associate", + "items": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "Possible values:\n- OK\n- BAD_REQUEST" + }, + "devices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "deviceId": { + "type": "string", + "example": "73c7d8ba-3673-4baf-801e-cf4bf5cc2b57" + }, + "reason": { + "type": "string", + "example": "Device detached successfully." + }, + "code": { + "type": "string", + "example": "deviceDetach.sync.success" + } } } } @@ -138387,7 +138997,7 @@ }, "/dms/v3/devices/search": { "post": { - "summary": "Retrieve List of Devices for a given search query V3", + "summary": "Retrieve List of Devices for a given search query", "description": "Search for devices matching a given search query.\n\nThe search query supports serialNumber, readerId, terminalId, status, statusChangeReason or organizationId\n\nMatching results are paginated.\n", "parameters": [ { @@ -138724,14 +139334,14 @@ "MASTERCARD" ] }, - "description": "The list of card networks you want to use for this Unified Checkout transaction.\n\nUnified Checkout currently supports the following card networks:\n - VISA\n - MASTERCARD\n - AMEX\n - CARNET\n - CARTESBANCAIRES\n - CUP\n - DINERSCLUB\n - DISCOVER\n - EFTPOS\n - ELO\n - JCB\n - JCREW\n - MADA\n - MAESTRO\n - MEEZA\n" + "description": "The list of card networks you want to use for this Unified Checkout transaction.\n\nUnified Checkout currently supports the following card networks:\n - VISA\n - MASTERCARD\n - AMEX\n - CARNET\n - CARTESBANCAIRES\n - CUP\n - DINERSCLUB\n - DISCOVER\n - EFTPOS\n - ELO\n - JCB\n - JCREW\n - MADA\n - MAESTRO\n - MEEZA\n - PAYPAK\n" }, "allowedPaymentTypes": { "type": "array", "items": { "type": "string" }, - "description": "The payment types that are allowed for the merchant. \n\nPossible values when launching Unified Checkout:\n - APPLEPAY\n - CHECK\n - CLICKTOPAY\n - GOOGLEPAY\n - PANENTRY \n - PAZE

\n\nPossible values when launching Click To Pay Drop-In UI:\n- CLICKTOPAY

\n\n**Important:** \n - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards.\n - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester.\n - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

\n\n**Managing Google Pay Authentication Types**\nWhen you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.\n" + "description": "The payment types that are allowed for the merchant. \n\nPossible values when launching Unified Checkout:\n - APPLEPAY\n - CHECK\n - CLICKTOPAY\n - GOOGLEPAY\n - PANENTRY \n - PAZE

\n\nUnified Checkout also supports the following Alternative Payments:\n - AFTERPAY

\n\nPossible values when launching Click To Pay Drop-In UI:\n- CLICKTOPAY

\n\n**Important:** \n - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards.\n - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester.\n - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

\n\n**Managing Google Pay Authentication Types**\nWhen you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.

\n\n**Managing Google Pay Authentication Types**\nWhere Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". \n\nThis is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\".\n - UAE\n - Argentina\n - Brazil\n - Chile\n - Colombia\n - Kuwait\n - Mexico\n - Peru\n - Qatar\n - Saudi Arabia\n - Ukraine\n - South Africa

\n\nIf false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry.\n" }, "country": { "type": "string", @@ -138778,6 +139388,10 @@ "type": "boolean", "description": "Configure Unified Checkout to display the list of accepted card networks beneath the payment button\n\nPossible values:\n- True\n- False\n" }, + "showConfirmationStep": { + "type": "boolean", + "description": "Configure Unified Checkout to display the final confirmation screen when using Click to Pay.
\nWhere 'BillingType'= NONE and 'requestShipping'= FALSE and the customer is using an existing Click to Pay card as their chosen payment method, a final confirmation screen can be removed allowing the customer to check out as soon as they have selected their payment method from within their Click to Pay card tray.\n\nPossible values:\n- True\n- False\n" + }, "requestSaveCard": { "type": "boolean", "description": "Configure Unified Checkout to display the \"Save card for future use\" checkbox.
\n\nConfigurable check box that will show in a Manual card entry flow to allow a Cardholder to give consent to store their manually entered credential with the Merchant that they are paying.
\nApplicable when manually entering the details and not enrolling in Click to Pay.\n\nPossible values:\n - True \n - False

\n\n**Use Cases:**\n\n**Offer consumers option to save their card in Unified Checkout:** \n- Include the captureMandate.requestSaveCard field in the capture context request and set it to true.\n- When set to true, this will show a checkbox with the message 'Save card for future use' in Unified Checkout.\n- When selected this provides a response in both the Transient Token and Get Credentials API response.

\n\n**Do not offer consumers the option to save their card in Unified Checkout:** \n- Include the captureMandate.requestSaveCard field in the capture context request and set it to false OR omit the field from the capture context request.\n- When set to false, the save card option is not shown to consumers when manually entering card details.\n" @@ -138800,11 +139414,15 @@ "type": "string", "example": "AUTH", "maxLength": 25, - "description": "This field is used to indicate how a payment should be processed.\n\nPossible values:\n- AUTH: Use this value when you want to authorize a payment without capturing it immediately. Payment types that initiate an immediate transfer of funds are not allowed. If a capture context request includes a payment type incompatible with this mode, a 400 error will be returned.

\n- CAPTURE: Use this value when you want to capture the payment immediately during the transaction. Note: Some payment types may return a PENDING status, requiring an additional status check call to determine the final outcome of the payment.

\n- PREFER_AUTH: Use this value to offer multiple alternative payment options during the Unified Checkout experience. This option authorizes the payment without immediate capture, where available. Payment types like account-to-account transfers that initiate an immediate transfer of funds are allowed and presented to the customer. If selected, an immediate transfer of funds occurs; otherwise, a final backend call is needed to capture the payment. Transactions can be AUTHORIZED, CAPTURED, or PENDING.\n" + "description": "This field is used to indicate how a payment should be processed.\n\nPossible values:\n- AUTH: Use this value when you want to authorize a payment within Unified Checkout without capturing it immediately. Payment types that initiate an immediate transfer of funds are NOT allowed. If a capture context request includes a payment type incompatible with this mode, a 400 error will be returned. A merchant would need to perform their own capture via API where applicable.

\n- CAPTURE: Use this value when you want to perform a sale within Unified Checkout and capture the payment immediately during the transaction. Note: Some payment types may return a PENDING status, requiring an additional status check call to determine the final outcome of the payment.

\n- PREFER_AUTH: Use this value to offer multiple alternative payment options during the Unified Checkout experience. This option authorizes the payment without immediate capture, where available. It will perform a \"CAPTURE\" where an \"AUTH\" is not allowed by the payment type. Transactions can be AUTHORIZED, CAPTURED, or PENDING. If an \"AUTH\" is performed, a merchant would need to perform their own capture via API where applicable.\n" }, "decisionManager": { "type": "boolean", - "description": "Configure Unified Checkout to determine whether Decision Manager is invoked during service orchestration.\n\nPossible values:\n - True\n - False

\n\nSetting this value to True indicates that device fingerprinting will be executed to add additional information for risk service\nSetting this value to False indicates that you do not wish to run device fingerprinting and skip decision manager services.\n" + "description": "Configure Unified Checkout to determine whether Decision Manager is invoked during service orchestration.\n\nPossible values:\n - True\n - False

\n\nSetting this value to True indicates that device fingerprinting will be executed to add additional information for risk service\nSetting this value to False (or not provided) indicates that you do not wish to run device fingerprinting and skip decision manager services.\n" + }, + "consumerAuthentication": { + "type": "boolean", + "description": "Configure Unified Checkout to determine whether Consumer Authentication is invoked during service orchestration.\n\nPossible values:\n - True\n - False

\n\nSetting this value to True will attempt to perform authentication using the Payer Authentication Service.\nSetting this value to False (or not provided) indicates that you do not wish to perform authentication using the Payer Authentication Service.\n" } } }, @@ -139102,26 +139720,14 @@ "example0": { "summary": "Generate Unified Checkout Capture Context", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "AMEX" ], "allowedPaymentTypes": [ "APPLEPAY", @@ -139129,7 +139735,8 @@ "CLICKTOPAY", "GOOGLEPAY", "PANENTRY", - "PAZE" + "PAZE", + "AFTERPAY" ], "country": "US", "locale": "en_US", @@ -139144,6 +139751,11 @@ ], "showAcceptedNetworkIcons": true }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, "orderInformation": { "amountDetails": { "totalAmount": "21.00", @@ -139153,16 +139765,29 @@ } }, "example1": { - "summary": "Generate Unified Checkout Capture Context with Service Orchestration", + "summary": "Generate Unified Checkout Capture Context With Full List of Card Networks", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX" + "AMEX", + "CARTESBANCAIRES", + "CARNET", + "CUP", + "DINERSCLUB", + "DISCOVER", + "EFTPOS", + "ELO", + "JCB", + "JCREW", + "MADA", + "MAESTRO", + "MEEZA", + "PAYPAK" ], "allowedPaymentTypes": [ "APPLEPAY", @@ -139170,7 +139795,8 @@ "CLICKTOPAY", "GOOGLEPAY", "PANENTRY", - "PAZE" + "PAZE", + "AFTERPAY" ], "country": "US", "locale": "en_US", @@ -139186,8 +139812,9 @@ "showAcceptedNetworkIcons": true }, "completeMandate": { - "type": "AUTH", - "decisionManager": true + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true }, "orderInformation": { "amountDetails": { @@ -139198,28 +139825,16 @@ } }, "example2": { - "summary": "Generate Unified Checkout Capture Context With Custom Payment Options", + "summary": "Generate Unified Checkout Capture Context With Custom Google Payment Options", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "AMEX" ], "allowedPaymentTypes": [ "APPLEPAY", @@ -139235,7 +139850,8 @@ } }, "PANENTRY", - "PAZE" + "PAZE", + "AFTERPAY" ], "country": "US", "locale": "en_US", @@ -139250,6 +139866,11 @@ ], "showAcceptedNetworkIcons": true }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, "orderInformation": { "amountDetails": { "totalAmount": "21.00", @@ -139259,9 +139880,9 @@ } }, "example3": { - "summary": "Generate Unified Checkout Capture Context (Opt-out of receiving card number prefix)", + "summary": "Generate Unified Checkout Capture Context With Autocheck Enrollment", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -139269,18 +139890,54 @@ "VISA", "MASTERCARD", "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "ELO" + ], + "allowedPaymentTypes": [ + "GOOGLEPAY", + { + "type": "CLICKTOPAY", + "options": { + "autoCheckEnrollment": true + } + }, + "PANENTRY" + ], + "country": "BR", + "locale": "pt_BR", + "captureMandate": { + "billingType": "FULL", + "requestEmail": true, + "requestPhone": true, + "requestShipping": true, + "shipToCountries": [ + "BR" + ], + "showAcceptedNetworkIcons": true + }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "21.00", + "currency": "USD" + } + } + } + }, + "example4": { + "summary": "Generate Unified Checkout Capture Context (Opt-out of receiving card number prefix)", + "value": { + "clientVersion": "0.28", + "targetOrigins": [ + "https://yourCheckoutPage.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" ], "allowedPaymentTypes": [ "APPLEPAY", @@ -139288,7 +139945,8 @@ "CLICKTOPAY", "GOOGLEPAY", "PANENTRY", - "PAZE" + "PAZE", + "AFTERPAY" ], "country": "US", "locale": "en_US", @@ -139303,6 +139961,11 @@ ], "showAcceptedNetworkIcons": true }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, "orderInformation": { "amountDetails": { "totalAmount": "21.00", @@ -139314,29 +139977,17 @@ } } }, - "example4": { + "example5": { "summary": "Generate Unified Checkout Capture Context passing Billing & Shipping", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "AMEX" ], "allowedPaymentTypes": [ "APPLEPAY", @@ -139344,7 +139995,8 @@ "CLICKTOPAY", "GOOGLEPAY", "PANENTRY", - "PAZE" + "PAZE", + "AFTERPAY" ], "country": "US", "locale": "en_US", @@ -139359,6 +140011,11 @@ ], "showAcceptedNetworkIcons": true }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, "orderInformation": { "amountDetails": { "totalAmount": "21.00", @@ -139414,29 +140071,17 @@ } } }, - "example5": { + "example6": { "summary": "Generate Capture Context For Click To Pay Drop-In UI", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "AMEX" ], "allowedPaymentTypes": [ "CLICKTOPAY" diff --git a/generator/cybersource-rest-spec.json b/generator/cybersource-rest-spec.json index 761f9782..c0b30d7d 100644 --- a/generator/cybersource-rest-spec.json +++ b/generator/cybersource-rest-spec.json @@ -288,7 +288,7 @@ }, { "name": "bankAccountValidation", - "description": "The Visa Bank Account Validation Service is a new standalone product designed to validate bank account details for eCheck transactions. It ensures that all eCheck transactions comply with Nacha guidelines by validating the routing and account numbers.\nThere will be 2 modes of validation:\n1. Basic Mode: Validate account number format and routing number\n2. Advance mode : Validate account and routing number combination. If the Advanced mode is Unavailable or cannot validate the account, the default behavior will be to fallback to the Basic Mode.\n" + "description": "The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha's account validation mandate for Web-debit transactions.\n" } ], "x-devcenter-metaData": { @@ -388,7 +388,7 @@ }, { "name": "Visa_Bank_Account_Validation", - "description": "The Visa Bank Account Validation Service is a new standalone product designed to validate bank account details for eCheck transactions. It ensures that all eCheck transactions comply with Nacha guidelines by validating the routing and account numbers.\nThere will be 2 modes of validation:\n1. Basic Mode: Validate account number format and routing number\n2. Advance mode : Validate account and routing number combination. If the Advanced mode is Unavailable or cannot validate the account, the default behavior will be to fallback to the Basic Mode.\n" + "description": "The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha's account validation mandate for Web-debit transactions.\n" } ] }, @@ -82180,7 +82180,7 @@ "items": { "type": "string" }, - "description": "The list of card networks you want to use for this Microform transaction.\n\nMicroform currently supports the following card networks:\n- VISA\n- MASTERCARD\n- AMEX\n- CARNET\n- CARTESBANCAIRES\n- CUP\n- DINERSCLUB\n- DISCOVER\n- EFTPOS\n- ELO\n- JCB\n- JCREW\n- MADA\n- MAESTRO\n- MEEZA\n\n**Important:** \n - When integrating Microform (Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request.\n - When integrating Microform (ACH/eCheck) the allowedCardNetworks field is not required in the capture context request.\n - When integrating both Microform (Card) and Microform (ACH/eCheck) at least one card network should be specified in the allowedCardNetworks field in the capture context request.\n" + "description": "The list of card networks you want to use for this Microform transaction.\n\nMicroform currently supports the following card networks:\n- VISA\n- MASTERCARD\n- AMEX\n- CARNET\n- CARTESBANCAIRES\n- CUP\n- DINERSCLUB\n- DISCOVER\n- EFTPOS\n- ELO\n- JCB\n- JCREW\n- MADA\n- MAESTRO\n- MEEZA\n- PAYPAK\n\n**Important:** \n - When integrating Microform (Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request.\n - When integrating Microform (ACH/eCheck) the allowedCardNetworks field is not required in the capture context request.\n - When integrating both Microform (Card) and Microform (ACH/eCheck) at least one card network should be specified in the allowedCardNetworks field in the capture context request.\n" }, "allowedPaymentTypes": { "type": "array", @@ -82205,6 +82205,23 @@ "x-example": { "example0": { "summary": "Generate Capture Context (Card)", + "value": { + "clientVersion": "v2", + "targetOrigins": [ + "https://www.test.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" + ], + "allowedPaymentTypes": [ + "CARD" + ] + } + }, + "example1": { + "summary": "Generate Capture Context With Full List of Card Networks (Card)", "value": { "clientVersion": "v2", "targetOrigins": [ @@ -82214,8 +82231,8 @@ "VISA", "MASTERCARD", "AMEX", - "CARNET", "CARTESBANCAIRES", + "CARNET", "CUP", "DINERSCLUB", "DISCOVER", @@ -82225,15 +82242,16 @@ "JCREW", "MADA", "MAESTRO", - "MEEZA" + "MEEZA", + "PAYPAK" ], "allowedPaymentTypes": [ "CARD" ] } }, - "example1": { - "summary": "Generate Capture Context (ACH/Echeck)", + "example2": { + "summary": "Generate Capture Context (ACH/eCheck)", "value": { "clientVersion": "v2", "targetOrigins": [ @@ -82244,7 +82262,7 @@ ] } }, - "example2": { + "example3": { "summary": "Generate Capture Context (Card - Opt-out of receiving card number prefix)", "value": { "clientVersion": "v2", @@ -82254,19 +82272,7 @@ "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "AMEX" ], "allowedPaymentTypes": [ "CARD" @@ -83874,6 +83880,11 @@ "departureDate": { "type": "string", "description": "Departure date for the first leg of the trip. Format: YYYYMMDD.\nRequired for American Express SafeKey (U.S.) for travel-related requests.\n" + }, + "departureTime": { + "type": "integer", + "maxLength": 4, + "description": "Time of departure for this leg of the trip. The format is military time and HHMM:\nIf not all zeros, then the hours must be `00-23` and the minutes must be `00-59`.\nFormat: English characters only.\nOptional request field for travel legs.\n" } } } @@ -87495,6 +87506,11 @@ "departureDate": { "type": "string", "description": "Departure date for the first leg of the trip. Format: YYYYMMDD.\nRequired for American Express SafeKey (U.S.) for travel-related requests.\n" + }, + "departureTime": { + "type": "integer", + "maxLength": 4, + "description": "Time of departure for this leg of the trip. The format is military time and HHMM:\nIf not all zeros, then the hours must be `00-23` and the minutes must be `00-59`.\nFormat: English characters only.\nOptional request field for travel legs.\n" } } } @@ -98193,6 +98209,21 @@ } } } + }, + "reactivationInformation": { + "type": "object", + "properties": { + "skippedPaymentsCount": { + "type": "string", + "maxLength": 10, + "description": "Number of payments that should have occurred while the subscription was in a suspended status.\n" + }, + "skippedPaymentsTotalAmount": { + "type": "string", + "maxLength": 19, + "description": "Total amount that will be charged upon reactivation if `processSkippedPayments` is set to `true`.\n" + } + } } } } @@ -98982,7 +99013,7 @@ "/rbs/v1/subscriptions/{id}/activate": { "post": { "summary": "Activate a Subscription", - "description": "Activate a `CANCELLED` Or `SUSPENDED` Subscription\n", + "description": "Activate a `SUSPENDED` Subscription\n", "tags": [ "Subscriptions" ], @@ -99008,6 +99039,14 @@ "type": "string", "required": true, "description": "Subscription Id" + }, + { + "name": "processSkippedPayments", + "in": "query", + "type": "boolean", + "description": "Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true.", + "required": false, + "default": true } ], "responses": { @@ -102181,6 +102220,10 @@ } } }, + "eventStatus": { + "type": "string", + "description": "The event status.\n" + }, "systemTraceAuditNumber": { "type": "string", "maxLength": 6, @@ -102818,6 +102861,7 @@ "postalCode": "78717", "postalCodeRaw": "1166678717" }, + "eventStatus": "Pending", "systemTraceAuditNumber": "123456", "responseCodeSource": "0", "paymentAccountReferenceNumber": "abc4545345dfsf2342342wfa" @@ -124236,10 +124280,62 @@ "enabled": { "type": "boolean" }, + "enablementStatus": { + "type": "string", + "default": "ENABLED_AND_USABLE", + "description": "Possible values:\n- PENDING\n- ENABLED_AND_USABLE\n- ENABLED_NOT_USABLE\n- DISABLED" + }, "selfServiceability": { "type": "string", "default": "NOT_SELF_SERVICEABLE", "description": "Indicates if the organization can enable this product using self service. \nPossible values:\n- SELF_SERVICEABLE\n- NOT_SELF_SERVICEABLE\n- SELF_SERVICE_ONLY" + }, + "features": { + "type": "object", + "properties": { + "pazeForUnifiedCheckout": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "description": "Enabling Paze under unified checkout" + } + } + } + } + }, + "configurationInformation": { + "type": "object", + "properties": { + "configurations": { + "type": "object", + "properties": { + "features": { + "type": "object", + "properties": { + "paze": { + "type": "object", + "properties": { + "financialInstitution": { + "type": "string", + "description": "Indicates the financial institution with whom the contract has been signed \nPossible values:\n- BANKOFAMERICA\n- WELLSFARGO" + }, + "financialInstitutionContract": { + "type": "boolean", + "description": "Indicates if the contract has been signed with the selected bank" + }, + "pazeEnabledInProfile": { + "type": "boolean", + "description": "Paze enabled in the profile for the merchants" + } + }, + "description": "Paze specific required configuration details under unified checkout" + } + } + } + } } } } @@ -133093,10 +133189,62 @@ "enabled": { "type": "boolean" }, + "enablementStatus": { + "type": "string", + "default": "ENABLED_AND_USABLE", + "description": "Possible values:\n- PENDING\n- ENABLED_AND_USABLE\n- ENABLED_NOT_USABLE\n- DISABLED" + }, "selfServiceability": { "type": "string", "default": "NOT_SELF_SERVICEABLE", "description": "Indicates if the organization can enable this product using self service. \nPossible values:\n- SELF_SERVICEABLE\n- NOT_SELF_SERVICEABLE\n- SELF_SERVICE_ONLY" + }, + "features": { + "type": "object", + "properties": { + "pazeForUnifiedCheckout": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "description": "Enabling Paze under unified checkout" + } + } + } + } + }, + "configurationInformation": { + "type": "object", + "properties": { + "configurations": { + "type": "object", + "properties": { + "features": { + "type": "object", + "properties": { + "paze": { + "type": "object", + "properties": { + "financialInstitution": { + "type": "string", + "description": "Indicates the financial institution with whom the contract has been signed \nPossible values:\n- BANKOFAMERICA\n- WELLSFARGO" + }, + "financialInstitutionContract": { + "type": "boolean", + "description": "Indicates if the contract has been signed with the selected bank" + }, + "pazeEnabledInProfile": { + "type": "boolean", + "description": "Paze enabled in the profile for the merchants" + } + }, + "description": "Paze specific required configuration details under unified checkout" + } + } + } + } } } } @@ -138106,46 +138254,50 @@ } } }, - "/dms/v3/devices/deassociate": { + "/dms/v2/devices/search": { "post": { - "summary": "De-associate a device from merchant to account or reseller and from account to reseller V3", - "description": "A device will be de-associated from its current organization and moved up in the hierarchy.\nThe device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user.\n", - "tags": [ - "Device De-Association V3" - ], - "operationId": "postDeAssociateV3Terminal", - "x-devcenter-metaData": { - "categoryTag": "Device_Management" - }, + "summary": "Retrieve List of Devices for a given search query V2", + "description": "Retrieves list of terminals in paginated format.", "parameters": [ { - "name": "deviceDeAssociateV3Request", - "required": true, + "name": "postDeviceSearchRequest", "in": "body", - "description": "deviceId that has to be de-associated to the destination organizationId.", + "required": true, "schema": { - "type": "array", - "items": { - "type": "object", - "required": [ - "deviceId" - ], - "properties": { - "deviceId": { - "type": "string", - "description": "ID of the device to be de-associated.", - "maxLength": 256 - }, - "organizationId": { - "type": "string", - "description": "A field representing value of either account id or portfolio id.", - "maxLength": 30 - } + "type": "object", + "properties": { + "query": { + "type": "string", + "description": "The Search Query to retrieve the Terminals(Example :- terminalSerialNumber:12345678 AND readerId:66c395ca-4f20-4b40-acac-5ff4c772d5f9 AND terminalId:T9KN88RTPE). Empty Query returns everything for the given organization." + }, + "sort": { + "type": "string", + "description": "The Sort Query to order the Terminals by. By Default, It is in ascending order of last update of a device." + }, + "offset": { + "type": "integer", + "format": "int64", + "description": "The offset or page number." + }, + "limit": { + "type": "integer", + "format": "int64", + "description": "Number of devices to retrieve in one request." } } } } ], + "tags": [ + "Device Search" + ], + "operationId": "postSearchQuery", + "x-devcenter-metaData": { + "categoryTag": "Device_Management", + "firstLevelApiLifeCycle": "hidden", + "secondLevelApiLifeCycle": "hidden", + "apiLifeCycle": "hidden" + }, "consumes": [ "application/json;charset=UTF-8" ], @@ -138154,70 +138306,528 @@ ], "responses": { "200": { - "description": "De-associated all device(s) to their respective destination(s)", - "schema": { - "type": "array", - "description": "A collection of details of each device de-associate", - "items": { - "type": "object", - "properties": { - "status": { - "type": "string", - "description": "Possible values:\n- OK" - }, - "devices": { - "type": "array", - "items": { - "type": "object", - "properties": { - "deviceId": { - "type": "string", - "example": "73c7d8ba-3673-4baf-801e-cf4bf5cc2b57" - }, - "reason": { - "type": "string", - "example": "Device detached successfully." - }, - "code": { - "type": "string", - "example": "deviceDetach.sync.success" - } - } - } - } - } - } - } - }, - "206": { - "description": "Partial Success. De-associated device(s) to their respective destination(s)", + "description": "Retrieved all Devices matched by the search query", "schema": { - "type": "array", - "description": "A collection of details of each device de-associate", - "items": { - "type": "object", - "properties": { - "status": { - "type": "string", - "description": "Possible values:\n- OK\n- BAD_REQUEST" - }, - "devices": { - "type": "array", - "items": { - "type": "object", - "properties": { - "deviceId": { - "type": "string", - "example": "73c7d8ba-3673-4baf-801e-cf4bf5cc2b57" - }, - "reason": { - "type": "string", - "example": "Device detached successfully." - }, - "code": { - "type": "string", - "example": "deviceDetach.sync.success" - } + "type": "object", + "properties": { + "totalCount": { + "type": "integer", + "description": "Total number of results." + }, + "offset": { + "type": "integer", + "description": "Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset.\n\nFor example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this:\n\n`offset=0`\n`offset=5`\n`offset=10`\n\n**Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned.\n" + }, + "limit": { + "type": "integer", + "description": "Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500.\n" + }, + "sort": { + "type": "string", + "description": "A comma separated list of the following form:\n\n`submitTimeUtc:desc`\n" + }, + "count": { + "type": "integer", + "description": "Results for this page, this could be below the limit." + }, + "devices": { + "type": "array", + "description": "A collection of devices", + "items": { + "type": "object", + "properties": { + "readerId": { + "type": "string", + "maxLength": 36 + }, + "terminalSerialNumber": { + "type": "string", + "maxLength": 256, + "pattern": "[0-9a-zA-Z][0-9a-zA-Z-]*" + }, + "terminalId": { + "type": "string", + "maxLength": 256 + }, + "model": { + "type": "string", + "maxLength": 256, + "pattern": "^[0-9a-zA-Z_ ]*$" + }, + "make": { + "type": "string", + "maxLength": 100, + "pattern": "^[0-9a-zA-Z_ ]*$" + }, + "hardwareRevision": { + "type": "string", + "maxLength": 256, + "pattern": "^[0-9a-zA-Z][0-9a-zA-Z-/_.]*$" + }, + "status": { + "type": "string", + "description": "Status of the device.\nPossible Values:\n - 'ACTIVE'\n - 'INACTIVE'\n" + }, + "creationDate": { + "type": "string", + "maxLength": 20, + "pattern": "YYYY-MM-DDThh:mm:ssZ" + }, + "pin": { + "type": "string" + } + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request. \nPossible values:\n- BAD_REQUEST" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "details": { + "type": "array", + "description": "An optional array which provides more details of the error.", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string", + "description": "This is the flattened JSON object field name/path that is either missing or invalid." + }, + "reason": { + "type": "string", + "description": "Possible reasons for the error.\n" + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact field error." + } + } + } + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- UNAUTHORIZED" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- FORBIDDEN" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "404": { + "description": "Not Found", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- NOT_FOUND" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "500": { + "description": "Unexpected system error or system timeout.", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- INTERNAL_SERVER_ERROR" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + } + } + } + }, + "/dms/v2/devices/deassociate": { + "patch": { + "summary": "De-associate a device from merchant or account V2", + "description": "The current association of the device will be removed and will be assigned back to parent in the hierarchy based on internal logic", + "tags": [ + "Device De-Association" + ], + "operationId": "deleteTerminalAssociation", + "x-devcenter-metaData": { + "categoryTag": "Device_Management", + "firstLevelApiLifeCycle": "hidden", + "secondLevelApiLifeCycle": "hidden", + "apiLifeCycle": "hidden" + }, + "parameters": [ + { + "name": "deAssociationRequestBody", + "required": true, + "in": "body", + "description": "de association of the deviceId in the request body.", + "schema": { + "type": "object", + "properties": { + "deviceId": { + "type": "string", + "description": "UUID of the device which needs to be de-associated" + } + } + } + } + ], + "consumes": [ + "application/json;charset=UTF-8" + ], + "responses": { + "204": { + "description": "The request is fulfilled but does not need to return a body" + }, + "400": { + "description": "Bad Request", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request. \nPossible values:\n- BAD_REQUEST" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "details": { + "type": "array", + "description": "An optional array which provides more details of the error.", + "items": { + "type": "object", + "properties": { + "field": { + "type": "string", + "description": "This is the flattened JSON object field name/path that is either missing or invalid." + }, + "reason": { + "type": "string", + "description": "Possible reasons for the error.\n" + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact field error." + } + } + } + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- UNAUTHORIZED" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "403": { + "description": "Forbidden", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- FORBIDDEN" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "404": { + "description": "Not Found", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- NOT_FOUND" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + }, + "500": { + "description": "Unexpected system error or system timeout.", + "schema": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "The status of the submitted request.\n \nPossible values:\n- INTERNAL_SERVER_ERROR" + }, + "message": { + "type": "string", + "description": "The detail message related to the status and reason listed above." + }, + "code": { + "type": "string", + "description": "An optional short string which identifies the exact error." + }, + "submitTimeUtc": { + "type": "string", + "description": "Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ`\n\nExample 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the\ntime. The Z indicates UTC.\n" + } + } + } + } + }, + "x-example": { + "example0": { + "summary": "De-associate a device based on its deviceId.", + "value": { + "deviceId": "6ba4a8e3-d437-476d-ab94-996598ac8706" + } + } + } + } + }, + "/dms/v3/devices/deassociate": { + "post": { + "summary": "De-associate a device from merchant to account or reseller and from account to reseller", + "description": "A device will be de-associated from its current organization and moved up in the hierarchy.\nThe device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user.\n", + "tags": [ + "Device De-Association" + ], + "operationId": "postDeAssociateV3Terminal", + "x-devcenter-metaData": { + "categoryTag": "Device_Management" + }, + "parameters": [ + { + "name": "deviceDeAssociateV3Request", + "required": true, + "in": "body", + "description": "deviceId that has to be de-associated to the destination organizationId.", + "schema": { + "type": "array", + "items": { + "type": "object", + "required": [ + "deviceId" + ], + "properties": { + "deviceId": { + "type": "string", + "description": "ID of the device to be de-associated.", + "maxLength": 256 + }, + "organizationId": { + "type": "string", + "description": "A field representing value of either account id or portfolio id.", + "maxLength": 30 + } + } + } + } + } + ], + "consumes": [ + "application/json;charset=UTF-8" + ], + "produces": [ + "application/json;charset=UTF-8" + ], + "responses": { + "200": { + "description": "De-associated all device(s) to their respective destination(s)", + "schema": { + "type": "array", + "description": "A collection of details of each device de-associate", + "items": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "Possible values:\n- OK" + }, + "devices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "deviceId": { + "type": "string", + "example": "73c7d8ba-3673-4baf-801e-cf4bf5cc2b57" + }, + "reason": { + "type": "string", + "example": "Device detached successfully." + }, + "code": { + "type": "string", + "example": "deviceDetach.sync.success" + } + } + } + } + } + } + } + }, + "206": { + "description": "Partial Success. De-associated device(s) to their respective destination(s)", + "schema": { + "type": "array", + "description": "A collection of details of each device de-associate", + "items": { + "type": "object", + "properties": { + "status": { + "type": "string", + "description": "Possible values:\n- OK\n- BAD_REQUEST" + }, + "devices": { + "type": "array", + "items": { + "type": "object", + "properties": { + "deviceId": { + "type": "string", + "example": "73c7d8ba-3673-4baf-801e-cf4bf5cc2b57" + }, + "reason": { + "type": "string", + "example": "Device detached successfully." + }, + "code": { + "type": "string", + "example": "deviceDetach.sync.success" + } } } } @@ -138387,7 +138997,7 @@ }, "/dms/v3/devices/search": { "post": { - "summary": "Retrieve List of Devices for a given search query V3", + "summary": "Retrieve List of Devices for a given search query", "description": "Search for devices matching a given search query.\n\nThe search query supports serialNumber, readerId, terminalId, status, statusChangeReason or organizationId\n\nMatching results are paginated.\n", "parameters": [ { @@ -138724,14 +139334,14 @@ "MASTERCARD" ] }, - "description": "The list of card networks you want to use for this Unified Checkout transaction.\n\nUnified Checkout currently supports the following card networks:\n - VISA\n - MASTERCARD\n - AMEX\n - CARNET\n - CARTESBANCAIRES\n - CUP\n - DINERSCLUB\n - DISCOVER\n - EFTPOS\n - ELO\n - JCB\n - JCREW\n - MADA\n - MAESTRO\n - MEEZA\n" + "description": "The list of card networks you want to use for this Unified Checkout transaction.\n\nUnified Checkout currently supports the following card networks:\n - VISA\n - MASTERCARD\n - AMEX\n - CARNET\n - CARTESBANCAIRES\n - CUP\n - DINERSCLUB\n - DISCOVER\n - EFTPOS\n - ELO\n - JCB\n - JCREW\n - MADA\n - MAESTRO\n - MEEZA\n - PAYPAK\n" }, "allowedPaymentTypes": { "type": "array", "items": { "type": "string" }, - "description": "The payment types that are allowed for the merchant. \n\nPossible values when launching Unified Checkout:\n - APPLEPAY\n - CHECK\n - CLICKTOPAY\n - GOOGLEPAY\n - PANENTRY \n - PAZE

\n\nPossible values when launching Click To Pay Drop-In UI:\n- CLICKTOPAY

\n\n**Important:** \n - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards.\n - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester.\n - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

\n\n**Managing Google Pay Authentication Types**\nWhen you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.\n" + "description": "The payment types that are allowed for the merchant. \n\nPossible values when launching Unified Checkout:\n - APPLEPAY\n - CHECK\n - CLICKTOPAY\n - GOOGLEPAY\n - PANENTRY \n - PAZE

\n\nUnified Checkout also supports the following Alternative Payments:\n - AFTERPAY

\n\nPossible values when launching Click To Pay Drop-In UI:\n- CLICKTOPAY

\n\n**Important:** \n - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards.\n - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester.\n - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

\n\n**Managing Google Pay Authentication Types**\nWhen you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.

\n\n**Managing Google Pay Authentication Types**\nWhere Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". \n\nThis is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\".\n - UAE\n - Argentina\n - Brazil\n - Chile\n - Colombia\n - Kuwait\n - Mexico\n - Peru\n - Qatar\n - Saudi Arabia\n - Ukraine\n - South Africa

\n\nIf false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry.\n" }, "country": { "type": "string", @@ -138778,6 +139388,10 @@ "type": "boolean", "description": "Configure Unified Checkout to display the list of accepted card networks beneath the payment button\n\nPossible values:\n- True\n- False\n" }, + "showConfirmationStep": { + "type": "boolean", + "description": "Configure Unified Checkout to display the final confirmation screen when using Click to Pay.
\nWhere 'BillingType'= NONE and 'requestShipping'= FALSE and the customer is using an existing Click to Pay card as their chosen payment method, a final confirmation screen can be removed allowing the customer to check out as soon as they have selected their payment method from within their Click to Pay card tray.\n\nPossible values:\n- True\n- False\n" + }, "requestSaveCard": { "type": "boolean", "description": "Configure Unified Checkout to display the \"Save card for future use\" checkbox.
\n\nConfigurable check box that will show in a Manual card entry flow to allow a Cardholder to give consent to store their manually entered credential with the Merchant that they are paying.
\nApplicable when manually entering the details and not enrolling in Click to Pay.\n\nPossible values:\n - True \n - False

\n\n**Use Cases:**\n\n**Offer consumers option to save their card in Unified Checkout:** \n- Include the captureMandate.requestSaveCard field in the capture context request and set it to true.\n- When set to true, this will show a checkbox with the message 'Save card for future use' in Unified Checkout.\n- When selected this provides a response in both the Transient Token and Get Credentials API response.

\n\n**Do not offer consumers the option to save their card in Unified Checkout:** \n- Include the captureMandate.requestSaveCard field in the capture context request and set it to false OR omit the field from the capture context request.\n- When set to false, the save card option is not shown to consumers when manually entering card details.\n" @@ -138800,11 +139414,15 @@ "type": "string", "example": "AUTH", "maxLength": 25, - "description": "This field is used to indicate how a payment should be processed.\n\nPossible values:\n- AUTH: Use this value when you want to authorize a payment without capturing it immediately. Payment types that initiate an immediate transfer of funds are not allowed. If a capture context request includes a payment type incompatible with this mode, a 400 error will be returned.

\n- CAPTURE: Use this value when you want to capture the payment immediately during the transaction. Note: Some payment types may return a PENDING status, requiring an additional status check call to determine the final outcome of the payment.

\n- PREFER_AUTH: Use this value to offer multiple alternative payment options during the Unified Checkout experience. This option authorizes the payment without immediate capture, where available. Payment types like account-to-account transfers that initiate an immediate transfer of funds are allowed and presented to the customer. If selected, an immediate transfer of funds occurs; otherwise, a final backend call is needed to capture the payment. Transactions can be AUTHORIZED, CAPTURED, or PENDING.\n" + "description": "This field is used to indicate how a payment should be processed.\n\nPossible values:\n- AUTH: Use this value when you want to authorize a payment within Unified Checkout without capturing it immediately. Payment types that initiate an immediate transfer of funds are NOT allowed. If a capture context request includes a payment type incompatible with this mode, a 400 error will be returned. A merchant would need to perform their own capture via API where applicable.

\n- CAPTURE: Use this value when you want to perform a sale within Unified Checkout and capture the payment immediately during the transaction. Note: Some payment types may return a PENDING status, requiring an additional status check call to determine the final outcome of the payment.

\n- PREFER_AUTH: Use this value to offer multiple alternative payment options during the Unified Checkout experience. This option authorizes the payment without immediate capture, where available. It will perform a \"CAPTURE\" where an \"AUTH\" is not allowed by the payment type. Transactions can be AUTHORIZED, CAPTURED, or PENDING. If an \"AUTH\" is performed, a merchant would need to perform their own capture via API where applicable.\n" }, "decisionManager": { "type": "boolean", - "description": "Configure Unified Checkout to determine whether Decision Manager is invoked during service orchestration.\n\nPossible values:\n - True\n - False

\n\nSetting this value to True indicates that device fingerprinting will be executed to add additional information for risk service\nSetting this value to False indicates that you do not wish to run device fingerprinting and skip decision manager services.\n" + "description": "Configure Unified Checkout to determine whether Decision Manager is invoked during service orchestration.\n\nPossible values:\n - True\n - False

\n\nSetting this value to True indicates that device fingerprinting will be executed to add additional information for risk service\nSetting this value to False (or not provided) indicates that you do not wish to run device fingerprinting and skip decision manager services.\n" + }, + "consumerAuthentication": { + "type": "boolean", + "description": "Configure Unified Checkout to determine whether Consumer Authentication is invoked during service orchestration.\n\nPossible values:\n - True\n - False

\n\nSetting this value to True will attempt to perform authentication using the Payer Authentication Service.\nSetting this value to False (or not provided) indicates that you do not wish to perform authentication using the Payer Authentication Service.\n" } } }, @@ -139102,26 +139720,14 @@ "example0": { "summary": "Generate Unified Checkout Capture Context", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "AMEX" ], "allowedPaymentTypes": [ "APPLEPAY", @@ -139129,7 +139735,8 @@ "CLICKTOPAY", "GOOGLEPAY", "PANENTRY", - "PAZE" + "PAZE", + "AFTERPAY" ], "country": "US", "locale": "en_US", @@ -139144,6 +139751,11 @@ ], "showAcceptedNetworkIcons": true }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, "orderInformation": { "amountDetails": { "totalAmount": "21.00", @@ -139153,16 +139765,29 @@ } }, "example1": { - "summary": "Generate Unified Checkout Capture Context with Service Orchestration", + "summary": "Generate Unified Checkout Capture Context With Full List of Card Networks", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX" + "AMEX", + "CARTESBANCAIRES", + "CARNET", + "CUP", + "DINERSCLUB", + "DISCOVER", + "EFTPOS", + "ELO", + "JCB", + "JCREW", + "MADA", + "MAESTRO", + "MEEZA", + "PAYPAK" ], "allowedPaymentTypes": [ "APPLEPAY", @@ -139170,7 +139795,8 @@ "CLICKTOPAY", "GOOGLEPAY", "PANENTRY", - "PAZE" + "PAZE", + "AFTERPAY" ], "country": "US", "locale": "en_US", @@ -139186,8 +139812,9 @@ "showAcceptedNetworkIcons": true }, "completeMandate": { - "type": "AUTH", - "decisionManager": true + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true }, "orderInformation": { "amountDetails": { @@ -139198,28 +139825,16 @@ } }, "example2": { - "summary": "Generate Unified Checkout Capture Context With Custom Payment Options", + "summary": "Generate Unified Checkout Capture Context With Custom Google Payment Options", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "AMEX" ], "allowedPaymentTypes": [ "APPLEPAY", @@ -139235,7 +139850,8 @@ } }, "PANENTRY", - "PAZE" + "PAZE", + "AFTERPAY" ], "country": "US", "locale": "en_US", @@ -139250,6 +139866,11 @@ ], "showAcceptedNetworkIcons": true }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, "orderInformation": { "amountDetails": { "totalAmount": "21.00", @@ -139259,9 +139880,9 @@ } }, "example3": { - "summary": "Generate Unified Checkout Capture Context (Opt-out of receiving card number prefix)", + "summary": "Generate Unified Checkout Capture Context With Autocheck Enrollment", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], @@ -139269,18 +139890,54 @@ "VISA", "MASTERCARD", "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "ELO" + ], + "allowedPaymentTypes": [ + "GOOGLEPAY", + { + "type": "CLICKTOPAY", + "options": { + "autoCheckEnrollment": true + } + }, + "PANENTRY" + ], + "country": "BR", + "locale": "pt_BR", + "captureMandate": { + "billingType": "FULL", + "requestEmail": true, + "requestPhone": true, + "requestShipping": true, + "shipToCountries": [ + "BR" + ], + "showAcceptedNetworkIcons": true + }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, + "orderInformation": { + "amountDetails": { + "totalAmount": "21.00", + "currency": "USD" + } + } + } + }, + "example4": { + "summary": "Generate Unified Checkout Capture Context (Opt-out of receiving card number prefix)", + "value": { + "clientVersion": "0.28", + "targetOrigins": [ + "https://yourCheckoutPage.com" + ], + "allowedCardNetworks": [ + "VISA", + "MASTERCARD", + "AMEX" ], "allowedPaymentTypes": [ "APPLEPAY", @@ -139288,7 +139945,8 @@ "CLICKTOPAY", "GOOGLEPAY", "PANENTRY", - "PAZE" + "PAZE", + "AFTERPAY" ], "country": "US", "locale": "en_US", @@ -139303,6 +139961,11 @@ ], "showAcceptedNetworkIcons": true }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, "orderInformation": { "amountDetails": { "totalAmount": "21.00", @@ -139314,29 +139977,17 @@ } } }, - "example4": { + "example5": { "summary": "Generate Unified Checkout Capture Context passing Billing & Shipping", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "AMEX" ], "allowedPaymentTypes": [ "APPLEPAY", @@ -139344,7 +139995,8 @@ "CLICKTOPAY", "GOOGLEPAY", "PANENTRY", - "PAZE" + "PAZE", + "AFTERPAY" ], "country": "US", "locale": "en_US", @@ -139359,6 +140011,11 @@ ], "showAcceptedNetworkIcons": true }, + "completeMandate": { + "type": "PREFER_AUTH", + "decisionManager": true, + "consumerAuthentication": true + }, "orderInformation": { "amountDetails": { "totalAmount": "21.00", @@ -139414,29 +140071,17 @@ } } }, - "example5": { + "example6": { "summary": "Generate Capture Context For Click To Pay Drop-In UI", "value": { - "clientVersion": "0.26", + "clientVersion": "0.28", "targetOrigins": [ "https://yourCheckoutPage.com" ], "allowedCardNetworks": [ "VISA", "MASTERCARD", - "AMEX", - "CARNET", - "CARTESBANCAIRES", - "CUP", - "DINERSCLUB", - "DISCOVER", - "EFTPOS", - "ELO", - "JCB", - "JCREW", - "MADA", - "MAESTRO", - "MEEZA" + "AMEX" ], "allowedPaymentTypes": [ "CLICKTOPAY" diff --git a/lib/cybersource_rest_client.rb b/lib/cybersource_rest_client.rb index 85eb893a..c88e64db 100644 --- a/lib/cybersource_rest_client.rb +++ b/lib/cybersource_rest_client.rb @@ -126,6 +126,7 @@ require 'cybersource_rest_client/models/create_subscription_response__links' require 'cybersource_rest_client/models/create_subscription_response_subscription_information' require 'cybersource_rest_client/models/create_webhook' +require 'cybersource_rest_client/models/de_association_request_body' require 'cybersource_rest_client/models/delete_plan_response' require 'cybersource_rest_client/models/device_de_associate_v3_request' require 'cybersource_rest_client/models/dm_config' @@ -200,9 +201,15 @@ require 'cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information' require 'cybersource_rest_client/models/get_subscription_response_1_payment_instrument_card' require 'cybersource_rest_client/models/get_subscription_response_1_shipping_address' +require 'cybersource_rest_client/models/get_subscription_response_reactivation_information' require 'cybersource_rest_client/models/increment_auth_request' require 'cybersource_rest_client/models/inline_response_200' require 'cybersource_rest_client/models/inline_response_200_1' +require 'cybersource_rest_client/models/inline_response_200_10' +require 'cybersource_rest_client/models/inline_response_200_10_records' +require 'cybersource_rest_client/models/inline_response_200_10_response_record' +require 'cybersource_rest_client/models/inline_response_200_10_response_record_additional_updates' +require 'cybersource_rest_client/models/inline_response_200_10_source_record' require 'cybersource_rest_client/models/inline_response_200_1__embedded' require 'cybersource_rest_client/models/inline_response_200_1__embedded_capture' require 'cybersource_rest_client/models/inline_response_200_1__embedded_capture__links' @@ -216,25 +223,22 @@ require 'cybersource_rest_client/models/inline_response_200_3' require 'cybersource_rest_client/models/inline_response_200_4' require 'cybersource_rest_client/models/inline_response_200_5' +require 'cybersource_rest_client/models/inline_response_200_5_devices' require 'cybersource_rest_client/models/inline_response_200_6' -require 'cybersource_rest_client/models/inline_response_200_6_devices' -require 'cybersource_rest_client/models/inline_response_200_6_payment_processor_to_terminal_map' require 'cybersource_rest_client/models/inline_response_200_7' -require 'cybersource_rest_client/models/inline_response_200_7__embedded' -require 'cybersource_rest_client/models/inline_response_200_7__embedded_batches' -require 'cybersource_rest_client/models/inline_response_200_7__embedded__links' -require 'cybersource_rest_client/models/inline_response_200_7__embedded__links_reports' -require 'cybersource_rest_client/models/inline_response_200_7__embedded_totals' -require 'cybersource_rest_client/models/inline_response_200_7__links' +require 'cybersource_rest_client/models/inline_response_200_7_devices' +require 'cybersource_rest_client/models/inline_response_200_7_payment_processor_to_terminal_map' require 'cybersource_rest_client/models/inline_response_200_8' -require 'cybersource_rest_client/models/inline_response_200_8_billing' +require 'cybersource_rest_client/models/inline_response_200_8__embedded' +require 'cybersource_rest_client/models/inline_response_200_8__embedded_batches' +require 'cybersource_rest_client/models/inline_response_200_8__embedded__links' +require 'cybersource_rest_client/models/inline_response_200_8__embedded__links_reports' +require 'cybersource_rest_client/models/inline_response_200_8__embedded_totals' require 'cybersource_rest_client/models/inline_response_200_8__links' -require 'cybersource_rest_client/models/inline_response_200_8__links_report' require 'cybersource_rest_client/models/inline_response_200_9' -require 'cybersource_rest_client/models/inline_response_200_9_records' -require 'cybersource_rest_client/models/inline_response_200_9_response_record' -require 'cybersource_rest_client/models/inline_response_200_9_response_record_additional_updates' -require 'cybersource_rest_client/models/inline_response_200_9_source_record' +require 'cybersource_rest_client/models/inline_response_200_9_billing' +require 'cybersource_rest_client/models/inline_response_200_9__links' +require 'cybersource_rest_client/models/inline_response_200_9__links_report' require 'cybersource_rest_client/models/inline_response_200_content' require 'cybersource_rest_client/models/inline_response_201' require 'cybersource_rest_client/models/inline_response_201_1' @@ -466,6 +470,14 @@ require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_payment_information' require 'cybersource_rest_client/models/payments_products_service_fee_configuration_information_configurations_products' require 'cybersource_rest_client/models/payments_products_tax' +require 'cybersource_rest_client/models/payments_products_unified_checkout' +require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information' +require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations' +require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features' +require 'cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features_paze' +require 'cybersource_rest_client/models/payments_products_unified_checkout_subscription_information' +require 'cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features' +require 'cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout' require 'cybersource_rest_client/models/payments_products_virtual_terminal' require 'cybersource_rest_client/models/payments_products_virtual_terminal_configuration_information' require 'cybersource_rest_client/models/payments_strong_auth_issuer_information' @@ -486,6 +498,7 @@ require 'cybersource_rest_client/models/post_customer_payment_instrument_request' require 'cybersource_rest_client/models/post_customer_request' require 'cybersource_rest_client/models/post_customer_shipping_address_request' +require 'cybersource_rest_client/models/post_device_search_request' require 'cybersource_rest_client/models/post_device_search_request_v3' require 'cybersource_rest_client/models/post_instrument_identifier_enrollment_request' require 'cybersource_rest_client/models/post_instrument_identifier_request' @@ -1502,7 +1515,7 @@ require 'cybersource_rest_client/api/customer_payment_instrument_api' require 'cybersource_rest_client/api/customer_shipping_address_api' require 'cybersource_rest_client/api/decision_manager_api' -require 'cybersource_rest_client/api/device_de_association_v3_api' +require 'cybersource_rest_client/api/device_de_association_api' require 'cybersource_rest_client/api/device_search_api' require 'cybersource_rest_client/api/download_dtd_api' require 'cybersource_rest_client/api/download_xsd_api' diff --git a/lib/cybersource_rest_client/api/batches_api.rb b/lib/cybersource_rest_client/api/batches_api.rb index 9765cf6a..fb493e75 100644 --- a/lib/cybersource_rest_client/api/batches_api.rb +++ b/lib/cybersource_rest_client/api/batches_api.rb @@ -24,7 +24,7 @@ def initialize(api_client = ApiClient.default, config) # # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [InlineResponse2009] + # @return [InlineResponse20010] # def get_batch_report(batch_id, opts = {}) data, status_code, headers = get_batch_report_with_http_info(batch_id, opts) @@ -35,7 +35,7 @@ def get_batch_report(batch_id, opts = {}) # **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type. # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers + # @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers def get_batch_report_with_http_info(batch_id, opts = {}) if @api_client.config.debugging @@ -87,7 +87,7 @@ def get_batch_report_with_http_info(batch_id, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2009') + :return_type => 'InlineResponse20010') if @api_client.config.debugging begin raise @@ -103,7 +103,7 @@ def get_batch_report_with_http_info(batch_id, opts = {}) # # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [InlineResponse2008] + # @return [InlineResponse2009] # def get_batch_status(batch_id, opts = {}) data, status_code, headers = get_batch_status_with_http_info(batch_id, opts) @@ -114,7 +114,7 @@ def get_batch_status(batch_id, opts = {}) # **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers + # @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers def get_batch_status_with_http_info(batch_id, opts = {}) if @api_client.config.debugging @@ -166,7 +166,7 @@ def get_batch_status_with_http_info(batch_id, opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2008') + :return_type => 'InlineResponse2009') if @api_client.config.debugging begin raise @@ -185,7 +185,7 @@ def get_batch_status_with_http_info(batch_id, opts = {}) # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. (default to 20) # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ - # @return [InlineResponse2007] + # @return [InlineResponse2008] # def get_batches_list(opts = {}) data, status_code, headers = get_batches_list_with_http_info(opts) @@ -199,7 +199,7 @@ def get_batches_list(opts = {}) # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ - # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers + # @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers def get_batches_list_with_http_info(opts = {}) if @api_client.config.debugging @@ -247,7 +247,7 @@ def get_batches_list_with_http_info(opts = {}) :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2007') + :return_type => 'InlineResponse2008') if @api_client.config.debugging begin raise diff --git a/lib/cybersource_rest_client/api/device_de_association_api.rb b/lib/cybersource_rest_client/api/device_de_association_api.rb new file mode 100644 index 00000000..ddddb73a --- /dev/null +++ b/lib/cybersource_rest_client/api/device_de_association_api.rb @@ -0,0 +1,168 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'uri' +require 'AuthenticationSDK/util/MLEUtility' +module CyberSource + class DeviceDeAssociationApi + attr_accessor :api_client + + def initialize(api_client = ApiClient.default, config) + @api_client = api_client + @api_client.set_configuration(config) + end + # De-associate a device from merchant or account V2 + # The current association of the device will be removed and will be assigned back to parent in the hierarchy based on internal logic + # + # @param de_association_request_body de association of the deviceId in the request body. + # @param [Hash] opts the optional parameters + # @return [nil] + # + def delete_terminal_association(de_association_request_body, opts = {}) + data, status_code, headers = delete_terminal_association_with_http_info(de_association_request_body, opts) + return data, status_code, headers + end + + # De-associate a device from merchant or account V2 + # The current association of the device will be removed and will be assigned back to parent in the hierarchy based on internal logic + # @param de_association_request_body de association of the deviceId in the request body. + # @param [Hash] opts the optional parameters + # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers + def delete_terminal_association_with_http_info(de_association_request_body, opts = {}) + + if @api_client.config.debugging + begin + raise + @api_client.config.logger.debug 'Calling API: DeviceDeAssociationApi.delete_terminal_association ...' + rescue + puts 'Cannot write to log' + end + end + # verify the required parameter 'de_association_request_body' is set + if @api_client.config.client_side_validation && de_association_request_body.nil? + fail ArgumentError, "Missing the required parameter 'de_association_request_body' when calling DeviceDeAssociationApi.delete_terminal_association" + end + # resource path + local_var_path = 'dms/v2/devices/deassociate' + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=UTF-8']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(de_association_request_body) + sdk_tracker = SdkTracker.new + post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'DeAssociationRequestBody', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) + is_mle_supported_by_cybs_for_api = false + if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["delete_terminal_association","delete_terminal_association_with_http_info"]) + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + end + auth_names = [] + data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names) + if @api_client.config.debugging + begin + raise + @api_client.config.logger.debug "API called: DeviceDeAssociationApi#delete_terminal_association\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + rescue + puts 'Cannot write to log' + end + end + return data, status_code, headers + end + # De-associate a device from merchant to account or reseller and from account to reseller + # A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user. + # + # @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId. + # @param [Hash] opts the optional parameters + # @return [Array] + # + def post_de_associate_v3_terminal(device_de_associate_v3_request, opts = {}) + data, status_code, headers = post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, opts) + return data, status_code, headers + end + + # De-associate a device from merchant to account or reseller and from account to reseller + # A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user. + # @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId. + # @param [Hash] opts the optional parameters + # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers + def post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, opts = {}) + + if @api_client.config.debugging + begin + raise + @api_client.config.logger.debug 'Calling API: DeviceDeAssociationApi.post_de_associate_v3_terminal ...' + rescue + puts 'Cannot write to log' + end + end + # verify the required parameter 'device_de_associate_v3_request' is set + if @api_client.config.client_side_validation && device_de_associate_v3_request.nil? + fail ArgumentError, "Missing the required parameter 'device_de_associate_v3_request' when calling DeviceDeAssociationApi.post_de_associate_v3_terminal" + end + # resource path + local_var_path = 'dms/v3/devices/deassociate' + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=UTF-8']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(device_de_associate_v3_request) + sdk_tracker = SdkTracker.new + post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Array<DeviceDeAssociateV3Request>', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) + is_mle_supported_by_cybs_for_api = false + if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["post_de_associate_v3_terminal","post_de_associate_v3_terminal_with_http_info"]) + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + end + auth_names = [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'Array') + if @api_client.config.debugging + begin + raise + @api_client.config.logger.debug "API called: DeviceDeAssociationApi#post_de_associate_v3_terminal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + rescue + puts 'Cannot write to log' + end + end + return data, status_code, headers + end + end +end diff --git a/lib/cybersource_rest_client/api/device_de_association_v3_api.rb b/lib/cybersource_rest_client/api/device_de_association_v3_api.rb deleted file mode 100644 index bcf3fe8d..00000000 --- a/lib/cybersource_rest_client/api/device_de_association_v3_api.rb +++ /dev/null @@ -1,96 +0,0 @@ -=begin -#CyberSource Merged Spec - -#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html - -OpenAPI spec version: 0.0.1 - -Generated by: https://github.com/swagger-api/swagger-codegen.git -Swagger Codegen version: 2.4.38 -=end - -require 'uri' -require 'AuthenticationSDK/util/MLEUtility' -module CyberSource - class DeviceDeAssociationV3Api - attr_accessor :api_client - - def initialize(api_client = ApiClient.default, config) - @api_client = api_client - @api_client.set_configuration(config) - end - # De-associate a device from merchant to account or reseller and from account to reseller V3 - # A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user. - # - # @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId. - # @param [Hash] opts the optional parameters - # @return [Array] - # - def post_de_associate_v3_terminal(device_de_associate_v3_request, opts = {}) - data, status_code, headers = post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, opts) - return data, status_code, headers - end - - # De-associate a device from merchant to account or reseller and from account to reseller V3 - # A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user. - # @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId. - # @param [Hash] opts the optional parameters - # @return [Array<(Array, Fixnum, Hash)>] Array data, response status code and response headers - def post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, opts = {}) - - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug 'Calling API: DeviceDeAssociationV3Api.post_de_associate_v3_terminal ...' - rescue - puts 'Cannot write to log' - end - end - # verify the required parameter 'device_de_associate_v3_request' is set - if @api_client.config.client_side_validation && device_de_associate_v3_request.nil? - fail ArgumentError, "Missing the required parameter 'device_de_associate_v3_request' when calling DeviceDeAssociationV3Api.post_de_associate_v3_terminal" - end - # resource path - local_var_path = 'dms/v3/devices/deassociate' - - # query parameters - query_params = {} - - # header parameters - header_params = {} - # HTTP header 'Accept' (if needed) - header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8']) - # HTTP header 'Content-Type' - header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=UTF-8']) - - # form parameters - form_params = {} - - # http body (model) - post_body = @api_client.object_to_http_body(device_de_associate_v3_request) - sdk_tracker = SdkTracker.new - post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'DeviceDeAssociateV3Request', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) - is_mle_supported_by_cybs_for_api = false - if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["post_de_associate_v3_terminal","post_de_associate_v3_terminal_with_http_info"]) - post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) - end - auth_names = [] - data, status_code, headers = @api_client.call_api(:POST, local_var_path, - :header_params => header_params, - :query_params => query_params, - :form_params => form_params, - :body => post_body, - :auth_names => auth_names, - :return_type => 'Array') - if @api_client.config.debugging - begin - raise - @api_client.config.logger.debug "API called: DeviceDeAssociationV3Api#post_de_associate_v3_terminal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" - rescue - puts 'Cannot write to log' - end - end - return data, status_code, headers - end - end -end diff --git a/lib/cybersource_rest_client/api/device_search_api.rb b/lib/cybersource_rest_client/api/device_search_api.rb index 32f6b722..b4f415ed 100644 --- a/lib/cybersource_rest_client/api/device_search_api.rb +++ b/lib/cybersource_rest_client/api/device_search_api.rb @@ -19,23 +19,96 @@ def initialize(api_client = ApiClient.default, config) @api_client = api_client @api_client.set_configuration(config) end - # Retrieve List of Devices for a given search query V3 + # Retrieve List of Devices for a given search query V2 + # Retrieves list of terminals in paginated format. + # + # @param post_device_search_request + # @param [Hash] opts the optional parameters + # @return [InlineResponse2005] + # + def post_search_query(post_device_search_request, opts = {}) + data, status_code, headers = post_search_query_with_http_info(post_device_search_request, opts) + return data, status_code, headers + end + + # Retrieve List of Devices for a given search query V2 + # Retrieves list of terminals in paginated format. + # @param post_device_search_request + # @param [Hash] opts the optional parameters + # @return [Array<(InlineResponse2005, Fixnum, Hash)>] InlineResponse2005 data, response status code and response headers + def post_search_query_with_http_info(post_device_search_request, opts = {}) + + if @api_client.config.debugging + begin + raise + @api_client.config.logger.debug 'Calling API: DeviceSearchApi.post_search_query ...' + rescue + puts 'Cannot write to log' + end + end + # verify the required parameter 'post_device_search_request' is set + if @api_client.config.client_side_validation && post_device_search_request.nil? + fail ArgumentError, "Missing the required parameter 'post_device_search_request' when calling DeviceSearchApi.post_search_query" + end + # resource path + local_var_path = 'dms/v2/devices/search' + + # query parameters + query_params = {} + + # header parameters + header_params = {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=UTF-8']) + # HTTP header 'Content-Type' + header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=UTF-8']) + + # form parameters + form_params = {} + + # http body (model) + post_body = @api_client.object_to_http_body(post_device_search_request) + sdk_tracker = SdkTracker.new + post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostDeviceSearchRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId) + is_mle_supported_by_cybs_for_api = false + if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["post_search_query","post_search_query_with_http_info"]) + post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body) + end + auth_names = [] + data, status_code, headers = @api_client.call_api(:POST, local_var_path, + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => 'InlineResponse2005') + if @api_client.config.debugging + begin + raise + @api_client.config.logger.debug "API called: DeviceSearchApi#post_search_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + rescue + puts 'Cannot write to log' + end + end + return data, status_code, headers + end + # Retrieve List of Devices for a given search query # Search for devices matching a given search query. The search query supports serialNumber, readerId, terminalId, status, statusChangeReason or organizationId Matching results are paginated. # # @param post_device_search_request_v3 # @param [Hash] opts the optional parameters - # @return [InlineResponse2006] + # @return [InlineResponse2007] # def post_search_query_v3(post_device_search_request_v3, opts = {}) data, status_code, headers = post_search_query_v3_with_http_info(post_device_search_request_v3, opts) return data, status_code, headers end - # Retrieve List of Devices for a given search query V3 + # Retrieve List of Devices for a given search query # Search for devices matching a given search query. The search query supports serialNumber, readerId, terminalId, status, statusChangeReason or organizationId Matching results are paginated. # @param post_device_search_request_v3 # @param [Hash] opts the optional parameters - # @return [Array<(InlineResponse2006, Fixnum, Hash)>] InlineResponse2006 data, response status code and response headers + # @return [Array<(InlineResponse2007, Fixnum, Hash)>] InlineResponse2007 data, response status code and response headers def post_search_query_v3_with_http_info(post_device_search_request_v3, opts = {}) if @api_client.config.debugging @@ -81,7 +154,7 @@ def post_search_query_v3_with_http_info(post_device_search_request_v3, opts = {} :form_params => form_params, :body => post_body, :auth_names => auth_names, - :return_type => 'InlineResponse2006') + :return_type => 'InlineResponse2007') if @api_client.config.debugging begin raise diff --git a/lib/cybersource_rest_client/api/subscriptions_api.rb b/lib/cybersource_rest_client/api/subscriptions_api.rb index 8906b003..f3fa4c3c 100644 --- a/lib/cybersource_rest_client/api/subscriptions_api.rb +++ b/lib/cybersource_rest_client/api/subscriptions_api.rb @@ -20,10 +20,11 @@ def initialize(api_client = ApiClient.default, config) @api_client.set_configuration(config) end # Activate a Subscription - # Activate a `CANCELLED` Or `SUSPENDED` Subscription + # Activate a `SUSPENDED` Subscription # # @param id Subscription Id # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :process_skipped_payments Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. (default to true) # @return [ActivateSubscriptionResponse] # def activate_subscription(id, opts = {}) @@ -32,9 +33,10 @@ def activate_subscription(id, opts = {}) end # Activate a Subscription - # Activate a `CANCELLED` Or `SUSPENDED` Subscription + # Activate a `SUSPENDED` Subscription # @param id Subscription Id # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :process_skipped_payments Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. # @return [Array<(ActivateSubscriptionResponse, Fixnum, Hash)>] ActivateSubscriptionResponse data, response status code and response headers def activate_subscription_with_http_info(id, opts = {}) @@ -55,6 +57,7 @@ def activate_subscription_with_http_info(id, opts = {}) # query parameters query_params = {} + query_params[:'processSkippedPayments'] = opts[:'process_skipped_payments'] if !opts[:'process_skipped_payments'].nil? # header parameters header_params = {} diff --git a/lib/cybersource_rest_client/models/de_association_request_body.rb b/lib/cybersource_rest_client/models/de_association_request_body.rb new file mode 100644 index 00000000..7182144a --- /dev/null +++ b/lib/cybersource_rest_client/models/de_association_request_body.rb @@ -0,0 +1,190 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class DeAssociationRequestBody + # UUID of the device which needs to be de-associated + attr_accessor :device_id + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'device_id' => :'deviceId' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'device_id' => :'device_id' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'device_id' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'deviceId') + self.device_id = attributes[:'deviceId'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + device_id == o.device_id + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [device_id].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/generate_capture_context_request.rb b/lib/cybersource_rest_client/models/generate_capture_context_request.rb index 5722ab23..bc7ac8e9 100644 --- a/lib/cybersource_rest_client/models/generate_capture_context_request.rb +++ b/lib/cybersource_rest_client/models/generate_capture_context_request.rb @@ -20,7 +20,7 @@ class GenerateCaptureContextRequest # The [target origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the website on which you will be launching Microform is defined by the scheme (protocol), hostname (domain) and port number (if used). You must use https://hostname (unless you use http://localhost) Wildcards are NOT supported. Ensure that subdomains are included. Any valid top-level domain is supported (e.g. .com, .co.uk, .gov.br etc) Examples: - https://example.com - https://subdomain.example.com - https://example.com:8080

If you are embedding within multiple nested iframes you need to specify the origins of all the browser contexts used, for example: targetOrigins: [ \"https://example.com\", \"https://basket.example.com\", \"https://ecom.example.com\" ]

You can supply up to nine origins within the targetOrigins field for nested iframes. If the list of origins exceeds five ensure that you: - Compare the list of origins in the v2/sessions targetOrigins field against the location.ancestorOrigins of the browser. - Ensure that the count of origins and their content matches in both. If any origins are absent or mismatched, the system will prevent Microform from loading and display a client-side error message. attr_accessor :target_origins - # The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA **Important:** - When integrating Microform (Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request. - When integrating Microform (ACH/eCheck) the allowedCardNetworks field is not required in the capture context request. - When integrating both Microform (Card) and Microform (ACH/eCheck) at least one card network should be specified in the allowedCardNetworks field in the capture context request. + # The list of card networks you want to use for this Microform transaction. Microform currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA - PAYPAK **Important:** - When integrating Microform (Card) at least one card network should be specified in the allowedCardNetworks field in the capture context request. - When integrating Microform (ACH/eCheck) the allowedCardNetworks field is not required in the capture context request. - When integrating both Microform (Card) and Microform (ACH/eCheck) at least one card network should be specified in the allowedCardNetworks field in the capture context request. attr_accessor :allowed_card_networks # The payment types that are allowed for the merchant. Possible values when launching Microform: - CARD - CHECK

diff --git a/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb b/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb index 66b2d27b..fe148d80 100644 --- a/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +++ b/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb @@ -19,10 +19,10 @@ class GenerateUnifiedCheckoutCaptureContextRequest # The [target origin](https://developer.mozilla.org/en-US/docs/Glossary/Origin) of the website on which you will be launching Unified Checkout is defined by the scheme (protocol), hostname (domain) and port number (if used). You must use https://hostname (unless you use http://localhost) Wildcards are NOT supported. Ensure that subdomains are included. Any valid top-level domain is supported (e.g. .com, .co.uk, .gov.br etc) Examples: - https://example.com - https://subdomain.example.com - https://example.com:8080

If you are embedding within multiple nested iframes you need to specify the origins of all the browser contexts used, for example: targetOrigins: [ \"https://example.com\", \"https://basket.example.com\", \"https://ecom.example.com\" ] attr_accessor :target_origins - # The list of card networks you want to use for this Unified Checkout transaction. Unified Checkout currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA + # The list of card networks you want to use for this Unified Checkout transaction. Unified Checkout currently supports the following card networks: - VISA - MASTERCARD - AMEX - CARNET - CARTESBANCAIRES - CUP - DINERSCLUB - DISCOVER - EFTPOS - ELO - JCB - JCREW - MADA - MAESTRO - MEEZA - PAYPAK attr_accessor :allowed_card_networks - # The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE

Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY

**Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

**Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay. + # The payment types that are allowed for the merchant. Possible values when launching Unified Checkout: - APPLEPAY - CHECK - CLICKTOPAY - GOOGLEPAY - PANENTRY - PAZE

Unified Checkout also supports the following Alternative Payments: - AFTERPAY

Possible values when launching Click To Pay Drop-In UI: - CLICKTOPAY

**Important:** - CLICKTOPAY only available for Visa, Mastercard and AMEX for saved cards. - Visa and Mastercard will look to tokenize using network tokenization for all Click to Pay requests. Click to Pay uses Click to Pay token requester IDs and not the merchant's existing token requester. - Apple Pay, Google Pay, Check, and Paze can be used independently without requiring PAN entry in the allowedPaymentTypes field.

**Managing Google Pay Authentication Types** When you enable Google Pay on Unified Checkout you can specify optional parameters that define the types of card authentication you receive from Google Pay.

**Managing Google Pay Authentication Types** Where Click to Pay is the payment type selected by the customer and the customer manually enters their card, the option to enroll their card in Click to Pay will be auto-checked if this field is set to \"true\". This is only available where the merchant and cardholder are based in the following countries and the billing type is set to \"FULL\" or \"PARTIAL\". - UAE - Argentina - Brazil - Chile - Colombia - Kuwait - Mexico - Peru - Qatar - Saudi Arabia - Ukraine - South Africa

If false, this is not present or not supported in the market. Enrollment in Click to Pay is not checked for the customer when completing manual card entry. attr_accessor :allowed_payment_types # Country the purchase is originating from (e.g. country of the merchant). Use the two-character ISO Standard diff --git a/lib/cybersource_rest_client/models/get_subscription_response.rb b/lib/cybersource_rest_client/models/get_subscription_response.rb index d623e09f..0dec61c5 100644 --- a/lib/cybersource_rest_client/models/get_subscription_response.rb +++ b/lib/cybersource_rest_client/models/get_subscription_response.rb @@ -29,6 +29,8 @@ class GetSubscriptionResponse attr_accessor :order_information + attr_accessor :reactivation_information + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,7 +40,8 @@ def self.attribute_map :'plan_information' => :'planInformation', :'subscription_information' => :'subscriptionInformation', :'payment_information' => :'paymentInformation', - :'order_information' => :'orderInformation' + :'order_information' => :'orderInformation', + :'reactivation_information' => :'reactivationInformation' } end @@ -51,7 +54,8 @@ def self.json_map :'plan_information' => :'plan_information', :'subscription_information' => :'subscription_information', :'payment_information' => :'payment_information', - :'order_information' => :'order_information' + :'order_information' => :'order_information', + :'reactivation_information' => :'reactivation_information' } end @@ -64,7 +68,8 @@ def self.swagger_types :'plan_information' => :'GetAllSubscriptionsResponsePlanInformation', :'subscription_information' => :'GetAllSubscriptionsResponseSubscriptionInformation', :'payment_information' => :'GetAllSubscriptionsResponsePaymentInformation', - :'order_information' => :'GetAllSubscriptionsResponseOrderInformation' + :'order_information' => :'GetAllSubscriptionsResponseOrderInformation', + :'reactivation_information' => :'GetSubscriptionResponseReactivationInformation' } end @@ -103,6 +108,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'orderInformation') self.order_information = attributes[:'orderInformation'] end + + if attributes.has_key?(:'reactivationInformation') + self.reactivation_information = attributes[:'reactivationInformation'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -135,7 +144,8 @@ def ==(o) plan_information == o.plan_information && subscription_information == o.subscription_information && payment_information == o.payment_information && - order_information == o.order_information + order_information == o.order_information && + reactivation_information == o.reactivation_information end # @see the `==` method @@ -147,7 +157,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_links, id, submit_time_utc, plan_information, subscription_information, payment_information, order_information].hash + [_links, id, submit_time_utc, plan_information, subscription_information, payment_information, order_information, reactivation_information].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb b/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb new file mode 100644 index 00000000..9a47100c --- /dev/null +++ b/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb @@ -0,0 +1,213 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class GetSubscriptionResponseReactivationInformation + # Number of payments that should have occurred while the subscription was in a suspended status. + attr_accessor :skipped_payments_count + + # Total amount that will be charged upon reactivation if `processSkippedPayments` is set to `true`. + attr_accessor :skipped_payments_total_amount + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'skipped_payments_count' => :'skippedPaymentsCount', + :'skipped_payments_total_amount' => :'skippedPaymentsTotalAmount' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'skipped_payments_count' => :'skipped_payments_count', + :'skipped_payments_total_amount' => :'skipped_payments_total_amount' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'skipped_payments_count' => :'String', + :'skipped_payments_total_amount' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'skippedPaymentsCount') + self.skipped_payments_count = attributes[:'skippedPaymentsCount'] + end + + if attributes.has_key?(:'skippedPaymentsTotalAmount') + self.skipped_payments_total_amount = attributes[:'skippedPaymentsTotalAmount'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Custom attribute writer method with validation + # @param [Object] skipped_payments_count Value to be assigned + def skipped_payments_count=(skipped_payments_count) + @skipped_payments_count = skipped_payments_count + end + + # Custom attribute writer method with validation + # @param [Object] skipped_payments_total_amount Value to be assigned + def skipped_payments_total_amount=(skipped_payments_total_amount) + @skipped_payments_total_amount = skipped_payments_total_amount + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + skipped_payments_count == o.skipped_payments_count && + skipped_payments_total_amount == o.skipped_payments_total_amount + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [skipped_payments_count, skipped_payments_total_amount].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/inline_response_200_10.rb b/lib/cybersource_rest_client/models/inline_response_200_10.rb new file mode 100644 index 00000000..8bbcdd7d --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_10.rb @@ -0,0 +1,292 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class InlineResponse20010 + attr_accessor :version + + # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ + attr_accessor :report_created_date + + # Unique identification number assigned to the submitted request. + attr_accessor :batch_id + + # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE + attr_accessor :batch_source + + attr_accessor :batch_ca_endpoints + + # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ + attr_accessor :batch_created_date + + # Reference used by merchant to identify batch. + attr_accessor :merchant_reference + + attr_accessor :totals + + attr_accessor :billing + + attr_accessor :records + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'version' => :'version', + :'report_created_date' => :'reportCreatedDate', + :'batch_id' => :'batchId', + :'batch_source' => :'batchSource', + :'batch_ca_endpoints' => :'batchCaEndpoints', + :'batch_created_date' => :'batchCreatedDate', + :'merchant_reference' => :'merchantReference', + :'totals' => :'totals', + :'billing' => :'billing', + :'records' => :'records' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'version' => :'version', + :'report_created_date' => :'report_created_date', + :'batch_id' => :'batch_id', + :'batch_source' => :'batch_source', + :'batch_ca_endpoints' => :'batch_ca_endpoints', + :'batch_created_date' => :'batch_created_date', + :'merchant_reference' => :'merchant_reference', + :'totals' => :'totals', + :'billing' => :'billing', + :'records' => :'records' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'version' => :'String', + :'report_created_date' => :'String', + :'batch_id' => :'String', + :'batch_source' => :'String', + :'batch_ca_endpoints' => :'String', + :'batch_created_date' => :'String', + :'merchant_reference' => :'String', + :'totals' => :'InlineResponse2008EmbeddedTotals', + :'billing' => :'InlineResponse2009Billing', + :'records' => :'Array' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'version') + self.version = attributes[:'version'] + end + + if attributes.has_key?(:'reportCreatedDate') + self.report_created_date = attributes[:'reportCreatedDate'] + end + + if attributes.has_key?(:'batchId') + self.batch_id = attributes[:'batchId'] + end + + if attributes.has_key?(:'batchSource') + self.batch_source = attributes[:'batchSource'] + end + + if attributes.has_key?(:'batchCaEndpoints') + self.batch_ca_endpoints = attributes[:'batchCaEndpoints'] + end + + if attributes.has_key?(:'batchCreatedDate') + self.batch_created_date = attributes[:'batchCreatedDate'] + end + + if attributes.has_key?(:'merchantReference') + self.merchant_reference = attributes[:'merchantReference'] + end + + if attributes.has_key?(:'totals') + self.totals = attributes[:'totals'] + end + + if attributes.has_key?(:'billing') + self.billing = attributes[:'billing'] + end + + if attributes.has_key?(:'records') + if (value = attributes[:'records']).is_a?(Array) + self.records = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Custom attribute writer method with validation + # @param [Object] merchant_reference Value to be assigned + def merchant_reference=(merchant_reference) + @merchant_reference = merchant_reference + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + version == o.version && + report_created_date == o.report_created_date && + batch_id == o.batch_id && + batch_source == o.batch_source && + batch_ca_endpoints == o.batch_ca_endpoints && + batch_created_date == o.batch_created_date && + merchant_reference == o.merchant_reference && + totals == o.totals && + billing == o.billing && + records == o.records + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [version, report_created_date, batch_id, batch_source, batch_ca_endpoints, batch_created_date, merchant_reference, totals, billing, records].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/inline_response_200_9_records.rb b/lib/cybersource_rest_client/models/inline_response_200_10_records.rb similarity index 97% rename from lib/cybersource_rest_client/models/inline_response_200_9_records.rb rename to lib/cybersource_rest_client/models/inline_response_200_10_records.rb index 4dba1a48..70388bf0 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_9_records.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_10_records.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2009Records + class InlineResponse20010Records attr_accessor :id attr_accessor :source_record @@ -41,8 +41,8 @@ def self.json_map def self.swagger_types { :'id' => :'String', - :'source_record' => :'InlineResponse2009SourceRecord', - :'response_record' => :'InlineResponse2009ResponseRecord' + :'source_record' => :'InlineResponse20010SourceRecord', + :'response_record' => :'InlineResponse20010ResponseRecord' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_9_response_record.rb b/lib/cybersource_rest_client/models/inline_response_200_10_response_record.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_9_response_record.rb rename to lib/cybersource_rest_client/models/inline_response_200_10_response_record.rb index 566d24e6..af42f3a9 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_9_response_record.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_10_response_record.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2009ResponseRecord + class InlineResponse20010ResponseRecord # Valid Values: * NAN * NED * ACL * CCH * CUR * NUP * UNA * ERR * DEC attr_accessor :response @@ -79,7 +79,7 @@ def self.swagger_types :'card_expiry_month' => :'String', :'card_expiry_year' => :'String', :'card_type' => :'String', - :'additional_updates' => :'Array' + :'additional_updates' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_9_response_record_additional_updates.rb b/lib/cybersource_rest_client/models/inline_response_200_10_response_record_additional_updates.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_9_response_record_additional_updates.rb rename to lib/cybersource_rest_client/models/inline_response_200_10_response_record_additional_updates.rb index edcba79f..ba974827 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_9_response_record_additional_updates.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_10_response_record_additional_updates.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2009ResponseRecordAdditionalUpdates + class InlineResponse20010ResponseRecordAdditionalUpdates attr_accessor :customer_id attr_accessor :payment_instrument_id diff --git a/lib/cybersource_rest_client/models/inline_response_200_9_source_record.rb b/lib/cybersource_rest_client/models/inline_response_200_10_source_record.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_9_source_record.rb rename to lib/cybersource_rest_client/models/inline_response_200_10_source_record.rb index 1d37d867..b2b1fc2a 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_9_source_record.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_10_source_record.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2009SourceRecord + class InlineResponse20010SourceRecord attr_accessor :token attr_accessor :customer_id diff --git a/lib/cybersource_rest_client/models/inline_response_200_5.rb b/lib/cybersource_rest_client/models/inline_response_200_5.rb index 4a0cb7ed..23dc3f38 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_5.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_5.rb @@ -13,15 +13,32 @@ module CyberSource class InlineResponse2005 - # Possible values: - OK - attr_accessor :status + # Total number of results. + attr_accessor :total_count + # Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. + attr_accessor :offset + + # Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. + attr_accessor :limit + + # A comma separated list of the following form: `submitTimeUtc:desc` + attr_accessor :sort + + # Results for this page, this could be below the limit. + attr_accessor :count + + # A collection of devices attr_accessor :devices # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'status' => :'status', + :'total_count' => :'totalCount', + :'offset' => :'offset', + :'limit' => :'limit', + :'sort' => :'sort', + :'count' => :'count', :'devices' => :'devices' } end @@ -29,7 +46,11 @@ def self.attribute_map # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'status' => :'status', + :'total_count' => :'total_count', + :'offset' => :'offset', + :'limit' => :'limit', + :'sort' => :'sort', + :'count' => :'count', :'devices' => :'devices' } end @@ -37,8 +58,12 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'status' => :'String', - :'devices' => :'Array' + :'total_count' => :'Integer', + :'offset' => :'Integer', + :'limit' => :'Integer', + :'sort' => :'String', + :'count' => :'Integer', + :'devices' => :'Array' } end @@ -50,8 +75,24 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'status') - self.status = attributes[:'status'] + if attributes.has_key?(:'totalCount') + self.total_count = attributes[:'totalCount'] + end + + if attributes.has_key?(:'offset') + self.offset = attributes[:'offset'] + end + + if attributes.has_key?(:'limit') + self.limit = attributes[:'limit'] + end + + if attributes.has_key?(:'sort') + self.sort = attributes[:'sort'] + end + + if attributes.has_key?(:'count') + self.count = attributes[:'count'] end if attributes.has_key?(:'devices') @@ -79,7 +120,11 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - status == o.status && + total_count == o.total_count && + offset == o.offset && + limit == o.limit && + sort == o.sort && + count == o.count && devices == o.devices end @@ -92,7 +137,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [status, devices].hash + [total_count, offset, limit, sort, count, devices].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_5_devices.rb b/lib/cybersource_rest_client/models/inline_response_200_5_devices.rb new file mode 100644 index 00000000..fc7f7c99 --- /dev/null +++ b/lib/cybersource_rest_client/models/inline_response_200_5_devices.rb @@ -0,0 +1,357 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class InlineResponse2005Devices + attr_accessor :reader_id + + attr_accessor :terminal_serial_number + + attr_accessor :terminal_id + + attr_accessor :model + + attr_accessor :make + + attr_accessor :hardware_revision + + # Status of the device. Possible Values: - 'ACTIVE' - 'INACTIVE' + attr_accessor :status + + attr_accessor :creation_date + + attr_accessor :pin + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'reader_id' => :'readerId', + :'terminal_serial_number' => :'terminalSerialNumber', + :'terminal_id' => :'terminalId', + :'model' => :'model', + :'make' => :'make', + :'hardware_revision' => :'hardwareRevision', + :'status' => :'status', + :'creation_date' => :'creationDate', + :'pin' => :'pin' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'reader_id' => :'reader_id', + :'terminal_serial_number' => :'terminal_serial_number', + :'terminal_id' => :'terminal_id', + :'model' => :'model', + :'make' => :'make', + :'hardware_revision' => :'hardware_revision', + :'status' => :'status', + :'creation_date' => :'creation_date', + :'pin' => :'pin' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'reader_id' => :'String', + :'terminal_serial_number' => :'String', + :'terminal_id' => :'String', + :'model' => :'String', + :'make' => :'String', + :'hardware_revision' => :'String', + :'status' => :'String', + :'creation_date' => :'String', + :'pin' => :'String' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'readerId') + self.reader_id = attributes[:'readerId'] + end + + if attributes.has_key?(:'terminalSerialNumber') + self.terminal_serial_number = attributes[:'terminalSerialNumber'] + end + + if attributes.has_key?(:'terminalId') + self.terminal_id = attributes[:'terminalId'] + end + + if attributes.has_key?(:'model') + self.model = attributes[:'model'] + end + + if attributes.has_key?(:'make') + self.make = attributes[:'make'] + end + + if attributes.has_key?(:'hardwareRevision') + self.hardware_revision = attributes[:'hardwareRevision'] + end + + if attributes.has_key?(:'status') + self.status = attributes[:'status'] + end + + if attributes.has_key?(:'creationDate') + self.creation_date = attributes[:'creationDate'] + end + + if attributes.has_key?(:'pin') + self.pin = attributes[:'pin'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + #if !@terminal_serial_number.nil? && @terminal_serial_number !~ Regexp.new(/[0-9a-zA-Z][0-9a-zA-Z-]*/) + #invalid_properties.push('invalid value for "terminal_serial_number", must conform to the pattern /[0-9a-zA-Z][0-9a-zA-Z-]*/.') + #end + + #if !@model.nil? && @model !~ Regexp.new(/^[0-9a-zA-Z_ ]*$/) + #invalid_properties.push('invalid value for "model", must conform to the pattern /^[0-9a-zA-Z_ ]*$/.') + #end + + #if !@make.nil? && @make !~ Regexp.new(/^[0-9a-zA-Z_ ]*$/) + #invalid_properties.push('invalid value for "make", must conform to the pattern /^[0-9a-zA-Z_ ]*$/.') + #end + + #if !@hardware_revision.nil? && @hardware_revision !~ Regexp.new(/^[0-9a-zA-Z][0-9a-zA-Z-\/_.]*$/) + #invalid_properties.push('invalid value for "hardware_revision", must conform to the pattern /^[0-9a-zA-Z][0-9a-zA-Z-\/_.]*$/.') + #end + + #if !@creation_date.nil? && @creation_date !~ Regexp.new(/YYYY-MM-DDThh:mm:ssZ/) + #invalid_properties.push('invalid value for "creation_date", must conform to the pattern /YYYY-MM-DDThh:mm:ssZ/.') + #end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + #return false if !@terminal_serial_number.nil? && @terminal_serial_number !~ Regexp.new(/[0-9a-zA-Z][0-9a-zA-Z-]*/) + #return false if !@model.nil? && @model !~ Regexp.new(/^[0-9a-zA-Z_ ]*$/) + #return false if !@make.nil? && @make !~ Regexp.new(/^[0-9a-zA-Z_ ]*$/) + #return false if !@hardware_revision.nil? && @hardware_revision !~ Regexp.new(/^[0-9a-zA-Z][0-9a-zA-Z-\/_.]*$/) + #return false if !@creation_date.nil? && @creation_date !~ Regexp.new(/YYYY-MM-DDThh:mm:ssZ/) + true + end + + # Custom attribute writer method with validation + # @param [Object] reader_id Value to be assigned + def reader_id=(reader_id) + @reader_id = reader_id + end + + # Custom attribute writer method with validation + # @param [Object] terminal_serial_number Value to be assigned + def terminal_serial_number=(terminal_serial_number) + #if !terminal_serial_number.nil? && terminal_serial_number !~ Regexp.new(/[0-9a-zA-Z][0-9a-zA-Z-]*/) + #fail ArgumentError, 'invalid value for "terminal_serial_number", must conform to the pattern /[0-9a-zA-Z][0-9a-zA-Z-]*/.' + #end + + @terminal_serial_number = terminal_serial_number + end + + # Custom attribute writer method with validation + # @param [Object] terminal_id Value to be assigned + def terminal_id=(terminal_id) + @terminal_id = terminal_id + end + + # Custom attribute writer method with validation + # @param [Object] model Value to be assigned + def model=(model) + #if !model.nil? && model !~ Regexp.new(/^[0-9a-zA-Z_ ]*$/) + #fail ArgumentError, 'invalid value for "model", must conform to the pattern /^[0-9a-zA-Z_ ]*$/.' + #end + + @model = model + end + + # Custom attribute writer method with validation + # @param [Object] make Value to be assigned + def make=(make) + #if !make.nil? && make !~ Regexp.new(/^[0-9a-zA-Z_ ]*$/) + #fail ArgumentError, 'invalid value for "make", must conform to the pattern /^[0-9a-zA-Z_ ]*$/.' + #end + + @make = make + end + + # Custom attribute writer method with validation + # @param [Object] hardware_revision Value to be assigned + def hardware_revision=(hardware_revision) + #if !hardware_revision.nil? && hardware_revision !~ Regexp.new(/^[0-9a-zA-Z][0-9a-zA-Z-\/_.]*$/) + #fail ArgumentError, 'invalid value for "hardware_revision", must conform to the pattern /^[0-9a-zA-Z][0-9a-zA-Z-\/_.]*$/.' + #end + + @hardware_revision = hardware_revision + end + + # Custom attribute writer method with validation + # @param [Object] creation_date Value to be assigned + def creation_date=(creation_date) + #if !creation_date.nil? && creation_date !~ Regexp.new(/YYYY-MM-DDThh:mm:ssZ/) + #fail ArgumentError, 'invalid value for "creation_date", must conform to the pattern /YYYY-MM-DDThh:mm:ssZ/.' + #end + + @creation_date = creation_date + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + reader_id == o.reader_id && + terminal_serial_number == o.terminal_serial_number && + terminal_id == o.terminal_id && + model == o.model && + make == o.make && + hardware_revision == o.hardware_revision && + status == o.status && + creation_date == o.creation_date && + pin == o.pin + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [reader_id, terminal_serial_number, terminal_id, model, make, hardware_revision, status, creation_date, pin].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/inline_response_200_6.rb b/lib/cybersource_rest_client/models/inline_response_200_6.rb index 73ad18e8..4e244d17 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_6.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_6.rb @@ -13,32 +13,15 @@ module CyberSource class InlineResponse2006 - # Total number of results. - attr_accessor :total_count + # Possible values: - OK + attr_accessor :status - # Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. - attr_accessor :offset - - # Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. - attr_accessor :limit - - # A comma separated list of the following form: `terminalCreationDate:desc or serialNumber or terminalUpdationDate` - attr_accessor :sort - - # Results for this page, this could be below the limit. - attr_accessor :count - - # A collection of devices attr_accessor :devices # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'total_count' => :'totalCount', - :'offset' => :'offset', - :'limit' => :'limit', - :'sort' => :'sort', - :'count' => :'count', + :'status' => :'status', :'devices' => :'devices' } end @@ -46,11 +29,7 @@ def self.attribute_map # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'total_count' => :'total_count', - :'offset' => :'offset', - :'limit' => :'limit', - :'sort' => :'sort', - :'count' => :'count', + :'status' => :'status', :'devices' => :'devices' } end @@ -58,12 +37,8 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'total_count' => :'Integer', - :'offset' => :'Integer', - :'limit' => :'Integer', - :'sort' => :'String', - :'count' => :'Integer', - :'devices' => :'Array' + :'status' => :'String', + :'devices' => :'Array' } end @@ -75,24 +50,8 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'totalCount') - self.total_count = attributes[:'totalCount'] - end - - if attributes.has_key?(:'offset') - self.offset = attributes[:'offset'] - end - - if attributes.has_key?(:'limit') - self.limit = attributes[:'limit'] - end - - if attributes.has_key?(:'sort') - self.sort = attributes[:'sort'] - end - - if attributes.has_key?(:'count') - self.count = attributes[:'count'] + if attributes.has_key?(:'status') + self.status = attributes[:'status'] end if attributes.has_key?(:'devices') @@ -120,11 +79,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - total_count == o.total_count && - offset == o.offset && - limit == o.limit && - sort == o.sort && - count == o.count && + status == o.status && devices == o.devices end @@ -137,7 +92,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [total_count, offset, limit, sort, count, devices].hash + [status, devices].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_7.rb b/lib/cybersource_rest_client/models/inline_response_200_7.rb index 72935c6c..1cc12ad4 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_7.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_7.rb @@ -13,56 +13,57 @@ module CyberSource class InlineResponse2007 - attr_accessor :_links - - attr_accessor :object + # Total number of results. + attr_accessor :total_count + # Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned. attr_accessor :offset + # Controls the maximum number of items that may be returned for a single request. The default is 20, the maximum is 2500. attr_accessor :limit - attr_accessor :count + # A comma separated list of the following form: `terminalCreationDate:desc or serialNumber or terminalUpdationDate` + attr_accessor :sort - attr_accessor :total + # Results for this page, this could be below the limit. + attr_accessor :count - attr_accessor :_embedded + # A collection of devices + attr_accessor :devices # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'_links' => :'_links', - :'object' => :'object', + :'total_count' => :'totalCount', :'offset' => :'offset', :'limit' => :'limit', + :'sort' => :'sort', :'count' => :'count', - :'total' => :'total', - :'_embedded' => :'_embedded' + :'devices' => :'devices' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'_links' => :'_links', - :'object' => :'object', + :'total_count' => :'total_count', :'offset' => :'offset', :'limit' => :'limit', + :'sort' => :'sort', :'count' => :'count', - :'total' => :'total', - :'_embedded' => :'_embedded' + :'devices' => :'devices' } end # Attribute type mapping. def self.swagger_types { - :'_links' => :'Array', - :'object' => :'String', + :'total_count' => :'Integer', :'offset' => :'Integer', :'limit' => :'Integer', + :'sort' => :'String', :'count' => :'Integer', - :'total' => :'Integer', - :'_embedded' => :'InlineResponse2007Embedded' + :'devices' => :'Array' } end @@ -74,14 +75,8 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'_links') - if (value = attributes[:'_links']).is_a?(Array) - self._links = value - end - end - - if attributes.has_key?(:'object') - self.object = attributes[:'object'] + if attributes.has_key?(:'totalCount') + self.total_count = attributes[:'totalCount'] end if attributes.has_key?(:'offset') @@ -92,16 +87,18 @@ def initialize(attributes = {}) self.limit = attributes[:'limit'] end - if attributes.has_key?(:'count') - self.count = attributes[:'count'] + if attributes.has_key?(:'sort') + self.sort = attributes[:'sort'] end - if attributes.has_key?(:'total') - self.total = attributes[:'total'] + if attributes.has_key?(:'count') + self.count = attributes[:'count'] end - if attributes.has_key?(:'_embedded') - self._embedded = attributes[:'_embedded'] + if attributes.has_key?(:'devices') + if (value = attributes[:'devices']).is_a?(Array) + self.devices = value + end end end @@ -123,13 +120,12 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - _links == o._links && - object == o.object && + total_count == o.total_count && offset == o.offset && limit == o.limit && + sort == o.sort && count == o.count && - total == o.total && - _embedded == o._embedded + devices == o.devices end # @see the `==` method @@ -141,7 +137,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_links, object, offset, limit, count, total, _embedded].hash + [total_count, offset, limit, sort, count, devices].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_6_devices.rb b/lib/cybersource_rest_client/models/inline_response_200_7_devices.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_6_devices.rb rename to lib/cybersource_rest_client/models/inline_response_200_7_devices.rb index a5a401c5..598b5ac9 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_6_devices.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_7_devices.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2006Devices + class InlineResponse2007Devices attr_accessor :reader_id attr_accessor :serial_number @@ -93,7 +93,7 @@ def self.swagger_types :'account_id' => :'String', :'terminal_creation_date' => :'DateTime', :'terminal_updation_date' => :'DateTime', - :'payment_processor_to_terminal_map' => :'InlineResponse2006PaymentProcessorToTerminalMap' + :'payment_processor_to_terminal_map' => :'InlineResponse2007PaymentProcessorToTerminalMap' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_6_payment_processor_to_terminal_map.rb b/lib/cybersource_rest_client/models/inline_response_200_7_payment_processor_to_terminal_map.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_6_payment_processor_to_terminal_map.rb rename to lib/cybersource_rest_client/models/inline_response_200_7_payment_processor_to_terminal_map.rb index a59eb635..46c4790d 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_6_payment_processor_to_terminal_map.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_7_payment_processor_to_terminal_map.rb @@ -13,7 +13,7 @@ module CyberSource # Mapping between processor and Terminal. - class InlineResponse2006PaymentProcessorToTerminalMap + class InlineResponse2007PaymentProcessorToTerminalMap attr_accessor :processor attr_accessor :terminal_id diff --git a/lib/cybersource_rest_client/models/inline_response_200_8.rb b/lib/cybersource_rest_client/models/inline_response_200_8.rb index fd9c30e4..9226106e 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_8.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_8.rb @@ -15,42 +15,28 @@ module CyberSource class InlineResponse2008 attr_accessor :_links - # Unique identification number assigned to the submitted request. - attr_accessor :batch_id + attr_accessor :object - # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ - attr_accessor :batch_created_date + attr_accessor :offset - # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE - attr_accessor :batch_source + attr_accessor :limit - # Reference used by merchant to identify batch. - attr_accessor :merchant_reference + attr_accessor :count - attr_accessor :batch_ca_endpoints + attr_accessor :total - # Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED - attr_accessor :status - - attr_accessor :totals - - attr_accessor :billing - - attr_accessor :description + attr_accessor :_embedded # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'_links' => :'_links', - :'batch_id' => :'batchId', - :'batch_created_date' => :'batchCreatedDate', - :'batch_source' => :'batchSource', - :'merchant_reference' => :'merchantReference', - :'batch_ca_endpoints' => :'batchCaEndpoints', - :'status' => :'status', - :'totals' => :'totals', - :'billing' => :'billing', - :'description' => :'description' + :'object' => :'object', + :'offset' => :'offset', + :'limit' => :'limit', + :'count' => :'count', + :'total' => :'total', + :'_embedded' => :'_embedded' } end @@ -58,31 +44,25 @@ def self.attribute_map def self.json_map { :'_links' => :'_links', - :'batch_id' => :'batch_id', - :'batch_created_date' => :'batch_created_date', - :'batch_source' => :'batch_source', - :'merchant_reference' => :'merchant_reference', - :'batch_ca_endpoints' => :'batch_ca_endpoints', - :'status' => :'status', - :'totals' => :'totals', - :'billing' => :'billing', - :'description' => :'description' + :'object' => :'object', + :'offset' => :'offset', + :'limit' => :'limit', + :'count' => :'count', + :'total' => :'total', + :'_embedded' => :'_embedded' } end # Attribute type mapping. def self.swagger_types { - :'_links' => :'InlineResponse2008Links', - :'batch_id' => :'String', - :'batch_created_date' => :'String', - :'batch_source' => :'String', - :'merchant_reference' => :'String', - :'batch_ca_endpoints' => :'String', - :'status' => :'String', - :'totals' => :'InlineResponse2007EmbeddedTotals', - :'billing' => :'InlineResponse2008Billing', - :'description' => :'String' + :'_links' => :'Array', + :'object' => :'String', + :'offset' => :'Integer', + :'limit' => :'Integer', + :'count' => :'Integer', + :'total' => :'Integer', + :'_embedded' => :'InlineResponse2008Embedded' } end @@ -95,43 +75,33 @@ def initialize(attributes = {}) attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'_links') - self._links = attributes[:'_links'] - end - - if attributes.has_key?(:'batchId') - self.batch_id = attributes[:'batchId'] - end - - if attributes.has_key?(:'batchCreatedDate') - self.batch_created_date = attributes[:'batchCreatedDate'] - end - - if attributes.has_key?(:'batchSource') - self.batch_source = attributes[:'batchSource'] + if (value = attributes[:'_links']).is_a?(Array) + self._links = value + end end - if attributes.has_key?(:'merchantReference') - self.merchant_reference = attributes[:'merchantReference'] + if attributes.has_key?(:'object') + self.object = attributes[:'object'] end - if attributes.has_key?(:'batchCaEndpoints') - self.batch_ca_endpoints = attributes[:'batchCaEndpoints'] + if attributes.has_key?(:'offset') + self.offset = attributes[:'offset'] end - if attributes.has_key?(:'status') - self.status = attributes[:'status'] + if attributes.has_key?(:'limit') + self.limit = attributes[:'limit'] end - if attributes.has_key?(:'totals') - self.totals = attributes[:'totals'] + if attributes.has_key?(:'count') + self.count = attributes[:'count'] end - if attributes.has_key?(:'billing') - self.billing = attributes[:'billing'] + if attributes.has_key?(:'total') + self.total = attributes[:'total'] end - if attributes.has_key?(:'description') - self.description = attributes[:'description'] + if attributes.has_key?(:'_embedded') + self._embedded = attributes[:'_embedded'] end end @@ -148,27 +118,18 @@ def valid? true end - # Custom attribute writer method with validation - # @param [Object] merchant_reference Value to be assigned - def merchant_reference=(merchant_reference) - @merchant_reference = merchant_reference - end - # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && _links == o._links && - batch_id == o.batch_id && - batch_created_date == o.batch_created_date && - batch_source == o.batch_source && - merchant_reference == o.merchant_reference && - batch_ca_endpoints == o.batch_ca_endpoints && - status == o.status && - totals == o.totals && - billing == o.billing && - description == o.description + object == o.object && + offset == o.offset && + limit == o.limit && + count == o.count && + total == o.total && + _embedded == o._embedded end # @see the `==` method @@ -180,7 +141,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_links, batch_id, batch_created_date, batch_source, merchant_reference, batch_ca_endpoints, status, totals, billing, description].hash + [_links, object, offset, limit, count, total, _embedded].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_7__embedded.rb b/lib/cybersource_rest_client/models/inline_response_200_8__embedded.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_7__embedded.rb rename to lib/cybersource_rest_client/models/inline_response_200_8__embedded.rb index aefb5f1d..c4f9c04d 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_7__embedded.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_8__embedded.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2007Embedded + class InlineResponse2008Embedded attr_accessor :batches # Attribute mapping from ruby-style variable name to JSON key. @@ -32,7 +32,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'batches' => :'Array' + :'batches' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_7__embedded__links.rb b/lib/cybersource_rest_client/models/inline_response_200_8__embedded__links.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_7__embedded__links.rb rename to lib/cybersource_rest_client/models/inline_response_200_8__embedded__links.rb index 1e0bc1e9..bcd220ff 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_7__embedded__links.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_8__embedded__links.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2007EmbeddedLinks + class InlineResponse2008EmbeddedLinks attr_accessor :reports # Attribute mapping from ruby-style variable name to JSON key. @@ -32,7 +32,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'reports' => :'Array' + :'reports' => :'Array' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_7__embedded__links_reports.rb b/lib/cybersource_rest_client/models/inline_response_200_8__embedded__links_reports.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_7__embedded__links_reports.rb rename to lib/cybersource_rest_client/models/inline_response_200_8__embedded__links_reports.rb index da108873..23def545 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_7__embedded__links_reports.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_8__embedded__links_reports.rb @@ -13,7 +13,7 @@ module CyberSource # Retrieve the generated report of a batch when available. - class InlineResponse2007EmbeddedLinksReports + class InlineResponse2008EmbeddedLinksReports attr_accessor :href # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/cybersource_rest_client/models/inline_response_200_7__embedded_batches.rb b/lib/cybersource_rest_client/models/inline_response_200_8__embedded_batches.rb similarity index 98% rename from lib/cybersource_rest_client/models/inline_response_200_7__embedded_batches.rb rename to lib/cybersource_rest_client/models/inline_response_200_8__embedded_batches.rb index e0c20677..aea876a7 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_7__embedded_batches.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_8__embedded_batches.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2007EmbeddedBatches + class InlineResponse2008EmbeddedBatches attr_accessor :_links # Unique identification number assigned to the submitted request. @@ -76,7 +76,7 @@ def self.json_map # Attribute type mapping. def self.swagger_types { - :'_links' => :'InlineResponse2007EmbeddedLinks', + :'_links' => :'InlineResponse2008EmbeddedLinks', :'batch_id' => :'String', :'batch_created_date' => :'String', :'batch_modified_date' => :'String', @@ -85,7 +85,7 @@ def self.swagger_types :'merchant_reference' => :'String', :'batch_ca_endpoints' => :'Array', :'status' => :'String', - :'totals' => :'InlineResponse2007EmbeddedTotals' + :'totals' => :'InlineResponse2008EmbeddedTotals' } end diff --git a/lib/cybersource_rest_client/models/inline_response_200_7__embedded_totals.rb b/lib/cybersource_rest_client/models/inline_response_200_8__embedded_totals.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_7__embedded_totals.rb rename to lib/cybersource_rest_client/models/inline_response_200_8__embedded_totals.rb index bb04e0cd..35a9f843 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_7__embedded_totals.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_8__embedded_totals.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2007EmbeddedTotals + class InlineResponse2008EmbeddedTotals attr_accessor :accepted_records attr_accessor :rejected_records diff --git a/lib/cybersource_rest_client/models/inline_response_200_8__links.rb b/lib/cybersource_rest_client/models/inline_response_200_8__links.rb index 336bea8e..bb2291d9 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_8__links.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_8__links.rb @@ -13,31 +13,32 @@ module CyberSource class InlineResponse2008Links - attr_accessor :_self + # Valid Values: * self * first * last * prev * next + attr_accessor :rel - attr_accessor :report + attr_accessor :href # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'_self' => :'self', - :'report' => :'report' + :'rel' => :'rel', + :'href' => :'href' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'_self' => :'_self', - :'report' => :'report' + :'rel' => :'rel', + :'href' => :'href' } end # Attribute type mapping. def self.swagger_types { - :'_self' => :'InlineResponse202LinksStatus', - :'report' => :'Array' + :'rel' => :'String', + :'href' => :'String' } end @@ -49,14 +50,12 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'self') - self._self = attributes[:'self'] + if attributes.has_key?(:'rel') + self.rel = attributes[:'rel'] end - if attributes.has_key?(:'report') - if (value = attributes[:'report']).is_a?(Array) - self.report = value - end + if attributes.has_key?(:'href') + self.href = attributes[:'href'] end end @@ -78,8 +77,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - _self == o._self && - report == o.report + rel == o.rel && + href == o.href end # @see the `==` method @@ -91,7 +90,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [_self, report].hash + [rel, href].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_9.rb b/lib/cybersource_rest_client/models/inline_response_200_9.rb index 5b5aee2e..e81f0779 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_9.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_9.rb @@ -13,76 +13,76 @@ module CyberSource class InlineResponse2009 - attr_accessor :version - - # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ - attr_accessor :report_created_date + attr_accessor :_links # Unique identification number assigned to the submitted request. attr_accessor :batch_id - # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE - attr_accessor :batch_source - - attr_accessor :batch_ca_endpoints - # ISO-8601 format: yyyy-MM-ddTHH:mm:ssZ attr_accessor :batch_created_date + # Valid Values: * SCHEDULER * TOKEN_API * CREDIT_CARD_FILE_UPLOAD * AMEX_REGSITRY * AMEX_REGISTRY_API * AMEX_MAINTENANCE + attr_accessor :batch_source + # Reference used by merchant to identify batch. attr_accessor :merchant_reference + attr_accessor :batch_ca_endpoints + + # Valid Values: * REJECTED * RECEIVED * VALIDATED * DECLINED * PROCESSING * COMPLETED + attr_accessor :status + attr_accessor :totals attr_accessor :billing - attr_accessor :records + attr_accessor :description # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'version' => :'version', - :'report_created_date' => :'reportCreatedDate', + :'_links' => :'_links', :'batch_id' => :'batchId', - :'batch_source' => :'batchSource', - :'batch_ca_endpoints' => :'batchCaEndpoints', :'batch_created_date' => :'batchCreatedDate', + :'batch_source' => :'batchSource', :'merchant_reference' => :'merchantReference', + :'batch_ca_endpoints' => :'batchCaEndpoints', + :'status' => :'status', :'totals' => :'totals', :'billing' => :'billing', - :'records' => :'records' + :'description' => :'description' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'version' => :'version', - :'report_created_date' => :'report_created_date', + :'_links' => :'_links', :'batch_id' => :'batch_id', - :'batch_source' => :'batch_source', - :'batch_ca_endpoints' => :'batch_ca_endpoints', :'batch_created_date' => :'batch_created_date', + :'batch_source' => :'batch_source', :'merchant_reference' => :'merchant_reference', + :'batch_ca_endpoints' => :'batch_ca_endpoints', + :'status' => :'status', :'totals' => :'totals', :'billing' => :'billing', - :'records' => :'records' + :'description' => :'description' } end # Attribute type mapping. def self.swagger_types { - :'version' => :'String', - :'report_created_date' => :'String', + :'_links' => :'InlineResponse2009Links', :'batch_id' => :'String', - :'batch_source' => :'String', - :'batch_ca_endpoints' => :'String', :'batch_created_date' => :'String', + :'batch_source' => :'String', :'merchant_reference' => :'String', - :'totals' => :'InlineResponse2007EmbeddedTotals', - :'billing' => :'InlineResponse2008Billing', - :'records' => :'Array' + :'batch_ca_endpoints' => :'String', + :'status' => :'String', + :'totals' => :'InlineResponse2008EmbeddedTotals', + :'billing' => :'InlineResponse2009Billing', + :'description' => :'String' } end @@ -94,32 +94,32 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'version') - self.version = attributes[:'version'] - end - - if attributes.has_key?(:'reportCreatedDate') - self.report_created_date = attributes[:'reportCreatedDate'] + if attributes.has_key?(:'_links') + self._links = attributes[:'_links'] end if attributes.has_key?(:'batchId') self.batch_id = attributes[:'batchId'] end + if attributes.has_key?(:'batchCreatedDate') + self.batch_created_date = attributes[:'batchCreatedDate'] + end + if attributes.has_key?(:'batchSource') self.batch_source = attributes[:'batchSource'] end - if attributes.has_key?(:'batchCaEndpoints') - self.batch_ca_endpoints = attributes[:'batchCaEndpoints'] + if attributes.has_key?(:'merchantReference') + self.merchant_reference = attributes[:'merchantReference'] end - if attributes.has_key?(:'batchCreatedDate') - self.batch_created_date = attributes[:'batchCreatedDate'] + if attributes.has_key?(:'batchCaEndpoints') + self.batch_ca_endpoints = attributes[:'batchCaEndpoints'] end - if attributes.has_key?(:'merchantReference') - self.merchant_reference = attributes[:'merchantReference'] + if attributes.has_key?(:'status') + self.status = attributes[:'status'] end if attributes.has_key?(:'totals') @@ -130,10 +130,8 @@ def initialize(attributes = {}) self.billing = attributes[:'billing'] end - if attributes.has_key?(:'records') - if (value = attributes[:'records']).is_a?(Array) - self.records = value - end + if attributes.has_key?(:'description') + self.description = attributes[:'description'] end end @@ -161,16 +159,16 @@ def merchant_reference=(merchant_reference) def ==(o) return true if self.equal?(o) self.class == o.class && - version == o.version && - report_created_date == o.report_created_date && + _links == o._links && batch_id == o.batch_id && - batch_source == o.batch_source && - batch_ca_endpoints == o.batch_ca_endpoints && batch_created_date == o.batch_created_date && + batch_source == o.batch_source && merchant_reference == o.merchant_reference && + batch_ca_endpoints == o.batch_ca_endpoints && + status == o.status && totals == o.totals && billing == o.billing && - records == o.records + description == o.description end # @see the `==` method @@ -182,7 +180,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [version, report_created_date, batch_id, batch_source, batch_ca_endpoints, batch_created_date, merchant_reference, totals, billing, records].hash + [_links, batch_id, batch_created_date, batch_source, merchant_reference, batch_ca_endpoints, status, totals, billing, description].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_7__links.rb b/lib/cybersource_rest_client/models/inline_response_200_9__links.rb similarity index 89% rename from lib/cybersource_rest_client/models/inline_response_200_7__links.rb rename to lib/cybersource_rest_client/models/inline_response_200_9__links.rb index 2a385b27..18e15ef2 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_7__links.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_9__links.rb @@ -12,33 +12,32 @@ require 'date' module CyberSource - class InlineResponse2007Links - # Valid Values: * self * first * last * prev * next - attr_accessor :rel + class InlineResponse2009Links + attr_accessor :_self - attr_accessor :href + attr_accessor :report # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'rel' => :'rel', - :'href' => :'href' + :'_self' => :'self', + :'report' => :'report' } end # Attribute mapping from JSON key to ruby-style variable name. def self.json_map { - :'rel' => :'rel', - :'href' => :'href' + :'_self' => :'_self', + :'report' => :'report' } end # Attribute type mapping. def self.swagger_types { - :'rel' => :'String', - :'href' => :'String' + :'_self' => :'InlineResponse202LinksStatus', + :'report' => :'Array' } end @@ -50,12 +49,14 @@ def initialize(attributes = {}) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } - if attributes.has_key?(:'rel') - self.rel = attributes[:'rel'] + if attributes.has_key?(:'self') + self._self = attributes[:'self'] end - if attributes.has_key?(:'href') - self.href = attributes[:'href'] + if attributes.has_key?(:'report') + if (value = attributes[:'report']).is_a?(Array) + self.report = value + end end end @@ -77,8 +78,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - rel == o.rel && - href == o.href + _self == o._self && + report == o.report end # @see the `==` method @@ -90,7 +91,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [rel, href].hash + [_self, report].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/inline_response_200_8__links_report.rb b/lib/cybersource_rest_client/models/inline_response_200_9__links_report.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_8__links_report.rb rename to lib/cybersource_rest_client/models/inline_response_200_9__links_report.rb index 492e00d5..9c209695 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_8__links_report.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_9__links_report.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2008LinksReport + class InlineResponse2009LinksReport attr_accessor :href # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/cybersource_rest_client/models/inline_response_200_8_billing.rb b/lib/cybersource_rest_client/models/inline_response_200_9_billing.rb similarity index 99% rename from lib/cybersource_rest_client/models/inline_response_200_8_billing.rb rename to lib/cybersource_rest_client/models/inline_response_200_9_billing.rb index e261c3cd..db965001 100644 --- a/lib/cybersource_rest_client/models/inline_response_200_8_billing.rb +++ b/lib/cybersource_rest_client/models/inline_response_200_9_billing.rb @@ -12,7 +12,7 @@ require 'date' module CyberSource - class InlineResponse2008Billing + class InlineResponse2009Billing attr_accessor :nan attr_accessor :ned diff --git a/lib/cybersource_rest_client/models/payments_products.rb b/lib/cybersource_rest_client/models/payments_products.rb index f2f0290a..715e0883 100644 --- a/lib/cybersource_rest_client/models/payments_products.rb +++ b/lib/cybersource_rest_client/models/payments_products.rb @@ -125,7 +125,7 @@ def self.swagger_types :'payouts' => :'PaymentsProductsPayouts', :'differential_fee' => :'PaymentsProductsDifferentialFee', :'pay_by_link' => :'PaymentsProductsTax', - :'unified_checkout' => :'PaymentsProductsTax', + :'unified_checkout' => :'PaymentsProductsUnifiedCheckout', :'receivables_manager' => :'PaymentsProductsTax', :'service_fee' => :'PaymentsProductsServiceFee' } diff --git a/lib/cybersource_rest_client/models/payments_products_unified_checkout.rb b/lib/cybersource_rest_client/models/payments_products_unified_checkout.rb new file mode 100644 index 00000000..77ceff8b --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_unified_checkout.rb @@ -0,0 +1,199 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class PaymentsProductsUnifiedCheckout + attr_accessor :subscription_information + + attr_accessor :configuration_information + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'subscription_information' => :'subscriptionInformation', + :'configuration_information' => :'configurationInformation' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'subscription_information' => :'subscription_information', + :'configuration_information' => :'configuration_information' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'subscription_information' => :'PaymentsProductsUnifiedCheckoutSubscriptionInformation', + :'configuration_information' => :'PaymentsProductsUnifiedCheckoutConfigurationInformation' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'subscriptionInformation') + self.subscription_information = attributes[:'subscriptionInformation'] + end + + if attributes.has_key?(:'configurationInformation') + self.configuration_information = attributes[:'configurationInformation'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + subscription_information == o.subscription_information && + configuration_information == o.configuration_information + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [subscription_information, configuration_information].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information.rb b/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information.rb new file mode 100644 index 00000000..e7932302 --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information.rb @@ -0,0 +1,189 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class PaymentsProductsUnifiedCheckoutConfigurationInformation + attr_accessor :configurations + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'configurations' => :'configurations' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'configurations' => :'configurations' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'configurations' => :'PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'configurations') + self.configurations = attributes[:'configurations'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + configurations == o.configurations + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [configurations].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations.rb b/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations.rb new file mode 100644 index 00000000..d691ff23 --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations.rb @@ -0,0 +1,189 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations + attr_accessor :features + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'features' => :'features' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'features' => :'features' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'features' => :'PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'features') + self.features = attributes[:'features'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + features == o.features + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [features].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features.rb b/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features.rb new file mode 100644 index 00000000..edefa329 --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features.rb @@ -0,0 +1,189 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures + attr_accessor :paze + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'paze' => :'paze' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'paze' => :'paze' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'paze' => :'PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'paze') + self.paze = attributes[:'paze'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + paze == o.paze + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [paze].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features_paze.rb b/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features_paze.rb new file mode 100644 index 00000000..1147d873 --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_unified_checkout_configuration_information_configurations_features_paze.rb @@ -0,0 +1,213 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + # Paze specific required configuration details under unified checkout + class PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze + # Indicates the financial institution with whom the contract has been signed Possible values: - BANKOFAMERICA - WELLSFARGO + attr_accessor :financial_institution + + # Indicates if the contract has been signed with the selected bank + attr_accessor :financial_institution_contract + + # Paze enabled in the profile for the merchants + attr_accessor :paze_enabled_in_profile + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'financial_institution' => :'financialInstitution', + :'financial_institution_contract' => :'financialInstitutionContract', + :'paze_enabled_in_profile' => :'pazeEnabledInProfile' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'financial_institution' => :'financial_institution', + :'financial_institution_contract' => :'financial_institution_contract', + :'paze_enabled_in_profile' => :'paze_enabled_in_profile' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'financial_institution' => :'String', + :'financial_institution_contract' => :'BOOLEAN', + :'paze_enabled_in_profile' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'financialInstitution') + self.financial_institution = attributes[:'financialInstitution'] + end + + if attributes.has_key?(:'financialInstitutionContract') + self.financial_institution_contract = attributes[:'financialInstitutionContract'] + end + + if attributes.has_key?(:'pazeEnabledInProfile') + self.paze_enabled_in_profile = attributes[:'pazeEnabledInProfile'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + financial_institution == o.financial_institution && + financial_institution_contract == o.financial_institution_contract && + paze_enabled_in_profile == o.paze_enabled_in_profile + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [financial_institution, financial_institution_contract, paze_enabled_in_profile].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information.rb b/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information.rb new file mode 100644 index 00000000..8ca2c31f --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information.rb @@ -0,0 +1,225 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class PaymentsProductsUnifiedCheckoutSubscriptionInformation + attr_accessor :enabled + + # Possible values: - PENDING - ENABLED_AND_USABLE - ENABLED_NOT_USABLE - DISABLED + attr_accessor :enablement_status + + # Indicates if the organization can enable this product using self service. Possible values: - SELF_SERVICEABLE - NOT_SELF_SERVICEABLE - SELF_SERVICE_ONLY + attr_accessor :self_serviceability + + attr_accessor :features + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'enabled' => :'enabled', + :'enablement_status' => :'enablementStatus', + :'self_serviceability' => :'selfServiceability', + :'features' => :'features' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'enabled' => :'enabled', + :'enablement_status' => :'enablement_status', + :'self_serviceability' => :'self_serviceability', + :'features' => :'features' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'enabled' => :'BOOLEAN', + :'enablement_status' => :'String', + :'self_serviceability' => :'String', + :'features' => :'PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'enabled') + self.enabled = attributes[:'enabled'] + end + + if attributes.has_key?(:'enablementStatus') + self.enablement_status = attributes[:'enablementStatus'] + else + self.enablement_status = 'ENABLED_AND_USABLE' + end + + if attributes.has_key?(:'selfServiceability') + self.self_serviceability = attributes[:'selfServiceability'] + else + self.self_serviceability = 'NOT_SELF_SERVICEABLE' + end + + if attributes.has_key?(:'features') + self.features = attributes[:'features'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + enabled == o.enabled && + enablement_status == o.enablement_status && + self_serviceability == o.self_serviceability && + features == o.features + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [enabled, enablement_status, self_serviceability, features].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features.rb b/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features.rb new file mode 100644 index 00000000..93cc5806 --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features.rb @@ -0,0 +1,189 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures + attr_accessor :paze_for_unified_checkout + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'paze_for_unified_checkout' => :'pazeForUnifiedCheckout' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'paze_for_unified_checkout' => :'paze_for_unified_checkout' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'paze_for_unified_checkout' => :'PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'pazeForUnifiedCheckout') + self.paze_for_unified_checkout = attributes[:'pazeForUnifiedCheckout'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + paze_for_unified_checkout == o.paze_for_unified_checkout + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [paze_for_unified_checkout].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout.rb b/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout.rb new file mode 100644 index 00000000..fd44ad4b --- /dev/null +++ b/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout.rb @@ -0,0 +1,190 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + # Enabling Paze under unified checkout + class PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout + attr_accessor :enabled + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'enabled' => :'enabled' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'enabled' => :'enabled' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'enabled' => :'BOOLEAN' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'enabled') + self.enabled = attributes[:'enabled'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + enabled == o.enabled + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [enabled].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/post_device_search_request.rb b/lib/cybersource_rest_client/models/post_device_search_request.rb new file mode 100644 index 00000000..a99c5b6e --- /dev/null +++ b/lib/cybersource_rest_client/models/post_device_search_request.rb @@ -0,0 +1,223 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'date' + +module CyberSource + class PostDeviceSearchRequest + # The Search Query to retrieve the Terminals(Example :- terminalSerialNumber:12345678 AND readerId:66c395ca-4f20-4b40-acac-5ff4c772d5f9 AND terminalId:T9KN88RTPE). Empty Query returns everything for the given organization. + attr_accessor :query + + # The Sort Query to order the Terminals by. By Default, It is in ascending order of last update of a device. + attr_accessor :sort + + # The offset or page number. + attr_accessor :offset + + # Number of devices to retrieve in one request. + attr_accessor :limit + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'query' => :'query', + :'sort' => :'sort', + :'offset' => :'offset', + :'limit' => :'limit' + } + end + + # Attribute mapping from JSON key to ruby-style variable name. + def self.json_map + { + :'query' => :'query', + :'sort' => :'sort', + :'offset' => :'offset', + :'limit' => :'limit' + } + end + + # Attribute type mapping. + def self.swagger_types + { + :'query' => :'String', + :'sort' => :'String', + :'offset' => :'Integer', + :'limit' => :'Integer' + } + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + return unless attributes.is_a?(Hash) + + # convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } + + if attributes.has_key?(:'query') + self.query = attributes[:'query'] + end + + if attributes.has_key?(:'sort') + self.sort = attributes[:'sort'] + end + + if attributes.has_key?(:'offset') + self.offset = attributes[:'offset'] + end + + if attributes.has_key?(:'limit') + self.limit = attributes[:'limit'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + query == o.query && + sort == o.sort && + offset == o.offset && + limit == o.limit + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Fixnum] Hash code + def hash + [query, sort, offset, limit].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + self.class.swagger_types.each_pair do |key, type| + if type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the the attribute + # is documented as an array but the input is not + if attributes[self.class.attribute_map[key]].is_a?(Array) + self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + end + elsif !attributes[self.class.attribute_map[key]].nil? + self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + end # or else data not found in attributes(hash), not an issue as the data can be optional + end + + self + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def _deserialize(type, value) + case type.to_sym + when :DateTime + DateTime.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :BOOLEAN + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + temp_model = CyberSource.const_get(type).new + temp_model.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + next if value.nil? + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + end +end diff --git a/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb b/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb index e79acf0e..19fa924b 100644 --- a/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +++ b/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb @@ -25,13 +25,17 @@ class Riskv1decisionsTravelInformationLegs # Departure date for the first leg of the trip. Format: YYYYMMDD. Required for American Express SafeKey (U.S.) for travel-related requests. attr_accessor :departure_date + # Time of departure for this leg of the trip. The format is military time and HHMM: If not all zeros, then the hours must be `00-23` and the minutes must be `00-59`. Format: English characters only. Optional request field for travel legs. + attr_accessor :departure_time + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'origination' => :'origination', :'destination' => :'destination', :'carrier_code' => :'carrierCode', - :'departure_date' => :'departureDate' + :'departure_date' => :'departureDate', + :'departure_time' => :'departureTime' } end @@ -41,7 +45,8 @@ def self.json_map :'origination' => :'origination', :'destination' => :'destination', :'carrier_code' => :'carrier_code', - :'departure_date' => :'departure_date' + :'departure_date' => :'departure_date', + :'departure_time' => :'departure_time' } end @@ -51,7 +56,8 @@ def self.swagger_types :'origination' => :'String', :'destination' => :'String', :'carrier_code' => :'String', - :'departure_date' => :'String' + :'departure_date' => :'String', + :'departure_time' => :'Integer' } end @@ -78,6 +84,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'departureDate') self.departure_date = attributes[:'departureDate'] end + + if attributes.has_key?(:'departureTime') + self.departure_time = attributes[:'departureTime'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -119,7 +129,8 @@ def ==(o) origination == o.origination && destination == o.destination && carrier_code == o.carrier_code && - departure_date == o.departure_date + departure_date == o.departure_date && + departure_time == o.departure_time end # @see the `==` method @@ -131,7 +142,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [origination, destination, carrier_code, departure_date].hash + [origination, destination, carrier_code, departure_date, departure_time].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb b/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb index 91f543dc..a87b224f 100644 --- a/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +++ b/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb @@ -44,6 +44,9 @@ class TssV2TransactionsGet200ResponseProcessorInformation attr_accessor :electronic_verification_results + # The event status. + attr_accessor :event_status + # This field is returned only for **American Express Direct** and **CyberSource through VisaNet**. Returned by authorization and incremental authorization services. #### American Express Direct System trace audit number (STAN). This value identifies the transaction and is useful when investigating a chargeback dispute. #### CyberSource through VisaNet System trace number that must be printed on the customer's receipt. attr_accessor :system_trace_audit_number @@ -68,6 +71,7 @@ def self.attribute_map :'card_verification' => :'cardVerification', :'ach_verification' => :'achVerification', :'electronic_verification_results' => :'electronicVerificationResults', + :'event_status' => :'eventStatus', :'system_trace_audit_number' => :'systemTraceAuditNumber', :'response_code_source' => :'responseCodeSource', :'payment_account_reference_number' => :'paymentAccountReferenceNumber' @@ -89,6 +93,7 @@ def self.json_map :'card_verification' => :'card_verification', :'ach_verification' => :'ach_verification', :'electronic_verification_results' => :'electronic_verification_results', + :'event_status' => :'event_status', :'system_trace_audit_number' => :'system_trace_audit_number', :'response_code_source' => :'response_code_source', :'payment_account_reference_number' => :'payment_account_reference_number' @@ -110,6 +115,7 @@ def self.swagger_types :'card_verification' => :'Riskv1decisionsProcessorInformationCardVerification', :'ach_verification' => :'PtsV2PaymentsPost201ResponseProcessorInformationAchVerification', :'electronic_verification_results' => :'TssV2TransactionsGet200ResponseProcessorInformationElectronicVerificationResults', + :'event_status' => :'String', :'system_trace_audit_number' => :'String', :'response_code_source' => :'String', :'payment_account_reference_number' => :'String' @@ -174,6 +180,10 @@ def initialize(attributes = {}) self.electronic_verification_results = attributes[:'electronicVerificationResults'] end + if attributes.has_key?(:'eventStatus') + self.event_status = attributes[:'eventStatus'] + end + if attributes.has_key?(:'systemTraceAuditNumber') self.system_trace_audit_number = attributes[:'systemTraceAuditNumber'] end @@ -259,6 +269,7 @@ def ==(o) card_verification == o.card_verification && ach_verification == o.ach_verification && electronic_verification_results == o.electronic_verification_results && + event_status == o.event_status && system_trace_audit_number == o.system_trace_audit_number && response_code_source == o.response_code_source && payment_account_reference_number == o.payment_account_reference_number @@ -273,7 +284,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [processor, multi_processor_routing, transaction_id, network_transaction_id, retrieval_reference_number, response_id, approval_code, response_code, avs, card_verification, ach_verification, electronic_verification_results, system_trace_audit_number, response_code_source, payment_account_reference_number].hash + [processor, multi_processor_routing, transaction_id, network_transaction_id, retrieval_reference_number, response_id, approval_code, response_code, avs, card_verification, ach_verification, electronic_verification_results, event_status, system_trace_audit_number, response_code_source, payment_account_reference_number].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb index d1ff4fbc..e5793aa6 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_capture_mandate.rb @@ -31,6 +31,9 @@ class Upv1capturecontextsCaptureMandate # Configure Unified Checkout to display the list of accepted card networks beneath the payment button Possible values: - True - False attr_accessor :show_accepted_network_icons + # Configure Unified Checkout to display the final confirmation screen when using Click to Pay.
Where 'BillingType'= NONE and 'requestShipping'= FALSE and the customer is using an existing Click to Pay card as their chosen payment method, a final confirmation screen can be removed allowing the customer to check out as soon as they have selected their payment method from within their Click to Pay card tray. Possible values: - True - False + attr_accessor :show_confirmation_step + # Configure Unified Checkout to display the \"Save card for future use\" checkbox.
Configurable check box that will show in a Manual card entry flow to allow a Cardholder to give consent to store their manually entered credential with the Merchant that they are paying.
Applicable when manually entering the details and not enrolling in Click to Pay. Possible values: - True - False

**Use Cases:** **Offer consumers option to save their card in Unified Checkout:** - Include the captureMandate.requestSaveCard field in the capture context request and set it to true. - When set to true, this will show a checkbox with the message 'Save card for future use' in Unified Checkout. - When selected this provides a response in both the Transient Token and Get Credentials API response.

**Do not offer consumers the option to save their card in Unified Checkout:** - Include the captureMandate.requestSaveCard field in the capture context request and set it to false OR omit the field from the capture context request. - When set to false, the save card option is not shown to consumers when manually entering card details. attr_accessor :request_save_card @@ -49,6 +52,7 @@ def self.attribute_map :'request_shipping' => :'requestShipping', :'ship_to_countries' => :'shipToCountries', :'show_accepted_network_icons' => :'showAcceptedNetworkIcons', + :'show_confirmation_step' => :'showConfirmationStep', :'request_save_card' => :'requestSaveCard', :'combo_card' => :'comboCard', :'cpf' => :'CPF' @@ -64,6 +68,7 @@ def self.json_map :'request_shipping' => :'request_shipping', :'ship_to_countries' => :'ship_to_countries', :'show_accepted_network_icons' => :'show_accepted_network_icons', + :'show_confirmation_step' => :'show_confirmation_step', :'request_save_card' => :'request_save_card', :'combo_card' => :'combo_card', :'cpf' => :'cpf' @@ -79,6 +84,7 @@ def self.swagger_types :'request_shipping' => :'BOOLEAN', :'ship_to_countries' => :'Array', :'show_accepted_network_icons' => :'BOOLEAN', + :'show_confirmation_step' => :'BOOLEAN', :'request_save_card' => :'BOOLEAN', :'combo_card' => :'BOOLEAN', :'cpf' => :'BOOLEAN' @@ -119,6 +125,10 @@ def initialize(attributes = {}) self.show_accepted_network_icons = attributes[:'showAcceptedNetworkIcons'] end + if attributes.has_key?(:'showConfirmationStep') + self.show_confirmation_step = attributes[:'showConfirmationStep'] + end + if attributes.has_key?(:'requestSaveCard') self.request_save_card = attributes[:'requestSaveCard'] end @@ -162,6 +172,7 @@ def ==(o) request_shipping == o.request_shipping && ship_to_countries == o.ship_to_countries && show_accepted_network_icons == o.show_accepted_network_icons && + show_confirmation_step == o.show_confirmation_step && request_save_card == o.request_save_card && combo_card == o.combo_card && cpf == o.cpf @@ -176,7 +187,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [billing_type, request_email, request_phone, request_shipping, ship_to_countries, show_accepted_network_icons, request_save_card, combo_card, cpf].hash + [billing_type, request_email, request_phone, request_shipping, ship_to_countries, show_accepted_network_icons, show_confirmation_step, request_save_card, combo_card, cpf].hash end # Builds the object from hash diff --git a/lib/cybersource_rest_client/models/upv1capturecontexts_complete_mandate.rb b/lib/cybersource_rest_client/models/upv1capturecontexts_complete_mandate.rb index a9a880dc..4ac448b4 100644 --- a/lib/cybersource_rest_client/models/upv1capturecontexts_complete_mandate.rb +++ b/lib/cybersource_rest_client/models/upv1capturecontexts_complete_mandate.rb @@ -14,17 +14,21 @@ module CyberSource # The completeMandate object is designed to provide instructions for orchestrating payment services. Unified Checkout is capable of orchestrating a number of services on your behalf.

By providing this field in the capture context Unified Checkout will initiate services on your behalf from the browser, simplifying your integration. class Upv1capturecontextsCompleteMandate - # This field is used to indicate how a payment should be processed. Possible values: - AUTH: Use this value when you want to authorize a payment without capturing it immediately. Payment types that initiate an immediate transfer of funds are not allowed. If a capture context request includes a payment type incompatible with this mode, a 400 error will be returned.

- CAPTURE: Use this value when you want to capture the payment immediately during the transaction. Note: Some payment types may return a PENDING status, requiring an additional status check call to determine the final outcome of the payment.

- PREFER_AUTH: Use this value to offer multiple alternative payment options during the Unified Checkout experience. This option authorizes the payment without immediate capture, where available. Payment types like account-to-account transfers that initiate an immediate transfer of funds are allowed and presented to the customer. If selected, an immediate transfer of funds occurs; otherwise, a final backend call is needed to capture the payment. Transactions can be AUTHORIZED, CAPTURED, or PENDING. + # This field is used to indicate how a payment should be processed. Possible values: - AUTH: Use this value when you want to authorize a payment within Unified Checkout without capturing it immediately. Payment types that initiate an immediate transfer of funds are NOT allowed. If a capture context request includes a payment type incompatible with this mode, a 400 error will be returned. A merchant would need to perform their own capture via API where applicable.

- CAPTURE: Use this value when you want to perform a sale within Unified Checkout and capture the payment immediately during the transaction. Note: Some payment types may return a PENDING status, requiring an additional status check call to determine the final outcome of the payment.

- PREFER_AUTH: Use this value to offer multiple alternative payment options during the Unified Checkout experience. This option authorizes the payment without immediate capture, where available. It will perform a \"CAPTURE\" where an \"AUTH\" is not allowed by the payment type. Transactions can be AUTHORIZED, CAPTURED, or PENDING. If an \"AUTH\" is performed, a merchant would need to perform their own capture via API where applicable. attr_accessor :type - # Configure Unified Checkout to determine whether Decision Manager is invoked during service orchestration. Possible values: - True - False

Setting this value to True indicates that device fingerprinting will be executed to add additional information for risk service Setting this value to False indicates that you do not wish to run device fingerprinting and skip decision manager services. + # Configure Unified Checkout to determine whether Decision Manager is invoked during service orchestration. Possible values: - True - False

Setting this value to True indicates that device fingerprinting will be executed to add additional information for risk service Setting this value to False (or not provided) indicates that you do not wish to run device fingerprinting and skip decision manager services. attr_accessor :decision_manager + # Configure Unified Checkout to determine whether Consumer Authentication is invoked during service orchestration. Possible values: - True - False

Setting this value to True will attempt to perform authentication using the Payer Authentication Service. Setting this value to False (or not provided) indicates that you do not wish to perform authentication using the Payer Authentication Service. + attr_accessor :consumer_authentication + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', - :'decision_manager' => :'decisionManager' + :'decision_manager' => :'decisionManager', + :'consumer_authentication' => :'consumerAuthentication' } end @@ -32,7 +36,8 @@ def self.attribute_map def self.json_map { :'type' => :'type', - :'decision_manager' => :'decision_manager' + :'decision_manager' => :'decision_manager', + :'consumer_authentication' => :'consumer_authentication' } end @@ -40,7 +45,8 @@ def self.json_map def self.swagger_types { :'type' => :'String', - :'decision_manager' => :'BOOLEAN' + :'decision_manager' => :'BOOLEAN', + :'consumer_authentication' => :'BOOLEAN' } end @@ -59,6 +65,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'decisionManager') self.decision_manager = attributes[:'decisionManager'] end + + if attributes.has_key?(:'consumerAuthentication') + self.consumer_authentication = attributes[:'consumerAuthentication'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -86,7 +96,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && - decision_manager == o.decision_manager + decision_manager == o.decision_manager && + consumer_authentication == o.consumer_authentication end # @see the `==` method @@ -98,7 +109,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [type, decision_manager].hash + [type, decision_manager, consumer_authentication].hash end # Builds the object from hash diff --git a/spec/api/batches_api_spec.rb b/spec/api/batches_api_spec.rb index afcd8135..8b41f1c8 100644 --- a/spec/api/batches_api_spec.rb +++ b/spec/api/batches_api_spec.rb @@ -36,7 +36,7 @@ # **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type. # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [InlineResponse2009] + # @return [InlineResponse20010] describe 'get_batch_report test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -48,7 +48,7 @@ # **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) # @param batch_id Unique identification number assigned to the submitted request. # @param [Hash] opts the optional parameters - # @return [InlineResponse2008] + # @return [InlineResponse2009] describe 'get_batch_status test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers @@ -63,7 +63,7 @@ # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ - # @return [InlineResponse2007] + # @return [InlineResponse2008] describe 'get_batches_list test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/device_de_association_v3_api_spec.rb b/spec/api/device_de_association_api_spec.rb similarity index 59% rename from spec/api/device_de_association_v3_api_spec.rb rename to spec/api/device_de_association_api_spec.rb index 55bad25b..f5ebf1ad 100644 --- a/spec/api/device_de_association_v3_api_spec.rb +++ b/spec/api/device_de_association_api_spec.rb @@ -12,31 +12,43 @@ require 'spec_helper' require 'json' -# Unit tests for CyberSource::DeviceDeAssociationV3Api +# Unit tests for CyberSource::DeviceDeAssociationApi # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'DeviceDeAssociationV3Api' do +describe 'DeviceDeAssociationApi' do before do # run before each test - @instance = CyberSource::DeviceDeAssociationV3Api.new + @instance = CyberSource::DeviceDeAssociationApi.new end after do # run after each test end - describe 'test an instance of DeviceDeAssociationV3Api' do - it 'should create an instance of DeviceDeAssociationV3Api' do - expect(@instance).to be_instance_of(CyberSource::DeviceDeAssociationV3Api) + describe 'test an instance of DeviceDeAssociationApi' do + it 'should create an instance of DeviceDeAssociationApi' do + expect(@instance).to be_instance_of(CyberSource::DeviceDeAssociationApi) + end + end + + # unit tests for delete_terminal_association + # De-associate a device from merchant or account V2 + # The current association of the device will be removed and will be assigned back to parent in the hierarchy based on internal logic + # @param de_association_request_body de association of the deviceId in the request body. + # @param [Hash] opts the optional parameters + # @return [nil] + describe 'delete_terminal_association test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end # unit tests for post_de_associate_v3_terminal - # De-associate a device from merchant to account or reseller and from account to reseller V3 + # De-associate a device from merchant to account or reseller and from account to reseller # A device will be de-associated from its current organization and moved up in the hierarchy. The device's new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user. # @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId. # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] describe 'post_de_associate_v3_terminal test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/device_search_api_spec.rb b/spec/api/device_search_api_spec.rb index 3d9b6805..b53b5fe6 100644 --- a/spec/api/device_search_api_spec.rb +++ b/spec/api/device_search_api_spec.rb @@ -31,12 +31,24 @@ end end + # unit tests for post_search_query + # Retrieve List of Devices for a given search query V2 + # Retrieves list of terminals in paginated format. + # @param post_device_search_request + # @param [Hash] opts the optional parameters + # @return [InlineResponse2005] + describe 'post_search_query test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for post_search_query_v3 - # Retrieve List of Devices for a given search query V3 + # Retrieve List of Devices for a given search query # Search for devices matching a given search query. The search query supports serialNumber, readerId, terminalId, status, statusChangeReason or organizationId Matching results are paginated. # @param post_device_search_request_v3 # @param [Hash] opts the optional parameters - # @return [InlineResponse2006] + # @return [InlineResponse2007] describe 'post_search_query_v3 test' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/api/subscriptions_api_spec.rb b/spec/api/subscriptions_api_spec.rb index f5cd4ee9..1166e8b4 100644 --- a/spec/api/subscriptions_api_spec.rb +++ b/spec/api/subscriptions_api_spec.rb @@ -33,9 +33,10 @@ # unit tests for activate_subscription # Activate a Subscription - # Activate a `CANCELLED` Or `SUSPENDED` Subscription + # Activate a `SUSPENDED` Subscription # @param id Subscription Id # @param [Hash] opts the optional parameters + # @option opts [BOOLEAN] :process_skipped_payments Indicates if skipped payments should be processed from the period when the subscription was suspended. By default, this is set to true. # @return [ActivateSubscriptionResponse] describe 'activate_subscription test' do it 'should work' do diff --git a/spec/models/de_association_request_body_spec.rb b/spec/models/de_association_request_body_spec.rb new file mode 100644 index 00000000..bb0ab65e --- /dev/null +++ b/spec/models/de_association_request_body_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::DeAssociationRequestBody +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'DeAssociationRequestBody' do + before do + # run before each test + @instance = CyberSource::DeAssociationRequestBody.new + end + + after do + # run after each test + end + + describe 'test an instance of DeAssociationRequestBody' do + it 'should create an instance of DeAssociationRequestBody' do + expect(@instance).to be_instance_of(CyberSource::DeAssociationRequestBody) + end + end + describe 'test attribute "device_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/get_subscription_response_reactivation_information_spec.rb b/spec/models/get_subscription_response_reactivation_information_spec.rb new file mode 100644 index 00000000..905aef43 --- /dev/null +++ b/spec/models/get_subscription_response_reactivation_information_spec.rb @@ -0,0 +1,46 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::GetSubscriptionResponseReactivationInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'GetSubscriptionResponseReactivationInformation' do + before do + # run before each test + @instance = CyberSource::GetSubscriptionResponseReactivationInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of GetSubscriptionResponseReactivationInformation' do + it 'should create an instance of GetSubscriptionResponseReactivationInformation' do + expect(@instance).to be_instance_of(CyberSource::GetSubscriptionResponseReactivationInformation) + end + end + describe 'test attribute "skipped_payments_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "skipped_payments_total_amount"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/get_subscription_response_spec.rb b/spec/models/get_subscription_response_spec.rb index b35562dd..590af858 100644 --- a/spec/models/get_subscription_response_spec.rb +++ b/spec/models/get_subscription_response_spec.rb @@ -73,4 +73,10 @@ end end + describe 'test attribute "reactivation_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/inline_response_200_9_records_spec.rb b/spec/models/inline_response_200_10_records_spec.rb similarity index 79% rename from spec/models/inline_response_200_9_records_spec.rb rename to spec/models/inline_response_200_10_records_spec.rb index 5a295a35..4f44f67f 100644 --- a/spec/models/inline_response_200_9_records_spec.rb +++ b/spec/models/inline_response_200_10_records_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2009Records +# Unit tests for CyberSource::InlineResponse20010Records # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2009Records' do +describe 'InlineResponse20010Records' do before do # run before each test - @instance = CyberSource::InlineResponse2009Records.new + @instance = CyberSource::InlineResponse20010Records.new end after do # run after each test end - describe 'test an instance of InlineResponse2009Records' do - it 'should create an instance of InlineResponse2009Records' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2009Records) + describe 'test an instance of InlineResponse20010Records' do + it 'should create an instance of InlineResponse20010Records' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20010Records) end end describe 'test attribute "id"' do diff --git a/spec/models/inline_response_200_9_response_record_additional_updates_spec.rb b/spec/models/inline_response_200_10_response_record_additional_updates_spec.rb similarity index 77% rename from spec/models/inline_response_200_9_response_record_additional_updates_spec.rb rename to spec/models/inline_response_200_10_response_record_additional_updates_spec.rb index ed7c7a14..9c71225d 100644 --- a/spec/models/inline_response_200_9_response_record_additional_updates_spec.rb +++ b/spec/models/inline_response_200_10_response_record_additional_updates_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2009ResponseRecordAdditionalUpdates +# Unit tests for CyberSource::InlineResponse20010ResponseRecordAdditionalUpdates # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2009ResponseRecordAdditionalUpdates' do +describe 'InlineResponse20010ResponseRecordAdditionalUpdates' do before do # run before each test - @instance = CyberSource::InlineResponse2009ResponseRecordAdditionalUpdates.new + @instance = CyberSource::InlineResponse20010ResponseRecordAdditionalUpdates.new end after do # run after each test end - describe 'test an instance of InlineResponse2009ResponseRecordAdditionalUpdates' do - it 'should create an instance of InlineResponse2009ResponseRecordAdditionalUpdates' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2009ResponseRecordAdditionalUpdates) + describe 'test an instance of InlineResponse20010ResponseRecordAdditionalUpdates' do + it 'should create an instance of InlineResponse20010ResponseRecordAdditionalUpdates' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20010ResponseRecordAdditionalUpdates) end end describe 'test attribute "customer_id"' do diff --git a/spec/models/inline_response_200_9_response_record_spec.rb b/spec/models/inline_response_200_10_response_record_spec.rb similarity index 87% rename from spec/models/inline_response_200_9_response_record_spec.rb rename to spec/models/inline_response_200_10_response_record_spec.rb index b9e72340..f0076ae4 100644 --- a/spec/models/inline_response_200_9_response_record_spec.rb +++ b/spec/models/inline_response_200_10_response_record_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2009ResponseRecord +# Unit tests for CyberSource::InlineResponse20010ResponseRecord # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2009ResponseRecord' do +describe 'InlineResponse20010ResponseRecord' do before do # run before each test - @instance = CyberSource::InlineResponse2009ResponseRecord.new + @instance = CyberSource::InlineResponse20010ResponseRecord.new end after do # run after each test end - describe 'test an instance of InlineResponse2009ResponseRecord' do - it 'should create an instance of InlineResponse2009ResponseRecord' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2009ResponseRecord) + describe 'test an instance of InlineResponse20010ResponseRecord' do + it 'should create an instance of InlineResponse20010ResponseRecord' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20010ResponseRecord) end end describe 'test attribute "response"' do diff --git a/spec/models/inline_response_200_9_source_record_spec.rb b/spec/models/inline_response_200_10_source_record_spec.rb similarity index 86% rename from spec/models/inline_response_200_9_source_record_spec.rb rename to spec/models/inline_response_200_10_source_record_spec.rb index b80a1feb..49ef094b 100644 --- a/spec/models/inline_response_200_9_source_record_spec.rb +++ b/spec/models/inline_response_200_10_source_record_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2009SourceRecord +# Unit tests for CyberSource::InlineResponse20010SourceRecord # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2009SourceRecord' do +describe 'InlineResponse20010SourceRecord' do before do # run before each test - @instance = CyberSource::InlineResponse2009SourceRecord.new + @instance = CyberSource::InlineResponse20010SourceRecord.new end after do # run after each test end - describe 'test an instance of InlineResponse2009SourceRecord' do - it 'should create an instance of InlineResponse2009SourceRecord' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2009SourceRecord) + describe 'test an instance of InlineResponse20010SourceRecord' do + it 'should create an instance of InlineResponse20010SourceRecord' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20010SourceRecord) end end describe 'test attribute "token"' do diff --git a/spec/models/inline_response_200_10_spec.rb b/spec/models/inline_response_200_10_spec.rb new file mode 100644 index 00000000..d323ab5c --- /dev/null +++ b/spec/models/inline_response_200_10_spec.rb @@ -0,0 +1,94 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::InlineResponse20010 +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse20010' do + before do + # run before each test + @instance = CyberSource::InlineResponse20010.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse20010' do + it 'should create an instance of InlineResponse20010' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse20010) + end + end + describe 'test attribute "version"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "report_created_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "batch_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "batch_source"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "batch_ca_endpoints"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "batch_created_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "merchant_reference"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "totals"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "billing"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "records"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/inline_response_200_5_devices_spec.rb b/spec/models/inline_response_200_5_devices_spec.rb new file mode 100644 index 00000000..b1e8791c --- /dev/null +++ b/spec/models/inline_response_200_5_devices_spec.rb @@ -0,0 +1,88 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::InlineResponse2005Devices +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'InlineResponse2005Devices' do + before do + # run before each test + @instance = CyberSource::InlineResponse2005Devices.new + end + + after do + # run after each test + end + + describe 'test an instance of InlineResponse2005Devices' do + it 'should create an instance of InlineResponse2005Devices' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2005Devices) + end + end + describe 'test attribute "reader_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "terminal_serial_number"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "terminal_id"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "model"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "make"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "hardware_revision"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "creation_date"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "pin"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/inline_response_200_5_spec.rb b/spec/models/inline_response_200_5_spec.rb index c05b34b0..46a8310e 100644 --- a/spec/models/inline_response_200_5_spec.rb +++ b/spec/models/inline_response_200_5_spec.rb @@ -31,7 +31,31 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2005) end end - describe 'test attribute "status"' do + describe 'test attribute "total_count"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "offset"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "sort"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "count"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_6_spec.rb b/spec/models/inline_response_200_6_spec.rb index e5eef428..86dde99b 100644 --- a/spec/models/inline_response_200_6_spec.rb +++ b/spec/models/inline_response_200_6_spec.rb @@ -31,31 +31,7 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2006) end end - describe 'test attribute "total_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "offset"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "limit"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sort"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "count"' do + describe 'test attribute "status"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_6_devices_spec.rb b/spec/models/inline_response_200_7_devices_spec.rb similarity index 90% rename from spec/models/inline_response_200_6_devices_spec.rb rename to spec/models/inline_response_200_7_devices_spec.rb index ea487fba..82121e33 100644 --- a/spec/models/inline_response_200_6_devices_spec.rb +++ b/spec/models/inline_response_200_7_devices_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2006Devices +# Unit tests for CyberSource::InlineResponse2007Devices # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2006Devices' do +describe 'InlineResponse2007Devices' do before do # run before each test - @instance = CyberSource::InlineResponse2006Devices.new + @instance = CyberSource::InlineResponse2007Devices.new end after do # run after each test end - describe 'test an instance of InlineResponse2006Devices' do - it 'should create an instance of InlineResponse2006Devices' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2006Devices) + describe 'test an instance of InlineResponse2007Devices' do + it 'should create an instance of InlineResponse2007Devices' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2007Devices) end end describe 'test attribute "reader_id"' do diff --git a/spec/models/inline_response_200_6_payment_processor_to_terminal_map_spec.rb b/spec/models/inline_response_200_7_payment_processor_to_terminal_map_spec.rb similarity index 75% rename from spec/models/inline_response_200_6_payment_processor_to_terminal_map_spec.rb rename to spec/models/inline_response_200_7_payment_processor_to_terminal_map_spec.rb index a332b2f4..45233577 100644 --- a/spec/models/inline_response_200_6_payment_processor_to_terminal_map_spec.rb +++ b/spec/models/inline_response_200_7_payment_processor_to_terminal_map_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2006PaymentProcessorToTerminalMap +# Unit tests for CyberSource::InlineResponse2007PaymentProcessorToTerminalMap # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2006PaymentProcessorToTerminalMap' do +describe 'InlineResponse2007PaymentProcessorToTerminalMap' do before do # run before each test - @instance = CyberSource::InlineResponse2006PaymentProcessorToTerminalMap.new + @instance = CyberSource::InlineResponse2007PaymentProcessorToTerminalMap.new end after do # run after each test end - describe 'test an instance of InlineResponse2006PaymentProcessorToTerminalMap' do - it 'should create an instance of InlineResponse2006PaymentProcessorToTerminalMap' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2006PaymentProcessorToTerminalMap) + describe 'test an instance of InlineResponse2007PaymentProcessorToTerminalMap' do + it 'should create an instance of InlineResponse2007PaymentProcessorToTerminalMap' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2007PaymentProcessorToTerminalMap) end end describe 'test attribute "processor"' do diff --git a/spec/models/inline_response_200_7_spec.rb b/spec/models/inline_response_200_7_spec.rb index c66feb7c..366f53d4 100644 --- a/spec/models/inline_response_200_7_spec.rb +++ b/spec/models/inline_response_200_7_spec.rb @@ -31,13 +31,7 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2007) end end - describe 'test attribute "_links"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "object"' do + describe 'test attribute "total_count"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -55,19 +49,19 @@ end end - describe 'test attribute "count"' do + describe 'test attribute "sort"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "total"' do + describe 'test attribute "count"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "_embedded"' do + describe 'test attribute "devices"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_7__embedded__links_reports_spec.rb b/spec/models/inline_response_200_8__embedded__links_reports_spec.rb similarity index 71% rename from spec/models/inline_response_200_7__embedded__links_reports_spec.rb rename to spec/models/inline_response_200_8__embedded__links_reports_spec.rb index f37cf67f..d4031bb5 100644 --- a/spec/models/inline_response_200_7__embedded__links_reports_spec.rb +++ b/spec/models/inline_response_200_8__embedded__links_reports_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2007EmbeddedLinksReports +# Unit tests for CyberSource::InlineResponse2008EmbeddedLinksReports # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2007EmbeddedLinksReports' do +describe 'InlineResponse2008EmbeddedLinksReports' do before do # run before each test - @instance = CyberSource::InlineResponse2007EmbeddedLinksReports.new + @instance = CyberSource::InlineResponse2008EmbeddedLinksReports.new end after do # run after each test end - describe 'test an instance of InlineResponse2007EmbeddedLinksReports' do - it 'should create an instance of InlineResponse2007EmbeddedLinksReports' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2007EmbeddedLinksReports) + describe 'test an instance of InlineResponse2008EmbeddedLinksReports' do + it 'should create an instance of InlineResponse2008EmbeddedLinksReports' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2008EmbeddedLinksReports) end end describe 'test attribute "href"' do diff --git a/spec/models/inline_response_200_7__embedded__links_spec.rb b/spec/models/inline_response_200_8__embedded__links_spec.rb similarity index 72% rename from spec/models/inline_response_200_7__embedded__links_spec.rb rename to spec/models/inline_response_200_8__embedded__links_spec.rb index b27f9031..d25f9657 100644 --- a/spec/models/inline_response_200_7__embedded__links_spec.rb +++ b/spec/models/inline_response_200_8__embedded__links_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2007EmbeddedLinks +# Unit tests for CyberSource::InlineResponse2008EmbeddedLinks # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2007EmbeddedLinks' do +describe 'InlineResponse2008EmbeddedLinks' do before do # run before each test - @instance = CyberSource::InlineResponse2007EmbeddedLinks.new + @instance = CyberSource::InlineResponse2008EmbeddedLinks.new end after do # run after each test end - describe 'test an instance of InlineResponse2007EmbeddedLinks' do - it 'should create an instance of InlineResponse2007EmbeddedLinks' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2007EmbeddedLinks) + describe 'test an instance of InlineResponse2008EmbeddedLinks' do + it 'should create an instance of InlineResponse2008EmbeddedLinks' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2008EmbeddedLinks) end end describe 'test attribute "reports"' do diff --git a/spec/models/inline_response_200_7__embedded_batches_spec.rb b/spec/models/inline_response_200_8__embedded_batches_spec.rb similarity index 88% rename from spec/models/inline_response_200_7__embedded_batches_spec.rb rename to spec/models/inline_response_200_8__embedded_batches_spec.rb index 796102a1..644abd50 100644 --- a/spec/models/inline_response_200_7__embedded_batches_spec.rb +++ b/spec/models/inline_response_200_8__embedded_batches_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2007EmbeddedBatches +# Unit tests for CyberSource::InlineResponse2008EmbeddedBatches # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2007EmbeddedBatches' do +describe 'InlineResponse2008EmbeddedBatches' do before do # run before each test - @instance = CyberSource::InlineResponse2007EmbeddedBatches.new + @instance = CyberSource::InlineResponse2008EmbeddedBatches.new end after do # run after each test end - describe 'test an instance of InlineResponse2007EmbeddedBatches' do - it 'should create an instance of InlineResponse2007EmbeddedBatches' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2007EmbeddedBatches) + describe 'test an instance of InlineResponse2008EmbeddedBatches' do + it 'should create an instance of InlineResponse2008EmbeddedBatches' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2008EmbeddedBatches) end end describe 'test attribute "_links"' do diff --git a/spec/models/inline_response_200_7__embedded_spec.rb b/spec/models/inline_response_200_8__embedded_spec.rb similarity index 73% rename from spec/models/inline_response_200_7__embedded_spec.rb rename to spec/models/inline_response_200_8__embedded_spec.rb index 46dddb43..f6055327 100644 --- a/spec/models/inline_response_200_7__embedded_spec.rb +++ b/spec/models/inline_response_200_8__embedded_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2007Embedded +# Unit tests for CyberSource::InlineResponse2008Embedded # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2007Embedded' do +describe 'InlineResponse2008Embedded' do before do # run before each test - @instance = CyberSource::InlineResponse2007Embedded.new + @instance = CyberSource::InlineResponse2008Embedded.new end after do # run after each test end - describe 'test an instance of InlineResponse2007Embedded' do - it 'should create an instance of InlineResponse2007Embedded' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2007Embedded) + describe 'test an instance of InlineResponse2008Embedded' do + it 'should create an instance of InlineResponse2008Embedded' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2008Embedded) end end describe 'test attribute "batches"' do diff --git a/spec/models/inline_response_200_7__embedded_totals_spec.rb b/spec/models/inline_response_200_8__embedded_totals_spec.rb similarity index 83% rename from spec/models/inline_response_200_7__embedded_totals_spec.rb rename to spec/models/inline_response_200_8__embedded_totals_spec.rb index 6e4d2dde..905cd211 100644 --- a/spec/models/inline_response_200_7__embedded_totals_spec.rb +++ b/spec/models/inline_response_200_8__embedded_totals_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2007EmbeddedTotals +# Unit tests for CyberSource::InlineResponse2008EmbeddedTotals # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2007EmbeddedTotals' do +describe 'InlineResponse2008EmbeddedTotals' do before do # run before each test - @instance = CyberSource::InlineResponse2007EmbeddedTotals.new + @instance = CyberSource::InlineResponse2008EmbeddedTotals.new end after do # run after each test end - describe 'test an instance of InlineResponse2007EmbeddedTotals' do - it 'should create an instance of InlineResponse2007EmbeddedTotals' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2007EmbeddedTotals) + describe 'test an instance of InlineResponse2008EmbeddedTotals' do + it 'should create an instance of InlineResponse2008EmbeddedTotals' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2008EmbeddedTotals) end end describe 'test attribute "accepted_records"' do diff --git a/spec/models/inline_response_200_8__links_spec.rb b/spec/models/inline_response_200_8__links_spec.rb index 7880a655..bbd2a4e6 100644 --- a/spec/models/inline_response_200_8__links_spec.rb +++ b/spec/models/inline_response_200_8__links_spec.rb @@ -31,13 +31,13 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2008Links) end end - describe 'test attribute "_self"' do + describe 'test attribute "rel"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "report"' do + describe 'test attribute "href"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_8_spec.rb b/spec/models/inline_response_200_8_spec.rb index 07d1eaf1..1729b159 100644 --- a/spec/models/inline_response_200_8_spec.rb +++ b/spec/models/inline_response_200_8_spec.rb @@ -37,55 +37,37 @@ end end - describe 'test attribute "batch_id"' do + describe 'test attribute "object"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "batch_created_date"' do + describe 'test attribute "offset"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "batch_source"' do + describe 'test attribute "limit"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "merchant_reference"' do + describe 'test attribute "count"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "batch_ca_endpoints"' do + describe 'test attribute "total"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "totals"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "billing"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do + describe 'test attribute "_embedded"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_8__links_report_spec.rb b/spec/models/inline_response_200_9__links_report_spec.rb similarity index 72% rename from spec/models/inline_response_200_8__links_report_spec.rb rename to spec/models/inline_response_200_9__links_report_spec.rb index 595e0c80..95dab920 100644 --- a/spec/models/inline_response_200_8__links_report_spec.rb +++ b/spec/models/inline_response_200_9__links_report_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2008LinksReport +# Unit tests for CyberSource::InlineResponse2009LinksReport # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2008LinksReport' do +describe 'InlineResponse2009LinksReport' do before do # run before each test - @instance = CyberSource::InlineResponse2008LinksReport.new + @instance = CyberSource::InlineResponse2009LinksReport.new end after do # run after each test end - describe 'test an instance of InlineResponse2008LinksReport' do - it 'should create an instance of InlineResponse2008LinksReport' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2008LinksReport) + describe 'test an instance of InlineResponse2009LinksReport' do + it 'should create an instance of InlineResponse2009LinksReport' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2009LinksReport) end end describe 'test attribute "href"' do diff --git a/spec/models/inline_response_200_7__links_spec.rb b/spec/models/inline_response_200_9__links_spec.rb similarity index 71% rename from spec/models/inline_response_200_7__links_spec.rb rename to spec/models/inline_response_200_9__links_spec.rb index 657ac153..c021b583 100644 --- a/spec/models/inline_response_200_7__links_spec.rb +++ b/spec/models/inline_response_200_9__links_spec.rb @@ -13,31 +13,31 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2007Links +# Unit tests for CyberSource::InlineResponse2009Links # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2007Links' do +describe 'InlineResponse2009Links' do before do # run before each test - @instance = CyberSource::InlineResponse2007Links.new + @instance = CyberSource::InlineResponse2009Links.new end after do # run after each test end - describe 'test an instance of InlineResponse2007Links' do - it 'should create an instance of InlineResponse2007Links' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2007Links) + describe 'test an instance of InlineResponse2009Links' do + it 'should create an instance of InlineResponse2009Links' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2009Links) end end - describe 'test attribute "rel"' do + describe 'test attribute "_self"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "href"' do + describe 'test attribute "report"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/inline_response_200_8_billing_spec.rb b/spec/models/inline_response_200_9_billing_spec.rb similarity index 82% rename from spec/models/inline_response_200_8_billing_spec.rb rename to spec/models/inline_response_200_9_billing_spec.rb index 2940cde6..edee831d 100644 --- a/spec/models/inline_response_200_8_billing_spec.rb +++ b/spec/models/inline_response_200_9_billing_spec.rb @@ -13,22 +13,22 @@ require 'json' require 'date' -# Unit tests for CyberSource::InlineResponse2008Billing +# Unit tests for CyberSource::InlineResponse2009Billing # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) # Please update as you see appropriate -describe 'InlineResponse2008Billing' do +describe 'InlineResponse2009Billing' do before do # run before each test - @instance = CyberSource::InlineResponse2008Billing.new + @instance = CyberSource::InlineResponse2009Billing.new end after do # run after each test end - describe 'test an instance of InlineResponse2008Billing' do - it 'should create an instance of InlineResponse2008Billing' do - expect(@instance).to be_instance_of(CyberSource::InlineResponse2008Billing) + describe 'test an instance of InlineResponse2009Billing' do + it 'should create an instance of InlineResponse2009Billing' do + expect(@instance).to be_instance_of(CyberSource::InlineResponse2009Billing) end end describe 'test attribute "nan"' do diff --git a/spec/models/inline_response_200_9_spec.rb b/spec/models/inline_response_200_9_spec.rb index 93f11676..58807a18 100644 --- a/spec/models/inline_response_200_9_spec.rb +++ b/spec/models/inline_response_200_9_spec.rb @@ -31,19 +31,19 @@ expect(@instance).to be_instance_of(CyberSource::InlineResponse2009) end end - describe 'test attribute "version"' do + describe 'test attribute "_links"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "report_created_date"' do + describe 'test attribute "batch_id"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "batch_id"' do + describe 'test attribute "batch_created_date"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -55,19 +55,19 @@ end end - describe 'test attribute "batch_ca_endpoints"' do + describe 'test attribute "merchant_reference"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "batch_created_date"' do + describe 'test attribute "batch_ca_endpoints"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end end - describe 'test attribute "merchant_reference"' do + describe 'test attribute "status"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end @@ -85,7 +85,7 @@ end end - describe 'test attribute "records"' do + describe 'test attribute "description"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers end diff --git a/spec/models/payments_products_unified_checkout_configuration_information_configurations_features_paze_spec.rb b/spec/models/payments_products_unified_checkout_configuration_information_configurations_features_paze_spec.rb new file mode 100644 index 00000000..86c5a360 --- /dev/null +++ b/spec/models/payments_products_unified_checkout_configuration_information_configurations_features_paze_spec.rb @@ -0,0 +1,52 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze' do + it 'should create an instance of PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeaturesPaze) + end + end + describe 'test attribute "financial_institution"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "financial_institution_contract"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "paze_enabled_in_profile"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/payments_products_unified_checkout_configuration_information_configurations_features_spec.rb b/spec/models/payments_products_unified_checkout_configuration_information_configurations_features_spec.rb new file mode 100644 index 00000000..de808e4f --- /dev/null +++ b/spec/models/payments_products_unified_checkout_configuration_information_configurations_features_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures' do + it 'should create an instance of PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurationsFeatures) + end + end + describe 'test attribute "paze"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/payments_products_unified_checkout_configuration_information_configurations_spec.rb b/spec/models/payments_products_unified_checkout_configuration_information_configurations_spec.rb new file mode 100644 index 00000000..b7f20ba6 --- /dev/null +++ b/spec/models/payments_products_unified_checkout_configuration_information_configurations_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations' do + it 'should create an instance of PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformationConfigurations) + end + end + describe 'test attribute "features"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/payments_products_unified_checkout_configuration_information_spec.rb b/spec/models/payments_products_unified_checkout_configuration_information_spec.rb new file mode 100644 index 00000000..b8ed2bf9 --- /dev/null +++ b/spec/models/payments_products_unified_checkout_configuration_information_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsUnifiedCheckoutConfigurationInformation' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsUnifiedCheckoutConfigurationInformation' do + it 'should create an instance of PaymentsProductsUnifiedCheckoutConfigurationInformation' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsUnifiedCheckoutConfigurationInformation) + end + end + describe 'test attribute "configurations"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/payments_products_unified_checkout_spec.rb b/spec/models/payments_products_unified_checkout_spec.rb new file mode 100644 index 00000000..b147c23b --- /dev/null +++ b/spec/models/payments_products_unified_checkout_spec.rb @@ -0,0 +1,46 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::PaymentsProductsUnifiedCheckout +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsUnifiedCheckout' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsUnifiedCheckout.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsUnifiedCheckout' do + it 'should create an instance of PaymentsProductsUnifiedCheckout' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsUnifiedCheckout) + end + end + describe 'test attribute "subscription_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "configuration_information"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout_spec.rb b/spec/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout_spec.rb new file mode 100644 index 00000000..1ca78882 --- /dev/null +++ b/spec/models/payments_products_unified_checkout_subscription_information_features_paze_for_unified_checkout_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout' do + it 'should create an instance of PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformationFeaturesPazeForUnifiedCheckout) + end + end + describe 'test attribute "enabled"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/payments_products_unified_checkout_subscription_information_features_spec.rb b/spec/models/payments_products_unified_checkout_subscription_information_features_spec.rb new file mode 100644 index 00000000..3d1ee988 --- /dev/null +++ b/spec/models/payments_products_unified_checkout_subscription_information_features_spec.rb @@ -0,0 +1,40 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures' do + it 'should create an instance of PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformationFeatures) + end + end + describe 'test attribute "paze_for_unified_checkout"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/payments_products_unified_checkout_subscription_information_spec.rb b/spec/models/payments_products_unified_checkout_subscription_information_spec.rb new file mode 100644 index 00000000..5de128e3 --- /dev/null +++ b/spec/models/payments_products_unified_checkout_subscription_information_spec.rb @@ -0,0 +1,58 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformation +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PaymentsProductsUnifiedCheckoutSubscriptionInformation' do + before do + # run before each test + @instance = CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformation.new + end + + after do + # run after each test + end + + describe 'test an instance of PaymentsProductsUnifiedCheckoutSubscriptionInformation' do + it 'should create an instance of PaymentsProductsUnifiedCheckoutSubscriptionInformation' do + expect(@instance).to be_instance_of(CyberSource::PaymentsProductsUnifiedCheckoutSubscriptionInformation) + end + end + describe 'test attribute "enabled"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "enablement_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "self_serviceability"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "features"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/post_device_search_request_spec.rb b/spec/models/post_device_search_request_spec.rb new file mode 100644 index 00000000..e25c4543 --- /dev/null +++ b/spec/models/post_device_search_request_spec.rb @@ -0,0 +1,58 @@ +=begin +#CyberSource Merged Spec + +#All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html + +OpenAPI spec version: 0.0.1 + +Generated by: https://github.com/swagger-api/swagger-codegen.git +Swagger Codegen version: 2.4.38 +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for CyberSource::PostDeviceSearchRequest +# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen) +# Please update as you see appropriate +describe 'PostDeviceSearchRequest' do + before do + # run before each test + @instance = CyberSource::PostDeviceSearchRequest.new + end + + after do + # run after each test + end + + describe 'test an instance of PostDeviceSearchRequest' do + it 'should create an instance of PostDeviceSearchRequest' do + expect(@instance).to be_instance_of(CyberSource::PostDeviceSearchRequest) + end + end + describe 'test attribute "query"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "sort"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "offset"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + + describe 'test attribute "limit"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + +end diff --git a/spec/models/riskv1decisions_travel_information_legs_spec.rb b/spec/models/riskv1decisions_travel_information_legs_spec.rb index a28a6788..cd8f3372 100644 --- a/spec/models/riskv1decisions_travel_information_legs_spec.rb +++ b/spec/models/riskv1decisions_travel_information_legs_spec.rb @@ -55,4 +55,10 @@ end end + describe 'test attribute "departure_time"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/tss_v2_transactions_get200_response_processor_information_spec.rb b/spec/models/tss_v2_transactions_get200_response_processor_information_spec.rb index 05e9d32d..9a48bce2 100644 --- a/spec/models/tss_v2_transactions_get200_response_processor_information_spec.rb +++ b/spec/models/tss_v2_transactions_get200_response_processor_information_spec.rb @@ -103,6 +103,12 @@ end end + describe 'test attribute "event_status"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "system_trace_audit_number"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/upv1capturecontexts_capture_mandate_spec.rb b/spec/models/upv1capturecontexts_capture_mandate_spec.rb index 07e5d1c8..a0ec030c 100644 --- a/spec/models/upv1capturecontexts_capture_mandate_spec.rb +++ b/spec/models/upv1capturecontexts_capture_mandate_spec.rb @@ -67,6 +67,12 @@ end end + describe 'test attribute "show_confirmation_step"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "request_save_card"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/spec/models/upv1capturecontexts_complete_mandate_spec.rb b/spec/models/upv1capturecontexts_complete_mandate_spec.rb index d694f7fc..9b50be09 100644 --- a/spec/models/upv1capturecontexts_complete_mandate_spec.rb +++ b/spec/models/upv1capturecontexts_complete_mandate_spec.rb @@ -43,4 +43,10 @@ end end + describe 'test attribute "consumer_authentication"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end