stripe 15.6.0.pre.alpha.1 → 15.6.0.pre.alpha.3

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 (240) hide show
  1. checksums.yaml +4 -4
  2. data/API_VERSION +1 -1
  3. data/CHANGELOG.md +27 -6
  4. data/OPENAPI_VERSION +1 -1
  5. data/VERSION +1 -1
  6. data/lib/stripe/event_types.rb +5 -1
  7. data/lib/stripe/events/v2_billing_cadence_billed_event.rb +2 -0
  8. data/lib/stripe/events/{v2_billing_cadence_errored_event.rb → v2_core_claimable_sandbox_claimed_event.rb} +3 -3
  9. data/lib/stripe/events/v2_core_claimable_sandbox_expired_event.rb +21 -0
  10. data/lib/stripe/events/v2_core_claimable_sandbox_expiring_event.rb +21 -0
  11. data/lib/stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event.rb +21 -0
  12. data/lib/stripe/resources/account.rb +443 -0
  13. data/lib/stripe/resources/account_link.rb +8 -0
  14. data/lib/stripe/resources/account_notice.rb +24 -0
  15. data/lib/stripe/resources/account_session.rb +435 -10
  16. data/lib/stripe/resources/apple_pay_domain.rb +8 -0
  17. data/lib/stripe/resources/application.rb +8 -0
  18. data/lib/stripe/resources/application_fee.rb +16 -0
  19. data/lib/stripe/resources/application_fee_refund.rb +8 -0
  20. data/lib/stripe/resources/apps/secret.rb +16 -0
  21. data/lib/stripe/resources/balance.rb +159 -0
  22. data/lib/stripe/resources/balance_settings.rb +40 -0
  23. data/lib/stripe/resources/balance_transaction.rb +16 -0
  24. data/lib/stripe/resources/bank_account.rb +40 -0
  25. data/lib/stripe/resources/billing/alert.rb +75 -0
  26. data/lib/stripe/resources/billing/alert_triggered.rb +8 -0
  27. data/lib/stripe/resources/billing/credit_balance_summary.rb +80 -0
  28. data/lib/stripe/resources/billing/credit_balance_transaction.rb +107 -0
  29. data/lib/stripe/resources/billing/credit_grant.rb +72 -0
  30. data/lib/stripe/resources/billing/meter.rb +45 -0
  31. data/lib/stripe/resources/billing/meter_event.rb +8 -0
  32. data/lib/stripe/resources/billing/meter_event_adjustment.rb +16 -0
  33. data/lib/stripe/resources/billing/meter_event_summary.rb +8 -0
  34. data/lib/stripe/resources/billing/meter_usage.rb +8 -0
  35. data/lib/stripe/resources/billing/meter_usage_row.rb +8 -0
  36. data/lib/stripe/resources/billing_portal/configuration.rb +122 -0
  37. data/lib/stripe/resources/billing_portal/session.rb +101 -0
  38. data/lib/stripe/resources/capability.rb +56 -0
  39. data/lib/stripe/resources/capital/financing_offer.rb +24 -0
  40. data/lib/stripe/resources/capital/financing_summary.rb +24 -0
  41. data/lib/stripe/resources/capital/financing_transaction.rb +24 -0
  42. data/lib/stripe/resources/card.rb +16 -0
  43. data/lib/stripe/resources/cash_balance.rb +16 -0
  44. data/lib/stripe/resources/charge.rb +1052 -16
  45. data/lib/stripe/resources/checkout/session.rb +950 -0
  46. data/lib/stripe/resources/climate/order.rb +32 -0
  47. data/lib/stripe/resources/climate/product.rb +16 -0
  48. data/lib/stripe/resources/climate/supplier.rb +16 -0
  49. data/lib/stripe/resources/confirmation_token.rb +960 -38
  50. data/lib/stripe/resources/connect_collection_transfer.rb +8 -0
  51. data/lib/stripe/resources/country_spec.rb +32 -0
  52. data/lib/stripe/resources/coupon.rb +36 -0
  53. data/lib/stripe/resources/credit_note.rb +70 -0
  54. data/lib/stripe/resources/credit_note_line_item.rb +53 -0
  55. data/lib/stripe/resources/customer.rb +77 -0
  56. data/lib/stripe/resources/customer_balance_transaction.rb +8 -0
  57. data/lib/stripe/resources/customer_cash_balance_transaction.rb +108 -0
  58. data/lib/stripe/resources/customer_session.rb +52 -0
  59. data/lib/stripe/resources/discount.rb +8 -0
  60. data/lib/stripe/resources/dispute.rb +166 -0
  61. data/lib/stripe/resources/entitlements/active_entitlement.rb +8 -0
  62. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +8 -0
  63. data/lib/stripe/resources/entitlements/feature.rb +8 -0
  64. data/lib/stripe/resources/ephemeral_key.rb +8 -0
  65. data/lib/stripe/resources/event.rb +56 -0
  66. data/lib/stripe/resources/exchange_rate.rb +8 -0
  67. data/lib/stripe/resources/file.rb +8 -0
  68. data/lib/stripe/resources/file_link.rb +8 -0
  69. data/lib/stripe/resources/financial_connections/account.rb +79 -0
  70. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +8 -0
  71. data/lib/stripe/resources/financial_connections/account_owner.rb +8 -0
  72. data/lib/stripe/resources/financial_connections/account_ownership.rb +8 -0
  73. data/lib/stripe/resources/financial_connections/institution.rb +53 -0
  74. data/lib/stripe/resources/financial_connections/session.rb +63 -1
  75. data/lib/stripe/resources/financial_connections/transaction.rb +16 -0
  76. data/lib/stripe/resources/forwarding/request.rb +52 -0
  77. data/lib/stripe/resources/funding_instructions.rb +193 -0
  78. data/lib/stripe/resources/fx_quote.rb +48 -0
  79. data/lib/stripe/resources/identity/verification_report.rb +166 -1
  80. data/lib/stripe/resources/identity/verification_session.rb +126 -1
  81. data/lib/stripe/resources/invoice.rb +441 -3
  82. data/lib/stripe/resources/invoice_item.rb +88 -0
  83. data/lib/stripe/resources/invoice_line_item.rb +186 -0
  84. data/lib/stripe/resources/invoice_payment.rb +24 -0
  85. data/lib/stripe/resources/invoice_rendering_template.rb +8 -0
  86. data/lib/stripe/resources/issuing/authorization.rb +177 -0
  87. data/lib/stripe/resources/issuing/card.rb +96 -0
  88. data/lib/stripe/resources/issuing/cardholder.rb +110 -0
  89. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +82 -0
  90. data/lib/stripe/resources/issuing/dispute.rb +97 -0
  91. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +16 -0
  92. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +8 -0
  93. data/lib/stripe/resources/issuing/personalization_design.rb +36 -0
  94. data/lib/stripe/resources/issuing/physical_bundle.rb +16 -0
  95. data/lib/stripe/resources/issuing/settlement.rb +8 -0
  96. data/lib/stripe/resources/issuing/token.rb +61 -0
  97. data/lib/stripe/resources/issuing/transaction.rb +151 -0
  98. data/lib/stripe/resources/line_item.rb +54 -0
  99. data/lib/stripe/resources/login_link.rb +8 -0
  100. data/lib/stripe/resources/mandate.rb +242 -11
  101. data/lib/stripe/resources/margin.rb +8 -0
  102. data/lib/stripe/resources/order.rb +348 -0
  103. data/lib/stripe/resources/payment_attempt_record.rb +890 -11
  104. data/lib/stripe/resources/payment_intent.rb +1405 -3
  105. data/lib/stripe/resources/payment_intent_amount_details_line_item.rb +56 -0
  106. data/lib/stripe/resources/payment_link.rb +337 -0
  107. data/lib/stripe/resources/payment_method.rb +884 -38
  108. data/lib/stripe/resources/payment_method_configuration.rb +961 -0
  109. data/lib/stripe/resources/payment_method_domain.rb +111 -0
  110. data/lib/stripe/resources/payment_record.rb +890 -11
  111. data/lib/stripe/resources/payout.rb +16 -0
  112. data/lib/stripe/resources/person.rb +180 -0
  113. data/lib/stripe/resources/plan.rb +24 -0
  114. data/lib/stripe/resources/price.rb +79 -0
  115. data/lib/stripe/resources/privacy/redaction_job.rb +16 -0
  116. data/lib/stripe/resources/privacy/redaction_job_validation_error.rb +16 -0
  117. data/lib/stripe/resources/product.rb +27 -0
  118. data/lib/stripe/resources/product_feature.rb +8 -0
  119. data/lib/stripe/resources/promotion_code.rb +24 -0
  120. data/lib/stripe/resources/quote.rb +432 -0
  121. data/lib/stripe/resources/quote_line.rb +247 -0
  122. data/lib/stripe/resources/quote_preview_invoice.rb +450 -3
  123. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +323 -0
  124. data/lib/stripe/resources/radar/early_fraud_warning.rb +8 -0
  125. data/lib/stripe/resources/radar/value_list.rb +8 -0
  126. data/lib/stripe/resources/radar/value_list_item.rb +8 -0
  127. data/lib/stripe/resources/refund.rb +380 -19
  128. data/lib/stripe/resources/reporting/report_run.rb +16 -0
  129. data/lib/stripe/resources/reporting/report_type.rb +8 -0
  130. data/lib/stripe/resources/reserve_transaction.rb +8 -0
  131. data/lib/stripe/resources/reversal.rb +8 -0
  132. data/lib/stripe/resources/review.rb +24 -0
  133. data/lib/stripe/resources/setup_attempt.rb +331 -20
  134. data/lib/stripe/resources/setup_intent.rb +293 -2
  135. data/lib/stripe/resources/shipping_rate.rb +48 -0
  136. data/lib/stripe/resources/sigma/scheduled_query_run.rb +16 -0
  137. data/lib/stripe/resources/source.rb +274 -0
  138. data/lib/stripe/resources/source_mandate_notification.rb +32 -0
  139. data/lib/stripe/resources/source_transaction.rb +54 -0
  140. data/lib/stripe/resources/subscription.rb +318 -3
  141. data/lib/stripe/resources/subscription_item.rb +24 -0
  142. data/lib/stripe/resources/subscription_schedule.rb +314 -0
  143. data/lib/stripe/resources/tax/association.rb +32 -0
  144. data/lib/stripe/resources/tax/calculation.rb +109 -0
  145. data/lib/stripe/resources/tax/calculation_line_item.rb +32 -0
  146. data/lib/stripe/resources/tax/form.rb +107 -0
  147. data/lib/stripe/resources/tax/registration.rb +1232 -0
  148. data/lib/stripe/resources/tax/settings.rb +61 -1
  149. data/lib/stripe/resources/tax/transaction.rb +93 -0
  150. data/lib/stripe/resources/tax/transaction_line_item.rb +16 -0
  151. data/lib/stripe/resources/tax_code.rb +8 -0
  152. data/lib/stripe/resources/tax_deducted_at_source.rb +8 -0
  153. data/lib/stripe/resources/tax_id.rb +24 -0
  154. data/lib/stripe/resources/tax_rate.rb +16 -0
  155. data/lib/stripe/resources/terminal/configuration.rb +299 -0
  156. data/lib/stripe/resources/terminal/connection_token.rb +8 -0
  157. data/lib/stripe/resources/terminal/location.rb +16 -0
  158. data/lib/stripe/resources/terminal/onboarding_link.rb +24 -0
  159. data/lib/stripe/resources/terminal/reader.rb +241 -0
  160. data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
  161. data/lib/stripe/resources/test_helpers/test_clock.rb +24 -0
  162. data/lib/stripe/resources/token.rb +8 -0
  163. data/lib/stripe/resources/topup.rb +8 -0
  164. data/lib/stripe/resources/transfer.rb +8 -0
  165. data/lib/stripe/resources/treasury/credit_reversal.rb +16 -0
  166. data/lib/stripe/resources/treasury/debit_reversal.rb +24 -0
  167. data/lib/stripe/resources/treasury/financial_account.rb +61 -0
  168. data/lib/stripe/resources/treasury/financial_account_features.rb +192 -0
  169. data/lib/stripe/resources/treasury/inbound_transfer.rb +69 -0
  170. data/lib/stripe/resources/treasury/outbound_payment.rb +106 -0
  171. data/lib/stripe/resources/treasury/outbound_transfer.rb +114 -0
  172. data/lib/stripe/resources/treasury/received_credit.rb +97 -0
  173. data/lib/stripe/resources/treasury/received_debit.rb +89 -0
  174. data/lib/stripe/resources/treasury/transaction.rb +36 -0
  175. data/lib/stripe/resources/treasury/transaction_entry.rb +24 -0
  176. data/lib/stripe/resources/v2/billing/bill_setting.rb +40 -0
  177. data/lib/stripe/resources/v2/billing/bill_setting_version.rb +40 -0
  178. data/lib/stripe/resources/v2/billing/cadence.rb +144 -0
  179. data/lib/stripe/resources/v2/billing/collection_setting.rb +150 -2
  180. data/lib/stripe/resources/v2/billing/collection_setting_version.rb +150 -2
  181. data/lib/stripe/resources/v2/billing/custom_pricing_unit.rb +8 -0
  182. data/lib/stripe/resources/v2/billing/intent.rb +27 -0
  183. data/lib/stripe/resources/v2/billing/intent_action.rb +195 -0
  184. data/lib/stripe/resources/v2/billing/license_fee.rb +24 -0
  185. data/lib/stripe/resources/v2/billing/license_fee_subscription.rb +8 -0
  186. data/lib/stripe/resources/v2/billing/license_fee_version.rb +24 -0
  187. data/lib/stripe/resources/v2/billing/licensed_item.rb +16 -0
  188. data/lib/stripe/resources/v2/billing/meter_event.rb +8 -0
  189. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +16 -0
  190. data/lib/stripe/resources/v2/billing/meter_event_session.rb +8 -0
  191. data/lib/stripe/resources/v2/billing/metered_item.rb +27 -0
  192. data/lib/stripe/resources/v2/billing/pricing_plan.rb +8 -0
  193. data/lib/stripe/resources/v2/billing/pricing_plan_component.rb +36 -0
  194. data/lib/stripe/resources/v2/billing/pricing_plan_subscription.rb +31 -0
  195. data/lib/stripe/resources/v2/billing/pricing_plan_version.rb +8 -0
  196. data/lib/stripe/resources/v2/billing/profile.rb +8 -0
  197. data/lib/stripe/resources/v2/billing/rate_card.rb +8 -0
  198. data/lib/stripe/resources/v2/billing/rate_card_rate.rb +36 -0
  199. data/lib/stripe/resources/v2/billing/rate_card_subscription.rb +31 -0
  200. data/lib/stripe/resources/v2/billing/rate_card_version.rb +8 -0
  201. data/lib/stripe/resources/v2/billing/service_action.rb +123 -0
  202. data/lib/stripe/resources/v2/core/account.rb +1900 -0
  203. data/lib/stripe/resources/v2/core/account_link.rb +51 -0
  204. data/lib/stripe/resources/v2/core/claimable_sandbox.rb +60 -12
  205. data/lib/stripe/resources/v2/core/person.rb +201 -0
  206. data/lib/stripe/resources/v2/core/vault/gb_bank_account.rb +40 -0
  207. data/lib/stripe/resources/v2/core/vault/us_bank_account.rb +8 -0
  208. data/lib/stripe/resources/v2/event.rb +24 -0
  209. data/lib/stripe/resources/v2/event_destination.rb +44 -0
  210. data/lib/stripe/resources/v2/financial_address_credit_simulation.rb +8 -0
  211. data/lib/stripe/resources/v2/financial_address_generated_microdeposits.rb +8 -0
  212. data/lib/stripe/resources/v2/money_management/adjustment.rb +16 -0
  213. data/lib/stripe/resources/v2/money_management/financial_account.rb +61 -0
  214. data/lib/stripe/resources/v2/money_management/financial_address.rb +32 -0
  215. data/lib/stripe/resources/v2/money_management/inbound_transfer.rb +90 -3
  216. data/lib/stripe/resources/v2/money_management/outbound_payment.rb +88 -0
  217. data/lib/stripe/resources/v2/money_management/outbound_payment_quote.rb +62 -0
  218. data/lib/stripe/resources/v2/money_management/outbound_setup_intent.rb +24 -0
  219. data/lib/stripe/resources/v2/money_management/outbound_transfer.rb +79 -0
  220. data/lib/stripe/resources/v2/money_management/payout_method.rb +32 -0
  221. data/lib/stripe/resources/v2/money_management/payout_methods_bank_account_spec.rb +32 -0
  222. data/lib/stripe/resources/v2/money_management/received_credit.rb +77 -0
  223. data/lib/stripe/resources/v2/money_management/received_debit.rb +52 -0
  224. data/lib/stripe/resources/v2/money_management/transaction.rb +36 -0
  225. data/lib/stripe/resources/v2/money_management/transaction_entry.rb +35 -0
  226. data/lib/stripe/resources/v2/payments/off_session_payment.rb +24 -0
  227. data/lib/stripe/resources/v2/reporting/report.rb +52 -0
  228. data/lib/stripe/resources/v2/reporting/report_run.rb +69 -0
  229. data/lib/stripe/resources/v2/tax/automatic_rule.rb +8 -0
  230. data/lib/stripe/resources/webhook_endpoint.rb +8 -0
  231. data/lib/stripe/resources.rb +4 -1
  232. data/lib/stripe/services/v2/billing/cadence_service.rb +7 -1
  233. data/lib/stripe/services/v2/billing/meter_event_stream_service.rb +1 -1
  234. data/lib/stripe/services/v2/billing/service_action_service.rb +23 -2
  235. data/lib/stripe/services/v2/core/claimable_sandbox_service.rb +15 -0
  236. data/lib/stripe/stripe_object.rb +25 -1
  237. data/lib/stripe/util.rb +9 -5
  238. data/lib/stripe/version.rb +1 -1
  239. data/rbi/stripe.rbi +280275 -0
  240. metadata +7 -3
