stripe 15.2.0.pre.beta.1 → 15.3.0.pre.beta.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 (196) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +92 -0
  3. data/CONTRIBUTING.md +25 -0
  4. data/OPENAPI_VERSION +1 -1
  5. data/README.md +10 -7
  6. data/VERSION +1 -1
  7. data/lib/stripe/api_version.rb +1 -1
  8. data/lib/stripe/event_types.rb +9 -0
  9. data/lib/stripe/events/v2_core_account_link_completed_event.rb +1 -1
  10. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_failed_event.rb +1 -1
  11. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_processing_event.rb +1 -1
  12. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_queued_event.rb +1 -1
  13. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_returned_event.rb +1 -1
  14. data/lib/stripe/events/v2_money_management_inbound_transfer_bank_debit_succeeded_event.rb +1 -1
  15. data/lib/stripe/events/v2_money_management_outbound_payment_canceled_event.rb +1 -1
  16. data/lib/stripe/events/v2_money_management_outbound_payment_failed_event.rb +1 -1
  17. data/lib/stripe/events/v2_money_management_outbound_payment_posted_event.rb +1 -1
  18. data/lib/stripe/events/v2_money_management_outbound_payment_returned_event.rb +1 -1
  19. data/lib/stripe/events/v2_money_management_outbound_payment_updated_event.rb +1 -1
  20. data/lib/stripe/events/v2_off_session_payment_requires_capture_event.rb +21 -0
  21. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_failed_event.rb +21 -0
  22. data/lib/stripe/events/v2_payments_off_session_payment_authorization_attempt_started_event.rb +21 -0
  23. data/lib/stripe/events/v2_payments_off_session_payment_canceled_event.rb +21 -0
  24. data/lib/stripe/events/v2_payments_off_session_payment_created_event.rb +21 -0
  25. data/lib/stripe/events/v2_payments_off_session_payment_failed_event.rb +21 -0
  26. data/lib/stripe/events/v2_payments_off_session_payment_succeeded_event.rb +21 -0
  27. data/lib/stripe/object_types.rb +1 -3
  28. data/lib/stripe/resources/account.rb +47 -20
  29. data/lib/stripe/resources/account_session.rb +85 -24
  30. data/lib/stripe/resources/apple_pay_domain.rb +1 -2
  31. data/lib/stripe/resources/balance.rb +42 -0
  32. data/lib/stripe/resources/balance_transaction.rb +2 -0
  33. data/lib/stripe/resources/bank_account.rb +2 -2
  34. data/lib/stripe/resources/billing_portal/session.rb +1 -1
  35. data/lib/stripe/resources/capability.rb +1 -1
  36. data/lib/stripe/resources/charge.rb +85 -9
  37. data/lib/stripe/resources/checkout/session.rb +22 -6
  38. data/lib/stripe/resources/confirmation_token.rb +37 -97
  39. data/lib/stripe/resources/country_spec.rb +1 -1
  40. data/lib/stripe/resources/coupon.rb +1 -2
  41. data/lib/stripe/resources/credit_note.rb +10 -11
  42. data/lib/stripe/resources/customer.rb +2 -4
  43. data/lib/stripe/resources/customer_session.rb +3 -3
  44. data/lib/stripe/resources/dispute.rb +2 -2
  45. data/lib/stripe/resources/event.rb +1 -1
  46. data/lib/stripe/resources/file.rb +1 -1
  47. data/lib/stripe/resources/financial_connections/account.rb +2 -0
  48. data/lib/stripe/resources/financial_connections/institution.rb +2 -0
  49. data/lib/stripe/resources/identity/verification_report.rb +6 -0
  50. data/lib/stripe/resources/identity/verification_session.rb +17 -11
  51. data/lib/stripe/resources/invoice.rb +70 -43
  52. data/lib/stripe/resources/invoice_item.rb +2 -3
  53. data/lib/stripe/resources/invoice_line_item.rb +1 -1
  54. data/lib/stripe/resources/invoice_payment.rb +9 -2
  55. data/lib/stripe/resources/issuing/authorization.rb +8 -8
  56. data/lib/stripe/resources/issuing/card.rb +1 -1
  57. data/lib/stripe/resources/issuing/dispute.rb +3 -3
  58. data/lib/stripe/resources/order.rb +2 -55
  59. data/lib/stripe/resources/payment_attempt_record.rb +8 -0
  60. data/lib/stripe/resources/payment_intent.rb +439 -411
  61. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +7 -0
  62. data/lib/stripe/resources/payment_method.rb +50 -113
  63. data/lib/stripe/resources/payment_method_configuration.rb +297 -2
  64. data/lib/stripe/resources/payment_method_domain.rb +2 -2
  65. data/lib/stripe/resources/payment_record.rb +8 -0
  66. data/lib/stripe/resources/payout.rb +4 -4
  67. data/lib/stripe/resources/person.rb +2 -2
  68. data/lib/stripe/resources/plan.rb +2 -3
  69. data/lib/stripe/resources/price.rb +1 -1
  70. data/lib/stripe/resources/privacy/redaction_job.rb +52 -29
  71. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +12 -4
  72. data/lib/stripe/resources/product.rb +1 -61
  73. data/lib/stripe/resources/quote.rb +1 -1
  74. data/lib/stripe/resources/quote_preview_invoice.rb +2 -2
  75. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +26 -1
  76. data/lib/stripe/resources/radar/value_list.rb +1 -2
  77. data/lib/stripe/resources/radar/value_list_item.rb +1 -2
  78. data/lib/stripe/resources/refund.rb +6 -1
  79. data/lib/stripe/resources/reversal.rb +1 -1
  80. data/lib/stripe/resources/review.rb +1 -1
  81. data/lib/stripe/resources/setup_intent.rb +123 -311
  82. data/lib/stripe/resources/source.rb +1 -1
  83. data/lib/stripe/resources/subscription.rb +132 -37
  84. data/lib/stripe/resources/subscription_item.rb +33 -0
  85. data/lib/stripe/resources/subscription_schedule.rb +120 -5
  86. data/lib/stripe/resources/tax/association.rb +8 -31
  87. data/lib/stripe/resources/tax/calculation.rb +4 -0
  88. data/lib/stripe/resources/tax/calculation_line_item.rb +2 -0
  89. data/lib/stripe/resources/tax/registration.rb +1 -1
  90. data/lib/stripe/resources/tax_id.rb +1 -2
  91. data/lib/stripe/resources/tax_rate.rb +2 -2
  92. data/lib/stripe/resources/terminal/configuration.rb +1 -2
  93. data/lib/stripe/resources/terminal/location.rb +2 -3
  94. data/lib/stripe/resources/terminal/reader.rb +26 -4
  95. data/lib/stripe/resources/test_helpers/test_clock.rb +1 -2
  96. data/lib/stripe/resources/token.rb +2 -2
  97. data/lib/stripe/resources/transfer.rb +1 -1
  98. data/lib/stripe/resources/v2/core/account.rb +5 -5
  99. data/lib/stripe/resources/v2/money_management/received_credit.rb +0 -20
  100. data/lib/stripe/resources/v2/money_management/received_debit.rb +0 -24
  101. data/lib/stripe/resources/v2/payments/off_session_payment.rb +74 -0
  102. data/lib/stripe/resources/webhook_endpoint.rb +1 -2
  103. data/lib/stripe/resources.rb +8 -3
  104. data/lib/stripe/services/account_external_account_service.rb +2 -3
  105. data/lib/stripe/services/account_login_link_service.rb +1 -1
  106. data/lib/stripe/services/account_person_service.rb +1 -2
  107. data/lib/stripe/services/account_service.rb +38 -13
  108. data/lib/stripe/services/account_session_service.rb +49 -24
  109. data/lib/stripe/services/apple_pay_domain_service.rb +1 -2
  110. data/lib/stripe/services/balance_service.rb +1 -1
  111. data/lib/stripe/services/balance_settings_service.rb +2 -2
  112. data/lib/stripe/services/charge_service.rb +76 -8
  113. data/lib/stripe/services/checkout/session_service.rb +14 -6
  114. data/lib/stripe/services/coupon_service.rb +1 -2
  115. data/lib/stripe/services/credit_note_service.rb +7 -8
  116. data/lib/stripe/services/customer_balance_transaction_service.rb +3 -3
  117. data/lib/stripe/services/customer_cash_balance_transaction_service.rb +2 -2
  118. data/lib/stripe/services/customer_payment_source_service.rb +1 -1
  119. data/lib/stripe/services/customer_service.rb +3 -5
  120. data/lib/stripe/services/customer_tax_id_service.rb +1 -2
  121. data/lib/stripe/services/dispute_service.rb +1 -1
  122. data/lib/stripe/services/external_account_service.rb +2 -3
  123. data/lib/stripe/services/file_service.rb +1 -1
  124. data/lib/stripe/services/identity/verification_session_service.rb +5 -5
  125. data/lib/stripe/services/invoice_item_service.rb +1 -2
  126. data/lib/stripe/services/invoice_service.rb +65 -35
  127. data/lib/stripe/services/issuing/authorization_service.rb +4 -4
  128. data/lib/stripe/services/issuing/card_service.rb +1 -1
  129. data/lib/stripe/services/issuing/dispute_service.rb +2 -2
  130. data/lib/stripe/services/order_service.rb +1 -33
  131. data/lib/stripe/services/payment_intent_service.rb +385 -386
  132. data/lib/stripe/services/payment_method_configuration_service.rb +212 -2
  133. data/lib/stripe/services/payment_method_domain_service.rb +1 -1
  134. data/lib/stripe/services/payment_method_service.rb +47 -110
  135. data/lib/stripe/services/payout_service.rb +2 -2
  136. data/lib/stripe/services/plan_service.rb +2 -3
  137. data/lib/stripe/services/price_service.rb +2 -2
  138. data/lib/stripe/services/privacy/redaction_job_service.rb +22 -13
  139. data/lib/stripe/services/privacy/redaction_job_validation_error_service.rb +1 -1
  140. data/lib/stripe/services/product_feature_service.rb +1 -2
  141. data/lib/stripe/services/product_service.rb +2 -41
  142. data/lib/stripe/services/promotion_code_service.rb +1 -1
  143. data/lib/stripe/services/quote_service.rb +1 -1
  144. data/lib/stripe/services/radar/early_fraud_warning_service.rb +1 -1
  145. data/lib/stripe/services/radar/value_list_item_service.rb +1 -2
  146. data/lib/stripe/services/radar/value_list_service.rb +1 -2
  147. data/lib/stripe/services/setup_intent_service.rb +122 -310
  148. data/lib/stripe/services/source_service.rb +1 -1
  149. data/lib/stripe/services/subscription_item_service.rb +26 -0
  150. data/lib/stripe/services/subscription_schedule_service.rb +94 -4
  151. data/lib/stripe/services/subscription_service.rb +103 -33
  152. data/lib/stripe/services/tax/calculation_service.rb +4 -0
  153. data/lib/stripe/services/tax/registration_service.rb +1 -1
  154. data/lib/stripe/services/tax_id_service.rb +1 -2
  155. data/lib/stripe/services/terminal/configuration_service.rb +1 -2
  156. data/lib/stripe/services/terminal/location_service.rb +2 -3
  157. data/lib/stripe/services/terminal/reader_service.rb +17 -3
  158. data/lib/stripe/services/test_helpers/confirmation_token_service.rb +37 -97
  159. data/lib/stripe/services/test_helpers/test_clock_service.rb +1 -2
  160. data/lib/stripe/services/token_service.rb +1 -1
  161. data/lib/stripe/services/transfer_service.rb +1 -1
  162. data/lib/stripe/services/v1_services.rb +1 -2
  163. data/lib/stripe/services/v2/billing/meter_event_session_service.rb +1 -2
  164. data/lib/stripe/services/v2/core/accounts/person_service.rb +2 -4
  165. data/lib/stripe/services/v2/core/event_destination_service.rb +4 -10
  166. data/lib/stripe/services/v2/core/event_service.rb +1 -2
  167. data/lib/stripe/services/v2/core/vault/gb_bank_account_service.rb +3 -7
  168. data/lib/stripe/services/v2/core/vault/us_bank_account_service.rb +2 -4
  169. data/lib/stripe/services/v2/money_management/adjustment_service.rb +1 -2
  170. data/lib/stripe/services/v2/money_management/financial_account_service.rb +1 -2
  171. data/lib/stripe/services/v2/money_management/financial_address_service.rb +1 -1
  172. data/lib/stripe/services/v2/money_management/inbound_transfer_service.rb +1 -2
  173. data/lib/stripe/services/v2/money_management/outbound_payment_quote_service.rb +1 -2
  174. data/lib/stripe/services/v2/money_management/outbound_payment_service.rb +2 -4
  175. data/lib/stripe/services/v2/money_management/outbound_setup_intent_service.rb +2 -4
  176. data/lib/stripe/services/v2/money_management/outbound_transfer_service.rb +2 -4
  177. data/lib/stripe/services/v2/money_management/payout_method_service.rb +3 -7
  178. data/lib/stripe/services/v2/money_management/received_credit_service.rb +1 -2
  179. data/lib/stripe/services/v2/money_management/received_debit_service.rb +1 -2
  180. data/lib/stripe/services/v2/money_management/transaction_entry_service.rb +1 -2
  181. data/lib/stripe/services/v2/money_management/transaction_service.rb +1 -2
  182. data/lib/stripe/services/v2/payment_service.rb +15 -0
  183. data/lib/stripe/services/v2/payments/off_session_payment_service.rb +138 -0
  184. data/lib/stripe/services/v2/test_helpers/financial_address_service.rb +1 -2
  185. data/lib/stripe/services/v2_services.rb +2 -1
  186. data/lib/stripe/services/webhook_endpoint_service.rb +1 -2
  187. data/lib/stripe/services.rb +2 -3
  188. data/lib/stripe/version.rb +1 -1
  189. data/rbi/stripe.rbi +3903 -4131
  190. metadata +13 -8
  191. data/lib/stripe/resources/billing/meter_error_report.rb +0 -59
  192. data/lib/stripe/resources/gift_cards/card.rb +0 -208
  193. data/lib/stripe/resources/gift_cards/transaction.rb +0 -272
  194. data/lib/stripe/services/gift_cards/card_service.rb +0 -170
  195. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -209
  196. data/lib/stripe/services/gift_cards_service.rb +0 -14
