stone_ecommerce 1.0.3 → 1.2.3

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 (66) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gateway/Address/billing_address.rb +25 -23
  3. data/lib/gateway/Address/buyer_address.rb +28 -25
  4. data/lib/gateway/Address/delivery_address.rb +24 -22
  5. data/lib/gateway/BoletoTransaction/boleto_transaction.rb +28 -30
  6. data/lib/gateway/BoletoTransaction/boleto_transaction_options.rb +14 -11
  7. data/lib/gateway/BoletoTransaction/boleto_transaction_report_file.rb +20 -17
  8. data/lib/gateway/CreditCardTransaction/credit_card.rb +19 -18
  9. data/lib/gateway/CreditCardTransaction/credit_card_transaction.rb +21 -19
  10. data/lib/gateway/CreditCardTransaction/credit_card_transaction_options.rb +17 -15
  11. data/lib/gateway/CreditCardTransaction/credit_card_transaction_report_file.rb +29 -26
  12. data/lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb +11 -8
  13. data/lib/gateway/CreditCardTransaction/retry_sale_credit_card_transaction.rb +10 -8
  14. data/lib/gateway/Gateway.rb +514 -334
  15. data/lib/gateway/InstantBuyData/create_instant_buy_data_request.rb +31 -0
  16. data/lib/gateway/InstantBuyData/update_instant_buy_data_request.rb +11 -0
  17. data/lib/gateway/Merchant/merchant.rb +10 -8
  18. data/lib/gateway/OnlineDebit/online_debit_transaction_report_file.rb +19 -16
  19. data/lib/gateway/Order/order.rb +11 -8
  20. data/lib/gateway/Order/order_transaction_report_file.rb +8 -5
  21. data/lib/gateway/Parsers/boleto_transaction_parser.rb +28 -25
  22. data/lib/gateway/Parsers/credit_card_transaction_parser.rb +37 -34
  23. data/lib/gateway/Parsers/header_parser.rb +13 -10
  24. data/lib/gateway/Parsers/online_debit_transaction_parser.rb +26 -23
  25. data/lib/gateway/Parsers/trailer_parser.rb +13 -11
  26. data/lib/gateway/Person/buyer.rb +22 -22
  27. data/lib/gateway/Person/create_buyer_request.rb +23 -0
  28. data/lib/gateway/Person/person.rb +34 -32
  29. data/lib/gateway/Recurrency/recurrency.rb +18 -16
  30. data/lib/gateway/Sale/create_sale_request.rb +26 -24
  31. data/lib/gateway/Sale/manage_sale_request.rb +13 -11
  32. data/lib/gateway/Sale/query_sale_request.rb +27 -25
  33. data/lib/gateway/Sale/request_data.rb +16 -14
  34. data/lib/gateway/Sale/retry_sale_options.rb +12 -10
  35. data/lib/gateway/Sale/retry_sale_request.rb +15 -14
  36. data/lib/gateway/Sale/sale_data.rb +0 -2
  37. data/lib/gateway/Sale/sale_order_data.rb +14 -12
  38. data/lib/gateway/SalesOption.rb +13 -11
  39. data/lib/gateway/ShoppingCart/shopping_cart.rb +18 -16
  40. data/lib/gateway/ShoppingCart/shopping_cart_item.rb +15 -13
  41. data/lib/gateway/Trailer.rb +8 -5
  42. data/lib/gateway/header.rb +7 -4
  43. data/lib/gateway/post_notification.rb +23 -20
  44. data/lib/gateway/transaction_report_file.rb +43 -40
  45. data/lib/stone_ecommerce.rb +6 -14
  46. data/spec/integration/gateway_spec.rb +376 -85
  47. data/spec/spec_helper.rb +96 -96
  48. data/stone_ecommerce.gemspec +2 -2
  49. metadata +6 -20
  50. data/lib/gateway/AntiFraud/anti_fraud_analysis_result.rb +0 -47
  51. data/lib/gateway/AntiFraud/query_sale_anti_fraud_analysis_data.rb +0 -51
  52. data/lib/gateway/AntiFraud/query_sale_anti_fraud_analysis_history_data.rb +0 -41
  53. data/lib/gateway/BaseRequest.rb +0 -11
  54. data/lib/gateway/BaseResponse.rb +0 -17
  55. data/lib/gateway/BoletoTransaction/boleto_transaction_data.rb +0 -44
  56. data/lib/gateway/BoletoTransaction/boleto_transaction_result.rb +0 -35
  57. data/lib/gateway/CreditCardTransaction/credit_card_transaction_data.rb +0 -104
  58. data/lib/gateway/ErrorItem.rb +0 -17
  59. data/lib/gateway/ErrorReport.rb +0 -18
  60. data/lib/gateway/InstantBuy/credit_card_data.rb +0 -41
  61. data/lib/gateway/InstantBuy/get_instant_buy_data_response.rb +0 -18
  62. data/lib/gateway/Sale/create_sale_response.rb +0 -25
  63. data/lib/gateway/Sale/manage_sale_response.rb +0 -15
  64. data/lib/gateway/Sale/query_sale_response.rb +0 -18
  65. data/lib/gateway/Sale/retry_sale_response.rb +0 -14
  66. data/lib/gateway/address.rb +0 -25
