stripe 13.3.0.pre.beta.2 → 13.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (221) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +650 -1394
  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 +0 -32
  7. data/lib/stripe/resources/account.rb +2 -232
  8. data/lib/stripe/resources/account_link.rb +0 -9
  9. data/lib/stripe/resources/account_session.rb +0 -103
  10. data/lib/stripe/resources/apple_pay_domain.rb +2 -20
  11. data/lib/stripe/resources/application_fee.rb +2 -36
  12. data/lib/stripe/resources/application_fee_refund.rb +0 -17
  13. data/lib/stripe/resources/apps/secret.rb +2 -24
  14. data/lib/stripe/resources/balance.rb +0 -59
  15. data/lib/stripe/resources/balance_transaction.rb +2 -36
  16. data/lib/stripe/resources/bank_account.rb +3 -61
  17. data/lib/stripe/resources/billing/alert.rb +2 -23
  18. data/lib/stripe/resources/billing/credit_balance_summary.rb +0 -25
  19. data/lib/stripe/resources/billing/credit_balance_transaction.rb +2 -46
  20. data/lib/stripe/resources/billing/credit_grant.rb +2 -46
  21. data/lib/stripe/resources/billing/meter.rb +2 -44
  22. data/lib/stripe/resources/billing/meter_event.rb +0 -15
  23. data/lib/stripe/resources/billing/meter_event_adjustment.rb +0 -16
  24. data/lib/stripe/resources/billing/meter_event_summary.rb +0 -15
  25. data/lib/stripe/resources/billing_portal/configuration.rb +2 -72
  26. data/lib/stripe/resources/billing_portal/session.rb +0 -61
  27. data/lib/stripe/resources/capability.rb +0 -38
  28. data/lib/stripe/resources/card.rb +1 -73
  29. data/lib/stripe/resources/cash_balance.rb +0 -14
  30. data/lib/stripe/resources/charge.rb +2 -471
  31. data/lib/stripe/resources/checkout/session.rb +2 -498
  32. data/lib/stripe/resources/climate/order.rb +2 -57
  33. data/lib/stripe/resources/climate/product.rb +2 -26
  34. data/lib/stripe/resources/climate/supplier.rb +2 -20
  35. data/lib/stripe/resources/confirmation_token.rb +0 -297
  36. data/lib/stripe/resources/country_spec.rb +2 -29
  37. data/lib/stripe/resources/coupon.rb +2 -46
  38. data/lib/stripe/resources/credit_note.rb +2 -93
  39. data/lib/stripe/resources/credit_note_line_item.rb +0 -46
  40. data/lib/stripe/resources/customer.rb +2 -95
  41. data/lib/stripe/resources/customer_balance_transaction.rb +0 -27
  42. data/lib/stripe/resources/customer_cash_balance_transaction.rb +0 -72
  43. data/lib/stripe/resources/customer_session.rb +0 -34
  44. data/lib/stripe/resources/discount.rb +0 -29
  45. data/lib/stripe/resources/dispute.rb +2 -90
  46. data/lib/stripe/resources/entitlements/active_entitlement.rb +2 -13
  47. data/lib/stripe/resources/entitlements/feature.rb +2 -17
  48. data/lib/stripe/resources/ephemeral_key.rb +0 -13
  49. data/lib/stripe/resources/event.rb +2 -46
  50. data/lib/stripe/resources/exchange_rate.rb +2 -9
  51. data/lib/stripe/resources/file.rb +2 -25
  52. data/lib/stripe/resources/file_link.rb +2 -21
  53. data/lib/stripe/resources/financial_connections/account.rb +2 -89
  54. data/lib/stripe/resources/financial_connections/account_owner.rb +0 -17
  55. data/lib/stripe/resources/financial_connections/account_ownership.rb +0 -9
  56. data/lib/stripe/resources/financial_connections/session.rb +0 -49
  57. data/lib/stripe/resources/financial_connections/transaction.rb +2 -30
  58. data/lib/stripe/resources/forwarding/request.rb +2 -42
  59. data/lib/stripe/resources/funding_instructions.rb +0 -82
  60. data/lib/stripe/resources/identity/verification_report.rb +2 -94
  61. data/lib/stripe/resources/identity/verification_session.rb +2 -78
  62. data/lib/stripe/resources/invoice.rb +2 -420
  63. data/lib/stripe/resources/invoice_item.rb +2 -56
  64. data/lib/stripe/resources/invoice_line_item.rb +0 -83
  65. data/lib/stripe/resources/invoice_rendering_template.rb +2 -19
  66. data/lib/stripe/resources/issuing/authorization.rb +2 -131
  67. data/lib/stripe/resources/issuing/card.rb +2 -88
  68. data/lib/stripe/resources/issuing/cardholder.rb +2 -78
  69. data/lib/stripe/resources/issuing/dispute.rb +2 -67
  70. data/lib/stripe/resources/issuing/personalization_design.rb +2 -40
  71. data/lib/stripe/resources/issuing/physical_bundle.rb +2 -20
  72. data/lib/stripe/resources/issuing/token.rb +2 -48
  73. data/lib/stripe/resources/issuing/transaction.rb +2 -108
  74. data/lib/stripe/resources/line_item.rb +0 -50
  75. data/lib/stripe/resources/login_link.rb +0 -7
  76. data/lib/stripe/resources/mandate.rb +0 -78
  77. data/lib/stripe/resources/payment_intent.rb +2 -714
  78. data/lib/stripe/resources/payment_link.rb +2 -200
  79. data/lib/stripe/resources/payment_method.rb +2 -370
  80. data/lib/stripe/resources/payment_method_configuration.rb +2 -432
  81. data/lib/stripe/resources/payment_method_domain.rb +2 -59
  82. data/lib/stripe/resources/payout.rb +2 -58
  83. data/lib/stripe/resources/person.rb +0 -128
  84. data/lib/stripe/resources/plan.rb +2 -54
  85. data/lib/stripe/resources/price.rb +2 -79
  86. data/lib/stripe/resources/product.rb +2 -62
  87. data/lib/stripe/resources/product_feature.rb +0 -12
  88. data/lib/stripe/resources/promotion_code.rb +2 -37
  89. data/lib/stripe/resources/quote.rb +2 -358
  90. data/lib/stripe/resources/radar/early_fraud_warning.rb +2 -19
  91. data/lib/stripe/resources/radar/value_list.rb +2 -25
  92. data/lib/stripe/resources/radar/value_list_item.rb +2 -19
  93. data/lib/stripe/resources/refund.rb +2 -132
  94. data/lib/stripe/resources/reporting/report_run.rb +2 -31
  95. data/lib/stripe/resources/reporting/report_type.rb +2 -21
  96. data/lib/stripe/resources/reversal.rb +0 -21
  97. data/lib/stripe/resources/review.rb +2 -38
  98. data/lib/stripe/resources/setup_attempt.rb +2 -103
  99. data/lib/stripe/resources/setup_intent.rb +2 -160
  100. data/lib/stripe/resources/shipping_rate.rb +2 -44
  101. data/lib/stripe/resources/sigma/scheduled_query_run.rb +2 -28
  102. data/lib/stripe/resources/source.rb +0 -195
  103. data/lib/stripe/resources/source_transaction.rb +0 -48
  104. data/lib/stripe/resources/subscription.rb +2 -216
  105. data/lib/stripe/resources/subscription_item.rb +2 -48
  106. data/lib/stripe/resources/subscription_schedule.rb +2 -175
  107. data/lib/stripe/resources/tax/calculation.rb +0 -72
  108. data/lib/stripe/resources/tax/calculation_line_item.rb +0 -33
  109. data/lib/stripe/resources/tax/registration.rb +2 -381
  110. data/lib/stripe/resources/tax/settings.rb +0 -33
  111. data/lib/stripe/resources/tax/transaction.rb +0 -68
  112. data/lib/stripe/resources/tax/transaction_line_item.rb +0 -30
  113. data/lib/stripe/resources/tax_code.rb +2 -11
  114. data/lib/stripe/resources/tax_id.rb +2 -32
  115. data/lib/stripe/resources/tax_rate.rb +2 -44
  116. data/lib/stripe/resources/terminal/configuration.rb +2 -109
  117. data/lib/stripe/resources/terminal/connection_token.rb +0 -7
  118. data/lib/stripe/resources/terminal/location.rb +2 -22
  119. data/lib/stripe/resources/terminal/reader.rb +2 -180
  120. data/lib/stripe/resources/test_helpers/test_clock.rb +2 -29
  121. data/lib/stripe/resources/token.rb +0 -29
  122. data/lib/stripe/resources/topup.rb +2 -35
  123. data/lib/stripe/resources/transfer.rb +2 -37
  124. data/lib/stripe/resources/treasury/credit_reversal.rb +2 -34
  125. data/lib/stripe/resources/treasury/debit_reversal.rb +2 -40
  126. data/lib/stripe/resources/treasury/financial_account.rb +2 -59
  127. data/lib/stripe/resources/treasury/financial_account_features.rb +0 -91
  128. data/lib/stripe/resources/treasury/inbound_transfer.rb +2 -68
  129. data/lib/stripe/resources/treasury/outbound_payment.rb +2 -87
  130. data/lib/stripe/resources/treasury/outbound_transfer.rb +2 -84
  131. data/lib/stripe/resources/treasury/received_credit.rb +2 -72
  132. data/lib/stripe/resources/treasury/received_debit.rb +2 -69
  133. data/lib/stripe/resources/treasury/transaction.rb +2 -44
  134. data/lib/stripe/resources/treasury/transaction_entry.rb +2 -36
  135. data/lib/stripe/resources/usage_record.rb +0 -13
  136. data/lib/stripe/resources/usage_record_summary.rb +0 -18
  137. data/lib/stripe/resources/v2/billing/meter_event.rb +0 -18
  138. data/lib/stripe/resources/v2/billing/meter_event_adjustment.rb +0 -20
  139. data/lib/stripe/resources/v2/billing/meter_event_session.rb +0 -14
  140. data/lib/stripe/resources/v2/event.rb +0 -21
  141. data/lib/stripe/resources/v2/event_destination.rb +0 -49
  142. data/lib/stripe/resources/webhook_endpoint.rb +2 -34
  143. data/lib/stripe/resources.rb +0 -31
  144. data/lib/stripe/services/financial_connections/account_service.rb +1 -3
  145. data/lib/stripe/services/financial_connections_service.rb +1 -2
  146. data/lib/stripe/services/invoice_service.rb +1 -44
  147. data/lib/stripe/services/issuing_service.rb +1 -5
  148. data/lib/stripe/services/payment_intent_service.rb +0 -37
  149. data/lib/stripe/services/quote_service.rb +1 -49
  150. data/lib/stripe/services/subscription_schedule_service.rb +0 -11
  151. data/lib/stripe/services/tax_service.rb +1 -3
  152. data/lib/stripe/services/terminal/reader_service.rb +0 -33
  153. data/lib/stripe/services/terminal_service.rb +1 -2
  154. data/lib/stripe/services/v1_services.rb +1 -8
  155. data/lib/stripe/services.rb +0 -25
  156. data/lib/stripe/stripe_client.rb +1 -1
  157. data/lib/stripe/stripe_configuration.rb +1 -3
  158. data/lib/stripe/stripe_object.rb +3 -8
  159. data/lib/stripe/util.rb +2 -8
  160. data/lib/stripe/version.rb +1 -1
  161. data/lib/stripe.rb +0 -45
  162. data/stripe.gemspec +1 -2
  163. metadata +4 -62
  164. data/lib/stripe/request_signing_authenticator.rb +0 -79
  165. data/lib/stripe/resources/account_notice.rb +0 -60
  166. data/lib/stripe/resources/application.rb +0 -20
  167. data/lib/stripe/resources/billing/alert_triggered.rb +0 -26
  168. data/lib/stripe/resources/billing/meter_error_report.rb +0 -44
  169. data/lib/stripe/resources/capital/financing_offer.rb +0 -94
  170. data/lib/stripe/resources/capital/financing_summary.rb +0 -32
  171. data/lib/stripe/resources/capital/financing_transaction.rb +0 -56
  172. data/lib/stripe/resources/connect_collection_transfer.rb +0 -24
  173. data/lib/stripe/resources/entitlements/active_entitlement_summary.rb +0 -23
  174. data/lib/stripe/resources/financial_connections/account_inferred_balance.rb +0 -27
  175. data/lib/stripe/resources/financial_connections/institution.rb +0 -61
  176. data/lib/stripe/resources/gift_cards/card.rb +0 -96
  177. data/lib/stripe/resources/gift_cards/transaction.rb +0 -132
  178. data/lib/stripe/resources/invoice_payment.rb +0 -46
  179. data/lib/stripe/resources/issuing/credit_underwriting_record.rb +0 -145
  180. data/lib/stripe/resources/issuing/dispute_settlement_detail.rb +0 -49
  181. data/lib/stripe/resources/issuing/fraud_liability_debit.rb +0 -43
  182. data/lib/stripe/resources/issuing/settlement.rb +0 -49
  183. data/lib/stripe/resources/margin.rb +0 -56
  184. data/lib/stripe/resources/order.rb +0 -322
  185. data/lib/stripe/resources/payment_attempt_record.rb +0 -100
  186. data/lib/stripe/resources/payment_record.rb +0 -194
  187. data/lib/stripe/resources/quote_line.rb +0 -136
  188. data/lib/stripe/resources/quote_preview_invoice.rb +0 -374
  189. data/lib/stripe/resources/quote_preview_subscription_schedule.rb +0 -170
  190. data/lib/stripe/resources/reserve_transaction.rb +0 -22
  191. data/lib/stripe/resources/source_mandate_notification.rb +0 -59
  192. data/lib/stripe/resources/tax/association.rb +0 -60
  193. data/lib/stripe/resources/tax/form.rb +0 -124
  194. data/lib/stripe/resources/tax_deducted_at_source.rb +0 -22
  195. data/lib/stripe/resources/terminal/reader_collected_data.rb +0 -30
  196. data/lib/stripe/resources/v2/amount.rb +0 -9
  197. data/lib/stripe/services/account_notice_service.rb +0 -39
  198. data/lib/stripe/services/capital/financing_offer_service.rb +0 -42
  199. data/lib/stripe/services/capital/financing_summary_service.rb +0 -19
  200. data/lib/stripe/services/capital/financing_transaction_service.rb +0 -31
  201. data/lib/stripe/services/capital_service.rb +0 -15
  202. data/lib/stripe/services/financial_connections/account_inferred_balance_service.rb +0 -19
  203. data/lib/stripe/services/financial_connections/institution_service.rb +0 -30
  204. data/lib/stripe/services/gift_cards/card_service.rb +0 -63
  205. data/lib/stripe/services/gift_cards/transaction_service.rb +0 -74
  206. data/lib/stripe/services/gift_cards_service.rb +0 -14
  207. data/lib/stripe/services/invoice_payment_service.rb +0 -28
  208. data/lib/stripe/services/issuing/credit_underwriting_record_service.rb +0 -74
  209. data/lib/stripe/services/issuing/dispute_settlement_detail_service.rb +0 -30
  210. data/lib/stripe/services/issuing/fraud_liability_debit_service.rb +0 -30
  211. data/lib/stripe/services/margin_service.rb +0 -50
  212. data/lib/stripe/services/order_line_item_service.rb +0 -17
  213. data/lib/stripe/services/order_service.rb +0 -78
  214. data/lib/stripe/services/payment_attempt_record_service.rb +0 -28
  215. data/lib/stripe/services/payment_record_service.rb +0 -78
  216. data/lib/stripe/services/quote_line_service.rb +0 -17
  217. data/lib/stripe/services/quote_preview_invoice_service.rb +0 -17
  218. data/lib/stripe/services/quote_preview_subscription_schedule_service.rb +0 -17
  219. data/lib/stripe/services/tax/association_service.rb +0 -19
  220. data/lib/stripe/services/tax/form_service.rb +0 -37
  221. data/lib/stripe/services/terminal/reader_collected_data_service.rb +0 -19
