stripe 21.0.0 → 21.1.0

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 (102) hide show
  1. checksums.yaml +4 -4
  2. data/lib/stripe/api_operations/request.rb +16 -7
  3. data/lib/stripe/api_operations/save.rb +4 -4
  4. data/lib/stripe/api_requestor.rb +54 -34
  5. data/lib/stripe/api_resource.rb +1 -2
  6. data/lib/stripe/api_version.rb +1 -1
  7. data/lib/stripe/connection_manager.rb +3 -0
  8. data/lib/stripe/event_types.rb +20 -0
  9. data/lib/stripe/events/v2_core_account_closed_event.rb +2 -2
  10. data/lib/stripe/events/v2_core_account_including_defaults_updated_event.rb +2 -2
  11. data/lib/stripe/events/v2_core_claimable_sandbox_claimed_event.rb +44 -0
  12. data/lib/stripe/events/v2_core_claimable_sandbox_created_event.rb +44 -0
  13. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +44 -0
  14. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +44 -0
  15. data/lib/stripe/events/v2_core_claimable_sandbox_updated_event.rb +44 -0
  16. data/lib/stripe/object_types.rb +1 -0
  17. data/lib/stripe/params/billing_portal/configuration_create_params.rb +1 -1
  18. data/lib/stripe/params/billing_portal/configuration_update_params.rb +1 -1
  19. data/lib/stripe/params/checkout/session_create_params.rb +8 -1
  20. data/lib/stripe/params/coupon_create_params.rb +1 -1
  21. data/lib/stripe/params/financial_connections/session_create_params.rb +1 -1
  22. data/lib/stripe/params/invoice_item_create_params.rb +1 -1
  23. data/lib/stripe/params/payment_intent_capture_params.rb +663 -1
  24. data/lib/stripe/params/payment_intent_confirm_params.rb +663 -1
  25. data/lib/stripe/params/payment_intent_create_params.rb +664 -2
  26. data/lib/stripe/params/payment_intent_update_params.rb +664 -2
  27. data/lib/stripe/params/payment_link_update_params.rb +4 -0
  28. data/lib/stripe/params/product_create_params.rb +4 -1
  29. data/lib/stripe/params/product_update_params.rb +4 -1
  30. data/lib/stripe/params/quote_create_params.rb +1 -1
  31. data/lib/stripe/params/quote_update_params.rb +1 -1
  32. data/lib/stripe/params/reporting/report_run_create_params.rb +4 -0
  33. data/lib/stripe/params/tax/registration_create_params.rb +13 -1
  34. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_fail_params.rb +23 -1
  35. data/lib/stripe/params/test_helpers/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
  36. data/lib/stripe/params/treasury/inbound_transfer_fail_params.rb +23 -1
  37. data/lib/stripe/params/treasury/inbound_transfer_return_inbound_transfer_params.rb +34 -1
  38. data/lib/stripe/params/v2/core/account_create_params.rb +138 -4
  39. data/lib/stripe/params/v2/core/account_link_create_params.rb +19 -1
  40. data/lib/stripe/params/v2/core/account_update_params.rb +138 -4
  41. data/lib/stripe/params/v2/core/claimable_sandbox_create_params.rb +63 -0
  42. data/lib/stripe/params/v2/core/claimable_sandbox_renew_onboarding_link_params.rb +32 -0
  43. data/lib/stripe/params/v2/core/claimable_sandbox_retrieve_params.rb +17 -0
  44. data/lib/stripe/params/v2/money_management/financial_account_list_params.rb +1 -1
  45. data/lib/stripe/params/v2/money_management/financial_address_create_params.rb +2 -2
  46. data/lib/stripe/params.rb +7 -0
  47. data/lib/stripe/request_options.rb +19 -2
  48. data/lib/stripe/resources/apps/install.rb +2 -2
  49. data/lib/stripe/resources/balance_transaction.rb +1 -1
  50. data/lib/stripe/resources/charge.rb +274 -5
  51. data/lib/stripe/resources/checkout/session.rb +4 -0
  52. data/lib/stripe/resources/confirmation_token.rb +2 -2
  53. data/lib/stripe/resources/coupon.rb +6 -3
  54. data/lib/stripe/resources/dispute.rb +1 -1
  55. data/lib/stripe/resources/event.rb +2 -2
  56. data/lib/stripe/resources/issuing/card.rb +1 -1
  57. data/lib/stripe/resources/payment_attempt_record.rb +4 -1
  58. data/lib/stripe/resources/payment_intent.rb +575 -2
  59. data/lib/stripe/resources/payment_method.rb +2 -2
  60. data/lib/stripe/resources/payment_record.rb +4 -1
  61. data/lib/stripe/resources/product.rb +2 -0
  62. data/lib/stripe/resources/radar/payment_evaluation.rb +1 -1
  63. data/lib/stripe/resources/refund.rb +38 -0
  64. data/lib/stripe/resources/reporting/report_run.rb +2 -0
  65. data/lib/stripe/resources/reserve/hold.rb +1 -1
  66. data/lib/stripe/resources/setup_attempt.rb +2 -2
  67. data/lib/stripe/resources/setup_intent.rb +1 -1
  68. data/lib/stripe/resources/tax/registration.rb +16 -1
  69. data/lib/stripe/resources/treasury/inbound_transfer.rb +35 -7
  70. data/lib/stripe/resources/treasury/outbound_payment.rb +37 -9
  71. data/lib/stripe/resources/treasury/outbound_transfer.rb +37 -9
  72. data/lib/stripe/resources/treasury/received_credit.rb +1 -1
  73. data/lib/stripe/resources/treasury/received_debit.rb +1 -1
  74. data/lib/stripe/resources/v2/core/account.rb +246 -3
  75. data/lib/stripe/resources/v2/core/account_link.rb +18 -1
  76. data/lib/stripe/resources/v2/core/account_person_token.rb +2 -0
  77. data/lib/stripe/resources/v2/core/account_token.rb +3 -1
  78. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +269 -0
  79. data/lib/stripe/resources/v2/core/event_base.rb +8 -25
  80. data/lib/stripe/resources/v2/core/event_notification.rb +32 -0
  81. data/lib/stripe/resources.rb +17 -0
  82. data/lib/stripe/services/apps/install_service.rb +2 -2
  83. data/lib/stripe/services/checkout/session_service.rb +2 -0
  84. data/lib/stripe/services/event_service.rb +1 -1
  85. data/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.rb +3 -3
  86. data/lib/stripe/services/test_helpers/treasury/outbound_payment_service.rb +4 -4
  87. data/lib/stripe/services/test_helpers/treasury/outbound_transfer_service.rb +4 -4
  88. data/lib/stripe/services/test_helpers/treasury/received_credit_service.rb +1 -1
  89. data/lib/stripe/services/test_helpers/treasury/received_debit_service.rb +1 -1
  90. data/lib/stripe/services/v2/core/account_link_service.rb +1 -1
  91. data/lib/stripe/services/v2/core/account_token_service.rb +2 -2
  92. data/lib/stripe/services/v2/core/accounts/person_token_service.rb +2 -1
  93. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +49 -0
  94. data/lib/stripe/services/v2/core_service.rb +2 -1
  95. data/lib/stripe/services.rb +2 -0
  96. data/lib/stripe/stripe_client.rb +6 -0
  97. data/lib/stripe/stripe_configuration.rb +9 -2
  98. data/lib/stripe/stripe_event_notification_handler.rb +26 -0
  99. data/lib/stripe/stripe_object.rb +22 -9
  100. data/lib/stripe/version.rb +1 -1
  101. data/rbi/stripe.rbi +6888 -221
  102. metadata +12 -2