@@ -1,96 +1,96 @@
1
- # This file was generated by the `rspec --init` command. Conventionally, all
2
- # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
- # The generated `.rspec` file contains `--require spec_helper` which will cause
4
- # this file to always be loaded, without a need to explicitly require it in any
5
- # files.
6
- #
7
- # Given that it is always loaded, you are encouraged to keep this file as
8
- # light-weight as possible. Requiring heavyweight dependencies from this file
9
- # will add to the boot time of your test suite on EVERY test run, even for an
10
- # individual file that may not need all of that loaded. Instead, consider making
11
- # a separate helper file that requires the additional dependencies and performs
12
- # the additional setup, and require it from the spec files that actually need
13
- # it.
14
- #
15
- # The `.rspec` file also contains a few flags that are not defaults but that
16
- # users commonly want.
17
- #
18
- # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
- RSpec.configure do |config|
20
- # rspec-expectations config goes here. You can use an alternate
21
- # assertion/expectation library such as wrong or the stdlib/minitest
22
- # assertions if you prefer.
23
- config.expect_with :rspec do |expectations|
24
- # This option will default to `true` in RSpec 4. It makes the `description`
25
- # and `failure_message` of custom matchers include text for helper methods
26
- # defined using `chain`, e.g.:
27
- # be_bigger_than(2).and_smaller_than(4).description
28
- # # => "be bigger than 2 and smaller than 4"
29
- # ...rather than:
30
- # # => "be bigger than 2"
31
- expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
- end
33
-
34
- # rspec-mocks config goes here. You can use an alternate test double
35
- # library (such as bogus or mocha) by changing the `mock_with` option here.
36
- config.mock_with :rspec do |mocks|
37
- # Prevents you from mocking or stubbing a method that does not exist on
38
- # a real object. This is generally recommended, and will default to
39
- # `true` in RSpec 4.
40
- mocks.verify_partial_doubles = true
41
- end
42
-
43
- # The settings below are suggested to provide a good initial experience
44
- # with RSpec, but feel free to customize to your heart's content.
45
- =begin
46
- # These two settings work together to allow you to limit a spec run
47
- # to individual examples or groups you care about by tagging them with
48
- # `:focus` metadata. When nothing is tagged with `:focus`, all examples
49
- # get run.
50
- config.filter_run :focus
51
- config.run_all_when_everything_filtered = true
52
-
53
- # Allows RSpec to persist some state between runs in order to support
54
- # the `--only-failures` and `--next-failure` CLI options. We recommend
55
- # you configure your source control system to ignore this file.
56
- config.example_status_persistence_file_path = "spec/examples.txt"
57
-
58
- # Limits the available syntax to the non-monkey patched syntax that is
59
- # recommended. For more details, see:
60
- # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
61
- # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
62
- # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
63
- config.disable_monkey_patching!
64
-
65
- # This setting enables warnings. It's recommended, but in some cases may
66
- # be too noisy due to issues in dependencies.
67
- config.warnings = true
68
-
69
- # Many RSpec users commonly either run the entire suite or an individual
70
- # file, and it's useful to allow more verbose output when running an
71
- # individual spec file.
72
- if config.files_to_run.one?
73
- # Use the documentation formatter for detailed output,
74
- # unless a formatter has already been configured
75
- # (e.g. via a command-line flag).
76
- config.default_formatter = 'doc'
77
- end
78
-
79
- # Print the 10 slowest examples and example groups at the
80
- # end of the spec run, to help surface which specs are running
81
- # particularly slow.
82
- config.profile_examples = 10
83
-
84
- # Run specs in random order to surface order dependencies. If you find an
85
- # order dependency and want to debug it, you can fix the order by providing
86
- # the seed, which is printed after each run.
87
- # --seed 1234
88
- config.order = :random
89
-
90
- # Seed global randomization in this process using the `--seed` CLI option.
91
- # Setting this allows you to use `--seed` to deterministically reproduce
92
- # test failures related to randomization by passing the same `--seed` value
93
- # as the one that triggered the failure.
94
- Kernel.srand config.seed
95
- =end
96
- end
1
+ # This file was generated by the `rspec --init` command. Conventionally, all
2
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
3
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
4
+ # this file to always be loaded, without a need to explicitly require it in any
5
+ # files.
6
+ #
7
+ # Given that it is always loaded, you are encouraged to keep this file as
8
+ # light-weight as possible. Requiring heavyweight dependencies from this file
9
+ # will add to the boot time of your test suite on EVERY test run, even for an
10
+ # individual file that may not need all of that loaded. Instead, consider making
11
+ # a separate helper file that requires the additional dependencies and performs
12
+ # the additional setup, and require it from the spec files that actually need
13
+ # it.
14
+ #
15
+ # The `.rspec` file also contains a few flags that are not defaults but that
16
+ # users commonly want.
17
+ #
18
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
19
+ RSpec.configure do |config|
20
+ # rspec-expectations config goes here. You can use an alternate
21
+ # assertion/expectation library such as wrong or the stdlib/minitest
22
+ # assertions if you prefer.
23
+ config.expect_with :rspec do |expectations|
24
+ # This option will default to `true` in RSpec 4. It makes the `description`
25
+ # and `failure_message` of custom matchers include text for helper methods
26
+ # defined using `chain`, e.g.:
27
+ # be_bigger_than(2).and_smaller_than(4).description
28
+ # # => "be bigger than 2 and smaller than 4"
29
+ # ...rather than:
30
+ # # => "be bigger than 2"
31
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
32
+ end
33
+
34
+ # rspec-mocks config goes here. You can use an alternate test double
35
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
36
+ config.mock_with :rspec do |mocks|
37
+ # Prevents you from mocking or stubbing a method that does not exist on
38
+ # a real object. This is generally recommended, and will default to
39
+ # `true` in RSpec 4.
40
+ mocks.verify_partial_doubles = true
41
+ end
42
+
43
+ # The settings below are suggested to provide a good initial experience
44
+ # with RSpec, but feel free to customize to your heart's content.
45
+ =begin
46
+ # These two settings work together to allow you to limit a spec run
47
+ # to individual examples or groups you care about by tagging them with
48
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
49
+ # get run.
50
+ config.filter_run :focus
51
+ config.run_all_when_everything_filtered = true
52
+
53
+ # Allows RSpec to persist some state between runs in order to support
54
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
55
+ # you configure your source control system to ignore this file.
56
+ config.example_status_persistence_file_path = "spec/examples.txt"
57
+
58
+ # Limits the available syntax to the non-monkey patched syntax that is
59
+ # recommended. For more details, see:
60
+ # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
61
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
62
+ # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
63
+ config.disable_monkey_patching!
64
+
65
+ # This setting enables warnings. It's recommended, but in some cases may
66
+ # be too noisy due to issues in dependencies.
67
+ config.warnings = true
68
+
69
+ # Many RSpec users commonly either run the entire suite or an individual
70
+ # file, and it's useful to allow more verbose output when running an
71
+ # individual spec file.
72
+ if config.files_to_run.one?
73
+ # Use the documentation formatter for detailed output,
74
+ # unless a formatter has already been configured
75
+ # (e.g. via a command-line flag).
76
+ config.default_formatter = 'doc'
77
+ end
78
+
79
+ # Print the 10 slowest examples and example groups at the
80
+ # end of the spec run, to help surface which specs are running
81
+ # particularly slow.
82
+ config.profile_examples = 10
83
+
84
+ # Run specs in random order to surface order dependencies. If you find an
85
+ # order dependency and want to debug it, you can fix the order by providing
86
+ # the seed, which is printed after each run.
87
+ # --seed 1234
88
+ config.order = :random
89
+
90
+ # Seed global randomization in this process using the `--seed` CLI option.
91
+ # Setting this allows you to use `--seed` to deterministically reproduce
92
+ # test failures related to randomization by passing the same `--seed` value
93
+ # as the one that triggered the failure.
94
+ Kernel.srand config.seed
95
+ =end
96
+ end
@@ -2,7 +2,7 @@ Gem::Specification.new do |s|
2
2
  s.name = 'stone_ecommerce'