@@ -21,6 +21,14 @@ module Stripe
21
21
  attr_reader :up_to_decimal
22
22
  # No upper bound to this tier. Only one of `up_to_decimal` and `up_to_inf` may be set.
23
23
  attr_reader :up_to_inf
24
+
25
+ def self.inner_class_types
26
+ @inner_class_types = {}
27
+ end
28
+
29
+ def self.field_remappings
30
+ @field_remappings = {}
31
+ end
24
32
  end
25
33
 
26
34
  class TransformQuantity < Stripe::StripeObject
@@ -28,6 +36,14 @@ module Stripe
28
36
  attr_reader :divide_by
29
37
  # After division, round the result up or down.
30
38
  attr_reader :round
39
+
40
+ def self.inner_class_types
41
+ @inner_class_types = {}
42
+ end
43
+
44
+ def self.field_remappings
45
+ @field_remappings = {}
46
+ end
31
47
  end
32
48
  # Timestamp of when the object was created.
33
49
  attr_reader :created
@@ -50,6 +66,14 @@ module Stripe
50
66
  attr_reader :unit_amount
51
67
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
52
68
  attr_reader :livemode
69
+
70
+ def self.inner_class_types
71
+ @inner_class_types = { tiers: Tier, transform_quantity: TransformQuantity }
72
+ end
73
+
74
+ def self.field_remappings
75
+ @field_remappings = {}
76
+ end
53
77
  end
