stripe 13.3.0.pre.beta.3 → 13.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +650 -1402
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/object_types.rb +0 -32
  6. data/lib/stripe/resources/account.rb +2 -232
  7. data/lib/stripe/resources/account_link.rb +0 -9
  8. data/lib/stripe/resources/account_session.rb +0 -103
  9. data/lib/stripe/resources/apple_pay_domain.rb +2 -20
  10. data/lib/stripe/resources/application_fee.rb +2 -36
  11. data/lib/stripe/resources/application_fee_refund.rb +0 -17
  12. data/lib/stripe/resources/apps/secret.rb +2 -24
  13. data/lib/stripe/resources/balance.rb +0 -59
  14. data/lib/stripe/resources/balance_transaction.rb +2 -36
  15. data/lib/stripe/resources/bank_account.rb +3 -61
  16. data/lib/stripe/resources/billing/alert.rb +2 -23
  17. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -25
  18. data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -50
  19. data/lib/stripe/resources/billing/credit_grant.rb +2 -46
  20. data/lib/stripe/resources/billing/meter.rb +2 -44
  21. data/lib/stripe/resources/billing/meter_event.rb +0 -15
  22. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
  23. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
  24. data/lib/stripe/resources/billing_portal/configuration.rb +2 -72
  25. data/lib/stripe/resources/billing_portal/session.rb +0 -61
  26. data/lib/stripe/resources/capability.rb +0 -38
  27. data/lib/stripe/resources/card.rb +1 -77
  28. data/lib/stripe/resources/cash_balance.rb +0 -14
  29. data/lib/stripe/resources/charge.rb +2 -471
  30. data/lib/stripe/resources/checkout/session.rb +2 -498
  31. data/lib/stripe/resources/climate/order.rb +2 -57
  32. data/lib/stripe/resources/climate/product.rb +2 -26
  33. data/lib/stripe/resources/climate/supplier.rb +2 -20
  34. data/lib/stripe/resources/confirmation_token.rb +0 -297
  35. data/lib/stripe/resources/country_spec.rb +2 -29
  36. data/lib/stripe/resources/coupon.rb +2 -46
  37. data/lib/stripe/resources/credit_note.rb +2 -93
  38. data/lib/stripe/resources/credit_note_line_item.rb +0 -46
  39. data/lib/stripe/resources/customer.rb +2 -95
  40. data/lib/stripe/resources/customer_balance_transaction.rb +0 -27
  41. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -72
  42. data/lib/stripe/resources/customer_session.rb +0 -34
  43. data/lib/stripe/resources/discount.rb +0 -29
  44. data/lib/stripe/resources/dispute.rb +2 -98
  45. data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -13
  46. data/lib/stripe/resources/entitlements/feature.rb +2 -17
  47. data/lib/stripe/resources/ephemeral_key.rb +0 -13
  48. data/lib/stripe/resources/event.rb +2 -46
  49. data/lib/stripe/resources/exchange_rate.rb +2 -9
  50. data/lib/stripe/resources/file.rb +2 -25
  51. data/lib/stripe/resources/file_link.rb +2 -21
  52. data/lib/stripe/resources/financial_connections/account.rb +2 -89
  53. data/lib/stripe/resources/financial_connections/account_owner.rb +0 -17
  54. data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -9
  55. data/lib/stripe/resources/financial_connections/session.rb +0 -49
  56. data/lib/stripe/resources/financial_connections/transaction.rb +2 -30
  57. data/lib/stripe/resources/forwarding/request.rb +2 -42
  58. data/lib/stripe/resources/funding_instructions.rb +0 -82
  59. data/lib/stripe/resources/identity/verification_report.rb +2 -94
  60. data/lib/stripe/resources/identity/verification_session.rb +2 -78
  61. data/lib/stripe/resources/invoice.rb +2 -420
  62. data/lib/stripe/resources/invoice_item.rb +2 -56
  63. data/lib/stripe/resources/invoice_line_item.rb +0 -83
  64. data/lib/stripe/resources/invoice_rendering_template.rb +2 -19
  65. data/lib/stripe/resources/issuing/authorization.rb +2 -131
  66. data/lib/stripe/resources/issuing/card.rb +2 -88
  67. data/lib/stripe/resources/issuing/cardholder.rb +2 -78
  68. data/lib/stripe/resources/issuing/dispute.rb +2 -67
  69. data/lib/stripe/resources/issuing/personalization_design.rb +2 -40
  70. data/lib/stripe/resources/issuing/physical_bundle.rb +2 -20
  71. data/lib/stripe/resources/issuing/token.rb +2 -48
  72. data/lib/stripe/resources/issuing/transaction.rb +2 -108
  73. data/lib/stripe/resources/line_item.rb +0 -50
  74. data/lib/stripe/resources/login_link.rb +0 -7
  75. data/lib/stripe/resources/mandate.rb +0 -78
  76. data/lib/stripe/resources/payment_intent.rb +2 -714
  77. data/lib/stripe/resources/payment_link.rb +2 -200
  78. data/lib/stripe/resources/payment_method.rb +2 -370
  79. data/lib/stripe/resources/payment_method_configuration.rb +2 -432
  80. data/lib/stripe/resources/payment_method_domain.rb +2 -59
  81. data/lib/stripe/resources/payout.rb +2 -58
  82. data/lib/stripe/resources/person.rb +0 -128
  83. data/lib/stripe/resources/plan.rb +2 -54
  84. data/lib/stripe/resources/price.rb +2 -79
  85. data/lib/stripe/resources/product.rb +2 -62
  86. data/lib/stripe/resources/product_feature.rb +0 -12
  87. data/lib/stripe/resources/promotion_code.rb +2 -37
  88. data/lib/stripe/resources/quote.rb +2 -358
  89. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -19
  90. data/lib/stripe/resources/radar/value_list.rb +2 -25
  91. data/lib/stripe/resources/radar/value_list_item.rb +2 -19
  92. data/lib/stripe/resources/refund.rb +2 -132
  93. data/lib/stripe/resources/reporting/report_run.rb +2 -31
  94. data/lib/stripe/resources/reporting/report_type.rb +2 -21
  95. data/lib/stripe/resources/reversal.rb +0 -21
  96. data/lib/stripe/resources/review.rb +2 -38
  97. data/lib/stripe/resources/setup_attempt.rb +2 -103
  98. data/lib/stripe/resources/setup_intent.rb +2 -160
  99. data/lib/stripe/resources/shipping_rate.rb +2 -44
  100. data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -28
  101. data/lib/stripe/resources/source.rb +0 -197
  102. data/lib/stripe/resources/source_transaction.rb +0 -48
  103. data/lib/stripe/resources/subscription.rb +2 -216
  104. data/lib/stripe/resources/subscription_item.rb +2 -48
  105. data/lib/stripe/resources/subscription_schedule.rb +2 -175
  106. data/lib/stripe/resources/tax/calculation.rb +0 -72
  107. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -33
  108. data/lib/stripe/resources/tax/registration.rb +2 -381
  109. data/lib/stripe/resources/tax/settings.rb +0 -33
  110. data/lib/stripe/resources/tax/transaction.rb +0 -68
  111. data/lib/stripe/resources/tax/transaction_line_item.rb +0 -30
  112. data/lib/stripe/resources/tax_code.rb +2 -11
  113. data/lib/stripe/resources/tax_id.rb +2 -32
  114. data/lib/stripe/resources/tax_rate.rb +2 -44
  115. data/lib/stripe/resources/terminal/configuration.rb +2 -109
  116. data/lib/stripe/resources/terminal/connection_token.rb +0 -7
  117. data/lib/stripe/resources/terminal/location.rb +2 -22
  118. data/lib/stripe/resources/terminal/reader.rb +2 -180
  119. data/lib/stripe/resources/test_helpers/test_clock.rb +2 -29
  120. data/lib/stripe/resources/token.rb +0 -29
  121. data/lib/stripe/resources/topup.rb +2 -35
  122. data/lib/stripe/resources/transfer.rb +2 -37
  123. data/lib/stripe/resources/treasury/credit_reversal.rb +2 -34
  124. data/lib/stripe/resources/treasury/debit_reversal.rb +2 -40
  125. data/lib/stripe/resources/treasury/financial_account.rb +2 -59
  126. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -91
  127. data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -68
  128. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -87
  129. data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -84
  130. data/lib/stripe/resources/treasury/received_credit.rb +2 -72
  131. data/lib/stripe/resources/treasury/received_debit.rb +2 -69
  132. data/lib/stripe/resources/treasury/transaction.rb +2 -44
  133. data/lib/stripe/resources/treasury/transaction_entry.rb +2 -36
  134. data/lib/stripe/resources/usage_record.rb +0 -13
  135. data/lib/stripe/resources/usage_record_summary.rb +0 -18
  136. data/lib/stripe/resources/v2/billing/meter_event.rb +0 -18
  137. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -20
  138. data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -14
  139. data/lib/stripe/resources/v2/event.rb +0 -21
  140. data/lib/stripe/resources/v2/event_destination.rb +0 -49
  141. data/lib/stripe/resources/webhook_endpoint.rb +2 -34
  142. data/lib/stripe/resources.rb +0 -31
  143. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  144. data/lib/stripe/services/financial_connections_service.rb +1 -2
  145. data/lib/stripe/services/invoice_service.rb +1 -44
  146. data/lib/stripe/services/issuing_service.rb +1 -5
  147. data/lib/stripe/services/payment_intent_service.rb +0 -37
  148. data/lib/stripe/services/quote_service.rb +1 -49
  149. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  150. data/lib/stripe/services/tax_service.rb +1 -3
  151. data/lib/stripe/services/terminal/reader_service.rb +0 -33
  152. data/lib/stripe/services/terminal_service.rb +1 -2
  153. data/lib/stripe/services/v1_services.rb +1 -8
  154. data/lib/stripe/services.rb +0 -25
  155. data/lib/stripe/stripe_client.rb +1 -1
  156. data/lib/stripe/stripe_configuration.rb +1 -3
  157. data/lib/stripe/stripe_object.rb +3 -8
  158. data/lib/stripe/util.rb +2 -8
  159. data/lib/stripe/version.rb +1 -1
  160. data/lib/stripe.rb +0 -45
  161. data/stripe.gemspec +1 -2
  162. metadata +4 -62
  163. data/lib/stripe/request_signing_authenticator.rb +0 -79
  164. data/lib/stripe/resources/account_notice.rb +0 -60
  165. data/lib/stripe/resources/application.rb +0 -20
  166. data/lib/stripe/resources/billing/alert_triggered.rb +0 -26
  167. data/lib/stripe/resources/billing/meter_error_report.rb +0 -44
  168. data/lib/stripe/resources/capital/financing_offer.rb +0 -94
  169. data/lib/stripe/resources/capital/financing_summary.rb +0 -32
  170. data/lib/stripe/resources/capital/financing_transaction.rb +0 -56
  171. data/lib/stripe/resources/connect_collection_transfer.rb +0 -24
  172. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -23
  173. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  174. data/lib/stripe/resources/financial_connections/institution.rb +0 -61
  175. data/lib/stripe/resources/gift_cards/card.rb +0 -96
  176. data/lib/stripe/resources/gift_cards/transaction.rb +0 -132
  177. data/lib/stripe/resources/invoice_payment.rb +0 -46
  178. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -145
  179. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -49
  180. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -43
  181. data/lib/stripe/resources/issuing/settlement.rb +0 -49
  182. data/lib/stripe/resources/margin.rb +0 -56
  183. data/lib/stripe/resources/order.rb +0 -322
  184. data/lib/stripe/resources/payment_attempt_record.rb +0 -100
  185. data/lib/stripe/resources/payment_record.rb +0 -188
  186. data/lib/stripe/resources/quote_line.rb +0 -136
  187. data/lib/stripe/resources/quote_preview_invoice.rb +0 -374
  188. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -170
  189. data/lib/stripe/resources/reserve_transaction.rb +0 -22
  190. data/lib/stripe/resources/source_mandate_notification.rb +0 -59
  191. data/lib/stripe/resources/tax/association.rb +0 -60
  192. data/lib/stripe/resources/tax/form.rb +0 -124
  193. data/lib/stripe/resources/tax_deducted_at_source.rb +0 -22
  194. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -30
  195. data/lib/stripe/resources/v2/amount.rb +0 -9
  196. data/lib/stripe/services/account_notice_service.rb +0 -39
  197. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  198. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  199. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  200. data/lib/stripe/services/capital_service.rb +0 -15
  201. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  202. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  203. data/lib/stripe/services/gift_cards/card_service.rb +0 -63
  204. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
  205. data/lib/stripe/services/gift_cards_service.rb +0 -14
  206. data/lib/stripe/services/invoice_payment_service.rb +0 -28
  207. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  208. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  209. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  210. data/lib/stripe/services/margin_service.rb +0 -50
  211. data/lib/stripe/services/order_line_item_service.rb +0 -17
  212. data/lib/stripe/services/order_service.rb +0 -78
  213. data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
  214. data/lib/stripe/services/payment_record_service.rb +0 -78
  215. data/lib/stripe/services/quote_line_service.rb +0 -17
  216. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  217. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  218. data/lib/stripe/services/tax/association_service.rb +0 -19
  219. data/lib/stripe/services/tax/form_service.rb +0 -37
  220. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
