stripe 10.11.0 → 10.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -9
  3. data/OPENAPI_VERSION +1 -1
  4. data/VERSION +1 -1
  5. data/lib/stripe/object_types.rb +6 -5
  6. data/lib/stripe/resources/account.rb +70 -70
  7. data/lib/stripe/resources/apple_pay_domain.rb +4 -4
  8. data/lib/stripe/resources/apps/secret.rb +5 -5
  9. data/lib/stripe/resources/charge.rb +1 -1
  10. data/lib/stripe/resources/checkout/session.rb +21 -21
  11. data/lib/stripe/resources/credit_note.rb +35 -35
  12. data/lib/stripe/resources/customer.rb +58 -58
  13. data/lib/stripe/resources/ephemeral_key.rb +9 -9
  14. data/lib/stripe/resources/file.rb +5 -5
  15. data/lib/stripe/resources/financial_connections/account.rb +34 -34
  16. data/lib/stripe/resources/identity/verification_session.rb +38 -38
  17. data/lib/stripe/resources/invoice.rb +72 -72
  18. data/lib/stripe/resources/issuing/authorization.rb +32 -32
  19. data/lib/stripe/resources/issuing/card.rb +22 -22
  20. data/lib/stripe/resources/issuing/dispute.rb +16 -16
  21. data/lib/stripe/resources/issuing/personalization_design.rb +119 -0
  22. data/lib/stripe/resources/issuing/physical_bundle.rb +26 -0
  23. data/lib/stripe/resources/payment_intent.rb +100 -100
  24. data/lib/stripe/resources/payment_link.rb +10 -10
  25. data/lib/stripe/resources/payment_method.rb +17 -17
  26. data/lib/stripe/resources/payment_method_domain.rb +29 -29
  27. data/lib/stripe/resources/payout.rb +22 -22
  28. data/lib/stripe/resources/quote.rb +51 -51
  29. data/lib/stripe/resources/setup_intent.rb +32 -32
  30. data/lib/stripe/resources/sigma/scheduled_query_run.rb +4 -4
  31. data/lib/stripe/resources/source.rb +18 -18
  32. data/lib/stripe/resources/subscription.rb +36 -36
  33. data/lib/stripe/resources/subscription_item.rb +1 -1
  34. data/lib/stripe/resources/subscription_schedule.rb +19 -19
  35. data/lib/stripe/resources/tax/calculation.rb +10 -10
  36. data/lib/stripe/resources/tax/settings.rb +0 -1
  37. data/lib/stripe/resources/tax/transaction.rb +10 -10
  38. data/lib/stripe/resources/terminal/reader.rb +46 -46
  39. data/lib/stripe/resources/transfer.rb +1 -1
  40. data/lib/stripe/resources/treasury/financial_account.rb +25 -25
  41. data/lib/stripe/resources/treasury/inbound_transfer.rb +14 -14
  42. data/lib/stripe/resources/treasury/outbound_payment.rb +14 -14
  43. data/lib/stripe/resources/treasury/outbound_transfer.rb +14 -14
  44. data/lib/stripe/resources/treasury/transaction_entry.rb +4 -4
  45. data/lib/stripe/resources.rb +2 -0
  46. data/lib/stripe/version.rb +1 -1
  47. metadata +4 -2
@@ -27,132 +27,132 @@ module Stripe
27
27
  )
28
28
  end
29
29
 
30
- # Initiates a payment flow on a Reader.
31
- def process_payment_intent(params = {}, opts = {})
30
+ # Cancels the current reader action.
31
+ def self.cancel_action(reader, params = {}, opts = {})
32
32
  request_stripe_object(
33
33
  method: :post,
34
- path: format("/v1/terminal/readers/%<reader>s/process_payment_intent", { reader: CGI.escape(self["id"]) }),
34
+ path: format("/v1/terminal/readers/%<reader>s/cancel_action", { reader: CGI.escape(reader) }),
35
35
  params: params,
36
36
  opts: opts
37
37
  )
38
38
  end
39
39
 