3
3
  s.summary = 'Stone Ruby Client Library'
4
4
  s.description = 'Ruby library for integrating with the Stone payment web services.'
5
- s.version = '1.0.3' # Major.Minor.Revision
5
+ s.version = '1.2.3' # Major.Minor.Revision
6
6
  s.author = 'Stone Pagamentos'
7
7
  s.email = 'meajuda@stone.com.br'
8
8
  s.homepage = 'http://stone.com.br/'
@@ -16,4 +16,4 @@ Gem::Specification.new do |s|
16
16
  s.add_dependency 'bundler', '~> 1.10', '>= 1.10.6'
17
17
  s.required_ruby_version = '>= 2.1.7'
18
18
  s.license = 'Apache 2.0'
19
- end
19
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stone_ecommerce
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stone Pagamentos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-21 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -161,28 +161,18 @@ files:
161
161
  - lib/gateway/Address/billing_address.rb
162
162
  - lib/gateway/Address/buyer_address.rb
163
163
  - lib/gateway/Address/delivery_address.rb
164
- - lib/gateway/AntiFraud/anti_fraud_analysis_result.rb
165
- - lib/gateway/AntiFraud/query_sale_anti_fraud_analysis_data.rb
166
- - lib/gateway/AntiFraud/query_sale_anti_fraud_analysis_history_data.rb
167
- - lib/gateway/BaseRequest.rb
168
- - lib/gateway/BaseResponse.rb
169
164
  - lib/gateway/BoletoTransaction/boleto_transaction.rb
