genesis_ruby 0.3.2 → 0.4.0

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 (121) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +35 -0
  3. data/README.md +169 -1
  4. data/VERSION +1 -1
  5. data/lib/genesis_ruby/api/constants/non_financial/alternatives/alipay/merchant_types.rb +26 -0
  6. data/lib/genesis_ruby/api/constants/non_financial/alternatives/alipay/site_types.rb +26 -0
  7. data/lib/genesis_ruby/api/constants/non_financial/kyc/bank_account_types.rb +24 -0
  8. data/lib/genesis_ruby/api/constants/transactions/parameters/foreign_retailer_indicators.rb +24 -0
  9. data/lib/genesis_ruby/api/constants/transactions/parameters/funding/person_types.rb +26 -0
  10. data/lib/genesis_ruby/api/constants/transactions/parameters/money_transfer/purpose_of_payments.rb +46 -19
  11. data/lib/genesis_ruby/api/constants/transactions/parameters/money_transfer/sender_account_number_types.rb +14 -17
  12. data/lib/genesis_ruby/api/constants/transactions/parameters/money_transfer/source_of_funds.rb +9 -18
  13. data/lib/genesis_ruby/api/constants/transactions/parameters/money_transfer/types.rb +31 -4
  14. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/enhanced_statement_response_fields.rb +39 -0
  15. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/response_fields.rb +2 -0
  16. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/statement_order_by_fields.rb +31 -0
  17. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/billing_api/statement_response_fields.rb +14 -13
  18. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/{processing_type.rb → scopes.rb} +4 -3
  19. data/lib/genesis_ruby/api/constants/transactions/parameters/purpose_of_payment.rb +117 -0
  20. data/lib/genesis_ruby/api/constants/transactions/parameters/purpose_of_payment_values.rb +267 -0
  21. data/lib/genesis_ruby/api/constants/transactions/parameters/wallets/e_wallet/payment_types.rb +46 -0
  22. data/lib/genesis_ruby/api/constants/transactions.rb +9 -0
  23. data/lib/genesis_ruby/api/mixins/requests/customer_address/billing_info_attributes.rb +3 -1
  24. data/lib/genesis_ruby/api/mixins/requests/financial/cards/credential_on_file_transaction_link_attributes.rb +83 -0
  25. data/lib/genesis_ruby/api/mixins/requests/financial/commercial_card_attributes.rb +143 -0
  26. data/lib/genesis_ruby/api/mixins/requests/financial/funding_attributes.rb +32 -3
  27. data/lib/genesis_ruby/api/mixins/requests/financial/marketplace_data_attributes.rb +179 -0
  28. data/lib/genesis_ruby/api/mixins/requests/financial/money_transfer_payout_attributes.rb +49 -46
  29. data/lib/genesis_ruby/api/mixins/requests/financial/order_attributes.rb +36 -0
  30. data/lib/genesis_ruby/api/mixins/requests/financial/purpose_of_payment_attributes.rb +14 -4
  31. data/lib/genesis_ruby/api/mixins/requests/financial/refund/bank_attributes.rb +41 -0
  32. data/lib/genesis_ruby/api/mixins/requests/financial/refund/beneficiary_attributes.rb +31 -0
  33. data/lib/genesis_ruby/api/mixins/requests/financial/refund/travel_ticket_attributes.rb +52 -0
  34. data/lib/genesis_ruby/api/mixins/requests/financial/threeds/force_threeds_attributes.rb +29 -0
  35. data/lib/genesis_ruby/api/mixins/requests/non_financial/alternatives/alipay/site_information_attributes.rb +57 -0
  36. data/lib/genesis_ruby/api/mixins/requests/non_financial/date_time_from_to_attributes.rb +102 -0
  37. data/lib/genesis_ruby/api/mixins/requests/non_financial/kyc/background_checks_attributes.rb +31 -10
  38. data/lib/genesis_ruby/api/mixins/requests/non_financial/kyc/verification_document_attributes.rb +49 -7
  39. data/lib/genesis_ruby/api/mixins/requests/non_financial/kyc/verification_instructions_attributes.rb +90 -0
  40. data/lib/genesis_ruby/api/mixins/requests/non_financial/reconcile_order_attributes.rb +30 -0
  41. data/lib/genesis_ruby/api/mixins/requests/non_financial/scope_attributes.rb +29 -0
  42. data/lib/genesis_ruby/api/mixins/requests/restricted_setter.rb +12 -0
  43. data/lib/genesis_ruby/api/mixins/requests/scheme_tokenized_attributes.rb +35 -0
  44. data/lib/genesis_ruby/api/requests/base/financials/credit_card.rb +1 -12
  45. data/lib/genesis_ruby/api/requests/base/graphql.rb +7 -0
  46. data/lib/genesis_ruby/api/requests/base/non_financial/billing_api/abstract_statement.rb +226 -0
  47. data/lib/genesis_ruby/api/requests/base/non_financial/billing_api/base.rb +39 -37
  48. data/lib/genesis_ruby/api/requests/base/non_financial/reconcile/base.rb +45 -0
  49. data/lib/genesis_ruby/api/requests/financial/async_refund.rb +41 -0
  50. data/lib/genesis_ruby/api/requests/financial/cards/authorize.rb +43 -24
  51. data/lib/genesis_ruby/api/requests/financial/cards/authorize3d.rb +13 -1
  52. data/lib/genesis_ruby/api/requests/financial/cards/payout.rb +21 -5
  53. data/lib/genesis_ruby/api/requests/financial/cards/sale.rb +42 -23
  54. data/lib/genesis_ruby/api/requests/financial/cards/sale3d.rb +13 -1
  55. data/lib/genesis_ruby/api/requests/financial/mobile/apple_pay.rb +5 -1
  56. data/lib/genesis_ruby/api/requests/financial/mobile/google_pay.rb +6 -2
  57. data/lib/genesis_ruby/api/requests/financial/online_banking_payments/my_bank.rb +1 -1
  58. data/lib/genesis_ruby/api/requests/financial/refund.rb +20 -35
  59. data/lib/genesis_ruby/api/requests/financial/sdd/sale.rb +6 -1
  60. data/lib/genesis_ruby/api/requests/financial/wallets/e_wallet.rb +72 -0
  61. data/lib/genesis_ruby/api/requests/non_financial/alternatives/alipay/register_merchant.rb +147 -0
  62. data/lib/genesis_ruby/api/requests/non_financial/billing_api/enhanced_statement.rb +46 -0
  63. data/lib/genesis_ruby/api/requests/non_financial/billing_api/statement.rb +12 -137
  64. data/lib/genesis_ruby/api/requests/non_financial/billing_api/transactions.rb +4 -2
  65. data/lib/genesis_ruby/api/requests/non_financial/fraud/chargeback/date_range.rb +10 -19
  66. data/lib/genesis_ruby/api/requests/non_financial/fraud/rdr/date_range.rb +91 -0
  67. data/lib/genesis_ruby/api/requests/non_financial/fraud/rdr/transaction.rb +54 -0
  68. data/lib/genesis_ruby/api/requests/non_financial/fraud/retrieval/date_range.rb +10 -19
  69. data/lib/genesis_ruby/api/requests/non_financial/kyc/verifications/bank_account.rb +76 -0
  70. data/lib/genesis_ruby/api/requests/non_financial/kyc/verifications/create.rb +31 -4
  71. data/lib/genesis_ruby/api/requests/non_financial/payment_authorizations/date_range.rb +124 -0
  72. data/lib/genesis_ruby/api/requests/non_financial/processed_transactions/date_range.rb +8 -15
  73. data/lib/genesis_ruby/api/requests/non_financial/processed_transactions/post_date_range.rb +12 -18
  74. data/lib/genesis_ruby/api/requests/non_financial/reconcile/date_range.rb +29 -4
  75. data/lib/genesis_ruby/api/requests/non_financial/reconcile/order.rb +40 -0
  76. data/lib/genesis_ruby/api/requests/non_financial/reconcile/transaction.rb +1 -15
  77. data/lib/genesis_ruby/api/requests/non_financial/tokenization/cryptogram.rb +3 -1
  78. data/lib/genesis_ruby/api/requests/non_financial/tokenization/tokenize.rb +3 -1
  79. data/lib/genesis_ruby/api/requests/wpf/create.rb +4 -0
  80. data/lib/genesis_ruby/api/requests/wpf/reconcile.rb +11 -4
  81. data/lib/genesis_ruby/api/requests/wpf/reconcile_by_date.rb +62 -0
  82. data/lib/genesis_ruby/api/requests/wpf/reconcile_by_order.rb +38 -0
  83. data/lib/genesis_ruby/builders/graphql.rb +95 -40
  84. data/lib/genesis_ruby/dependencies.rb +2 -0
  85. data/lib/genesis_ruby/utils/money/format.rb +2 -1
  86. data/lib/genesis_ruby/utils/transactions/financial_types.rb +3 -2
  87. data/lib/genesis_ruby/utils/transactions/references/refundable_types.rb +2 -1
  88. data/lib/genesis_ruby/utils/transactions/wpf_types.rb +1 -1
  89. data/lib/genesis_ruby/version.rb +1 -1
  90. metadata +40 -35
  91. data/.kiro/specs/f2025112509-add_managed_recurring_api/.config.kiro +0 -1
  92. data/.kiro/specs/f2025112509-add_managed_recurring_api/design.md +0 -332
  93. data/.kiro/specs/f2025112509-add_managed_recurring_api/requirements.md +0 -91
  94. data/.kiro/specs/f2025112509-add_managed_recurring_api/tasks.md +0 -139
  95. data/.kiro/specs/f2025112603-add_reverify_endpoint_to_payee_account/.config.kiro +0 -1
  96. data/.kiro/specs/f2025112603-add_reverify_endpoint_to_payee_account/design.md +0 -148
  97. data/.kiro/specs/f2025112603-add_reverify_endpoint_to_payee_account/requirements.md +0 -81
  98. data/.kiro/specs/f2025112603-add_reverify_endpoint_to_payee_account/tasks.md +0 -48
  99. data/.kiro/specs/f2025112606-add_list_payees_trx_request/.config.kiro +0 -1
  100. data/.kiro/specs/f2025112606-add_list_payees_trx_request/design.md +0 -112
  101. data/.kiro/specs/f2025112606-add_list_payees_trx_request/requirements.md +0 -74
  102. data/.kiro/specs/f2025112606-add_list_payees_trx_request/tasks.md +0 -38
  103. data/.kiro/specs/f2025112609_update_payee_request_params/design.md +0 -86
  104. data/.kiro/specs/f2025112609_update_payee_request_params/requirements.md +0 -86
  105. data/.kiro/specs/f2025112609_update_payee_request_params/tasks.md +0 -40
  106. data/.kiro/specs/f2025112612-add_payee_owner_documents_and_verification_requests/.config.kiro +0 -1
  107. data/.kiro/specs/f2025112612-add_payee_owner_documents_and_verification_requests/design.md +0 -246
  108. data/.kiro/specs/f2025112612-add_payee_owner_documents_and_verification_requests/requirements.md +0 -287
  109. data/.kiro/specs/f2025112612-add_payee_owner_documents_and_verification_requests/tasks.md +0 -76
  110. data/.kiro/specs/f2025112614-add_money_transfer_payout_attributes_to_payout_rq/design.md +0 -84
  111. data/.kiro/specs/f2025112614-add_money_transfer_payout_attributes_to_payout_rq/requirements.md +0 -88
  112. data/.kiro/specs/f2025112614-add_money_transfer_payout_attributes_to_payout_rq/tasks.md +0 -38
  113. data/.kiro/steering/product.md +0 -15
  114. data/.kiro/steering/spec-folder-naming.md +0 -16
  115. data/.kiro/steering/structure.md +0 -96
  116. data/.kiro/steering/tech.md +0 -66
  117. data/Gemfile +0 -6
  118. data/Gemfile.lock +0 -176
  119. data/Rakefile +0 -24
  120. data/genesis_ruby.gemspec +0 -47
  121. data/lib/genesis_ruby/api/constants/transactions/parameters/non_financial/externally_processed.rb +0 -24
