conekta-tiempometa 2.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +24 -0
  3. data/.rspec +1 -0
  4. data/CHANGELOG.md +124 -0
  5. data/Dockerfile +44 -0
  6. data/Gemfile +13 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +182 -0
  9. data/Rakefile +1 -0
  10. data/conekta.gemspec +29 -0
  11. data/lib/conekta/address.rb +5 -0
  12. data/lib/conekta/card.rb +21 -0
  13. data/lib/conekta/charge.rb +25 -0
  14. data/lib/conekta/conekta_object.rb +109 -0
  15. data/lib/conekta/customer.rb +82 -0
  16. data/lib/conekta/customer_info.rb +5 -0
  17. data/lib/conekta/destination.rb +17 -0
  18. data/lib/conekta/details.rb +5 -0
  19. data/lib/conekta/discount_line.rb +19 -0
  20. data/lib/conekta/error.rb +99 -0
  21. data/lib/conekta/error_details.rb +14 -0
  22. data/lib/conekta/event.rb +9 -0
  23. data/lib/conekta/line_item.rb +21 -0
  24. data/lib/conekta/list.rb +59 -0
  25. data/lib/conekta/log.rb +10 -0
  26. data/lib/conekta/method.rb +4 -0
  27. data/lib/conekta/operations/create.rb +19 -0
  28. data/lib/conekta/operations/create_member.rb +40 -0
  29. data/lib/conekta/operations/custom_action.rb +13 -0
  30. data/lib/conekta/operations/delete.rb +45 -0
  31. data/lib/conekta/operations/find.rb +21 -0
  32. data/lib/conekta/operations/update.rb +11 -0
  33. data/lib/conekta/operations/where.rb +30 -0
  34. data/lib/conekta/order.rb +87 -0
  35. data/lib/conekta/payee.rb +66 -0
  36. data/lib/conekta/payment_method.rb +4 -0
  37. data/lib/conekta/payment_source.rb +17 -0
  38. data/lib/conekta/payout.rb +7 -0
  39. data/lib/conekta/payout_method.rb +17 -0
  40. data/lib/conekta/plan.rb +16 -0
  41. data/lib/conekta/refund.rb +6 -0
  42. data/lib/conekta/requestor.rb +80 -0
  43. data/lib/conekta/resource.rb +54 -0
  44. data/lib/conekta/return.rb +12 -0
  45. data/lib/conekta/shipping_contact.rb +19 -0
  46. data/lib/conekta/shipping_line.rb +20 -0
  47. data/lib/conekta/subscription.rb +25 -0
  48. data/lib/conekta/tax_line.rb +19 -0
  49. data/lib/conekta/token.rb +8 -0
  50. data/lib/conekta/transfer.rb +7 -0
  51. data/lib/conekta/util.rb +136 -0
  52. data/lib/conekta/version.rb +3 -0
  53. data/lib/conekta/webhook.rb +12 -0
  54. data/lib/conekta/webhook_log.rb +4 -0
  55. data/lib/conekta.rb +101 -0
  56. data/lib/ssl_data/ca_bundle.crt +3955 -0
  57. data/locales/en.yml +9 -0
  58. data/locales/es.yml +10 -0
  59. data/readme_files/banner.png +0 -0
  60. data/readme_files/conekta-badge.png +0 -0
  61. data/readme_files/ruby-badge.png +0 -0
  62. data/spec/conekta/1.0.0/.DS_Store +0 -0
  63. data/spec/conekta/1.0.0/card_spec.rb +40 -0
  64. data/spec/conekta/1.0.0/charge_spec.rb +152 -0
  65. data/spec/conekta/1.0.0/customer_spec.rb +147 -0
  66. data/spec/conekta/1.0.0/error_spec.rb +69 -0
  67. data/spec/conekta/1.0.0/event_spec.rb +26 -0
  68. data/spec/conekta/1.0.0/log_spec.rb +20 -0
  69. data/spec/conekta/1.0.0/payout_spec.rb +60 -0
  70. data/spec/conekta/1.0.0/plan_spec.rb +53 -0
  71. data/spec/conekta/1.0.0/token_spec.rb +5 -0
  72. data/spec/conekta/1.0.0/webhook_spec.rb +36 -0
  73. data/spec/conekta/2.0.0/customer_spec.rb +77 -0
  74. data/spec/conekta/2.0.0/discount_line_spec.rb +49 -0
  75. data/spec/conekta/2.0.0/error_spec.rb +61 -0
  76. data/spec/conekta/2.0.0/line_item_spec.rb +53 -0
  77. data/spec/conekta/2.0.0/list_spec.rb +29 -0
  78. data/spec/conekta/2.0.0/order_spec.rb +291 -0
  79. data/spec/conekta/2.0.0/payee_spec.rb +55 -0
  80. data/spec/conekta/2.0.0/shipping_contact_spec.rb +60 -0
  81. data/spec/conekta/2.0.0/shipping_line_spec.rb +53 -0
  82. data/spec/conekta/2.0.0/source_spec.rb +31 -0
  83. data/spec/conekta/2.0.0/tax_line_spec.rb +44 -0
  84. data/spec/conekta/2.0.0/transfer_spec.rb +59 -0
  85. data/spec/conekta_spec.rb +29 -0
  86. data/spec/spec_helper.rb +14 -0
  87. data/spec/support/fixtures/orders.json +1127 -0
  88. data/spec/support/shared_context.rb +49 -0
  89. metadata +229 -0
