stripe 1.27.2 → 5.33.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +942 -0
  3. data/CODE_OF_CONDUCT.md +77 -0
  4. data/Gemfile +29 -4
  5. data/History.txt +1 -361
  6. data/README.md +349 -0
  7. data/Rakefile +33 -3
  8. data/VERSION +1 -1
  9. data/bin/stripe-console +14 -5
  10. data/lib/data/ca-certificates.crt +4016 -5138
  11. data/lib/stripe.rb +102 -320
  12. data/lib/stripe/api_operations/create.rb +5 -9
  13. data/lib/stripe/api_operations/delete.rb +32 -4
  14. data/lib/stripe/api_operations/list.rb +11 -9
  15. data/lib/stripe/api_operations/nested_resource.rb +73 -0
  16. data/lib/stripe/api_operations/request.rb +66 -11
  17. data/lib/stripe/api_operations/save.rb +97 -0
  18. data/lib/stripe/api_resource.rb +96 -12
  19. data/lib/stripe/connection_manager.rb +164 -0
  20. data/lib/stripe/error_object.rb +94 -0
  21. data/lib/stripe/errors.rb +177 -0
  22. data/lib/stripe/instrumentation.rb +82 -0
  23. data/lib/stripe/list_object.rb +118 -13
  24. data/lib/stripe/multipart_encoder.rb +131 -0
  25. data/lib/stripe/oauth.rb +65 -0
  26. data/lib/stripe/object_types.rb +104 -0
  27. data/lib/stripe/resources.rb +87 -0
  28. data/lib/stripe/resources/account.rb +170 -0
  29. data/lib/stripe/resources/account_link.rb +10 -0
  30. data/lib/stripe/resources/alipay_account.rb +34 -0
  31. data/lib/stripe/resources/apple_pay_domain.rb +17 -0
  32. data/lib/stripe/resources/application_fee.rb +14 -0
  33. data/lib/stripe/resources/application_fee_refund.rb +30 -0
  34. data/lib/stripe/resources/balance.rb +8 -0
  35. data/lib/stripe/resources/balance_transaction.rb +10 -0
  36. data/lib/stripe/resources/bank_account.rb +43 -0
  37. data/lib/stripe/resources/billing_portal/configuration.rb +14 -0
  38. data/lib/stripe/resources/billing_portal/session.rb +12 -0
  39. data/lib/stripe/resources/bitcoin_receiver.rb +24 -0
  40. data/lib/stripe/resources/bitcoin_transaction.rb +15 -0
  41. data/lib/stripe/resources/capability.rb +33 -0
  42. data/lib/stripe/resources/card.rb +38 -0
  43. data/lib/stripe/resources/charge.rb +23 -0
  44. data/lib/stripe/resources/checkout/session.rb +16 -0
  45. data/lib/stripe/resources/country_spec.rb +10 -0
  46. data/lib/stripe/resources/coupon.rb +13 -0
  47. data/lib/stripe/resources/credit_note.rb +33 -0
  48. data/lib/stripe/resources/credit_note_line_item.rb +7 -0
  49. data/lib/stripe/resources/customer.rb +41 -0
  50. data/lib/stripe/resources/customer_balance_transaction.rb +30 -0
  51. data/lib/stripe/resources/discount.rb +7 -0
  52. data/lib/stripe/resources/dispute.rb +22 -0
  53. data/lib/stripe/resources/ephemeral_key.rb +20 -0
  54. data/lib/stripe/resources/event.rb +10 -0
  55. data/lib/stripe/resources/exchange_rate.rb +10 -0
  56. data/lib/stripe/resources/file.rb +36 -0
  57. data/lib/stripe/resources/file_link.rb +12 -0
  58. data/lib/stripe/resources/identity/verification_report.rb +12 -0
  59. data/lib/stripe/resources/identity/verification_session.rb +35 -0
  60. data/lib/stripe/resources/invoice.rb +74 -0
  61. data/lib/stripe/resources/invoice_item.rb +13 -0
  62. data/lib/stripe/resources/invoice_line_item.rb +7 -0
  63. data/lib/stripe/resources/issuing/authorization.rb +34 -0
  64. data/lib/stripe/resources/issuing/card.rb +25 -0
  65. data/lib/stripe/resources/issuing/card_details.rb +9 -0
  66. data/lib/stripe/resources/issuing/cardholder.rb +14 -0
  67. data/lib/stripe/resources/issuing/dispute.rb +25 -0
  68. data/lib/stripe/resources/issuing/transaction.rb +13 -0
  69. data/lib/stripe/resources/line_item.rb +7 -0
  70. data/lib/stripe/resources/login_link.rb +14 -0
  71. data/lib/stripe/resources/mandate.rb +8 -0
  72. data/lib/stripe/resources/order.rb +33 -0
  73. data/lib/stripe/resources/order_return.rb +10 -0
  74. data/lib/stripe/resources/payment_intent.rb +43 -0
  75. data/lib/stripe/resources/payment_method.rb +33 -0
  76. data/lib/stripe/resources/payout.rb +33 -0
  77. data/lib/stripe/resources/person.rb +31 -0
  78. data/lib/stripe/resources/plan.rb +13 -0
  79. data/lib/stripe/resources/price.rb +12 -0
  80. data/lib/stripe/resources/product.rb +13 -0
  81. data/lib/stripe/resources/promotion_code.rb +12 -0
  82. data/lib/stripe/resources/radar/early_fraud_warning.rb +12 -0
  83. data/lib/stripe/resources/radar/value_list.rb +15 -0
  84. data/lib/stripe/resources/radar/value_list_item.rb +14 -0
  85. data/lib/stripe/resources/recipient.rb +14 -0
  86. data/lib/stripe/resources/recipient_transfer.rb +7 -0
  87. data/lib/stripe/resources/refund.rb +12 -0
  88. data/lib/stripe/resources/reporting/report_run.rb +13 -0
  89. data/lib/stripe/resources/reporting/report_type.rb +13 -0
  90. data/lib/stripe/resources/reversal.rb +29 -0
  91. data/lib/stripe/resources/review.rb +21 -0
  92. data/lib/stripe/resources/setup_attempt.rb +10 -0
  93. data/lib/stripe/resources/setup_intent.rb +33 -0
  94. data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
  95. data/lib/stripe/resources/sku.rb +13 -0
  96. data/lib/stripe/resources/source.rb +47 -0
  97. data/lib/stripe/resources/source_transaction.rb +7 -0
  98. data/lib/stripe/resources/subscription.rb +26 -0
  99. data/lib/stripe/resources/subscription_item.rb +26 -0
  100. data/lib/stripe/resources/subscription_schedule.rb +33 -0
  101. data/lib/stripe/resources/tax_id.rb +26 -0
  102. data/lib/stripe/resources/tax_rate.rb +12 -0
  103. data/lib/stripe/resources/terminal/connection_token.rb +12 -0
  104. data/lib/stripe/resources/terminal/location.rb +15 -0
  105. data/lib/stripe/resources/terminal/reader.rb +15 -0
  106. data/lib/stripe/resources/three_d_secure.rb +14 -0
  107. data/lib/stripe/resources/token.rb +10 -0
  108. data/lib/stripe/resources/topup.rb +23 -0
  109. data/lib/stripe/resources/transfer.rb +27 -0
  110. data/lib/stripe/resources/usage_record.rb +7 -0
  111. data/lib/stripe/resources/usage_record_summary.rb +7 -0
  112. data/lib/stripe/resources/webhook_endpoint.rb +13 -0
  113. data/lib/stripe/singleton_api_resource.rb +13 -7
  114. data/lib/stripe/stripe_client.rb +989 -0
  115. data/lib/stripe/stripe_configuration.rb +194 -0
  116. data/lib/stripe/stripe_object.rb +481 -148
  117. data/lib/stripe/stripe_response.rb +82 -0
  118. data/lib/stripe/util.rb +265 -70
  119. data/lib/stripe/version.rb +3 -1
  120. data/lib/stripe/webhook.rb +121 -0
  121. data/stripe.gemspec +35 -21
  122. metadata +118 -198
  123. data/.gitignore +0 -4
  124. data/.travis.yml +0 -22
  125. data/README.rdoc +0 -43
  126. data/gemfiles/default-with-activesupport.gemfile +0 -10
  127. data/gemfiles/json.gemfile +0 -12
  128. data/gemfiles/yajl.gemfile +0 -12
  129. data/lib/stripe/account.rb +0 -39
  130. data/lib/stripe/api_operations/update.rb +0 -19
  131. data/lib/stripe/application_fee.rb +0 -20
  132. data/lib/stripe/application_fee_refund.rb +0 -14
  133. data/lib/stripe/balance.rb +0 -4
  134. data/lib/stripe/balance_transaction.rb +0 -9
  135. data/lib/stripe/bank_account.rb +0 -19
  136. data/lib/stripe/bitcoin_receiver.rb +0 -20
  137. data/lib/stripe/bitcoin_transaction.rb +0 -9
  138. data/lib/stripe/card.rb +0 -21
  139. data/lib/stripe/charge.rb +0 -62
  140. data/lib/stripe/coupon.rb +0 -8
  141. data/lib/stripe/customer.rb +0 -75
  142. data/lib/stripe/dispute.rb +0 -16
  143. data/lib/stripe/errors/api_connection_error.rb +0 -4
  144. data/lib/stripe/errors/api_error.rb +0 -4
  145. data/lib/stripe/errors/authentication_error.rb +0 -4
  146. data/lib/stripe/errors/card_error.rb +0 -12
  147. data/lib/stripe/errors/invalid_request_error.rb +0 -11
  148. data/lib/stripe/errors/rate_limit_error.rb +0 -4
  149. data/lib/stripe/errors/stripe_error.rb +0 -26
  150. data/lib/stripe/event.rb +0 -5
  151. data/lib/stripe/file_upload.rb +0 -22
  152. data/lib/stripe/invoice.rb +0 -27
  153. data/lib/stripe/invoice_item.rb +0 -8
  154. data/lib/stripe/order.rb +0 -19
  155. data/lib/stripe/plan.rb +0 -8
  156. data/lib/stripe/product.rb +0 -16
  157. data/lib/stripe/recipient.rb +0 -12
  158. data/lib/stripe/refund.rb +0 -7
  159. data/lib/stripe/reversal.rb +0 -14
  160. data/lib/stripe/sku.rb +0 -8
  161. data/lib/stripe/subscription.rb +0 -25
  162. data/lib/stripe/token.rb +0 -5
  163. data/lib/stripe/transfer.rb +0 -17
  164. data/test/stripe/account_test.rb +0 -118
  165. data/test/stripe/api_resource_test.rb +0 -632
  166. data/test/stripe/application_fee_refund_test.rb +0 -47
  167. data/test/stripe/application_fee_test.rb +0 -22
  168. data/test/stripe/balance_test.rb +0 -11
  169. data/test/stripe/bitcoin_receiver_test.rb +0 -61
  170. data/test/stripe/bitcoin_transaction_test.rb +0 -29
  171. data/test/stripe/charge_refund_test.rb +0 -55
  172. data/test/stripe/charge_test.rb +0 -118
  173. data/test/stripe/coupon_test.rb +0 -20
  174. data/test/stripe/customer_card_test.rb +0 -63
  175. data/test/stripe/customer_test.rb +0 -88
  176. data/test/stripe/dispute_test.rb +0 -45
  177. data/test/stripe/file_upload_test.rb +0 -28
  178. data/test/stripe/invoice_test.rb +0 -40
  179. data/test/stripe/list_object_test.rb +0 -16
  180. data/test/stripe/metadata_test.rb +0 -129
  181. data/test/stripe/order_test.rb +0 -52
  182. data/test/stripe/product_test.rb +0 -41
  183. data/test/stripe/recipient_card_test.rb +0 -57
  184. data/test/stripe/refund_test.rb +0 -55
  185. data/test/stripe/reversal_test.rb +0 -47
  186. data/test/stripe/sku_test.rb +0 -24
  187. data/test/stripe/stripe_object_test.rb +0 -28
  188. data/test/stripe/subscription_test.rb +0 -72
  189. data/test/stripe/transfer_test.rb +0 -25
  190. data/test/stripe/util_test.rb +0 -34
  191. data/test/test_data.rb +0 -666
  192. data/test/test_helper.rb +0 -41