54
78
  end
55
79
  end
@@ -15,6 +15,14 @@ module Stripe
15
15
  class TaxDetails < Stripe::StripeObject
16
16
  # Product tax code (PTC).
17
17
  attr_reader :tax_code
18
+
19
+ def self.inner_class_types
20
+ @inner_class_types = {}
21
+ end
22
+
23
+ def self.field_remappings
24
+ @field_remappings = {}
25
+ end
18
26
  end
19
27
  # Timestamp of when the object was created.
20
28
  attr_reader :created
@@ -38,6 +46,14 @@ module Stripe
38
46
  attr_reader :unit_label
39
47
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
40
48
  attr_reader :livemode
49
+
50
+ def self.inner_class_types
51
+ @inner_class_types = { tax_details: TaxDetails }
52
+ end
53
+
54
+ def self.field_remappings
55
+ @field_remappings = {}
56
+ end
41
57
  end
42
58
  end
43
59
  end
@@ -28,6 +28,14 @@ module Stripe
28
28
  attr_reader :timestamp
29
29
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
30
30
  attr_reader :livemode
31
+
32
+ def self.inner_class_types
33
+ @inner_class_types = {}
34
+ end
35
+
36
+ def self.field_remappings
37
+ @field_remappings = {}
38
+ end
31
39
  end
