first_data_gateway 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +7 -0
  3. data/README.md +123 -0
  4. data/Rakefile +8 -0
  5. data/docs/AccessTokenResponse.md +11 -0
  6. data/docs/Address.md +14 -0
  7. data/docs/Airline.md +21 -0
  8. data/docs/AirlineAncillaryServiceCategory.md +8 -0
  9. data/docs/AirlineTravelRoute.md +16 -0
  10. data/docs/Amount.md +10 -0
  11. data/docs/AmountComponents.md +14 -0
  12. data/docs/AuthenticationApi.md +68 -0
  13. data/docs/AuthenticationResponseVerification.md +10 -0
  14. data/docs/BasketItem.md +11 -0
  15. data/docs/Billing.md +13 -0
  16. data/docs/CarRental.md +15 -0
  17. data/docs/CarRentalExtraCharges.md +8 -0
  18. data/docs/CardVerificationsTransaction.md +9 -0
  19. data/docs/ClientLocale.md +9 -0
  20. data/docs/Contact.md +11 -0
  21. data/docs/Error.md +10 -0
  22. data/docs/ErrorDetails.md +9 -0
  23. data/docs/ErrorResponse.md +11 -0
  24. data/docs/Expiration.md +9 -0
  25. data/docs/Frequency.md +9 -0
  26. data/docs/IndustrySpecificExtensions.md +10 -0
  27. data/docs/InstallmentOptions.md +10 -0
  28. data/docs/Lodging.md +12 -0
  29. data/docs/LodgingExtraCharges.md +8 -0
  30. data/docs/Order.md +10 -0
  31. data/docs/OrderApi.md +148 -0
  32. data/docs/PayPal.md +8 -0
  33. data/docs/PaymentApi.md +345 -0
  34. data/docs/PaymentCard.md +15 -0
  35. data/docs/PaymentCardAuthenticationRequest.md +8 -0
  36. data/docs/PaymentCardAuthenticationResult.md +12 -0
  37. data/docs/PaymentMethod.md +11 -0
  38. data/docs/PaymentSchedulesRequest.md +21 -0
  39. data/docs/PaymentSchedulesResponse.md +11 -0
  40. data/docs/PaymentUrlRequest.md +11 -0
  41. data/docs/PaymentUrlResponse.md +13 -0
  42. data/docs/PrimaryTransaction.md +18 -0
  43. data/docs/PrimaryTransactionAdditionalDetails.md +14 -0
  44. data/docs/ProcessorData.md +10 -0
  45. data/docs/ResponseType.md +7 -0
  46. data/docs/SecondaryTransaction.md +9 -0
  47. data/docs/Sepa.md +12 -0
  48. data/docs/SepaMandate.md +11 -0
  49. data/docs/Shipping.md +10 -0
  50. data/docs/SplitShipment.md +9 -0
  51. data/docs/StoredCredential.md +11 -0
  52. data/docs/TransactionErrorResponse.md +28 -0
  53. data/docs/TransactionResponse.md +27 -0
  54. data/docs/TransactionResponseAuthenticationRedirect.md +10 -0
  55. data/docs/TransactionResponseAuthenticationRedirectParams.md +10 -0
  56. data/docs/TransactionType.md +7 -0
  57. data/first_data_gateway.gemspec +45 -0
  58. data/git_push.sh +55 -0
  59. data/lib/simple/client_context.rb +15 -0
  60. data/lib/simple/gateway.rb +155 -0
  61. data/lib/simple/merchant_credentials.rb +10 -0
  62. data/lib/simple/signature.rb +52 -0
  63. data/lib/simple_client.rb +4 -0
  64. data/lib/swagger_client.rb +91 -0
  65. data/lib/swagger_client/api/authentication_api.rb +111 -0
  66. data/lib/swagger_client/api/order_api.rb +229 -0
  67. data/lib/swagger_client/api/payment_api.rb +517 -0
  68. data/lib/swagger_client/api_client.rb +390 -0
  69. data/lib/swagger_client/api_error.rb +38 -0
  70. data/lib/swagger_client/configuration.rb +202 -0
  71. data/lib/swagger_client/models/access_token_response.rb +252 -0
  72. data/lib/swagger_client/models/address.rb +361 -0
  73. data/lib/swagger_client/models/airline.rb +487 -0
  74. data/lib/swagger_client/models/airline_ancillary_service_category.rb +221 -0
  75. data/lib/swagger_client/models/airline_travel_route.rb +406 -0
  76. data/lib/swagger_client/models/amount.rb +217 -0
  77. data/lib/swagger_client/models/amount_components.rb +242 -0
  78. data/lib/swagger_client/models/authentication_response_verification.rb +239 -0
  79. data/lib/swagger_client/models/basket_item.rb +218 -0
  80. data/lib/swagger_client/models/billing.rb +282 -0
  81. data/lib/swagger_client/models/car_rental.rb +317 -0
  82. data/lib/swagger_client/models/car_rental_extra_charges.rb +221 -0
  83. data/lib/swagger_client/models/card_verifications_transaction.rb +203 -0
  84. data/lib/swagger_client/models/client_locale.rb +209 -0
  85. data/lib/swagger_client/models/contact.rb +279 -0
  86. data/lib/swagger_client/models/error.rb +211 -0
  87. data/lib/swagger_client/models/error_details.rb +199 -0
  88. data/lib/swagger_client/models/error_response.rb +218 -0
  89. data/lib/swagger_client/models/expiration.rb +207 -0
  90. data/lib/swagger_client/models/frequency.rb +270 -0
  91. data/lib/swagger_client/models/industry_specific_extensions.rb +206 -0
  92. data/lib/swagger_client/models/installment_options.rb +259 -0
  93. data/lib/swagger_client/models/lodging.rb +245 -0
  94. data/lib/swagger_client/models/lodging_extra_charges.rb +221 -0
  95. data/lib/swagger_client/models/order.rb +206 -0
  96. data/lib/swagger_client/models/pay_pal.rb +213 -0
  97. data/lib/swagger_client/models/payment_card.rb +294 -0
  98. data/lib/swagger_client/models/payment_card_authentication_request.rb +222 -0
  99. data/lib/swagger_client/models/payment_card_authentication_result.rb +336 -0
  100. data/lib/swagger_client/models/payment_method.rb +254 -0
  101. data/lib/swagger_client/models/payment_schedules_request.rb +398 -0
  102. data/lib/swagger_client/models/payment_schedules_response.rb +267 -0
  103. data/lib/swagger_client/models/payment_url_request.rb +232 -0
  104. data/lib/swagger_client/models/payment_url_response.rb +286 -0
  105. data/lib/swagger_client/models/primary_transaction.rb +298 -0
  106. data/lib/swagger_client/models/primary_transaction_additional_details.rb +244 -0
  107. data/lib/swagger_client/models/processor_data.rb +216 -0
  108. data/lib/swagger_client/models/response_type.rb +37 -0
  109. data/lib/swagger_client/models/secondary_transaction.rb +197 -0
  110. data/lib/swagger_client/models/sepa.rb +321 -0
  111. data/lib/swagger_client/models/sepa_mandate.rb +321 -0
  112. data/lib/swagger_client/models/shipping.rb +222 -0
  113. data/lib/swagger_client/models/split_shipment.rb +201 -0
  114. data/lib/swagger_client/models/stored_credential.rb +290 -0
  115. data/lib/swagger_client/models/transaction_error_response.rb +445 -0
  116. data/lib/swagger_client/models/transaction_response.rb +436 -0
  117. data/lib/swagger_client/models/transaction_response_authentication_redirect.rb +239 -0
  118. data/lib/swagger_client/models/transaction_response_authentication_redirect_params.rb +206 -0
  119. data/lib/swagger_client/models/transaction_type.rb +36 -0
  120. data/lib/swagger_client/version.rb +15 -0
  121. data/spec/api/authentication_api_spec.rb +51 -0
  122. data/spec/api/order_api_spec.rb +73 -0
  123. data/spec/api/payment_api_spec.rb +126 -0
  124. data/spec/api_client_spec.rb +226 -0
  125. data/spec/configuration_spec.rb +42 -0
  126. data/spec/models/access_token_response_spec.rb +64 -0
  127. data/spec/models/address_spec.rb +78 -0
  128. data/spec/models/airline_ancillary_service_category_spec.rb +46 -0
  129. data/spec/models/airline_spec.rb +124 -0
  130. data/spec/models/airline_travel_route_spec.rb +94 -0
  131. data/spec/models/amount_components_spec.rb +78 -0
  132. data/spec/models/amount_spec.rb +54 -0
  133. data/spec/models/authentication_response_verification_spec.rb +58 -0
  134. data/spec/models/basket_item_spec.rb +60 -0
  135. data/spec/models/billing_spec.rb +76 -0
  136. data/spec/models/car_rental_extra_charges_spec.rb +46 -0
  137. data/spec/models/car_rental_spec.rb +84 -0
  138. data/spec/models/card_verifications_transaction_spec.rb +48 -0
  139. data/spec/models/client_locale_spec.rb +48 -0
  140. data/spec/models/contact_spec.rb +60 -0
  141. data/spec/models/error_details_spec.rb +48 -0
  142. data/spec/models/error_response_spec.rb +60 -0
  143. data/spec/models/error_spec.rb +54 -0
  144. data/spec/models/expiration_spec.rb +48 -0
  145. data/spec/models/frequency_spec.rb +52 -0
  146. data/spec/models/industry_specific_extensions_spec.rb +54 -0
  147. data/spec/models/installment_options_spec.rb +54 -0
  148. data/spec/models/lodging_extra_charges_spec.rb +46 -0
  149. data/spec/models/lodging_spec.rb +66 -0
  150. data/spec/models/order_spec.rb +54 -0
  151. data/spec/models/pay_pal_spec.rb +42 -0
  152. data/spec/models/payment_card_authentication_request_spec.rb +46 -0
  153. data/spec/models/payment_card_authentication_result_spec.rb +78 -0
  154. data/spec/models/payment_card_spec.rb +88 -0
  155. data/spec/models/payment_method_spec.rb +64 -0
  156. data/spec/models/payment_schedules_request_spec.rb +124 -0
  157. data/spec/models/payment_schedules_response_spec.rb +64 -0
  158. data/spec/models/payment_url_request_spec.rb +60 -0
  159. data/spec/models/payment_url_response_spec.rb +76 -0
  160. data/spec/models/primary_transaction_additional_details_spec.rb +78 -0
  161. data/spec/models/primary_transaction_spec.rb +102 -0
  162. data/spec/models/processor_data_spec.rb +54 -0
  163. data/spec/models/response_type_spec.rb +36 -0
  164. data/spec/models/secondary_transaction_spec.rb +48 -0
  165. data/spec/models/sepa_mandate_spec.rb +64 -0
  166. data/spec/models/sepa_spec.rb +66 -0
  167. data/spec/models/shipping_spec.rb +54 -0
  168. data/spec/models/split_shipment_spec.rb +48 -0
  169. data/spec/models/stored_credential_spec.rb +68 -0
  170. data/spec/models/transaction_error_response_spec.rb +170 -0
  171. data/spec/models/transaction_response_authentication_redirect_params_spec.rb +54 -0
  172. data/spec/models/transaction_response_authentication_redirect_spec.rb +58 -0
  173. data/spec/models/transaction_response_spec.rb +164 -0
  174. data/spec/models/transaction_type_spec.rb +36 -0
  175. data/spec/spec_helper.rb +111 -0
  176. metadata +457 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c07c45d746d164f204a5b7186c2a67c561907aa5