@@ -416,6 +416,21 @@ module Stripe
416
416
  attr_reader :display_preference
417
417
  end
418
418
 
419
+ class KakaoPay < Stripe::StripeObject
420
+ class DisplayPreference < Stripe::StripeObject
421
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
422
+ attr_reader :overridable
423
+ # The account's display preference.
424
+ attr_reader :preference
425
+ # The effective display preference value.
426
+ attr_reader :value
427
+ end
428
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
429
+ attr_reader :available
430
+ # Attribute for field display_preference
431
+ attr_reader :display_preference
432
+ end
433
+
419
434
  class Klarna < Stripe::StripeObject
420
435
  class DisplayPreference < Stripe::StripeObject
421
436
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -446,6 +461,21 @@ module Stripe
446
461
  attr_reader :display_preference
447
462
  end
448
463
 
464
+ class KrCard < Stripe::StripeObject
465
+ class DisplayPreference < Stripe::StripeObject
466
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
467
+ attr_reader :overridable
468
+ # The account's display preference.
469
+ attr_reader :preference
470
+ # The effective display preference value.
471
+ attr_reader :value
472
+ end
473
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
474
+ attr_reader :available
475
+ # Attribute for field display_preference
476
+ attr_reader :display_preference
477
+ end
478
+
449
479
  class Link < Stripe::StripeObject