40
- # Initiates a setup intent flow on a Reader.
41
- def process_setup_intent(params = {}, opts = {})
40
+ # Creates a new Reader object.
41
+ def self.create(params = {}, opts = {})
42
42
  request_stripe_object(
43
43
  method: :post,
44
- path: format("/v1/terminal/readers/%<reader>s/process_setup_intent", { reader: CGI.escape(self["id"]) }),
44
+ path: "/v1/terminal/readers",
45
45
  params: params,
46
46
  opts: opts
47
47
  )
48
48
  end
49
49
 
50
- # Initiates a refund on a Reader
51
- def refund_payment(params = {}, opts = {})
50
+ # Deletes a Reader object.
51
+ def self.delete(id, params = {}, opts = {})
52
52
  request_stripe_object(
53
- method: :post,
54
- path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(self["id"]) }),
53
+ method: :delete,
54
+ path: format("/v1/terminal/readers/%<id>s", { id: CGI.escape(id) }),
55
55
  params: params,
56
56
  opts: opts
57
57
  )
58
58
  end
59
59
 
60
- # Sets reader display to show cart details.
61
- def set_reader_display(params = {}, opts = {})
60
+ # Deletes a Reader object.
61
+ def delete(params = {}, opts = {})
62
62
  request_stripe_object(
63
- method: :post,
64
- path: format("/v1/terminal/readers/%<reader>s/set_reader_display", { reader: CGI.escape(self["id"]) }),
63
+ method: :delete,
64
+ path: format("/v1/terminal/readers/%<reader>s", { reader: CGI.escape(self["id"]) }),
65
65
  params: params,
66
66
  opts: opts
67
67
  )
68
68
  end
69
69
 
70
- # Cancels the current reader action.
71
- def self.cancel_action(reader, params = {}, opts = {})
70
+ # Returns a list of Reader objects.
71
+ def self.list(filters = {}, opts = {})
72
72
  request_stripe_object(
73
- method: :post,
74
- path: format("/v1/terminal/readers/%<reader>s/cancel_action", { reader: CGI.escape(reader) }),
75
- params: params,
73
+ method: :get,
74
+ path: "/v1/terminal/readers",
75
+ params: filters,
76
76
  opts: opts
77
77
  )
78
78
  end
79
79
 
80
80
  # Initiates a payment flow on a Reader.
81
- def self.process_payment_intent(reader, params = {}, opts = {})
81
+ def process_payment_intent(params = {}, opts = {})
82
82
  request_stripe_object(
83
83
  method: :post,
84
- path: format("/v1/terminal/readers/%<reader>s/process_payment_intent", { reader: CGI.escape(reader) }),
84
+ path: format("/v1/terminal/readers/%<reader>s/process_payment_intent", { reader: CGI.escape(self["id"]) }),
85
85
  params: params,
86
86
  opts: opts
87
87
  )
88
88
  end
89
89
 
90
- # Initiates a setup intent flow on a Reader.
91
- def self.process_setup_intent(reader, params = {}, opts = {})
90
+ # Initiates a payment flow on a Reader.
91
+ def self.process_payment_intent(reader, params = {}, opts = {})
92
92
  request_stripe_object(
93
93
  method: :post,
94
- path: format("/v1/terminal/readers/%<reader>s/process_setup_intent", { reader: CGI.escape(reader) }),
94
+ path: format("/v1/terminal/readers/%<reader>s/process_payment_intent", { reader: CGI.escape(reader) }),
95
95
  params: params,
96
96
  opts: opts
97
97
  )
98
98
  end
99
99
 
100
- # Initiates a refund on a Reader
101
- def self.refund_payment(reader, params = {}, opts = {})
100
+ # Initiates a setup intent flow on a Reader.
101
+ def process_setup_intent(params = {}, opts = {})
102
102
  request_stripe_object(
103
103
  method: :post,
104
- path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(reader) }),
104
+ path: format("/v1/terminal/readers/%<reader>s/process_setup_intent", { reader: CGI.escape(self["id"]) }),
105
105
  params: params,