@@ -1136,7 +1136,7 @@ module Stripe
1136
1136
  end
1137
1137
 
1138
1138
  class VerifyWithMicrodeposits < ::Stripe::StripeObject
1139
- # The timestamp when the microdeposits are expected to land.
1139
+ # The timestamp when the microdeposits are expected to land. Null for instant microdeposits.
1140
1140
  attr_reader :arrival_date
1141
1141
  # The URL for the hosted verification page, which allows customers to verify their bank account.
1142
1142
  attr_reader :hosted_verification_url
@@ -1286,17 +1286,590 @@ module Stripe
1286
1286
  end
1287
1287
 
1288
1288
  class PaymentDetails < ::Stripe::StripeObject
1289
+ class CarRentalDatum < ::Stripe::StripeObject
1290
+ class Affiliate < ::Stripe::StripeObject
1291
+ # Affiliate code.
1292
+ attr_reader :code
1293
+ # Affiliate name.
1294
+ attr_reader :name
1295
+
1296
+ def self.inner_class_types
1297
+ @inner_class_types = {}
1298
+ end
1299
+
1300
+ def self.field_remappings
1301
+ @field_remappings = {}
1302
+ end
1303
+ end
1304
+
1305
+ class Distance < ::Stripe::StripeObject
1306
+ # Distance amount.
1307
+ attr_reader :amount
1308
+ # Unit for the distance.
1309
+ attr_reader :unit
1310
+
1311
+ def self.inner_class_types
1312
+ @inner_class_types = {}
1313
+ end
1314
+
1315
+ def self.field_remappings
1316
+ @field_remappings = {}
1317
+ end
1318
+ end
1319
+
1320
+ class Driver < ::Stripe::StripeObject
1321
+ class DateOfBirth < ::Stripe::StripeObject
1322
+ # Day of birth.
1323
+ attr_reader :day
1324
+ # Month of birth.
1325
+ attr_reader :month
1326
+ # Year of birth.
1327
+ attr_reader :year
1328
+
1329
+ def self.inner_class_types
1330
+ @inner_class_types = {}
1331
+ end
1332
+
1333
+ def self.field_remappings
1334
+ @field_remappings = {}
1335
+ end
1336
+ end
1337
+ # Attribute for field date_of_birth
1338
+ attr_reader :date_of_birth
1339
+ # Driver's identification number.
1340
+ attr_reader :driver_identification_number
1341
+ # Driver's tax number.
1342
+ attr_reader :driver_tax_number
1343
+ # Full name of the driver.
1344
+ attr_reader :name
1345
+
1346
+ def self.inner_class_types
1347
+ @inner_class_types = { date_of_birth: DateOfBirth }
1348
+ end
1349
+
1350
+ def self.field_remappings
1351
+ @field_remappings = {}
1352
+ end
1353
+ end
1354
+
1355
+ class DropOff < ::Stripe::StripeObject
1356
+ class Address < ::Stripe::StripeObject
1357
+ # City, district, suburb, town, or village.
1358
+ attr_reader :city
1359
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1360
+ attr_reader :country
1361
+ # Address line 1, such as the street, PO Box, or company name.
1362
+ attr_reader :line1
1363
+ # Address line 2, such as the apartment, suite, unit, or building.
1364
+ attr_reader :line2
1365
+ # ZIP or postal code.
1366
+ attr_reader :postal_code
1367
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1368
+ attr_reader :state
1369
+
1370
+ def self.inner_class_types
1371
+ @inner_class_types = {}
1372
+ end
1373
+
1374
+ def self.field_remappings
1375
+ @field_remappings = {}
1376
+ end
1377
+ end
1378
+ # Attribute for field address
1379
+ attr_reader :address
1380
+ # Name of the location.
1381
+ attr_reader :location_name
1382
+ # Time associated with the location.
1383
+ attr_reader :time
1384
+
1385
+ def self.inner_class_types
1386
+ @inner_class_types = { address: Address }
1387
+ end
1388
+
1389
+ def self.field_remappings
1390
+ @field_remappings = {}
1391
+ end
1392
+ end
1393
+
1394
+ class Insurance < ::Stripe::StripeObject
1395
+ # Amount of the insurance.
1396
+ attr_reader :amount
1397
+ # Currency for the insurance price.
1398
+ attr_reader :currency
1399
+ # Name of the insurance company.
1400
+ attr_reader :insurance_company_name
1401
+ # Type of insurance.
1402
+ attr_reader :insurance_type
1403
+
1404
+ def self.inner_class_types
1405
+ @inner_class_types = {}
1406
+ end
1407
+
1408
+ def self.field_remappings
1409
+ @field_remappings = {}
1410
+ end
1411
+ end
1412
+
1413
+ class Pickup < ::Stripe::StripeObject
1414
+ class Address < ::Stripe::StripeObject
1415
+ # City, district, suburb, town, or village.
1416
+ attr_reader :city
1417
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1418
+ attr_reader :country
1419
+ # Address line 1, such as the street, PO Box, or company name.
1420
+ attr_reader :line1
1421
+ # Address line 2, such as the apartment, suite, unit, or building.
1422
+ attr_reader :line2
1423
+ # ZIP or postal code.
1424
+ attr_reader :postal_code
1425
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1426
+ attr_reader :state
1427
+
1428
+ def self.inner_class_types
1429
+ @inner_class_types = {}
1430
+ end
1431
+
1432
+ def self.field_remappings
1433
+ @field_remappings = {}
1434
+ end
1435
+ end
1436
+ # Attribute for field address
1437
+ attr_reader :address
1438
+ # Name of the location.
1439
+ attr_reader :location_name
1440
+ # Time associated with the location.
1441
+ attr_reader :time
1442
+
1443
+ def self.inner_class_types
1444
+ @inner_class_types = { address: Address }
1445
+ end
1446
+
1447
+ def self.field_remappings
1448
+ @field_remappings = {}
1449
+ end
1450
+ end
1451
+
1452
+ class Total < ::Stripe::StripeObject
1453
+ class Discounts < ::Stripe::StripeObject
1454
+ # Corporate client discount code.
1455
+ attr_reader :corporate_client_code
1456
+ # Coupon code applied.
1457
+ attr_reader :coupon
1458
+ # Maximum free miles or kilometers included.
1459
+ attr_reader :maximum_free_miles_or_kilometers
1460
+
1461
+ def self.inner_class_types
1462
+ @inner_class_types = {}
1463
+ end
1464
+
1465
+ def self.field_remappings
1466
+ @field_remappings = {}
1467
+ end
1468
+ end
1469
+
1470
+ class ExtraCharge < ::Stripe::StripeObject
1471
+ # Amount of the extra charge.
1472
+ attr_reader :amount
1473
+ # Type of extra charge.
1474
+ attr_reader :type
1475
+
1476
+ def self.inner_class_types
1477
+ @inner_class_types = {}
1478
+ end
1479
+
1480
+ def self.field_remappings
1481
+ @field_remappings = {}
1482
+ end
1483
+ end
1484
+
1485
+ class Tax < ::Stripe::StripeObject
1486
+ class TaxItem < ::Stripe::StripeObject
1487
+ # Tax amount.
1488
+ attr_reader :amount
1489
+ # Tax rate.
1490
+ attr_reader :rate
1491
+ # Type of tax.
1492
+ attr_reader :type
1493
+
1494
+ def self.inner_class_types
1495
+ @inner_class_types = {}
1496
+ end
1497
+
1498
+ def self.field_remappings
1499
+ @field_remappings = {}
1500
+ end
1501
+ end
1502
+ # Indicates whether the rental is tax-exempt.
1503
+ attr_reader :tax_exempt_indicator
1504
+ # Tax details.
1505
+ attr_reader :tax_items
1506
+
1507
+ def self.inner_class_types
1508
+ @inner_class_types = { tax_items: TaxItem }
1509
+ end
1510
+
1511
+ def self.field_remappings
1512
+ @field_remappings = {}
1513
+ end
1514
+ end
1515
+ # Total amount.
1516
+ attr_reader :amount
1517
+ # Currency for the total amount.
1518
+ attr_reader :currency
1519
+ # Attribute for field discounts
1520
+ attr_reader :discounts
1521
+ # Additional charges for the rental.
1522
+ attr_reader :extra_charges
1523
+ # Rate per unit.
1524
+ attr_reader :rate_per_unit
1525
+ # Unit for the rate.
1526
+ attr_reader :rate_unit
1527
+ # Attribute for field tax
1528
+ attr_reader :tax
1529
+
1530
+ def self.inner_class_types
1531
+ @inner_class_types = { discounts: Discounts, extra_charges: ExtraCharge, tax: Tax }
1532
+ end
1533
+
1534
+ def self.field_remappings
1535
+ @field_remappings = {}
1536
+ end
1537
+ end
1538
+
1539
+ class Vehicle < ::Stripe::StripeObject
1540
+ # Make of the vehicle.
1541
+ attr_reader :make
1542
+ # Model of the vehicle.
1543
+ attr_reader :model
1544
+ # Odometer reading.
1545
+ attr_reader :odometer
1546
+ # Type of the vehicle.
1547
+ attr_reader :type
1548
+ # Class of the vehicle.
1549
+ attr_reader :vehicle_class
1550
+ # Vehicle identification number.
1551
+ attr_reader :vehicle_identification_number
1552
+
1553
+ def self.inner_class_types
1554
+ @inner_class_types = {}
1555
+ end
1556
+
1557
+ def self.field_remappings
1558
+ @field_remappings = {}
1559
+ end
1560
+ end
1561
+ # Attribute for field affiliate
1562
+ attr_reader :affiliate
1563
+ # The booking number associated with the car rental.
1564
+ attr_reader :booking_number
1565
+ # The name of the car rental company.
1566
+ attr_reader :carrier_name
1567
+ # The customer service phone number of the car rental company.
1568
+ attr_reader :customer_service_phone_number
1569
+ # Number of days the car is being rented.
1570
+ attr_reader :days_rented
1571
+ # Attribute for field distance
1572
+ attr_reader :distance
1573
+ # The details of the drivers associated with the rental.
1574
+ attr_reader :drivers
1575
+ # Attribute for field drop_off
1576
+ attr_reader :drop_off
1577
+ # Insurance details for the car rental.
1578
+ attr_reader :insurances
1579
+ # Indicates if the customer did not keep nor cancel their booking.
1580
+ attr_reader :no_show_indicator
1581
+ # Attribute for field pickup
1582
+ attr_reader :pickup
1583
+ # Name of the person renting the vehicle.
1584
+ attr_reader :renter_name
1585
+ # Attribute for field total
1586
+ attr_reader :total
1587
+ # Attribute for field vehicle
1588
+ attr_reader :vehicle
1589
+
1590
+ def self.inner_class_types
1591
+ @inner_class_types = {
1592
+ affiliate: Affiliate,
1593
+ distance: Distance,
1594
+ drivers: Driver,
1595
+ drop_off: DropOff,
1596
+ insurances: Insurance,
1597
+ pickup: Pickup,
1598
+ total: Total,
1599
+ vehicle: Vehicle,
1600
+ }
1601
+ end
1602
+
1603
+ def self.field_remappings
1604
+ @field_remappings = {}
1605
+ end
1606
+ end
1607
+
1608
+ class LodgingDatum < ::Stripe::StripeObject
1609
+ class Accommodation < ::Stripe::StripeObject
1610
+ # Type of accommodation.
1611
+ attr_reader :accommodation_type
1612
+ # Bed type.
1613
+ attr_reader :bed_type
1614
+ # Daily accommodation rate in cents.
1615
+ attr_reader :daily_rate_amount
1616
+ # Number of nights.
1617
+ attr_reader :nights
1618
+ # Number of rooms, cabanas, apartments, and so on.
1619
+ attr_reader :number_of_rooms
1620
+ # Rate type.
1621
+ attr_reader :rate_type
1622
+ # Whether smoking is allowed.
1623
+ attr_reader :smoking_indicator
1624
+
1625
+ def self.inner_class_types
1626
+ @inner_class_types = {}
1627
+ end
1628
+
1629
+ def self.field_remappings
1630
+ @field_remappings = {}
1631
+ end
1632
+ end
1633
+
1634
+ class Affiliate < ::Stripe::StripeObject
1635
+ # Affiliate partner code.
1636
+ attr_reader :code
1637
+ # Affiliate partner name.
1638
+ attr_reader :name
1639
+
1640
+ def self.inner_class_types
1641
+ @inner_class_types = {}
1642
+ end
1643
+
1644
+ def self.field_remappings
1645
+ @field_remappings = {}
1646
+ end
1647
+ end
1648
+
1649
+ class Guest < ::Stripe::StripeObject
1650
+ # Guest's full name.
1651
+ attr_reader :name
1652
+
1653
+ def self.inner_class_types
1654
+ @inner_class_types = {}
1655
+ end
1656
+
1657
+ def self.field_remappings
1658
+ @field_remappings = {}
1659
+ end
1660
+ end
1661
+
1662
+ class Host < ::Stripe::StripeObject
1663
+ class Address < ::Stripe::StripeObject
1664
+ # City, district, suburb, town, or village.
1665
+ attr_reader :city
1666
+ # Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
1667
+ attr_reader :country
1668
+ # Address line 1, such as the street, PO Box, or company name.
1669
+ attr_reader :line1
1670
+ # Address line 2, such as the apartment, suite, unit, or building.
1671
+ attr_reader :line2
1672
+ # ZIP or postal code.
1673
+ attr_reader :postal_code
1674
+ # State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
1675
+ attr_reader :state
1676
+
1677
+ def self.inner_class_types
1678
+ @inner_class_types = {}
1679
+ end
1680
+
1681
+ def self.field_remappings
1682
+ @field_remappings = {}
1683
+ end
1684
+ end
1685
+ # Attribute for field address
1686
+ attr_reader :address
1687
+ # Host's country of domicile.
1688
+ attr_reader :country_of_domicile
1689
+ # Reference number for the host.
1690
+ attr_reader :host_reference
1691
+ # Type of host.
1692
+ attr_reader :host_type
1693
+ # Name of the lodging property or host.
1694
+ attr_reader :name
1695
+ # Total number of reservations for the host.
1696
+ attr_reader :number_of_reservations
1697
+ # Property phone number.
1698
+ attr_reader :property_phone_number
1699
+ # Host's registration date.
1700
+ attr_reader :registered_at
1701
+
1702
+ def self.inner_class_types
1703
+ @inner_class_types = { address: Address }
1704
+ end
1705
+
1706
+ def self.field_remappings
1707
+ @field_remappings = {}
1708
+ end
1709
+ end
1710
+
1711
+ class Insurance < ::Stripe::StripeObject
1712
+ # Price of the insurance coverage in cents.
1713
+ attr_reader :amount
1714
+ # Currency of the insurance amount.
1715
+ attr_reader :currency
1716
+ # Name of the insurance company.
1717
+ attr_reader :insurance_company_name
1718
+ # Type of insurance coverage.
1719
+ attr_reader :insurance_type
1720
+
1721
+ def self.inner_class_types
1722
+ @inner_class_types = {}
1723
+ end
1724
+
1725
+ def self.field_remappings
1726
+ @field_remappings = {}
1727
+ end
1728
+ end
1729
+
1730
+ class Total < ::Stripe::StripeObject
1731
+ class Discounts < ::Stripe::StripeObject
1732
+ # Corporate client discount code.
1733
+ attr_reader :corporate_client_code
1734
+ # Coupon code.
1735
+ attr_reader :coupon
1736
+
1737
+ def self.inner_class_types
1738
+ @inner_class_types = {}
1739
+ end
1740
+
1741
+ def self.field_remappings
1742
+ @field_remappings = {}
1743
+ end
1744
+ end
1745
+
1746
+ class ExtraCharge < ::Stripe::StripeObject
1747
+ # Amount of the extra charge in cents.
1748
+ attr_reader :amount
1749
+ # Type of extra charge.
1750
+ attr_reader :type
1751
+
1752
+ def self.inner_class_types
1753
+ @inner_class_types = {}
1754
+ end
1755
+
1756
+ def self.field_remappings
1757
+ @field_remappings = {}
1758
+ end
1759
+ end
1760
+
1761
+ class Tax < ::Stripe::StripeObject
1762
+ class TaxItem < ::Stripe::StripeObject
1763
+ # Tax amount in cents.
1764
+ attr_reader :amount
1765
+ # Tax rate.
1766
+ attr_reader :rate
1767
+ # Type of tax applied.
1768
+ attr_reader :type
1769
+
1770
+ def self.inner_class_types
1771
+ @inner_class_types = {}
1772
+ end
1773
+
1774
+ def self.field_remappings
1775
+ @field_remappings = {}
1776
+ end
1777
+ end
1778
+ # Indicates whether the transaction is tax exempt.
1779
+ attr_reader :tax_exempt_indicator
1780
+ # Tax details.
1781
+ attr_reader :tax_items
1782
+
1783
+ def self.inner_class_types
1784
+ @inner_class_types = { tax_items: TaxItem }
1785
+ end
1786
+
1787
+ def self.field_remappings
1788
+ @field_remappings = {}
1789
+ end
1790
+ end
1791
+ # Total price of the lodging reservation in cents.
1792
+ attr_reader :amount
1793
+ # Cash advances in cents.
1794
+ attr_reader :cash_advances
1795
+ # Currency of the total amount.
1796
+ attr_reader :currency
1797
+ # Attribute for field discounts
1798
+ attr_reader :discounts
1799
+ # Additional charges for the lodging.
1800
+ attr_reader :extra_charges
1801
+ # Prepaid amount in cents.
1802
+ attr_reader :prepaid_amount
1803
+ # Attribute for field tax
1804
+ attr_reader :tax
1805
+
1806
+ def self.inner_class_types
1807
+ @inner_class_types = { discounts: Discounts, extra_charges: ExtraCharge, tax: Tax }
1808
+ end
1809
+
1810
+ def self.field_remappings
1811
+ @field_remappings = {}
1812
+ end
1813
+ end
1814
+ # Attribute for field accommodation
1815
+ attr_reader :accommodation
1816
+ # Attribute for field affiliate
1817
+ attr_reader :affiliate
1818
+ # Booking confirmation number for the lodging.
1819
+ attr_reader :booking_number
1820
+ # Check-in date.
1821
+ attr_reader :checkin_at
1822
+ # Check-out date.
1823
+ attr_reader :checkout_at
1824
+ # Customer service phone number for the lodging company.
1825
+ attr_reader :customer_service_phone_number
1826
+ # Whether the lodging is compliant with any hotel fire safety regulations.
1827
+ attr_reader :fire_safety_act_compliance_indicator
1828
+ # List of guests for the lodging.
1829
+ attr_reader :guests
1830
+ # Attribute for field host
1831
+ attr_reader :host
1832
+ # List of insurances for the lodging.
1833
+ attr_reader :insurances
1834
+ # Whether the renter is a no-show.
1835
+ attr_reader :no_show_indicator
1836
+ # Renter ID number for the lodging.
1837
+ attr_reader :renter_id_number
1838
+ # Renter name for the lodging.
1839
+ attr_reader :renter_name
1840
+ # Attribute for field total
1841
+ attr_reader :total
1842
+
1843
+ def self.inner_class_types
1844
+ @inner_class_types = {
1845
+ accommodation: Accommodation,
1846
+ affiliate: Affiliate,
1847
+ guests: Guest,
1848
+ host: Host,
1849
+ insurances: Insurance,
1850
+ total: Total,
1851
+ }
1852
+ end
1853
+
1854
+ def self.field_remappings
1855
+ @field_remappings = {}
1856
+ end
1857
+ end
1858
+ # Attribute for field car_rental_data
1859
+ attr_reader :car_rental_data
1289
1860
  # A unique value to identify the customer. This field is available only for card payments.
