increase 1.39.0 → 1.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8b2f6858bc742cd3da02aadf5e4cc469b2fec47544bd062cf78f41fce2d843c
4
- data.tar.gz: f951ec2b7095c3447d17bf8d34319445d045b84ba158b649a0249c5bfa349fd1
3
+ metadata.gz: 431ebe1a12c0cc64bb236d37954675f6a2fc0997be59c5e313116c97773bcc61
4
+ data.tar.gz: 6ce174eaa92699f6797ebfa89695233201f3c0ff0c5bf9bc0c7f7d371b23cc62
5
5
  SHA512:
6
- metadata.gz: 0b253c55c3c9242d3fcca0c447afb8f9bb911a2b76502502d1027c888551a97cd842467c542d6d4a70cbef57f17e72199511866d151862785e0a8af64dcda12e
7
- data.tar.gz: c55c75c84ac60f9c7d8307164e99c17b0f02b428b139662e8cf58fb34f14728ef2d8018f337d278c087fbc1c4dd164e06029bb99831ecff088b118d18d90d7db
6
+ metadata.gz: 93fa2087cc2641aba6aa9789afcfc7eb8722bc03536974b451419a4693f180e32817e62c1e950cd7a4c4e8296a1696be1378cda27c3dd570a4322ba2474b4c20
7
+ data.tar.gz: c4cd2f429007ef063627b2016cdc76ad7fcf09cf763fe2ad40e7c151d41a6170ce62a209f3a49a4e3467b7e199b1d11e94ae076f66f370b2d926a61d31b38251
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.40.0 (2025-08-20)
4
+
5
+ Full Changelog: [v1.39.0...v1.40.0](https://github.com/Increase/increase-ruby/compare/v1.39.0...v1.40.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([6f2b4ab](https://github.com/Increase/increase-ruby/commit/6f2b4ab35ffbb974911ac85740af55836f9609e1))
10
+
3
11
  ## 1.39.0 (2025-08-20)
4
12
 
5
13
  Full Changelog: [v1.38.0...v1.39.0](https://github.com/Increase/increase-ruby/compare/v1.38.0...v1.39.0)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "increase", "~> 1.39.0"
18
+ gem "increase", "~> 1.40.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::Cards#create_details_iframe
6
+ class CardCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
7
+ extend Increase::Internal::Type::RequestParameters::Converter
8
+ include Increase::Internal::Type::RequestParameters
9
+
10
+ # @!attribute physical_card_id
11
+ # The identifier of the Physical Card to retrieve details for.
12
+ #
13
+ # @return [String, nil]
14
+ optional :physical_card_id, String
15
+
16
+ # @!method initialize(physical_card_id: nil, request_options: {})
17
+ # @param physical_card_id [String] The identifier of the Physical Card to retrieve details for.
18
+ #
19
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Increase
4
+ module Models
5
+ # @see Increase::Resources::Cards#create_details_iframe
6
+ class CardIframeURL < Increase::Internal::Type::BaseModel
7
+ # @!attribute expires_at
8
+ # The time the iframe URL will expire.
9
+ #
10
+ # @return [Time]
11
+ required :expires_at, Time
12
+
13
+ # @!attribute iframe_url
14
+ # The iframe URL for the Card. Treat this as an opaque URL.
15
+ #
16
+ # @return [String]
17
+ required :iframe_url, String
18
+
19
+ # @!attribute type
20
+ # A constant representing the object's type. For this resource it will always be
21
+ # `card_iframe_url`.
22
+ #
23
+ # @return [Symbol, Increase::Models::CardIframeURL::Type]
24
+ required :type, enum: -> { Increase::CardIframeURL::Type }
25
+
26
+ # @!method initialize(expires_at:, iframe_url:, type:)
27
+ # Some parameter documentations has been truncated, see
28
+ # {Increase::Models::CardIframeURL} for more details.
29
+ #
30
+ # An object containing the iframe URL for a Card.
31
+ #
32
+ # @param expires_at [Time] The time the iframe URL will expire.
33
+ #
34
+ # @param iframe_url [String] The iframe URL for the Card. Treat this as an opaque URL.
35
+ #
36
+ # @param type [Symbol, Increase::Models::CardIframeURL::Type] A constant representing the object's type. For this resource it will always be `
37
+
38
+ # A constant representing the object's type. For this resource it will always be
39
+ # `card_iframe_url`.
40
+ #
41
+ # @see Increase::Models::CardIframeURL#type
42
+ module Type
43
+ extend Increase::Internal::Type::Enum
44
+
45
+ CARD_IFRAME_URL = :card_iframe_url
46
+
47
+ # @!method self.values
48
+ # @return [Array<Symbol>]
49
+ end
50
+ end
51
+ end
52
+ end
@@ -131,6 +131,8 @@ module Increase
131
131
 
132
132
  Card = Increase::Models::Card
133
133
 
134
+ CardCreateDetailsIframeParams = Increase::Models::CardCreateDetailsIframeParams
135
+
134
136
  CardCreateParams = Increase::Models::CardCreateParams
135
137
 
136
138
  CardDetails = Increase::Models::CardDetails
@@ -145,6 +147,8 @@ module Increase
145
147
 
146
148
  CardDisputeRetrieveParams = Increase::Models::CardDisputeRetrieveParams
147
149
 
150
+ CardIframeURL = Increase::Models::CardIframeURL
151
+
148
152
  CardListParams = Increase::Models::CardListParams
149
153
 
150
154
  CardPayment = Increase::Models::CardPayment
@@ -121,7 +121,34 @@ module Increase
121
121
  )
122
122
  end
123
123
 
124
- # Retrieve sensitive details for a Card
124
+ # Create an iframe URL for a Card to display the card details. More details about
125
+ # styling and usage can be found in the
126
+ # [documentation](/documentation/embedded-card-component).
127
+ #
128
+ # @overload create_details_iframe(card_id, physical_card_id: nil, request_options: {})
129
+ #
130
+ # @param card_id [String] The identifier of the Card to retrieve details for.
131
+ #
132
+ # @param physical_card_id [String] The identifier of the Physical Card to retrieve details for.
133
+ #
134
+ # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
135
+ #
136
+ # @return [Increase::Models::CardIframeURL]
137
+ #
138
+ # @see Increase::Models::CardCreateDetailsIframeParams
139
+ def create_details_iframe(card_id, params = {})
140
+ parsed, options = Increase::CardCreateDetailsIframeParams.dump_request(params)
141
+ @client.request(
142
+ method: :post,
143
+ path: ["cards/%1$s/create_details_iframe", card_id],
144
+ body: parsed,
145
+ model: Increase::CardIframeURL,
146
+ options: options
147
+ )
148
+ end
149
+
150
+ # Sensitive details for a Card include the primary account number, expiry, card
151
+ # verification code, and PIN.
125
152
  #
126
153
  # @overload details(card_id, request_options: {})
127
154
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.39.0"
4
+ VERSION = "1.40.0"
5
5
  end
data/lib/increase.rb CHANGED
@@ -97,6 +97,7 @@ require_relative "increase/models/bookkeeping_entry_set_create_params"
97
97
  require_relative "increase/models/bookkeeping_entry_set_list_params"
98
98
  require_relative "increase/models/bookkeeping_entry_set_retrieve_params"
99
99
  require_relative "increase/models/card"
100
+ require_relative "increase/models/card_create_details_iframe_params"
100
101
  require_relative "increase/models/card_create_params"
101
102
  require_relative "increase/models/card_details"
102
103
  require_relative "increase/models/card_details_params"
@@ -104,6 +105,7 @@ require_relative "increase/models/card_dispute"
104
105
  require_relative "increase/models/card_dispute_create_params"
105
106
  require_relative "increase/models/card_dispute_list_params"
106
107
  require_relative "increase/models/card_dispute_retrieve_params"
108
+ require_relative "increase/models/card_iframe_url"
107
109
  require_relative "increase/models/card_list_params"
108
110
  require_relative "increase/models/card_payment"
109
111
  require_relative "increase/models/card_payment_list_params"
@@ -0,0 +1,49 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class CardCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
6
+ extend Increase::Internal::Type::RequestParameters::Converter
7
+ include Increase::Internal::Type::RequestParameters
8
+
9
+ OrHash =
10
+ T.type_alias do
11
+ T.any(
12
+ Increase::CardCreateDetailsIframeParams,
13
+ Increase::Internal::AnyHash
14
+ )
15
+ end
16
+
17
+ # The identifier of the Physical Card to retrieve details for.
18
+ sig { returns(T.nilable(String)) }
19
+ attr_reader :physical_card_id
20
+
21
+ sig { params(physical_card_id: String).void }
22
+ attr_writer :physical_card_id
23
+
24
+ sig do
25
+ params(
26
+ physical_card_id: String,
27
+ request_options: Increase::RequestOptions::OrHash
28
+ ).returns(T.attached_class)
29
+ end
30
+ def self.new(
31
+ # The identifier of the Physical Card to retrieve details for.
32
+ physical_card_id: nil,
33
+ request_options: {}
34
+ )
35
+ end
36
+
37
+ sig do
38
+ override.returns(
39
+ {
40
+ physical_card_id: String,
41
+ request_options: Increase::RequestOptions
42
+ }
43
+ )
44
+ end
45
+ def to_hash
46
+ end
47
+ end
48
+ end
49
+ end
@@ -0,0 +1,77 @@
1
+ # typed: strong
2
+
3
+ module Increase
4
+ module Models
5
+ class CardIframeURL < Increase::Internal::Type::BaseModel
6
+ OrHash =
7
+ T.type_alias do
8
+ T.any(Increase::CardIframeURL, Increase::Internal::AnyHash)
9
+ end
10
+
11
+ # The time the iframe URL will expire.
12
+ sig { returns(Time) }
13
+ attr_accessor :expires_at
14
+
15
+ # The iframe URL for the Card. Treat this as an opaque URL.
16
+ sig { returns(String) }
17
+ attr_accessor :iframe_url
18
+
19
+ # A constant representing the object's type. For this resource it will always be
20
+ # `card_iframe_url`.
21
+ sig { returns(Increase::CardIframeURL::Type::TaggedSymbol) }
22
+ attr_accessor :type
23
+
24
+ # An object containing the iframe URL for a Card.
25
+ sig do
26
+ params(
27
+ expires_at: Time,
28
+ iframe_url: String,
29
+ type: Increase::CardIframeURL::Type::OrSymbol
30
+ ).returns(T.attached_class)
31
+ end
32
+ def self.new(
33
+ # The time the iframe URL will expire.
34
+ expires_at:,
35
+ # The iframe URL for the Card. Treat this as an opaque URL.
36
+ iframe_url:,
37
+ # A constant representing the object's type. For this resource it will always be
38
+ # `card_iframe_url`.
39
+ type:
40
+ )
41
+ end
42
+
43
+ sig do
44
+ override.returns(
45
+ {
46
+ expires_at: Time,
47
+ iframe_url: String,
48
+ type: Increase::CardIframeURL::Type::TaggedSymbol
49
+ }
50
+ )
51
+ end
52
+ def to_hash
53
+ end
54
+
55
+ # A constant representing the object's type. For this resource it will always be
56
+ # `card_iframe_url`.
57
+ module Type
58
+ extend Increase::Internal::Type::Enum
59
+
60
+ TaggedSymbol =
61
+ T.type_alias { T.all(Symbol, Increase::CardIframeURL::Type) }
62
+ OrSymbol = T.type_alias { T.any(Symbol, String) }
63
+
64
+ CARD_IFRAME_URL =
65
+ T.let(:card_iframe_url, Increase::CardIframeURL::Type::TaggedSymbol)
66
+
67
+ sig do
68
+ override.returns(
69
+ T::Array[Increase::CardIframeURL::Type::TaggedSymbol]
70
+ )
71
+ end
72
+ def self.values
73
+ end
74
+ end
75
+ end
76
+ end
77
+ end
@@ -104,6 +104,9 @@ module Increase
104
104
 
105
105
  Card = Increase::Models::Card
106
106
 
107
+ CardCreateDetailsIframeParams =
108
+ Increase::Models::CardCreateDetailsIframeParams
109
+
107
110
  CardCreateParams = Increase::Models::CardCreateParams
108
111
 
109
112
  CardDetails = Increase::Models::CardDetails
@@ -118,6 +121,8 @@ module Increase
118
121
 
119
122
  CardDisputeRetrieveParams = Increase::Models::CardDisputeRetrieveParams
120
123
 
124
+ CardIframeURL = Increase::Models::CardIframeURL
125
+
121
126
  CardListParams = Increase::Models::CardListParams
122
127
 
123
128
  CardPayment = Increase::Models::CardPayment
@@ -111,7 +111,27 @@ module Increase
111
111
  )