@@ -18,135 +18,6 @@ module Stripe
18
18
  "issuing.authorization"
19
19
  end
20
20
 
21
- class AmountDetails < Stripe::StripeObject
22
- attr_reader :atm_fee, :cashback_amount
23
- end
24
-
25
- class Fleet < Stripe::StripeObject
26
- class CardholderPromptData < Stripe::StripeObject
27
- attr_reader :alphanumeric_id, :driver_id, :odometer, :unspecified_id, :user_id, :vehicle_number
28
- end
29
-
30
- class ReportedBreakdown < Stripe::StripeObject
31
- class Fuel < Stripe::StripeObject
32
- attr_reader :gross_amount_decimal
33
- end
34
-
35
- class NonFuel < Stripe::StripeObject
36
- attr_reader :gross_amount_decimal
37
- end
38
-
39
- class Tax < Stripe::StripeObject
40
- attr_reader :local_amount_decimal, :national_amount_decimal
41
- end
42
- attr_reader :fuel, :non_fuel, :tax
43
- end
44
- attr_reader :cardholder_prompt_data, :purchase_type, :reported_breakdown, :service_type
45
- end
46
-
47
- class FraudChallenge < Stripe::StripeObject
48
- attr_reader :channel, :status, :undeliverable_reason
49
- end
50
-
51
- class Fuel < Stripe::StripeObject
52
- attr_reader :industry_product_code, :quantity_decimal, :type, :unit, :unit_cost_decimal
53
- end
54
-
55
- class MerchantData < Stripe::StripeObject
56
- attr_reader :category, :category_code, :city, :country, :name, :network_id, :postal_code, :state, :terminal_id, :url
57
- end
58
-
59
- class NetworkData < Stripe::StripeObject
60
- attr_reader :acquiring_institution_id, :system_trace_audit_number, :transaction_id
61
- end
62
-
63
- class PendingRequest < Stripe::StripeObject
64
- class AmountDetails < Stripe::StripeObject
65
- attr_reader :atm_fee, :cashback_amount
66
- end
67
- attr_reader :amount, :amount_details, :currency, :is_amount_controllable, :merchant_amount, :merchant_currency, :network_risk_score
68
- end
69
-
70
- class RequestHistory < Stripe::StripeObject
71
- class AmountDetails < Stripe::StripeObject
72
- attr_reader :atm_fee, :cashback_amount
73
- end
74
- attr_reader :amount, :amount_details, :approved, :authorization_code, :created, :currency, :merchant_amount, :merchant_currency, :network_risk_score, :reason, :reason_message, :requested_at
75
- end
76
-
77
- class Treasury < Stripe::StripeObject
78
- attr_reader :received_credits, :received_debits, :transaction
79
- end
80
-
81
- class VerificationData < Stripe::StripeObject
82
- class AuthenticationExemption < Stripe::StripeObject
83
- attr_reader :claimed_by, :type
84
- end
85
-
86
- class ThreeDSecure < Stripe::StripeObject
87
- attr_reader :result
88
- end
89
- attr_reader :address_line1_check, :address_postal_code_check, :authentication_exemption, :cvc_check, :expiry_check, :postal_code, :three_d_secure
90
- end
91
- # The total amount that was authorized or rejected. This amount is in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). `amount` should be the same as `merchant_amount`, unless `currency` and `merchant_currency` are different.
92
- attr_reader :amount
93
- # Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
94
- attr_reader :amount_details
95
- # Whether the authorization has been approved.
96
- attr_reader :approved
97
- # How the card details were provided.
98
- attr_reader :authorization_method
99
- # List of balance transactions associated with this authorization.
100
- attr_reader :balance_transactions
101
- # You can [create physical or virtual cards](https://stripe.com/docs/issuing) that are issued to cardholders.
102
- attr_reader :card
103
- # The cardholder to whom this authorization belongs.
104
- attr_reader :cardholder
105
- # Time at which the object was created. Measured in seconds since the Unix epoch.
106
- attr_reader :created
107
- # The currency of the cardholder. This currency can be different from the currency presented at authorization and the `merchant_currency` field on this authorization. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
108
- attr_reader :currency
109
- # Fleet-specific information for authorizations using Fleet cards.
110
- attr_reader :fleet
111
- # Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons.
112
- attr_reader :fraud_challenges
113
- # Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed.
114
- attr_reader :fuel
115
- # Unique identifier for the object.
116
- attr_reader :id
117
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
118
- attr_reader :livemode
119
- # The total amount that was authorized or rejected. This amount is in the `merchant_currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). `merchant_amount` should be the same as `amount`, unless `merchant_currency` and `currency` are different.
120
- attr_reader :merchant_amount
121
- # The local currency that was presented to the cardholder for the authorization. This currency can be different from the cardholder currency and the `currency` field on this authorization. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
122
- attr_reader :merchant_currency
123
- # Attribute for field merchant_data
124
- attr_reader :merchant_data
125
- # 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.
126
- attr_reader :metadata
127
- # Details about the authorization, such as identifiers, set by the card network.
128
- attr_reader :network_data
129
- # String representing the object's type. Objects of the same type share the same value.
130
- attr_reader :object
131
- # The pending authorization request. This field will only be non-null during an `issuing_authorization.request` webhook.
132
- attr_reader :pending_request
133
- # History of every time a `pending_request` authorization was approved/declined, either by you directly or by Stripe (e.g. based on your spending_controls). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization. This field can be helpful in determining why a given authorization was approved/declined.
134
- attr_reader :request_history
135
- # The current status of the authorization in its lifecycle.
136
- attr_reader :status
137
- # [Token](https://stripe.com/docs/api/issuing/tokens/object) object used for this authorization. If a network token was not used for this authorization, this field will be null.
138
- attr_reader :token
139
- # List of [transactions](https://stripe.com/docs/api/issuing/transactions) associated with this authorization.
140
- attr_reader :transactions
141
- # [Treasury](https://stripe.com/docs/api/treasury) details related to this authorization if it was created on a [FinancialAccount](https://stripe.com/docs/api/treasury/financial_accounts).
142
- attr_reader :treasury
143
- # Attribute for field verification_data
144
- attr_reader :verification_data
145
- # Whether the authorization bypassed fraud risk checks because the cardholder has previously completed a fraud challenge on a similar high-risk authorization from the same merchant.
146
- attr_reader :verified_by_fraud_challenge
147
- # The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized.
148
- attr_reader :wallet
149
-
150
21
  # [Deprecated] Approves a pending Issuing Authorization object. This request should be made within the timeout window of the [real-time authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations) flow.