450
480
  class DisplayPreference < Stripe::StripeObject
451
481
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -491,6 +521,21 @@ module Stripe
491
521
  attr_reader :display_preference
492
522
  end
493
523
 
524
+ class NaverPay < Stripe::StripeObject
525
+ class DisplayPreference < Stripe::StripeObject
526
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
527
+ attr_reader :overridable
528
+ # The account's display preference.
529
+ attr_reader :preference
530
+ # The effective display preference value.
531
+ attr_reader :value
532
+ end
533
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
534
+ attr_reader :available
535
+ # Attribute for field display_preference
536
+ attr_reader :display_preference
537
+ end
538
+
494
539
  class NzBankAccount < Stripe::StripeObject
495
540
  class DisplayPreference < Stripe::StripeObject
496
541
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -551,6 +596,21 @@ module Stripe
551
596
  attr_reader :display_preference
552
597
  end
553
598
 
599
+ class Payco < Stripe::StripeObject
600
+ class DisplayPreference < Stripe::StripeObject
601
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
602
+ attr_reader :overridable
603
+ # The account's display preference.
604
+ attr_reader :preference
605
+ # The effective display preference value.
606
+ attr_reader :value
607
+ end
608
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
609
+ attr_reader :available
610
+ # Attribute for field display_preference
611
+ attr_reader :display_preference
612
+ end
613
+
554
614
  class Paynow < Stripe::StripeObject
555
615
  class DisplayPreference < Stripe::StripeObject