170
- - lib/gateway/BoletoTransaction/boleto_transaction_data.rb
171
165
  - lib/gateway/BoletoTransaction/boleto_transaction_options.rb
172
166
  - lib/gateway/BoletoTransaction/boleto_transaction_report_file.rb
173
- - lib/gateway/BoletoTransaction/boleto_transaction_result.rb
174
167
  - lib/gateway/CreditCardTransaction/credit_card.rb
175
168
  - lib/gateway/CreditCardTransaction/credit_card_transaction.rb
176
- - lib/gateway/CreditCardTransaction/credit_card_transaction_data.rb
177
169
  - lib/gateway/CreditCardTransaction/credit_card_transaction_options.rb
178
170
  - lib/gateway/CreditCardTransaction/credit_card_transaction_report_file.rb
179
171
  - lib/gateway/CreditCardTransaction/manage_credit_card_transaction.rb
180
172
  - lib/gateway/CreditCardTransaction/retry_sale_credit_card_transaction.rb
181
- - lib/gateway/ErrorItem.rb
182
- - lib/gateway/ErrorReport.rb
183
173
  - lib/gateway/Gateway.rb
184
- - lib/gateway/InstantBuy/credit_card_data.rb
185
- - lib/gateway/InstantBuy/get_instant_buy_data_response.rb
174
+ - lib/gateway/InstantBuyData/create_instant_buy_data_request.rb
175
+ - lib/gateway/InstantBuyData/update_instant_buy_data_request.rb
186
176
  - lib/gateway/Merchant/merchant.rb