151
22
  # This method is deprecated. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
152
23
  def approve(params = {}, opts = {})
@@ -202,11 +73,11 @@ module Stripe
202
73
  end
203
74
 
204
75
  # Returns a list of Issuing Authorization objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
205
- def self.list(filters = {}, opts = {})
76
+ def self.list(params = {}, opts = {})
206
77
  request_stripe_object(
207
78
  method: :get,
208
79
  path: "/v1/issuing/authorizations",
209
- params: filters,
80
+ params: params,
210
81
  opts: opts
211
82
  )
212
83
  end
@@ -14,100 +14,14 @@ module Stripe
14
14
  "issuing.card"
15
15
  end
16
16
 
17
- class Shipping < Stripe::StripeObject
18
- class Address < Stripe::StripeObject
19
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
20
- end
21
-
22
- class AddressValidation < Stripe::StripeObject
23
- class NormalizedAddress < Stripe::StripeObject
24
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
25
- end
26
- attr_reader :mode, :normalized_address, :result
27
- end
28
-
29
- class Customs < Stripe::StripeObject
30
- attr_reader :eori_number
31
- end
32
- attr_reader :address, :address_validation, :carrier, :customs, :eta, :name, :phone_number, :require_signature, :service, :status, :tracking_number, :tracking_url, :type
33
- end
34
-
35
- class SpendingControls < Stripe::StripeObject
36
- class SpendingLimit < Stripe::StripeObject
37
- attr_reader :amount, :categories, :interval
38
- end
39
- attr_reader :allowed_categories, :allowed_merchant_countries, :blocked_categories, :blocked_merchant_countries, :spending_limits, :spending_limits_currency
40
- end
41
-
42
- class Wallets < Stripe::StripeObject
43
- class ApplePay < Stripe::StripeObject
44
- attr_reader :eligible, :ineligible_reason
45
- end
46
-
47
- class GooglePay < Stripe::StripeObject
48
- attr_reader :eligible, :ineligible_reason
49
- end
50
- attr_reader :apple_pay, :google_pay, :primary_account_identifier
51
- end
52
- # The brand of the card.
53
- attr_reader :brand
54
- # The reason why the card was canceled.
55
- attr_reader :cancellation_reason
56
- # An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards.
57
- #
58
- # Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder)
59
- attr_reader :cardholder
60
- # Time at which the object was created. Measured in seconds since the Unix epoch.
61
- attr_reader :created
62
- # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Supported currencies are `usd` in the US, `eur` in the EU, and `gbp` in the UK.
63
- attr_reader :currency
64
- # The card's CVC. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with [the `expand` parameter](https://stripe.com/docs/api/expanding_objects). Additionally, it's only available via the ["Retrieve a card" endpoint](https://stripe.com/docs/api/issuing/cards/retrieve), not via "List all cards" or any other endpoint.
65
- attr_reader :cvc
66
- # The expiration month of the card.
67
- attr_reader :exp_month
68
- # The expiration year of the card.
69
- attr_reader :exp_year
70
- # The financial account this card is attached to.
71
- attr_reader :financial_account
72
- # Unique identifier for the object.
73
- attr_reader :id
74
- # The last 4 digits of the card number.
75
- attr_reader :last4
76
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
77
- attr_reader :livemode
78
- # 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.
79
- attr_reader :metadata
80
- # The full unredacted card number. For security reasons, this is only available for virtual cards, and will be omitted unless you explicitly request it with [the `expand` parameter](https://stripe.com/docs/api/expanding_objects). Additionally, it's only available via the ["Retrieve a card" endpoint](https://stripe.com/docs/api/issuing/cards/retrieve), not via "List all cards" or any other endpoint.
81
- attr_reader :number
82
- # String representing the object's type. Objects of the same type share the same value.
83
- attr_reader :object
84
- # The personalization design object belonging to this card.
85
- attr_reader :personalization_design
86
- # The latest card that replaces this card, if any.
87
- attr_reader :replaced_by
88
- # The card this card replaces, if any.
89
- attr_reader :replacement_for
90
- # The reason why the previous card needed to be replaced.
91
- attr_reader :replacement_reason
92
- # Where and how the card will be shipped.
93
- attr_reader :shipping
94
- # Attribute for field spending_controls
95
- attr_reader :spending_controls
96
- # Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to `inactive`.
97
- attr_reader :status
98
- # The type of the card.
99
- attr_reader :type
100
- # Information relating to digital wallets (like Apple Pay and Google Pay).
101
- attr_reader :wallets
102
-
103
17
  # Creates an Issuing Card object.