106
106
  opts: opts
107
107
  )
108
108
  end
109
109
 
110
- # Sets reader display to show cart details.
111
- def self.set_reader_display(reader, params = {}, opts = {})
110
+ # Initiates a setup intent flow on a Reader.
111
+ def self.process_setup_intent(reader, params = {}, opts = {})
112
112
  request_stripe_object(
113
113
  method: :post,
114
- path: format("/v1/terminal/readers/%<reader>s/set_reader_display", { reader: CGI.escape(reader) }),
114
+ path: format("/v1/terminal/readers/%<reader>s/process_setup_intent", { reader: CGI.escape(reader) }),
115
115
  params: params,
116
116
  opts: opts
117
117
  )
118
118
  end
119
119
 
120
- # Creates a new Reader object.
121
- def self.create(params = {}, opts = {})
120
+ # Initiates a refund on a Reader
121
+ def refund_payment(params = {}, opts = {})
122
122
  request_stripe_object(
123
123
  method: :post,
124
- path: "/v1/terminal/readers",
124
+ path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(self["id"]) }),
125
125
  params: params,
126
126
  opts: opts
127
127
  )
128
128
  end
129
129
 
130
- # Deletes a Reader object.
131
- def self.delete(id, params = {}, opts = {})
130
+ # Initiates a refund on a Reader
131
+ def self.refund_payment(reader, params = {}, opts = {})
132
132
  request_stripe_object(
133
- method: :delete,
134
- path: format("/v1/terminal/readers/%<id>s", { id: CGI.escape(id) }),
133
+ method: :post,
134
+ path: format("/v1/terminal/readers/%<reader>s/refund_payment", { reader: CGI.escape(reader) }),
135
135
  params: params,
136
136
  opts: opts
137
137
  )
138
138
  end
139
139
 
140
- # Deletes a Reader object.
141
- def delete(params = {}, opts = {})
140
+ # Sets reader display to show cart details.
141
+ def set_reader_display(params = {}, opts = {})
142
142
  request_stripe_object(
143
- method: :delete,
144
- path: format("/v1/terminal/readers/%<reader>s", { reader: CGI.escape(self["id"]) }),
143
+ method: :post,
144
+ path: format("/v1/terminal/readers/%<reader>s/set_reader_display", { reader: CGI.escape(self["id"]) }),
145
145
  params: params,
146
146
  opts: opts
147
147
  )
148
148
  end
149
149
 
150
- # Returns a list of Reader objects.
151
- def self.list(filters = {}, opts = {})
150
+ # Sets reader display to show cart details.
151
+ def self.set_reader_display(reader, params = {}, opts = {})
152
152
  request_stripe_object(
153
- method: :get,
154
- path: "/v1/terminal/readers",
155
- params: filters,
153
+ method: :post,
154
+ path: format("/v1/terminal/readers/%<reader>s/set_reader_display", { reader: CGI.escape(reader) }),
155
+ params: params,
156
156
  opts: opts
157
157
  )
158
158
  end
@@ -15,8 +15,8 @@ module Stripe
15
15
  class Transfer < APIResource
16
16
  extend Stripe::APIOperations::Create
17
17
  extend Stripe::APIOperations::List
18
- include Stripe::APIOperations::Save
19
18
  extend Stripe::APIOperations::NestedResource
19
+ include Stripe::APIOperations::Save
20
20
 
21
21
  OBJECT_NAME = "transfer"
22
22
  def self.object_name
@@ -15,71 +15,71 @@ module Stripe
15
15
  "treasury.financial_account"
16
16
  end
17
17
 
18
- # Retrieves Features information associated with the FinancialAccount.
19
- def retrieve_features(params = {}, opts = {})
18
+ # Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.
19
+ def self.create(params = {}, opts = {})
20
20
  request_stripe_object(
21
- method: :get,
22
- path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(self["id"]) }),
21
+ method: :post,
22
+ path: "/v1/treasury/financial_accounts",
23
23
  params: params,
24
24
  opts: opts
