stripe 13.3.0.pre.beta.1 → 13.3.0.pre.beta.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/api_version.rb +1 -1
  6. data/lib/stripe/object_types.rb +10 -0
  7. data/lib/stripe/resources/account.rb +230 -0
  8. data/lib/stripe/resources/account_link.rb +9 -0
  9. data/lib/stripe/resources/account_notice.rb +28 -0
  10. data/lib/stripe/resources/account_session.rb +103 -0
  11. data/lib/stripe/resources/apple_pay_domain.rb +13 -0
  12. data/lib/stripe/resources/application.rb +20 -0
  13. data/lib/stripe/resources/application_fee.rb +34 -0
  14. data/lib/stripe/resources/application_fee_refund.rb +17 -0
  15. data/lib/stripe/resources/apps/secret.rb +22 -0
  16. data/lib/stripe/resources/balance.rb +59 -0
  17. data/lib/stripe/resources/balance_transaction.rb +34 -0
  18. data/lib/stripe/resources/bank_account.rb +60 -2
  19. data/lib/stripe/resources/billing/alert.rb +21 -0
  20. data/lib/stripe/resources/billing/alert_triggered.rb +26 -0
  21. data/lib/stripe/resources/billing/credit_balance_summary.rb +25 -0
  22. data/lib/stripe/resources/billing/credit_balance_transaction.rb +49 -1
  23. data/lib/stripe/resources/billing/credit_grant.rb +46 -2
  24. data/lib/stripe/resources/billing/meter.rb +49 -7
  25. data/lib/stripe/resources/billing/meter_error_report.rb +44 -0
  26. data/lib/stripe/resources/billing/meter_event.rb +17 -3
  27. data/lib/stripe/resources/billing/meter_event_adjustment.rb +17 -1
  28. data/lib/stripe/resources/billing/meter_event_summary.rb +15 -0
  29. data/lib/stripe/resources/billing_portal/configuration.rb +70 -0
  30. data/lib/stripe/resources/billing_portal/session.rb +61 -0
  31. data/lib/stripe/resources/capability.rb +38 -0
  32. data/lib/stripe/resources/capital/financing_offer.rb +45 -0
  33. data/lib/stripe/resources/capital/financing_summary.rb +17 -0
  34. data/lib/stripe/resources/capital/financing_transaction.rb +29 -0
  35. data/lib/stripe/resources/card.rb +76 -0
  36. data/lib/stripe/resources/cash_balance.rb +14 -0
  37. data/lib/stripe/resources/charge.rb +469 -0
  38. data/lib/stripe/resources/checkout/session.rb +496 -0
  39. data/lib/stripe/resources/climate/order.rb +55 -0
  40. data/lib/stripe/resources/climate/product.rb +24 -0
  41. data/lib/stripe/resources/climate/supplier.rb +18 -0
  42. data/lib/stripe/resources/confirmation_token.rb +297 -0
  43. data/lib/stripe/resources/connect_collection_transfer.rb +24 -0
  44. data/lib/stripe/resources/country_spec.rb +27 -0
  45. data/lib/stripe/resources/coupon.rb +44 -0
  46. data/lib/stripe/resources/credit_note.rb +91 -0
  47. data/lib/stripe/resources/credit_note_line_item.rb +46 -0
  48. data/lib/stripe/resources/customer.rb +93 -0
  49. data/lib/stripe/resources/customer_balance_transaction.rb +27 -0
  50. data/lib/stripe/resources/customer_cash_balance_transaction.rb +72 -0
  51. data/lib/stripe/resources/customer_session.rb +34 -0
  52. data/lib/stripe/resources/discount.rb +29 -0
  53. data/lib/stripe/resources/dispute.rb +96 -0
  54. data/lib/stripe/resources/entitlements/active_entitlement.rb +11 -0
  55. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +23 -0
  56. data/lib/stripe/resources/entitlements/feature.rb +15 -0
  57. data/lib/stripe/resources/ephemeral_key.rb +13 -0
  58. data/lib/stripe/resources/event.rb +44 -0
  59. data/lib/stripe/resources/exchange_rate.rb +7 -0
  60. data/lib/stripe/resources/file.rb +23 -0
  61. data/lib/stripe/resources/file_link.rb +19 -0
  62. data/lib/stripe/resources/financial_connections/account.rb +84 -0
  63. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +13 -0
  64. data/lib/stripe/resources/financial_connections/account_owner.rb +17 -0
  65. data/lib/stripe/resources/financial_connections/account_ownership.rb +9 -0
  66. data/lib/stripe/resources/financial_connections/institution.rb +35 -0
  67. data/lib/stripe/resources/financial_connections/session.rb +49 -0
  68. data/lib/stripe/resources/financial_connections/transaction.rb +28 -0
  69. data/lib/stripe/resources/forwarding/request.rb +40 -0
  70. data/lib/stripe/resources/funding_instructions.rb +82 -0
  71. data/lib/stripe/resources/gift_cards/card.rb +37 -0
  72. data/lib/stripe/resources/gift_cards/transaction.rb +39 -0
  73. data/lib/stripe/resources/identity/verification_report.rb +92 -0
  74. data/lib/stripe/resources/identity/verification_session.rb +76 -0
  75. data/lib/stripe/resources/invoice.rb +337 -0
  76. data/lib/stripe/resources/invoice_item.rb +54 -0
  77. data/lib/stripe/resources/invoice_line_item.rb +83 -0
  78. data/lib/stripe/resources/invoice_payment.rb +34 -0
  79. data/lib/stripe/resources/invoice_rendering_template.rb +17 -0
  80. data/lib/stripe/resources/issuing/authorization.rb +129 -0
  81. data/lib/stripe/resources/issuing/card.rb +86 -0
  82. data/lib/stripe/resources/issuing/cardholder.rb +76 -0
  83. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +57 -0
  84. data/lib/stripe/resources/issuing/dispute.rb +65 -0
  85. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +23 -0
  86. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +17 -0
  87. data/lib/stripe/resources/issuing/personalization_design.rb +38 -0
  88. data/lib/stripe/resources/issuing/physical_bundle.rb +18 -0
  89. data/lib/stripe/resources/issuing/settlement.rb +49 -0
  90. data/lib/stripe/resources/issuing/token.rb +46 -0
  91. data/lib/stripe/resources/issuing/transaction.rb +106 -0
  92. data/lib/stripe/resources/line_item.rb +50 -0
  93. data/lib/stripe/resources/login_link.rb +7 -0
  94. data/lib/stripe/resources/mandate.rb +78 -0
  95. data/lib/stripe/resources/margin.rb +19 -0
  96. data/lib/stripe/resources/order.rb +202 -0
  97. data/lib/stripe/resources/payment_attempt_record.rb +73 -0
  98. data/lib/stripe/resources/payment_intent.rb +642 -0
  99. data/lib/stripe/resources/payment_link.rb +198 -0
  100. data/lib/stripe/resources/payment_method.rb +368 -0
  101. data/lib/stripe/resources/payment_method_configuration.rb +430 -0
  102. data/lib/stripe/resources/payment_method_domain.rb +57 -0
  103. data/lib/stripe/resources/payment_record.rb +73 -0
  104. data/lib/stripe/resources/payout.rb +56 -0
  105. data/lib/stripe/resources/person.rb +128 -0
  106. data/lib/stripe/resources/plan.rb +52 -0
  107. data/lib/stripe/resources/price.rb +77 -0
  108. data/lib/stripe/resources/product.rb +60 -0
  109. data/lib/stripe/resources/product_feature.rb +12 -0
  110. data/lib/stripe/resources/promotion_code.rb +35 -0
  111. data/lib/stripe/resources/quote.rb +252 -0
  112. data/lib/stripe/resources/quote_line.rb +136 -0
  113. data/lib/stripe/resources/quote_preview_invoice.rb +331 -0
  114. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +159 -0
  115. data/lib/stripe/resources/radar/early_fraud_warning.rb +17 -0
  116. data/lib/stripe/resources/radar/value_list.rb +23 -0
  117. data/lib/stripe/resources/radar/value_list_item.rb +17 -0
  118. data/lib/stripe/resources/refund.rb +130 -0
  119. data/lib/stripe/resources/reporting/report_run.rb +29 -0
  120. data/lib/stripe/resources/reporting/report_type.rb +19 -0
  121. data/lib/stripe/resources/reserve_transaction.rb +22 -0
  122. data/lib/stripe/resources/reversal.rb +21 -0
  123. data/lib/stripe/resources/review.rb +36 -0
  124. data/lib/stripe/resources/setup_attempt.rb +101 -0
  125. data/lib/stripe/resources/setup_intent.rb +158 -0
  126. data/lib/stripe/resources/shipping_rate.rb +42 -0
  127. data/lib/stripe/resources/sigma/scheduled_query_run.rb +26 -0
  128. data/lib/stripe/resources/source.rb +197 -0
  129. data/lib/stripe/resources/source_mandate_notification.rb +59 -0
  130. data/lib/stripe/resources/source_transaction.rb +48 -0
  131. data/lib/stripe/resources/subscription.rb +214 -0
  132. data/lib/stripe/resources/subscription_item.rb +46 -0
  133. data/lib/stripe/resources/subscription_schedule.rb +153 -0
  134. data/lib/stripe/resources/tax/association.rb +36 -0
  135. data/lib/stripe/resources/tax/calculation.rb +72 -0
  136. data/lib/stripe/resources/tax/calculation_line_item.rb +33 -0
  137. data/lib/stripe/resources/tax/form.rb +75 -0
  138. data/lib/stripe/resources/tax/registration.rb +379 -0
  139. data/lib/stripe/resources/tax/settings.rb +33 -0
  140. data/lib/stripe/resources/tax/transaction.rb +68 -0
  141. data/lib/stripe/resources/tax/transaction_line_item.rb +30 -0
  142. data/lib/stripe/resources/tax_code.rb +9 -0
  143. data/lib/stripe/resources/tax_deducted_at_source.rb +22 -0
  144. data/lib/stripe/resources/tax_id.rb +30 -0
  145. data/lib/stripe/resources/tax_rate.rb +42 -0
  146. data/lib/stripe/resources/terminal/configuration.rb +107 -0
  147. data/lib/stripe/resources/terminal/connection_token.rb +7 -0
  148. data/lib/stripe/resources/terminal/location.rb +20 -0
  149. data/lib/stripe/resources/terminal/reader.rb +118 -0
  150. data/lib/stripe/resources/terminal/reader_collected_data.rb +16 -0
  151. data/lib/stripe/resources/test_helpers/test_clock.rb +27 -0
  152. data/lib/stripe/resources/token.rb +29 -0
  153. data/lib/stripe/resources/topup.rb +33 -0
  154. data/lib/stripe/resources/transfer.rb +35 -0
  155. data/lib/stripe/resources/treasury/credit_reversal.rb +32 -0
  156. data/lib/stripe/resources/treasury/debit_reversal.rb +38 -0
  157. data/lib/stripe/resources/treasury/financial_account.rb +57 -0
  158. data/lib/stripe/resources/treasury/financial_account_features.rb +91 -0
  159. data/lib/stripe/resources/treasury/inbound_transfer.rb +66 -0
  160. data/lib/stripe/resources/treasury/outbound_payment.rb +85 -0
  161. data/lib/stripe/resources/treasury/outbound_transfer.rb +82 -0
  162. data/lib/stripe/resources/treasury/received_credit.rb +70 -0
  163. data/lib/stripe/resources/treasury/received_debit.rb +67 -0
  164. data/lib/stripe/resources/treasury/transaction.rb +42 -0
  165. data/lib/stripe/resources/treasury/transaction_entry.rb +34 -0
  166. data/lib/stripe/resources/usage_record.rb +13 -0
  167. data/lib/stripe/resources/usage_record_summary.rb +18 -0
  168. data/lib/stripe/resources/v2/amount.rb +9 -0
  169. data/lib/stripe/resources/v2/billing/meter_event.rb +18 -0
  170. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +20 -0
  171. data/lib/stripe/resources/v2/billing/meter_event_session.rb +14 -0
  172. data/lib/stripe/resources/v2/event.rb +21 -0
  173. data/lib/stripe/resources/v2/event_destination.rb +49 -0
  174. data/lib/stripe/resources/webhook_endpoint.rb +27 -0
  175. data/lib/stripe/resources.rb +10 -0
  176. data/lib/stripe/services/billing/credit_balance_summary_service.rb +1 -1
  177. data/lib/stripe/services/billing/credit_balance_transaction_service.rb +2 -2
  178. data/lib/stripe/services/billing/credit_grant_service.rb +3 -3
  179. data/lib/stripe/services/billing/meter_event_adjustment_service.rb +1 -1
  180. data/lib/stripe/services/billing/meter_event_service.rb +1 -1
  181. data/lib/stripe/services/billing/meter_service.rb +5 -5
  182. data/lib/stripe/stripe_object.rb +5 -0
  183. data/lib/stripe/version.rb +1 -1
  184. data/stripe.gemspec +2 -1
  185. metadata +13 -2