@@ -1,60 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Tax
6
- # A Tax Association exposes the Tax Transactions that Stripe attempted to create on your behalf based on the PaymentIntent input
7
- class Association < APIResource
8
- OBJECT_NAME = "tax.association"
9
- def self.object_name
10
- "tax.association"
11
- end
12
-
13
- class StatusDetails < Stripe::StripeObject
14
- class Committed < Stripe::StripeObject
15
- class Reversal < Stripe::StripeObject
16
- class StatusDetails < Stripe::StripeObject
17
- class Committed < Stripe::StripeObject
18
- attr_reader :transaction
19
- end
20
-
21
- class Errored < Stripe::StripeObject
22
- attr_reader :reason, :refund_id
23
- end
24
- attr_reader :committed, :errored
25
- end
26
- attr_reader :status, :status_details
27
- end
28
- attr_reader :reversals, :transaction
29
- end
30
-
31
- class Errored < Stripe::StripeObject
32
- attr_reader :reason
33
- end
34
- attr_reader :committed, :errored
35
- end
36
- # The [Tax Calculation](https://stripe.com/docs/api/tax/calculations/object) that was included in PaymentIntent.
37
- attr_reader :calculation
38
- # Unique identifier for the object.
39
- attr_reader :id
40
- # String representing the object's type. Objects of the same type share the same value.
41
- attr_reader :object
42
- # The [PaymentIntent](https://stripe.com/docs/api/payment_intents/object) that this Tax Association is tracking.
43
- attr_reader :payment_intent
44
- # Status of the Tax Association.
45
- attr_reader :status
46
- # Attribute for field status_details
47
- attr_reader :status_details
48
-
49
- # Finds a tax association object by PaymentIntent id.
50
- def self.find(params = {}, opts = {})
51
- request_stripe_object(
52
- method: :get,
53
- path: "/v1/tax/associations/find",
54
- params: params,
55
- opts: opts
56
- )
57
- end
58
- end
59
- end
60
- end
@@ -1,124 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Tax
6
- # Tax forms are legal documents which are delivered to one or more tax authorities for information reporting purposes.
7
- #
8
- # Related guide: [US tax reporting for Connect platforms](https://stripe.com/docs/connect/tax-reporting)
9
- class Form < APIResource
10
- extend Stripe::APIOperations::List
11
-
12
- OBJECT_NAME = "tax.form"
13
- def self.object_name
14
- "tax.form"
15
- end
16
-
17
- class AuSerr < Stripe::StripeObject
18
- attr_reader :reporting_period_end_date, :reporting_period_start_date
19
- end
20
-
21
- class CaMrdp < Stripe::StripeObject
22
- attr_reader :reporting_period_end_date, :reporting_period_start_date
23
- end
24
-
25
- class EuDac7 < Stripe::StripeObject
26
- attr_reader :reporting_period_end_date, :reporting_period_start_date
27
- end
28
-
29
- class FilingStatus < Stripe::StripeObject
30
- class Jurisdiction < Stripe::StripeObject
31
- attr_reader :country, :level, :state
32
- end
33
- attr_reader :effective_at, :jurisdiction, :value
34
- end
35
-
36
- class GbMrdp < Stripe::StripeObject
37
- attr_reader :reporting_period_end_date, :reporting_period_start_date
38
- end
39
-
40
- class NzMrdp < Stripe::StripeObject
41
- attr_reader :reporting_period_end_date, :reporting_period_start_date
42
- end
43
-
44
- class Payee < Stripe::StripeObject
45
- attr_reader :account, :external_reference, :type
46
- end
47
-
48
- class Us1099K < Stripe::StripeObject
49
- attr_reader :reporting_year
50
- end
51
-
52
- class Us1099Misc < Stripe::StripeObject
53
- attr_reader :reporting_year
54
- end
55
-
56
- class Us1099Nec < Stripe::StripeObject
57
- attr_reader :reporting_year
58
- end
59
- # Attribute for field au_serr
60
- attr_reader :au_serr
61
- # Attribute for field ca_mrdp
62
- attr_reader :ca_mrdp
63
- # The form that corrects this form, if any.
64
- attr_reader :corrected_by
65
- # Time at which the object was created. Measured in seconds since the Unix epoch.
66
- attr_reader :created
67
- # Attribute for field eu_dac7
68
- attr_reader :eu_dac7
69
- # A list of tax filing statuses. Note that a filing status will only be included if the form has been filed directly with the jurisdiction’s tax authority.
70
- attr_reader :filing_statuses
71
- # Attribute for field gb_mrdp
72
- attr_reader :gb_mrdp
73
- # Unique identifier for the object.
74
- attr_reader :id
75
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
76
- attr_reader :livemode
77
- # Attribute for field nz_mrdp
78
- attr_reader :nz_mrdp
79
- # String representing the object's type. Objects of the same type share the same value.
80
- attr_reader :object
81
- # Attribute for field payee
82
- attr_reader :payee
83
- # The type of the tax form. An additional hash is included on the tax form with a name matching this value. It contains additional information specific to the tax form type.
84
- attr_reader :type
85
- # Attribute for field us_1099_k
86
- attr_reader :us_1099_k
87
- # Attribute for field us_1099_misc
88
- attr_reader :us_1099_misc
89
- # Attribute for field us_1099_nec
90
- attr_reader :us_1099_nec
91
-
92
- # Returns a list of tax forms which were previously created. The tax forms are returned in sorted order, with the oldest tax forms appearing first.
93
- def self.list(filters = {}, opts = {})
94
- request_stripe_object(method: :get, path: "/v1/tax/forms", params: filters, opts: opts)
95
- end
96
-
97
- # Download the PDF for a tax form.
98
- def pdf(params = {}, opts = {}, &read_body_chunk_block)
99
- opts = { api_base: APIRequestor.active_requestor.config.uploads_base }.merge(opts)
100
- request_stream(
101
- method: :get,
102
- path: format("/v1/tax/forms/%<id>s/pdf", { id: CGI.escape(self["id"]) }),
103
- params: params,
104
- opts: opts,
105
- base_address: :files,
106
- &read_body_chunk_block
107
- )
108
- end
109
-
110
- # Download the PDF for a tax form.
111
- def self.pdf(id, params = {}, opts = {}, &read_body_chunk_block)
112
- opts = { api_base: APIRequestor.active_requestor.config.uploads_base }.merge(opts)
113
- execute_resource_request_stream(
114
- :get,
115
- format("/v1/tax/forms/%<id>s/pdf", { id: CGI.escape(id) }),
116
- :files,
117
- params,
118
- opts,
119
- &read_body_chunk_block
120
- )
121
- end
122
- end
123
- end
124
- end
@@ -1,22 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class TaxDeductedAtSource < APIResource
6
- OBJECT_NAME = "tax_deducted_at_source"
7
- def self.object_name
8
- "tax_deducted_at_source"
9
- end
10
-
11
- # Unique identifier for the object.
12
- attr_reader :id
13
- # String representing the object's type. Objects of the same type share the same value.
14
- attr_reader :object
15
- # The end of the invoicing period. This TDS applies to Stripe fees collected during this invoicing period.
16
- attr_reader :period_end
17
- # The start of the invoicing period. This TDS applies to Stripe fees collected during this invoicing period.
18
- attr_reader :period_start
19
- # The TAN that was supplied to Stripe when TDS was assessed
20
- attr_reader :tax_deduction_account_number
21
- end
22
- end
@@ -1,30 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Terminal
6
- # Returns data collected by Terminal readers. This data is only stored for 24 hours.
7
- class ReaderCollectedData < APIResource
8
- OBJECT_NAME = "terminal.reader_collected_data"
9
- def self.object_name
10
- "terminal.reader_collected_data"
11
- end
12
-
13
- class Magstripe < Stripe::StripeObject
14
- attr_reader :data
15
- end
16
- # Time at which the object was created. Measured in seconds since the Unix epoch.
17
- attr_reader :created
18
- # Unique identifier for the object.
19
- attr_reader :id
20
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
21
- attr_reader :livemode
22
- # The magstripe data collected by the reader.
23
- attr_reader :magstripe
24
- # String representing the object's type. Objects of the same type share the same value.
25
- attr_reader :object
26
- # The type of data collected by the reader.
27
- attr_reader :type
28
- end
29
- end
30
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Stripe
4
- module V2
5
- class Amount
6
- attr_reader :value, :currency
7
- end
8
- end
9
- end
@@ -1,39 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class AccountNoticeService < StripeService
6
- # Retrieves a list of AccountNotice objects. The objects are sorted in descending order by creation date, with the most-recently-created object appearing first.
7
- def list(params = {}, opts = {})
8
- request(
9
- method: :get,
10
- path: "/v1/account_notices",
11
- params: params,
12
- opts: opts,
13
- base_address: :api
14
- )
15
- end
16
-
17
- # Retrieves an AccountNotice object.
18
- def retrieve(account_notice, params = {}, opts = {})
19
- request(
20
- method: :get,
21
- path: format("/v1/account_notices/%<account_notice>s", { account_notice: CGI.escape(account_notice) }),
22
- params: params,
23
- opts: opts,
24
- base_address: :api
25
- )
26
- end
27
-
28
- # Updates an AccountNotice object.
29
- def update(account_notice, params = {}, opts = {})
30
- request(
31
- method: :post,
32
- path: format("/v1/account_notices/%<account_notice>s", { account_notice: CGI.escape(account_notice) }),
33
- params: params,
34
- opts: opts,
35
- base_address: :api
36
- )
37
- end
38
- end
39
- end
@@ -1,42 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Capital
6
- class FinancingOfferService < StripeService
7
- # Retrieves the financing offers available for Connected accounts that belong to your platform.
8
- def list(params = {}, opts = {})
9
- request(
10
- method: :get,
11
- path: "/v1/capital/financing_offers",
12
- params: params,
13
- opts: opts,
14
- base_address: :api
15
- )
16
- end
17
-
18
- # Acknowledges that platform has received and delivered the financing_offer to
19
- # the intended merchant recipient.
20
- def mark_delivered(financing_offer, params = {}, opts = {})
21
- request(
22
- method: :post,
23
- path: format("/v1/capital/financing_offers/%<financing_offer>s/mark_delivered", { financing_offer: CGI.escape(financing_offer) }),
24
- params: params,
25
- opts: opts,
26
- base_address: :api
27
- )
28
- end
29
-
30
- # Get the details of the financing offer
31
- def retrieve(financing_offer, params = {}, opts = {})
32
- request(
33
- method: :get,
34
- path: format("/v1/capital/financing_offers/%<financing_offer>s", { financing_offer: CGI.escape(financing_offer) }),
35
- params: params,
36
- opts: opts,
37
- base_address: :api
38
- )
39
- end
40
- end
41
- end
42
- end
@@ -1,19 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Capital
6
- class FinancingSummaryService < StripeService
7
- # Retrieve the financing state for the account that was authenticated in the request.
8
- def retrieve(params = {}, opts = {})
9
- request(
10
- method: :get,
11
- path: "/v1/capital/financing_summary",
12
- params: params,
13
- opts: opts,
14
- base_address: :api
15
- )
16
- end
17
- end
18
- end
19
- end
@@ -1,31 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Capital
6
- class FinancingTransactionService < StripeService
7
- # Returns a list of financing transactions. The transactions are returned in sorted order,
8
- # with the most recent transactions appearing first.
9
- def list(params = {}, opts = {})
10
- request(
11
- method: :get,
12
- path: "/v1/capital/financing_transactions",
13
- params: params,
14
- opts: opts,
15
- base_address: :api
16
- )
17
- end
18
-
19
- # Retrieves a financing transaction for a financing offer.
20
- def retrieve(financing_transaction, params = {}, opts = {})
21
- request(
22
- method: :get,
23
- path: format("/v1/capital/financing_transactions/%<financing_transaction>s", { financing_transaction: CGI.escape(financing_transaction) }),
24
- params: params,
25
- opts: opts,
26
- base_address: :api
27
- )
28
- end
29
- end
30
- end
31
- end
@@ -1,15 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class CapitalService < StripeService
6
- attr_reader :financing_offers, :financing_summary, :financing_transactions
7
-
8
- def initialize(requestor)
9
- super(requestor)
10
- @financing_offers = Stripe::Capital::FinancingOfferService.new(@requestor)
11
- @financing_summary = Stripe::Capital::FinancingSummaryService.new(@requestor)
12
- @financing_transactions = Stripe::Capital::FinancingTransactionService.new(@requestor)
13
- end
14
- end
15
- end
@@ -1,19 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module FinancialConnections
6
- class AccountInferredBalanceService < StripeService
7
- # Lists the recorded inferred balances for a Financial Connections Account.
8
- def list(account, params = {}, opts = {})
9
- request(
10
- method: :get,
11
- path: format("/v1/financial_connections/accounts/%<account>s/inferred_balances", { account: CGI.escape(account) }),
12
- params: params,
13
- opts: opts,
14
- base_address: :api
15
- )
16
- end
17
- end
18
- end
19
- end
@@ -1,30 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module FinancialConnections
6
- class InstitutionService < StripeService
7
- # Returns a list of Financial Connections Institution objects.
8
- def list(params = {}, opts = {})
9
- request(
10
- method: :get,
11
- path: "/v1/financial_connections/institutions",
12
- params: params,
13
- opts: opts,
14
- base_address: :api
15
- )
16
- end
17
-
18
- # Retrieves the details of a Financial Connections Institution.
19
- def retrieve(institution, params = {}, opts = {})
20
- request(
21
- method: :get,
22
- path: format("/v1/financial_connections/institutions/%<institution>s", { institution: CGI.escape(institution) }),
23
- params: params,
24
- opts: opts,
25
- base_address: :api
26
- )
27
- end
28
- end
29
- end
30
- end
@@ -1,63 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module GiftCards
6
- class CardService < StripeService
7
- # Creates a new gift card object.
8
- def create(params = {}, opts = {})
9
- request(
10
- method: :post,
11
- path: "/v1/gift_cards/cards",
12
- params: params,
13
- opts: opts,
14
- base_address: :api
15
- )
16
- end
17
-
18
- # List gift cards for an account
19
- def list(params = {}, opts = {})
20
- request(
21
- method: :get,
22
- path: "/v1/gift_cards/cards",
23
- params: params,
24
- opts: opts,
25
- base_address: :api
26
- )
27
- end
28
-
29
- # Retrieve a gift card by id
30
- def retrieve(id, params = {}, opts = {})
31
- request(
32
- method: :get,
33
- path: format("/v1/gift_cards/cards/%<id>s", { id: CGI.escape(id) }),
34
- params: params,
35
- opts: opts,
36
- base_address: :api
37
- )
38
- end
39
-
40
- # Update a gift card
41
- def update(id, params = {}, opts = {})
42
- request(
43
- method: :post,
44
- path: format("/v1/gift_cards/cards/%<id>s", { id: CGI.escape(id) }),
45
- params: params,
46
- opts: opts,
47
- base_address: :api
48
- )
49
- end
50
-
51
- # Validates a gift card code, returning the matching gift card object if it exists.
52
- def validate(params = {}, opts = {})
53
- request(
54
- method: :post,
55
- path: "/v1/gift_cards/cards/validate",
56
- params: params,
57
- opts: opts,
58
- base_address: :api
59
- )
60
- end
61
- end
62
- end
63
- end
@@ -1,74 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module GiftCards
6
- class TransactionService < StripeService
7
- # Cancel a gift card transaction
8
- def cancel(id, params = {}, opts = {})
9
- request(
10
- method: :post,
11
- path: format("/v1/gift_cards/transactions/%<id>s/cancel", { id: CGI.escape(id) }),
12
- params: params,
13
- opts: opts,
14
- base_address: :api
15
- )
16
- end
17
-
18
- # Confirm a gift card transaction
19
- def confirm(id, params = {}, opts = {})
20
- request(
21
- method: :post,
22
- path: format("/v1/gift_cards/transactions/%<id>s/confirm", { id: CGI.escape(id) }),
23
- params: params,
24
- opts: opts,
25
- base_address: :api
26
- )
27
- end
28
-
29
- # Create a gift card transaction
30
- def create(params = {}, opts = {})
31
- request(
32
- method: :post,
33
- path: "/v1/gift_cards/transactions",
34
- params: params,
35
- opts: opts,
36
- base_address: :api
37
- )
38
- end
39
-
40
- # List gift card transactions for a gift card
41
- def list(params = {}, opts = {})
42
- request(
43
- method: :get,
44
- path: "/v1/gift_cards/transactions",
45
- params: params,
46
- opts: opts,
47
- base_address: :api
48
- )
49
- end
50
-
51
- # Retrieves the gift card transaction.
52
- def retrieve(id, params = {}, opts = {})
53
- request(
54
- method: :get,
55
- path: format("/v1/gift_cards/transactions/%<id>s", { id: CGI.escape(id) }),
56
- params: params,
57
- opts: opts,
58
- base_address: :api
59
- )
60
- end
61
-
62
- # Update a gift card transaction
63
- def update(id, params = {}, opts = {})
64
- request(
65
- method: :post,
66
- path: format("/v1/gift_cards/transactions/%<id>s", { id: CGI.escape(id) }),
67
- params: params,
68
- opts: opts,
69
- base_address: :api
70
- )
71
- end
72
- end
73
- end
74
- end
@@ -1,14 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class GiftCardsService < StripeService
6
- attr_reader :cards, :transactions
7
-
8
- def initialize(requestor)
9
- super(requestor)
10
- @cards = Stripe::GiftCards::CardService.new(@requestor)
11
- @transactions = Stripe::GiftCards::TransactionService.new(@requestor)
12
- end
13
- end
14
- end
@@ -1,28 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- class InvoicePaymentService < StripeService
6
- # When retrieving an invoice, there is an includable payments property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of payments.
7
- def list(invoice, params = {}, opts = {})
8
- request(
9
- method: :get,
10
- path: format("/v1/invoices/%<invoice>s/payments", { invoice: CGI.escape(invoice) }),
11
- params: params,
12
- opts: opts,
13
- base_address: :api
14
- )
15
- end
16
-
17
- # Retrieves the invoice payment with the given ID.
18
- def retrieve(invoice, invoice_payment, params = {}, opts = {})
19
- request(
20
- method: :get,
21
- path: format("/v1/invoices/%<invoice>s/payments/%<invoice_payment>s", { invoice: CGI.escape(invoice), invoice_payment: CGI.escape(invoice_payment) }),
22
- params: params,
23
- opts: opts,
24
- base_address: :api
25
- )
26
- end
27
- end
28
- end