stripe 5.38.0 → 15.2.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 (708) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +742 -0
  3. data/CONTRIBUTING.md +25 -0
  4. data/Gemfile +12 -4
  5. data/Makefile +22 -0
  6. data/OPENAPI_VERSION +1 -0
  7. data/README.md +137 -27
  8. data/Rakefile +3 -6
  9. data/VERSION +1 -1
  10. data/examples/README.md +16 -0
  11. data/examples/example_template.rb +36 -0
  12. data/examples/meter_event_stream.rb +57 -0
  13. data/examples/thinevent_webhook_handler.rb +39 -0
  14. data/{bin → exe}/stripe-console +1 -1
  15. data/justfile +43 -0
  16. data/lib/data/ca-certificates.crt +1241 -1937
  17. data/lib/stripe/api_operations/create.rb +6 -2
  18. data/lib/stripe/api_operations/delete.rb +12 -7
  19. data/lib/stripe/api_operations/list.rb +6 -9
  20. data/lib/stripe/api_operations/nested_resource.rb +59 -31
  21. data/lib/stripe/api_operations/request.rb +30 -65
  22. data/lib/stripe/api_operations/save.rb +20 -10
  23. data/lib/stripe/api_operations/search.rb +21 -0
  24. data/lib/stripe/api_operations/singleton_save.rb +90 -0
  25. data/lib/stripe/api_requestor.rb +1136 -0
  26. data/lib/stripe/api_resource.rb +49 -34
  27. data/lib/stripe/api_resource_test_helpers.rb +53 -0
  28. data/lib/stripe/{resources/usage_record.rb → api_version.rb} +2 -2
  29. data/lib/stripe/connection_manager.rb +28 -11
  30. data/lib/stripe/errors.rb +11 -20
  31. data/lib/stripe/event_types.rb +15 -0
  32. data/lib/stripe/events/v1_billing_meter_error_report_triggered_event.rb +23 -0
  33. data/lib/stripe/events/v1_billing_meter_no_meter_found_event.rb +13 -0
  34. data/lib/stripe/events/v2_core_event_destination_ping_event.rb +21 -0
  35. data/lib/stripe/instrumentation.rb +37 -15
  36. data/lib/stripe/list_object.rb +5 -3
  37. data/lib/stripe/multipart_encoder.rb +7 -7
  38. data/lib/stripe/oauth.rb +14 -21
  39. data/lib/stripe/object_types.rb +157 -91
  40. data/lib/stripe/request_options.rb +129 -0
  41. data/lib/stripe/request_params.rb +24 -0
  42. data/lib/stripe/resources/account.rb +4854 -30
  43. data/lib/stripe/resources/account_link.rb +66 -0
  44. data/lib/stripe/resources/account_session.rb +868 -0
  45. data/lib/stripe/resources/alipay_account.rb +1 -1
  46. data/lib/stripe/resources/apple_pay_domain.rb +91 -0
  47. data/lib/stripe/resources/application.rb +20 -0
  48. data/lib/stripe/resources/application_fee.rb +96 -2
  49. data/lib/stripe/resources/application_fee_refund.rb +26 -2
  50. data/lib/stripe/resources/apps/secret.rb +196 -0
  51. data/lib/stripe/resources/balance.rb +178 -0
  52. data/lib/stripe/resources/balance_transaction.rb +124 -0
  53. data/lib/stripe/resources/bank_account.rb +137 -6
  54. data/lib/stripe/resources/billing/alert.rb +222 -0
  55. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  56. data/lib/stripe/resources/billing/credit_balance_summary.rb +54 -0
  57. data/lib/stripe/resources/billing/credit_balance_transaction.rb +133 -0
  58. data/lib/stripe/resources/billing/credit_grant.rb +307 -0
  59. data/lib/stripe/resources/billing/meter.rb +254 -0
  60. data/lib/stripe/resources/billing/meter_event.rb +61 -0
  61. data/lib/stripe/resources/billing/meter_event_adjustment.rb +69 -0
  62. data/lib/stripe/resources/billing/meter_event_summary.rb +32 -0
  63. data/lib/stripe/resources/billing_portal/configuration.rb +587 -0
  64. data/lib/stripe/resources/billing_portal/session.rb +298 -0
  65. data/lib/stripe/resources/capability.rb +91 -2
  66. data/lib/stripe/resources/card.rb +111 -3
  67. data/lib/stripe/resources/cash_balance.rb +43 -0
  68. data/lib/stripe/resources/charge.rb +1682 -2
  69. data/lib/stripe/resources/checkout/session.rb +3666 -2
  70. data/lib/stripe/resources/climate/order.rb +234 -0
  71. data/lib/stripe/resources/climate/product.rb +74 -0
  72. data/lib/stripe/resources/climate/supplier.rb +71 -0
  73. data/lib/stripe/resources/confirmation_token.rb +1498 -0
  74. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  75. data/lib/stripe/resources/country_spec.rb +68 -0
  76. data/lib/stripe/resources/coupon.rb +236 -0
  77. data/lib/stripe/resources/credit_note.rb +709 -9
  78. data/lib/stripe/resources/credit_note_line_item.rb +71 -0
  79. data/lib/stripe/resources/customer.rb +1015 -16
  80. data/lib/stripe/resources/customer_balance_transaction.rb +38 -1
  81. data/lib/stripe/resources/customer_cash_balance_transaction.rb +124 -0
  82. data/lib/stripe/resources/customer_session.rb +188 -0
  83. data/lib/stripe/resources/discount.rb +37 -0
  84. data/lib/stripe/resources/dispute.rb +650 -2
  85. data/lib/stripe/resources/entitlements/active_entitlement.rb +63 -0
  86. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  87. data/lib/stripe/resources/entitlements/feature.rb +130 -0
  88. data/lib/stripe/resources/ephemeral_key.rb +44 -0
  89. data/lib/stripe/resources/event.rb +130 -0
  90. data/lib/stripe/resources/exchange_rate.rb +58 -0
  91. data/lib/stripe/resources/file.rb +139 -15
  92. data/lib/stripe/resources/file_link.rb +129 -0
  93. data/lib/stripe/resources/financial_connections/account.rb +363 -0
  94. data/lib/stripe/resources/financial_connections/account_owner.rb +31 -0
  95. data/lib/stripe/resources/financial_connections/account_ownership.rb +23 -0
  96. data/lib/stripe/resources/financial_connections/session.rb +121 -0
  97. data/lib/stripe/resources/financial_connections/transaction.rb +118 -0
  98. data/lib/stripe/resources/forwarding/request.rb +208 -0
  99. data/lib/stripe/resources/funding_instructions.rb +332 -0
  100. data/lib/stripe/resources/identity/verification_report.rb +287 -0
  101. data/lib/stripe/resources/identity/verification_session.rb +474 -4
  102. data/lib/stripe/resources/invoice.rb +3525 -17
  103. data/lib/stripe/resources/invoice_item.rb +453 -0
  104. data/lib/stripe/resources/invoice_line_item.rb +372 -1
  105. data/lib/stripe/resources/invoice_payment.rb +112 -0
  106. data/lib/stripe/resources/invoice_rendering_template.rb +120 -0
  107. data/lib/stripe/resources/issuing/authorization.rb +1313 -4
  108. data/lib/stripe/resources/issuing/card.rb +785 -4
  109. data/lib/stripe/resources/issuing/cardholder.rb +684 -0
  110. data/lib/stripe/resources/issuing/dispute.rb +828 -2
  111. data/lib/stripe/resources/issuing/personalization_design.rb +395 -0
  112. data/lib/stripe/resources/issuing/physical_bundle.rb +80 -0
  113. data/lib/stripe/resources/issuing/token.rb +198 -0
  114. data/lib/stripe/resources/issuing/transaction.rb +991 -0
  115. data/lib/stripe/resources/line_item.rb +51 -0
  116. data/lib/stripe/resources/login_link.rb +12 -0
  117. data/lib/stripe/resources/mandate.rb +146 -0
  118. data/lib/stripe/resources/payment_intent.rb +8876 -6
  119. data/lib/stripe/resources/payment_link.rb +1692 -0
  120. data/lib/stripe/resources/payment_method.rb +1570 -4
  121. data/lib/stripe/resources/payment_method_configuration.rb +3189 -0
  122. data/lib/stripe/resources/payment_method_domain.rb +236 -0
  123. data/lib/stripe/resources/payout.rb +271 -4
  124. data/lib/stripe/resources/person.rb +295 -1
  125. data/lib/stripe/resources/plan.rb +352 -0
  126. data/lib/stripe/resources/price.rb +642 -0
  127. data/lib/stripe/resources/product.rb +534 -0
  128. data/lib/stripe/resources/product_feature.rb +25 -0
  129. data/lib/stripe/resources/promotion_code.rb +237 -0
  130. data/lib/stripe/resources/quote.rb +1015 -38
  131. data/lib/stripe/resources/radar/early_fraud_warning.rb +85 -0
  132. data/lib/stripe/resources/radar/value_list.rb +171 -0
  133. data/lib/stripe/resources/radar/value_list_item.rb +131 -0
  134. data/lib/stripe/resources/refund.rb +494 -0
  135. data/lib/stripe/resources/reporting/report_run.rb +172 -0
  136. data/lib/stripe/resources/reporting/report_type.rb +48 -1
  137. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  138. data/lib/stripe/resources/reversal.rb +38 -2
  139. data/lib/stripe/resources/review.rb +122 -2
  140. data/lib/stripe/resources/setup_attempt.rb +380 -0
  141. data/lib/stripe/resources/setup_intent.rb +3432 -4
  142. data/lib/stripe/resources/shipping_rate.rb +287 -0
  143. data/lib/stripe/resources/sigma/scheduled_query_run.rb +62 -0
  144. data/lib/stripe/resources/source.rb +1250 -10
  145. data/lib/stripe/resources/source_mandate_notification.rb +66 -0
  146. data/lib/stripe/resources/source_transaction.rb +93 -0
  147. data/lib/stripe/resources/subscription.rb +1871 -3
  148. data/lib/stripe/resources/subscription_item.rb +399 -10
  149. data/lib/stripe/resources/subscription_schedule.rb +1455 -4
  150. data/lib/stripe/resources/tax/calculation.rb +430 -0
  151. data/lib/stripe/resources/tax/calculation_line_item.rb +71 -0
  152. data/lib/stripe/resources/tax/registration.rb +2667 -0
  153. data/lib/stripe/resources/tax/settings.rb +134 -0
  154. data/lib/stripe/resources/tax/transaction.rb +314 -0
  155. data/lib/stripe/resources/tax/transaction_line_item.rb +44 -0
  156. data/lib/stripe/resources/tax_code.rb +35 -0
  157. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  158. data/lib/stripe/resources/tax_id.rb +144 -11
  159. data/lib/stripe/resources/tax_rate.rb +217 -0
  160. data/lib/stripe/resources/terminal/configuration.rb +1328 -0
  161. data/lib/stripe/resources/terminal/connection_token.rb +34 -0
  162. data/lib/stripe/resources/terminal/location.rb +222 -0
  163. data/lib/stripe/resources/terminal/reader.rb +886 -0
  164. data/lib/stripe/resources/test_helpers/test_clock.rb +156 -0
  165. data/lib/stripe/resources/token.rb +1249 -0
  166. data/lib/stripe/resources/topup.rb +204 -2
  167. data/lib/stripe/resources/transfer.rb +173 -6
  168. data/lib/stripe/resources/treasury/credit_reversal.rb +120 -0
  169. data/lib/stripe/resources/treasury/debit_reversal.rb +131 -0
  170. data/lib/stripe/resources/treasury/financial_account.rb +833 -0
  171. data/lib/stripe/resources/treasury/financial_account_features.rb +204 -0
  172. data/lib/stripe/resources/treasury/inbound_transfer.rb +356 -0
  173. data/lib/stripe/resources/treasury/outbound_payment.rb +638 -0
  174. data/lib/stripe/resources/treasury/outbound_transfer.rb +493 -0
  175. data/lib/stripe/resources/treasury/received_credit.rb +284 -0
  176. data/lib/stripe/resources/treasury/received_debit.rb +243 -0
  177. data/lib/stripe/resources/treasury/transaction.rb +193 -0
  178. data/lib/stripe/resources/treasury/transaction_entry.rb +178 -0
  179. data/lib/stripe/resources/v2/amount.rb +9 -0
  180. data/lib/stripe/resources/v2/billing/meter_event.rb +34 -0
  181. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +36 -0
  182. data/lib/stripe/resources/v2/billing/meter_event_session.rb +29 -0
  183. data/lib/stripe/resources/v2/event.rb +41 -0
  184. data/lib/stripe/resources/v2/event_destination.rb +73 -0
  185. data/lib/stripe/resources/webhook_endpoint.rb +167 -0
  186. data/lib/stripe/resources.rb +70 -12
  187. data/lib/stripe/search_result_object.rb +89 -0
  188. data/lib/stripe/services/account_capability_service.rb +71 -0
  189. data/lib/stripe/services/account_external_account_service.rb +317 -0
  190. data/lib/stripe/services/account_link_service.rb +63 -0
  191. data/lib/stripe/services/account_login_link_service.rb +28 -0
  192. data/lib/stripe/services/account_person_service.rb +1019 -0
  193. data/lib/stripe/services/account_service.rb +4171 -0
  194. data/lib/stripe/services/account_session_service.rb +569 -0
  195. data/lib/stripe/services/apple_pay_domain_service.rb +100 -0
  196. data/lib/stripe/services/application_fee_refund_service.rb +114 -0
  197. data/lib/stripe/services/application_fee_service.rb +92 -0
  198. data/lib/stripe/services/apps/secret_service.rb +168 -0
  199. data/lib/stripe/services/apps_service.rb +13 -0
  200. data/lib/stripe/services/balance_service.rb +21 -0
  201. data/lib/stripe/services/balance_transaction_service.rb +101 -0
  202. data/lib/stripe/services/billing/alert_service.rb +187 -0
  203. data/lib/stripe/services/billing/credit_balance_summary_service.rb +67 -0
  204. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +70 -0
  205. data/lib/stripe/services/billing/credit_grant_service.rb +240 -0
  206. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +45 -0
  207. data/lib/stripe/services/billing/meter_event_service.rb +40 -0
  208. data/lib/stripe/services/billing/meter_event_summary_service.rb +58 -0
  209. data/lib/stripe/services/billing/meter_service.rb +211 -0
  210. data/lib/stripe/services/billing_portal/configuration_service.rb +496 -0
  211. data/lib/stripe/services/billing_portal/session_service.rb +192 -0
  212. data/lib/stripe/services/billing_portal_service.rb +14 -0
  213. data/lib/stripe/services/billing_service.rb +20 -0
  214. data/lib/stripe/services/charge_service.rb +471 -0
  215. data/lib/stripe/services/checkout/session_line_item_service.rb +37 -0
  216. data/lib/stripe/services/checkout/session_service.rb +2495 -0
  217. data/lib/stripe/services/checkout_service.rb +13 -0
  218. data/lib/stripe/services/climate/order_service.rb +170 -0
  219. data/lib/stripe/services/climate/product_service.rb +57 -0
  220. data/lib/stripe/services/climate/supplier_service.rb +57 -0
  221. data/lib/stripe/services/climate_service.rb +15 -0
  222. data/lib/stripe/services/confirmation_token_service.rb +26 -0
  223. data/lib/stripe/services/country_spec_service.rb +55 -0
  224. data/lib/stripe/services/coupon_service.rb +202 -0
  225. data/lib/stripe/services/credit_note_line_item_service.rb +35 -0
  226. data/lib/stripe/services/credit_note_preview_lines_service.rb +169 -0
  227. data/lib/stripe/services/credit_note_service.rb +457 -0
  228. data/lib/stripe/services/customer_balance_transaction_service.rb +113 -0
  229. data/lib/stripe/services/customer_cash_balance_service.rb +57 -0
  230. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +55 -0
  231. data/lib/stripe/services/customer_funding_instructions_service.rb +61 -0
  232. data/lib/stripe/services/customer_payment_method_service.rb +68 -0
  233. data/lib/stripe/services/customer_payment_source_service.rb +255 -0
  234. data/lib/stripe/services/customer_service.rb +664 -0
  235. data/lib/stripe/services/customer_session_service.rb +113 -0
  236. data/lib/stripe/services/customer_tax_id_service.rb +94 -0
  237. data/lib/stripe/services/dispute_service.rb +422 -0
  238. data/lib/stripe/services/entitlements/active_entitlement_service.rb +66 -0
  239. data/lib/stripe/services/entitlements/feature_service.rb +128 -0
  240. data/lib/stripe/services/entitlements_service.rb +14 -0
  241. data/lib/stripe/services/ephemeral_key_service.rb +64 -0
  242. data/lib/stripe/services/event_service.rb +87 -0
  243. data/lib/stripe/services/exchange_rate_service.rb +55 -0
  244. data/lib/stripe/services/file_link_service.rb +132 -0
  245. data/lib/stripe/services/file_service.rb +124 -0
  246. data/lib/stripe/services/financial_connections/account_owner_service.rb +46 -0
  247. data/lib/stripe/services/financial_connections/account_service.rb +177 -0
  248. data/lib/stripe/services/financial_connections/session_service.rb +98 -0
  249. data/lib/stripe/services/financial_connections/transaction_service.rb +100 -0
  250. data/lib/stripe/services/financial_connections_service.rb +15 -0
  251. data/lib/stripe/services/forwarding/request_service.rb +147 -0
  252. data/lib/stripe/services/forwarding_service.rb +13 -0
  253. data/lib/stripe/services/identity/verification_report_service.rb +95 -0
  254. data/lib/stripe/services/identity/verification_session_service.rb +337 -0
  255. data/lib/stripe/services/identity_service.rb +14 -0
  256. data/lib/stripe/services/invoice_item_service.rb +394 -0
  257. data/lib/stripe/services/invoice_line_item_service.rb +252 -0
  258. data/lib/stripe/services/invoice_payment_service.rb +83 -0
  259. data/lib/stripe/services/invoice_rendering_template_service.rb +101 -0
  260. data/lib/stripe/services/invoice_service.rb +2900 -0
  261. data/lib/stripe/services/issuing/authorization_service.rb +169 -0
  262. data/lib/stripe/services/issuing/card_service.rb +507 -0
  263. data/lib/stripe/services/issuing/cardholder_service.rb +577 -0
  264. data/lib/stripe/services/issuing/dispute_service.rb +696 -0
  265. data/lib/stripe/services/issuing/personalization_design_service.rb +245 -0
  266. data/lib/stripe/services/issuing/physical_bundle_service.rb +70 -0
  267. data/lib/stripe/services/issuing/token_service.rb +114 -0
  268. data/lib/stripe/services/issuing/transaction_service.rb +118 -0
  269. data/lib/stripe/services/issuing_service.rb +20 -0
  270. data/lib/stripe/services/mandate_service.rb +26 -0
  271. data/lib/stripe/services/oauth_service.rb +63 -0
  272. data/lib/stripe/services/payment_intent_service.rb +7202 -0
  273. data/lib/stripe/services/payment_link_line_item_service.rb +35 -0
  274. data/lib/stripe/services/payment_link_service.rb +1333 -0
  275. data/lib/stripe/services/payment_method_configuration_service.rb +2306 -0
  276. data/lib/stripe/services/payment_method_domain_service.rb +142 -0
  277. data/lib/stripe/services/payment_method_service.rb +843 -0
  278. data/lib/stripe/services/payout_service.rb +225 -0
  279. data/lib/stripe/services/plan_service.rb +297 -0
  280. data/lib/stripe/services/price_service.rb +545 -0
  281. data/lib/stripe/services/product_feature_service.rb +91 -0
  282. data/lib/stripe/services/product_service.rb +494 -0
  283. data/lib/stripe/services/promotion_code_service.rb +228 -0
  284. data/lib/stripe/services/quote_computed_upfront_line_items_service.rb +35 -0
  285. data/lib/stripe/services/quote_line_item_service.rb +35 -0
  286. data/lib/stripe/services/quote_service.rb +703 -0
  287. data/lib/stripe/services/radar/early_fraud_warning_service.rb +93 -0
  288. data/lib/stripe/services/radar/value_list_item_service.rb +130 -0
  289. data/lib/stripe/services/radar/value_list_service.rb +165 -0
  290. data/lib/stripe/services/radar_service.rb +15 -0
  291. data/lib/stripe/services/refund_service.rb +200 -0
  292. data/lib/stripe/services/reporting/report_run_service.rb +147 -0
  293. data/lib/stripe/services/reporting/report_type_service.rb +48 -0
  294. data/lib/stripe/services/reporting_service.rb +14 -0
  295. data/lib/stripe/services/review_service.rb +89 -0
  296. data/lib/stripe/services/setup_attempt_service.rb +68 -0
  297. data/lib/stripe/services/setup_intent_service.rb +3107 -0
  298. data/lib/stripe/services/shipping_rate_service.rb +250 -0
  299. data/lib/stripe/services/sigma/scheduled_query_run_service.rb +57 -0
  300. data/lib/stripe/services/sigma_service.rb +13 -0
  301. data/lib/stripe/services/source_service.rb +665 -0
  302. data/lib/stripe/services/source_transaction_service.rb +35 -0
  303. data/lib/stripe/services/subscription_item_service.rb +372 -0
  304. data/lib/stripe/services/subscription_schedule_service.rb +1224 -0
  305. data/lib/stripe/services/subscription_service.rb +1590 -0
  306. data/lib/stripe/services/tax/calculation_line_item_service.rb +37 -0
  307. data/lib/stripe/services/tax/calculation_service.rb +246 -0
  308. data/lib/stripe/services/tax/registration_service.rb +1774 -0
  309. data/lib/stripe/services/tax/settings_service.rb +104 -0
  310. data/lib/stripe/services/tax/transaction_line_item_service.rb +37 -0
  311. data/lib/stripe/services/tax/transaction_service.rb +159 -0
  312. data/lib/stripe/services/tax_code_service.rb +49 -0
  313. data/lib/stripe/services/tax_id_service.rb +116 -0
  314. data/lib/stripe/services/tax_rate_service.rb +193 -0
  315. data/lib/stripe/services/tax_service.rb +16 -0
  316. data/lib/stripe/services/terminal/configuration_service.rb +1059 -0
  317. data/lib/stripe/services/terminal/connection_token_service.rb +31 -0
  318. data/lib/stripe/services/terminal/location_service.rb +207 -0
  319. data/lib/stripe/services/terminal/reader_service.rb +488 -0
  320. data/lib/stripe/services/terminal_service.rb +16 -0
  321. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +655 -0
  322. data/lib/stripe/services/test_helpers/customer_service.rb +37 -0
  323. data/lib/stripe/services/test_helpers/issuing/authorization_service.rb +832 -0
  324. data/lib/stripe/services/test_helpers/issuing/card_service.rb +110 -0
  325. data/lib/stripe/services/test_helpers/issuing/personalization_design_service.rb +84 -0
  326. data/lib/stripe/services/test_helpers/issuing/transaction_service.rb +675 -0
  327. data/lib/stripe/services/test_helpers/issuing_service.rb +19 -0
  328. data/lib/stripe/services/test_helpers/refund_service.rb +28 -0
  329. data/lib/stripe/services/test_helpers/terminal/reader_service.rb +108 -0
  330. data/lib/stripe/services/test_helpers/terminal_service.rb +15 -0
  331. data/lib/stripe/services/test_helpers/test_clock_service.rb +119 -0
  332. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +81 -0
  333. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +141 -0
  334. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +141 -0
  335. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +81 -0
  336. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +81 -0
  337. data/lib/stripe/services/test_helpers/treasury_service.rb +19 -0
  338. data/lib/stripe/services/test_helpers_service.rb +19 -0
  339. data/lib/stripe/services/token_service.rb +1224 -0
  340. data/lib/stripe/services/topup_service.rb +191 -0
  341. data/lib/stripe/services/transfer_reversal_service.rb +122 -0
  342. data/lib/stripe/services/transfer_service.rb +166 -0
  343. data/lib/stripe/services/treasury/credit_reversal_service.rb +100 -0
  344. data/lib/stripe/services/treasury/debit_reversal_service.rb +104 -0
  345. data/lib/stripe/services/treasury/financial_account_features_service.rb +196 -0
  346. data/lib/stripe/services/treasury/financial_account_service.rb +554 -0
  347. data/lib/stripe/services/treasury/inbound_transfer_service.rb +140 -0
  348. data/lib/stripe/services/treasury/outbound_payment_service.rb +310 -0
  349. data/lib/stripe/services/treasury/outbound_transfer_service.rb +176 -0
  350. data/lib/stripe/services/treasury/received_credit_service.rb +82 -0
  351. data/lib/stripe/services/treasury/received_debit_service.rb +70 -0
  352. data/lib/stripe/services/treasury/transaction_entry_service.rb +117 -0
  353. data/lib/stripe/services/treasury/transaction_service.rb +125 -0
  354. data/lib/stripe/services/treasury_service.rb +22 -0
  355. data/lib/stripe/services/v1_services.rb +90 -0
  356. data/lib/stripe/services/v2/billing/meter_event_adjustment_service.rb +44 -0
  357. data/lib/stripe/services/v2/billing/meter_event_service.rb +46 -0
  358. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +23 -0
  359. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +56 -0
  360. data/lib/stripe/services/v2/billing_service.rb +18 -0
  361. data/lib/stripe/services/v2/core/event_destination_service.rb +235 -0
  362. data/lib/stripe/services/v2/core/event_service.rb +48 -0
  363. data/lib/stripe/services/v2/core_service.rb +16 -0
  364. data/lib/stripe/services/v2_services.rb +14 -0
  365. data/lib/stripe/services/webhook_endpoint_service.rb +156 -0
  366. data/lib/stripe/services.rb +180 -0
  367. data/lib/stripe/singleton_api_resource.rb +3 -3
  368. data/lib/stripe/stripe_client.rb +56 -1021
  369. data/lib/stripe/stripe_configuration.rb +63 -42
  370. data/lib/stripe/stripe_object.rb +75 -39
  371. data/lib/stripe/stripe_response.rb +1 -3
  372. data/lib/stripe/stripe_service.rb +32 -0
  373. data/lib/stripe/thin_event.rb +37 -0
  374. data/lib/stripe/util.rb +161 -39
  375. data/lib/stripe/v2_list_object.rb +84 -0
  376. data/lib/stripe/version.rb +1 -1
  377. data/lib/stripe/webhook.rb +3 -2
  378. data/lib/stripe.rb +44 -1
  379. data/rbi/stripe/resources/account.rbi +4926 -0
  380. data/rbi/stripe/resources/account_link.rbi +74 -0
  381. data/rbi/stripe/resources/account_session.rbi +1013 -0
  382. data/rbi/stripe/resources/apple_pay_domain.rbi +88 -0
  383. data/rbi/stripe/resources/application.rbi +20 -0
  384. data/rbi/stripe/resources/application_fee.rbi +118 -0
  385. data/rbi/stripe/resources/application_fee_refund.rbi +37 -0
  386. data/rbi/stripe/resources/apps/secret.rbi +195 -0
  387. data/rbi/stripe/resources/balance.rbi +235 -0
  388. data/rbi/stripe/resources/balance_transaction.rbi +147 -0
  389. data/rbi/stripe/resources/bank_account.rbi +127 -0
  390. data/rbi/stripe/resources/billing/alert.rbi +201 -0
  391. data/rbi/stripe/resources/billing/alert_triggered.rbi +28 -0
  392. data/rbi/stripe/resources/billing/credit_balance_summary.rbi +63 -0
  393. data/rbi/stripe/resources/billing/credit_balance_transaction.rbi +147 -0
  394. data/rbi/stripe/resources/billing/credit_grant.rbi +291 -0
  395. data/rbi/stripe/resources/billing/meter.rbi +226 -0
  396. data/rbi/stripe/resources/billing/meter_event.rbi +64 -0
  397. data/rbi/stripe/resources/billing/meter_event_adjustment.rbi +64 -0
  398. data/rbi/stripe/resources/billing/meter_event_summary.rbi +35 -0
  399. data/rbi/stripe/resources/billing_portal/configuration.rbi +645 -0
  400. data/rbi/stripe/resources/billing_portal/session.rbi +345 -0
  401. data/rbi/stripe/resources/capability.rbi +125 -0
  402. data/rbi/stripe/resources/card.rbi +125 -0
  403. data/rbi/stripe/resources/cash_balance.rbi +32 -0
  404. data/rbi/stripe/resources/charge.rbi +2069 -0
  405. data/rbi/stripe/resources/checkout/session.rbi +4004 -0
  406. data/rbi/stripe/resources/climate/order.rbi +245 -0
  407. data/rbi/stripe/resources/climate/product.rbi +75 -0
  408. data/rbi/stripe/resources/climate/supplier.rbi +72 -0
  409. data/rbi/stripe/resources/confirmation_token.rbi +1807 -0
  410. data/rbi/stripe/resources/connect_collection_transfer.rbi +26 -0
  411. data/rbi/stripe/resources/country_spec.rbi +85 -0
  412. data/rbi/stripe/resources/coupon.rbi +250 -0
  413. data/rbi/stripe/resources/credit_note.rbi +752 -0
  414. data/rbi/stripe/resources/credit_note_line_item.rbi +101 -0
  415. data/rbi/stripe/resources/customer.rbi +1005 -0
  416. data/rbi/stripe/resources/customer_balance_transaction.rbi +56 -0
  417. data/rbi/stripe/resources/customer_cash_balance_transaction.rbi +151 -0
  418. data/rbi/stripe/resources/customer_session.rbi +200 -0
  419. data/rbi/stripe/resources/discount.rbi +53 -0
  420. data/rbi/stripe/resources/dispute.rbi +761 -0
  421. data/rbi/stripe/resources/entitlements/active_entitlement.rbi +58 -0
  422. data/rbi/stripe/resources/entitlements/active_entitlement_summary.rbi +23 -0
  423. data/rbi/stripe/resources/entitlements/feature.rbi +117 -0
  424. data/rbi/stripe/resources/ephemeral_key.rbi +44 -0
  425. data/rbi/stripe/resources/event.rbi +149 -0
  426. data/rbi/stripe/resources/exchange_rate.rbi +66 -0
  427. data/rbi/stripe/resources/file.rbi +143 -0
  428. data/rbi/stripe/resources/file_link.rbi +141 -0
  429. data/rbi/stripe/resources/financial_connections/account.rbi +339 -0
  430. data/rbi/stripe/resources/financial_connections/account_owner.rbi +35 -0
  431. data/rbi/stripe/resources/financial_connections/account_ownership.rbi +23 -0
  432. data/rbi/stripe/resources/financial_connections/session.rbi +123 -0
  433. data/rbi/stripe/resources/financial_connections/transaction.rbi +124 -0
  434. data/rbi/stripe/resources/forwarding/request.rbi +216 -0
  435. data/rbi/stripe/resources/funding_instructions.rbi +437 -0
  436. data/rbi/stripe/resources/identity/verification_report.rbi +360 -0
  437. data/rbi/stripe/resources/identity/verification_session.rbi +526 -0
  438. data/rbi/stripe/resources/invoice.rbi +3812 -0
  439. data/rbi/stripe/resources/invoice_item.rbi +473 -0
  440. data/rbi/stripe/resources/invoice_line_item.rbi +432 -0
  441. data/rbi/stripe/resources/invoice_payment.rbi +121 -0
  442. data/rbi/stripe/resources/invoice_rendering_template.rbi +104 -0
  443. data/rbi/stripe/resources/issuing/authorization.rbi +1283 -0
  444. data/rbi/stripe/resources/issuing/card.rbi +741 -0
  445. data/rbi/stripe/resources/issuing/cardholder.rbi +744 -0
  446. data/rbi/stripe/resources/issuing/dispute.rbi +913 -0
  447. data/rbi/stripe/resources/issuing/personalization_design.rbi +338 -0
  448. data/rbi/stripe/resources/issuing/physical_bundle.rbi +79 -0
  449. data/rbi/stripe/resources/issuing/token.rbi +226 -0
  450. data/rbi/stripe/resources/issuing/transaction.rbi +1061 -0
  451. data/rbi/stripe/resources/line_item.rbi +72 -0
  452. data/rbi/stripe/resources/login_link.rbi +19 -0
  453. data/rbi/stripe/resources/mandate.rbi +187 -0
  454. data/rbi/stripe/resources/payment_intent.rbi +9647 -0
  455. data/rbi/stripe/resources/payment_link.rbi +1801 -0
  456. data/rbi/stripe/resources/payment_method.rbi +1761 -0
  457. data/rbi/stripe/resources/payment_method_configuration.rbi +3550 -0
  458. data/rbi/stripe/resources/payment_method_domain.rbi +228 -0
  459. data/rbi/stripe/resources/payout.rbi +300 -0
  460. data/rbi/stripe/resources/person.rbi +401 -0
  461. data/rbi/stripe/resources/plan.rbi +371 -0
  462. data/rbi/stripe/resources/price.rbi +694 -0
  463. data/rbi/stripe/resources/product.rbi +555 -0
  464. data/rbi/stripe/resources/product_feature.rbi +26 -0
  465. data/rbi/stripe/resources/promotion_code.rbi +261 -0
  466. data/rbi/stripe/resources/quote.rbi +1126 -0
  467. data/rbi/stripe/resources/radar/early_fraud_warning.rbi +98 -0
  468. data/rbi/stripe/resources/radar/value_list.rbi +168 -0
  469. data/rbi/stripe/resources/radar/value_list_item.rbi +129 -0
  470. data/rbi/stripe/resources/refund.rbi +523 -0
  471. data/rbi/stripe/resources/reporting/report_run.rbi +191 -0
  472. data/rbi/stripe/resources/reporting/report_type.rbi +57 -0
  473. data/rbi/stripe/resources/reserve_transaction.rbi +23 -0
  474. data/rbi/stripe/resources/reversal.rbi +51 -0
  475. data/rbi/stripe/resources/review.rbi +154 -0
  476. data/rbi/stripe/resources/setup_attempt.rbi +477 -0
  477. data/rbi/stripe/resources/setup_intent.rbi +3655 -0
  478. data/rbi/stripe/resources/shipping_rate.rbi +305 -0
  479. data/rbi/stripe/resources/sigma/scheduled_query_run.rbi +75 -0
  480. data/rbi/stripe/resources/source.rbi +1496 -0
  481. data/rbi/stripe/resources/source_mandate_notification.rbi +77 -0
  482. data/rbi/stripe/resources/source_transaction.rbi +127 -0
  483. data/rbi/stripe/resources/subscription.rbi +2027 -0
  484. data/rbi/stripe/resources/subscription_item.rbi +404 -0
  485. data/rbi/stripe/resources/subscription_schedule.rbi +1623 -0
  486. data/rbi/stripe/resources/tax/calculation.rbi +478 -0
  487. data/rbi/stripe/resources/tax/calculation_line_item.rbi +91 -0
  488. data/rbi/stripe/resources/tax/registration.rbi +2713 -0
  489. data/rbi/stripe/resources/tax/settings.rbi +141 -0
  490. data/rbi/stripe/resources/tax/transaction.rbi +351 -0
  491. data/rbi/stripe/resources/tax/transaction_line_item.rbi +54 -0
  492. data/rbi/stripe/resources/tax_code.rbi +44 -0
  493. data/rbi/stripe/resources/tax_deducted_at_source.rbi +23 -0
  494. data/rbi/stripe/resources/tax_id.rbi +165 -0
  495. data/rbi/stripe/resources/tax_rate.rbi +239 -0
  496. data/rbi/stripe/resources/terminal/configuration.rbi +1386 -0
  497. data/rbi/stripe/resources/terminal/connection_token.rbi +37 -0
  498. data/rbi/stripe/resources/terminal/location.rbi +222 -0
  499. data/rbi/stripe/resources/terminal/reader.rbi +847 -0
  500. data/rbi/stripe/resources/test_helpers/test_clock.rbi +132 -0
  501. data/rbi/stripe/resources/token.rbi +1283 -0
  502. data/rbi/stripe/resources/topup.rbi +222 -0
  503. data/rbi/stripe/resources/transfer.rbi +199 -0
  504. data/rbi/stripe/resources/treasury/credit_reversal.rbi +119 -0
  505. data/rbi/stripe/resources/treasury/debit_reversal.rbi +131 -0
  506. data/rbi/stripe/resources/treasury/financial_account.rbi +865 -0
  507. data/rbi/stripe/resources/treasury/financial_account_features.rbi +260 -0
  508. data/rbi/stripe/resources/treasury/inbound_transfer.rbi +295 -0
  509. data/rbi/stripe/resources/treasury/outbound_payment.rbi +592 -0
  510. data/rbi/stripe/resources/treasury/outbound_transfer.rbi +431 -0
  511. data/rbi/stripe/resources/treasury/received_credit.rbi +302 -0
  512. data/rbi/stripe/resources/treasury/received_debit.rbi +256 -0
  513. data/rbi/stripe/resources/treasury/transaction.rbi +215 -0
  514. data/rbi/stripe/resources/treasury/transaction_entry.rbi +192 -0
  515. data/rbi/stripe/resources/v2/amount.rbi +14 -0
  516. data/rbi/stripe/resources/v2/billing/meter_event.rbi +37 -0
  517. data/rbi/stripe/resources/v2/billing/meter_event_adjustment.rbi +41 -0
  518. data/rbi/stripe/resources/v2/billing/meter_event_session.rbi +31 -0
  519. data/rbi/stripe/resources/v2/event.rbi +48 -0
  520. data/rbi/stripe/resources/v2/event_destination.rbi +91 -0
  521. data/rbi/stripe/resources/webhook_endpoint.rbi +168 -0
  522. data/rbi/stripe/services/account_capability_service.rbi +51 -0
  523. data/rbi/stripe/services/account_external_account_service.rbi +304 -0
  524. data/rbi/stripe/services/account_link_service.rbi +58 -0
  525. data/rbi/stripe/services/account_login_link_service.rbi +22 -0
  526. data/rbi/stripe/services/account_person_service.rbi +1011 -0
  527. data/rbi/stripe/services/account_service.rbi +4213 -0
  528. data/rbi/stripe/services/account_session_service.rbi +646 -0
  529. data/rbi/stripe/services/apple_pay_domain_service.rbi +76 -0
  530. data/rbi/stripe/services/application_fee_refund_service.rbi +93 -0
  531. data/rbi/stripe/services/application_fee_service.rbi +78 -0
  532. data/rbi/stripe/services/apps/secret_service.rbi +151 -0
  533. data/{lib/stripe/resources/usage_record_summary.rb → rbi/stripe/services/apps_service.rbi} +4 -3
  534. data/rbi/stripe/services/balance_service.rbi +21 -0
  535. data/rbi/stripe/services/balance_transaction_service.rbi +93 -0
  536. data/rbi/stripe/services/billing/alert_service.rbi +152 -0
  537. data/rbi/stripe/services/billing/credit_balance_summary_service.rbi +68 -0
  538. data/rbi/stripe/services/billing/credit_balance_transaction_service.rbi +59 -0
  539. data/rbi/stripe/services/billing/credit_grant_service.rbi +211 -0
  540. data/rbi/stripe/services/billing/meter_event_adjustment_service.rbi +42 -0
  541. data/rbi/stripe/services/billing/meter_event_service.rbi +42 -0
  542. data/rbi/stripe/services/billing/meter_event_summary_service.rbi +54 -0
  543. data/rbi/stripe/services/billing/meter_service.rbi +163 -0
  544. data/rbi/stripe/services/billing_portal/configuration_service.rbi +511 -0
  545. data/rbi/stripe/services/billing_portal/session_service.rbi +204 -0
  546. data/rbi/stripe/services/billing_portal_service.rbi +10 -0
  547. data/rbi/stripe/services/billing_service.rbi +15 -0
  548. data/rbi/stripe/services/charge_service.rbi +448 -0
  549. data/rbi/stripe/services/checkout/session_line_item_service.rbi +33 -0
  550. data/rbi/stripe/services/checkout/session_service.rbi +2614 -0
  551. data/rbi/stripe/services/checkout_service.rbi +9 -0
  552. data/rbi/stripe/services/climate/order_service.rbi +142 -0
  553. data/rbi/stripe/services/climate/product_service.rbi +46 -0
  554. data/rbi/stripe/services/climate/supplier_service.rbi +46 -0
  555. data/rbi/stripe/services/climate_service.rbi +11 -0
  556. data/rbi/stripe/services/confirmation_token_service.rbi +20 -0
  557. data/rbi/stripe/services/country_spec_service.rbi +44 -0
  558. data/rbi/stripe/services/coupon_service.rbi +194 -0
  559. data/rbi/stripe/services/credit_note_line_item_service.rbi +31 -0
  560. data/rbi/stripe/services/credit_note_preview_lines_service.rbi +167 -0
  561. data/rbi/stripe/services/credit_note_service.rbi +415 -0
  562. data/rbi/stripe/services/customer_balance_transaction_service.rbi +92 -0
  563. data/rbi/stripe/services/customer_cash_balance_service.rbi +45 -0
  564. data/rbi/stripe/services/customer_cash_balance_transaction_service.rbi +44 -0
  565. data/rbi/stripe/services/customer_funding_instructions_service.rbi +59 -0
  566. data/rbi/stripe/services/customer_payment_method_service.rbi +57 -0
  567. data/rbi/stripe/services/customer_payment_source_service.rbi +232 -0
  568. data/rbi/stripe/services/customer_service.rbi +647 -0
  569. data/rbi/stripe/services/customer_session_service.rbi +116 -0
  570. data/rbi/stripe/services/customer_tax_id_service.rbi +70 -0
  571. data/rbi/stripe/services/dispute_service.rbi +424 -0
  572. data/rbi/stripe/services/entitlements/active_entitlement_service.rbi +55 -0
  573. data/rbi/stripe/services/entitlements/feature_service.rbi +107 -0
  574. data/rbi/stripe/services/entitlements_service.rbi +10 -0
  575. data/rbi/stripe/services/ephemeral_key_service.rbi +53 -0
  576. data/rbi/stripe/services/event_service.rbi +83 -0
  577. data/rbi/stripe/services/exchange_rate_service.rbi +44 -0
  578. data/rbi/stripe/services/file_link_service.rbi +124 -0
  579. data/rbi/stripe/services/file_service.rbi +116 -0
  580. data/rbi/stripe/services/financial_connections/account_owner_service.rbi +42 -0
  581. data/rbi/stripe/services/financial_connections/account_service.rbi +133 -0
  582. data/rbi/stripe/services/financial_connections/session_service.rbi +88 -0
  583. data/rbi/stripe/services/financial_connections/transaction_service.rbi +92 -0
  584. data/rbi/stripe/services/financial_connections_service.rbi +11 -0
  585. data/rbi/stripe/services/forwarding/request_service.rbi +134 -0
  586. data/rbi/stripe/services/forwarding_service.rbi +9 -0
  587. data/rbi/stripe/services/identity/verification_report_service.rbi +87 -0
  588. data/rbi/stripe/services/identity/verification_session_service.rbi +323 -0
  589. data/rbi/stripe/services/identity_service.rbi +10 -0
  590. data/rbi/stripe/services/invoice_item_service.rbi +366 -0
  591. data/rbi/stripe/services/invoice_line_item_service.rbi +259 -0
  592. data/rbi/stripe/services/invoice_payment_service.rbi +71 -0
  593. data/rbi/stripe/services/invoice_rendering_template_service.rbi +82 -0
  594. data/rbi/stripe/services/invoice_service.rbi +2981 -0
  595. data/rbi/stripe/services/issuing/authorization_service.rbi +146 -0
  596. data/rbi/stripe/services/issuing/card_service.rbi +495 -0
  597. data/rbi/stripe/services/issuing/cardholder_service.rbi +587 -0
  598. data/rbi/stripe/services/issuing/dispute_service.rbi +707 -0
  599. data/rbi/stripe/services/issuing/personalization_design_service.rbi +243 -0
  600. data/rbi/stripe/services/issuing/physical_bundle_service.rbi +59 -0
  601. data/rbi/stripe/services/issuing/token_service.rbi +99 -0
  602. data/rbi/stripe/services/issuing/transaction_service.rbi +105 -0
  603. data/rbi/stripe/services/issuing_service.rbi +16 -0
  604. data/rbi/stripe/services/mandate_service.rbi +20 -0
  605. data/rbi/stripe/services/payment_intent_service.rbi +7659 -0
  606. data/rbi/stripe/services/payment_link_line_item_service.rbi +31 -0
  607. data/rbi/stripe/services/payment_link_service.rbi +1352 -0
  608. data/rbi/stripe/services/payment_method_configuration_service.rbi +2487 -0
  609. data/rbi/stripe/services/payment_method_domain_service.rbi +112 -0
  610. data/rbi/stripe/services/payment_method_service.rbi +776 -0
  611. data/rbi/stripe/services/payout_service.rbi +205 -0
  612. data/rbi/stripe/services/plan_service.rbi +282 -0
  613. data/rbi/stripe/services/price_service.rbi +546 -0
  614. data/rbi/stripe/services/product_feature_service.rbi +67 -0
  615. data/rbi/stripe/services/product_service.rbi +477 -0
  616. data/rbi/stripe/services/promotion_code_service.rbi +214 -0
  617. data/rbi/stripe/services/quote_computed_upfront_line_items_service.rbi +31 -0
  618. data/rbi/stripe/services/quote_line_item_service.rbi +31 -0
  619. data/rbi/stripe/services/quote_service.rbi +686 -0
  620. data/rbi/stripe/services/radar/early_fraud_warning_service.rbi +85 -0
  621. data/rbi/stripe/services/radar/value_list_item_service.rbi +109 -0
  622. data/rbi/stripe/services/radar/value_list_service.rbi +141 -0
  623. data/rbi/stripe/services/radar_service.rbi +11 -0
  624. data/rbi/stripe/services/refund_service.rbi +185 -0
  625. data/rbi/stripe/services/reporting/report_run_service.rbi +135 -0
  626. data/rbi/stripe/services/reporting/report_type_service.rbi +35 -0
  627. data/rbi/stripe/services/reporting_service.rbi +10 -0
  628. data/rbi/stripe/services/review_service.rbi +84 -0
  629. data/rbi/stripe/services/setup_attempt_service.rbi +65 -0
  630. data/rbi/stripe/services/setup_intent_service.rbi +3391 -0
  631. data/rbi/stripe/services/shipping_rate_service.rbi +241 -0
  632. data/rbi/stripe/services/sigma/scheduled_query_run_service.rbi +46 -0
  633. data/rbi/stripe/services/sigma_service.rbi +9 -0
  634. data/rbi/stripe/services/source_service.rbi +663 -0
  635. data/rbi/stripe/services/source_transaction_service.rbi +31 -0
  636. data/rbi/stripe/services/subscription_item_service.rbi +350 -0
  637. data/rbi/stripe/services/subscription_schedule_service.rbi +1290 -0
  638. data/rbi/stripe/services/subscription_service.rbi +1648 -0
  639. data/rbi/stripe/services/tax/calculation_line_item_service.rbi +33 -0
  640. data/rbi/stripe/services/tax/calculation_service.rbi +234 -0
  641. data/rbi/stripe/services/tax/registration_service.rbi +1845 -0
  642. data/rbi/stripe/services/tax/settings_service.rbi +93 -0
  643. data/rbi/stripe/services/tax/transaction_line_item_service.rbi +33 -0
  644. data/rbi/stripe/services/tax/transaction_service.rbi +146 -0
  645. data/rbi/stripe/services/tax_code_service.rbi +44 -0
  646. data/rbi/stripe/services/tax_id_service.rbi +110 -0
  647. data/rbi/stripe/services/tax_rate_service.rbi +185 -0
  648. data/rbi/stripe/services/tax_service.rbi +12 -0
  649. data/rbi/stripe/services/terminal/configuration_service.rbi +1118 -0
  650. data/rbi/stripe/services/terminal/connection_token_service.rbi +25 -0
  651. data/rbi/stripe/services/terminal/location_service.rbi +182 -0
  652. data/rbi/stripe/services/terminal/reader_service.rbi +455 -0
  653. data/rbi/stripe/services/terminal_service.rbi +12 -0
  654. data/rbi/stripe/services/test_helpers/confirmation_token_service.rbi +739 -0
  655. data/rbi/stripe/services/test_helpers/customer_service.rbi +33 -0
  656. data/rbi/stripe/services/test_helpers/issuing/authorization_service.rbi +848 -0
  657. data/rbi/stripe/services/test_helpers/issuing/card_service.rbi +76 -0
  658. data/rbi/stripe/services/test_helpers/issuing/personalization_design_service.rbi +69 -0
  659. data/rbi/stripe/services/test_helpers/issuing/transaction_service.rbi +711 -0
  660. data/rbi/stripe/services/test_helpers/issuing_service.rbi +14 -0
  661. data/rbi/stripe/services/test_helpers/refund_service.rbi +22 -0
  662. data/rbi/stripe/services/test_helpers/terminal/reader_service.rbi +93 -0
  663. data/rbi/stripe/services/test_helpers/terminal_service.rbi +11 -0
  664. data/rbi/stripe/services/test_helpers/test_clock_service.rbi +90 -0
  665. data/rbi/stripe/services/test_helpers/treasury/inbound_transfer_service.rbi +64 -0
  666. data/rbi/stripe/services/test_helpers/treasury/outbound_payment_service.rbi +125 -0
  667. data/rbi/stripe/services/test_helpers/treasury/outbound_transfer_service.rbi +125 -0
  668. data/rbi/stripe/services/test_helpers/treasury/received_credit_service.rbi +87 -0
  669. data/rbi/stripe/services/test_helpers/treasury/received_debit_service.rbi +87 -0
  670. data/rbi/stripe/services/test_helpers/treasury_service.rbi +15 -0
  671. data/rbi/stripe/services/test_helpers_service.rbi +15 -0
  672. data/rbi/stripe/services/token_service.rbi +1257 -0
  673. data/rbi/stripe/services/topup_service.rbi +176 -0
  674. data/rbi/stripe/services/transfer_reversal_service.rbi +101 -0
  675. data/rbi/stripe/services/transfer_service.rbi +152 -0
  676. data/rbi/stripe/services/treasury/credit_reversal_service.rbi +84 -0
  677. data/rbi/stripe/services/treasury/debit_reversal_service.rbi +88 -0
  678. data/rbi/stripe/services/treasury/financial_account_features_service.rbi +198 -0
  679. data/rbi/stripe/services/treasury/financial_account_service.rbi +562 -0
  680. data/rbi/stripe/services/treasury/inbound_transfer_service.rbi +117 -0
  681. data/rbi/stripe/services/treasury/outbound_payment_service.rbi +304 -0
  682. data/rbi/stripe/services/treasury/outbound_transfer_service.rbi +157 -0
  683. data/rbi/stripe/services/treasury/received_credit_service.rbi +72 -0
  684. data/rbi/stripe/services/treasury/received_debit_service.rbi +59 -0
  685. data/rbi/stripe/services/treasury/transaction_entry_service.rbi +111 -0
  686. data/rbi/stripe/services/treasury/transaction_service.rbi +122 -0
  687. data/rbi/stripe/services/treasury_service.rbi +18 -0
  688. data/rbi/stripe/services/v1_services.rbi +77 -0
  689. data/rbi/stripe/services/v2/billing/meter_event_adjustment_service.rbi +39 -0
  690. data/rbi/stripe/services/v2/billing/meter_event_service.rbi +42 -0
  691. data/rbi/stripe/services/v2/billing/meter_event_session_service.rbi +18 -0
  692. data/rbi/stripe/services/v2/billing/meter_event_stream_service.rbi +55 -0
  693. data/rbi/stripe/services/v2/billing_service.rbi +14 -0
  694. data/rbi/stripe/services/v2/core/event_destination_service.rbi +192 -0
  695. data/rbi/stripe/services/v2/core/event_service.rbi +36 -0
  696. data/rbi/stripe/services/v2/core_service.rbi +12 -0
  697. data/rbi/stripe/services/v2_services.rbi +10 -0
  698. data/rbi/stripe/services/webhook_endpoint_service.rbi +129 -0
  699. data/stripe.gemspec +10 -7
  700. metadata +599 -18
  701. data/lib/stripe/resources/bitcoin_receiver.rb +0 -24
  702. data/lib/stripe/resources/bitcoin_transaction.rb +0 -16
  703. data/lib/stripe/resources/issuing/card_details.rb +0 -9
  704. data/lib/stripe/resources/order.rb +0 -33
  705. data/lib/stripe/resources/order_return.rb +0 -10
  706. data/lib/stripe/resources/recipient.rb +0 -14
  707. data/lib/stripe/resources/sku.rb +0 -13
  708. data/lib/stripe/resources/three_d_secure.rb +0 -14