32
40
  end
33
41
  end
@@ -13,6 +13,14 @@ module Stripe
13
13
  class Cancel < Stripe::StripeObject
14
14
  # Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them.
15
15
  attr_reader :identifier
16
+
17
+ def self.inner_class_types
18
+ @inner_class_types = {}
19
+ end
20
+
21
+ def self.field_remappings
22
+ @field_remappings = {}
23
+ end
16
24
  end
17
25
  # Specifies which event to cancel.
18
26
  attr_reader :cancel
@@ -30,6 +38,14 @@ module Stripe
30
38
  attr_reader :type
31
39
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
32
40
  attr_reader :livemode
41
+
42
+ def self.inner_class_types
43
+ @inner_class_types = { cancel: Cancel }
44
+ end
45
+
46
+ def self.field_remappings
47
+ @field_remappings = {}
48
+ end
33
49
  end
34
50
  end
35
51
  end
@@ -23,6 +23,14 @@ module Stripe
23
23
  attr_reader :object
24
24
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
25
25
  attr_reader :livemode
26
+
27
+ def self.inner_class_types
28
+ @inner_class_types = {}
29
+ end
30
+
31
+ def self.field_remappings
32
+ @field_remappings = {}
33
+ end
26
34
  end
27
35
  end
28
36
  end