25
25
  )
26
26
  end
27
27
 
28
- # Updates the Features associated with a FinancialAccount.
29
- def update_features(params = {}, opts = {})
28
+ # Returns a list of FinancialAccounts.
29
+ def self.list(filters = {}, opts = {})
30
30
  request_stripe_object(
31
- method: :post,
32
- path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(self["id"]) }),
33
- params: params,
31
+ method: :get,
32
+ path: "/v1/treasury/financial_accounts",
33
+ params: filters,
34
34
  opts: opts
35
35
  )
36
36
  end
37
37
 
38
38
  # Retrieves Features information associated with the FinancialAccount.
39
- def self.retrieve_features(financial_account, params = {}, opts = {})
39
+ def retrieve_features(params = {}, opts = {})
40
40
  request_stripe_object(
41
41
  method: :get,
42
- path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(financial_account) }),
42
+ path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(self["id"]) }),
43
43
  params: params,
44
44
  opts: opts
45
45
  )
46
46
  end
47
47
 
48
- # Updates the Features associated with a FinancialAccount.
49
- def self.update_features(financial_account, params = {}, opts = {})
48
+ # Retrieves Features information associated with the FinancialAccount.
49
+ def self.retrieve_features(financial_account, params = {}, opts = {})
50
50
  request_stripe_object(
51
- method: :post,
51
+ method: :get,
52
52
  path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(financial_account) }),
53
53
  params: params,
54
54
  opts: opts
55
55
  )
56
56
  end
57
57
 
58
- # Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.
59
- def self.create(params = {}, opts = {})
58
+ # Updates the details of a FinancialAccount.
59
+ def self.update(id, params = {}, opts = {})
60
60
  request_stripe_object(
61
61
  method: :post,
62
- path: "/v1/treasury/financial_accounts",
62
+ path: format("/v1/treasury/financial_accounts/%<id>s", { id: CGI.escape(id) }),
63
63
  params: params,
64
64
  opts: opts
65
65
  )
66
66
  end
67
67
 
68
- # Returns a list of FinancialAccounts.
69
- def self.list(filters = {}, opts = {})
68
+ # Updates the Features associated with a FinancialAccount.
69
+ def update_features(params = {}, opts = {})
70
70
  request_stripe_object(
71
- method: :get,
72
- path: "/v1/treasury/financial_accounts",
73
- params: filters,
71
+ method: :post,
72
+ path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(self["id"]) }),
73
+ params: params,
74
74
  opts: opts
75
75
  )
76
76
  end
77
77
 
78
- # Updates the details of a FinancialAccount.
79
- def self.update(id, params = {}, opts = {})
78
+ # Updates the Features associated with a FinancialAccount.
79
+ def self.update_features(financial_account, params = {}, opts = {})
80
80
  request_stripe_object(
81
81
  method: :post,
82
- path: format("/v1/treasury/financial_accounts/%<id>s", { id: CGI.escape(id) }),
82
+ path: format("/v1/treasury/financial_accounts/%<financial_account>s/features", { financial_account: CGI.escape(financial_account) }),
83
83
  params: params,
84
84
  opts: opts
85
85
  )
@@ -73,41 +73,41 @@ module Stripe
73
73
  )
74
74
  end
75
75
 