556
616
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -656,6 +716,21 @@ module Stripe
656
716
  attr_reader :display_preference
657
717
  end
658
718
 
719
+ class SamsungPay < Stripe::StripeObject
720
+ class DisplayPreference < Stripe::StripeObject
721
+ # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
722
+ attr_reader :overridable
723
+ # The account's display preference.
724
+ attr_reader :preference
725
+ # The effective display preference value.
726
+ attr_reader :value
727
+ end
728
+ # Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
729
+ attr_reader :available
730
+ # Attribute for field display_preference
731
+ attr_reader :display_preference
732
+ end
733
+
659
734
  class Satispay < Stripe::StripeObject
660
735
  class DisplayPreference < Stripe::StripeObject
661
736
  # For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
@@ -1278,6 +1353,23 @@ module Stripe
1278
1353
  end
1279
1354
  end
1280
1355
 
1356
+ class KakaoPay < Stripe::RequestParams
1357
+ class DisplayPreference < Stripe::RequestParams
1358
+ # The account's preference for whether or not to display this payment method.
1359
+ attr_accessor :preference
1360
+
1361
+ def initialize(preference: nil)
1362
+ @preference = preference
1363
+ end
1364
+ end
1365
+ # Whether or not the payment method should be displayed.
1366
+ attr_accessor :display_preference
1367
+
1368
+ def initialize(display_preference: nil)
1369
+ @display_preference = display_preference
1370
+ end
1371
+ end
1372
+
1281
1373
  class Klarna < Stripe::RequestParams
1282
1374
  class DisplayPreference < Stripe::RequestParams
1283
1375
  # The account's preference for whether or not to display this payment method.
@@ -1312,6 +1404,23 @@ module Stripe
1312
1404
  end
1313
1405
  end
1314
1406
 
1407
+ class KrCard < Stripe::RequestParams
1408
+ class DisplayPreference < Stripe::RequestParams
1409
+ # The account's preference for whether or not to display this payment method.
1410
+ attr_accessor :preference
1411
+
1412
+ def initialize(preference: nil)
1413
+ @preference = preference
1414
+ end
1415
+ end
1416
+ # Whether or not the payment method should be displayed.
1417
+ attr_accessor :display_preference
1418
+
1419
+ def initialize(display_preference: nil)
1420
+ @display_preference = display_preference
1421
+ end
1422
+ end
1423
+
1315
1424
  class Link < Stripe::RequestParams
1316
1425
  class DisplayPreference < Stripe::RequestParams
1317
1426
  # The account's preference for whether or not to display this payment method.
@@ -1363,6 +1472,23 @@ module Stripe
1363
1472
  end
1364
1473
  end
1365
1474
 
1475
+ class NaverPay < Stripe::RequestParams
1476
+ class DisplayPreference < Stripe::RequestParams
1477
+ # The account's preference for whether or not to display this payment method.
1478
+ attr_accessor :preference
1479
+
1480
+ def initialize(preference: nil)
1481
+ @preference = preference
1482
+ end
1483
+ end
1484
+ # Whether or not the payment method should be displayed.
1485
+ attr_accessor :display_preference
1486
+
1487
+ def initialize(display_preference: nil)
1488
+ @display_preference = display_preference
1489
+ end
1490
+ end
1491
+
1366
1492
  class NzBankAccount < Stripe::RequestParams
1367
1493
  class DisplayPreference < Stripe::RequestParams
1368
1494
  # The account's preference for whether or not to display this payment method.
@@ -1431,6 +1557,23 @@ module Stripe
1431
1557
  end
1432
1558
  end
1433
1559
 
1560
+ class Payco < Stripe::RequestParams
1561
+ class DisplayPreference < Stripe::RequestParams
1562
+ # The account's preference for whether or not to display this payment method.
1563
+ attr_accessor :preference
1564
+
1565
+ def initialize(preference: nil)
1566
+ @preference = preference
1567
+ end
1568
+ end
1569
+ # Whether or not the payment method should be displayed.
1570
+ attr_accessor :display_preference
1571
+
1572
+ def initialize(display_preference: nil)
1573
+ @display_preference = display_preference
1574
+ end
1575
+ end
1576
+
1434
1577
  class Paynow < Stripe::RequestParams
1435
1578
  class DisplayPreference < Stripe::RequestParams
1436
1579
  # The account's preference for whether or not to display this payment method.
@@ -1550,6 +1693,23 @@ module Stripe
1550
1693
  end
1551
1694
  end
1552
1695
 
1696
+ class SamsungPay < Stripe::RequestParams
1697
+ class DisplayPreference < Stripe::RequestParams
1698
+ # The account's preference for whether or not to display this payment method.
1699
+ attr_accessor :preference
1700
+
1701
+ def initialize(preference: nil)
1702
+ @preference = preference
1703
+ end
1704
+ end
1705
+ # Whether or not the payment method should be displayed.
1706
+ attr_accessor :display_preference
1707
+
1708
+ def initialize(display_preference: nil)
1709
+ @display_preference = display_preference
1710
+ end
1711
+ end
1712
+
1553
1713
  class Satispay < Stripe::RequestParams
1554
1714
  class DisplayPreference < Stripe::RequestParams
1555
1715
  # The account's preference for whether or not to display this payment method.
@@ -1714,7 +1874,7 @@ module Stripe
1714
1874
  attr_accessor :alma
1715
1875
  # Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
1716
1876
  attr_accessor :amazon_pay
1717
- # Stripe users can accept [Apple Pay](/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
1877
+ # Stripe users can accept [Apple Pay](https://stripe.com/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](https://stripe.com/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
1718
1878
  attr_accessor :apple_pay
1719
1879
  # Apple Pay Later, a payment method for customers to buy now and pay later, gives your customers a way to split purchases into four installments across six weeks.
1720
1880
  attr_accessor :apple_pay_later