104
18
  def self.create(params = {}, opts = {})
105
19
  request_stripe_object(method: :post, path: "/v1/issuing/cards", params: params, opts: opts)
106
20
  end
107
21
 
108
22
  # Returns a list of Issuing Card objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
109
- def self.list(filters = {}, opts = {})
110
- request_stripe_object(method: :get, path: "/v1/issuing/cards", params: filters, opts: opts)
23
+ def self.list(params = {}, opts = {})
24
+ request_stripe_object(method: :get, path: "/v1/issuing/cards", params: params, opts: opts)
111
25
  end
112
26
 
113
27
  # Updates the specified Issuing Card object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -16,82 +16,6 @@ module Stripe
16
16
  "issuing.cardholder"
17
17
  end
18
18
 
19
- class Billing < Stripe::StripeObject
20
- class Address < Stripe::StripeObject
21
- attr_reader :city, :country, :line1, :line2, :postal_code, :state
22
- end
23
- attr_reader :address
24
- end
25
-
26
- class Company < Stripe::StripeObject
27
- attr_reader :tax_id_provided
28
- end
29
-
30
- class Individual < Stripe::StripeObject
31
- class CardIssuing < Stripe::StripeObject
32
- class UserTermsAcceptance < Stripe::StripeObject
33
- attr_reader :date, :ip, :user_agent
34
- end
35
- attr_reader :user_terms_acceptance
36
- end
37
-
38
- class Dob < Stripe::StripeObject
39
- attr_reader :day, :month, :year
40
- end
41
-
42
- class Verification < Stripe::StripeObject
43
- class Document < Stripe::StripeObject
44
- attr_reader :back, :front
45
- end
46
- attr_reader :document
47
- end
48
- attr_reader :card_issuing, :dob, :first_name, :last_name, :verification
49
- end
50
-
51
- class Requirements < Stripe::StripeObject
52
- attr_reader :disabled_reason, :past_due
53
- end
54
-
55
- class SpendingControls < Stripe::StripeObject
56
- class SpendingLimit < Stripe::StripeObject
57
- attr_reader :amount, :categories, :interval
58
- end
59
- attr_reader :allowed_categories, :allowed_merchant_countries, :blocked_categories, :blocked_merchant_countries, :spending_limits, :spending_limits_currency
60
- end
61
- # Attribute for field billing
62
- attr_reader :billing
63
- # Additional information about a `company` cardholder.
64
- attr_reader :company
65
- # Time at which the object was created. Measured in seconds since the Unix epoch.
66
- attr_reader :created
67
- # The cardholder's email address.
68
- attr_reader :email
69
- # Unique identifier for the object.
70
- attr_reader :id
71
- # Additional information about an `individual` cardholder.
72
- attr_reader :individual
73
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
74
- attr_reader :livemode
75
- # 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.
76
- attr_reader :metadata
77
- # The cardholder's name. This will be printed on cards issued to them.
78
- attr_reader :name
79
- # String representing the object's type. Objects of the same type share the same value.
80
- attr_reader :object
81
- # The cardholder's phone number. This is required for all cardholders who will be creating EU cards. See the [3D Secure documentation](https://stripe.com/docs/issuing/3d-secure#when-is-3d-secure-applied) for more details.
82
- attr_reader :phone_number
83
- # The cardholder’s preferred locales (languages), ordered by preference. Locales can be `de`, `en`, `es`, `fr`, or `it`.
84
- # This changes the language of the [3D Secure flow](https://stripe.com/docs/issuing/3d-secure) and one-time password messages sent to the cardholder.
85
- attr_reader :preferred_locales
86
- # Attribute for field requirements
87
- attr_reader :requirements
88
- # Rules that control spending across this cardholder's cards. Refer to our [documentation](https://stripe.com/docs/issuing/controls/spending-controls) for more details.
89
- attr_reader :spending_controls
90
- # Specifies whether to permit authorizations on this cardholder's cards.
91
- attr_reader :status
92
- # One of `individual` or `company`. See [Choose a cardholder type](https://stripe.com/docs/issuing/other/choose-cardholder) for more details.
93
- attr_reader :type
94
-
95
19
  # Creates a new Issuing Cardholder object that can be issued cards.