4
+ data.tar.gz: ea9d532763d9e84834cfd296a9864ee7e69f04cf
5
+ SHA512:
6
+ metadata.gz: 6b8abda3582ec5ef39a7299a8871b7967c299c1b98cddb608d169e184e9348929b1b75fc0ace7caf12535a61e34fbabc2c685a861bd7640ef31768d25b2dae41
7
+ data.tar.gz: a457e5b6daa645027832c17545ab4a441519f966fef875f241a7918831deea7a99955f585f646d5ff7593119fb73da09e1940b8d6fbd875931544a3afceede65
data/Gemfile ADDED
@@ -0,0 +1,7 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 12.0.0'
7
+ end
data/README.md ADDED
@@ -0,0 +1,123 @@
1
+ # FirstApiClient
2
+
3
+ ## Installation
4
+
5
+ ### Install the gem
6
+
7
+ ```shell
8
+ gem install first_api_client
9
+ ```
10
+ (for development, run `gem install --dev first_api_client` to install the development dependencies)
11
+
12
+ Then add the gem to your Gemfile:
13
+
14
+ gem 'first_api_client', '~> 1.0.0'
15
+
16
+ ### Install from Git
17
+
18
+ Add the following in the Gemfile:
19
+
20
+ gem 'swagger_client', :git => 'https://github.com/GBSEcom/Ruby.git'
21
+
22
+ ## Getting Started
23
+
24
+ ```ruby
25
+ # Load the gem
26
+ require 'swagger_client'
27
+ require 'simple_client'
28
+
29
+ api_key = "Your API Key here"
30
+ api_secret = "Your API Secret here"
31
+
32
+ credentials = SimpleClient::MerchantCredentials.new(api_key, api_secret)
33
+
34
+ gateway = SimpleClient::Gateway.create(credentials)
35
+
36
+ payload = "{
37
+ \"amount\":{
38
+ \"currency\":\"USD\",
39
+ \"total\":\"12.10\"
40
+ },
41
+ \"paymentMethod\":{
42
+ \"paymentCard\":{
43
+ \"expiryDate\":{
44
+ \"month\":\"12\",
45
+ \"year\":\"21\"
46
+ },
47
+ \"number\":\"5500000000000004\"
48
+ },
49
+ \"type\":\"PAYMENT_CARD\"
50
+ },
51
+ \"transactionType\":\"SALE\"
52
+ }"
53
+ result = gateway.primary_payment_transaction(payload)
54
+ p JSON.generate(result.to_hash)
55
+ ```
56
+
57
+ ## Documentation for API Endpoints
58
+
59
+ All URIs are relative to *https://cert.api.firstdata.com/gateway*
60
+
61
+ Class | Method | HTTP request | Description
62
+ ------------ | ------------- | ------------- | -------------
63
+ *SwaggerClient::AuthenticationApi* | [**v1_authentication_access_tokens_post**](docs/AuthenticationApi.md#v1_authentication_access_tokens_post) | **POST** /v1/authentication/access-tokens | Generate an access token for user authentication
64
+ *SwaggerClient::OrderApi* | [**perform_payment_post_authorisation**](docs/OrderApi.md#perform_payment_post_authorisation) | **POST** /v1/orders/{order-id}/postauth | Use this to capture/complete a transaction. Partial postauths are allowed.
65
+ *SwaggerClient::OrderApi* | [**return_transaction**](docs/OrderApi.md#return_transaction) | **POST** /v1/orders/{order-id}/return | Use this to return/refund on the order. Partial returns are allowed.
66
+ *SwaggerClient::PaymentApi* | [**perform_payment_post_authorisation**](docs/PaymentApi.md#perform_payment_post_authorisation) | **POST** /v1/payments/{transaction-id}/postauth | Use this to capture/complete a transaction. Partial postauths are allowed.
67
+ *SwaggerClient::PaymentApi* | [**primary_payment_transaction**](docs/PaymentApi.md#primary_payment_transaction) | **POST** /v1/payments | Generate a primary transaction
68
+ *SwaggerClient::PaymentApi* | [**return_transaction**](docs/PaymentApi.md#return_transaction) | **POST** /v1/payments/{transaction-id}/return | Return/refund a transaction.
69
+ *SwaggerClient::PaymentApi* | [**transaction_inquiry**](docs/PaymentApi.md#transaction_inquiry) | **GET** /v1/payments/{transaction-id} | Retrieve the state of a transaction
70
+ *SwaggerClient::PaymentApi* | [**void_transaction**](docs/PaymentApi.md#void_transaction) | **POST** /v1/payments/{transaction-id}/void | Reverse a previous action on an existing transaction
71
+
72
+
73
+ ## Documentation for Models
74
+
75
+ - [SwaggerClient::AccessTokenResponse](docs/AccessTokenResponse.md)
76
+ - [SwaggerClient::Address](docs/Address.md)
77
+ - [SwaggerClient::Airline](docs/Airline.md)
78
+ - [SwaggerClient::AirlineAncillaryServiceCategory](docs/AirlineAncillaryServiceCategory.md)
79
+ - [SwaggerClient::AirlineTravelRoute](docs/AirlineTravelRoute.md)
80
+ - [SwaggerClient::Amount](docs/Amount.md)
81
+ - [SwaggerClient::AmountComponents](docs/AmountComponents.md)
82
+ - [SwaggerClient::AuthenticationResponseVerification](docs/AuthenticationResponseVerification.md)
83
+ - [SwaggerClient::BasketItem](docs/BasketItem.md)
84
+ - [SwaggerClient::Billing](docs/Billing.md)
85
+ - [SwaggerClient::CarRental](docs/CarRental.md)
86
+ - [SwaggerClient::CarRentalExtraCharges](docs/CarRentalExtraCharges.md)
87
+ - [SwaggerClient::CardVerificationsTransaction](docs/CardVerificationsTransaction.md)
88
+ - [SwaggerClient::ClientLocale](docs/ClientLocale.md)
89
+ - [SwaggerClient::Contact](docs/Contact.md)
90
+ - [SwaggerClient::Error](docs/Error.md)
91
+ - [SwaggerClient::ErrorDetails](docs/ErrorDetails.md)
92
+ - [SwaggerClient::ErrorResponse](docs/ErrorResponse.md)
93
+ - [SwaggerClient::Expiration](docs/Expiration.md)
94
+ - [SwaggerClient::Frequency](docs/Frequency.md)
95
+ - [SwaggerClient::IndustrySpecificExtensions](docs/IndustrySpecificExtensions.md)
96
+ - [SwaggerClient::InstallmentOptions](docs/InstallmentOptions.md)
97
+ - [SwaggerClient::Lodging](docs/Lodging.md)
98
+ - [SwaggerClient::LodgingExtraCharges](docs/LodgingExtraCharges.md)
99
+ - [SwaggerClient::Order](docs/Order.md)
100
+ - [SwaggerClient::PayPal](docs/PayPal.md)
101
+ - [SwaggerClient::PaymentCard](docs/PaymentCard.md)
102
+ - [SwaggerClient::PaymentCardAuthenticationRequest](docs/PaymentCardAuthenticationRequest.md)
103
+ - [SwaggerClient::PaymentCardAuthenticationResult](docs/PaymentCardAuthenticationResult.md)
104
+ - [SwaggerClient::PaymentMethod](docs/PaymentMethod.md)
105
+ - [SwaggerClient::PaymentSchedulesRequest](docs/PaymentSchedulesRequest.md)
106
+ - [SwaggerClient::PaymentSchedulesResponse](docs/PaymentSchedulesResponse.md)
107
+ - [SwaggerClient::PaymentUrlRequest](docs/PaymentUrlRequest.md)
108
+ - [SwaggerClient::PaymentUrlResponse](docs/PaymentUrlResponse.md)
109
+ - [SwaggerClient::PrimaryTransaction](docs/PrimaryTransaction.md)
110
+ - [SwaggerClient::PrimaryTransactionAdditionalDetails](docs/PrimaryTransactionAdditionalDetails.md)
111
+ - [SwaggerClient::ProcessorData](docs/ProcessorData.md)
112
+ - [SwaggerClient::ResponseType](docs/ResponseType.md)
113
+ - [SwaggerClient::SecondaryTransaction](docs/SecondaryTransaction.md)
114
+ - [SwaggerClient::Sepa](docs/Sepa.md)
115
+ - [SwaggerClient::SepaMandate](docs/SepaMandate.md)
116
+ - [SwaggerClient::Shipping](docs/Shipping.md)
117
+ - [SwaggerClient::SplitShipment](docs/SplitShipment.md)
118
+ - [SwaggerClient::StoredCredential](docs/StoredCredential.md)
119
+ - [SwaggerClient::TransactionResponse](docs/TransactionResponse.md)
120
+ - [SwaggerClient::TransactionResponseAuthenticationRedirect](docs/TransactionResponseAuthenticationRedirect.md)
121
+ - [SwaggerClient::TransactionResponseAuthenticationRedirectParams](docs/TransactionResponseAuthenticationRedirectParams.md)
122
+ - [SwaggerClient::TransactionType](docs/TransactionType.md)
123
+ - [SwaggerClient::TransactionErrorResponse](docs/TransactionErrorResponse.md)
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ begin
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+ task default: :spec
6
+ rescue LoadError
7
+ # no rspec available
8
+ end
@@ -0,0 +1,11 @@
1
+ # SwaggerClient::AccessTokenResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **access_token** | **String** | Access Token for authentication | [optional]
7
+ **client_request_id** | **String** | Echoes back the value from the request header for tracking | [optional]
8
+ **api_trace_id** | **String** | Request identifier in API. Use this to request logs from support. | [optional]
9
+ **request_status** | **String** | The result of the requested operation. If this is anything other than 'SUCCESS', please refer to the 400s HTTP error codes. See ErrorResponse object for details. | [optional]
10
+
11
+
data/docs/Address.md ADDED
@@ -0,0 +1,14 @@
1
+ # SwaggerClient::Address
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **company** | **String** | If it's a business, enter the name here. | [optional]
7
+ **address1** | **String** | street address or P.O.Box number | [optional]
8
+ **address2** | **String** | additional address information | [optional]
9
+ **city** | **String** | City or Locality | [optional]
10
+ **region** | **String** | State or Province | [optional]
11
+ **postal_code** | **String** | ZIP code or postal code | [optional]
12
+ **country** | **String** | Country name | [optional]
13
+
14
+
data/docs/Airline.md ADDED
@@ -0,0 +1,21 @@
1
+ # SwaggerClient::Airline
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **passenger_name** | **String** | | [optional]
7
+ **ticket_number** | **String** | | [optional]
8
+ **issuing_carrier** | **String** | | [optional]
9
+ **carrier_name** | **String** | | [optional]
10
+ **travel_agency_iata_code** | **String** | | [optional]
11
+ **travel_agency_name** | **String** | | [optional]
12
+ **airline_plan_number** | **String** | | [optional]
13
+ **airline_invoice_number** | **String** | | [optional]
14
+ **reservation_system** | **String** | | [optional]
15
+ **restricted** | **BOOLEAN** | | [optional]
16
+ **travel_route** | [**Array<AirlineTravelRoute>**](AirlineTravelRoute.md) | | [optional]
17
+ **related_ticket_number** | **String** | | [optional]
18
+ **ancillary_service_category** | [**Array<AirlineAncillaryServiceCategory>**](AirlineAncillaryServiceCategory.md) | Identify the purchase of ancillary goods or services with a false value. If this element is not provided, the transaction is assumed to be a purchase of an airline ticket. | [optional]
19
+ **ticket_purchase** | **BOOLEAN** | | [optional]
20
+
21
+
@@ -0,0 +1,8 @@
1
+ # SwaggerClient::AirlineAncillaryServiceCategory
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **service_category** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,16 @@
1
+ # SwaggerClient::AirlineTravelRoute
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **departure_date** | **Date** | Date of departure | [optional]
7
+ **origin** | **String** | | [optional]
8
+ **destination** | **String** | | [optional]
9
+ **carrier_code** | **String** | | [optional]
10
+ **service_class** | **String** | | [optional]
11
+ **stopover_type** | **String** | | [optional]
12
+ **fare_basis_code** | **String** | | [optional]
13
+ **departure_tax** | **Float** | | [optional]
14
+ **flight_number** | **String** | | [optional]
15
+
16
+
data/docs/Amount.md ADDED
@@ -0,0 +1,10 @@
1
+ # SwaggerClient::Amount
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **total** | **Float** | |
7
+ **currency** | **String** | ISO 4217 currency code (http://en.wikipedia.org/wiki/ISO_4217). |
8
+ **components** | [**AmountComponents**](AmountComponents.md) | | [optional]
9
+
10
+
@@ -0,0 +1,14 @@
1
+ # SwaggerClient::AmountComponents
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **subtotal** | **Float** | | [optional]
7
+ **vat_amount** | **Float** | | [optional]
8
+ **local_tax** | **Float** | | [optional]
9
+ **shipping** | **Float** | | [optional]
10
+ **cashback** | **Float** | | [optional]
11
+ **tip** | **Float** | | [optional]
12
+ **convenience_fee** | **Float** | | [optional]
13
+
14
+
@@ -0,0 +1,68 @@
1
+ # SwaggerClient::AuthenticationApi
2
+
3
+ All URIs are relative to *https://cert.api.firstdata.com/gateway*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**v1_authentication_access_tokens_post**](AuthenticationApi.md#v1_authentication_access_tokens_post) | **POST** /v1/authentication/access-tokens | Generate an access token for user authentication
8
+
9
+
10
+ # **v1_authentication_access_tokens_post**
11
+ > AccessTokenResponse v1_authentication_access_tokens_post(content_type, client_request_id, api_key, timestamp, message_signature, )
12
+
13
+ Generate an access token for user authentication
14
+
15
+ This is the access token generation call for authorizing subsequent financial transactions. A valid access token is required for web client requests.
16
+
17
+ ### Example
18
+ ```ruby
19
+ # load the gem
20
+ require 'swagger_client'
21
+
22
+ api_instance = SwaggerClient::AuthenticationApi.new
23
+
24
+ content_type = "application/json" # String | content type
25
+
26
+ client_request_id = "client_request_id_example" # String | A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format.
27
+
28
+ api_key = "api_key_example" # String |
29
+
30
+ timestamp = 789 # Integer | Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins).
31
+
32
+ message_signature = "message_signature_example" # String | Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal.
33
+
34
+
35
+ begin
36
+ #Generate an access token for user authentication
37
+ result = api_instance.v1_authentication_access_tokens_post(content_type, client_request_id, api_key, timestamp, message_signature, )
38
+ p result
39
+ rescue SwaggerClient::ApiError => e
40
+ puts "Exception when calling AuthenticationApi->v1_authentication_access_tokens_post: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+ Name | Type | Description | Notes
47
+ ------------- | ------------- | ------------- | -------------
48
+ **content_type** | **String**| content type | [default to application/json]
49
+ **client_request_id** | **String**| A client-generated ID for request tracking and signature creation, unique per request. This is also used for idempotency control. We recommend 128-bit UUID format. |
50
+ **api_key** | **String**| |
51
+ **timestamp** | **Integer**| Epoch timestamp in milliseconds in the request from a client system. Used for Message Signature generation and time limit (5 mins). |
52
+ **message_signature** | **String**| Used to ensure the request has not been tampered with during transmission. The Message-Signature is the Base64 encoded HMAC hash (SHA256 algorithm with the API Secret as the key.) For more information, refer to the supporting documentation on the Developer Portal. |
53
+
54
+ ### Return type
55
+
56
+ [**AccessTokenResponse**](AccessTokenResponse.md)
57
+
58
+ ### Authorization
59
+
60
+ No authorization required
61
+
62
+ ### HTTP request headers
63
+
64
+ - **Content-Type**: application/json
65
+ - **Accept**: application/json
66
+
67
+
68
+
@@ -0,0 +1,10 @@
1
+ # SwaggerClient::AuthenticationResponseVerification
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **md** | **String** | | [optional]
8
+ **pa_res** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,11 @@
1
+ # SwaggerClient::BasketItem
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | Item ID | [optional]
7
+ **description** | **String** | Referenced parent Business Entity ID in master database for the outlets // COPY-PASTE ERROR? | [optional]
8
+ **unit_price** | [**Amount**](Amount.md) | | [optional]
9
+ **count** | **Integer** | Total quantity of items | [optional]
10
+
11
+
data/docs/Billing.md ADDED
@@ -0,0 +1,13 @@
1
+ # SwaggerClient::Billing
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **personal_number** | **String** | | [optional]
8
+ **birth_date** | **Date** | | [optional]
9
+ **gender** | **String** | | [optional]
10
+ **contact** | [**Contact**](Contact.md) | | [optional]
11
+ **address** | [**Address**](Address.md) | | [optional]
12
+
13
+
data/docs/CarRental.md ADDED
@@ -0,0 +1,15 @@
1
+ # SwaggerClient::CarRental
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **agreement_number** | **String** | | [optional]
7
+ **renter_name** | **String** | | [optional]
8
+ **return_city** | **String** | | [optional]
9
+ **return_date** | **Date** | | [optional]
10
+ **pickup_date** | **Date** | | [optional]
11
+ **rental_class_id** | **String** | | [optional]
12
+ **extra_charges** | [**Array<CarRentalExtraCharges>**](CarRentalExtraCharges.md) | | [optional]
13
+ **no_show_indicator** | **BOOLEAN** | | [optional]
14
+
15
+
@@ -0,0 +1,8 @@
1
+ # SwaggerClient::CarRentalExtraCharges
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **charge_item** | **String** | | [optional]
7
+
8
+
@@ -0,0 +1,9 @@
1
+ # SwaggerClient::CardVerificationsTransaction
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **store_id** | **String** | Optional Outlet ID for clients that support multiple store in the same app | [optional]
7
+ **payment_method** | [**PaymentMethod**](PaymentMethod.md) | |
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # SwaggerClient::ClientLocale
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **language** | **String** | Language spoken by client. |
7
+ **country** | **String** | Country of the client. |
8
+
9
+
data/docs/Contact.md ADDED
@@ -0,0 +1,11 @@
1
+ # SwaggerClient::Contact
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **phone** | **String** | | [optional]
7
+ **mobile_phone** | **String** | | [optional]
8
+ **fax** | **String** | | [optional]
9
+ **email** | **String** | | [optional]
10
+
11
+
data/docs/Error.md ADDED
@@ -0,0 +1,10 @@
1
+ # SwaggerClient::Error
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **code** | **String** | Uniquely identifies an error condition. Client applications need to read and handle errors based on this. | [optional]
7
+ **message** | **String** | A generic description of the error condition. | [optional]
8
+ **details** | [**Array<ErrorDetails>**](ErrorDetails.md) | Detailed information about message format errors. | [optional]
9
+
10
+