@@ -1758,10 +1918,14 @@ module Stripe
1758
1918
  attr_accessor :ideal
1759
1919
  # JCB is a credit card company based in Japan. JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details.
1760
1920
  attr_accessor :jcb
1921
+ # Kakao Pay is a popular local wallet available in South Korea.
1922
+ attr_accessor :kakao_pay
1761
1923
  # Klarna gives customers a range of [payment options](https://stripe.com/docs/payments/klarna#payment-options) during checkout. Available payment options vary depending on the customer's billing address and the transaction amount. These payment options make it convenient for customers to purchase items in all price ranges. Check this [page](https://stripe.com/docs/payments/klarna) for more details.
1762
1924
  attr_accessor :klarna
1763
1925
  # Konbini allows customers in Japan to pay for bills and online purchases at convenience stores with cash. Check this [page](https://stripe.com/docs/payments/konbini) for more details.
1764
1926
  attr_accessor :konbini
1927
+ # Korean cards let users pay using locally issued cards from South Korea.
1928
+ attr_accessor :kr_card
1765
1929
  # [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.
1766
1930
  attr_accessor :link
1767
1931
  # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
@@ -1770,6 +1934,8 @@ module Stripe
1770
1934
  attr_accessor :multibanco
1771
1935
  # Configuration name.
1772
1936
  attr_accessor :name
1937
+ # Naver Pay is a popular local wallet available in South Korea.
1938
+ attr_accessor :naver_pay
1773
1939
  # Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://stripe.com/docs/payments/nz-bank-account) for more details.
1774
1940
  attr_accessor :nz_bank_account
1775
1941
  # OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. OXXO allows customers to pay bills and online purchases in-store with cash. Check this [page](https://stripe.com/docs/payments/oxxo) for more details.
@@ -1780,6 +1946,8 @@ module Stripe
1780
1946
  attr_accessor :parent
1781
1947
  # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
1782
1948
  attr_accessor :pay_by_bank
1949
+ # PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
1950
+ attr_accessor :payco
1783
1951
  # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
1784
1952
  attr_accessor :paynow
1785
1953
  # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details.
@@ -1794,6 +1962,8 @@ module Stripe
1794
1962
  attr_accessor :qris
1795
1963
  # Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
1796
1964
  attr_accessor :revolut_pay
1965
+ # Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
1966
+ attr_accessor :samsung_pay
1797
1967
  # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
1798
1968
  attr_accessor :satispay
1799
1969
  # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details.
@@ -1842,17 +2012,21 @@ module Stripe
1842
2012
  id_bank_transfer: nil,
1843
2013
  ideal: nil,
1844
2014
  jcb: nil,
2015
+ kakao_pay: nil,
1845
2016
  klarna: nil,
1846
2017
  konbini: nil,
2018
+ kr_card: nil,
1847
2019
  link: nil,
1848
2020
  mobilepay: nil,
1849
2021
  multibanco: nil,
1850
2022
  name: nil,
2023
+ naver_pay: nil,
1851
2024
  nz_bank_account: nil,
1852
2025
  oxxo: nil,
1853
2026
  p24: nil,
1854
2027
  parent: nil,
1855
2028
  pay_by_bank: nil,
2029
+ payco: nil,
1856
2030
  paynow: nil,
1857
2031
  paypal: nil,
1858
2032
  payto: nil,
@@ -1860,6 +2034,7 @@ module Stripe
1860
2034
  promptpay: nil,
1861
2035
  qris: nil,
1862
2036
  revolut_pay: nil,
2037
+ samsung_pay: nil,
1863
2038
  satispay: nil,
1864
2039
  sepa_debit: nil,
1865
2040
  shopeepay: nil,
@@ -1898,17 +2073,21 @@ module Stripe
1898
2073
  @id_bank_transfer = id_bank_transfer
1899
2074
  @ideal = ideal
1900
2075
  @jcb = jcb
2076
+ @kakao_pay = kakao_pay
1901
2077
  @klarna = klarna
1902
2078
  @konbini = konbini
2079
+ @kr_card = kr_card
1903
2080
  @link = link
1904
2081
  @mobilepay = mobilepay
1905
2082
  @multibanco = multibanco
1906
2083
  @name = name
2084
+ @naver_pay = naver_pay
1907
2085
  @nz_bank_account = nz_bank_account
1908
2086
  @oxxo = oxxo
1909
2087
  @p24 = p24
1910
2088
  @parent = parent
1911
2089
  @pay_by_bank = pay_by_bank
2090
+ @payco = payco
1912
2091
  @paynow = paynow
1913
2092
  @paypal = paypal
1914
2093
  @payto = payto
@@ -1916,6 +2095,7 @@ module Stripe
1916
2095
  @promptpay = promptpay
1917
2096
  @qris = qris
1918
2097
  @revolut_pay = revolut_pay
2098
+ @samsung_pay = samsung_pay
1919
2099
  @satispay = satispay
1920
2100
  @sepa_debit = sepa_debit
1921
2101
  @shopeepay = shopeepay
@@ -2388,6 +2568,23 @@ module Stripe
2388
2568
  end
2389
2569
  end
2390
2570
 
2571
+ class KakaoPay < Stripe::RequestParams
2572
+ class DisplayPreference < Stripe::RequestParams
2573
+ # The account's preference for whether or not to display this payment method.
2574
+ attr_accessor :preference
2575
+
2576
+ def initialize(preference: nil)
2577
+ @preference = preference
2578
+ end
2579
+ end
2580
+ # Whether or not the payment method should be displayed.
2581
+ attr_accessor :display_preference
2582
+
2583
+ def initialize(display_preference: nil)
2584
+ @display_preference = display_preference
2585
+ end
2586
+ end
2587
+
2391
2588
  class Klarna < Stripe::RequestParams
2392
2589
  class DisplayPreference < Stripe::RequestParams