187
177
  - lib/gateway/OnlineDebit/online_debit_transaction_report_file.rb
188
178
  - lib/gateway/Order/order.rb
@@ -193,25 +183,21 @@ files:
193
183
  - lib/gateway/Parsers/online_debit_transaction_parser.rb
194
184
  - lib/gateway/Parsers/trailer_parser.rb
195
185
  - lib/gateway/Person/buyer.rb
186
+ - lib/gateway/Person/create_buyer_request.rb
196
187
  - lib/gateway/Person/person.rb
197
188
  - lib/gateway/Recurrency/recurrency.rb
198
189
  - lib/gateway/Sale/create_sale_request.rb
199
- - lib/gateway/Sale/create_sale_response.rb
200
190
  - lib/gateway/Sale/manage_sale_request.rb
201
- - lib/gateway/Sale/manage_sale_response.rb
202
191
  - lib/gateway/Sale/query_sale_request.rb
203
- - lib/gateway/Sale/query_sale_response.rb
204
192
  - lib/gateway/Sale/request_data.rb
205
193
  - lib/gateway/Sale/retry_sale_options.rb
206
194
  - lib/gateway/Sale/retry_sale_request.rb
207
- - lib/gateway/Sale/retry_sale_response.rb
208
195
  - lib/gateway/Sale/sale_data.rb
209
196
  - lib/gateway/Sale/sale_order_data.rb
210
197
  - lib/gateway/SalesOption.rb
211
198
  - lib/gateway/ShoppingCart/shopping_cart.rb
212
199
  - lib/gateway/ShoppingCart/shopping_cart_item.rb
213
200
  - lib/gateway/Trailer.rb
214
- - lib/gateway/address.rb
215
201
  - lib/gateway/header.rb
216
202
  - lib/gateway/post_notification.rb
217
203
  - lib/gateway/transaction_report_file.rb
@@ -240,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
240
226
  version: '0'
241
227
  requirements: []
242
228
  rubyforge_project:
243
- rubygems_version: 2.4.8
229
+ rubygems_version: 2.2.5
244
230
  signing_key:
245
231
  specification_version: 4
246
232
  summary: Stone Ruby Client Library