@@ -9,6 +9,26 @@ module Stripe
9
9
  def self.object_name
10
10
  "v2.billing.meter_event_adjustment"
11
11
  end
12
+
13
+ class Cancel < Stripe::StripeObject
14
+ attr_reader :identifier
15
+ end
16
+ # Specifies which event to cancel.
17
+ attr_reader :cancel
18
+ # The time the adjustment was created.
19
+ attr_reader :created
20
+ # The name of the meter event. Corresponds with the `event_name` field on a meter.
21
+ attr_reader :event_name
22
+ # The unique id of this meter event adjustment.
23
+ attr_reader :id
24
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
25
+ attr_reader :livemode
26
+ # String representing the object's type. Objects of the same type share the same value of the object field.
27
+ attr_reader :object
28
+ # Open Enum. The meter event adjustment’s status.
29
+ attr_reader :status
30
+ # Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
31
+ attr_reader :type
12
32
  end
13
33
  end
14
34
  end
@@ -9,6 +9,20 @@ module Stripe
9
9
  def self.object_name
10
10
  "v2.billing.meter_event_session"
11
11
  end
12
+
13
+ # The authentication token for this session. Use this token when calling the
14
+ # high-throughput meter event API.
15
+ attr_reader :authentication_token
16
+ # The creation time of this session.
17
+ attr_reader :created
18
+ # The time at which this session will expire.
19
+ attr_reader :expires_at
20
+ # The unique id of this auth session.
21
+ attr_reader :id
22
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
23
+ attr_reader :livemode
24
+ # String representing the object's type. Objects of the same type share the same value of the object field.
25
+ attr_reader :object
12
26
  end