@@ -1,96 +0,0 @@
1
- # Project Structure
2
-
3
- ```
4
- lib/
5
- genesis_ruby.rb # Entry point, loads core modules
6
- genesis_ruby/
7
- version.rb # VERSION constant
8
- configuration.rb # SDK configuration (credentials, env, endpoint)
9
- connection.rb # Network factory (selects HTTP adapter)
10
- dependencies.rb # Auto-loads all mixins, base classes, and request definitions
11
- builder.rb # Request document builder (XML/JSON)
12
- parser.rb # Response parser
13
- api/
14
- request.rb # Base request class — all requests inherit from this
15
- response.rb # Response wrapper with status helpers
16
- notification.rb # Async notification handler
17
- constants/ # Enums and constant modules
18
- transactions.rb # Transaction type identifiers
19
- transactions/parameters/ # Per-parameter constant sets (recurring, 3DS, mobile, etc.)
20
- currencies/iso4217.rb # ISO 4217 currency definitions
21
- environments.rb # STAGING / PRODUCTION
22
- endpoints.rb # EMERCHANTPAY / ECOMPROCESSING
23
- states/ # Transaction state constants
24
- non_financial/kyc/ # KYC-specific constants
25
- mixins/
26
- requests/ # Reusable attribute modules included into request classes
27
- attribute_validation.rb # Required field & value validation logic
28
- restricted_setter.rb # Type-safe setter helpers
29
- financial/ # Financial-specific attribute mixins (3DS, async, bank, etc.)
30
- customer_address/ # Billing/shipping address mixins
31
- constants/common.rb # Shared constant helpers
32
- requests/
33
- base/ # Abstract base request classes
34
- financial.rb # Base for financial transactions
35
- financials/credit_card.rb
36
- financials/south_american_payments.rb
37
- reference.rb # Base for reference transactions (capture, void, refund)
38
- versioned.rb # Base for versioned API requests
39
- consumer.rb # Base for consumer requests
40
- graphql.rb # Base for GraphQL requests
41
- non_financial/kyc/base.rb
42
- financial/ # Financial transaction requests
43
- cards/ # Card payments (sale, authorize, sale3d, etc.)
44
- mobile/ # Apple Pay, Google Pay
45
- online_banking_payments/
46
- wallets/
47
- cash_payments/
48
- crypto/
49
- gift_cards/
50
- payout/
51
- preauthorizations/
52
- sdd/ # SEPA Direct Debit
53
- vouchers/
54
- capture.rb, refund.rb, void.rb
55
- non_financial/ # Non-financial requests
56
- billing_api/
57
- consumers/
58
- fraud/
59
- fx/
60
- installments/
61
- kyc/
62
- payee/
63
- processed_transactions/
64
- reconcile/
65
- sca/
66
- tokenization/
67
- wpf/ # Web Payment Form
68
- create.rb
69
- reconcile.rb
70
- builders/ # Document builder implementations (XML, JSON, Form)
71
- errors/ # Custom error classes (all inherit GenesisRuby::Error)
72
- network/ # HTTP adapter(s) (net_http.rb)
73
- parsers/ # Response parser implementations
74
- utils/ # Helpers (money format, common utilities, 3DS signature)
75
-
76
- spec/ # RSpec test suite — mirrors lib/ structure
77
- spec_helper.rb # WebMock setup, shared example loading
78
- genesis_ruby/
79
- api/ # Tests for API layer
80
- builders/ # Tests for builders
81
- fixtures/ # Test fixture data
82
- network/ # Tests for network layer
83
- parsers/ # Tests for parsers
84
- shared_examples/ # Reusable RSpec shared example groups
85
- stubs/ # Sinatra-based fake server for HTTP stubbing
86
- utils/ # Tests for utilities
87
- ```
88
-
89
- ## Key Patterns
90
-
91
- - **Mixin-based composition**: Request classes compose behavior by including modules from `api/mixins/requests/`. Attribute groups (billing, shipping, 3DS, async, etc.) are separate mixins.
92
- - **Inheritance hierarchy**: `Api::Request` → `Base::Financial` → `Base::Financials::CreditCard` → concrete request (e.g., `Financial::Cards::Sale`).
93
- - **Constants as modules**: All enums live under `Api::Constants::` and are referenced via fully-qualified names.
94
- - **Auto-loading via glob**: `dependencies.rb` uses `Dir[].sort.each` to load all mixin attributes and request files. New files in the correct directory are picked up automatically.
95
- - **Builder pattern**: Requests define a `tree_structure` hash that gets serialized to XML/JSON by the builder.
96
- - **Test mirrors source**: Spec files follow the same directory structure as `lib/`. Shared examples are in `spec/genesis_ruby/shared_examples/`. HTTP is stubbed via WebMock + a Sinatra fake server in `spec/genesis_ruby/stubs/`.
@@ -1,66 +0,0 @@
1
- # Tech Stack & Build
2
-
3
- ## Language & Runtime
4
- - Ruby >= 2.7
5
- - Distributed as a RubyGem (`genesis_ruby`)
6
-
7
- ## Runtime Dependencies
8
- - `net-http` ~> 0.3.2 — HTTP networking
9
- - `nokogiri` ~> 1.14 — XML building and parsing
10
-
11
- ## Development Dependencies
12
- - `bundler` ~> 2.1 — dependency management
13
- - `rspec` ~> 3.0 — test framework
14
- - `rubocop` ~> 1.21 — linter/formatter
15
- - `rubocop-rspec` ~> 2.13 — RSpec-specific cops
16
- - `rubocop-faker` ~> 1.1
17
- - `faker` ~> 2.22 — test data generation
18
- - `webmock` ~> 3.18 — HTTP request stubbing in tests
19
- - `sinatra` ~> 3.0 — fake server for test stubs
20
- - `pronto` ~> 0.11 / `pronto-rubocop` — CI code review
21
- - `rake` ~> 13.0 — task runner
22
-
23
- ## Common Commands
24
-
25
- | Task | Command |
26
- |---|---|
27
- | Install dependencies | `bundle install` |
28
- | Run all tests | `bundle exec rspec` |
29
- | Run a single spec | `bundle exec rspec spec/path/to_spec.rb` |
30
- | Run linter | `bundle exec rubocop` |
31
- | Default rake (tests + rubocop) | `bundle exec rake` |
32
- | Tests only | `bundle exec rake test` |
33
- | Lint only | `bundle exec rake styles` |
34
-
35
- ## Code Style Rules (from .rubocop.yml)
36
- - Target Ruby version: 2.7
37
- - `frozen_string_literal: true` comment required in all `.rb` files (except Gemfile, Rakefile, gemspec, bin/console)
38
- - **ALWAYS use single quotes** for strings; double quotes ONLY when interpolation or special symbols are needed
39
- - Max line length: 120 characters
40
- - Hash alignment: `table` style for both rocket and colon (keys and values aligned in columns)
41
- - No trailing commas in hash or array literals
42
- - Empty lines around class bodies; empty lines around module bodies except namespace
43
- - `RSpec/NotToNot` enforced style: `to_not`
44
- - `Metrics/BlockLength` allows `describe`, `context`, `define`, `factory`
45
- - New cops disabled by default (`NewCops: disable`)
46
-
47
- ## Critical Code Generation Rules
48
- - When writing or modifying Ruby files, ALWAYS use single-quoted strings (`'text'`) unless the string contains interpolation (`"#{var}"`) or escape sequences (`"\n"`)
49
- - Hash literals must use table alignment (align values in columns):
50
- ```ruby
51
- # CORRECT
52
- field_values.merge! payee_type: [PAYEE_TYPE_PERSON, PAYEE_TYPE_COMPANY],
53
- payee_country: GenesisRuby::Utils::Country::COUNTRIES.keys
54
-
55
- # WRONG
56
- field_values.merge! payee_type: [PAYEE_TYPE_PERSON, PAYEE_TYPE_COMPANY],
57
- payee_country: GenesisRuby::Utils::Country::COUNTRIES.keys
58
- ```
59
- - No trailing commas after the last element in hashes or arrays
60
- - Always validate with `bundle exec rake styles` before considering code complete
61
-
62
- ## Test Configuration (.rspec)
63
- - Format: documentation
64
- - Color output enabled
65
- - Pattern: `**/*_spec.rb`
66
- - Requires `spec_helper` automatically
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in genesis_ruby.gemspec
6
- gemspec
data/Gemfile.lock DELETED
@@ -1,176 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- genesis_ruby (0.3.2)
5
- net-http (~> 0.3.2)
6
- nokogiri (~> 1.14)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- addressable (2.9.0)
12
- public_suffix (>= 2.0.2, < 8.0)
13
- ast (2.4.3)
14
- base64 (0.3.0)
15
- bigdecimal (3.2.2)
16
- concurrent-ruby (1.3.5)
17
- crack (1.0.0)
18
- bigdecimal
19
- rexml
20
- csv (3.3.5)
21
- diff-lcs (1.6.2)
22
- faker (2.23.0)
23
- i18n (>= 1.8.11, < 2)
24
- faraday (2.8.1)
25
- base64
26
- faraday-net_http (>= 2.0, < 3.1)
27
- ruby2_keywords (>= 0.0.4)
28
- faraday-net_http (3.0.2)
29
- faraday-retry (2.3.2)
30
- faraday (~> 2.0)
31
- gitlab (4.20.1)
32
- httparty (~> 0.20)
33
- terminal-table (>= 1.5.1)
34
- hashdiff (1.2.0)
35
- httparty (0.23.1)
36
- csv
37
- mini_mime (>= 1.0.0)
38
- multi_xml (>= 0.5.2)
39
- i18n (1.14.7)
40
- concurrent-ruby (~> 1.0)
41
- json (2.12.2)
42
- language_server-protocol (3.17.0.5)
43
- lint_roller (1.1.0)
44
- mini_mime (1.1.5)
45
- mini_portile2 (2.8.9)
46
- multi_xml (0.6.0)
47
- mustermann (3.0.3)
48
- ruby2_keywords (~> 0.0.1)
49
- net-http (0.3.2)
50
- uri
51
- nokogiri (1.15.7)
52
- mini_portile2 (~> 2.8.2)
53
- racc (~> 1.4)
54
- octokit (10.0.0)
55
- faraday (>= 1, < 3)
56
- sawyer (~> 0.9)
57
- parallel (1.27.0)
58
- parser (3.3.8.0)
59
- ast (~> 2.4.1)
60
- racc
61
- prism (1.4.0)
62
- pronto (0.11.4)
63
- gitlab (>= 4.4.0, < 5.0)
64
- httparty (>= 0.13.7, < 1.0)
65
- octokit (>= 4.7.0, < 11.0)
66
- rainbow (>= 2.2, < 4.0)
67
- rexml (>= 3.2.5, < 4.0)
68
- rugged (>= 0.23.0, < 2.0)
69
- thor (>= 0.20.3, < 2.0)
70
- pronto-rubocop (0.11.6)
71
- pronto (~> 0.11.0)
72
- rubocop (>= 0.63.1, < 2.0)
73
- public_suffix (5.1.1)
74
- racc (1.8.1)
75
- rack (2.2.17)
76
- rack-protection (3.2.0)
77
- base64 (>= 0.1.0)
78
- rack (~> 2.2, >= 2.2.4)
79
- rainbow (3.1.1)
80
- rake (13.3.0)
81
- regexp_parser (2.10.0)
82
- rexml (3.4.1)
83
- rspec (3.13.1)
84
- rspec-core (~> 3.13.0)
85
- rspec-expectations (~> 3.13.0)
86
- rspec-mocks (~> 3.13.0)
87
- rspec-core (3.13.5)
88
- rspec-support (~> 3.13.0)
89
- rspec-expectations (3.13.5)
90
- diff-lcs (>= 1.2.0, < 2.0)
91
- rspec-support (~> 3.13.0)
92
- rspec-mocks (3.13.5)
93
- diff-lcs (>= 1.2.0, < 2.0)
94
- rspec-support (~> 3.13.0)
95
- rspec-support (3.13.4)
96
- rspec_junit_formatter (0.6.0)
97
- rspec-core (>= 2, < 4, != 2.12.0)
98
- rubocop (1.77.0)
99
- json (~> 2.3)
100
- language_server-protocol (~> 3.17.0.2)
101
- lint_roller (~> 1.1.0)
102
- parallel (~> 1.10)
103
- parser (>= 3.3.0.2)
104
- rainbow (>= 2.2.2, < 4.0)
105
- regexp_parser (>= 2.9.3, < 3.0)
106
- rubocop-ast (>= 1.45.1, < 2.0)
107
- ruby-progressbar (~> 1.7)
108
- unicode-display_width (>= 2.4.0, < 4.0)
109
- rubocop-ast (1.45.1)
110
- parser (>= 3.3.7.2)
111
- prism (~> 1.4)
112
- rubocop-capybara (2.22.1)
113
- lint_roller (~> 1.1)
114
- rubocop (~> 1.72, >= 1.72.1)
115
- rubocop-factory_bot (2.27.1)
116
- lint_roller (~> 1.1)
117
- rubocop (~> 1.72, >= 1.72.1)
118
- rubocop-faker (1.3.0)
119
- faker (>= 2.12.0)
120
- lint_roller (~> 1.1)
121
- rubocop (>= 1.72.1)
122
- rubocop-rspec (2.31.0)
123
- rubocop (~> 1.40)
124
- rubocop-capybara (~> 2.17)
125
- rubocop-factory_bot (~> 2.22)
126
- rubocop-rspec_rails (~> 2.28)
127
- rubocop-rspec_rails (2.29.1)
128
- rubocop (~> 1.61)
129
- ruby-progressbar (1.13.0)
130
- ruby2_keywords (0.0.5)
131
- rugged (1.9.0)
132
- sawyer (0.9.2)
133
- addressable (>= 2.3.5)
134
- faraday (>= 0.17.3, < 3)
135
- sinatra (3.2.0)
136
- mustermann (~> 3.0)
137
- rack (~> 2.2, >= 2.2.4)
138
- rack-protection (= 3.2.0)
139
- tilt (~> 2.0)
140
- terminal-table (4.0.0)
141
- unicode-display_width (>= 1.1.1, < 4)
142
- thor (1.3.2)
143
- tilt (2.6.0)
144
- unicode-display_width (3.1.4)
145
- unicode-emoji (~> 4.0, >= 4.0.4)
146
- unicode-emoji (4.0.4)
147
- uri (1.1.1)
148
- webmock (3.25.1)
149
- addressable (>= 2.8.0)
150
- crack (>= 0.3.2)
151
- hashdiff (>= 0.4.0, < 2.0.0)
152
-
153
- PLATFORMS
154
- ruby
155
- x86_64-darwin-21
156
- x86_64-darwin-22
157
- x86_64-linux
158
-
159
- DEPENDENCIES
160
- bundler (~> 2.1)
161
- faker (~> 2.22)
162
- faraday-retry (~> 2.0)
163
- genesis_ruby!
164
- pronto (~> 0.11)
165
- pronto-rubocop (~> 0.11)
166
- rake (~> 13.0)
167
- rspec (~> 3.0)
168
- rspec_junit_formatter (~> 0.6)
169
- rubocop (~> 1.21)
170
- rubocop-faker (~> 1.1)
171
- rubocop-rspec (~> 2.13)
172
- sinatra (~> 3.0)
173
- webmock (~> 3.18)
174
-
175
- BUNDLED WITH
176
- 2.2.33
data/Rakefile DELETED
@@ -1,24 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'rspec/core/rake_task'
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
- RSpec::Core::RakeTask.new(:spec_junit) do |t|
6
- t.rspec_opts = ['--format RspecJunitFormatter', '--out rspec_report.xml']
7
- t.pattern = '**/*_spec.rb'
8
- end
9
-
10
- require 'rubocop/rake_task'
11
-
12
- RuboCop::RakeTask.new(:rubocop_default)
13
- RuboCop::RakeTask.new(:rubocop_progress) do |t|
14
- t.formatters = %w(progress)
15
- t.options = %w(--out rubocop_report.txt)
16
- end
17
-
18
- RuboCop::RakeTask.new
19
-
20
- task default: %w(spec rubocop_default)
21
- task test: :spec
22
- task styles: :rubocop_default
23
- task test_junit: :spec_junit
24
- task style_progress: :rubocop_progress
data/genesis_ruby.gemspec DELETED
@@ -1,47 +0,0 @@
1
- lib = File.expand_path('lib', __dir__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require 'genesis_ruby/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'genesis_ruby'
7
- spec.version = GenesisRuby::VERSION
8
- spec.authors = ['emerchantpay Ltd.']
9
- spec.email = ['client_integrations@emerchantpay.com']
10
-
11
- spec.summary = 'Ruby Client for Genesis Payment Processing Gateway'
12
- spec.homepage = 'https://github.com/GenesisGateway/genesis_ruby'
13
- spec.license = 'MIT'
14
- spec.required_ruby_version = '>= 2.7.0'
15
-
16
- spec.metadata['homepage_uri'] = spec.homepage
17
- spec.metadata['source_code_uri'] = 'https://github.com/GenesisGateway/genesis_ruby'
18
- spec.metadata['changelog_uri'] = 'https://github.com/GenesisGateway/genesis_ruby/blob/main/CHANGELOG.md'
19
- spec.metadata['documentation_uri'] = 'https://github.com/GenesisGateway/genesis_ruby/blob/main/README.md'
20
-
21
- # Specify which files should be added to the gem when it is released.
22
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
24
- f.match(%r{^(bin|test|spec|features|sig)/|\.(?:git|pronto|rspec|rubocop)})
25
- end
26
-
27
- spec.bindir = 'exe'
28
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
29
- spec.require_paths = ['lib']
30
-
31
- spec.add_runtime_dependency 'net-http', '~> 0.3.2'
32
- spec.add_runtime_dependency 'nokogiri', '~> 1.14'
33
-
34
- spec.add_development_dependency 'bundler', '~> 2.1'
35
- spec.add_development_dependency 'faker', '~> 2.22'
36
- spec.add_development_dependency 'faraday-retry', '~> 2.0'
37
- spec.add_development_dependency 'pronto', '~> 0.11'
38
- spec.add_development_dependency 'pronto-rubocop', '~> 0.11'
39
- spec.add_development_dependency 'rake', '~> 13.0'
40
- spec.add_development_dependency 'rspec', '~> 3.0'
41
- spec.add_development_dependency 'rspec_junit_formatter', '~> 0.6'
42
- spec.add_development_dependency 'rubocop', '~> 1.21'
43
- spec.add_development_dependency 'rubocop-faker', '~> 1.1'
44
- spec.add_development_dependency 'rubocop-rspec', '~> 2.13'
45
- spec.add_development_dependency 'sinatra', '~> 3.0'
46
- spec.add_development_dependency 'webmock', '~> 3.18'
47
- end
@@ -1,24 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module GenesisRuby
4
- module Api
5
- module Constants
6
- module Transactions
7
- module Parameters
8
- module NonFinancial
9
- # Filter requests by being externally processed or being native to Genesis
10
- class ExternallyProcessed
11
-
12
- extend Mixins::Constants::Common
13
-
14
- GENESIS = 'genesis'
15
- EXTERNAL = 'external'
16
- ALL = 'all'
17
-
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
24
- end