112
112
  end
113
113
 
114
- # Retrieve sensitive details for a Card
114
+ # Create an iframe URL for a Card to display the card details. More details about
115
+ # styling and usage can be found in the
116
+ # [documentation](/documentation/embedded-card-component).
117
+ sig do
118
+ params(
119
+ card_id: String,
120
+ physical_card_id: String,
121
+ request_options: Increase::RequestOptions::OrHash
122
+ ).returns(Increase::CardIframeURL)
123
+ end
124
+ def create_details_iframe(
125
+ # The identifier of the Card to retrieve details for.
126
+ card_id,
127
+ # The identifier of the Physical Card to retrieve details for.
128
+ physical_card_id: nil,
129
+ request_options: {}
130
+ )
131
+ end
132
+
133
+ # Sensitive details for a Card include the primary account number, expiry, card
134
+ # verification code, and PIN.
115
135
  sig do
116
136
  params(
117
137
  card_id: String,
@@ -0,0 +1,26 @@
1
+ module Increase
2
+ module Models
3
+ type card_create_details_iframe_params =
4
+ { physical_card_id: String }
5
+ & Increase::Internal::Type::request_parameters
6
+
7
+ class CardCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
8
+ extend Increase::Internal::Type::RequestParameters::Converter
9
+ include Increase::Internal::Type::RequestParameters
10
+
11
+ attr_reader physical_card_id: String?
12
+
13
+ def physical_card_id=: (String) -> String
14
+
15
+ def initialize: (
16
+ ?physical_card_id: String,
17
+ ?request_options: Increase::request_opts
18
+ ) -> void
19
+
20
+ def to_hash: -> {
21
+ physical_card_id: String,
22
+ request_options: Increase::RequestOptions
23
+ }
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,40 @@
1
+ module Increase
2
+ module Models
3
+ type card_iframe_url =
4
+ {
5
+ expires_at: Time,
6
+ iframe_url: String,
7
+ type: Increase::Models::CardIframeURL::type_
8
+ }
9
+
10
+ class CardIframeURL < Increase::Internal::Type::BaseModel
11
+ attr_accessor expires_at: Time
12
+
13
+ attr_accessor iframe_url: String
14
+
15
+ attr_accessor type: Increase::Models::CardIframeURL::type_
16
+
17
+ def initialize: (
18
+ expires_at: Time,
19
+ iframe_url: String,
20
+ type: Increase::Models::CardIframeURL::type_
21
+ ) -> void
22
+
23
+ def to_hash: -> {
24
+ expires_at: Time,
25
+ iframe_url: String,
26
+ type: Increase::Models::CardIframeURL::type_
27
+ }
28
+
29
+ type type_ = :card_iframe_url
30
+
31
+ module Type
32
+ extend Increase::Internal::Type::Enum
33
+
34
+ CARD_IFRAME_URL: :card_iframe_url
35
+
36
+ def self?.values: -> ::Array[Increase::Models::CardIframeURL::type_]
37
+ end
38
+ end
39
+ end
40
+ end
@@ -91,6 +91,8 @@ module Increase
91
91
 
92
92
  class Card = Increase::Models::Card
93
93
 
94
+ class CardCreateDetailsIframeParams = Increase::Models::CardCreateDetailsIframeParams
95
+
94
96
  class CardCreateParams = Increase::Models::CardCreateParams
95
97
 
96
98
  class CardDetails = Increase::Models::CardDetails
@@ -105,6 +107,8 @@ module Increase
105
107
 
106
108
  class CardDisputeRetrieveParams = Increase::Models::CardDisputeRetrieveParams
107
109
 
110
+ class CardIframeURL = Increase::Models::CardIframeURL
111
+
108
112
  class CardListParams = Increase::Models::CardListParams
109
113
 
110
114
  class CardPayment = Increase::Models::CardPayment
@@ -35,6 +35,12 @@ module Increase
35
35
  ?request_options: Increase::request_opts
36
36
  ) -> Increase::Internal::Page[Increase::Card]