2393
2590
  # The account's preference for whether or not to display this payment method.
@@ -2422,6 +2619,23 @@ module Stripe
2422
2619
  end
2423
2620
  end
2424
2621
 
2622
+ class KrCard < Stripe::RequestParams
2623
+ class DisplayPreference < Stripe::RequestParams
2624
+ # The account's preference for whether or not to display this payment method.
2625
+ attr_accessor :preference
2626
+
2627
+ def initialize(preference: nil)
2628
+ @preference = preference
2629
+ end
2630
+ end
2631
+ # Whether or not the payment method should be displayed.
2632
+ attr_accessor :display_preference
2633
+
2634
+ def initialize(display_preference: nil)
2635
+ @display_preference = display_preference
2636
+ end
2637
+ end
2638
+
2425
2639
  class Link < Stripe::RequestParams
2426
2640
  class DisplayPreference < Stripe::RequestParams
2427
2641
  # The account's preference for whether or not to display this payment method.
@@ -2473,6 +2687,23 @@ module Stripe
2473
2687
  end
2474
2688
  end
2475
2689
 
2690
+ class NaverPay < Stripe::RequestParams
2691
+ class DisplayPreference < Stripe::RequestParams
2692
+ # The account's preference for whether or not to display this payment method.
2693
+ attr_accessor :preference
2694
+
2695
+ def initialize(preference: nil)
2696
+ @preference = preference
2697
+ end
2698
+ end
2699
+ # Whether or not the payment method should be displayed.
2700
+ attr_accessor :display_preference
2701
+
2702
+ def initialize(display_preference: nil)
2703
+ @display_preference = display_preference
2704
+ end
2705
+ end
2706
+
2476
2707
  class NzBankAccount < Stripe::RequestParams
2477
2708
  class DisplayPreference < Stripe::RequestParams
2478
2709
  # The account's preference for whether or not to display this payment method.
@@ -2541,6 +2772,23 @@ module Stripe
2541
2772
  end
2542
2773
  end
2543
2774
 
2775
+ class Payco < Stripe::RequestParams
2776
+ class DisplayPreference < Stripe::RequestParams
2777
+ # The account's preference for whether or not to display this payment method.
2778
+ attr_accessor :preference
2779
+
2780
+ def initialize(preference: nil)
2781
+ @preference = preference
2782
+ end
2783
+ end
2784
+ # Whether or not the payment method should be displayed.
2785
+ attr_accessor :display_preference
2786
+
2787
+ def initialize(display_preference: nil)
2788
+ @display_preference = display_preference
2789
+ end
2790
+ end
2791
+
2544
2792
  class Paynow < Stripe::RequestParams
2545
2793
  class DisplayPreference < Stripe::RequestParams
2546
2794
  # The account's preference for whether or not to display this payment method.
@@ -2660,6 +2908,23 @@ module Stripe
2660
2908
  end
2661
2909
  end
2662
2910
 
2911
+ class SamsungPay < Stripe::RequestParams
2912
+ class DisplayPreference < Stripe::RequestParams
2913
+ # The account's preference for whether or not to display this payment method.
2914
+ attr_accessor :preference
2915
+
2916
+ def initialize(preference: nil)
2917
+ @preference = preference
2918
+ end
2919
+ end
2920
+ # Whether or not the payment method should be displayed.
2921
+ attr_accessor :display_preference
2922
+
2923
+ def initialize(display_preference: nil)
2924
+ @display_preference = display_preference
2925
+ end
2926
+ end
2927
+
2663
2928
  class Satispay < Stripe::RequestParams
2664
2929
  class DisplayPreference < Stripe::RequestParams
2665
2930
  # The account's preference for whether or not to display this payment method.
@@ -2826,7 +3091,7 @@ module Stripe
2826
3091
  attr_accessor :alma
2827
3092
  # Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon.
2828
3093
  attr_accessor :amazon_pay
2829
- # Stripe users can accept [Apple Pay](/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
3094
+ # Stripe users can accept [Apple Pay](https://stripe.com/payments/apple-pay) in iOS applications in iOS 9 and later, and on the web in Safari starting with iOS 10 or macOS Sierra. There are no additional fees to process Apple Pay payments, and the [pricing](https://stripe.com/pricing) is the same as other card transactions. Check this [page](https://stripe.com/docs/apple-pay) for more details.
2830
3095
  attr_accessor :apple_pay
2831
3096
  # Apple Pay Later, a payment method for customers to buy now and pay later, gives your customers a way to split purchases into four installments across six weeks.
2832
3097
  attr_accessor :apple_pay_later
@@ -2870,10 +3135,14 @@ module Stripe
2870
3135
  attr_accessor :ideal
2871
3136
  # JCB is a credit card company based in Japan. JCB is currently available in Japan to businesses approved by JCB, and available to all businesses in Australia, Canada, Hong Kong, Japan, New Zealand, Singapore, Switzerland, United Kingdom, United States, and all countries in the European Economic Area except Iceland. Check this [page](https://support.stripe.com/questions/accepting-japan-credit-bureau-%28jcb%29-payments) for more details.
2872
3137
  attr_accessor :jcb
3138
+ # Kakao Pay is a popular local wallet available in South Korea.
3139
+ attr_accessor :kakao_pay
2873
3140
  # Klarna gives customers a range of [payment options](https://stripe.com/docs/payments/klarna#payment-options) during checkout. Available payment options vary depending on the customer's billing address and the transaction amount. These payment options make it convenient for customers to purchase items in all price ranges. Check this [page](https://stripe.com/docs/payments/klarna) for more details.
2874
3141
  attr_accessor :klarna
2875
3142
  # Konbini allows customers in Japan to pay for bills and online purchases at convenience stores with cash. Check this [page](https://stripe.com/docs/payments/konbini) for more details.
2876
3143
  attr_accessor :konbini