13
27
  end
14
28
  end
@@ -8,6 +8,27 @@ module Stripe
8
8
  def self.object_name
9
9
  "v2.core.event"
10
10
  end
11
+
12
+ class Reason < Stripe::StripeObject
13
+ class Request < Stripe::StripeObject
14
+ attr_reader :id, :idempotency_key
15
+ end
16
+ attr_reader :type, :request
17
+ end
18
+ # Authentication context needed to fetch the event or related object.
19
+ attr_reader :context
20
+ # Time at which the object was created.
21
+ attr_reader :created
22
+ # Unique identifier for the event.
23
+ attr_reader :id
24
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
25
+ attr_reader :livemode
26
+ # String representing the object's type. Objects of the same type share the same value of the object field.
27
+ attr_reader :object
28
+ # Reason for the event.
29
+ attr_reader :reason
30
+ # The type of the event.
31
+ attr_reader :type
11
32
  end
12
33
  end
13
34
  end
@@ -8,6 +8,55 @@ module Stripe
8
8
  def self.object_name
9
9
  "v2.core.event_destination"
10
10
  end
11
+
12
+ class StatusDetails < Stripe::StripeObject
13
+ class Disabled < Stripe::StripeObject
14
+ attr_reader :reason
15
+ end
16
+ attr_reader :disabled
17
+ end
18
+
19
+ class AmazonEventbridge < Stripe::StripeObject
20
+ attr_reader :aws_account_id, :aws_event_source_arn, :aws_event_source_status
21
+ end
22
+
23
+ class WebhookEndpoint < Stripe::StripeObject
24
+ attr_reader :signing_secret, :url
25
+ end
26
+ # Time at which the object was created.
27
+ attr_reader :created
28
+ # An optional description of what the event destination is used for.
29
+ attr_reader :description
30
+ # The list of events to enable for this endpoint.
31
+ attr_reader :enabled_events
32
+ # Payload type of events being subscribed to.
33
+ attr_reader :event_payload
34
+ # Where events should be routed from.
35
+ attr_reader :events_from
36
+ # Unique identifier for the object.
37
+ attr_reader :id
38
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
39
+ attr_reader :livemode
40
+ # Metadata.
41
+ attr_reader :metadata
42
+ # Event destination name.
43
+ attr_reader :name
44
+ # String representing the object's type. Objects of the same type share the same value of the object field.
45
+ attr_reader :object
46
+ # If using the snapshot event payload, the API version events are rendered as.
47
+ attr_reader :snapshot_api_version
48
+ # Status. It can be set to either enabled or disabled.
49
+ attr_reader :status
50
+ # Additional information about event destination status.
51
+ attr_reader :status_details
52
+ # Event destination type.
53
+ attr_reader :type
54
+ # Time at which the object was last updated.
55
+ attr_reader :updated
56
+ # Amazon EventBridge configuration.
57
+ attr_reader :amazon_eventbridge
58
+ # Webhook endpoint configuration.
59
+ attr_reader :webhook_endpoint
11
60
  end