37
37
 
38
+ def create_details_iframe: (
39
+ String card_id,
40
+ ?physical_card_id: String,
41
+ ?request_options: Increase::request_opts
42
+ ) -> Increase::CardIframeURL
43
+
38
44
  def details: (
39
45
  String card_id,
40
46
  ?request_options: Increase::request_opts
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.39.0
4
+ version: 1.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
@@ -102,6 +102,7 @@ files:
102
102
  - lib/increase/models/bookkeeping_entry_set_list_params.rb
103
103
  - lib/increase/models/bookkeeping_entry_set_retrieve_params.rb
104
104
  - lib/increase/models/card.rb
105
+ - lib/increase/models/card_create_details_iframe_params.rb
105
106
  - lib/increase/models/card_create_params.rb
106
107
  - lib/increase/models/card_details.rb
107
108
  - lib/increase/models/card_details_params.rb
@@ -109,6 +110,7 @@ files:
109
110
  - lib/increase/models/card_dispute_create_params.rb
110
111
  - lib/increase/models/card_dispute_list_params.rb
111
112
  - lib/increase/models/card_dispute_retrieve_params.rb
113
+ - lib/increase/models/card_iframe_url.rb
112
114
  - lib/increase/models/card_list_params.rb
113
115
  - lib/increase/models/card_payment.rb
114
116
  - lib/increase/models/card_payment_list_params.rb
@@ -484,6 +486,7 @@ files:
484
486
  - rbi/increase/models/bookkeeping_entry_set_list_params.rbi
485
487
  - rbi/increase/models/bookkeeping_entry_set_retrieve_params.rbi
486
488
  - rbi/increase/models/card.rbi
489
+ - rbi/increase/models/card_create_details_iframe_params.rbi
487
490
  - rbi/increase/models/card_create_params.rbi
488
491
  - rbi/increase/models/card_details.rbi
489
492
  - rbi/increase/models/card_details_params.rbi
@@ -491,6 +494,7 @@ files:
491
494
  - rbi/increase/models/card_dispute_create_params.rbi
492
495
  - rbi/increase/models/card_dispute_list_params.rbi
493
496
  - rbi/increase/models/card_dispute_retrieve_params.rbi
497
+ - rbi/increase/models/card_iframe_url.rbi
494
498
  - rbi/increase/models/card_list_params.rbi
495
499
  - rbi/increase/models/card_payment.rbi
496
500
  - rbi/increase/models/card_payment_list_params.rbi
@@ -865,6 +869,7 @@ files:
865
869
  - sig/increase/models/bookkeeping_entry_set_list_params.rbs
866
870
  - sig/increase/models/bookkeeping_entry_set_retrieve_params.rbs
867
871
  - sig/increase/models/card.rbs
872
+ - sig/increase/models/card_create_details_iframe_params.rbs
868
873
  - sig/increase/models/card_create_params.rbs
869
874
  - sig/increase/models/card_details.rbs
870
875
  - sig/increase/models/card_details_params.rbs
@@ -872,6 +877,7 @@ files:
872
877
  - sig/increase/models/card_dispute_create_params.rbs
873
878
  - sig/increase/models/card_dispute_list_params.rbs
874
879
  - sig/increase/models/card_dispute_retrieve_params.rbs
880
+ - sig/increase/models/card_iframe_url.rbs
875
881
  - sig/increase/models/card_list_params.rbs
876
882
  - sig/increase/models/card_payment.rbs
877
883
  - sig/increase/models/card_payment_list_params.rbs