@@ -17,11 +17,27 @@ module Stripe
17
17
  attr_reader :dimension
18
18
  # To count usage towards this metered item, the dimension must have this value.
19
19
  attr_reader :value
20
+
21
+ def self.inner_class_types
22
+ @inner_class_types = {}
23
+ end
24
+
25
+ def self.field_remappings
26
+ @field_remappings = {}
27
+ end
20
28
  end
21
29
 
22
30
  class TaxDetails < Stripe::StripeObject
23
31
  # Product tax code (PTC).
24
32
  attr_reader :tax_code
33
+
34
+ def self.inner_class_types
35
+ @inner_class_types = {}
36
+ end
37
+
38
+ def self.field_remappings
39
+ @field_remappings = {}
40
+ end
25
41
  end
26
42
  # Timestamp of when the object was created.
27
43
  attr_reader :created
@@ -52,6 +68,17 @@ module Stripe
52
68
  attr_reader :unit_label
53
69
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
54
70
  attr_reader :livemode
71
+
72
+ def self.inner_class_types
73
+ @inner_class_types = {
74
+ meter_segment_conditions: MeterSegmentCondition,
75
+ tax_details: TaxDetails,
76
+ }
77
+ end
78
+
79
+ def self.field_remappings
80
+ @field_remappings = {}
81
+ end
55
82
  end
56
83
  end
57
84
  end
@@ -37,6 +37,14 @@ module Stripe
37
37
  attr_reader :tax_behavior
38
38
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
39
39
  attr_reader :livemode
40
+
41
+ def self.inner_class_types
42
+ @inner_class_types = {}
43
+ end
44
+
45
+ def self.field_remappings
46
+ @field_remappings = {}
47
+ end
40
48
  end
41
49
  end
42
50
  end
@@ -15,6 +15,14 @@ module Stripe
15
15
  attr_reader :id
16
16
  # The version of the LicenseFee. Defaults to 'latest', if not specified.
17
17
  attr_reader :version
18
+
19
+ def self.inner_class_types
20
+ @inner_class_types = {}
21
+ end
22
+
23
+ def self.field_remappings
24
+ @field_remappings = {}
25
+ end
18
26
  end
19
27
 
20
28
  class RateCard < Stripe::StripeObject
@@ -22,11 +30,27 @@ module Stripe
22
30
  attr_reader :id
23
31
  # The version of the RateCard. Defaults to 'latest', if not specified.
24
32
  attr_reader :version
33
+
34
+ def self.inner_class_types
35
+ @inner_class_types = {}
36
+ end
37
+
38
+ def self.field_remappings
39
+ @field_remappings = {}
40
+ end
25
41
  end