@@ -0,0 +1,1328 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Terminal
6
+ # A Configurations object represents how features should be configured for terminal readers.
7
+ class Configuration < APIResource
8
+ extend Stripe::APIOperations::Create
9
+ include Stripe::APIOperations::Delete
10
+ extend Stripe::APIOperations::List
11
+ include Stripe::APIOperations::Save
12
+
13
+ OBJECT_NAME = "terminal.configuration"
14
+ def self.object_name
15
+ "terminal.configuration"
16
+ end
17
+
18
+ class BbposWiseposE < Stripe::StripeObject
19
+ # A File ID representing an image to display on the reader
20
+ attr_reader :splashscreen
21
+ end
22
+
23
+ class Offline < Stripe::StripeObject
24
+ # Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
25
+ attr_reader :enabled
26
+ end
27
+
28
+ class RebootWindow < Stripe::StripeObject
29
+ # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
30
+ attr_reader :end_hour
31
+ # Integer between 0 to 23 that represents the start hour of the reboot time window.
32
+ attr_reader :start_hour
33
+ end
34
+
35
+ class StripeS700 < Stripe::StripeObject
36
+ # A File ID representing an image to display on the reader
37
+ attr_reader :splashscreen
38
+ end
39
+
40
+ class Tipping < Stripe::StripeObject
41
+ class Aud < Stripe::StripeObject
42
+ # Fixed amounts displayed when collecting a tip
43
+ attr_reader :fixed_amounts
44
+ # Percentages displayed when collecting a tip
45
+ attr_reader :percentages
46
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
47
+ attr_reader :smart_tip_threshold
48
+ end
49
+
50
+ class Cad < Stripe::StripeObject
51
+ # Fixed amounts displayed when collecting a tip
52
+ attr_reader :fixed_amounts
53
+ # Percentages displayed when collecting a tip
54
+ attr_reader :percentages
55
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
56
+ attr_reader :smart_tip_threshold
57
+ end
58
+
59
+ class Chf < Stripe::StripeObject
60
+ # Fixed amounts displayed when collecting a tip
61
+ attr_reader :fixed_amounts
62
+ # Percentages displayed when collecting a tip
63
+ attr_reader :percentages
64
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
65
+ attr_reader :smart_tip_threshold
66
+ end
67
+
68
+ class Czk < Stripe::StripeObject
69
+ # Fixed amounts displayed when collecting a tip
70
+ attr_reader :fixed_amounts
71
+ # Percentages displayed when collecting a tip
72
+ attr_reader :percentages
73
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
74
+ attr_reader :smart_tip_threshold
75
+ end
76
+
77
+ class Dkk < Stripe::StripeObject
78
+ # Fixed amounts displayed when collecting a tip
79
+ attr_reader :fixed_amounts
80
+ # Percentages displayed when collecting a tip
81
+ attr_reader :percentages
82
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
83
+ attr_reader :smart_tip_threshold
84
+ end
85
+
86
+ class Eur < Stripe::StripeObject
87
+ # Fixed amounts displayed when collecting a tip
88
+ attr_reader :fixed_amounts
89
+ # Percentages displayed when collecting a tip
90
+ attr_reader :percentages
91
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
92
+ attr_reader :smart_tip_threshold
93
+ end
94
+
95
+ class Gbp < Stripe::StripeObject
96
+ # Fixed amounts displayed when collecting a tip
97
+ attr_reader :fixed_amounts
98
+ # Percentages displayed when collecting a tip
99
+ attr_reader :percentages
100
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
101
+ attr_reader :smart_tip_threshold
102
+ end
103
+
104
+ class Hkd < Stripe::StripeObject
105
+ # Fixed amounts displayed when collecting a tip
106
+ attr_reader :fixed_amounts
107
+ # Percentages displayed when collecting a tip
108
+ attr_reader :percentages
109
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
110
+ attr_reader :smart_tip_threshold
111
+ end
112
+
113
+ class Jpy < Stripe::StripeObject
114
+ # Fixed amounts displayed when collecting a tip
115
+ attr_reader :fixed_amounts
116
+ # Percentages displayed when collecting a tip
117
+ attr_reader :percentages
118
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
119
+ attr_reader :smart_tip_threshold
120
+ end
121
+
122
+ class Myr < Stripe::StripeObject
123
+ # Fixed amounts displayed when collecting a tip
124
+ attr_reader :fixed_amounts
125
+ # Percentages displayed when collecting a tip
126
+ attr_reader :percentages
127
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
128
+ attr_reader :smart_tip_threshold
129
+ end
130
+
131
+ class Nok < Stripe::StripeObject
132
+ # Fixed amounts displayed when collecting a tip
133
+ attr_reader :fixed_amounts
134
+ # Percentages displayed when collecting a tip
135
+ attr_reader :percentages
136
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
137
+ attr_reader :smart_tip_threshold
138
+ end
139
+
140
+ class Nzd < Stripe::StripeObject
141
+ # Fixed amounts displayed when collecting a tip
142
+ attr_reader :fixed_amounts
143
+ # Percentages displayed when collecting a tip
144
+ attr_reader :percentages
145
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
146
+ attr_reader :smart_tip_threshold
147
+ end
148
+
149
+ class Pln < Stripe::StripeObject
150
+ # Fixed amounts displayed when collecting a tip
151
+ attr_reader :fixed_amounts
152
+ # Percentages displayed when collecting a tip
153
+ attr_reader :percentages
154
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
155
+ attr_reader :smart_tip_threshold
156
+ end
157
+
158
+ class Sek < Stripe::StripeObject
159
+ # Fixed amounts displayed when collecting a tip
160
+ attr_reader :fixed_amounts
161
+ # Percentages displayed when collecting a tip
162
+ attr_reader :percentages
163
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
164
+ attr_reader :smart_tip_threshold
165
+ end
166
+
167
+ class Sgd < Stripe::StripeObject
168
+ # Fixed amounts displayed when collecting a tip
169
+ attr_reader :fixed_amounts
170
+ # Percentages displayed when collecting a tip
171
+ attr_reader :percentages
172
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
173
+ attr_reader :smart_tip_threshold
174
+ end
175
+
176
+ class Usd < Stripe::StripeObject
177
+ # Fixed amounts displayed when collecting a tip
178
+ attr_reader :fixed_amounts
179
+ # Percentages displayed when collecting a tip
180
+ attr_reader :percentages
181
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
182
+ attr_reader :smart_tip_threshold
183
+ end
184
+ # Attribute for field aud
185
+ attr_reader :aud
186
+ # Attribute for field cad
187
+ attr_reader :cad
188
+ # Attribute for field chf
189
+ attr_reader :chf
190
+ # Attribute for field czk
191
+ attr_reader :czk
192
+ # Attribute for field dkk
193
+ attr_reader :dkk
194
+ # Attribute for field eur
195
+ attr_reader :eur
196
+ # Attribute for field gbp
197
+ attr_reader :gbp
198
+ # Attribute for field hkd
199
+ attr_reader :hkd
200
+ # Attribute for field jpy
201
+ attr_reader :jpy
202
+ # Attribute for field myr
203
+ attr_reader :myr
204
+ # Attribute for field nok
205
+ attr_reader :nok
206
+ # Attribute for field nzd
207
+ attr_reader :nzd
208
+ # Attribute for field pln
209
+ attr_reader :pln
210
+ # Attribute for field sek
211
+ attr_reader :sek
212
+ # Attribute for field sgd
213
+ attr_reader :sgd
214
+ # Attribute for field usd
215
+ attr_reader :usd
216
+ end
217
+
218
+ class VerifoneP400 < Stripe::StripeObject
219
+ # A File ID representing an image to display on the reader
220
+ attr_reader :splashscreen
221
+ end
222
+
223
+ class Wifi < Stripe::StripeObject
224
+ class EnterpriseEapPeap < Stripe::StripeObject
225
+ # A File ID representing a PEM file containing the server certificate
226
+ attr_reader :ca_certificate_file
227
+ # Password for connecting to the WiFi network
228
+ attr_reader :password
229
+ # Name of the WiFi network
230
+ attr_reader :ssid
231
+ # Username for connecting to the WiFi network
232
+ attr_reader :username
233
+ end
234
+
235
+ class EnterpriseEapTls < Stripe::StripeObject
236
+ # A File ID representing a PEM file containing the server certificate
237
+ attr_reader :ca_certificate_file
238
+ # A File ID representing a PEM file containing the client certificate
239
+ attr_reader :client_certificate_file
240
+ # A File ID representing a PEM file containing the client RSA private key
241
+ attr_reader :private_key_file
242
+ # Password for the private key file
243
+ attr_reader :private_key_file_password
244
+ # Name of the WiFi network
245
+ attr_reader :ssid
246
+ end
247
+
248
+ class PersonalPsk < Stripe::StripeObject
249
+ # Password for connecting to the WiFi network
250
+ attr_reader :password
251
+ # Name of the WiFi network
252
+ attr_reader :ssid
253
+ end
254
+ # Attribute for field enterprise_eap_peap
255
+ attr_reader :enterprise_eap_peap
256
+ # Attribute for field enterprise_eap_tls
257
+ attr_reader :enterprise_eap_tls
258
+ # Attribute for field personal_psk
259
+ attr_reader :personal_psk
260
+ # Security type of the WiFi network. The hash with the corresponding name contains the credentials for this security type.
261
+ attr_reader :type
262
+ end
263
+
264
+ class DeleteParams < Stripe::RequestParams; end
265
+
266
+ class UpdateParams < Stripe::RequestParams
267
+ class BbposWiseposE < Stripe::RequestParams
268
+ # A File ID representing an image to display on the reader
269
+ attr_accessor :splashscreen
270
+
271
+ def initialize(splashscreen: nil)
272
+ @splashscreen = splashscreen
273
+ end
274
+ end
275
+
276
+ class Offline < Stripe::RequestParams
277
+ # Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
278
+ attr_accessor :enabled
279
+
280
+ def initialize(enabled: nil)
281
+ @enabled = enabled
282
+ end
283
+ end
284
+
285
+ class RebootWindow < Stripe::RequestParams
286
+ # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
287
+ attr_accessor :end_hour
288
+ # Integer between 0 to 23 that represents the start hour of the reboot time window.
289
+ attr_accessor :start_hour
290
+
291
+ def initialize(end_hour: nil, start_hour: nil)
292
+ @end_hour = end_hour
293
+ @start_hour = start_hour
294
+ end
295
+ end
296
+
297
+ class StripeS700 < Stripe::RequestParams
298
+ # A File ID representing an image you would like displayed on the reader.
299
+ attr_accessor :splashscreen
300
+
301
+ def initialize(splashscreen: nil)
302
+ @splashscreen = splashscreen
303
+ end
304
+ end
305
+
306
+ class Tipping < Stripe::RequestParams
307
+ class Aud < Stripe::RequestParams
308
+ # Fixed amounts displayed when collecting a tip
309
+ attr_accessor :fixed_amounts
310
+ # Percentages displayed when collecting a tip
311
+ attr_accessor :percentages
312
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
313
+ attr_accessor :smart_tip_threshold
314
+
315
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
316
+ @fixed_amounts = fixed_amounts
317
+ @percentages = percentages
318
+ @smart_tip_threshold = smart_tip_threshold
319
+ end
320
+ end
321
+
322
+ class Cad < Stripe::RequestParams
323
+ # Fixed amounts displayed when collecting a tip
324
+ attr_accessor :fixed_amounts
325
+ # Percentages displayed when collecting a tip
326
+ attr_accessor :percentages
327
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
328
+ attr_accessor :smart_tip_threshold
329
+
330
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
331
+ @fixed_amounts = fixed_amounts
332
+ @percentages = percentages
333
+ @smart_tip_threshold = smart_tip_threshold
334
+ end
335
+ end
336
+
337
+ class Chf < Stripe::RequestParams
338
+ # Fixed amounts displayed when collecting a tip
339
+ attr_accessor :fixed_amounts
340
+ # Percentages displayed when collecting a tip
341
+ attr_accessor :percentages
342
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
343
+ attr_accessor :smart_tip_threshold
344
+
345
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
346
+ @fixed_amounts = fixed_amounts
347
+ @percentages = percentages
348
+ @smart_tip_threshold = smart_tip_threshold
349
+ end
350
+ end
351
+
352
+ class Czk < Stripe::RequestParams
353
+ # Fixed amounts displayed when collecting a tip
354
+ attr_accessor :fixed_amounts
355
+ # Percentages displayed when collecting a tip
356
+ attr_accessor :percentages
357
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
358
+ attr_accessor :smart_tip_threshold
359
+
360
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
361
+ @fixed_amounts = fixed_amounts
362
+ @percentages = percentages
363
+ @smart_tip_threshold = smart_tip_threshold
364
+ end
365
+ end
366
+
367
+ class Dkk < Stripe::RequestParams
368
+ # Fixed amounts displayed when collecting a tip
369
+ attr_accessor :fixed_amounts
370
+ # Percentages displayed when collecting a tip
371
+ attr_accessor :percentages
372
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
373
+ attr_accessor :smart_tip_threshold
374
+
375
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
376
+ @fixed_amounts = fixed_amounts
377
+ @percentages = percentages
378
+ @smart_tip_threshold = smart_tip_threshold
379
+ end
380
+ end
381
+
382
+ class Eur < Stripe::RequestParams
383
+ # Fixed amounts displayed when collecting a tip
384
+ attr_accessor :fixed_amounts
385
+ # Percentages displayed when collecting a tip
386
+ attr_accessor :percentages
387
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
388
+ attr_accessor :smart_tip_threshold
389
+
390
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
391
+ @fixed_amounts = fixed_amounts
392
+ @percentages = percentages
393
+ @smart_tip_threshold = smart_tip_threshold
394
+ end
395
+ end
396
+
397
+ class Gbp < Stripe::RequestParams
398
+ # Fixed amounts displayed when collecting a tip
399
+ attr_accessor :fixed_amounts
400
+ # Percentages displayed when collecting a tip
401
+ attr_accessor :percentages
402
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
403
+ attr_accessor :smart_tip_threshold
404
+
405
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
406
+ @fixed_amounts = fixed_amounts
407
+ @percentages = percentages
408
+ @smart_tip_threshold = smart_tip_threshold
409
+ end
410
+ end
411
+
412
+ class Hkd < Stripe::RequestParams
413
+ # Fixed amounts displayed when collecting a tip
414
+ attr_accessor :fixed_amounts
415
+ # Percentages displayed when collecting a tip
416
+ attr_accessor :percentages
417
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
418
+ attr_accessor :smart_tip_threshold
419
+
420
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
421
+ @fixed_amounts = fixed_amounts
422
+ @percentages = percentages
423
+ @smart_tip_threshold = smart_tip_threshold
424
+ end
425
+ end
426
+
427
+ class Jpy < Stripe::RequestParams
428
+ # Fixed amounts displayed when collecting a tip
429
+ attr_accessor :fixed_amounts
430
+ # Percentages displayed when collecting a tip
431
+ attr_accessor :percentages
432
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
433
+ attr_accessor :smart_tip_threshold
434
+
435
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
436
+ @fixed_amounts = fixed_amounts
437
+ @percentages = percentages
438
+ @smart_tip_threshold = smart_tip_threshold
439
+ end
440
+ end
441
+
442
+ class Myr < Stripe::RequestParams
443
+ # Fixed amounts displayed when collecting a tip
444
+ attr_accessor :fixed_amounts
445
+ # Percentages displayed when collecting a tip
446
+ attr_accessor :percentages
447
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
448
+ attr_accessor :smart_tip_threshold
449
+
450
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
451
+ @fixed_amounts = fixed_amounts
452
+ @percentages = percentages
453
+ @smart_tip_threshold = smart_tip_threshold
454
+ end
455
+ end
456
+
457
+ class Nok < Stripe::RequestParams
458
+ # Fixed amounts displayed when collecting a tip
459
+ attr_accessor :fixed_amounts
460
+ # Percentages displayed when collecting a tip
461
+ attr_accessor :percentages
462
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
463
+ attr_accessor :smart_tip_threshold
464
+
465
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
466
+ @fixed_amounts = fixed_amounts
467
+ @percentages = percentages
468
+ @smart_tip_threshold = smart_tip_threshold
469
+ end
470
+ end
471
+
472
+ class Nzd < Stripe::RequestParams
473
+ # Fixed amounts displayed when collecting a tip
474
+ attr_accessor :fixed_amounts
475
+ # Percentages displayed when collecting a tip
476
+ attr_accessor :percentages
477
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
478
+ attr_accessor :smart_tip_threshold
479
+
480
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
481
+ @fixed_amounts = fixed_amounts
482
+ @percentages = percentages
483
+ @smart_tip_threshold = smart_tip_threshold
484
+ end
485
+ end
486
+
487
+ class Pln < Stripe::RequestParams
488
+ # Fixed amounts displayed when collecting a tip
489
+ attr_accessor :fixed_amounts
490
+ # Percentages displayed when collecting a tip
491
+ attr_accessor :percentages
492
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
493
+ attr_accessor :smart_tip_threshold
494
+
495
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
496
+ @fixed_amounts = fixed_amounts
497
+ @percentages = percentages
498
+ @smart_tip_threshold = smart_tip_threshold
499
+ end
500
+ end
501
+
502
+ class Sek < Stripe::RequestParams
503
+ # Fixed amounts displayed when collecting a tip
504
+ attr_accessor :fixed_amounts
505
+ # Percentages displayed when collecting a tip
506
+ attr_accessor :percentages
507
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
508
+ attr_accessor :smart_tip_threshold
509
+
510
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
511
+ @fixed_amounts = fixed_amounts
512
+ @percentages = percentages
513
+ @smart_tip_threshold = smart_tip_threshold
514
+ end
515
+ end
516
+
517
+ class Sgd < Stripe::RequestParams
518
+ # Fixed amounts displayed when collecting a tip
519
+ attr_accessor :fixed_amounts
520
+ # Percentages displayed when collecting a tip
521
+ attr_accessor :percentages
522
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
523
+ attr_accessor :smart_tip_threshold
524
+
525
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
526
+ @fixed_amounts = fixed_amounts
527
+ @percentages = percentages
528
+ @smart_tip_threshold = smart_tip_threshold
529
+ end
530
+ end
531
+
532
+ class Usd < Stripe::RequestParams
533
+ # Fixed amounts displayed when collecting a tip
534
+ attr_accessor :fixed_amounts
535
+ # Percentages displayed when collecting a tip
536
+ attr_accessor :percentages
537
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
538
+ attr_accessor :smart_tip_threshold
539
+
540
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
541
+ @fixed_amounts = fixed_amounts
542
+ @percentages = percentages
543
+ @smart_tip_threshold = smart_tip_threshold
544
+ end
545
+ end
546
+ # Tipping configuration for AUD
547
+ attr_accessor :aud
548
+ # Tipping configuration for CAD
549
+ attr_accessor :cad
550
+ # Tipping configuration for CHF
551
+ attr_accessor :chf
552
+ # Tipping configuration for CZK
553
+ attr_accessor :czk
554
+ # Tipping configuration for DKK
555
+ attr_accessor :dkk
556
+ # Tipping configuration for EUR
557
+ attr_accessor :eur
558
+ # Tipping configuration for GBP
559
+ attr_accessor :gbp
560
+ # Tipping configuration for HKD
561
+ attr_accessor :hkd
562
+ # Tipping configuration for JPY
563
+ attr_accessor :jpy
564
+ # Tipping configuration for MYR
565
+ attr_accessor :myr
566
+ # Tipping configuration for NOK
567
+ attr_accessor :nok
568
+ # Tipping configuration for NZD
569
+ attr_accessor :nzd
570
+ # Tipping configuration for PLN
571
+ attr_accessor :pln
572
+ # Tipping configuration for SEK
573
+ attr_accessor :sek
574
+ # Tipping configuration for SGD
575
+ attr_accessor :sgd
576
+ # Tipping configuration for USD
577
+ attr_accessor :usd
578
+
579
+ def initialize(
580
+ aud: nil,
581
+ cad: nil,
582
+ chf: nil,
583
+ czk: nil,
584
+ dkk: nil,
585
+ eur: nil,
586
+ gbp: nil,
587
+ hkd: nil,
588
+ jpy: nil,
589
+ myr: nil,
590
+ nok: nil,
591
+ nzd: nil,
592
+ pln: nil,
593
+ sek: nil,
594
+ sgd: nil,
595
+ usd: nil
596
+ )
597
+ @aud = aud
598
+ @cad = cad
599
+ @chf = chf
600
+ @czk = czk
601
+ @dkk = dkk
602
+ @eur = eur
603
+ @gbp = gbp
604
+ @hkd = hkd
605
+ @jpy = jpy
606
+ @myr = myr
607
+ @nok = nok
608
+ @nzd = nzd
609
+ @pln = pln
610
+ @sek = sek
611
+ @sgd = sgd
612
+ @usd = usd
613
+ end
614
+ end
615
+
616
+ class VerifoneP400 < Stripe::RequestParams
617
+ # A File ID representing an image you would like displayed on the reader.
618
+ attr_accessor :splashscreen
619
+
620
+ def initialize(splashscreen: nil)
621
+ @splashscreen = splashscreen
622
+ end
623
+ end
624
+
625
+ class Wifi < Stripe::RequestParams
626
+ class EnterpriseEapPeap < Stripe::RequestParams
627
+ # A File ID representing a PEM file containing the server certificate
628
+ attr_accessor :ca_certificate_file
629
+ # Password for connecting to the WiFi network
630
+ attr_accessor :password
631
+ # Name of the WiFi network
632
+ attr_accessor :ssid
633
+ # Username for connecting to the WiFi network
634
+ attr_accessor :username
635
+
636
+ def initialize(ca_certificate_file: nil, password: nil, ssid: nil, username: nil)
637
+ @ca_certificate_file = ca_certificate_file
638
+ @password = password
639
+ @ssid = ssid
640
+ @username = username
641
+ end
642
+ end
643
+
644
+ class EnterpriseEapTls < Stripe::RequestParams
645
+ # A File ID representing a PEM file containing the server certificate
646
+ attr_accessor :ca_certificate_file
647
+ # A File ID representing a PEM file containing the client certificate
648
+ attr_accessor :client_certificate_file
649
+ # A File ID representing a PEM file containing the client RSA private key
650
+ attr_accessor :private_key_file
651
+ # Password for the private key file
652
+ attr_accessor :private_key_file_password
653
+ # Name of the WiFi network
654
+ attr_accessor :ssid
655
+
656
+ def initialize(
657
+ ca_certificate_file: nil,
658
+ client_certificate_file: nil,
659
+ private_key_file: nil,
660
+ private_key_file_password: nil,
661
+ ssid: nil
662
+ )
663
+ @ca_certificate_file = ca_certificate_file
664
+ @client_certificate_file = client_certificate_file
665
+ @private_key_file = private_key_file
666
+ @private_key_file_password = private_key_file_password
667
+ @ssid = ssid
668
+ end
669
+ end
670
+
671
+ class PersonalPsk < Stripe::RequestParams
672
+ # Password for connecting to the WiFi network
673
+ attr_accessor :password
674
+ # Name of the WiFi network
675
+ attr_accessor :ssid
676
+
677
+ def initialize(password: nil, ssid: nil)
678
+ @password = password
679
+ @ssid = ssid
680
+ end
681
+ end
682
+ # Credentials for a WPA-Enterprise WiFi network using the EAP-PEAP authentication method.
683
+ attr_accessor :enterprise_eap_peap
684
+ # Credentials for a WPA-Enterprise WiFi network using the EAP-TLS authentication method.
685
+ attr_accessor :enterprise_eap_tls
686
+ # Credentials for a WPA-Personal WiFi network.
687
+ attr_accessor :personal_psk
688
+ # Security type of the WiFi network. Fill out the hash with the corresponding name to provide the set of credentials for this security type.
689
+ attr_accessor :type
690
+
691
+ def initialize(
692
+ enterprise_eap_peap: nil,
693
+ enterprise_eap_tls: nil,
694
+ personal_psk: nil,
695
+ type: nil
696
+ )
697
+ @enterprise_eap_peap = enterprise_eap_peap
698
+ @enterprise_eap_tls = enterprise_eap_tls
699
+ @personal_psk = personal_psk
700
+ @type = type
701
+ end
702
+ end
703
+ # An object containing device type specific settings for BBPOS WisePOS E readers
704
+ attr_accessor :bbpos_wisepos_e
705
+ # Specifies which fields in the response should be expanded.
706
+ attr_accessor :expand
707
+ # Name of the configuration
708
+ attr_accessor :name
709
+ # Configurations for collecting transactions offline.
710
+ attr_accessor :offline
711
+ # Reboot time settings for readers that support customized reboot time configuration.
712
+ attr_accessor :reboot_window
713
+ # An object containing device type specific settings for Stripe S700 readers
714
+ attr_accessor :stripe_s700
715
+ # Tipping configurations for readers supporting on-reader tips
716
+ attr_accessor :tipping
717
+ # An object containing device type specific settings for Verifone P400 readers
718
+ attr_accessor :verifone_p400
719
+ # Configurations for connecting to a WiFi network.
720
+ attr_accessor :wifi
721
+
722
+ def initialize(
723
+ bbpos_wisepos_e: nil,
724
+ expand: nil,
725
+ name: nil,
726
+ offline: nil,
727
+ reboot_window: nil,
728
+ stripe_s700: nil,
729
+ tipping: nil,
730
+ verifone_p400: nil,
731
+ wifi: nil
732
+ )
733
+ @bbpos_wisepos_e = bbpos_wisepos_e
734
+ @expand = expand
735
+ @name = name
736
+ @offline = offline
737
+ @reboot_window = reboot_window
738
+ @stripe_s700 = stripe_s700
739
+ @tipping = tipping
740
+ @verifone_p400 = verifone_p400
741
+ @wifi = wifi
742
+ end
743
+ end
744
+
745
+ class ListParams < Stripe::RequestParams
746
+ # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
747
+ attr_accessor :ending_before
748
+ # Specifies which fields in the response should be expanded.
749
+ attr_accessor :expand
750
+ # if present, only return the account default or non-default configurations.
751
+ attr_accessor :is_account_default
752
+ # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
753
+ attr_accessor :limit
754
+ # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
755
+ attr_accessor :starting_after
756
+
757
+ def initialize(
758
+ ending_before: nil,
759
+ expand: nil,
760
+ is_account_default: nil,
761
+ limit: nil,
762
+ starting_after: nil
763
+ )
764
+ @ending_before = ending_before
765
+ @expand = expand
766
+ @is_account_default = is_account_default
767
+ @limit = limit
768
+ @starting_after = starting_after
769
+ end
770
+ end
771
+
772
+ class CreateParams < Stripe::RequestParams
773
+ class BbposWiseposE < Stripe::RequestParams
774
+ # A File ID representing an image to display on the reader
775
+ attr_accessor :splashscreen
776
+
777
+ def initialize(splashscreen: nil)
778
+ @splashscreen = splashscreen
779
+ end
780
+ end
781
+
782
+ class Offline < Stripe::RequestParams
783
+ # Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
784
+ attr_accessor :enabled
785
+
786
+ def initialize(enabled: nil)
787
+ @enabled = enabled
788
+ end
789
+ end
790
+
791
+ class RebootWindow < Stripe::RequestParams
792
+ # Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
793
+ attr_accessor :end_hour
794
+ # Integer between 0 to 23 that represents the start hour of the reboot time window.
795
+ attr_accessor :start_hour
796
+
797
+ def initialize(end_hour: nil, start_hour: nil)
798
+ @end_hour = end_hour
799
+ @start_hour = start_hour
800
+ end
801
+ end
802
+
803
+ class StripeS700 < Stripe::RequestParams
804
+ # A File ID representing an image you would like displayed on the reader.
805
+ attr_accessor :splashscreen
806
+
807
+ def initialize(splashscreen: nil)
808
+ @splashscreen = splashscreen
809
+ end
810
+ end
811
+
812
+ class Tipping < Stripe::RequestParams
813
+ class Aud < Stripe::RequestParams
814
+ # Fixed amounts displayed when collecting a tip
815
+ attr_accessor :fixed_amounts
816
+ # Percentages displayed when collecting a tip
817
+ attr_accessor :percentages
818
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
819
+ attr_accessor :smart_tip_threshold
820
+
821
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
822
+ @fixed_amounts = fixed_amounts
823
+ @percentages = percentages
824
+ @smart_tip_threshold = smart_tip_threshold
825
+ end
826
+ end
827
+
828
+ class Cad < Stripe::RequestParams
829
+ # Fixed amounts displayed when collecting a tip
830
+ attr_accessor :fixed_amounts
831
+ # Percentages displayed when collecting a tip
832
+ attr_accessor :percentages
833
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
834
+ attr_accessor :smart_tip_threshold
835
+
836
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
837
+ @fixed_amounts = fixed_amounts
838
+ @percentages = percentages
839
+ @smart_tip_threshold = smart_tip_threshold
840
+ end
841
+ end
842
+
843
+ class Chf < Stripe::RequestParams
844
+ # Fixed amounts displayed when collecting a tip
845
+ attr_accessor :fixed_amounts
846
+ # Percentages displayed when collecting a tip
847
+ attr_accessor :percentages
848
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
849
+ attr_accessor :smart_tip_threshold
850
+
851
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
852
+ @fixed_amounts = fixed_amounts
853
+ @percentages = percentages
854
+ @smart_tip_threshold = smart_tip_threshold
855
+ end
856
+ end
857
+
858
+ class Czk < Stripe::RequestParams
859
+ # Fixed amounts displayed when collecting a tip
860
+ attr_accessor :fixed_amounts
861
+ # Percentages displayed when collecting a tip
862
+ attr_accessor :percentages
863
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
864
+ attr_accessor :smart_tip_threshold
865
+
866
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
867
+ @fixed_amounts = fixed_amounts
868
+ @percentages = percentages
869
+ @smart_tip_threshold = smart_tip_threshold
870
+ end
871
+ end
872
+
873
+ class Dkk < Stripe::RequestParams
874
+ # Fixed amounts displayed when collecting a tip
875
+ attr_accessor :fixed_amounts
876
+ # Percentages displayed when collecting a tip
877
+ attr_accessor :percentages
878
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
879
+ attr_accessor :smart_tip_threshold
880
+
881
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
882
+ @fixed_amounts = fixed_amounts
883
+ @percentages = percentages
884
+ @smart_tip_threshold = smart_tip_threshold
885
+ end
886
+ end
887
+
888
+ class Eur < Stripe::RequestParams
889
+ # Fixed amounts displayed when collecting a tip
890
+ attr_accessor :fixed_amounts
891
+ # Percentages displayed when collecting a tip
892
+ attr_accessor :percentages
893
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
894
+ attr_accessor :smart_tip_threshold
895
+
896
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
897
+ @fixed_amounts = fixed_amounts
898
+ @percentages = percentages
899
+ @smart_tip_threshold = smart_tip_threshold
900
+ end
901
+ end
902
+
903
+ class Gbp < Stripe::RequestParams
904
+ # Fixed amounts displayed when collecting a tip
905
+ attr_accessor :fixed_amounts
906
+ # Percentages displayed when collecting a tip
907
+ attr_accessor :percentages
908
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
909
+ attr_accessor :smart_tip_threshold
910
+
911
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
912
+ @fixed_amounts = fixed_amounts
913
+ @percentages = percentages
914
+ @smart_tip_threshold = smart_tip_threshold
915
+ end
916
+ end
917
+
918
+ class Hkd < Stripe::RequestParams
919
+ # Fixed amounts displayed when collecting a tip
920
+ attr_accessor :fixed_amounts
921
+ # Percentages displayed when collecting a tip
922
+ attr_accessor :percentages
923
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
924
+ attr_accessor :smart_tip_threshold
925
+
926
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
927
+ @fixed_amounts = fixed_amounts
928
+ @percentages = percentages
929
+ @smart_tip_threshold = smart_tip_threshold
930
+ end
931
+ end
932
+
933
+ class Jpy < Stripe::RequestParams
934
+ # Fixed amounts displayed when collecting a tip
935
+ attr_accessor :fixed_amounts
936
+ # Percentages displayed when collecting a tip
937
+ attr_accessor :percentages
938
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
939
+ attr_accessor :smart_tip_threshold
940
+
941
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
942
+ @fixed_amounts = fixed_amounts
943
+ @percentages = percentages
944
+ @smart_tip_threshold = smart_tip_threshold
945
+ end
946
+ end
947
+
948
+ class Myr < Stripe::RequestParams
949
+ # Fixed amounts displayed when collecting a tip
950
+ attr_accessor :fixed_amounts
951
+ # Percentages displayed when collecting a tip
952
+ attr_accessor :percentages
953
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
954
+ attr_accessor :smart_tip_threshold
955
+
956
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
957
+ @fixed_amounts = fixed_amounts
958
+ @percentages = percentages
959
+ @smart_tip_threshold = smart_tip_threshold
960
+ end
961
+ end
962
+
963
+ class Nok < Stripe::RequestParams
964
+ # Fixed amounts displayed when collecting a tip
965
+ attr_accessor :fixed_amounts
966
+ # Percentages displayed when collecting a tip
967
+ attr_accessor :percentages
968
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
969
+ attr_accessor :smart_tip_threshold
970
+
971
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
972
+ @fixed_amounts = fixed_amounts
973
+ @percentages = percentages
974
+ @smart_tip_threshold = smart_tip_threshold
975
+ end
976
+ end
977
+
978
+ class Nzd < Stripe::RequestParams
979
+ # Fixed amounts displayed when collecting a tip
980
+ attr_accessor :fixed_amounts
981
+ # Percentages displayed when collecting a tip
982
+ attr_accessor :percentages
983
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
984
+ attr_accessor :smart_tip_threshold
985
+
986
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
987
+ @fixed_amounts = fixed_amounts
988
+ @percentages = percentages
989
+ @smart_tip_threshold = smart_tip_threshold
990
+ end
991
+ end
992
+
993
+ class Pln < Stripe::RequestParams
994
+ # Fixed amounts displayed when collecting a tip
995
+ attr_accessor :fixed_amounts
996
+ # Percentages displayed when collecting a tip
997
+ attr_accessor :percentages
998
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
999
+ attr_accessor :smart_tip_threshold
1000
+
1001
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
1002
+ @fixed_amounts = fixed_amounts
1003
+ @percentages = percentages
1004
+ @smart_tip_threshold = smart_tip_threshold
1005
+ end
1006
+ end
1007
+
1008
+ class Sek < Stripe::RequestParams
1009
+ # Fixed amounts displayed when collecting a tip
1010
+ attr_accessor :fixed_amounts
1011
+ # Percentages displayed when collecting a tip
1012
+ attr_accessor :percentages
1013
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
1014
+ attr_accessor :smart_tip_threshold
1015
+
1016
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
1017
+ @fixed_amounts = fixed_amounts
1018
+ @percentages = percentages
1019
+ @smart_tip_threshold = smart_tip_threshold
1020
+ end
1021
+ end
1022
+
1023
+ class Sgd < Stripe::RequestParams
1024
+ # Fixed amounts displayed when collecting a tip
1025
+ attr_accessor :fixed_amounts
1026
+ # Percentages displayed when collecting a tip
1027
+ attr_accessor :percentages
1028
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
1029
+ attr_accessor :smart_tip_threshold
1030
+
1031
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
1032
+ @fixed_amounts = fixed_amounts
1033
+ @percentages = percentages
1034
+ @smart_tip_threshold = smart_tip_threshold
1035
+ end
1036
+ end
1037
+
1038
+ class Usd < Stripe::RequestParams
1039
+ # Fixed amounts displayed when collecting a tip
1040
+ attr_accessor :fixed_amounts
1041
+ # Percentages displayed when collecting a tip
1042
+ attr_accessor :percentages
1043
+ # Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
1044
+ attr_accessor :smart_tip_threshold
1045
+
1046
+ def initialize(fixed_amounts: nil, percentages: nil, smart_tip_threshold: nil)
1047
+ @fixed_amounts = fixed_amounts
1048
+ @percentages = percentages
1049
+ @smart_tip_threshold = smart_tip_threshold
1050
+ end
1051
+ end
1052
+ # Tipping configuration for AUD
1053
+ attr_accessor :aud
1054
+ # Tipping configuration for CAD
1055
+ attr_accessor :cad
1056
+ # Tipping configuration for CHF
1057
+ attr_accessor :chf
1058
+ # Tipping configuration for CZK
1059
+ attr_accessor :czk
1060
+ # Tipping configuration for DKK
1061
+ attr_accessor :dkk
1062
+ # Tipping configuration for EUR
1063
+ attr_accessor :eur
1064
+ # Tipping configuration for GBP
1065
+ attr_accessor :gbp
1066
+ # Tipping configuration for HKD
1067
+ attr_accessor :hkd
1068
+ # Tipping configuration for JPY
1069
+ attr_accessor :jpy
1070
+ # Tipping configuration for MYR
1071
+ attr_accessor :myr
1072
+ # Tipping configuration for NOK
1073
+ attr_accessor :nok
1074
+ # Tipping configuration for NZD
1075
+ attr_accessor :nzd
1076
+ # Tipping configuration for PLN
1077
+ attr_accessor :pln
1078
+ # Tipping configuration for SEK
1079
+ attr_accessor :sek
1080
+ # Tipping configuration for SGD
1081
+ attr_accessor :sgd
1082
+ # Tipping configuration for USD
1083
+ attr_accessor :usd
1084
+
1085
+ def initialize(
1086
+ aud: nil,
1087
+ cad: nil,
1088
+ chf: nil,
1089
+ czk: nil,
1090
+ dkk: nil,
1091
+ eur: nil,
1092
+ gbp: nil,
1093
+ hkd: nil,
1094
+ jpy: nil,
1095
+ myr: nil,
1096
+ nok: nil,
1097
+ nzd: nil,
1098
+ pln: nil,
1099
+ sek: nil,
1100
+ sgd: nil,
1101
+ usd: nil
1102
+ )
1103
+ @aud = aud
1104
+ @cad = cad
1105
+ @chf = chf
1106
+ @czk = czk
1107
+ @dkk = dkk
1108
+ @eur = eur
1109
+ @gbp = gbp
1110
+ @hkd = hkd
1111
+ @jpy = jpy
1112
+ @myr = myr
1113
+ @nok = nok
1114
+ @nzd = nzd
1115
+ @pln = pln
1116
+ @sek = sek
1117
+ @sgd = sgd
1118
+ @usd = usd
1119
+ end
1120
+ end
1121
+
1122
+ class VerifoneP400 < Stripe::RequestParams
1123
+ # A File ID representing an image you would like displayed on the reader.
1124
+ attr_accessor :splashscreen
1125
+
1126
+ def initialize(splashscreen: nil)
1127
+ @splashscreen = splashscreen
1128
+ end
1129
+ end
1130
+
1131
+ class Wifi < Stripe::RequestParams
1132
+ class EnterpriseEapPeap < Stripe::RequestParams
1133
+ # A File ID representing a PEM file containing the server certificate
1134
+ attr_accessor :ca_certificate_file
1135
+ # Password for connecting to the WiFi network
1136
+ attr_accessor :password
1137
+ # Name of the WiFi network
1138
+ attr_accessor :ssid
1139
+ # Username for connecting to the WiFi network
1140
+ attr_accessor :username
1141
+
1142
+ def initialize(ca_certificate_file: nil, password: nil, ssid: nil, username: nil)
1143
+ @ca_certificate_file = ca_certificate_file
1144
+ @password = password
1145
+ @ssid = ssid
1146
+ @username = username
1147
+ end
1148
+ end
1149
+
1150
+ class EnterpriseEapTls < Stripe::RequestParams
1151
+ # A File ID representing a PEM file containing the server certificate
1152
+ attr_accessor :ca_certificate_file
1153
+ # A File ID representing a PEM file containing the client certificate
1154
+ attr_accessor :client_certificate_file
1155
+ # A File ID representing a PEM file containing the client RSA private key
1156
+ attr_accessor :private_key_file
1157
+ # Password for the private key file
1158
+ attr_accessor :private_key_file_password
1159
+ # Name of the WiFi network
1160
+ attr_accessor :ssid
1161
+
1162
+ def initialize(
1163
+ ca_certificate_file: nil,
1164
+ client_certificate_file: nil,
1165
+ private_key_file: nil,
1166
+ private_key_file_password: nil,
1167
+ ssid: nil
1168
+ )
1169
+ @ca_certificate_file = ca_certificate_file
1170
+ @client_certificate_file = client_certificate_file
1171
+ @private_key_file = private_key_file
1172
+ @private_key_file_password = private_key_file_password
1173
+ @ssid = ssid
1174
+ end
1175
+ end
1176
+
1177
+ class PersonalPsk < Stripe::RequestParams
1178
+ # Password for connecting to the WiFi network
1179
+ attr_accessor :password
1180
+ # Name of the WiFi network
1181
+ attr_accessor :ssid
1182
+
1183
+ def initialize(password: nil, ssid: nil)
1184
+ @password = password
1185
+ @ssid = ssid
1186
+ end
1187
+ end
1188
+ # Credentials for a WPA-Enterprise WiFi network using the EAP-PEAP authentication method.
1189
+ attr_accessor :enterprise_eap_peap
1190
+ # Credentials for a WPA-Enterprise WiFi network using the EAP-TLS authentication method.
1191
+ attr_accessor :enterprise_eap_tls
1192
+ # Credentials for a WPA-Personal WiFi network.
1193
+ attr_accessor :personal_psk
1194
+ # Security type of the WiFi network. Fill out the hash with the corresponding name to provide the set of credentials for this security type.
1195
+ attr_accessor :type
1196
+
1197
+ def initialize(
1198
+ enterprise_eap_peap: nil,
1199
+ enterprise_eap_tls: nil,
1200
+ personal_psk: nil,
1201
+ type: nil
1202
+ )
1203
+ @enterprise_eap_peap = enterprise_eap_peap
1204
+ @enterprise_eap_tls = enterprise_eap_tls
1205
+ @personal_psk = personal_psk
1206
+ @type = type
1207
+ end
1208
+ end
1209
+ # An object containing device type specific settings for BBPOS WisePOS E readers
1210
+ attr_accessor :bbpos_wisepos_e
1211
+ # Specifies which fields in the response should be expanded.
1212
+ attr_accessor :expand
1213
+ # Name of the configuration
1214
+ attr_accessor :name
1215
+ # Configurations for collecting transactions offline.
1216
+ attr_accessor :offline
1217
+ # Reboot time settings for readers that support customized reboot time configuration.
1218
+ attr_accessor :reboot_window
1219
+ # An object containing device type specific settings for Stripe S700 readers
1220
+ attr_accessor :stripe_s700
1221
+ # Tipping configurations for readers supporting on-reader tips
1222
+ attr_accessor :tipping
1223
+ # An object containing device type specific settings for Verifone P400 readers
1224
+ attr_accessor :verifone_p400
1225
+ # Configurations for connecting to a WiFi network.
1226
+ attr_accessor :wifi
1227
+
1228
+ def initialize(
1229
+ bbpos_wisepos_e: nil,
1230
+ expand: nil,
1231
+ name: nil,
1232
+ offline: nil,
1233
+ reboot_window: nil,
1234
+ stripe_s700: nil,
1235
+ tipping: nil,
1236
+ verifone_p400: nil,
1237
+ wifi: nil
1238
+ )
1239
+ @bbpos_wisepos_e = bbpos_wisepos_e
1240
+ @expand = expand
1241
+ @name = name
1242
+ @offline = offline
1243
+ @reboot_window = reboot_window
1244
+ @stripe_s700 = stripe_s700
1245
+ @tipping = tipping
1246
+ @verifone_p400 = verifone_p400
1247
+ @wifi = wifi
1248
+ end
1249
+ end
1250
+ # Attribute for field bbpos_wisepos_e
1251
+ attr_reader :bbpos_wisepos_e
1252
+ # Unique identifier for the object.
1253
+ attr_reader :id
1254
+ # Whether this Configuration is the default for your account
1255
+ attr_reader :is_account_default
1256
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
1257
+ attr_reader :livemode
1258
+ # String indicating the name of the Configuration object, set by the user
1259
+ attr_reader :name
1260
+ # String representing the object's type. Objects of the same type share the same value.
1261
+ attr_reader :object
1262
+ # Attribute for field offline
1263
+ attr_reader :offline
1264
+ # Attribute for field reboot_window
1265
+ attr_reader :reboot_window
1266
+ # Attribute for field stripe_s700
1267
+ attr_reader :stripe_s700
1268
+ # Attribute for field tipping
1269
+ attr_reader :tipping
1270
+ # Attribute for field verifone_p400
1271
+ attr_reader :verifone_p400
1272
+ # Attribute for field wifi
1273
+ attr_reader :wifi
1274
+ # Always true for a deleted object
1275
+ attr_reader :deleted
1276
+
1277
+ # Creates a new Configuration object.
1278
+ def self.create(params = {}, opts = {})
1279
+ request_stripe_object(
1280
+ method: :post,
1281
+ path: "/v1/terminal/configurations",
1282
+ params: params,
1283
+ opts: opts
1284
+ )
1285
+ end
1286
+
1287
+ # Deletes a Configuration object.
1288
+ def self.delete(configuration, params = {}, opts = {})
1289
+ request_stripe_object(
1290
+ method: :delete,
1291
+ path: format("/v1/terminal/configurations/%<configuration>s", { configuration: CGI.escape(configuration) }),
1292
+ params: params,
1293
+ opts: opts
1294
+ )
1295
+ end
1296
+
1297
+ # Deletes a Configuration object.
1298
+ def delete(params = {}, opts = {})
1299
+ request_stripe_object(
1300
+ method: :delete,
1301
+ path: format("/v1/terminal/configurations/%<configuration>s", { configuration: CGI.escape(self["id"]) }),
1302
+ params: params,
1303
+ opts: opts
1304
+ )
1305
+ end
1306
+
1307
+ # Returns a list of Configuration objects.
1308
+ def self.list(params = {}, opts = {})
1309
+ request_stripe_object(
1310
+ method: :get,
1311
+ path: "/v1/terminal/configurations",
1312
+ params: params,
1313
+ opts: opts
1314
+ )
1315
+ end
1316
+
1317
+ # Updates a new Configuration object.
1318
+ def self.update(configuration, params = {}, opts = {})
1319
+ request_stripe_object(
1320
+ method: :post,
1321
+ path: format("/v1/terminal/configurations/%<configuration>s", { configuration: CGI.escape(configuration) }),
1322
+ params: params,
1323
+ opts: opts
1324
+ )
1325
+ end
1326
+ end
1327
+ end
1328
+ end