12
61
  end
13
62
  end
@@ -20,6 +20,33 @@ module Stripe
20
20
  "webhook_endpoint"
21
21
  end
22
22
 
23
+ # The API version events are rendered as for this webhook endpoint.
24
+ attr_reader :api_version
25
+ # The ID of the associated Connect application.
26
+ attr_reader :application
27
+ # Time at which the object was created. Measured in seconds since the Unix epoch.
28
+ attr_reader :created
29
+ # An optional description of what the webhook is used for.
30
+ attr_reader :description
31
+ # The list of events to enable for this endpoint. `['*']` indicates that all events are enabled, except those that require explicit selection.
32
+ attr_reader :enabled_events
33
+ # Unique identifier for the object.
34
+ attr_reader :id
35
+ # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
36
+ attr_reader :livemode
37
+ # Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
38
+ attr_reader :metadata
39
+ # String representing the object's type. Objects of the same type share the same value.
40
+ attr_reader :object
41
+ # The endpoint's secret, used to generate [webhook signatures](https://docs.stripe.com/webhooks/signatures). Only returned at creation.
42
+ attr_reader :secret
43
+ # The status of the webhook. It can be `enabled` or `disabled`.
44
+ attr_reader :status
45
+ # The URL of the webhook endpoint.
46
+ attr_reader :url
47
+ # Always true for a deleted object
48
+ attr_reader :deleted
49
+
23
50
  # A webhook endpoint must have a url and a list of enabled_events. You may optionally specify the Boolean connect parameter. If set to true, then a Connect webhook endpoint that notifies the specified url about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified url only about events from your account is created. You can also create webhook endpoints in the [webhooks settings](https://dashboard.stripe.com/account/webhooks) section of the Dashboard.