26
42
 
27
43
  class ServiceAction < Stripe::StripeObject
28
44
  # The ID of the service action.
29
45
  attr_reader :id
46
+
47
+ def self.inner_class_types
48
+ @inner_class_types = {}
49
+ end
50
+
51
+ def self.field_remappings
52
+ @field_remappings = {}
53
+ end
30
54
  end
31
55
  # Time at which the object was created.
32
56
  attr_reader :created
@@ -52,6 +76,18 @@ module Stripe
52
76
  attr_reader :rate_card
53
77
  # Details if this component is a Service Action.
54
78
  attr_reader :service_action
79
+
80
+ def self.inner_class_types
81
+ @inner_class_types = {
82
+ license_fee: LicenseFee,
83
+ rate_card: RateCard,
84
+ service_action: ServiceAction,
85
+ }
86
+ end
87
+
88
+ def self.field_remappings
89
+ @field_remappings = {}
90
+ end
55
91
  end
56
92
  end
57
93
  end
@@ -21,6 +21,14 @@ module Stripe
21
21
  attr_reader :paused_at
22
22
  # When the collection status transitioned to unpaid.
23
23
  attr_reader :unpaid_at
24
+
25
+ def self.inner_class_types
26
+ @inner_class_types = {}
27
+ end
28
+
29
+ def self.field_remappings
30
+ @field_remappings = {}
31
+ end
24
32
  end
25
33
 
26
34
  class ServicingStatusTransitions < Stripe::StripeObject
@@ -30,6 +38,18 @@ module Stripe
30
38
  attr_reader :canceled_at
31
39
  # When the servicing status transitioned to paused.
32
40
  attr_reader :paused_at
41
+ # When the servicing is scheduled to transition to activate.
42
+ attr_reader :will_activate_at
43
+ # When the servicing is scheduled to cancel.
44
+ attr_reader :will_cancel_at
45
+
46
+ def self.inner_class_types
47
+ @inner_class_types = {}
48
+ end
49
+
50
+ def self.field_remappings
51
+ @field_remappings = {}
52
+ end
33
53
  end
34
54
  # The ID of the Billing Cadence this subscription is billed on.
35
55
  attr_reader :billing_cadence
@@ -57,6 +77,17 @@ module Stripe
57
77
  attr_reader :test_clock
58
78
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
59
79
  attr_reader :livemode
80
+
81
+ def self.inner_class_types
82
+ @inner_class_types = {
83
+ collection_status_transitions: CollectionStatusTransitions,
84
+ servicing_status_transitions: ServicingStatusTransitions,
85
+ }
86
+ end
87
+
88
+ def self.field_remappings
89
+ @field_remappings = {}
90
+ end
60
91
  end
61
92
  end
62
93
  end
@@ -24,6 +24,14 @@ module Stripe
24
24
  attr_reader :start_date
25
25
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
26
26
  attr_reader :livemode
27
+
28
+ def self.inner_class_types
29
+ @inner_class_types = {}
30
+ end
31
+
32
+ def self.field_remappings
33
+ @field_remappings = {}
34
+ end
27
35
  end
28
36
  end
29
37
  end
@@ -32,6 +32,14 @@ module Stripe
32
32
  attr_reader :status
33
33
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
34
34
  attr_reader :livemode
35
+
36
+ def self.inner_class_types
37
+ @inner_class_types = {}
38
+ end
39
+
40
+ def self.field_remappings
41
+ @field_remappings = {}
42
+ end
35
43
  end
36
44
  end
37
45
  end
@@ -47,6 +47,14 @@ module Stripe
47
47
  attr_reader :tax_behavior
48
48
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
49
49
  attr_reader :livemode
50
+
51
+ def self.inner_class_types
52
+ @inner_class_types = {}
53
+ end
54
+
55
+ def self.field_remappings
56
+ @field_remappings = {}
57
+ end
50
58
  end
51
59
  end
52
60
  end
@@ -15,6 +15,14 @@ module Stripe
15
15
  attr_reader :id
16
16
  # The unit value for the custom pricing unit, as a string.
17
17
  attr_reader :value
18
+
19
+ def self.inner_class_types
20
+ @inner_class_types = {}
21
+ end
22
+
23
+ def self.field_remappings
24
+ @field_remappings = {}
25
+ end
18
26
  end
19
27
 
20
28
  class Tier < Stripe::StripeObject
@@ -28,6 +36,14 @@ module Stripe
28
36
  attr_reader :up_to_decimal
29
37
  # No upper bound to this tier. Only one of `up_to_decimal` and `up_to_inf` may be set.
30
38
  attr_reader :up_to_inf
39
+
40
+ def self.inner_class_types
41
+ @inner_class_types = {}
42
+ end
43
+
44
+ def self.field_remappings
45
+ @field_remappings = {}
46
+ end
31
47
  end
32
48
 
33
49
  class TransformQuantity < Stripe::StripeObject
@@ -35,6 +51,14 @@ module Stripe
35
51
  attr_reader :divide_by
36
52
  # After division, round the result up or down.