1290
1861
  #
1291
1862
  # This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1292
1863
  attr_reader :customer_reference
1864
+ # Attribute for field lodging_data
1865
+ attr_reader :lodging_data
1293
1866
  # A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1294
1867
  #
1295
1868
  # For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
1296
1869
  attr_reader :order_reference
1297
1870
 
1298
1871
  def self.inner_class_types
1299
- @inner_class_types = {}
1872
+ @inner_class_types = { car_rental_data: CarRentalDatum, lodging_data: LodgingDatum }
1300
1873
  end
1301
1874
 
1302
1875
  def self.field_remappings
@@ -226,9 +226,9 @@ module Stripe
226
226
 
227
227
  class Card < ::Stripe::StripeObject
228
228
  class Checks < ::Stripe::StripeObject
229
- # If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
229
+ # If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
230
230
  attr_reader :address_line1_check
231
- # If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
231
+ # If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
232
232
  attr_reader :address_postal_code_check
233
233
  # If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
234
234
  attr_reader :cvc_check
@@ -501,7 +501,7 @@ module Stripe
501
501
  class Checks < ::Stripe::StripeObject
502
502
  # If you provide a value for `address.line1`, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
503
503
  attr_reader :address_line1_check
504
- # If you provide a address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
504
+ # If you provide an address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
505
505
  attr_reader :address_postal_code_check