24
51
  def self.create(params = {}, opts = {})
25
52
  request_stripe_object(
@@ -6,6 +6,7 @@ require "stripe/resources/account_link"
6
6
  require "stripe/resources/account_notice"
7
7
  require "stripe/resources/account_session"
8
8
  require "stripe/resources/apple_pay_domain"
9
+ require "stripe/resources/application"
9
10
  require "stripe/resources/application_fee"
10
11
  require "stripe/resources/application_fee_refund"
11
12
  require "stripe/resources/apps/secret"
@@ -13,10 +14,12 @@ require "stripe/resources/balance"
13
14
  require "stripe/resources/balance_transaction"
14
15
  require "stripe/resources/bank_account"
15
16
  require "stripe/resources/billing/alert"
17
+ require "stripe/resources/billing/alert_triggered"
16
18
  require "stripe/resources/billing/credit_balance_summary"
17
19
  require "stripe/resources/billing/credit_balance_transaction"
18
20
  require "stripe/resources/billing/credit_grant"
19
21
  require "stripe/resources/billing/meter"
22
+ require "stripe/resources/billing/meter_error_report"
20
23
  require "stripe/resources/billing/meter_event"
21
24
  require "stripe/resources/billing/meter_event_adjustment"
22
25
  require "stripe/resources/billing/meter_event_summary"
@@ -34,6 +37,7 @@ require "stripe/resources/climate/order"
34
37
  require "stripe/resources/climate/product"
35
38
  require "stripe/resources/climate/supplier"
36
39
  require "stripe/resources/confirmation_token"
40
+ require "stripe/resources/connect_collection_transfer"
37
41
  require "stripe/resources/country_spec"
38
42
  require "stripe/resources/coupon"
39
43
  require "stripe/resources/credit_note"
@@ -45,6 +49,7 @@ require "stripe/resources/customer_session"
45
49
  require "stripe/resources/discount"
46
50
  require "stripe/resources/dispute"
47
51
  require "stripe/resources/entitlements/active_entitlement"
52
+ require "stripe/resources/entitlements/active_entitlement_summary"
48
53
  require "stripe/resources/entitlements/feature"
49
54
  require "stripe/resources/ephemeral_key"
50
55
  require "stripe/resources/event"
@@ -78,6 +83,7 @@ require "stripe/resources/issuing/dispute_settlement_detail"
78
83
  require "stripe/resources/issuing/fraud_liability_debit"
79
84
  require "stripe/resources/issuing/personalization_design"
80
85
  require "stripe/resources/issuing/physical_bundle"
86
+ require "stripe/resources/issuing/settlement"
81
87
  require "stripe/resources/issuing/token"
82
88
  require "stripe/resources/issuing/transaction"
83
89
  require "stripe/resources/line_item"
@@ -100,6 +106,7 @@ require "stripe/resources/product"
100
106
  require "stripe/resources/product_feature"
101
107
  require "stripe/resources/promotion_code"
102
108
  require "stripe/resources/quote"
109
+ require "stripe/resources/quote_line"
103
110
  require "stripe/resources/quote_preview_invoice"
104
111
  require "stripe/resources/quote_preview_subscription_schedule"
105
112
  require "stripe/resources/radar/early_fraud_warning"
@@ -108,6 +115,7 @@ require "stripe/resources/radar/value_list_item"
108
115
  require "stripe/resources/refund"
109
116
  require "stripe/resources/reporting/report_run"
110
117
  require "stripe/resources/reporting/report_type"
118
+ require "stripe/resources/reserve_transaction"
111
119
  require "stripe/resources/reversal"
112
120
  require "stripe/resources/review"
113
121
  require "stripe/resources/setup_attempt"
@@ -115,6 +123,7 @@ require "stripe/resources/setup_intent"
115
123
  require "stripe/resources/shipping_rate"
116
124
  require "stripe/resources/sigma/scheduled_query_run"
117
125
  require "stripe/resources/source"
126
+ require "stripe/resources/source_mandate_notification"
118
127
  require "stripe/resources/source_transaction"
119
128
  require "stripe/resources/subscription"
120
129
  require "stripe/resources/subscription_item"
@@ -128,6 +137,7 @@ require "stripe/resources/tax/settings"
128
137
  require "stripe/resources/tax/transaction"
129
138
  require "stripe/resources/tax/transaction_line_item"
130
139
  require "stripe/resources/tax_code"
140
+ require "stripe/resources/tax_deducted_at_source"
131
141
  require "stripe/resources/tax_id"
132
142
  require "stripe/resources/tax_rate"
133
143
  require "stripe/resources/terminal/configuration"
@@ -4,7 +4,7 @@
4
4
  module Stripe
5
5
  module Billing
6
6
  class CreditBalanceSummaryService < StripeService
7
- # Retrieves the credit balance summary for a customer
7
+ # Retrieves the credit balance summary for a customer.
8
8
  def retrieve(params = {}, opts = {})
9
9
  request(
10
10
  method: :get,
@@ -4,7 +4,7 @@
4
4
  module Stripe
5
5
  module Billing
6
6
  class CreditBalanceTransactionService < StripeService
7
- # Retrieve a list of credit balance transactions
7
+ # Retrieve a list of credit balance transactions.
8
8
  def list(params = {}, opts = {})
9
9
  request(
10
10
  method: :get,
@@ -15,7 +15,7 @@ module Stripe
15
15
  )
16
16
  end
17
17
 
18
- # Retrieves a credit balance transaction
18
+ # Retrieves a credit balance transaction.
19
19
  def retrieve(id, params = {}, opts = {})
20
20
  request(
21
21
  method: :get,
@@ -4,7 +4,7 @@
4
4
  module Stripe
5
5
  module Billing
6
6
  class CreditGrantService < StripeService
7
- # Creates a credit grant
7
+ # Creates a credit grant.
8
8
  def create(params = {}, opts = {})
9
9
  request(
10
10
  method: :post,
@@ -37,7 +37,7 @@ module Stripe
37
37
  )
38
38
  end
39
39
 
40
- # Retrieves a credit grant
40
+ # Retrieves a credit grant.
41
41
  def retrieve(id, params = {}, opts = {})
42
42
  request(
43
43
  method: :get,
@@ -48,7 +48,7 @@ module Stripe
48
48
  )
49
49
  end
50
50
 
51
- # Updates a credit grant
51
+ # Updates a credit grant.
52
52
  def update(id, params = {}, opts = {})
53
53
  request(
54
54
  method: :post,
@@ -4,7 +4,7 @@
4
4
  module Stripe
5
5
  module Billing
6
6
  class MeterEventAdjustmentService < StripeService
7
- # Creates a billing meter event adjustment
7
+ # Creates a billing meter event adjustment.
8
8
  def create(params = {}, opts = {})
9
9
  request(
10
10
  method: :post,
@@ -4,7 +4,7 @@
4
4
  module Stripe
5
5
  module Billing
6
6
  class MeterEventService < StripeService
7
- # Creates a billing meter event
7
+ # Creates a billing meter event.
8
8
  def create(params = {}, opts = {})
9
9
  request(
10
10
  method: :post,
@@ -11,7 +11,7 @@ module Stripe
11
11
  @event_summaries = Stripe::Billing::MeterEventSummaryService.new(@requestor)
12
12
  end
13
13
 
14
- # Creates a billing meter
14
+ # Creates a billing meter.
15
15
  def create(params = {}, opts = {})
16
16
  request(
17
17
  method: :post,
@@ -22,7 +22,7 @@ module Stripe
22
22
  )
23
23
  end
24
24
 
25
- # Deactivates a billing meter
25
+ # When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price.
26
26
  def deactivate(id, params = {}, opts = {})
27
27
  request(
28
28
  method: :post,
@@ -44,7 +44,7 @@ module Stripe
44
44
  )
45
45
  end
46
46
 
47
- # Reactivates a billing meter
47
+ # When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.
48
48
  def reactivate(id, params = {}, opts = {})
49
49
  request(
50
50
  method: :post,
@@ -55,7 +55,7 @@ module Stripe
55
55
  )
56
56
  end
57
57
 
58
- # Retrieves a billing meter given an ID
58
+ # Retrieves a billing meter given an ID.
59
59
  def retrieve(id, params = {}, opts = {})
60
60
  request(
61
61
  method: :get,
@@ -66,7 +66,7 @@ module Stripe
66
66
  )
67
67
  end
68
68
 
69
- # Updates a billing meter
69
+ # Updates a billing meter.
70
70
  def update(id, params = {}, opts = {})
71
71
  request(
72
72
  method: :post,
@@ -83,6 +83,7 @@ module Stripe
83
83
  @unsaved_values = Set.new
84
84
  @transient_values = Set.new
85
85
  @values[:id] = id if id
86
+ @id = id
86
87
  @last_response = nil
87
88
  @requestor = requestor || APIRequestor.active_requestor
88
89
  end
@@ -369,6 +370,10 @@ module Stripe
369
370
  define_method(:"#{k}?") { @values[k] } if [FalseClass, TrueClass].include?(values[k].class)
370
371
  end
371
372
  end
373
+
374
+ keys.each do |k|
375
+ instance_variable_set(:"@#{k}", values[k])
376
+ end
372
377
  end
373
378
 
374
379
  # Disabling the cop because it's confused by the fact that the methods are
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "13.3.0-beta.1"
4
+ VERSION = "13.3.0-beta.3"
5
5
  end
data/stripe.gemspec CHANGED
@@ -35,7 +35,8 @@ Gem::Specification.new do |s|
35
35
  /\A\.vscode/,
36
36
  /\Abin/,
37
37
  /\Asorbet/,
38
- /\Atest/
38
+ /\Atest/,
39
+ /\Arbi/
39
40
  )
40
41
  s.files = `git ls-files`.split("\n").grep_v(ignored)
41
42
  s.bindir = "exe"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.3.0.pre.beta.1
4
+ version: 13.3.0.pre.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-21 00:00:00.000000000 Z
11
+ date: 2024-12-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Stripe is the easiest way to accept payments online. See https://stripe.com
14
14
  for details.
@@ -68,6 +68,7 @@ files:
68
68
  - lib/stripe/resources/account_session.rb
69
69
  - lib/stripe/resources/alipay_account.rb
70
70
  - lib/stripe/resources/apple_pay_domain.rb
71
+ - lib/stripe/resources/application.rb
71
72
  - lib/stripe/resources/application_fee.rb
72
73
  - lib/stripe/resources/application_fee_refund.rb
73
74
  - lib/stripe/resources/apps/secret.rb
@@ -75,10 +76,12 @@ files:
75
76
  - lib/stripe/resources/balance_transaction.rb
76
77
  - lib/stripe/resources/bank_account.rb
77
78
  - lib/stripe/resources/billing/alert.rb
79
+ - lib/stripe/resources/billing/alert_triggered.rb
78
80
  - lib/stripe/resources/billing/credit_balance_summary.rb
79
81
  - lib/stripe/resources/billing/credit_balance_transaction.rb
80
82
  - lib/stripe/resources/billing/credit_grant.rb
81
83
  - lib/stripe/resources/billing/meter.rb
84
+ - lib/stripe/resources/billing/meter_error_report.rb
82
85
  - lib/stripe/resources/billing/meter_event.rb
83
86
  - lib/stripe/resources/billing/meter_event_adjustment.rb
84
87
  - lib/stripe/resources/billing/meter_event_summary.rb
@@ -96,6 +99,7 @@ files:
96
99
  - lib/stripe/resources/climate/product.rb
97
100
  - lib/stripe/resources/climate/supplier.rb
98
101
  - lib/stripe/resources/confirmation_token.rb
102
+ - lib/stripe/resources/connect_collection_transfer.rb
99
103
  - lib/stripe/resources/country_spec.rb
100
104
  - lib/stripe/resources/coupon.rb
101
105
  - lib/stripe/resources/credit_note.rb
@@ -107,6 +111,7 @@ files:
107
111
  - lib/stripe/resources/discount.rb
108
112
  - lib/stripe/resources/dispute.rb
109
113
  - lib/stripe/resources/entitlements/active_entitlement.rb
114
+ - lib/stripe/resources/entitlements/active_entitlement_summary.rb
110
115
  - lib/stripe/resources/entitlements/feature.rb
111
116
  - lib/stripe/resources/ephemeral_key.rb
112
117
  - lib/stripe/resources/event.rb
@@ -140,6 +145,7 @@ files:
140
145
  - lib/stripe/resources/issuing/fraud_liability_debit.rb
141
146
  - lib/stripe/resources/issuing/personalization_design.rb
142
147
  - lib/stripe/resources/issuing/physical_bundle.rb
148
+ - lib/stripe/resources/issuing/settlement.rb
143
149
  - lib/stripe/resources/issuing/token.rb
144
150
  - lib/stripe/resources/issuing/transaction.rb
145
151
  - lib/stripe/resources/line_item.rb
@@ -162,6 +168,7 @@ files:
162
168
  - lib/stripe/resources/product_feature.rb
163
169
  - lib/stripe/resources/promotion_code.rb
164
170
  - lib/stripe/resources/quote.rb
171
+ - lib/stripe/resources/quote_line.rb
165
172
  - lib/stripe/resources/quote_preview_invoice.rb
166
173
  - lib/stripe/resources/quote_preview_subscription_schedule.rb
167
174
  - lib/stripe/resources/radar/early_fraud_warning.rb
@@ -171,6 +178,7 @@ files:
171
178
  - lib/stripe/resources/refund.rb
172
179
  - lib/stripe/resources/reporting/report_run.rb
173
180
  - lib/stripe/resources/reporting/report_type.rb
181
+ - lib/stripe/resources/reserve_transaction.rb
174
182
  - lib/stripe/resources/reversal.rb
175
183
  - lib/stripe/resources/review.rb
176
184
  - lib/stripe/resources/setup_attempt.rb
@@ -178,6 +186,7 @@ files:
178
186
  - lib/stripe/resources/shipping_rate.rb
179
187
  - lib/stripe/resources/sigma/scheduled_query_run.rb
180
188
  - lib/stripe/resources/source.rb
189
+ - lib/stripe/resources/source_mandate_notification.rb
181
190
  - lib/stripe/resources/source_transaction.rb
182
191
  - lib/stripe/resources/subscription.rb
183
192
  - lib/stripe/resources/subscription_item.rb
@@ -191,6 +200,7 @@ files:
191
200
  - lib/stripe/resources/tax/transaction.rb
192
201
  - lib/stripe/resources/tax/transaction_line_item.rb
193
202
  - lib/stripe/resources/tax_code.rb
203
+ - lib/stripe/resources/tax_deducted_at_source.rb
194
204
  - lib/stripe/resources/tax_id.rb
195
205
  - lib/stripe/resources/tax_rate.rb
196
206
  - lib/stripe/resources/terminal/configuration.rb
@@ -215,6 +225,7 @@ files:
215
225
  - lib/stripe/resources/treasury/transaction_entry.rb
216
226
  - lib/stripe/resources/usage_record.rb
217
227
  - lib/stripe/resources/usage_record_summary.rb
228
+ - lib/stripe/resources/v2/amount.rb
218
229
  - lib/stripe/resources/v2/billing/meter_event.rb
219
230
  - lib/stripe/resources/v2/billing/meter_event_adjustment.rb
220
231
  - lib/stripe/resources/v2/billing/meter_event_session.rb