@@ -1,47 +0,0 @@
1
- class AntiFraudAnalysisResult
2
- # Indica se a análise de antifraude está habilitada
3
- attr_accessor :IsAntiFraudEnabled
4
-
5
- # Código do serviço de antifraude
6
- attr_accessor :AntiFraudServiceCode
7
-
8
- # Status da análise do serviço de antifraude
9
- attr_accessor :AntiFraudAnalysisStatus
10
-
11
- # Código de retorno do antifraude
12
- attr_accessor :ReturnCode
13
-
14
- # Status de retorno do antifraude
15
- attr_accessor :ReturnStatus
16
-
17
- # Mensagem de retorno do antifraude
18
- attr_accessor :Message
19
-
20
- # Pontuação do pedido
21
- attr_accessor :Score
22
-
23
- # Nome do serviço de antifraude
24
- attr_accessor :AntiFraudServiceName
25
-
26
- @@AntiFraudAnalysisStatusEnum = {
27
- :Undefined => '0',
28
- :PendingFraudAnalysisRequirement => '1',
29
- :FraudAnalysisRequirementSent => '2',
30
- :Approved => '3',
31
- :Reproved => '4',
32
- :PendingManualAnalysis => '5',
33
- :NoTransactionToAnalyse => '6',
34
- :FraudAnalysisWithError => '7'
35
- }
36
-
37
- def initialize
38
- @AntiFraudAnalysisStatus = self.AntiFraudAnalysisStatusEnum
39
- end
40
-
41
- def to_json
42
- hash = {}
43
- instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
44
- hash
45
- end
46
-
47
- end
@@ -1,51 +0,0 @@
1
- class QuerySaleAntiFraudAnalysisData
2
- # Indica se o serviço de antifraude está habilitado
3
- attr_accessor :IsAntiFraudEnabled
4
-
5
- # Código do serviço de antifraude
6
- attr_accessor :AntiFraudServiceCode
7
-
8
- # Nome do serviço de antifraude
9
- attr_accessor :AntiFraudServiceName
10
-
11
- # Status da análise de antifraude
12
- attr_accessor :AntiFraudAnalysisStatus
13
-
14
- @@AntiFraudAnalysisStatus = {
15
- :Undefined => '0',
16
- :PendingFraudAnalysisRequirement => '1',
17
- :FraudAnalysisRequirementSent => '2',
18
- :Approved => '3',
19
- :Reproved => '4',
20
- :PendingManualAnalysis => '5',
21
- :NoTransactionToAnalyse => '6',
22
- :FraudAnalysisWithError => '7'
23
- }
24
-
25
- # Código de retorno do serviço de antifraude
26
- attr_accessor :ReturnCode
27
-
28
- # Status do retorno do antifraude
29
- attr_accessor :ReturnStatus
30
-
31
- # Mensagem de retorno do antifraude
32
- attr_accessor :ReturnMessage
33
-
34
- # Pontuação do comprador
35
- attr_accessor :Score
36
-
37
- # Histórico da análise de antifraude
38
- attr_accessor :HistoryCollection
39
-
40
- def initialize
41
- @AntiFraudAnalysisStatus = self.AntiFraudAnalysisStatusEnum
42
- @HistoryCollection = QuerySaleAntiFraudAnalysisHistoryData.new
43
- end
44
-
45
- def to_json
46
- hash = {}
47
- instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
48
- hash
49
- end
50
-
51
- end
@@ -1,41 +0,0 @@
1
- class QuerySaleAntiFraudAnalysisHistoryData
2
- # Status do antifraude
3
- attr_accessor :AntiFraudAnalysisStatus
4
-
5
- @@AntiFraudAnalysisStatusEnum = {
6
- :Undefined => '0',
7
- :PendingFraudAnalysisRequirement => '1',
8
- :FraudAnalysisRequirementSent => '2',
9
- :Approved => '3',
10
- :Reproved => '4',
11
- :PendingManualAnalysis => '5',
12
- :NoTransactionToAnalyse => '6',
13
- :FraudAnalysisWithError => '7'
14
- }
15
-
16
- # Código de retorno do serviço de anti fraude
17
- attr_accessor :ReturnCode
18
-
19
- # Status de retorno
20
- attr_accessor :ReturnStatus
21
-
22
- # Menssagem de retorno
23
- attr_accessor :ReturnMessage
24
-
25
- # Pontuação
26
- attr_accessor :Score
27
-
28
- # Data da alteração de status
29
- attr_accessor :StatusChangedDate
30
-
31
- def initialize
32
- @AntiFraudAnalysisStatus = self.AntiFraudAnalysisStatusEnum
33
- end
34
-
35
- def to_json
36
- hash = {}
37
- instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
38
- hash
39
- end
40
-
41
- end
@@ -1,11 +0,0 @@
1
- class BaseRequest
2
- # Chave da requisi��o. Utilizada para identificar uma requisi��o espec�fica no gateway.
3
- attr_accessor :RequestKey
4
-
5
- def to_json
6
- hash = {}
7
- instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
8
- hash
9
- end
10
-
11
- end
@@ -1,17 +0,0 @@
1
- class BaseResponse
2
-
3
- attr_accessor :RequestKey
4
-
5
- attr_accessor :MerchantKey
6
-
7
- attr_accessor :ErrorReport
8
-
9
- attr_accessor :InternalTime
10
-
11
- def to_json
12
- hash = {}
13
- instance_variables.each {|var| hash[var.to_s.delete('@')] = instance_variable_get(var) }
14
- hash
15
- end
16
-
17
- end