506
506
  # If you provide a CVC, the check results is one of `pass`, `fail`, `unavailable`, or `unchecked`.
507
507
  attr_reader :cvc_check
@@ -1396,6 +1396,9 @@ module Stripe
1396
1396
  end
1397
1397
 
1398
1398
  class Paypay < ::Stripe::StripeObject
1399
+ # Uniquely identifies this particular PayPay account. You can use this attribute to check whether two PayPay accounts are the same.
1400
+ attr_reader :fingerprint
1401
+
1399
1402
  def self.inner_class_types
1400
1403
  @inner_class_types = {}
1401
1404
  end
@@ -26,6 +26,8 @@ module Stripe
26
26
  nested_resource_class_methods :feature, operations: %i[create retrieve delete list]
27
27
 
28
28
  class MarketingFeature < ::Stripe::StripeObject
29
+ # Optional text that describes what a customer loses by canceling, shown for this marketing feature in the Customer Portal cancellation flow. Up to 80 characters long. If you omit it when you update `marketing_features`, Stripe keeps the message stored for the feature with the same name. Duplicate names are matched in order. Set it to an empty string to remove the override. When no override is stored, eligible cancellation flows use the marketing feature name. A renamed feature is treated as a new feature, so send the message again to keep it.
30
+ attr_reader :loss_message
29
31
  # The marketing feature name. Up to 80 characters long.
30
32
  attr_reader :name
31
33
 
@@ -505,7 +505,7 @@ module Stripe
505
505
  attr_reader :outcome
506
506
  # Payment details attached to this payment evaluation.
507
507
  attr_reader :payment_details
508
- # Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`.
508
+ # Recommended action for this payment based on its evaluated signals and rules.
509
509
  attr_reader :recommended_action
510
510
  # Collection of signals for this payment evaluation.
511
511
  attr_reader :signals