apimatic-gp-sdk 0.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 (97) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +28 -0
  3. data/README.md +155 -0
  4. data/bin/console +15 -0
  5. data/lib/batches/api_helper.rb +10 -0
  6. data/lib/batches/apis/base_api.rb +67 -0
  7. data/lib/batches/apis/close_a_batch_api.rb +111 -0
  8. data/lib/batches/apis/get_a_batch_api.rb +70 -0
  9. data/lib/batches/apis/get_transactions_within_a_batch_api.rb +69 -0
  10. data/lib/batches/client.rb +72 -0
  11. data/lib/batches/configuration.rb +166 -0
  12. data/lib/batches/exceptions/api_exception.rb +21 -0
  13. data/lib/batches/exceptions/batches400_error_exception.rb +61 -0
  14. data/lib/batches/exceptions/batches401_error_exception.rb +61 -0
  15. data/lib/batches/exceptions/batches403_error_exception.rb +61 -0
  16. data/lib/batches/exceptions/batches500_error_exception.rb +61 -0
  17. data/lib/batches/exceptions/batches501_error_exception.rb +61 -0
  18. data/lib/batches/exceptions/batches502_error_exception.rb +62 -0
  19. data/lib/batches/exceptions/batches504_error_exception.rb +61 -0
  20. data/lib/batches/exceptions/batches_transactions400_error_exception.rb +61 -0
  21. data/lib/batches/exceptions/batches_transactions401_error_exception.rb +61 -0
  22. data/lib/batches/exceptions/batches_transactions403_error_exception.rb +61 -0
  23. data/lib/batches/exceptions/batches_transactions500_error_exception.rb +61 -0
  24. data/lib/batches/exceptions/batches_transactions501_error_exception.rb +61 -0
  25. data/lib/batches/exceptions/batches_transactions502_error_exception.rb +62 -0
  26. data/lib/batches/exceptions/batches_transactions504_error_exception.rb +61 -0
  27. data/lib/batches/http/api_response.rb +19 -0
  28. data/lib/batches/http/http_call_back.rb +10 -0
  29. data/lib/batches/http/http_method_enum.rb +10 -0
  30. data/lib/batches/http/http_request.rb +10 -0
  31. data/lib/batches/http/http_response.rb +10 -0
  32. data/lib/batches/http/proxy_settings.rb +22 -0
  33. data/lib/batches/logging/configuration/api_logging_configuration.rb +186 -0
  34. data/lib/batches/logging/sdk_logger.rb +17 -0
  35. data/lib/batches/models/action.rb +125 -0
  36. data/lib/batches/models/authentication_invalid401.rb +102 -0
  37. data/lib/batches/models/avs_address_result_batches_transactions_payment_method_card_avs_address_result.rb +40 -0
  38. data/lib/batches/models/avs_postal_code_result_batches_transactions_payment_method_card_avs_postal_code_result.rb +40 -0
  39. data/lib/batches/models/base_model.rb +110 -0
  40. data/lib/batches/models/batches_request.rb +142 -0
  41. data/lib/batches/models/brand_batches_brand_breakdown_brand.rb +56 -0
  42. data/lib/batches/models/brand_batches_transactions_payment_method_card_brand.rb +56 -0
  43. data/lib/batches/models/brand_breakdown_item.rb +159 -0
  44. data/lib/batches/models/card.rb +170 -0
  45. data/lib/batches/models/channel_batches_channel.rb +44 -0
  46. data/lib/batches/models/close_response.rb +356 -0
  47. data/lib/batches/models/currency_batches_transactions_currency.rb +60 -0
  48. data/lib/batches/models/cvv_result_batches_transactions_payment_method_card_cvv_result.rb +40 -0
  49. data/lib/batches/models/detailed_error_code.rb +26 -0
  50. data/lib/batches/models/detailed_error_code1.rb +36 -0
  51. data/lib/batches/models/detailed_error_code2.rb +36 -0
  52. data/lib/batches/models/detailed_error_code3.rb +26 -0
  53. data/lib/batches/models/detailed_error_code4.rb +26 -0
  54. data/lib/batches/models/detailed_error_code5.rb +26 -0
  55. data/lib/batches/models/detailed_error_code6.rb +26 -0
  56. data/lib/batches/models/entry_mode_batches_transactions_payment_method_entry_mode.rb +104 -0
  57. data/lib/batches/models/error_code.rb +52 -0
  58. data/lib/batches/models/error_code1.rb +26 -0
  59. data/lib/batches/models/error_code2.rb +26 -0
  60. data/lib/batches/models/error_code3.rb +26 -0
  61. data/lib/batches/models/error_code4.rb +26 -0
  62. data/lib/batches/models/error_code5.rb +27 -0
  63. data/lib/batches/models/error_code6.rb +26 -0
  64. data/lib/batches/models/filter.rb +76 -0
  65. data/lib/batches/models/funding_batches_transactions_payment_method_card_funding.rb +59 -0
  66. data/lib/batches/models/funding_credit.rb +85 -0
  67. data/lib/batches/models/funding_credit1.rb +85 -0
  68. data/lib/batches/models/funding_credit5.rb +85 -0
  69. data/lib/batches/models/funding_debit.rb +85 -0
  70. data/lib/batches/models/funding_debit1.rb +85 -0
  71. data/lib/batches/models/funding_debit5.rb +85 -0
  72. data/lib/batches/models/get_response.rb +331 -0
  73. data/lib/batches/models/host_breakdown_item.rb +128 -0
  74. data/lib/batches/models/not_authorized403.rb +102 -0
  75. data/lib/batches/models/obj_request_invalid400.rb +102 -0
  76. data/lib/batches/models/payment_method.rb +167 -0
  77. data/lib/batches/models/payment_method2.rb +52 -0
  78. data/lib/batches/models/payment_methods_batches_payment_method.rb +52 -0
  79. data/lib/batches/models/refunds.rb +85 -0
  80. data/lib/batches/models/refunds1.rb +85 -0
  81. data/lib/batches/models/result_code_batches_action_result_code.rb +26 -0
  82. data/lib/batches/models/sales.rb +85 -0
  83. data/lib/batches/models/sales1.rb +85 -0
  84. data/lib/batches/models/server_error500.rb +102 -0
  85. data/lib/batches/models/server_timeout504.rb +102 -0
  86. data/lib/batches/models/status_batches_status.rb +38 -0
  87. data/lib/batches/models/status_batches_transactions_status.rb +39 -0
  88. data/lib/batches/models/transaction.rb +205 -0
  89. data/lib/batches/models/transaction_batch_response.rb +198 -0
  90. data/lib/batches/models/type_batches_action_type.rb +40 -0
  91. data/lib/batches/models/type_batches_transactions_type.rb +40 -0
  92. data/lib/batches/models/unknown_platform_error502.rb +103 -0
  93. data/lib/batches/models/unknown_server_error501.rb +102 -0
  94. data/lib/batches/utilities/date_time_helper.rb +11 -0
  95. data/lib/batches/utilities/file_wrapper.rb +28 -0
  96. data/lib/batches.rb +128 -0
  97. metadata +180 -0
