first_data_gateway 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -0,0 +1,15 @@
1
+ # SwaggerClient::PaymentCard
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **number** | **String** | Payment card number |
7
+ **expiry_date** | [**Expiration**](Expiration.md) | | [optional]
8
+ **security_code** | **String** | CVV | [optional]
9
+ **card_function** | **String** | | [optional] [default to "CREDIT"]
10
+ **cardholder_name** | **String** | | [optional]
11
+ **authentication_request** | [**PaymentCardAuthenticationRequest**](PaymentCardAuthenticationRequest.md) | | [optional]
12
+ **authentication_result** | [**PaymentCardAuthenticationResult**](PaymentCardAuthenticationResult.md) | | [optional]
13
+ **brand** | **String** | Optional, required only if using dual branded card | [optional]
14
+
15
+
@@ -0,0 +1,8 @@
1
+ # SwaggerClient::PaymentCardAuthenticationRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | Indicates what kind of authentication scheme the merchant wants to use on the card. Currently, only 3-D Secure is supported. | [optional]
7
+
8
+
@@ -0,0 +1,12 @@
1
+ # SwaggerClient::PaymentCardAuthenticationResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | Type of authentication result. For example, 3-D Secure. | [optional]
7
+ **verification_response** | **String** | Card enrollment result from the Verification Response (VeRes) | [optional]
8
+ **payer_authentication_response** | **String** | Payer authentication result from Payment Authentication Response (PaRes) | [optional]
9
+ **authentication_value** | **String** | Cardholder Authentication Verification Value (CAVV) | [optional]
10
+ **xid** | **String** | Authentication ID | [optional]
11
+
12
+
@@ -0,0 +1,11 @@
1
+ # SwaggerClient::PaymentMethod
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | The type of payment method. Note that PayPal can only process a 'Credit' primary transaction with Order.Billing.Contact.email being mandatory. PayPal secondary transactions (void/return/postauth) are processed the same as any other secondary transactions. |
7
+ **payment_card** | [**PaymentCard**](PaymentCard.md) | | [optional]
8
+ **sepa** | [**Sepa**](Sepa.md) | | [optional]
9
+ **pay_pal** | [**PayPal**](PayPal.md) | | [optional]
10
+
11
+
@@ -0,0 +1,21 @@
1
+ # SwaggerClient::PaymentSchedulesRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **store_id** | **String** | Store ID number. | [optional]
7
+ **reference_order_id** | **String** | Order ID used to create recurring payment from existing transaction. | [optional]
8
+ **start_date** | **Date** | Date of mandate signature. | [optional]
9
+ **number_of_payments** | **Integer** | Number of times the recurring payment will process. | [optional]
10
+ **maximum_failures** | **Integer** | Number of failures that can be encountered before re-tries cease. | [optional]
11
+ **invoice_number** | **String** | Invoice number. | [optional]
12
+ **po_number** | **String** | Purchase order number. | [optional]
13
+ **transaction_origin** | **String** | The source of the transaction. The possible values are ECI (if the order was received via email or Internet), MOTO (mail order / telephone order) and RETAIL (face to face). | [optional]
14
+ **dynamic_merchant_name** | **String** | Dynamic merchant name for the cardholder‘s statement. | [optional]
15
+ **frequency** | [**Frequency**](Frequency.md) | | [optional]
16
+ **payment_method** | [**PaymentMethod**](PaymentMethod.md) | | [optional]
17
+ **amount** | [**Amount**](Amount.md) | | [optional]
18
+ **client_locale** | [**ClientLocale**](ClientLocale.md) | | [optional]
19
+ **order_id** | **String** | Client Order ID if supplied by client. | [optional]
20
+
21
+
@@ -0,0 +1,11 @@
1
+ # SwaggerClient::PaymentSchedulesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **client_request_id** | **String** | Echoes back the value in the Request header for tracking. |
7
+ **api_trace_id** | **String** | Request identifier in API, can be used to request logs from the support. |
8
+ **transaction_status** | **String** | Result of requested operation. If it's anything other than 'SUCCESS', please refer to 400s HTTP error codes or decline. See Error object for details. |
9
+ **order_id** | **String** | Client Order ID if supplied by client, otherwise the Order ID. | [optional]
10
+
11
+
@@ -0,0 +1,11 @@
1
+ # SwaggerClient::PaymentUrlRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **store_id** | **String** | An optional outlet id for clients that support multiple store in the same developer app. |
7
+ **client_locale** | [**ClientLocale**](ClientLocale.md) | | [optional]
8
+ **amount** | [**Amount**](Amount.md) | |
9
+ **order_id** | **String** | Client Order ID if supplied by client, otherwise the Order ID. |
10
+
11
+
@@ -0,0 +1,13 @@
1
+ # SwaggerClient::PaymentUrlResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **client_request_id** | **String** | Echoes back the value in the Request header for tracking. |
7
+ **api_trace_id** | **String** | Request identifier in API, can be used to request logs from the support. |
8
+ **request_status** | **String** | Request status. If it's anything other than 'SUCCESS', please refer to 400s HTTP error codes or decline. See Error object for details. |
9
+ **order_id** | **String** | Client Order ID if supplied by client, otherwise the Order ID. | [optional]
10
+ **payment_url** | **String** | | [optional]
11
+ **transaction_id** | **String** | ID code from the transaction. | [optional]
12
+
13
+
@@ -0,0 +1,18 @@
1
+ # SwaggerClient::PrimaryTransaction
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **transaction_type** | [**TransactionType**](TransactionType.md) | |
7
+ **store_id** | **String** | An optional Outlet ID for clients that support multiple stores in the same app. | [optional]
8
+ **client_transaction_id** | **String** | The unique client Transaction ID from the Request header, if supplied. | [optional]
9
+ **amount** | [**Amount**](Amount.md) | |
10
+ **payment_method** | [**PaymentMethod**](PaymentMethod.md) | |
11
+ **order** | [**Order**](Order.md) | | [optional]
12
+ **basket_items** | [**Array<BasketItem>**](BasketItem.md) | Required for some payment methods (for example, Klarna) | [optional]
13
+ **split_shipment** | [**SplitShipment**](SplitShipment.md) | | [optional]
14
+ **additional_details** | [**PrimaryTransactionAdditionalDetails**](PrimaryTransactionAdditionalDetails.md) | | [optional]
15
+ **industry_specific_extensions** | [**IndustrySpecificExtensions**](IndustrySpecificExtensions.md) | | [optional]
16
+ **stored_credentials** | [**StoredCredential**](StoredCredential.md) | | [optional]
17
+
18
+
@@ -0,0 +1,14 @@
1
+ # SwaggerClient::PrimaryTransactionAdditionalDetails
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **reference_number** | **String** | For FORCED_TICKET only. Stores the six digit reference number you have received as the result of a successful external authorization (e.g. by phone). The Gateway needs this number for uniquely mapping a ForcedTicket transaction to a previously performed external authorization.] | [optional]
7
+ **comments** | **String** | | [optional]
8
+ **dynamic_merchant_name** | **String** | | [optional]
9
+ **invoice_number** | **String** | | [optional]
10
+ **purchase_order_number** | **String** | | [optional]
11
+ **recurring_type** | **String** | Valid values are 'FIRST', 'REPEAT' and 'STANDING_INSTRUCTION'. | [optional]
12
+ **installment_options** | [**InstallmentOptions**](InstallmentOptions.md) | | [optional]
13
+
14
+
@@ -0,0 +1,10 @@
1
+ # SwaggerClient::ProcessorData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **response_code** | **String** | |
7
+ **response_message** | **String** | |
8
+ **approval_code** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,7 @@
1
+ # SwaggerClient::ResponseType
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,9 @@
1
+ # SwaggerClient::SecondaryTransaction
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **amount** | [**Amount**](Amount.md) | | [optional]
7
+ **split_shipment** | [**SplitShipment**](SplitShipment.md) | | [optional]
8
+
9
+
data/docs/Sepa.md ADDED
@@ -0,0 +1,12 @@
1
+ # SwaggerClient::Sepa
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **iban** | **String** | Bank account in IBAN format |
7
+ **name** | **String** | The name of the payer |
8
+ **country** | **String** | Country of residence of the payer using the ISO 3166 standard (http://en.wikipedia.org/wiki/ISO_3166) |
9
+ **email** | **String** | The email address of the payer | [optional]
10
+ **mandate** | [**SepaMandate**](SepaMandate.md) | |
11
+
12
+
@@ -0,0 +1,11 @@
1
+ # SwaggerClient::SepaMandate
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **reference** | **String** | Existing mandate reference, managed by merchant. Must match [A-Za-z0-9:?/+(),. -]{1,35} and not start with two slashes (“//”). Also known as the Mandate ID |
7
+ **url** | **String** | Valid URL pointing to the SEPA mandate (PDF / HTML format recommended) |
8
+ **signature_date** | **Date** | Date of mandate signature. |
9
+ **type** | **String** | Sequence type of the direct debit. This defaults to 'SINGLE' if not provided. | [default to "SINGLE"]
10
+
11
+
data/docs/Shipping.md ADDED
@@ -0,0 +1,10 @@
1
+ # SwaggerClient::Shipping
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **contact** | [**Contact**](Contact.md) | | [optional]
8
+ **address** | [**Address**](Address.md) | | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # SwaggerClient::SplitShipment
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **total_count** | **Integer** | Total count of the shipment, can be set at preauth or the first postauth | [optional]
7
+ **final_shipment** | **BOOLEAN** | Whether this is the final shipment | [optional] [default to false]
8
+
9
+
@@ -0,0 +1,11 @@
1
+ # SwaggerClient::StoredCredential
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **sequence** | **String** | Indicates if the transaction is first or subsequent. Valid values are 'FIRST' and 'SUBSEQUENT' |
7
+ **scheduled** | **BOOLEAN** | Indicates if the transaction is scheduled or part of a installment |
8
+ **referenced_scheme_transaction_id** | **String** | The transaction id received from schemes for the initial transaction. Required if sequence is 'SUBSEQUENT' | [optional]
9
+ **initiator** | **String** | Indicates whether it is a merchant initiated or explicitly consented by card holder. Valid values are 'MERCHANT' and 'CARDHOLDER' | [optional]
10
+
11
+
@@ -0,0 +1,28 @@
1
+ # SwaggerClient::TransactionErrorResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **response_type** | [**ResponseType**](ResponseType.md) | The schema type returned in the response. | [optional]
7
+ **client_request_id** | **String** | Echoes back the value in the Request header | [optional]
8
+ **api_trace_id** | **String** | Echoes back the value in the Request header | [optional]
9
+ **ipg_transaction_id** | **String** | The Response Transaction ID | [optional]
10
+ **order_id** | **String** | Client Order ID if supplied by client, otherwise the Order ID | [optional]
11
+ **transaction_type** | [**TransactionType**](TransactionType.md) | | [optional]
12
+ **authorization_code** | **String** | The processor approval code for compliance. | [optional]
13
+ **avs_response** | **String** | The processor address validation response for compliance. | [optional]
14
+ **security_code_response** | **String** | The processor card verification validation response for compliance. | [optional]
15
+ **brand** | **String** | Card brand of the payment instrument | [optional]
16
+ **country** | **String** | Country of the card issuer | [optional]
17
+ **terminal_id** | **String** | The terminal that is processing the transaction | [optional]
18
+ **client_transaction_id** | **String** | The unique client Transaction ID from the Request header, if supplied | [optional]
19
+ **transaction_time** | **Integer** | The transaction time in seconds since Epoch | [optional]
20
+ **approved_amount** | [**Amount**](Amount.md) | | [optional]
21
+ **transaction_status** | **String** | The status of the transaction. APPROVED/WAITING are returned by the endpoints. VALIDATION_FAILED/DECLINED are errors. See ErrorResponse object for details. | [optional]
22
+ **transaction_state** | **String** | The state of the transaction. | [optional]
23
+ **authentication_redirect** | [**TransactionResponseAuthenticationRedirect**](TransactionResponseAuthenticationRedirect.md) | | [optional]
24
+ **scheme_transaction_id** | **String** | The transaction id received from schemes for the initial transaction, returned for the transactions marked as \"FIRST\" | [optional]
25
+ **processor** | [**ProcessorData**](ProcessorData.md) | | [optional]
26
+ **error** | [**Error**](Error.md) | | [optional]
27
+
28
+
@@ -0,0 +1,27 @@
1
+ # SwaggerClient::TransactionResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **response_type** | [**ResponseType**](ResponseType.md) | The schema type returned in the response. | [optional]
7
+ **client_request_id** | **String** | Echoes back the value in the Request header | [optional]
8
+ **api_trace_id** | **String** | Echoes back the value in the Request header | [optional]
9
+ **ipg_transaction_id** | **String** | The Response Transaction ID | [optional]
10
+ **order_id** | **String** | Client Order ID if supplied by client, otherwise the Order ID | [optional]
11
+ **transaction_type** | [**TransactionType**](TransactionType.md) | | [optional]
12
+ **authorization_code** | **String** | The processor approval code for compliance. | [optional]
13
+ **avs_response** | **String** | The processor address validation response for compliance. | [optional]
14
+ **security_code_response** | **String** | The processor card verification validation response for compliance. | [optional]
15
+ **brand** | **String** | Card brand of the payment instrument | [optional]
16
+ **country** | **String** | Country of the card issuer | [optional]
17
+ **terminal_id** | **String** | The terminal that is processing the transaction | [optional]
18
+ **client_transaction_id** | **String** | The unique client Transaction ID from the Request header, if supplied | [optional]
19
+ **transaction_time** | **Integer** | The transaction time in seconds since Epoch | [optional]
20
+ **approved_amount** | [**Amount**](Amount.md) | | [optional]
21
+ **transaction_status** | **String** | The status of the transaction. APPROVED/WAITING are returned by the endpoints. VALIDATION_FAILED/DECLINED are errors. See ErrorResponse object for details. | [optional]
22
+ **transaction_state** | **String** | The state of the transaction. | [optional]
23
+ **authentication_redirect** | [**TransactionResponseAuthenticationRedirect**](TransactionResponseAuthenticationRedirect.md) | | [optional]
24
+ **scheme_transaction_id** | **String** | The transaction id received from schemes for the initial transaction, returned for the transactions marked as \"FIRST\" | [optional]
25
+ **processor** | [**ProcessorData**](ProcessorData.md) | | [optional]
26
+
27
+
@@ -0,0 +1,10 @@
1
+ # SwaggerClient::TransactionResponseAuthenticationRedirect
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **type** | **String** | | [optional]
7
+ **target_url** | **String** | | [optional]
8
+ **params** | [**TransactionResponseAuthenticationRedirectParams**](TransactionResponseAuthenticationRedirectParams.md) | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # SwaggerClient::TransactionResponseAuthenticationRedirectParams
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **pa_req** | **String** | | [optional]
7
+ **term_url** | **String** | | [optional]
8
+ **md** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,7 @@
1
+ # SwaggerClient::TransactionType
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+
7
+
@@ -0,0 +1,45 @@
1
+ # -*- encoding: utf-8 -*-
2
+ #
3
+ =begin
4
+ #Payment Gateway API Specification
5
+
6
+ #Payment Gateway API for payment processing.
7
+
8
+ OpenAPI spec version: 0.0.1
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+ Swagger Codegen version: unset
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "swagger_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "first_data_gateway"
20
+ s.version = SwaggerClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["Eric Margules"]
23
+ s.email = ["eric.margules@firstdata.com"]
24
+ s.homepage = "https://docs.firstdata.com/org/gateway"
25
+ s.summary = "First Data Gateway RESTFUL API Ruby SDK"
26
+ s.description = "Ruby SDK to be used with a First Data Gateway account. This SDK has been created and packaged to offer the easiest way to integrate your application into the First Data Gateway. This SDK gives you the ability to run transactions such as sales, preauthorizations, postauthorizations, credits, voids, and returns; transaction inquiries; setting up scheduled payments and much more."
27
+ s.license = "MIT"
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+ s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
+ s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
+ s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
+ s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
+ s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
+ s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
+
41
+ s.files = `find *`.split("\n").uniq.sort.select{|f| !f.empty? }
42
+ s.test_files = `find spec/*`.split("\n")
43
+ s.executables = []
44
+ s.require_paths = ["lib"]
45
+ end
data/git_push.sh ADDED
@@ -0,0 +1,55 @@
1
+ #!/bin/sh
2
+ #
3
+ # Generated by: https://github.com/swagger-api/swagger-codegen.git
4
+ #
5
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
+ #
7
+ # Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update"
8
+
9
+ git_user_id=$1
10
+ git_repo_id=$2
11
+ release_note=$3
12
+
13
+ if [ "$git_user_id" = "" ]; then
14
+ git_user_id="GIT_USER_ID"
15
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
16
+ fi
17
+
18
+ if [ "$git_repo_id" = "" ]; then
19
+ git_repo_id="GIT_REPO_ID"
20
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
21
+ fi
22
+
23
+ if [ "$release_note" = "" ]; then
24
+ release_note="Minor update"
25
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
26
+ fi
27
+
28
+ # Initialize the local directory as a Git repository
29
+ git init
30
+
31
+ # Adds the files in the local repository and stages them for commit.
32
+ git add .
33
+
34
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
35
+ git commit -m "$release_note"
36
+
37
+ # Sets the new remote
38
+ git_remote=`git remote`
39
+ if [ "$git_remote" = "" ]; then # git remote not defined
40
+
41
+ if [ "$GIT_TOKEN" = "" ]; then
42
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
+ git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
44
+ else
45
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
46
+ fi
47
+
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'
55
+