@@ -0,0 +1,49 @@
1
+ shared_context "API 2.0.0" do
2
+ before(:all) do
3
+ Conekta.api_version = "2.0.0"
4
+ end
5
+
6
+ after(:all) do
7
+ Conekta.api_version = "1.0.0"
8
+ end
9
+ end
10
+
11
+ shared_context "API 1.0.0" do
12
+ before(:all) do
13
+ Conekta.api_version = "1.0.0"
14
+ end
15
+
16
+ after(:all) do
17
+ Conekta.api_version = "2.0.0"
18
+ end
19
+ end
20
+
21
+ shared_context "order" do
22
+ let(:line_items) do
23
+ [{
24
+ name: "Box of Cohiba S1s",
25
+ description: "Imported From Mex.",
26
+ unit_price: 35000,
27
+ quantity: 1,
28
+ tags: ["food", "mexican food"],
29
+ type: "physical"
30
+ }]
31
+ end
32
+
33
+ let(:order_data) do
34
+ {
35
+ currency: 'mxn',
36
+ line_items: line_items
37
+ }
38
+ end
39
+ end
40
+
41
+ shared_context "customer" do
42
+ let(:customer_data) do
43
+ {
44
+ email: "hola@hola.com",
45
+ name: "John Constantine",
46
+ payment_sources: [ { token_id: "tok_test_visa_4242", type: "card" }]
47
+ }
48
+ end
49
+ end
metadata ADDED
@@ -0,0 +1,229 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: conekta-tiempometa
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.4.2
5
+ platform: ruby
6
+ authors:
7
+ - Conekta
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2019-11-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: faraday
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: json
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sys-uname
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pry
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Ruby library for https://api.conekta.io
112
+ email:
113
+ - soporte@conekta.com
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".gitignore"
119
+ - ".rspec"
120
+ - CHANGELOG.md
121
+ - Dockerfile
122
+ - Gemfile
123
+ - LICENSE.txt
124
+ - README.md
125
+ - Rakefile
126
+ - conekta.gemspec
127
+ - lib/conekta.rb
128
+ - lib/conekta/address.rb
129
+ - lib/conekta/card.rb
130
+ - lib/conekta/charge.rb
131
+ - lib/conekta/conekta_object.rb
132
+ - lib/conekta/customer.rb
133
+ - lib/conekta/customer_info.rb
134
+ - lib/conekta/destination.rb
135
+ - lib/conekta/details.rb
136
+ - lib/conekta/discount_line.rb
137
+ - lib/conekta/error.rb
138
+ - lib/conekta/error_details.rb
139
+ - lib/conekta/event.rb
140
+ - lib/conekta/line_item.rb
141
+ - lib/conekta/list.rb
142
+ - lib/conekta/log.rb
143
+ - lib/conekta/method.rb
144
+ - lib/conekta/operations/create.rb
145
+ - lib/conekta/operations/create_member.rb
146
+ - lib/conekta/operations/custom_action.rb
147
+ - lib/conekta/operations/delete.rb
148
+ - lib/conekta/operations/find.rb
149
+ - lib/conekta/operations/update.rb
150
+ - lib/conekta/operations/where.rb
151
+ - lib/conekta/order.rb
152
+ - lib/conekta/payee.rb
153
+ - lib/conekta/payment_method.rb
154
+ - lib/conekta/payment_source.rb
155
+ - lib/conekta/payout.rb
156
+ - lib/conekta/payout_method.rb
157
+ - lib/conekta/plan.rb
158
+ - lib/conekta/refund.rb
159
+ - lib/conekta/requestor.rb
160
+ - lib/conekta/resource.rb
161
+ - lib/conekta/return.rb
162
+ - lib/conekta/shipping_contact.rb
163
+ - lib/conekta/shipping_line.rb
164
+ - lib/conekta/subscription.rb
165
+ - lib/conekta/tax_line.rb
166
+ - lib/conekta/token.rb
167
+ - lib/conekta/transfer.rb
168
+ - lib/conekta/util.rb
169
+ - lib/conekta/version.rb
170
+ - lib/conekta/webhook.rb
171
+ - lib/conekta/webhook_log.rb
172
+ - lib/ssl_data/ca_bundle.crt
173
+ - locales/en.yml
174
+ - locales/es.yml
175
+ - readme_files/banner.png
176
+ - readme_files/conekta-badge.png
177
+ - readme_files/ruby-badge.png
178
+ - spec/conekta/1.0.0/.DS_Store
179
+ - spec/conekta/1.0.0/card_spec.rb
180
+ - spec/conekta/1.0.0/charge_spec.rb
181
+ - spec/conekta/1.0.0/customer_spec.rb
182
+ - spec/conekta/1.0.0/error_spec.rb
183
+ - spec/conekta/1.0.0/event_spec.rb
184
+ - spec/conekta/1.0.0/log_spec.rb
185
+ - spec/conekta/1.0.0/payout_spec.rb
186
+ - spec/conekta/1.0.0/plan_spec.rb
187
+ - spec/conekta/1.0.0/token_spec.rb
188
+ - spec/conekta/1.0.0/webhook_spec.rb
189
+ - spec/conekta/2.0.0/customer_spec.rb
190
+ - spec/conekta/2.0.0/discount_line_spec.rb
191
+ - spec/conekta/2.0.0/error_spec.rb
192
+ - spec/conekta/2.0.0/line_item_spec.rb
193
+ - spec/conekta/2.0.0/list_spec.rb
194
+ - spec/conekta/2.0.0/order_spec.rb
195
+ - spec/conekta/2.0.0/payee_spec.rb
196
+ - spec/conekta/2.0.0/shipping_contact_spec.rb
197
+ - spec/conekta/2.0.0/shipping_line_spec.rb
198
+ - spec/conekta/2.0.0/source_spec.rb
199
+ - spec/conekta/2.0.0/tax_line_spec.rb
200
+ - spec/conekta/2.0.0/transfer_spec.rb
201
+ - spec/conekta_spec.rb
202
+ - spec/spec_helper.rb
203
+ - spec/support/fixtures/orders.json
204
+ - spec/support/shared_context.rb
205
+ homepage: https://www.conekta.com
206
+ licenses:
207
+ - MIT
208
+ metadata: {}
209
+ post_install_message:
210
+ rdoc_options: []
211
+ require_paths:
212
+ - lib
213
+ required_ruby_version: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - ">="
216
+ - !ruby/object:Gem::Version
217
+ version: '0'
218
+ required_rubygems_version: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ requirements: []
224
+ rubyforge_project:
225
+ rubygems_version: 2.4.8
226
+ signing_key:
227
+ specification_version: 4
228
+ summary: This library provides https://api.conekta.io operations
229
+ test_files: []