@@ -0,0 +1,11 @@
1
+ # batches
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ require 'date'
7
+ module Batches
8
+ # A utility that supports dateTime conversion to different formats
9
+ class DateTimeHelper < CoreLibrary::DateTimeHelper
10
+ end
11
+ end
@@ -0,0 +1,28 @@
1
+ # batches
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ module Batches
7
+ # A utility to allow users to set the content-type for files
8
+ class FileWrapper < CoreLibrary::FileWrapper
9
+ # The constructor.
10
+ # @param [File] file The file to be sent in the request.
11
+ # @param [string] content_type The content type of the provided file.
12
+ def initialize(file, content_type: 'application/octet-stream')
13
+ super
14
+ end
15
+
16
+ # Provides a human-readable string representation of the object.
17
+ def to_s
18
+ class_name = self.class.name.split('::').last
19
+ "<#{class_name} file: #{@file}, content_type: #{@content_type}>"
20
+ end
21
+
22
+ # Provides a debugging-friendly string with detailed object information.
23
+ def to_inspect
24
+ class_name = self.class.name.split('::').last
25
+ "<#{class_name} file: #{@file.inspect}, content_type: #{@content_type.inspect}>"
26
+ end
27
+ end
28
+ end
data/lib/batches.rb ADDED
@@ -0,0 +1,128 @@
1
+ # batches
2
+ #
3
+ # This file was automatically generated by APIMATIC v3.0 (
4
+ # https://www.apimatic.io ).
5
+
6
+ require 'date'
7
+ require 'json'
8
+
9
+ require 'apimatic_core_interfaces'
10
+ require 'apimatic_core'
11
+ require 'apimatic_faraday_client_adapter'
12
+
13
+ require_relative 'batches/api_helper'
14
+ require_relative 'batches/client'
15
+
16
+ # Utilities
17
+ require_relative 'batches/utilities/file_wrapper'
18
+ require_relative 'batches/utilities/date_time_helper'
19
+
20
+ # Http
21
+ require_relative 'batches/http/api_response'
22
+ require_relative 'batches/http/http_call_back'
23
+ require_relative 'batches/http/http_method_enum'
24
+ require_relative 'batches/http/http_request'
25
+ require_relative 'batches/http/http_response'
26
+ require_relative 'batches/http/proxy_settings'
27
+
28
+
29
+ # Logger
30
+ require_relative 'batches/logging/configuration/api_logging_configuration'
31
+ require_relative 'batches/logging/sdk_logger'
32
+
33
+ # Models
34
+ require_relative 'batches/models/base_model'
35
+ require_relative 'batches/models/get_response'
36
+ require_relative 'batches/models/brand_breakdown_item'
37
+ require_relative 'batches/models/close_response'
38
+ require_relative 'batches/models/host_breakdown_item'
39
+ require_relative 'batches/models/transaction_batch_response'
40
+ require_relative 'batches/models/obj_request_invalid400'
41
+ require_relative 'batches/models/authentication_invalid401'
42
+ require_relative 'batches/models/not_authorized403'
43
+ require_relative 'batches/models/server_error500'
44
+ require_relative 'batches/models/unknown_server_error501'
45
+ require_relative 'batches/models/unknown_platform_error502'
46
+ require_relative 'batches/models/server_timeout504'
47
+ require_relative 'batches/models/action'
48
+ require_relative 'batches/models/batches_request'
49
+ require_relative 'batches/models/card'
50
+ require_relative 'batches/models/filter'
51
+ require_relative 'batches/models/funding_credit'
52
+ require_relative 'batches/models/funding_credit1'
53
+ require_relative 'batches/models/funding_credit5'
54
+ require_relative 'batches/models/funding_debit'
55
+ require_relative 'batches/models/funding_debit1'
56
+ require_relative 'batches/models/funding_debit5'
57
+ require_relative 'batches/models/payment_method'
58
+ require_relative 'batches/models/refunds'
59
+ require_relative 'batches/models/refunds1'
60
+ require_relative 'batches/models/sales'
61
+ require_relative 'batches/models/sales1'
62
+ require_relative 'batches/models/transaction'
63
+ require_relative 'batches/models/status_batches_status'
64
+ require_relative 'batches/models/brand_batches_brand_breakdown_brand'
65
+ require_relative 'batches/models/type_batches_action_type'
66
+ require_relative 'batches/models/result_code_batches_action_result_code'
67
+ require_relative 'batches/models/status_batches_transactions_status'
68
+ require_relative 'batches/models/type_batches_transactions_type'
69
+ require_relative 'batches/models/currency_batches_transactions_currency'
70
+ require_relative 'batches/models/' \
71
+ 'entry_mode_batches_transactions_payment_method_entry_mode'
72
+ require_relative 'batches/models/' \
73
+ 'funding_batches_transactions_payment_method_card_funding'
74
+ require_relative 'batches/models/' \
75
+ 'brand_batches_transactions_payment_method_card_brand'
76
+ require_relative 'batches/models/' \
77
+ 'cvv_result_batc' \
78
+ 'hes_transactions_payment_method_card_cvv_result'
79
+ require_relative 'batches/models/' \
80
+ 'avs_address_res' \
81
+ 'ult_batches_tra' \
82
+ 'nsactions_payment_method_card_avs_address_result'
83
+ require_relative 'batches/models/' \
84
+ 'avs_postal_code' \
85
+ '_result_batches' \
86
+ '_transactions_payment_method_card_avs_postal_code_result'
87
+ require_relative 'batches/models/channel_batches_channel'
88
+ require_relative 'batches/models/detailed_error_code'
89
+ require_relative 'batches/models/detailed_error_code1'
90
+ require_relative 'batches/models/detailed_error_code2'
91
+ require_relative 'batches/models/detailed_error_code3'
92
+ require_relative 'batches/models/detailed_error_code4'
93
+ require_relative 'batches/models/detailed_error_code5'
94
+ require_relative 'batches/models/detailed_error_code6'
95
+ require_relative 'batches/models/error_code'
96
+ require_relative 'batches/models/error_code1'
97
+ require_relative 'batches/models/error_code2'
98
+ require_relative 'batches/models/error_code3'
99
+ require_relative 'batches/models/error_code4'
100
+ require_relative 'batches/models/error_code5'
101
+ require_relative 'batches/models/error_code6'
102
+ require_relative 'batches/models/payment_methods_batches_payment_method'
103
+ require_relative 'batches/models/payment_method2'
104
+
105
+ # Exceptions
106
+ require_relative 'batches/exceptions/api_exception'
107
+ require_relative 'batches/exceptions/batches400_error_exception'
108
+ require_relative 'batches/exceptions/batches401_error_exception'
109
+ require_relative 'batches/exceptions/batches403_error_exception'
110
+ require_relative 'batches/exceptions/batches500_error_exception'
111
+ require_relative 'batches/exceptions/batches501_error_exception'
112
+ require_relative 'batches/exceptions/batches502_error_exception'
113
+ require_relative 'batches/exceptions/batches504_error_exception'
114
+ require_relative 'batches/exceptions/batches_transactions400_error_exception'
115
+ require_relative 'batches/exceptions/batches_transactions401_error_exception'
116
+ require_relative 'batches/exceptions/batches_transactions403_error_exception'
117
+ require_relative 'batches/exceptions/batches_transactions500_error_exception'
118
+ require_relative 'batches/exceptions/batches_transactions501_error_exception'
119
+ require_relative 'batches/exceptions/batches_transactions502_error_exception'
120
+ require_relative 'batches/exceptions/batches_transactions504_error_exception'
121
+
122
+ require_relative 'batches/configuration'
123
+
124
+ # Controllers
125
+ require_relative 'batches/apis/base_api'
126
+ require_relative 'batches/apis/get_a_batch_api'
127
+ require_relative 'batches/apis/close_a_batch_api'
128
+ require_relative 'batches/apis/get_transactions_within_a_batch_api'
metadata ADDED
@@ -0,0 +1,180 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: apimatic-gp-sdk
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - developer sdksio
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-08-10 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: apimatic_core_interfaces
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.2.3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.2.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: apimatic_core
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.3.20
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.3.20
41
+ - !ruby/object:Gem::Dependency
42
+ name: apimatic_faraday_client_adapter
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 0.1.6
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 0.1.6
55
+ description: This is a sample SDK generated by APIMatic
56
+ email:
57
+ - developer+sdksio@apimatic.io
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE
63
+ - README.md
64
+ - bin/console
65
+ - lib/batches.rb
66
+ - lib/batches/api_helper.rb
67
+ - lib/batches/apis/base_api.rb
68
+ - lib/batches/apis/close_a_batch_api.rb
69
+ - lib/batches/apis/get_a_batch_api.rb
70
+ - lib/batches/apis/get_transactions_within_a_batch_api.rb
71
+ - lib/batches/client.rb
72
+ - lib/batches/configuration.rb
73
+ - lib/batches/exceptions/api_exception.rb
74
+ - lib/batches/exceptions/batches400_error_exception.rb
75
+ - lib/batches/exceptions/batches401_error_exception.rb
76
+ - lib/batches/exceptions/batches403_error_exception.rb
77
+ - lib/batches/exceptions/batches500_error_exception.rb
78
+ - lib/batches/exceptions/batches501_error_exception.rb
79
+ - lib/batches/exceptions/batches502_error_exception.rb
80
+ - lib/batches/exceptions/batches504_error_exception.rb
81
+ - lib/batches/exceptions/batches_transactions400_error_exception.rb
82
+ - lib/batches/exceptions/batches_transactions401_error_exception.rb
83
+ - lib/batches/exceptions/batches_transactions403_error_exception.rb
84
+ - lib/batches/exceptions/batches_transactions500_error_exception.rb
85
+ - lib/batches/exceptions/batches_transactions501_error_exception.rb
86
+ - lib/batches/exceptions/batches_transactions502_error_exception.rb
87
+ - lib/batches/exceptions/batches_transactions504_error_exception.rb
88
+ - lib/batches/http/api_response.rb
89
+ - lib/batches/http/http_call_back.rb
90
+ - lib/batches/http/http_method_enum.rb
91
+ - lib/batches/http/http_request.rb
92
+ - lib/batches/http/http_response.rb
93
+ - lib/batches/http/proxy_settings.rb
94
+ - lib/batches/logging/configuration/api_logging_configuration.rb
95
+ - lib/batches/logging/sdk_logger.rb
96
+ - lib/batches/models/action.rb
97
+ - lib/batches/models/authentication_invalid401.rb
98
+ - lib/batches/models/avs_address_result_batches_transactions_payment_method_card_avs_address_result.rb
99
+ - lib/batches/models/avs_postal_code_result_batches_transactions_payment_method_card_avs_postal_code_result.rb
100
+ - lib/batches/models/base_model.rb
101
+ - lib/batches/models/batches_request.rb
102
+ - lib/batches/models/brand_batches_brand_breakdown_brand.rb
103
+ - lib/batches/models/brand_batches_transactions_payment_method_card_brand.rb
104
+ - lib/batches/models/brand_breakdown_item.rb
105
+ - lib/batches/models/card.rb
106
+ - lib/batches/models/channel_batches_channel.rb
107
+ - lib/batches/models/close_response.rb
108
+ - lib/batches/models/currency_batches_transactions_currency.rb
109
+ - lib/batches/models/cvv_result_batches_transactions_payment_method_card_cvv_result.rb
110
+ - lib/batches/models/detailed_error_code.rb
111
+ - lib/batches/models/detailed_error_code1.rb
112
+ - lib/batches/models/detailed_error_code2.rb
113
+ - lib/batches/models/detailed_error_code3.rb
114
+ - lib/batches/models/detailed_error_code4.rb
115
+ - lib/batches/models/detailed_error_code5.rb
116
+ - lib/batches/models/detailed_error_code6.rb
117
+ - lib/batches/models/entry_mode_batches_transactions_payment_method_entry_mode.rb
118
+ - lib/batches/models/error_code.rb
119
+ - lib/batches/models/error_code1.rb
120
+ - lib/batches/models/error_code2.rb
121
+ - lib/batches/models/error_code3.rb
122
+ - lib/batches/models/error_code4.rb
123
+ - lib/batches/models/error_code5.rb
124
+ - lib/batches/models/error_code6.rb
125
+ - lib/batches/models/filter.rb
126
+ - lib/batches/models/funding_batches_transactions_payment_method_card_funding.rb
127
+ - lib/batches/models/funding_credit.rb
128
+ - lib/batches/models/funding_credit1.rb
129
+ - lib/batches/models/funding_credit5.rb
130
+ - lib/batches/models/funding_debit.rb
131
+ - lib/batches/models/funding_debit1.rb
132
+ - lib/batches/models/funding_debit5.rb
133
+ - lib/batches/models/get_response.rb
134
+ - lib/batches/models/host_breakdown_item.rb
135
+ - lib/batches/models/not_authorized403.rb
136
+ - lib/batches/models/obj_request_invalid400.rb
137
+ - lib/batches/models/payment_method.rb
138
+ - lib/batches/models/payment_method2.rb
139
+ - lib/batches/models/payment_methods_batches_payment_method.rb
140
+ - lib/batches/models/refunds.rb
141
+ - lib/batches/models/refunds1.rb
142
+ - lib/batches/models/result_code_batches_action_result_code.rb
143
+ - lib/batches/models/sales.rb
144
+ - lib/batches/models/sales1.rb
145
+ - lib/batches/models/server_error500.rb
146
+ - lib/batches/models/server_timeout504.rb
147
+ - lib/batches/models/status_batches_status.rb
148
+ - lib/batches/models/status_batches_transactions_status.rb
149
+ - lib/batches/models/transaction.rb
150
+ - lib/batches/models/transaction_batch_response.rb
151
+ - lib/batches/models/type_batches_action_type.rb
152
+ - lib/batches/models/type_batches_transactions_type.rb
153
+ - lib/batches/models/unknown_platform_error502.rb
154
+ - lib/batches/models/unknown_server_error501.rb
155
+ - lib/batches/utilities/date_time_helper.rb
156
+ - lib/batches/utilities/file_wrapper.rb
157
+ homepage: https://apimatic.io
158
+ licenses:
159
+ - MIT
160
+ metadata: {}
161
+ post_install_message:
162
+ rdoc_options: []
163
+ require_paths:
164
+ - lib
165
+ required_ruby_version: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '2.6'
170
+ required_rubygems_version: !ruby/object:Gem::Requirement
171
+ requirements:
172
+ - - ">="
173
+ - !ruby/object:Gem::Version
174
+ version: '0'
175
+ requirements: []
176
+ rubygems_version: 3.1.6
177
+ signing_key:
178
+ specification_version: 4
179
+ summary: This is a sample SDK generated by APIMatic
180
+ test_files: []