37
53
  attr_reader :round
54
+
55
+ def self.inner_class_types
56
+ @inner_class_types = {}
57
+ end
58
+
59
+ def self.field_remappings
60
+ @field_remappings = {}
61
+ end
38
62
  end
39
63
  # Timestamp of when the object was created.
40
64
  attr_reader :created
@@ -65,6 +89,18 @@ module Stripe
65
89
  attr_reader :unit_amount
66
90
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
67
91
  attr_reader :livemode
92
+
93
+ def self.inner_class_types
94
+ @inner_class_types = {
95
+ custom_pricing_unit_amount: CustomPricingUnitAmount,
96
+ tiers: Tier,
97
+ transform_quantity: TransformQuantity,
98
+ }
99
+ end
100
+
101
+ def self.field_remappings
102
+ @field_remappings = {}
103
+ end
68
104
  end
69
105
  end
70
106
  end
@@ -21,6 +21,14 @@ module Stripe
21
21
  attr_reader :paused_at
22
22
  # When the collection status transitioned to unpaid.
23
23
  attr_reader :unpaid_at
24
+
25
+ def self.inner_class_types
26
+ @inner_class_types = {}
27
+ end
28
+
29
+ def self.field_remappings
30
+ @field_remappings = {}
31
+ end
24
32
  end
25
33
 
26
34
  class ServicingStatusTransitions < Stripe::StripeObject
@@ -30,6 +38,18 @@ module Stripe
30
38
  attr_reader :canceled_at
31
39
  # When the servicing status transitioned to paused.
32
40
  attr_reader :paused_at
41
+ # When the servicing is scheduled to transition to activate.
42
+ attr_reader :will_activate_at
43
+ # When the servicing is scheduled to cancel.
44
+ attr_reader :will_cancel_at
45
+
46
+ def self.inner_class_types
47
+ @inner_class_types = {}
48
+ end
49
+
50
+ def self.field_remappings
51
+ @field_remappings = {}
52
+ end
33
53
  end
34
54
  # The ID of the Billing Cadence.
35
55
  attr_reader :billing_cadence
@@ -57,6 +77,17 @@ module Stripe
57
77
  attr_reader :test_clock
58
78
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
59
79
  attr_reader :livemode
80
+
81
+ def self.inner_class_types
82
+ @inner_class_types = {
83
+ collection_status_transitions: CollectionStatusTransitions,
84
+ servicing_status_transitions: ServicingStatusTransitions,
85
+ }
86
+ end
87
+
88
+ def self.field_remappings
89
+ @field_remappings = {}
90
+ end
60
91
  end
61
92
  end
62
93
  end
@@ -20,6 +20,14 @@ module Stripe
20
20
  attr_reader :rate_card_id
21
21
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
22
22
  attr_reader :livemode
23
+
24
+ def self.inner_class_types
25
+ @inner_class_types = {}
26
+ end
27
+
28
+ def self.field_remappings
29
+ @field_remappings = {}
30
+ end
23
31
  end
24
32
  end
25
33
  end
@@ -17,6 +17,14 @@ module Stripe
17
17
  attr_reader :id
18
18
  # The value of the credit grant, decimal value represented as a string.
19
19
  attr_reader :value
20
+
21
+ def self.inner_class_types
22
+ @inner_class_types = {}
23
+ end
24
+
25
+ def self.field_remappings
26
+ @field_remappings = {}
27
+ end
20
28
  end
21
29
  # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
22
30
  attr_reader :type
@@ -24,6 +32,14 @@ module Stripe
24
32
  attr_reader :custom_pricing_unit
25
33
  # The monetary amount of the credit grant. Required if `type` is `monetary`.
26
34
  attr_reader :monetary
35
+
36
+ def self.inner_class_types
37
+ @inner_class_types = { custom_pricing_unit: CustomPricingUnit }
38
+ end
39
+
40
+ def self.field_remappings
41
+ @field_remappings = {}
42
+ end
27
43
  end
28
44
 
29
45
  class ApplicabilityConfig < Stripe::StripeObject
@@ -32,23 +48,63 @@ module Stripe
32
48
  attr_reader :billable_items
33
49
  # The price type that credit grants can apply to. We currently only support the `metered` price type. This will apply to metered prices and rate cards. Cannot be used in combination with `billable_items`.
34
50
  attr_reader :price_type
51
+
52
+ def self.inner_class_types
53
+ @inner_class_types = {}
54
+ end
55
+
56
+ def self.field_remappings
57
+ @field_remappings = {}
58
+ end
35
59
  end
36
60
  # The applicability scope of the credit grant.
37
61
  attr_reader :scope
62
+
63
+ def self.inner_class_types
64
+ @inner_class_types = { scope: Scope }
65
+ end
66
+
67
+ def self.field_remappings
68
+ @field_remappings = {}
69
+ end
38
70
  end
39
71
 
40
72
  class ExpiryConfig < Stripe::StripeObject
41
73
  # The type of the expiry configuration. We currently support `end_of_service_period`.