96
20
  def self.create(params = {}, opts = {})
97
21
  request_stripe_object(
@@ -103,11 +27,11 @@ module Stripe
103
27
  end
104
28
 
105
29
  # Returns a list of Issuing Cardholder objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
106
- def self.list(filters = {}, opts = {})
30
+ def self.list(params = {}, opts = {})
107
31
  request_stripe_object(
108
32
  method: :get,
109
33
  path: "/v1/issuing/cardholders",
110
- params: filters,
34
+ params: params,
111
35
  opts: opts
112
36
  )
113
37
  end
@@ -16,71 +16,6 @@ module Stripe
16
16
  "issuing.dispute"
17
17
  end
18
18
 
19
- class Evidence < Stripe::StripeObject
20
- class Canceled < Stripe::StripeObject
21
- attr_reader :additional_documentation, :canceled_at, :cancellation_policy_provided, :cancellation_reason, :expected_at, :explanation, :product_description, :product_type, :return_status, :returned_at
22
- end
23
-
24
- class Duplicate < Stripe::StripeObject
25
- attr_reader :additional_documentation, :card_statement, :cash_receipt, :check_image, :explanation, :original_transaction
26
- end
27
-
28
- class Fraudulent < Stripe::StripeObject
29
- attr_reader :additional_documentation, :explanation
30
- end
31
-
32
- class MerchandiseNotAsDescribed < Stripe::StripeObject
33
- attr_reader :additional_documentation, :explanation, :received_at, :return_description, :return_status, :returned_at
34
- end
35
-
36
- class NoValidAuthorization < Stripe::StripeObject
37
- attr_reader :additional_documentation, :explanation
38
- end
39
-
40
- class NotReceived < Stripe::StripeObject
41
- attr_reader :additional_documentation, :expected_at, :explanation, :product_description, :product_type
42
- end
43
-
44
- class Other < Stripe::StripeObject
45
- attr_reader :additional_documentation, :explanation, :product_description, :product_type
46
- end
47
-
48
- class ServiceNotAsDescribed < Stripe::StripeObject
49
- attr_reader :additional_documentation, :canceled_at, :cancellation_reason, :explanation, :received_at
50
- end
51
- attr_reader :canceled, :duplicate, :fraudulent, :merchandise_not_as_described, :no_valid_authorization, :not_received, :other, :reason, :service_not_as_described
52
- end
53
-
54
- class Treasury < Stripe::StripeObject
55
- attr_reader :debit_reversal, :received_debit
56
- end
57
- # Disputed amount in the card's currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). Usually the amount of the `transaction`, but can differ (usually because of currency fluctuation).
58
- attr_reader :amount
59
- # List of balance transactions associated with the dispute.
60
- attr_reader :balance_transactions
61
- # Time at which the object was created. Measured in seconds since the Unix epoch.
62
- attr_reader :created
63
- # The currency the `transaction` was made in.
64
- attr_reader :currency
65
- # Attribute for field evidence
66
- attr_reader :evidence
67
- # Unique identifier for the object.
68
- attr_reader :id
69
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
70
- attr_reader :livemode
71
- # The enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values.
72
- attr_reader :loss_reason
73
- # 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.
74
- attr_reader :metadata
75
- # String representing the object's type. Objects of the same type share the same value.
76
- attr_reader :object
77
- # Current status of the dispute.
78
- attr_reader :status
79
- # The transaction being disputed.
80
- attr_reader :transaction
81
- # [Treasury](https://stripe.com/docs/api/treasury) details related to this dispute if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts
82
- attr_reader :treasury
83
-
84
19
  # Creates an Issuing Dispute object. Individual pieces of evidence within the evidence object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to [Dispute reasons and evidence](https://stripe.com/docs/issuing/purchases/disputes#dispute-reasons-and-evidence) for more details about evidence requirements.
85
20
  def self.create(params = {}, opts = {})
86
21
  request_stripe_object(
@@ -92,11 +27,11 @@ module Stripe
92
27
  end
93
28
 
94
29
  # Returns a list of Issuing Dispute objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
95
- def self.list(filters = {}, opts = {})
30
+ def self.list(params = {}, opts = {})
96
31
  request_stripe_object(
97
32
  method: :get,
98
33
  path: "/v1/issuing/disputes",
99
- params: filters,
34
+ params: params,
100
35
  opts: opts
101
36
  )
102
37
  end
@@ -14,44 +14,6 @@ module Stripe
14
14
  "issuing.personalization_design"
15
15
  end
16
16
 
17
- class CarrierText < Stripe::StripeObject
18
- attr_reader :footer_body, :footer_title, :header_body, :header_title
19
- end
20
-
21
- class Preferences < Stripe::StripeObject
22
- attr_reader :is_default, :is_platform_default
23
- end
24
-
25
- class RejectionReasons < Stripe::StripeObject
26
- attr_reader :card_logo, :carrier_text
27
- end
28
- # The file for the card logo to use with physical bundles that support card logos. Must have a `purpose` value of `issuing_logo`.
29
- attr_reader :card_logo
30
- # Hash containing carrier text, for use with physical bundles that support carrier text.
31
- attr_reader :carrier_text
32
- # Time at which the object was created. Measured in seconds since the Unix epoch.
33
- attr_reader :created
34
- # Unique identifier for the object.
35
- attr_reader :id
36
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
37
- attr_reader :livemode
38
- # A lookup key used to retrieve personalization designs dynamically from a static string. This may be up to 200 characters.
39
- attr_reader :lookup_key
40
- # 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.
41
- attr_reader :metadata
42
- # Friendly display name.
43
- attr_reader :name
44
- # String representing the object's type. Objects of the same type share the same value.
45
- attr_reader :object
46
- # The physical bundle object belonging to this personalization design.
47
- attr_reader :physical_bundle
48
- # Attribute for field preferences
49
- attr_reader :preferences
50
- # Attribute for field rejection_reasons
51
- attr_reader :rejection_reasons
52
- # Whether this personalization design can be used to create cards.
53
- attr_reader :status
54
-
55
17
  # Creates a personalization design object.
56
18
  def self.create(params = {}, opts = {})
57
19
  request_stripe_object(
@@ -63,11 +25,11 @@ module Stripe
63
25
  end
64
26
 
65
27
  # Returns a list of personalization design objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
66
- def self.list(filters = {}, opts = {})
28
+ def self.list(params = {}, opts = {})
67
29
  request_stripe_object(
68
30
  method: :get,
69
31
  path: "/v1/issuing/personalization_designs",
70
- params: filters,
32
+ params: params,
71
33
  opts: opts
72
34
  )
73
35
  end
@@ -12,30 +12,12 @@ module Stripe
12
12
  "issuing.physical_bundle"
13
13
  end
14
14
 
15
- class Features < Stripe::StripeObject
16
- attr_reader :card_logo, :carrier_text, :second_line
17
- end
18
- # Attribute for field features
19
- attr_reader :features
20
- # Unique identifier for the object.
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
- # Friendly display name.
25
- attr_reader :name
26
- # String representing the object's type. Objects of the same type share the same value.
27
- attr_reader :object
28
- # Whether this physical bundle can be used to create cards.
29
- attr_reader :status
30
- # Whether this physical bundle is a standard Stripe offering or custom-made for you.
31
- attr_reader :type
32
-
33
15
  # Returns a list of physical bundle objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
34
- def self.list(filters = {}, opts = {})
16
+ def self.list(params = {}, opts = {})
35
17
  request_stripe_object(
36
18
  method: :get,
37
19
  path: "/v1/issuing/physical_bundles",
38
- params: filters,
20
+ params: params,
39
21
  opts: opts
40
22
  )
41
23
  end
@@ -13,55 +13,9 @@ module Stripe
13
13
  "issuing.token"
14
14
  end
15
15
 
16
- class NetworkData < Stripe::StripeObject
17
- class Device < Stripe::StripeObject
18
- attr_reader :device_fingerprint, :ip_address, :location, :name, :phone_number, :type
19
- end
20
-
21
- class Mastercard < Stripe::StripeObject
22
- attr_reader :card_reference_id, :token_reference_id, :token_requestor_id, :token_requestor_name
23
- end
24
-
25
- class Visa < Stripe::StripeObject
26
- attr_reader :card_reference_id, :token_reference_id, :token_requestor_id, :token_risk_score
27
- end
28
-
29
- class WalletProvider < Stripe::StripeObject
30
- class CardholderAddress < Stripe::StripeObject
31
- attr_reader :line1, :postal_code
32
- end
33
- attr_reader :account_id, :account_trust_score, :card_number_source, :cardholder_address, :cardholder_name, :device_trust_score, :hashed_account_email_address, :reason_codes, :suggested_decision, :suggested_decision_version
34
- end
35
- attr_reader :device, :mastercard, :type, :visa, :wallet_provider
36
- end
37
- # Card associated with this token.
38
- attr_reader :card
39
- # Time at which the object was created. Measured in seconds since the Unix epoch.
40
- attr_reader :created
41
- # The hashed ID derived from the device ID from the card network associated with the token.
42
- attr_reader :device_fingerprint
43
- # Unique identifier for the object.
44
- attr_reader :id
45
- # The last four digits of the token.
46
- attr_reader :last4
47
- # Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
48
- attr_reader :livemode
49
- # The token service provider / card network associated with the token.
50
- attr_reader :network
51
- # Attribute for field network_data
52
- attr_reader :network_data
53
- # Time at which the token was last updated by the card network. Measured in seconds since the Unix epoch.
54
- attr_reader :network_updated_at
55
- # String representing the object's type. Objects of the same type share the same value.
56
- attr_reader :object
57
- # The usage state of the token.
58
- attr_reader :status
59
- # The digital wallet for this token, if one was used.
60
- attr_reader :wallet_provider
61
-
62
16
  # Lists all Issuing Token objects for a given card.
63
- def self.list(filters = {}, opts = {})
64
- request_stripe_object(method: :get, path: "/v1/issuing/tokens", params: filters, opts: opts)
17
+ def self.list(params = {}, opts = {})
18
+ request_stripe_object(method: :get, path: "/v1/issuing/tokens", params: params, opts: opts)
65
19
  end
66
20
 
67
21
  # Attempts to update the specified Issuing Token object to the status specified.