76
- # Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
77
- def self.return_inbound_transfer(id, params = {}, opts = {})
78
- request_stripe_object(
76
+ # Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
77
+ def fail(params = {}, opts = {})
78
+ @resource.request_stripe_object(
79
79
  method: :post,
80
- path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/return", { id: CGI.escape(id) }),
80
+ path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/fail", { id: CGI.escape(@resource["id"]) }),
81
81
  params: params,
82
82
  opts: opts
83
83
  )
84
84
  end
85
85
 
86
- # Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
87
- def self.succeed(id, params = {}, opts = {})
86
+ # Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
87
+ def self.return_inbound_transfer(id, params = {}, opts = {})
88
88
  request_stripe_object(
89
89
  method: :post,
90
- path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/succeed", { id: CGI.escape(id) }),
90
+ path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/return", { id: CGI.escape(id) }),
91
91
  params: params,
92
92
  opts: opts
93
93
  )
94
94
  end
95
95
 
96
- # Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
97
- def fail(params = {}, opts = {})
96
+ # Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
97
+ def return_inbound_transfer(params = {}, opts = {})
98
98
  @resource.request_stripe_object(
99
99
  method: :post,
100
- path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/fail", { id: CGI.escape(@resource["id"]) }),
100
+ path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/return", { id: CGI.escape(@resource["id"]) }),
101
101
  params: params,
102
102
  opts: opts
103
103
  )
104
104
  end
105
105
 
106
- # Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
107
- def return_inbound_transfer(params = {}, opts = {})
108
- @resource.request_stripe_object(
106
+ # Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
107
+ def self.succeed(id, params = {}, opts = {})
108
+ request_stripe_object(
109
109
  method: :post,
110
- path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/return", { id: CGI.escape(@resource["id"]) }),
110
+ path: format("/v1/test_helpers/treasury/inbound_transfers/%<id>s/succeed", { id: CGI.escape(id) }),
111
111
  params: params,
112
112
  opts: opts
113
113
  )
@@ -75,41 +75,41 @@ module Stripe
75
75
  )
76
76
  end
77
77
 
78
- # Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
79
- def self.post(id, params = {}, opts = {})
80
- request_stripe_object(
78
+ # Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
79
+ def fail(params = {}, opts = {})
80
+ @resource.request_stripe_object(
81
81
  method: :post,
82
- path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/post", { id: CGI.escape(id) }),
82
+ path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/fail", { id: CGI.escape(@resource["id"]) }),
83
83
  params: params,
84
84
  opts: opts
85
85
  )
86
86
  end
87
87
 
88
- # Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
89
- def self.return_outbound_payment(id, params = {}, opts = {})
88
+ # Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
89
+ def self.post(id, params = {}, opts = {})
90
90
  request_stripe_object(
91
91
  method: :post,
92
- path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/return", { id: CGI.escape(id) }),
92
+ path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/post", { id: CGI.escape(id) }),
93
93
  params: params,
94
94
  opts: opts
95
95
  )
96
96
  end
97
97
 
98
- # Transitions a test mode created OutboundPayment to the failed status. The OutboundPayment must already be in the processing state.
99
- def fail(params = {}, opts = {})
98
+ # Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
99
+ def post(params = {}, opts = {})
100
100
  @resource.request_stripe_object(
101
101
  method: :post,
102
- path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/fail", { id: CGI.escape(@resource["id"]) }),
102
+ path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/post", { id: CGI.escape(@resource["id"]) }),
103
103
  params: params,
104
104
  opts: opts
105
105
  )
106
106
  end
107
107
 
108
- # Transitions a test mode created OutboundPayment to the posted status. The OutboundPayment must already be in the processing state.
109
- def post(params = {}, opts = {})
110
- @resource.request_stripe_object(
108
+ # Transitions a test mode created OutboundPayment to the returned status. The OutboundPayment must already be in the processing state.
109
+ def self.return_outbound_payment(id, params = {}, opts = {})
110
+ request_stripe_object(
111
111
  method: :post,
112
- path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/post", { id: CGI.escape(@resource["id"]) }),
112
+ path: format("/v1/test_helpers/treasury/outbound_payments/%<id>s/return", { id: CGI.escape(id) }),
113
113
  params: params,
114
114
  opts: opts
115
115
  )
@@ -75,41 +75,41 @@ module Stripe
75
75
  )
76
76
  end
77
77
 
78
- # Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
79
- def self.post(outbound_transfer, params = {}, opts = {})
80
- request_stripe_object(
78
+ # Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
79
+ def fail(params = {}, opts = {})
80
+ @resource.request_stripe_object(
81
81
  method: :post,
82
- path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/post", { outbound_transfer: CGI.escape(outbound_transfer) }),
82
+ path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/fail", { outbound_transfer: CGI.escape(@resource["id"]) }),
83
83
  params: params,
84
84
  opts: opts
85
85
  )
86
86
  end
87
87
 
88
- # Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
89
- def self.return_outbound_transfer(outbound_transfer, params = {}, opts = {})
88
+ # Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
89
+ def self.post(outbound_transfer, params = {}, opts = {})
90
90
  request_stripe_object(
91
91
  method: :post,
92
- path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/return", { outbound_transfer: CGI.escape(outbound_transfer) }),
92
+ path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/post", { outbound_transfer: CGI.escape(outbound_transfer) }),
93
93
  params: params,
94
94
  opts: opts
95
95
  )
96
96
  end
97
97
 
98
- # Transitions a test mode created OutboundTransfer to the failed status. The OutboundTransfer must already be in the processing state.
99
- def fail(params = {}, opts = {})
98
+ # Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
99
+ def post(params = {}, opts = {})
100
100
  @resource.request_stripe_object(
101
101
  method: :post,
102
- path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/fail", { outbound_transfer: CGI.escape(@resource["id"]) }),
102
+ path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/post", { outbound_transfer: CGI.escape(@resource["id"]) }),
103
103
  params: params,
104
104
  opts: opts
105
105
  )
106
106
  end
107
107
 
108
- # Transitions a test mode created OutboundTransfer to the posted status. The OutboundTransfer must already be in the processing state.
109
- def post(params = {}, opts = {})
110
- @resource.request_stripe_object(
108
+ # Transitions a test mode created OutboundTransfer to the returned status. The OutboundTransfer must already be in the processing state.
109
+ def self.return_outbound_transfer(outbound_transfer, params = {}, opts = {})
110
+ request_stripe_object(
111
111
  method: :post,
112
- path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/post", { outbound_transfer: CGI.escape(@resource["id"]) }),
112
+ path: format("/v1/test_helpers/treasury/outbound_transfers/%<outbound_transfer>s/return", { outbound_transfer: CGI.escape(outbound_transfer) }),
113
113
  params: params,
114
114
  opts: opts
115
115
  )
@@ -12,10 +12,6 @@ module Stripe
12
12
  "treasury.transaction_entry"
13
13
  end
14
14
 
15
- def self.resource_url
16
- "/v1/treasury/transaction_entries"
17
- end
18
-
19
15
  # Retrieves a list of TransactionEntry objects.
20
16
  def self.list(filters = {}, opts = {})
21
17
  request_stripe_object(
@@ -25,6 +21,10 @@ module Stripe
25
21
  opts: opts
26
22
  )
27
23
  end
24
+
25
+ def self.resource_url
26
+ "/v1/treasury/transaction_entries"
27
+ end
28
28
  end
29
29
  end
30
30
  end
@@ -51,6 +51,8 @@ require "stripe/resources/issuing/authorization"
51
51
  require "stripe/resources/issuing/card"
52
52
  require "stripe/resources/issuing/cardholder"
53
53
  require "stripe/resources/issuing/dispute"
54
+ require "stripe/resources/issuing/personalization_design"
55
+ require "stripe/resources/issuing/physical_bundle"
54
56
  require "stripe/resources/issuing/token"
55
57
  require "stripe/resources/issuing/transaction"
56
58
  require "stripe/resources/line_item"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stripe
4
- VERSION = "10.11.0"
4
+ VERSION = "10.12.0"
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: 10.11.0
4
+ version: 10.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stripe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-29 00:00:00.000000000 Z
11
+ date: 2024-03-14 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,6 +105,8 @@ files:
105
105
  - lib/stripe/resources/issuing/card.rb
106
106
  - lib/stripe/resources/issuing/cardholder.rb
107
107
  - lib/stripe/resources/issuing/dispute.rb
108
+ - lib/stripe/resources/issuing/personalization_design.rb
109
+ - lib/stripe/resources/issuing/physical_bundle.rb
108
110
  - lib/stripe/resources/issuing/token.rb
109
111
  - lib/stripe/resources/issuing/transaction.rb
110
112
  - lib/stripe/resources/line_item.rb