42
74
  attr_reader :type
75
+
76
+ def self.inner_class_types
77
+ @inner_class_types = {}
78
+ end
79
+
80
+ def self.field_remappings
81
+ @field_remappings = {}
82
+ end
43
83
  end
44
84
  # The amount of the credit grant.
45
85
  attr_reader :amount
46
86
  # Defines the scope where the credit grant is applicable.
47
87
  attr_reader :applicability_config
88
+ # The category of the credit grant.
89
+ attr_reader :category
48
90
  # The expiry configuration for the credit grant.
49
91
  attr_reader :expiry_config
50
92
  # A descriptive name shown in dashboard.
51
93
  attr_reader :name
94
+ # The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
95
+ attr_reader :priority
96
+
97
+ def self.inner_class_types
98
+ @inner_class_types = {
99
+ amount: Amount,
100
+ applicability_config: ApplicabilityConfig,
101
+ expiry_config: ExpiryConfig,
102
+ }
103
+ end
104
+
105
+ def self.field_remappings
106
+ @field_remappings = {}
107
+ end
52
108
  end
53
109
 
54
110
  class CreditGrantPerTenant < Stripe::StripeObject
@@ -58,6 +114,14 @@ module Stripe
58
114
  attr_reader :id
59
115
  # The value of the credit grant, decimal value represented as a string.
60
116
  attr_reader :value
117
+
118
+ def self.inner_class_types
119
+ @inner_class_types = {}
120
+ end
121
+
122
+ def self.field_remappings
123
+ @field_remappings = {}
124
+ end
61
125
  end
62
126
  # The type of the credit grant amount. We currently support `monetary` and `custom_pricing_unit` billing credits.
63
127
  attr_reader :type
@@ -65,6 +129,14 @@ module Stripe
65
129
  attr_reader :custom_pricing_unit
66
130
  # The monetary amount of the credit grant. Required if `type` is `monetary`.
67
131
  attr_reader :monetary
132
+
133
+ def self.inner_class_types
134
+ @inner_class_types = { custom_pricing_unit: CustomPricingUnit }
135
+ end
136
+
137
+ def self.field_remappings
138
+ @field_remappings = {}
139
+ end
68
140
  end
69
141
 
70
142
  class ApplicabilityConfig < Stripe::StripeObject
@@ -73,23 +145,63 @@ module Stripe
73
145
  attr_reader :billable_items
74
146
  # The price type that credit grants can apply to. We currently only support the `metered` price type. This will apply to metered prices and rate cards. Cannot be used in combination with `billable_items`.
75
147
  attr_reader :price_type
148
+
149
+ def self.inner_class_types
150
+ @inner_class_types = {}
151
+ end
152
+
153
+ def self.field_remappings
154
+ @field_remappings = {}
155
+ end
76
156
  end
77
157
  # The applicability scope of the credit grant.
78
158
  attr_reader :scope
159
+
160
+ def self.inner_class_types
161
+ @inner_class_types = { scope: Scope }
162
+ end
163
+
164
+ def self.field_remappings
165
+ @field_remappings = {}
166
+ end
79
167
  end
80
168
 
81
169
  class ExpiryConfig < Stripe::StripeObject
82
170
  # The type of the expiry configuration. We currently support `end_of_service_period`.
83
171
  attr_reader :type
172
+
173
+ def self.inner_class_types
174
+ @inner_class_types = {}
175
+ end
176
+
177
+ def self.field_remappings
178
+ @field_remappings = {}
179
+ end
84
180
  end
85
181
  # The amount of the credit grant.
86
182
  attr_reader :amount
87
183
  # Defines the scope where the credit grant is applicable.
88
184
  attr_reader :applicability_config
185
+ # The category of the credit grant.
186
+ attr_reader :category
89
187
  # The expiry configuration for the credit grant.
90
188
  attr_reader :expiry_config
91
189
  # Customer-facing name for the credit grant.
92
190
  attr_reader :name
191
+ # The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
192
+ attr_reader :priority
193
+
194
+ def self.inner_class_types
195
+ @inner_class_types = {
196
+ amount: Amount,
197
+ applicability_config: ApplicabilityConfig,
198
+ expiry_config: ExpiryConfig,
199
+ }
200
+ end
201
+
202
+ def self.field_remappings
203
+ @field_remappings = {}
204
+ end
93
205
  end
94
206
  # Timestamp of when the object was created.
95
207
  attr_reader :created
@@ -111,6 +223,17 @@ module Stripe
111
223
  attr_reader :credit_grant
112
224
  # Details for the credit grant per tenant. Provided only if `type` is "credit_grant_per_tenant".
113
225
  attr_reader :credit_grant_per_tenant
226
+
227
+ def self.inner_class_types
228
+ @inner_class_types = {
229
+ credit_grant: CreditGrant,
230
+ credit_grant_per_tenant: CreditGrantPerTenant,
231
+ }
232
+ end
233
+
234
+ def self.field_remappings
235
+ @field_remappings = {}
236
+ end
114
237
  end
115
238
  end
116
239
  end