3144
+ # Korean cards let users pay using locally issued cards from South Korea.
3145
+ attr_accessor :kr_card
2877
3146
  # [Link](https://stripe.com/docs/payments/link) is a payment method network. With Link, users save their payment details once, then reuse that information to pay with one click for any business on the network.
2878
3147
  attr_accessor :link
2879
3148
  # MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
@@ -2882,6 +3151,8 @@ module Stripe
2882
3151
  attr_accessor :multibanco
2883
3152
  # Configuration name.
2884
3153
  attr_accessor :name
3154
+ # Naver Pay is a popular local wallet available in South Korea.
3155
+ attr_accessor :naver_pay
2885
3156
  # Stripe users in New Zealand can accept Bulk Electronic Clearing System (BECS) direct debit payments from customers with a New Zeland bank account. Check this [page](https://stripe.com/docs/payments/nz-bank-account) for more details.
2886
3157
  attr_accessor :nz_bank_account
2887
3158
  # OXXO is a Mexican chain of convenience stores with thousands of locations across Latin America and represents nearly 20% of online transactions in Mexico. OXXO allows customers to pay bills and online purchases in-store with cash. Check this [page](https://stripe.com/docs/payments/oxxo) for more details.
@@ -2890,6 +3161,8 @@ module Stripe
2890
3161
  attr_accessor :p24
2891
3162
  # Pay by bank is a redirect payment method backed by bank transfers. A customer is redirected to their bank to authorize a bank transfer for a given amount. This removes a lot of the error risks inherent in waiting for the customer to initiate a transfer themselves, and is less expensive than card payments.
2892
3163
  attr_accessor :pay_by_bank
3164
+ # PAYCO is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
3165
+ attr_accessor :payco
2893
3166
  # PayNow is a Singapore-based payment method that allows customers to make a payment using their preferred app from participating banks and participating non-bank financial institutions. Check this [page](https://stripe.com/docs/payments/paynow) for more details.
2894
3167
  attr_accessor :paynow
2895
3168
  # PayPal, a digital wallet popular with customers in Europe, allows your customers worldwide to pay using their PayPal account. Check this [page](https://stripe.com/docs/payments/paypal) for more details.
@@ -2904,6 +3177,8 @@ module Stripe
2904
3177
  attr_accessor :qris
2905
3178
  # Revolut Pay, developed by Revolut, a global finance app, is a digital wallet payment method. Revolut Pay uses the customer’s stored balance or cards to fund the payment, and offers the option for non-Revolut customers to save their details after their first purchase.
2906
3179
  attr_accessor :revolut_pay
3180
+ # Samsung Pay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage local wallet available in South Korea.
3181
+ attr_accessor :samsung_pay
2907
3182
  # Satispay is a [single-use](https://docs.stripe.com/payments/payment-methods#usage) payment method where customers are required to [authenticate](/payments/payment-methods#customer-actions) their payment. Customers pay by being redirected from your website or app, authorizing the payment with Satispay, then returning to your website or app. You get [immediate notification](/payments/payment-methods#payment-notification) of whether the payment succeeded or failed.
2908
3183
  attr_accessor :satispay
2909
3184
  # The [Single Euro Payments Area (SEPA)](https://en.wikipedia.org/wiki/Single_Euro_Payments_Area) is an initiative of the European Union to simplify payments within and across member countries. SEPA established and enforced banking standards to allow for the direct debiting of every EUR-denominated bank account within the SEPA region, check this [page](https://stripe.com/docs/payments/sepa-debit) for more details.
@@ -2953,16 +3228,20 @@ module Stripe
2953
3228
  id_bank_transfer: nil,
2954
3229
  ideal: nil,
2955
3230
  jcb: nil,
3231
+ kakao_pay: nil,
2956
3232
  klarna: nil,
2957
3233
  konbini: nil,
3234
+ kr_card: nil,
2958
3235
  link: nil,
2959
3236
  mobilepay: nil,
2960
3237
  multibanco: nil,
2961
3238
  name: nil,
3239
+ naver_pay: nil,
2962
3240
  nz_bank_account: nil,
2963
3241
  oxxo: nil,
2964
3242
  p24: nil,
2965
3243
  pay_by_bank: nil,
3244
+ payco: nil,
2966
3245
  paynow: nil,
2967
3246
  paypal: nil,
2968
3247
  payto: nil,
@@ -2970,6 +3249,7 @@ module Stripe
2970
3249
  promptpay: nil,
2971
3250
  qris: nil,
2972
3251
  revolut_pay: nil,
3252
+ samsung_pay: nil,
2973
3253
  satispay: nil,
2974
3254
  sepa_debit: nil,
2975
3255
  shopeepay: nil,
@@ -3009,16 +3289,20 @@ module Stripe
3009
3289
  @id_bank_transfer = id_bank_transfer
3010
3290
  @ideal = ideal
3011
3291
  @jcb = jcb
3292
+ @kakao_pay = kakao_pay
3012
3293
  @klarna = klarna
3013
3294
  @konbini = konbini
3295
+ @kr_card = kr_card
3014
3296
  @link = link
3015
3297
  @mobilepay = mobilepay
3016
3298
  @multibanco = multibanco
3017
3299
  @name = name
3300
+ @naver_pay = naver_pay
3018
3301
  @nz_bank_account = nz_bank_account
3019
3302
  @oxxo = oxxo
3020
3303
  @p24 = p24
3021
3304
  @pay_by_bank = pay_by_bank
3305
+ @payco = payco
3022
3306
  @paynow = paynow
3023
3307
  @paypal = paypal
3024
3308
  @payto = payto
@@ -3026,6 +3310,7 @@ module Stripe
3026
3310
  @promptpay = promptpay
3027
3311
  @qris = qris
3028
3312
  @revolut_pay = revolut_pay