@@ -0,0 +1,77 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to make participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies within all project spaces, and it also applies when
49
+ an individual is representing the project or its community in public spaces.
50
+ Examples of representing a project or community include using an official
51
+ project e-mail address, posting via an official social media account, or acting
52
+ as an appointed representative at an online or offline event. Representation of
53
+ a project may be further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at conduct@stripe.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
74
+
75
+ For answers to common questions about this code of conduct, see
76
+ https://www.contributor-covenant.org/faq
77
+
data/Gemfile CHANGED
@@ -1,8 +1,33 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "https://rubygems.org"
4
+
2
5
  gemspec
3
6
 
4
- if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('1.9.3')
5
- gem 'i18n', '< 0.7'
6
- gem 'rest-client', '~> 1.6.8'
7
- gem 'activesupport', '~> 3.2'
7
+ group :development do
8
+ gem "mocha", "~> 0.13.2"
9
+ gem "rack", ">= 2.0.6"
10
+ gem "rake"
11
+
12
+ # Update to 2.0.0 once it ships.
13
+ gem "shoulda-context", "2.0.0.rc4"
14
+
15
+ gem "test-unit"
16
+
17
+ # Version doesn't matter that much, but this one contains some fixes for Ruby
18
+ # 2.7 warnings that add noise to the test suite.
19
+ gem "webmock", ">= 3.8.0"
20
+
21
+ # Rubocop changes pretty quickly: new cops get added and old cops change
22
+ # names or go into new namespaces. This is a library and we don't have
23
+ # `Gemfile.lock` checked in, so to prevent good builds from suddenly going
24
+ # bad, pin to a specific version number here. Try to keep this relatively
25
+ # up-to-date, but it's not the end of the world if it's not.
26
+ gem "rubocop", "0.80"
27
+
28
+ platforms :mri do
29
+ gem "byebug"
30
+ gem "pry"
31
+ gem "pry-byebug"
32
+ end
8
33
  end
