stripe 9.4.0.pre.beta.2 → 9.4.0.pre.beta.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52c3ade4e579d5105608cdbc8376206b4c49676e6666cba84682acb14c38f6fd
4
- data.tar.gz: 24b2e7585eea630da22d59ca7ab8c56376e1fe120b2b7cd9235eff55a1ab536f
3
+ metadata.gz: 5a614dc902059fe7cd8fc457e2b3074fe27852175e85149506696e59e6383f09
4
+ data.tar.gz: e337556039216583207283b2cf00c5e8e3853e76c087dc3fb97f9efb46317048
5
5
  SHA512:
6
- metadata.gz: a22eea0f783b1f98bd8b4ee5f39380e6dfb6f4d6c70607f53ec084a073e39d06d3cebe9f9553d9d6d85b4928475772d9470aeaaa2dd3fafa27e7cfb6ae213f68
7
- data.tar.gz: 5128b0127936534755ca895220d97b62818776cca564ed5d560fbb781feba896c5803b3486b747eee77e195643a384d26b2c20a6b68ff5863d26e22bb8ffa74d
6
+ metadata.gz: 8a5a634c8a31aea738af218070c71e0d138a4132f18701928e677c0166571b67bc65d5a960f3c1e7f506d478072e61f4311d03555844c1f2c39514dd96d02286
7
+ data.tar.gz: c9e0957347da262d0141e070b941192b1f3ffcb7c2939676abf50cc8c3ef6fbc2c548a3adff0fc814f7b0b15fc84ed2e8e75b05fb29fb315bd428390e0963c8a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.4.0-beta.3 - 2023-09-28
4
+ * [#1276](https://github.com/stripe/stripe-ruby/pull/1276) Update generated code for beta
5
+ * Rename resources `Issuing.CardDesign` and `Issuing.CardBundle` to `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle`
6
+
3
7
  ## 9.4.0-beta.2 - 2023-09-21
4
8
  * [#1273](https://github.com/stripe/stripe-ruby/pull/1273) Update generated code for beta
5
9
 
data/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v540
1
+ v569
data/VERSION CHANGED
@@ -1 +1 @@
1
- 9.4.0-beta.2
1
+ 9.4.0-beta.3
@@ -66,10 +66,10 @@ module Stripe
66
66
  InvoiceLineItem::OBJECT_NAME => InvoiceLineItem,
67
67
  Issuing::Authorization::OBJECT_NAME => Issuing::Authorization,
68
68
  Issuing::Card::OBJECT_NAME => Issuing::Card,
69
- Issuing::CardBundle::OBJECT_NAME => Issuing::CardBundle,
70
- Issuing::CardDesign::OBJECT_NAME => Issuing::CardDesign,
71
69
  Issuing::Cardholder::OBJECT_NAME => Issuing::Cardholder,
72
70
  Issuing::Dispute::OBJECT_NAME => Issuing::Dispute,
71
+ Issuing::PersonalizationDesign::OBJECT_NAME => Issuing::PersonalizationDesign,
72
+ Issuing::PhysicalBundle::OBJECT_NAME => Issuing::PhysicalBundle,
73
73
  Issuing::Transaction::OBJECT_NAME => Issuing::Transaction,
74
74
  LineItem::OBJECT_NAME => LineItem,
75
75
  LoginLink::OBJECT_NAME => LoginLink,
@@ -0,0 +1,77 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Issuing
6
+ # A Personalization Design is a logical grouping of a Physical Bundle, card logo, and carrier text that represents a product line.
7
+ class PersonalizationDesign < APIResource
8
+ extend Stripe::APIOperations::Create
9
+ extend Stripe::APIOperations::List
10
+ include Stripe::APIOperations::Save
11
+
12
+ OBJECT_NAME = "issuing.personalization_design"
13
+
14
+ def test_helpers
15
+ TestHelpers.new(self)
16
+ end
17
+
18
+ class TestHelpers < APIResourceTestHelpers
19
+ RESOURCE_CLASS = PersonalizationDesign
20
+
21
+ def self.activate(personalization_design, params = {}, opts = {})
22
+ request_stripe_object(
23
+ method: :post,
24
+ path: format("/v1/test_helpers/issuing/personalization_designs/%<personalization_design>s/activate", { personalization_design: CGI.escape(personalization_design) }),
25
+ params: params,
26
+ opts: opts
27
+ )
28
+ end
29
+
30
+ def self.deactivate(personalization_design, params = {}, opts = {})
31
+ request_stripe_object(
32
+ method: :post,
33
+ path: format("/v1/test_helpers/issuing/personalization_designs/%<personalization_design>s/deactivate", { personalization_design: CGI.escape(personalization_design) }),
34
+ params: params,
35
+ opts: opts
36
+ )
37
+ end
38
+
39
+ def self.reject(personalization_design, params = {}, opts = {})
40
+ request_stripe_object(
41
+ method: :post,
42
+ path: format("/v1/test_helpers/issuing/personalization_designs/%<personalization_design>s/reject", { personalization_design: CGI.escape(personalization_design) }),
43
+ params: params,
44
+ opts: opts
45
+ )
46
+ end
47
+
48
+ def activate(params = {}, opts = {})
49
+ @resource.request_stripe_object(
50
+ method: :post,
51
+ path: format("/v1/test_helpers/issuing/personalization_designs/%<personalization_design>s/activate", { personalization_design: CGI.escape(@resource["id"]) }),
52
+ params: params,
53
+ opts: opts
54
+ )
55
+ end
56
+
57
+ def deactivate(params = {}, opts = {})
58
+ @resource.request_stripe_object(
59
+ method: :post,
60
+ path: format("/v1/test_helpers/issuing/personalization_designs/%<personalization_design>s/deactivate", { personalization_design: CGI.escape(@resource["id"]) }),
61
+ params: params,
62
+ opts: opts
63
+ )
64
+ end
65
+
66
+ def reject(params = {}, opts = {})
67
+ @resource.request_stripe_object(
68
+ method: :post,
69
+ path: format("/v1/test_helpers/issuing/personalization_designs/%<personalization_design>s/reject", { personalization_design: CGI.escape(@resource["id"]) }),
70
+ params: params,
71
+ opts: opts
72
+ )
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
@@ -0,0 +1,13 @@
1
+ # File generated from our OpenAPI spec
2
+ # frozen_string_literal: true
3
+
4
+ module Stripe
5
+ module Issuing
6
+ # A Physical Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card.
7
+ class PhysicalBundle < APIResource
8
+ extend Stripe::APIOperations::List
9
+
10
+ OBJECT_NAME = "issuing.physical_bundle"
11
+ end
12
+ end
13
+ end
@@ -2,7 +2,7 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # A Mandate is a record of the permission a customer has given you to debit their payment method.
5
+ # A Mandate is a record of the permission that your customer gives you to debit their payment method.
6
6
  class Mandate < APIResource
7
7
  OBJECT_NAME = "mandate"
8
8
  end
@@ -5,7 +5,7 @@ module Stripe
5
5
  # A `Payout` object is created when you receive funds from Stripe, or when you
6
6
  # initiate a payout to either a bank account or debit card of a [connected
7
7
  # Stripe account](https://stripe.com/docs/connect/bank-debit-card-payouts). You can retrieve individual payouts,
8
- # as well as list all payouts. Payouts are made on [varying
8
+ # and list all payouts. Payouts are made on [varying
9
9
  # schedules](https://stripe.com/docs/connect/manage-payout-schedule), depending on your country and
10
10
  # industry.
11
11
  #
@@ -2,9 +2,9 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Stripe
5
- # `Refund` objects allow you to refund a charge that has previously been created
6
- # but not yet refunded. Funds will be refunded to the credit or debit card that
7
- # was originally charged.
5
+ # Refund objects allow you to refund a previously created charge that isn't
6
+ # refunded yet. Funds are refunded to the credit or debit card that's
7
+ # initially charged.
8
8
  #
9
9
  # Related guide: [Refunds](https://stripe.com/docs/refunds)
10
10
  class Refund < APIResource
@@ -3,7 +3,7 @@
3
3
 
4
4
  module Stripe
5
5
  # A SetupAttempt describes one attempted confirmation of a SetupIntent,
6
- # whether that confirmation was successful or unsuccessful. You can use
6
+ # whether that confirmation is successful or unsuccessful. You can use
7
7
  # SetupAttempts to inspect details of a specific attempt at setting up a
8
8
  # payment method using a SetupIntent.
9
9
  class SetupAttempt < APIResource
@@ -53,10 +53,10 @@ require "stripe/resources/invoice_item"
53
53
  require "stripe/resources/invoice_line_item"
54
54
  require "stripe/resources/issuing/authorization"
55
55
  require "stripe/resources/issuing/card"
56
- require "stripe/resources/issuing/card_bundle"
57
- require "stripe/resources/issuing/card_design"
58
56
  require "stripe/resources/issuing/cardholder"
59
57
  require "stripe/resources/issuing/dispute"
58
+ require "stripe/resources/issuing/personalization_design"
59
+ require "stripe/resources/issuing/physical_bundle"
60
60
  require "stripe/resources/issuing/transaction"
61
61
  require "stripe/resources/line_item"
62
62
  require "stripe/resources/login_link"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "9.4.0-beta.2"
4
+ VERSION = "9.4.0-beta.3"
5
5
  end
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: 9.4.0.pre.beta.2
4
+ version: 9.4.0.pre.beta.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-21 00:00:00.000000000 Z
11
+ date: 2023-09-29 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.
@@ -105,10 +105,10 @@ files:
105
105
  - lib/stripe/resources/invoice_line_item.rb
106
106
  - lib/stripe/resources/issuing/authorization.rb
107
107
  - lib/stripe/resources/issuing/card.rb
108
- - lib/stripe/resources/issuing/card_bundle.rb
109
- - lib/stripe/resources/issuing/card_design.rb
110
108
  - lib/stripe/resources/issuing/cardholder.rb
111
109
  - lib/stripe/resources/issuing/dispute.rb
110
+ - lib/stripe/resources/issuing/personalization_design.rb
111
+ - lib/stripe/resources/issuing/physical_bundle.rb
112
112
  - lib/stripe/resources/issuing/transaction.rb
113
113
  - lib/stripe/resources/line_item.rb
114
114
  - lib/stripe/resources/login_link.rb
@@ -1,13 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Issuing
6
- # A Card Bundle represents the bundle of physical items - card stock, carrier letter, and envelope - that is shipped to a cardholder when you create a physical card.
7
- class CardBundle < APIResource
8
- extend Stripe::APIOperations::List
9
-
10
- OBJECT_NAME = "issuing.card_bundle"
11
- end
12
- end
13
- end
@@ -1,77 +0,0 @@
1
- # File generated from our OpenAPI spec
2
- # frozen_string_literal: true
3
-
4
- module Stripe
5
- module Issuing
6
- # A Card Design is a logical grouping of a Card Bundle, card logo, and carrier text that represents a product line.
7
- class CardDesign < APIResource
8
- extend Stripe::APIOperations::Create
9
- extend Stripe::APIOperations::List
10
- include Stripe::APIOperations::Save
11
-
12
- OBJECT_NAME = "issuing.card_design"
13
-
14
- def test_helpers
15
- TestHelpers.new(self)
16
- end
17
-
18
- class TestHelpers < APIResourceTestHelpers
19
- RESOURCE_CLASS = CardDesign
20
-
21
- def self.activate_testmode(card_design, params = {}, opts = {})
22
- request_stripe_object(
23
- method: :post,
24
- path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/activate", { card_design: CGI.escape(card_design) }),
25
- params: params,
26
- opts: opts
27
- )
28
- end
29
-
30
- def self.deactivate_testmode(card_design, params = {}, opts = {})
31
- request_stripe_object(
32
- method: :post,
33
- path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/deactivate", { card_design: CGI.escape(card_design) }),
34
- params: params,
35
- opts: opts
36
- )
37
- end
38
-
39
- def self.reject_testmode(card_design, params = {}, opts = {})
40
- request_stripe_object(
41
- method: :post,
42
- path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/reject", { card_design: CGI.escape(card_design) }),
43
- params: params,
44
- opts: opts
45
- )
46
- end
47
-
48
- def activate_testmode(params = {}, opts = {})
49
- @resource.request_stripe_object(
50
- method: :post,
51
- path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/activate", { card_design: CGI.escape(@resource["id"]) }),
52
- params: params,
53
- opts: opts
54
- )
55
- end
56
-
57
- def deactivate_testmode(params = {}, opts = {})
58
- @resource.request_stripe_object(
59
- method: :post,
60
- path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/deactivate", { card_design: CGI.escape(@resource["id"]) }),
61
- params: params,
62
- opts: opts
63
- )
64
- end
65
-
66
- def reject_testmode(params = {}, opts = {})
67
- @resource.request_stripe_object(
68
- method: :post,
69
- path: format("/v1/test_helpers/issuing/card_designs/%<card_design>s/status/reject", { card_design: CGI.escape(@resource["id"]) }),
70
- params: params,
71
- opts: opts
72
- )
73
- end
74
- end
75
- end
76
- end
77
- end