3313
+ @samsung_pay = samsung_pay
3029
3314
  @satispay = satispay
3030
3315
  @sepa_debit = sepa_debit
3031
3316
  @shopeepay = shopeepay
@@ -3097,10 +3382,14 @@ module Stripe
3097
3382
  attr_reader :is_default
3098
3383
  # Attribute for field jcb
3099
3384
  attr_reader :jcb
3385
+ # Attribute for field kakao_pay
3386
+ attr_reader :kakao_pay
3100
3387
  # Attribute for field klarna
3101
3388
  attr_reader :klarna
3102
3389
  # Attribute for field konbini
3103
3390
  attr_reader :konbini
3391
+ # Attribute for field kr_card
3392
+ attr_reader :kr_card
3104
3393
  # Attribute for field link
3105
3394
  attr_reader :link
3106
3395
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
@@ -3111,6 +3400,8 @@ module Stripe
3111
3400
  attr_reader :multibanco
3112
3401
  # The configuration's name.
3113
3402
  attr_reader :name
3403
+ # Attribute for field naver_pay
3404
+ attr_reader :naver_pay
3114
3405
  # Attribute for field nz_bank_account
3115
3406
  attr_reader :nz_bank_account
3116
3407
  # String representing the object's type. Objects of the same type share the same value.
@@ -3123,6 +3414,8 @@ module Stripe
3123
3414
  attr_reader :parent
3124
3415
  # Attribute for field pay_by_bank
3125
3416
  attr_reader :pay_by_bank
3417
+ # Attribute for field payco
3418
+ attr_reader :payco
3126
3419
  # Attribute for field paynow
3127
3420
  attr_reader :paynow
3128
3421
  # Attribute for field paypal
@@ -3137,6 +3430,8 @@ module Stripe
3137
3430
  attr_reader :qris
3138
3431
  # Attribute for field revolut_pay
3139
3432
  attr_reader :revolut_pay
3433
+ # Attribute for field samsung_pay
3434
+ attr_reader :samsung_pay
3140
3435
  # Attribute for field satispay
3141
3436
  attr_reader :satispay
3142
3437
  # Attribute for field sepa_debit
@@ -208,7 +208,7 @@ module Stripe
208
208
  #
209
209
  # To activate a payment method on an existing payment method domain, complete the required registration steps specific to the payment method, and then validate the payment method domain with this endpoint.
210
210
  #
211
- # Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
211
+ # Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration).
212
212
  def validate(params = {}, opts = {})
213
213
  request_stripe_object(
214
214
  method: :post,
@@ -223,7 +223,7 @@ module Stripe
223
223
  #
224
224
  # To activate a payment method on an existing payment method domain, complete the required registration steps specific to the payment method, and then validate the payment method domain with this endpoint.
225
225
  #
226
- # Related guides: [Payment method domains](https://stripe.com/docs/payments/payment-methods/pmd-registration).
226
+ # Related guides: [Payment method domains](https://docs.stripe.com/docs/payments/payment-methods/pmd-registration).
227
227
  def self.validate(payment_method_domain, params = {}, opts = {})
228
228
  request_stripe_object(
229
229
  method: :post,
@@ -94,6 +94,10 @@ module Stripe
94
94
  end
95
95
 
96
96
  class Affirm < Stripe::StripeObject
97
+ # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
98
+ attr_reader :location
99
+ # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
100
+ attr_reader :reader
97
101
  # The Affirm transaction ID associated with this payment.
98
102
  attr_reader :transaction_id
99
103
  end
@@ -851,6 +855,10 @@ module Stripe
851
855
  class WechatPay < Stripe::StripeObject
852
856
  # Uniquely identifies this particular WeChat Pay account. You can use this attribute to check whether two WeChat accounts are the same.
853
857
  attr_reader :fingerprint
858
+ # ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
859
+ attr_reader :location
860
+ # ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
861
+ attr_reader :reader
854
862
  # Transaction ID of this particular WeChat Pay transaction.
855
863
  attr_reader :transaction_id
856
864
  end
@@ -4,9 +4,9 @@
4
4
  module Stripe
5
5
  # A `Payout` object is created when you receive funds from Stripe, or when you
6
6
  # initiate a payout to either a bank account or debit card of a [connected
7
- # Stripe account](https://stripe.com/docs/connect/bank-debit-card-payouts). You can retrieve individual payouts,
7
+ # Stripe account](https://docs.stripe.com/docs/connect/bank-debit-card-payouts). You can retrieve individual payouts,
8
8
  # and list all payouts. Payouts are made on [varying
9
- # schedules](https://stripe.com/docs/connect/manage-payout-schedule), depending on your country and
9
+ # schedules](https://docs.stripe.com/docs/connect/manage-payout-schedule), depending on your country and
10
10
  # industry.
11
11
  #
12
12
  # Related guide: [Receiving payouts](https://stripe.com/docs/payouts)
@@ -255,11 +255,11 @@ module Stripe
255
255
  )
256
256
  end
257
257
 
258
- # To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://stripe.com/docs/api#balance) must cover the payout amount. If it doesn't, you receive an “Insufficient Funds” error.
258
+ # To send funds to your own bank account, create a new payout object. Your [Stripe balance](https://docs.stripe.com/api#balance) must cover the payout amount. If it doesn't, you receive an “Insufficient Funds” error.
259
259
  #
260
260
  # If your API key is in test mode, money won't actually be sent, though every other action occurs as if you're in live mode.
261
261
  #
262
- # If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://stripe.com/docs/api#balance_object) details available and pending amounts by source type.
262
+ # If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The [balance object](https://docs.stripe.com/api#balance_object) details available and pending amounts by source type.
263
263
  def self.create(params = {}, opts = {})
264
264
  request_stripe_object(method: :post, path: "/v1/payouts", params: params, opts: opts)
265
265
  end