From fb9619736c2940afcd8ed27f1ae6d4482a9c30c3 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 12 Nov 2025 21:56:01 +0000 Subject: [PATCH] Update generated code for v2119 and --- OPENAPI_VERSION | 2 +- lib/stripe/object_types.rb | 1 + lib/stripe/params.rb | 4 + .../params/issuing/program_create_params.rb | 21 +++ .../params/issuing/program_list_params.rb | 24 +++ .../params/issuing/program_retrieve_params.rb | 15 ++ .../params/issuing/program_update_params.rb | 21 +++ lib/stripe/resources.rb | 1 + lib/stripe/resources/issuing/program.rb | 69 +++++++ lib/stripe/services.rb | 1 + .../services/issuing/program_service.rb | 52 ++++++ lib/stripe/services/issuing_service.rb | 3 +- rbi/stripe.rbi | 173 ++++++++++++++++++ .../params/issuing/program_create_params.rbi | 29 +++ .../params/issuing/program_list_params.rbi | 34 ++++ .../issuing/program_retrieve_params.rbi | 17 ++ .../params/issuing/program_update_params.rbi | 31 ++++ rbi/stripe/resources/issuing/program.rbi | 46 +++++ .../services/issuing/program_service.rbi | 33 ++++ rbi/stripe/services/issuing_service.rbi | 1 + 20 files changed, 576 insertions(+), 2 deletions(-) create mode 100644 lib/stripe/params/issuing/program_create_params.rb create mode 100644 lib/stripe/params/issuing/program_list_params.rb create mode 100644 lib/stripe/params/issuing/program_retrieve_params.rb create mode 100644 lib/stripe/params/issuing/program_update_params.rb create mode 100644 lib/stripe/resources/issuing/program.rb create mode 100644 lib/stripe/services/issuing/program_service.rb create mode 100644 rbi/stripe/params/issuing/program_create_params.rbi create mode 100644 rbi/stripe/params/issuing/program_list_params.rbi create mode 100644 rbi/stripe/params/issuing/program_retrieve_params.rbi create mode 100644 rbi/stripe/params/issuing/program_update_params.rbi create mode 100644 rbi/stripe/resources/issuing/program.rbi create mode 100644 rbi/stripe/services/issuing/program_service.rbi diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2464c8e0..5c5ab64e 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v2118 \ No newline at end of file +v2119 \ No newline at end of file diff --git a/lib/stripe/object_types.rb b/lib/stripe/object_types.rb index 432a6baa..140e0841 100644 --- a/lib/stripe/object_types.rb +++ b/lib/stripe/object_types.rb @@ -98,6 +98,7 @@ module Stripe Issuing::FraudLiabilityDebit.object_name => Issuing::FraudLiabilityDebit, Issuing::PersonalizationDesign.object_name => Issuing::PersonalizationDesign, Issuing::PhysicalBundle.object_name => Issuing::PhysicalBundle, + Issuing::Program.object_name => Issuing::Program, Issuing::Settlement.object_name => Issuing::Settlement, Issuing::Token.object_name => Issuing::Token, Issuing::Transaction.object_name => Issuing::Transaction, diff --git a/lib/stripe/params.rb b/lib/stripe/params.rb index 01f27a0d..57df8f56 100644 --- a/lib/stripe/params.rb +++ b/lib/stripe/params.rb @@ -303,6 +303,10 @@ require "stripe/params/issuing/personalization_design_retrieve_params" require "stripe/params/issuing/personalization_design_update_params" require "stripe/params/issuing/physical_bundle_list_params" require "stripe/params/issuing/physical_bundle_retrieve_params" +require "stripe/params/issuing/program_create_params" +require "stripe/params/issuing/program_list_params" +require "stripe/params/issuing/program_retrieve_params" +require "stripe/params/issuing/program_update_params" require "stripe/params/issuing/token_list_params" require "stripe/params/issuing/token_retrieve_params" require "stripe/params/issuing/token_update_params" diff --git a/lib/stripe/params/issuing/program_create_params.rb b/lib/stripe/params/issuing/program_create_params.rb new file mode 100644 index 00000000..31337164 --- /dev/null +++ b/lib/stripe/params/issuing/program_create_params.rb @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Issuing + class ProgramCreateParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # If true, makes the specified program the default for the given account. + attr_accessor :is_default + # The program to use as the parent for the new program to create. + attr_accessor :platform_program + + def initialize(expand: nil, is_default: nil, platform_program: nil) + @expand = expand + @is_default = is_default + @platform_program = platform_program + end + end + end +end diff --git a/lib/stripe/params/issuing/program_list_params.rb b/lib/stripe/params/issuing/program_list_params.rb new file mode 100644 index 00000000..aad850e9 --- /dev/null +++ b/lib/stripe/params/issuing/program_list_params.rb @@ -0,0 +1,24 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Issuing + class ProgramListParams < ::Stripe::RequestParams + # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. + attr_accessor :ending_before + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + attr_accessor :limit + # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + attr_accessor :starting_after + + def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil) + @ending_before = ending_before + @expand = expand + @limit = limit + @starting_after = starting_after + end + end + end +end diff --git a/lib/stripe/params/issuing/program_retrieve_params.rb b/lib/stripe/params/issuing/program_retrieve_params.rb new file mode 100644 index 00000000..134d2631 --- /dev/null +++ b/lib/stripe/params/issuing/program_retrieve_params.rb @@ -0,0 +1,15 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Issuing + class ProgramRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + attr_accessor :expand + + def initialize(expand: nil) + @expand = expand + end + end + end +end diff --git a/lib/stripe/params/issuing/program_update_params.rb b/lib/stripe/params/issuing/program_update_params.rb new file mode 100644 index 00000000..8252e218 --- /dev/null +++ b/lib/stripe/params/issuing/program_update_params.rb @@ -0,0 +1,21 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Issuing + class ProgramUpdateParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + attr_accessor :expand + # If true, makes the specified program the default. + attr_accessor :is_default + # 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + attr_accessor :metadata + + def initialize(expand: nil, is_default: nil, metadata: nil) + @expand = expand + @is_default = is_default + @metadata = metadata + end + end + end +end diff --git a/lib/stripe/resources.rb b/lib/stripe/resources.rb index aa358d93..d90a6789 100644 --- a/lib/stripe/resources.rb +++ b/lib/stripe/resources.rb @@ -86,6 +86,7 @@ require "stripe/resources/issuing/dispute_settlement_detail" require "stripe/resources/issuing/fraud_liability_debit" require "stripe/resources/issuing/personalization_design" require "stripe/resources/issuing/physical_bundle" +require "stripe/resources/issuing/program" require "stripe/resources/issuing/settlement" require "stripe/resources/issuing/token" require "stripe/resources/issuing/transaction" diff --git a/lib/stripe/resources/issuing/program.rb b/lib/stripe/resources/issuing/program.rb new file mode 100644 index 00000000..8648e16f --- /dev/null +++ b/lib/stripe/resources/issuing/program.rb @@ -0,0 +1,69 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Issuing + # An Issuing `Program` represents a card program that the user has access to. + class Program < APIResource + extend Stripe::APIOperations::Create + extend Stripe::APIOperations::List + include Stripe::APIOperations::Save + + OBJECT_NAME = "issuing.program" + def self.object_name + "issuing.program" + end + + # Time at which the object was created. Measured in seconds since the Unix epoch. + attr_reader :created + # Unique identifier for the object. + attr_reader :id + # Whether or not this is the "default" issuing program new cards are created on. Only one active `is_default` program at the same time. + attr_reader :is_default + # 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. + attr_reader :metadata + # String representing the object's type. Objects of the same type share the same value. + attr_reader :object + # The platform's Issuing Program for which this program is associated. + attr_reader :platform_program + + # Create a Program object. + def self.create(params = {}, opts = {}) + request_stripe_object( + method: :post, + path: "/v1/issuing/programs", + params: params, + opts: opts + ) + end + + # List all of the programs the given Issuing user has access to. + def self.list(params = {}, opts = {}) + request_stripe_object( + method: :get, + path: "/v1/issuing/programs", + params: params, + opts: opts + ) + end + + # Updates a Program object. + def self.update(program, params = {}, opts = {}) + request_stripe_object( + method: :post, + path: format("/v1/issuing/programs/%s", { program: CGI.escape(program) }), + params: params, + opts: opts + ) + end + + def self.inner_class_types + @inner_class_types = {} + end + + def self.field_remappings + @field_remappings = {} + end + end + end +end diff --git a/lib/stripe/services.rb b/lib/stripe/services.rb index 7d345609..9398d63c 100644 --- a/lib/stripe/services.rb +++ b/lib/stripe/services.rb @@ -98,6 +98,7 @@ require "stripe/services/issuing/dispute_settlement_detail_service" require "stripe/services/issuing/fraud_liability_debit_service" require "stripe/services/issuing/personalization_design_service" require "stripe/services/issuing/physical_bundle_service" +require "stripe/services/issuing/program_service" require "stripe/services/issuing/token_service" require "stripe/services/issuing/transaction_service" require "stripe/services/issuing_service" diff --git a/lib/stripe/services/issuing/program_service.rb b/lib/stripe/services/issuing/program_service.rb new file mode 100644 index 00000000..158fb3ae --- /dev/null +++ b/lib/stripe/services/issuing/program_service.rb @@ -0,0 +1,52 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +module Stripe + module Issuing + class ProgramService < StripeService + # Create a Program object. + def create(params = {}, opts = {}) + request( + method: :post, + path: "/v1/issuing/programs", + params: params, + opts: opts, + base_address: :api + ) + end + + # List all of the programs the given Issuing user has access to. + def list(params = {}, opts = {}) + request( + method: :get, + path: "/v1/issuing/programs", + params: params, + opts: opts, + base_address: :api + ) + end + + # Retrieves the program specified by the given id. + def retrieve(program, params = {}, opts = {}) + request( + method: :get, + path: format("/v1/issuing/programs/%s", { program: CGI.escape(program) }), + params: params, + opts: opts, + base_address: :api + ) + end + + # Updates a Program object. + def update(program, params = {}, opts = {}) + request( + method: :post, + path: format("/v1/issuing/programs/%s", { program: CGI.escape(program) }), + params: params, + opts: opts, + base_address: :api + ) + end + end + end +end diff --git a/lib/stripe/services/issuing_service.rb b/lib/stripe/services/issuing_service.rb index a1a9caeb..4c25d5b6 100644 --- a/lib/stripe/services/issuing_service.rb +++ b/lib/stripe/services/issuing_service.rb @@ -3,7 +3,7 @@ module Stripe class IssuingService < StripeService - attr_reader :authorizations, :cards, :cardholders, :credit_underwriting_records, :disputes, :dispute_settlement_details, :fraud_liability_debits, :personalization_designs, :physical_bundles, :tokens, :transactions + attr_reader :authorizations, :cards, :cardholders, :credit_underwriting_records, :disputes, :dispute_settlement_details, :fraud_liability_debits, :personalization_designs, :physical_bundles, :programs, :tokens, :transactions def initialize(requestor) super @@ -17,6 +17,7 @@ module Stripe @fraud_liability_debits = Stripe::Issuing::FraudLiabilityDebitService.new(@requestor) @personalization_designs = Stripe::Issuing::PersonalizationDesignService.new(@requestor) @physical_bundles = Stripe::Issuing::PhysicalBundleService.new(@requestor) + @programs = Stripe::Issuing::ProgramService.new(@requestor) @tokens = Stripe::Issuing::TokenService.new(@requestor) @transactions = Stripe::Issuing::TransactionService.new(@requestor) end diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 3274c846..a8516144 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -25144,6 +25144,49 @@ module Stripe end end # typed: true +module Stripe + module Issuing + # An Issuing `Program` represents a card program that the user has access to. + class Program < APIResource + # Time at which the object was created. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def created; end + # Unique identifier for the object. + sig { returns(String) } + def id; end + # Whether or not this is the "default" issuing program new cards are created on. Only one active `is_default` program at the same time. + sig { returns(T::Boolean) } + def is_default; end + # 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. + sig { returns(T::Hash[String, String]) } + def metadata; end + # String representing the object's type. Objects of the same type share the same value. + sig { returns(String) } + def object; end + # The platform's Issuing Program for which this program is associated. + sig { returns(T.nilable(String)) } + def platform_program; end + # Create a Program object. + sig { + params(params: T.any(::Stripe::Issuing::ProgramCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Program) + } + def self.create(params = {}, opts = {}); end + + # List all of the programs the given Issuing user has access to. + sig { + params(params: T.any(::Stripe::Issuing::ProgramListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) + } + def self.list(params = {}, opts = {}); end + + # Updates a Program object. + sig { + params(program: String, params: T.any(::Stripe::Issuing::ProgramUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Program) + } + def self.update(program, params = {}, opts = {}); end + end + end +end +# typed: true module Stripe module Issuing # An issuing token object is created when an issued card is added to a digital wallet. As a [card issuer](https://stripe.com/docs/issuing), you can [view and manage these tokens](https://stripe.com/docs/issuing/controls/token-management) through Stripe. @@ -72880,6 +72923,7 @@ module Stripe attr_reader :fraud_liability_debits attr_reader :personalization_designs attr_reader :physical_bundles + attr_reader :programs attr_reader :tokens attr_reader :transactions end @@ -73145,6 +73189,36 @@ module Stripe end end # typed: true +module Stripe + module Issuing + class ProgramService < StripeService + # Create a Program object. + sig { + params(params: T.any(::Stripe::Issuing::ProgramCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Program) + } + def create(params = {}, opts = {}); end + + # List all of the programs the given Issuing user has access to. + sig { + params(params: T.any(::Stripe::Issuing::ProgramListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) + } + def list(params = {}, opts = {}); end + + # Retrieves the program specified by the given id. + sig { + params(program: String, params: T.any(::Stripe::Issuing::ProgramRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Program) + } + def retrieve(program, params = {}, opts = {}); end + + # Updates a Program object. + sig { + params(program: String, params: T.any(::Stripe::Issuing::ProgramUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Program) + } + def update(program, params = {}, opts = {}); end + end + end +end +# typed: true module Stripe module Issuing class TokenService < StripeService @@ -116370,6 +116444,91 @@ module Stripe end end # typed: true +module Stripe + module Issuing + class ProgramListParams < ::Stripe::RequestParams + # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. + sig { returns(T.nilable(String)) } + def ending_before; end + sig { params(_ending_before: T.nilable(String)).returns(T.nilable(String)) } + def ending_before=(_ending_before); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + sig { returns(T.nilable(String)) } + def starting_after; end + sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } + def starting_after=(_starting_after); end + sig { + params(ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void + } + def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil); end + end + end +end +# typed: true +module Stripe + module Issuing + class ProgramCreateParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # If true, makes the specified program the default for the given account. + sig { returns(T.nilable(T::Boolean)) } + def is_default; end + sig { params(_is_default: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def is_default=(_is_default); end + # The program to use as the parent for the new program to create. + sig { returns(String) } + def platform_program; end + sig { params(_platform_program: String).returns(String) } + def platform_program=(_platform_program); end + sig { + params(expand: T.nilable(T::Array[String]), is_default: T.nilable(T::Boolean), platform_program: String).void + } + def initialize(expand: nil, is_default: nil, platform_program: nil); end + end + end +end +# typed: true +module Stripe + module Issuing + class ProgramUpdateParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # If true, makes the specified program the default. + sig { returns(T.nilable(T::Boolean)) } + def is_default; end + sig { params(_is_default: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def is_default=(_is_default); end + # 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(expand: T.nilable(T::Array[String]), is_default: T.nilable(T::Boolean), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(expand: nil, is_default: nil, metadata: nil); end + end + end +end +# typed: true module Stripe module Issuing class TokenListParams < ::Stripe::RequestParams @@ -188743,6 +188902,20 @@ module Stripe end end # typed: true +module Stripe + module Issuing + class ProgramRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end + end +end +# typed: true module Stripe module Issuing class TokenRetrieveParams < ::Stripe::RequestParams diff --git a/rbi/stripe/params/issuing/program_create_params.rbi b/rbi/stripe/params/issuing/program_create_params.rbi new file mode 100644 index 00000000..a9a58547 --- /dev/null +++ b/rbi/stripe/params/issuing/program_create_params.rbi @@ -0,0 +1,29 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module Issuing + class ProgramCreateParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # If true, makes the specified program the default for the given account. + sig { returns(T.nilable(T::Boolean)) } + def is_default; end + sig { params(_is_default: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def is_default=(_is_default); end + # The program to use as the parent for the new program to create. + sig { returns(String) } + def platform_program; end + sig { params(_platform_program: String).returns(String) } + def platform_program=(_platform_program); end + sig { + params(expand: T.nilable(T::Array[String]), is_default: T.nilable(T::Boolean), platform_program: String).void + } + def initialize(expand: nil, is_default: nil, platform_program: nil); end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/issuing/program_list_params.rbi b/rbi/stripe/params/issuing/program_list_params.rbi new file mode 100644 index 00000000..463c789d --- /dev/null +++ b/rbi/stripe/params/issuing/program_list_params.rbi @@ -0,0 +1,34 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module Issuing + class ProgramListParams < ::Stripe::RequestParams + # A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. + sig { returns(T.nilable(String)) } + def ending_before; end + sig { params(_ending_before: T.nilable(String)).returns(T.nilable(String)) } + def ending_before=(_ending_before); end + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. + sig { returns(T.nilable(Integer)) } + def limit; end + sig { params(_limit: T.nilable(Integer)).returns(T.nilable(Integer)) } + def limit=(_limit); end + # A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. + sig { returns(T.nilable(String)) } + def starting_after; end + sig { params(_starting_after: T.nilable(String)).returns(T.nilable(String)) } + def starting_after=(_starting_after); end + sig { + params(ending_before: T.nilable(String), expand: T.nilable(T::Array[String]), limit: T.nilable(Integer), starting_after: T.nilable(String)).void + } + def initialize(ending_before: nil, expand: nil, limit: nil, starting_after: nil); end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/issuing/program_retrieve_params.rbi b/rbi/stripe/params/issuing/program_retrieve_params.rbi new file mode 100644 index 00000000..208f3bb0 --- /dev/null +++ b/rbi/stripe/params/issuing/program_retrieve_params.rbi @@ -0,0 +1,17 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module Issuing + class ProgramRetrieveParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + sig { params(expand: T.nilable(T::Array[String])).void } + def initialize(expand: nil); end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/params/issuing/program_update_params.rbi b/rbi/stripe/params/issuing/program_update_params.rbi new file mode 100644 index 00000000..6587b0ec --- /dev/null +++ b/rbi/stripe/params/issuing/program_update_params.rbi @@ -0,0 +1,31 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module Issuing + class ProgramUpdateParams < ::Stripe::RequestParams + # Specifies which fields in the response should be expanded. + sig { returns(T.nilable(T::Array[String])) } + def expand; end + sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) } + def expand=(_expand); end + # If true, makes the specified program the default. + sig { returns(T.nilable(T::Boolean)) } + def is_default; end + sig { params(_is_default: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) } + def is_default=(_is_default); end + # 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. + sig { returns(T.nilable(T.any(String, T::Hash[String, String]))) } + def metadata; end + sig { + params(_metadata: T.nilable(T.any(String, T::Hash[String, String]))).returns(T.nilable(T.any(String, T::Hash[String, String]))) + } + def metadata=(_metadata); end + sig { + params(expand: T.nilable(T::Array[String]), is_default: T.nilable(T::Boolean), metadata: T.nilable(T.any(String, T::Hash[String, String]))).void + } + def initialize(expand: nil, is_default: nil, metadata: nil); end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/resources/issuing/program.rbi b/rbi/stripe/resources/issuing/program.rbi new file mode 100644 index 00000000..7ec71c46 --- /dev/null +++ b/rbi/stripe/resources/issuing/program.rbi @@ -0,0 +1,46 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module Issuing + # An Issuing `Program` represents a card program that the user has access to. + class Program < APIResource + # Time at which the object was created. Measured in seconds since the Unix epoch. + sig { returns(Integer) } + def created; end + # Unique identifier for the object. + sig { returns(String) } + def id; end + # Whether or not this is the "default" issuing program new cards are created on. Only one active `is_default` program at the same time. + sig { returns(T::Boolean) } + def is_default; end + # 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. + sig { returns(T::Hash[String, String]) } + def metadata; end + # String representing the object's type. Objects of the same type share the same value. + sig { returns(String) } + def object; end + # The platform's Issuing Program for which this program is associated. + sig { returns(T.nilable(String)) } + def platform_program; end + # Create a Program object. + sig { + params(params: T.any(::Stripe::Issuing::ProgramCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Program) + } + def self.create(params = {}, opts = {}); end + + # List all of the programs the given Issuing user has access to. + sig { + params(params: T.any(::Stripe::Issuing::ProgramListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) + } + def self.list(params = {}, opts = {}); end + + # Updates a Program object. + sig { + params(program: String, params: T.any(::Stripe::Issuing::ProgramUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Program) + } + def self.update(program, params = {}, opts = {}); end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/services/issuing/program_service.rbi b/rbi/stripe/services/issuing/program_service.rbi new file mode 100644 index 00000000..d51bde7b --- /dev/null +++ b/rbi/stripe/services/issuing/program_service.rbi @@ -0,0 +1,33 @@ +# File generated from our OpenAPI spec +# frozen_string_literal: true + +# typed: true +module Stripe + module Issuing + class ProgramService < StripeService + # Create a Program object. + sig { + params(params: T.any(::Stripe::Issuing::ProgramCreateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Program) + } + def create(params = {}, opts = {}); end + + # List all of the programs the given Issuing user has access to. + sig { + params(params: T.any(::Stripe::Issuing::ProgramListParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::ListObject) + } + def list(params = {}, opts = {}); end + + # Retrieves the program specified by the given id. + sig { + params(program: String, params: T.any(::Stripe::Issuing::ProgramRetrieveParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Program) + } + def retrieve(program, params = {}, opts = {}); end + + # Updates a Program object. + sig { + params(program: String, params: T.any(::Stripe::Issuing::ProgramUpdateParams, T::Hash[T.untyped, T.untyped]), opts: T.untyped).returns(::Stripe::Issuing::Program) + } + def update(program, params = {}, opts = {}); end + end + end +end \ No newline at end of file diff --git a/rbi/stripe/services/issuing_service.rbi b/rbi/stripe/services/issuing_service.rbi index 25677e19..271941fe 100644 --- a/rbi/stripe/services/issuing_service.rbi +++ b/rbi/stripe/services/issuing_service.rbi @@ -13,6 +13,7 @@ module Stripe attr_reader :fraud_liability_debits attr_reader :personalization_designs attr_reader :physical_bundles + attr_reader :programs attr_reader :tokens attr_reader :transactions end