stripe 15.6.0.pre.alpha.2 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bb756f1482579293dfba069ad5a5e20525f86dd02688adcc35b033224920a64c
4
- data.tar.gz: 86c75bb064d28a02af8b72e778f4a2c6b2616808064071c1ba9c70e847b3adf2
3
+ metadata.gz: ae03e20556c6ecf245f2f5c7351da9e3bc4ce49cff9691ec88272f9be0fc1970
4
+ data.tar.gz: 26a6d0cd2f9056020b09154183d44f0c84fe118533851abd1b97962868bb76f6
5
5
  SHA512:
6
- metadata.gz: 4ca090d3e18e751ce89a1570d93f936f080949d348afb0e8f6e3156fadf2e6085cbf32736166bf7f94c44e19cff03b6a1d1f5d27a9c1047dba7e46bc6d78737f
7
- data.tar.gz: 83ee63dd9ce904aa9b8993c212659f95b98a24c3bd65e33bde9261cf57430878bde87c488bf568c6a52d19fac2fbdc845384e6d20c059eb53be986d247807927
6
+ metadata.gz: 21e7f42a19648e18c69cd84966b0386a685339f627c2db88d6e606fe7a03883ff5cd2bb68d71447a25a2c719bde8ace55d3ba8929983c3c77d2a2aa2fbdbc5f1
7
+ data.tar.gz: 73154cd9959530f5c3ef924a8490c247d78562ca5d1259adcca1232e1d6ea7544f17da244ac222cfc6bfd57272082f3686650c93dcbb5d19e5744537a71cb0a2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 15.6.0-alpha.3 - 2025-09-17
4
+ * [#1654](https://github.com/stripe/stripe-ruby/pull/1654) generate private-preview SDK w/ mid Sept changes
5
+ * Add support for `retrieve` method on resource `V2.Core.ClaimableSandbox`
6
+ * Add support for `month_of_year` on `V2.Billing.Cadence#create.billing_cycle.month` and `V2.Billing.Cadence.billing_cycle.month`
7
+ * Add support for `claimed_at`, `expires_at`, `sandbox_details`, and `status` on `V2.Core.ClaimableSandbox`
8
+ * Remove support for `api_keys` on `V2.Core.ClaimableSandbox`
9
+ * Change type of `V2.Core.ClaimableSandbox.claim_url` from `string` to `nullable(string)`
10
+ * Add support for new value `current_billing_period_end` on enums `V2.Billing.Intent#create.actions[].deactivate.effective_at.type` and `V2.Billing.IntentAction.deactivate.effective_at.type`
11
+ * Add support for `will_activate_at` and `will_cancel_at` on `V2.Billing.PricingPlanSubscription.servicing_status_transitions` and `V2.Billing.RateCardSubscription.servicing_status_transitions`
12
+ * Add support for `category` and `priority` on `V2.Billing.ServiceAction#create.credit_grant_per_tenant`, `V2.Billing.ServiceAction#create.credit_grant`, `V2.Billing.ServiceAction.credit_grant_per_tenant`, and `V2.Billing.ServiceAction.credit_grant`
13
+ * Change `V2.Billing.LicenseFee#update.display_name` to be optional
14
+ * Add support for `invoices` on `EventsV2BillingCadenceBilledEvent`
15
+ * Add support for thin events `V2CoreClaimableSandboxClaimedEvent`, `V2CoreClaimableSandboxExpiredEvent`, `V2CoreClaimableSandboxExpiringEvent`, and `V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent` with related object `V2.Core.ClaimableSandbox`
16
+ * Remove support for thin event `V2BillingCadenceErroredEvent` with related object `V2.Billing.Cadence`
17
+
3
18
  ## 15.6.0-alpha.2 - 2025-09-02
4
19
  * [#1642](https://github.com/stripe/stripe-ruby/pull/1642) Deserialize inner types in resources for more detailed types
5
20
  * ⚠️ Deserialize inner classes, so inner class types will now reflect generated inner classes
@@ -51,7 +66,7 @@
51
66
  * Add support for thin events `V2CoreHealthApiErrorFiringEvent`, `V2CoreHealthApiErrorResolvedEvent`, `V2CoreHealthApiLatencyFiringEvent`, `V2CoreHealthApiLatencyResolvedEvent`, `V2CoreHealthAuthorizationRateDropFiringEvent`, `V2CoreHealthAuthorizationRateDropResolvedEvent`, `V2CoreHealthEventGenerationFailureResolvedEvent`, `V2CoreHealthFraudRateIncreasedEvent`, `V2CoreHealthIssuingAuthorizationRequestTimeoutFiringEvent`, `V2CoreHealthIssuingAuthorizationRequestTimeoutResolvedEvent`, `V2CoreHealthPaymentMethodErrorFiringEvent`, `V2CoreHealthPaymentMethodErrorResolvedEvent`, `V2CoreHealthTrafficVolumeDropFiringEvent`, `V2CoreHealthTrafficVolumeDropResolvedEvent`, `V2CoreHealthWebhookLatencyFiringEvent`, and `V2CoreHealthWebhookLatencyResolvedEvent`
52
67
  * Add support for thin events `V2ReportingReportRunCreatedEvent`, `V2ReportingReportRunFailedEvent`, `V2ReportingReportRunSucceededEvent`, and `V2ReportingReportRunUpdatedEvent` with related object `V2::Reporting::ReportRun`
53
68
  * Add support for error type `RateLimitError`
54
-
69
+
55
70
  ## 15.6.0-beta.1 - 2025-08-27
56
71
  This release changes the pinned API version to `2025-08-27.preview`.
57
72
 
@@ -240,7 +255,7 @@ This release changes the pinned API version to `2025-05-28.preview`.
240
255
  * Change type of `Privacy::RedactionJobValidationError.erroring_object` from `map(string: string)` to `RedactionResourceErroringObject`
241
256
  * Remove support for `async_workflows` on `PaymentIntent::CaptureParams`, `PaymentIntent::ConfirmParams`, `PaymentIntent::CreateParams`, `PaymentIntent::DecrementAuthorizationParams`, `PaymentIntent::IncrementAuthorizationParams`, `PaymentIntent::UpdateParams`, and `PaymentIntent`
242
257
  * Remove support for `status_details` and `status` on `Tax::Association`
243
-
258
+
244
259
  ### Other changes
245
260
  * Add support for `migrate` method on resource `Subscription`
246
261
  * Add support for `distance`, `pickup_location_name`, `return_location_name`, and `vehicle_identification_number` on `Charge::CaptureParams::PaymentDetail::CarRental`, `Charge::UpdateParams::PaymentDetail::CarRental`, `PaymentIntent::CaptureParams::PaymentDetail::CarRental`, `PaymentIntent::ConfirmParams::PaymentDetail::CarRental`, `PaymentIntent::CreateParams::PaymentDetail::CarRental`, `PaymentIntent::PaymentDetail::CarRental`, and `PaymentIntent::UpdateParams::PaymentDetail::CarRental`
@@ -346,10 +361,10 @@ This release changes the pinned API version to `2025-05-28.preview`.
346
361
 
347
362
  ## 15.1.0-beta.1 - 2025-04-10
348
363
  * [#1569](https://github.com/stripe/stripe-ruby/pull/1569) Update generated code for beta
349
-
364
+
350
365
  ### Breaking changes
351
366
  * Change type of `V2MoneyManagementReceivedDebit.status_transitions` from `an object` to `nullable(an object)`
352
-
367
+
353
368
  ### Additions
354
369
  * Add support for new resources `Privacy::RedactionJobRootObjects`, `Privacy::RedactionJobValidationError`, and `Privacy::RedactionJob`
355
370
  * Add support for `cancel`, `create`, `list`, `retrieve`, `run`, `update`, and `validate` methods on resource `RedactionJob`
@@ -391,7 +406,7 @@ This release changes the pinned API version to `2025-05-28.preview`.
391
406
  ### Breaking changes
392
407
  * Change type of `QuotePreviewInvoice::Parent::SubscriptionDetail.subscription` from `string` to `expandable($Subscription)`
393
408
  * Remove support for `value` on `TerminalReader::Action::CollectInput::Input::Selection::Choice`, `TerminalReader::Action::CollectInput::Input::Selection`, and `TerminalReader::CollectInputsParams::Input::Selection::Choice`
394
-
409
+
395
410
  ### Additions
396
411
  * Add support for `payment_method_options` on `ConfirmationToken::CreateParams`
397
412
  * Add support for `installments` on `ConfirmationToken::PaymentMethodOption::Card`
@@ -470,7 +485,7 @@ This release changes the pinned API version to `2025-05-28.preview`.
470
485
  ## 13.6.0-beta.1 - 2025-03-18
471
486
  * [#1550](https://github.com/stripe/stripe-ruby/pull/1550) Merge from stripe-ruby master
472
487
  * [#1546](https://github.com/stripe/stripe-ruby/pull/1546) Beta SDK updates between Open API versions 1473 and 1505
473
-
488
+
474
489
  * Add support for `succeed_input_collection` and `timeout_input_collection` test helper methods on resource `Terminal.Reader`
475
490
  * [#1545](https://github.com/stripe/stripe-ruby/pull/1545) fix ruby merge conflict for beta
476
491
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 15.6.0-alpha.2
1
+ 15.6.0-alpha.3
@@ -10,7 +10,6 @@ module Stripe
10
10
  V2BillingCadenceBilledEvent.lookup_type => V2BillingCadenceBilledEvent,
11
11
  V2BillingCadenceCanceledEvent.lookup_type => V2BillingCadenceCanceledEvent,
12
12
  V2BillingCadenceCreatedEvent.lookup_type => V2BillingCadenceCreatedEvent,
13
- V2BillingCadenceErroredEvent.lookup_type => V2BillingCadenceErroredEvent,
14
13
  V2BillingLicenseFeeCreatedEvent.lookup_type => V2BillingLicenseFeeCreatedEvent,
15
14
  V2BillingLicenseFeeUpdatedEvent.lookup_type => V2BillingLicenseFeeUpdatedEvent,
16
15
  V2BillingLicenseFeeVersionCreatedEvent.lookup_type => V2BillingLicenseFeeVersionCreatedEvent,
@@ -92,6 +91,11 @@ module Stripe
92
91
  V2CoreAccountPersonDeletedEvent.lookup_type => V2CoreAccountPersonDeletedEvent,
93
92
  V2CoreAccountPersonUpdatedEvent.lookup_type => V2CoreAccountPersonUpdatedEvent,
94
93
  V2CoreAccountUpdatedEvent.lookup_type => V2CoreAccountUpdatedEvent,
94
+ V2CoreClaimableSandboxClaimedEvent.lookup_type => V2CoreClaimableSandboxClaimedEvent,
95
+ V2CoreClaimableSandboxExpiredEvent.lookup_type => V2CoreClaimableSandboxExpiredEvent,
96
+ V2CoreClaimableSandboxExpiringEvent.lookup_type => V2CoreClaimableSandboxExpiringEvent,
97
+ V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent.lookup_type =>
98
+ V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent,
95
99
  V2CoreEventDestinationPingEvent.lookup_type => V2CoreEventDestinationPingEvent,
96
100
  V2CoreHealthApiErrorFiringEvent.lookup_type => V2CoreHealthApiErrorFiringEvent,
97
101
  V2CoreHealthApiErrorResolvedEvent.lookup_type => V2CoreHealthApiErrorResolvedEvent,
@@ -7,6 +7,8 @@ module Stripe
7
7
  def self.lookup_type
8
8
  "v2.billing.cadence.billed"
9
9
  end
10
+ # There is additional data present for this event, accessible with the `data` property.
11
+ # See the Stripe API docs for more information.
10
12
 
11
13
  # Retrieves the related object from the API. Make an API request on every call.
12
14
  def fetch_related_object
@@ -2,10 +2,10 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # Occurs when a billing Cadence encounters an error during a tick.
6
- class V2BillingCadenceErroredEvent < Stripe::V2::Event
5
+ # Occurs when a claimable sandbox is claimed.
6
+ class V2CoreClaimableSandboxClaimedEvent < Stripe::V2::Event
7
7
  def self.lookup_type
8
- "v2.billing.cadence.errored"
8
+ "v2.core.claimable_sandbox.claimed"
9
9
  end
10
10
 
11
11
  # Retrieves the related object from the API. Make an API request on every call.
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when a claimable sandbox expires.
6
+ class V2CoreClaimableSandboxExpiredEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.core.claimable_sandbox.expired"
9
+ end
10
+
11
+ # Retrieves the related object from the API. Make an API request on every call.
12
+ def fetch_related_object
13
+ _request(
14
+ method: :get,
15
+ path: related_object.url,
16
+ base_address: :api,
17
+ opts: { stripe_account: context }
18
+ )
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when a claimable sandbox is expiring in 7 days.
6
+ class V2CoreClaimableSandboxExpiringEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.core.claimable_sandbox.expiring"
9
+ end
10
+
11
+ # Retrieves the related object from the API. Make an API request on every call.
12
+ def fetch_related_object
13
+ _request(
14
+ method: :get,
15
+ path: related_object.url,
16
+ base_address: :api,
17
+ opts: { stripe_account: context }
18
+ )
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,21 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ # Occurs when a claimable sandbox is activated by the user with the intention to go live and your Stripe app is installed on the live account.
6
+ class V2CoreClaimableSandboxSandboxDetailsOwnerAccountUpdatedEvent < Stripe::V2::Event
7
+ def self.lookup_type
8
+ "v2.core.claimable_sandbox.sandbox_details_owner_account_updated"
9
+ end
10
+
11
+ # Retrieves the related object from the API. Make an API request on every call.
12
+ def fetch_related_object
13
+ _request(
14
+ method: :get,
15
+ path: related_object.url,
16
+ base_address: :api,
17
+ opts: { stripe_account: context }
18
+ )
19
+ end
20
+ end
21
+ end
@@ -69,6 +69,9 @@ module Stripe
69
69
  # If this number is greater than the number of days in the month being billed,
70
70
  # this will anchor to the last day of the month.
71
71
  attr_reader :day_of_month
72
+ # The month to anchor the billing on for a type="month" billing cycle from
73
+ # 1-12. Occurrences are calculated from the month anchor.
74
+ attr_reader :month_of_year
72
75
  # The time at which the billing cycle ends.
73
76
  attr_reader :time
74
77
 
@@ -38,6 +38,10 @@ module Stripe
38
38
  attr_reader :canceled_at
39
39
  # When the servicing status transitioned to paused.
40
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
41
45
 
42
46
  def self.inner_class_types
43
47
  @inner_class_types = {}
@@ -38,6 +38,10 @@ module Stripe
38
38
  attr_reader :canceled_at
39
39
  # When the servicing status transitioned to paused.
40
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
41
45
 
42
46
  def self.inner_class_types
43
47
  @inner_class_types = {}
@@ -85,10 +85,14 @@ module Stripe
85
85
  attr_reader :amount
86
86
  # Defines the scope where the credit grant is applicable.
87
87
  attr_reader :applicability_config
88
+ # The category of the credit grant.
89
+ attr_reader :category
88
90
  # The expiry configuration for the credit grant.
89
91
  attr_reader :expiry_config
90
92
  # A descriptive name shown in dashboard.
91
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
92
96
 
93
97
  def self.inner_class_types
94
98
  @inner_class_types = {
@@ -178,10 +182,14 @@ module Stripe
178
182
  attr_reader :amount
179
183
  # Defines the scope where the credit grant is applicable.
180
184
  attr_reader :applicability_config
185
+ # The category of the credit grant.
186
+ attr_reader :category
181
187
  # The expiry configuration for the credit grant.
182
188
  attr_reader :expiry_config
183
189
  # Customer-facing name for the credit grant.
184
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
185
193
 
186
194
  def self.inner_class_types
187
195
  @inner_class_types = {
@@ -17,24 +17,6 @@ module Stripe
17
17
  "v2.core.claimable_sandbox"
18
18
  end
19
19
 
20
- class ApiKeys < Stripe::StripeObject
21
- # Used to communicate with [Stripe's MCP server](https://docs.stripe.com/mcp).
22
- # This allows LLM agents to securely operate on a Stripe account.
23
- attr_reader :mcp
24
- # Publicly accessible in a web or mobile app client-side code.
25
- attr_reader :publishable
26
- # Should be stored securely in server-side code (such as an environment variable).
27
- attr_reader :secret
28
-
29
- def self.inner_class_types
30
- @inner_class_types = {}
31
- end
32
-
33
- def self.field_remappings
34
- @field_remappings = {}
35
- end
36
- end
37
-
38
20
  class Prefill < Stripe::StripeObject
39
21
  # Country in which the account holder resides, or in which the business is legally established.
40
22
  # Use two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
@@ -53,23 +35,65 @@ module Stripe
53
35
  @field_remappings = {}
54
36
  end
55
37
  end
56
- # Keys that can be used to set up an integration for this sandbox and operate on the account.
57
- attr_reader :api_keys
38
+
39
+ class SandboxDetails < Stripe::StripeObject
40
+ class ApiKeys < Stripe::StripeObject
41
+ # Used to communicate with [Stripe's MCP server](https://docs.stripe.com/mcp).
42
+ # This allows LLM agents to securely operate on a Stripe account.
43
+ attr_reader :mcp
44
+ # Publicly accessible in a web or mobile app client-side code.
45
+ attr_reader :publishable
46
+ # Should be stored securely in server-side code (such as an environment variable).
47
+ attr_reader :secret
48
+
49
+ def self.inner_class_types
50
+ @inner_class_types = {}
51
+ end
52
+
53
+ def self.field_remappings
54
+ @field_remappings = {}
55
+ end
56
+ end
57
+ # The sandbox's Stripe account ID.
58
+ attr_reader :account
59
+ # Keys that can be used to set up an integration for this sandbox and operate on the account.
60
+ attr_reader :api_keys
61
+ # The livemode sandbox Stripe account ID. This field is only set if the user activates their sandbox
62
+ # and chooses to install your platform's Stripe App in their live account.
63
+ attr_reader :owner_account
64
+
65
+ def self.inner_class_types
66
+ @inner_class_types = { api_keys: ApiKeys }
67
+ end
68
+
69
+ def self.field_remappings
70
+ @field_remappings = {}
71
+ end
72
+ end
58
73
  # URL for user to claim sandbox into their existing Stripe account.
74
+ # The value will be null if the sandbox status is `claimed` or `expired`.
59
75
  attr_reader :claim_url
76
+ # The timestamp the sandbox was claimed. The value will be null if the sandbox status is not `claimed`.
77
+ attr_reader :claimed_at
60
78
  # When the sandbox is created.
61
79
  attr_reader :created
80
+ # The timestamp the sandbox will expire. The value will be null if the sandbox is `claimed`.
81
+ attr_reader :expires_at
62
82
  # Unique identifier for the Claimable sandbox.
63
83
  attr_reader :id
64
84
  # String representing the object's type. Objects of the same type share the same value of the object field.
65
85
  attr_reader :object
66
86
  # Values prefilled during the creation of the sandbox.
67
87
  attr_reader :prefill
88
+ # Data about the Stripe sandbox object.
89
+ attr_reader :sandbox_details
90
+ # Status of the sandbox. One of `unclaimed`, `expired`, `claimed`.
91
+ attr_reader :status
68
92
  # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
69
93
  attr_reader :livemode
70
94
 
71
95
  def self.inner_class_types
72
- @inner_class_types = { api_keys: ApiKeys, prefill: Prefill }
96
+ @inner_class_types = { prefill: Prefill, sandbox_details: SandboxDetails }
73
97
  end
74
98
 
75
99
  def self.field_remappings
@@ -225,7 +225,6 @@ require "stripe/events/v1_billing_meter_no_meter_found_event"
225
225
  require "stripe/events/v2_billing_cadence_billed_event"
226
226
  require "stripe/events/v2_billing_cadence_canceled_event"
227
227
  require "stripe/events/v2_billing_cadence_created_event"
228
- require "stripe/events/v2_billing_cadence_errored_event"
229
228
  require "stripe/events/v2_billing_license_fee_created_event"
230
229
  require "stripe/events/v2_billing_license_fee_updated_event"
231
230
  require "stripe/events/v2_billing_license_fee_version_created_event"
@@ -278,6 +277,10 @@ require "stripe/events/v2_core_account_person_created_event"
278
277
  require "stripe/events/v2_core_account_person_deleted_event"
279
278
  require "stripe/events/v2_core_account_person_updated_event"
280
279
  require "stripe/events/v2_core_account_updated_event"
280
+ require "stripe/events/v2_core_claimable_sandbox_claimed_event"
281
+ require "stripe/events/v2_core_claimable_sandbox_expired_event"
282
+ require "stripe/events/v2_core_claimable_sandbox_expiring_event"
283
+ require "stripe/events/v2_core_claimable_sandbox_sandbox_details_owner_account_updated_event"
281
284
  require "stripe/events/v2_core_event_destination_ping_event"
282
285
  require "stripe/events/v2_core_health_api_error_firing_event"
283
286
  require "stripe/events/v2_core_health_api_error_resolved_event"
@@ -91,13 +91,19 @@ module Stripe
91
91
  # billed, this will anchor to the last day of the month. If not provided,
92
92
  # this will default to the day the cadence was created.
93
93
  attr_accessor :day_of_month
94
+ # The month to anchor the billing on for a type="month" billing cycle from
95
+ # 1-12. If not provided, this will default to the month the cadence was created.
96
+ # This setting can only be used for monthly billing cycles with `interval_count` of 2, 3, 4 or 6.
97
+ # All occurrences will be calculated from month provided.
98
+ attr_accessor :month_of_year
94
99
  # The time at which the billing cycle ends.
95
100
  # This field is optional, and if not provided, it will default to
96
101
  # the time at which the cadence was created in UTC timezone.
97
102
  attr_accessor :time
98
103
 
99
- def initialize(day_of_month: nil, time: nil)
104
+ def initialize(day_of_month: nil, month_of_year: nil, time: nil)
100
105
  @day_of_month = day_of_month
106
+ @month_of_year = month_of_year
101
107
  @time = time
102
108
  end
103
109
  end
@@ -30,7 +30,7 @@ module Stripe
30
30
  @timestamp = timestamp
31
31
  end
32
32
  end
33
- # List of meter events to include in the request.
33
+ # List of meter events to include in the request. Supports up to 100 events per request.
34
34
  attr_accessor :events
35
35
 
36
36
  def initialize(events: nil)
@@ -65,16 +65,29 @@ module Stripe
65
65
  attr_accessor :amount
66
66
  # Defines the scope where the credit grant is applicable.
67
67
  attr_accessor :applicability_config
68
+ # The category of the credit grant.
69
+ attr_accessor :category
68
70
  # The expiry configuration for the credit grant.
69
71
  attr_accessor :expiry_config
70
72
  # A descriptive name shown in dashboard.
71
73
  attr_accessor :name
74
+ # 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.
75
+ attr_accessor :priority
72
76
 
73
- def initialize(amount: nil, applicability_config: nil, expiry_config: nil, name: nil)
77
+ def initialize(
78
+ amount: nil,
79
+ applicability_config: nil,
80
+ category: nil,
81
+ expiry_config: nil,
82
+ name: nil,
83
+ priority: nil
84
+ )
74
85
  @amount = amount
75
86
  @applicability_config = applicability_config
87
+ @category = category
76
88
  @expiry_config = expiry_config
77
89
  @name = name
90
+ @priority = priority
78
91
  end
79
92
  end
80
93
 
@@ -179,25 +192,33 @@ module Stripe
179
192
  attr_accessor :amount
180
193
  # Defines the scope where the credit grant is applicable.
181
194
  attr_accessor :applicability_config
195
+ # The category of the credit grant.
196
+ attr_accessor :category
182
197
  # The expiry configuration for the credit grant.
183
198
  attr_accessor :expiry_config
184
199
  # The grant condition for the credit grant.
185
200
  attr_accessor :grant_condition
186
201
  # Customer-facing name for the credit grant.
187
202
  attr_accessor :name
203
+ # 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.
204
+ attr_accessor :priority
188
205
 
189
206
  def initialize(
190
207
  amount: nil,
191
208
  applicability_config: nil,
209
+ category: nil,
192
210
  expiry_config: nil,
193
211
  grant_condition: nil,
194
- name: nil
212
+ name: nil,
213
+ priority: nil
195
214
  )
196
215
  @amount = amount
197
216
  @applicability_config = applicability_config
217
+ @category = category
198
218
  @expiry_config = expiry_config
199
219
  @grant_condition = grant_condition
200
220
  @name = name
221
+ @priority = priority
201
222
  end
202
223
  end
203
224
  # An internal key you can use to search for this service action. Maximum length of 200 characters.
@@ -33,6 +33,8 @@ module Stripe
33
33
  end
34
34
  end
35
35
 
36
+ class RetrieveParams < Stripe::RequestParams; end
37
+
36
38
  # Create an anonymous, claimable sandbox. This sandbox can be prefilled with data. The response will include
37
39
  # a claim URL that allow a user to claim the account.
38
40
  def create(params = {}, opts = {})
@@ -44,6 +46,19 @@ module Stripe
44
46
  base_address: :api
45
47
  )
46
48
  end
49
+
50
+ # Retrieves the details of a claimable sandbox that was previously been created.
51
+ # Supply the unique claimable sandbox ID that was returned from your creation request,
52
+ # and Stripe will return the corresponding sandbox information.
53
+ def retrieve(id, params = {}, opts = {})
54
+ request(
55
+ method: :get,
56
+ path: format("/v2/core/claimable_sandboxes/%<id>s", { id: CGI.escape(id) }),
57
+ params: params,
58
+ opts: opts,
59
+ base_address: :api
60
+ )
61
+ end
47
62
  end
48
63
  end
49
64
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "15.6.0-alpha.2"
4
+ VERSION = "15.6.0-alpha.3"
5
5
  end