data/History.txt CHANGED
@@ -1,361 +1 @@
1
- === 1.27.2 2015-09-25
2
-
3
- * Correct the URLs used to fetch Bitcoin transactions.
4
-
5
- === 1.27.1 2015-09-20
6
-
7
- * Use hash rockets for backwards compatibility.
8
-
9
- === 1.27.0 2015-09-14
10
-
11
- * Add Orders, Products, and SKUs for Relay.
12
-
13
- === 1.26.0 2015-09-11
14
-
15
- * Add support for 429 Rate Limited response
16
-
17
- === 1.25.0 2015-08-17
18
-
19
- * Added support for refund listing and retrieval without an associated charge
20
-
21
- === 1.24.0 2015-08-03
22
-
23
- * Added support for deleting managed accounts
24
- * Added support for dispute listing and retrieval
25
- * Bugfix: token objects now are the correct class
26
-
27
- === 1.23.0 2015-07-06
28
-
29
- * Added request IDs and HTTP headers to errors.
30
-
31
- === 1.22.0 2015-06-10
32
-
33
- * Added support for bank accounts and debit cards in managed accounts (via the `external_accounts` param)
34
-
35
- === 1.21.0 2015-04-14
36
-
37
- * Remove TLS cert revocation check. (All pre-heartbleed certs have expired.)
38
- * Bugfix: don't unset keys when they don't exist on StripeObject.
39
-
40
- === 1.20.4 2015-03-26
41
-
42
- * Raise an error when explicitly passing nil as the API key on resource methods
43
- * Fix error when passing an API key to Balance.retrieve (github issue #232)
44
-
45
- === 1.20.3 2015-03-13
46
-
47
- * Fixed error when updating certain resources (github issue #224)
48
-
49
- === 1.20.2 2015-03-10
50
-
51
- * Added support for updating nested hashes besides `metadata` (which was already supported)
52
- * Fixed bug in balance retrieval
53
-
54
- === 1.20.1 2015-02-26
55
-
56
- * Updated Card to point to customer sources endpoint when customer property is set
57
-
58
- === 1.20.0 2015-02-19
59
-
60
- * Added Update & Delete operations to Bitcoin Receivers
61
-
62
- === 1.19.1 2015-02-18
63
-
64
- * Fixed fetching upcoming invoice/paying invoice methods
65
-
66
- === 1.19.0 2015-02-15
67
-
68
- * Support for new Transfers /reversals endpoint
69
- * Account retrieval now optionally accepts an account ID
70
- * Better support for passing custom headers, like Stripe-Account, through requests
71
-
72
- === 1.18.0 2015-01-21
73
-
74
- * 1 major enhancement:
75
- * Added support for making bitcoin charges through BitcoinReceiver source object
76
-
77
- === 1.17.3 2015-01-12
78
-
79
- * 1 bugfix:
80
- * Fixed API key propagation for ApplicationFee#refund
81
-
82
- === 1.17.2 2015-01-08
83
-
84
- * 1 bugfix:
85
- * Fixed API key propagation for child resources
86
-
87
- === 1.17.1 2015-01-07
88
-
89
- * 2 minor enhacements:
90
- * Fixed dependencies for Ruby versions less than 1.9.3
91
- * Added deauthorize method to Account object
92
-
93
- === 1.17.0 2014-12-15
94
-
95
- * 1 major enhacement:
96
- * File uploads resource was added (for uploading pdf or image documents for
97
- disputes)
98
-
99
- === 1.16.1 2014-12-19
100
-
101
- * 2 minor enhancements:
102
- * Ability to send idempotent requests
103
- * Ability to specify stripe account as a header.
104
-
105
- === 1.16.0 2014-10-08
106
-
107
- * 1 minor enhacement:
108
- * Coupons now support update operations - useful for manipulating metadata.
109
-
110
- === 1.15.0 2014-07-26
111
-
112
- * 1 major enhacement:
113
- * Application Fee refunds now a list instead of array
114
-
115
- === 1.14.0 2014-06-17
116
-
117
- * 1 major enhancement:
118
- * Add metadata for refunds and disputes
119
-
120
- === 1.13.0 2014-05-28
121
-
122
- * 1 major enhancement:
123
- * Support for canceling transfers
124
-
125
- === 1.12.0 2014-05-21
126
-
127
- * 1 major enhancement:
128
- * Support for cards for recipients.
129
-
130
- === 1.11.0 2014-04-09
131
-
132
- * 2 minor enhancements:
133
- * Update included ca bundles
134
- * Implement certificate blacklisting
135
-
136
- === 1.10.2 2014-02-18
137
-
138
- * 1 minor enhancement:
139
- * Add create_subscription on Customer resources, so you can create
140
- subscriptions without needing to retrieve the customer first (github
141
- issue #120)
142
-
143
- === 1.10.1 2014-02-03
144
-
145
- * 1 bugfix:
146
- * Fix marshaling of StripeObjects
147
-
148
- === 1.10.0 2014-01-29
149
-
150
- * 2 major enhancements
151
- * Support for multiple subscriptions per customer
152
- * Testing ruby 2.1.0
153
-
154
- * 2 minor enhancements
155
- * Replace multi_json with json
156
- * Allow #save to take opts (for :expand)
157
-
158
- * 1 bugfix
159
- * Fix #try and #respond_to? on StripeObjects
160
-
161
- === 1.9.9 2013-12-02
162
-
163
- * 1 major enhancement
164
- * Add ApplicationFee resource
165
-
166
- === 1.8.9 2013-11-14
167
-
168
- * 2 bugfixes:
169
- * Fix gemspec dependencies so the gem doesn't break for Ruby 1.8 users
170
- * Fix api_resource_test to not use returns as a way of testing rescue behavior
171
-
172
- === 1.8.8 2013-10-3
173
-
174
- * 1 major enhancement
175
- * Add support for metadata on resources
176
-
177
- === 1.8.7 2013-08-18
178
-
179
- * 1 minor enhancement
180
- * Add support for closing disputes.
181
-
182
- === 1.8.6 2013-08-13
183
-
184
- * 1 major enhancement
185
- * Add Balance and BalanceTransaction resources
186
-
187
- === 1.8.5 2013-08-12
188
-
189
- * 1 major enhancement
190
- * Add support for unsetting attributes by setting to nil. This permits
191
- unsetting email and description on customers and description on charges.
192
- Setting properties to a blank string is now an error.
193
- * Attempting to set an object's id is now an error.
194
-
195
- === 1.8.4 2013-07-11
196
-
197
- * 1 major enhancement
198
- * Add support for new cards API (Stripe API version 2013-07-05)
199
-
200
- === 1.8.3 2013-05-06
201
-
202
- * 1 bugfix:
203
- * Fix handling of per-call API keys (github issue #67)
204
-
205
- === 1.8.2 2013-05-01
206
-
207
- * 3 minor enhancements:
208
- * Use to_sym instead of type checking for minor performance
209
- improvement (github issue #59)
210
- * Handle low-memory situations without throwing an exception (github
211
- issue #61)
212
- * Add an Customer#upcoming_invoice convenience method (github issue
213
- #65)
214
-
215
- * 1 bugfix:
216
- * Allow updating resources without first retrieving them (github
217
- issue #60)
218
-
219
- === 1.8.1 2013-04-19
220
-
221
- * 1 minor enhancement:
222
- * Add support for specifying an API key when retrieving an upcoming invoice
223
-
224
- === 1.8.0 2013-04-11
225
-
226
- * 1 major enhancement:
227
- * Add new Recipient resource
228
- * Allow Transfers to be createable
229
-
230
- === 1.7.11 2013-02-21
231
-
232
- * 1 minor enhancement
233
- * Add 'id' to the list of permanent attributes
234
-
235
- === 1.7.10 2013-02-01
236
-
237
- * 1 major enhancement
238
- * Add support for passing options when retrieving Stripe objects
239
- e.g., Stripe::Charge.retrieve({id:"foo", expand:["customer"]})
240
- Stripe::Charge("foo") is still supported as well
241
-
242
- === 1.7.9 2013-01-15
243
-
244
- * 1 major enhancement
245
- * Add support for setting a Stripe API version override.
246
-
247
- === 1.7.8 2012-11-21
248
-
249
- * 1 bugfix
250
- * Relax the version constraint on multi_json (github issue #44)
251
-
252
- === 1.7.7 2012-11-07
253
-
254
- * 1 minor enhancement:
255
- * Add support for updating charge disputes
256
-
257
- * 1 bugfix
258
- * Fix Account API resource bug
259
-
260
- === 1.7.6 2012-10-30
261
-
262
- * 1 major enhancement
263
- * Add support for creating invoices
264
-
265
- === 1.7.5 2012-10-25
266
-
267
- * 1 major enhancement
268
- * Add support for new API lists
269
-
270
- === 1.7.4 2012-10-08
271
-
272
- * 1 bugfix
273
- * Fix bug introduced in 1.7.3 calling API methods that take no
274
- arguments, like Stripe::Invoice#pay (github issue #42)
275
-
276
- === 1.7.3 2012-09-14
277
-
278
- * 2 bugfixes
279
- * Make sure that both keys and values of GET params are
280
- URL-encoded. NOTE: If you were previously URL-encoding values
281
- yourself, you may need to adjust your code.
282
- * URL-encode POST params directly, instead of allowing rest-client to
283
- do it to work around an unfortunate interaction with the hashery gem
284
- (github issue #38)
285
-
286
- === 1.7.2 2012-08-31
287
-
288
- * 1 major enhancement
289
- * Add support for new pay and update methods for Invoice objects
290
-
291
- === 1.7.1 2012-08-15
292
-
293
- * 1 major enhancement
294
- * Add new Account API resource
295
-
296
- === 1.7.0 2012-05-17
297
-
298
- * 3 major enhancements:
299
- * Switch from vendored stripe-json to multi_json for all JSON
300
- parsing and rendering. This should not impact programmatic usage
301
- of the library, but may cause small rendering differences from,
302
- e.g., StripeObject#inspect (github issue #22)
303
- * Add new delete_discount method to Customer objects
304
- * Add new Transfer API resource
305
-
306
- * 2 minor enhancements:
307
- * Switch from HTTP Basic auth to Bearer auth (Note: Stripe will
308
- support Basic auth for the indefinite future, but recommends
309
- Bearer auth when possible going forward)
310
- * Numerous test suite improvements
311
-
312
- === 1.6.3 2012-03-22
313
-
314
- * 1 bugfix:
315
- * Encode GET query strings ourselves instead of using rest-client to
316
- work around a bug
317
-
318
- === 1.6.2 2012-02-24
319
-
320
- * 1 bugfix:
321
- * Correct argument handling in StripeObject#as_json
322
-
323
- === 1.6.1 2012-02-22
324
-
325
- * 1 bugfix:
326
- * Fix StripeObject#inspect when ActiveSupport 3.0 is loaded
327
-
328
- === 1.6.0 2012-02-01
329
-
330
- * A whole bunch of releases between 1.5.0 and 1.6.0, but few changes, mainly
331
- the addition of:
332
- - plans
333
- - coupons
334
- - events
335
- - tokens
336
- * 1.6.0 also contains a new inspect/to_string implementation
337
-
338
- === 1.5.0 2011-05-09
339
-
340
- * 1 major enhancement:
341
- * Update for new RESTful API
342
-
343
- === 1.3.4 2011-01-07
344
-
345
- * 1 major enhancement:
346
- * Rename to Stripe
347
-
348
- === 1.2 2010-06-06
349
-
350
- * 1 major enhancement:
351
- * Support for the set_customer_subscription and delete_customer API methods
352
-
353
- === 1.1 2010-03-14
354
-
355
- * 1 major enhancement:
356
- * Support for recurring billing
357
-
358
- === 1.0 2010-01-05
359
-
360
- * 1 major enhancement:
361
- * Initial release
1
+ History.txt has been converted to a formal changelog. Please see CHANGELOG.md.