increase 1.21.0 → 1.23.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: be3e7608f6914d94bac4d1271de985906c813852478e72b3f31792f822265757
4
- data.tar.gz: 8ce52230284861a6cc452326cc918828d19df5f6d800556f685016acfe91b985
3
+ metadata.gz: 5550ee7efebdb3f58b6750a66d126ee79bc4ec230d05be2b03e049015b30c510
4
+ data.tar.gz: 3f1ed46bcac3b69a74c591dffae37f60790c370ab393f3d656010fc1b814f78a
5
5
  SHA512:
6
- metadata.gz: 19585e7a5eb6db12593f98d5666205363dd7da758de1784ef4c8139f7a27e4b95ba6afcdb12e298830ccef37e061c6235a3f3dc9e33f412cc288b8b07b43e551
7
- data.tar.gz: 42ba409b65d6d604b518b2927a74a2b49b8fa96ea4b606b8acdcd90080c7ab7cbea36a7d032ff3bdf343608750be82faec3ca602558376e22a0fb0ae436403c0
6
+ metadata.gz: 23bd60638942c786c521c570d9833ecd460fb80f6ef7a3f84f6b2260d6ffc0600f34748ee536ee03ff2d44a0043ef0d77f680b2f7901fb47cd9ac9128039fd88
7
+ data.tar.gz: 637a0e8b970e3f613a577ffb729096d19ad1214b279013bde56faadb47a5a1c2ade345c210d920ffaa0b9f466ceb120dff403a09934748d6c66468a30f2f433a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.23.0 (2025-08-01)
4
+
5
+ Full Changelog: [v1.22.0...v1.23.0](https://github.com/Increase/increase-ruby/compare/v1.22.0...v1.23.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([16fe155](https://github.com/Increase/increase-ruby/commit/16fe1558aeff7263c3cb1cf49cf42e919dd55a73))
10
+
11
+ ## 1.22.0 (2025-08-01)
12
+
13
+ Full Changelog: [v1.21.0...v1.22.0](https://github.com/Increase/increase-ruby/compare/v1.21.0...v1.22.0)
14
+
15
+ ### Features
16
+
17
+ * **api:** api update ([7be51b2](https://github.com/Increase/increase-ruby/commit/7be51b29bbd7029482f6048e2fefc70fbf2b4163))
18
+
19
+
20
+ ### Chores
21
+
22
+ * **internal:** increase visibility of internal helper method ([ac6bbf0](https://github.com/Increase/increase-ruby/commit/ac6bbf06ad0adedc4d3ad1e6549ddf437db09995))
23
+
3
24
  ## 1.21.0 (2025-07-29)
4
25
 
5
26
  Full Changelog: [v1.20.0...v1.21.0](https://github.com/Increase/increase-ruby/compare/v1.20.0...v1.21.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.21.0"
18
+ gem "increase", "~> 1.23.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -365,7 +365,7 @@ module Increase
365
365
  #
366
366
  # @raise [Increase::Errors::APIError]
367
367
  # @return [Array(Integer, Net::HTTPResponse, Enumerable<String>)]
368
- private def send_request(request, redirect_count:, retry_count:, send_retry_header:)
368
+ def send_request(request, redirect_count:, retry_count:, send_retry_header:)
369
369
  url, headers, max_retries, timeout = request.fetch_values(:url, :headers, :max_retries, :timeout)
370
370
  input = {**request.except(:timeout), deadline: Increase::Internal::Util.monotonic_secs + timeout}
371
371
 
@@ -600,9 +600,18 @@ module Increase
600
600
  module Category
601
601
  extend Increase::Internal::Type::Enum
602
602
 
603
- # The Public Entity is a Municipality.
603
+ # A municipality.
604
604
  MUNICIPALITY = :municipality
605
605
 
606
+ # A state agency.
607
+ STATE_AGENCY = :state_agency
608
+
609
+ # A state government.
610
+ STATE_GOVERNMENT = :state_government
611
+
612
+ # A federal agency.
613
+ FEDERAL_AGENCY = :federal_agency
614
+
606
615
  # @!method self.values
607
616
  # @return [Array<Symbol>]
608
617
  end
@@ -794,9 +794,18 @@ module Increase
794
794
  module Category
795
795
  extend Increase::Internal::Type::Enum
796
796
 
797
- # The Public Entity is a Municipality.
797
+ # A municipality.
798
798
  MUNICIPALITY = :municipality
799
799
 
800
+ # A state agency.
801
+ STATE_AGENCY = :state_agency
802
+
803
+ # A state government.
804
+ STATE_GOVERNMENT = :state_government
805
+
806
+ # A federal agency.
807
+ FEDERAL_AGENCY = :federal_agency
808
+
800
809
  # @!method self.values
801
810
  # @return [Array<Symbol>]
802
811
  end
@@ -38,7 +38,13 @@ module Increase
38
38
  # @return [Increase::Models::PhysicalCardProfileCloneParams::FrontText, nil]
39
39
  optional :front_text, -> { Increase::PhysicalCardProfileCloneParams::FrontText }
40
40
 
41
- # @!method initialize(carrier_image_file_id: nil, contact_phone: nil, description: nil, front_image_file_id: nil, front_text: nil, request_options: {})
41
+ # @!attribute program_id
42
+ # The identifier of the Program to use for the cloned Physical Card Profile.
43
+ #
44
+ # @return [String, nil]
45
+ optional :program_id, String
46
+
47
+ # @!method initialize(carrier_image_file_id: nil, contact_phone: nil, description: nil, front_image_file_id: nil, front_text: nil, program_id: nil, request_options: {})
42
48
  # Some parameter documentations has been truncated, see
43
49
  # {Increase::Models::PhysicalCardProfileCloneParams} for more details.
44
50
  #
@@ -52,6 +58,8 @@ module Increase
52
58
  #
53
59
  # @param front_text [Increase::Models::PhysicalCardProfileCloneParams::FrontText] Text printed on the front of the card. Reach out to [support@increase.com](mailt
54
60
  #
61
+ # @param program_id [String] The identifier of the Program to use for the cloned Physical Card Profile.
62
+ #
55
63
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
56
64
 
57
65
  class FrontText < Increase::Internal::Type::BaseModel
@@ -115,7 +115,7 @@ module Increase
115
115
  #
116
116
  # Clone a Physical Card Profile
117
117
  #
118
- # @overload clone_(physical_card_profile_id, carrier_image_file_id: nil, contact_phone: nil, description: nil, front_image_file_id: nil, front_text: nil, request_options: {})
118
+ # @overload clone_(physical_card_profile_id, carrier_image_file_id: nil, contact_phone: nil, description: nil, front_image_file_id: nil, front_text: nil, program_id: nil, request_options: {})
119
119
  #
120
120
  # @param physical_card_profile_id [String] The identifier of the Physical Card Profile to clone.
121
121
  #
@@ -129,6 +129,8 @@ module Increase
129
129
  #
130
130
  # @param front_text [Increase::Models::PhysicalCardProfileCloneParams::FrontText] Text printed on the front of the card. Reach out to [support@increase.com](mailt
131
131
  #
132
+ # @param program_id [String] The identifier of the Program to use for the cloned Physical Card Profile.
133
+ #
132
134
  # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
133
135
  #
134
136
  # @return [Increase::Models::PhysicalCardProfile]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Increase
4
- VERSION = "1.21.0"
4
+ VERSION = "1.23.0"
5
5
  end
@@ -213,7 +213,7 @@ module Increase
213
213
  send_retry_header: T::Boolean
214
214
  ).returns([Integer, Net::HTTPResponse, T::Enumerable[String]])
215
215
  end
216
- private def send_request(
216
+ def send_request(
217
217
  request,
218
218
  redirect_count:,
219
219
  retry_count:,
@@ -981,13 +981,34 @@ module Increase
981
981
  end
982
982
  OrSymbol = T.type_alias { T.any(Symbol, String) }
983
983
 
984
- # The Public Entity is a Municipality.
984
+ # A municipality.
985
985
  MUNICIPALITY =
986
986
  T.let(
987
987
  :municipality,
988
988
  Increase::Entity::GovernmentAuthority::Category::TaggedSymbol
989
989
  )
990
990
 
991
+ # A state agency.
992
+ STATE_AGENCY =
993
+ T.let(
994
+ :state_agency,
995
+ Increase::Entity::GovernmentAuthority::Category::TaggedSymbol
996
+ )
997
+
998
+ # A state government.
999
+ STATE_GOVERNMENT =
1000
+ T.let(
1001
+ :state_government,
1002
+ Increase::Entity::GovernmentAuthority::Category::TaggedSymbol
1003
+ )
1004
+
1005
+ # A federal agency.
1006
+ FEDERAL_AGENCY =
1007
+ T.let(
1008
+ :federal_agency,
1009
+ Increase::Entity::GovernmentAuthority::Category::TaggedSymbol
1010
+ )
1011
+
991
1012
  sig do
992
1013
  override.returns(
993
1014
  T::Array[
@@ -1433,13 +1433,34 @@ module Increase
1433
1433
  end
1434
1434
  OrSymbol = T.type_alias { T.any(Symbol, String) }
1435
1435
 
1436
- # The Public Entity is a Municipality.
1436
+ # A municipality.
1437
1437
  MUNICIPALITY =
1438
1438
  T.let(
1439
1439
  :municipality,
1440
1440
  Increase::EntityCreateParams::GovernmentAuthority::Category::TaggedSymbol
1441
1441
  )
1442
1442
 
1443
+ # A state agency.
1444
+ STATE_AGENCY =
1445
+ T.let(
1446
+ :state_agency,
1447
+ Increase::EntityCreateParams::GovernmentAuthority::Category::TaggedSymbol
1448
+ )
1449
+
1450
+ # A state government.
1451
+ STATE_GOVERNMENT =
1452
+ T.let(
1453
+ :state_government,
1454
+ Increase::EntityCreateParams::GovernmentAuthority::Category::TaggedSymbol
1455
+ )
1456
+
1457
+ # A federal agency.
1458
+ FEDERAL_AGENCY =
1459
+ T.let(
1460
+ :federal_agency,
1461
+ Increase::EntityCreateParams::GovernmentAuthority::Category::TaggedSymbol
1462
+ )
1463
+
1443
1464
  sig do
1444
1465
  override.returns(
1445
1466
  T::Array[
@@ -57,6 +57,13 @@ module Increase
57
57
  end
58
58
  attr_writer :front_text
59
59
 
60
+ # The identifier of the Program to use for the cloned Physical Card Profile.
61
+ sig { returns(T.nilable(String)) }
62
+ attr_reader :program_id
63
+
64
+ sig { params(program_id: String).void }
65
+ attr_writer :program_id
66
+
60
67
  sig do
61
68
  params(
62
69
  carrier_image_file_id: String,
@@ -65,6 +72,7 @@ module Increase
65
72
  front_image_file_id: String,
66
73
  front_text:
67
74
  Increase::PhysicalCardProfileCloneParams::FrontText::OrHash,
75
+ program_id: String,
68
76
  request_options: Increase::RequestOptions::OrHash
69
77
  ).returns(T.attached_class)
70
78
  end
@@ -80,6 +88,8 @@ module Increase
80
88
  # Text printed on the front of the card. Reach out to
81
89
  # [support@increase.com](mailto:support@increase.com) for more information.
82
90
  front_text: nil,
91
+ # The identifier of the Program to use for the cloned Physical Card Profile.
92
+ program_id: nil,
83
93
  request_options: {}
84
94
  )
85
95
  end
@@ -92,6 +102,7 @@ module Increase
92
102
  description: String,
93
103
  front_image_file_id: String,
94
104
  front_text: Increase::PhysicalCardProfileCloneParams::FrontText,
105
+ program_id: String,
95
106
  request_options: Increase::RequestOptions
96
107
  }
97
108
  )
@@ -98,6 +98,7 @@ module Increase
98
98
  front_image_file_id: String,
99
99
  front_text:
100
100
  Increase::PhysicalCardProfileCloneParams::FrontText::OrHash,
101
+ program_id: String,
101
102
  request_options: Increase::RequestOptions::OrHash
102
103
  ).returns(Increase::PhysicalCardProfile)
103
104
  end
@@ -115,6 +116,8 @@ module Increase
115
116
  # Text printed on the front of the card. Reach out to
116
117
  # [support@increase.com](mailto:support@increase.com) for more information.
117
118
  front_text: nil,
119
+ # The identifier of the Program to use for the cloned Physical Card Profile.
120
+ program_id: nil,
118
121
  request_options: {}
119
122
  )
120
123
  end
@@ -99,7 +99,7 @@ module Increase
99
99
  retry_count: Integer
100
100
  ) -> Float
101
101
 
102
- private def send_request: (
102
+ def send_request: (
103
103
  Increase::Internal::Transport::BaseClient::request_input request,
104
104
  redirect_count: Integer,
105
105
  retry_count: Integer,
@@ -430,14 +430,24 @@ module Increase
430
430
  def to_hash: -> { authorized_person_id: String, name: String }
431
431
  end
432
432
 
433
- type category = :municipality
433
+ type category =
434
+ :municipality | :state_agency | :state_government | :federal_agency
434
435
 
435
436
  module Category
436
437
  extend Increase::Internal::Type::Enum
437
438
 
438
- # The Public Entity is a Municipality.
439
+ # A municipality.
439
440
  MUNICIPALITY: :municipality
440
441
 
442
+ # A state agency.
443
+ STATE_AGENCY: :state_agency
444
+
445
+ # A state government.
446
+ STATE_GOVERNMENT: :state_government
447
+
448
+ # A federal agency.
449
+ FEDERAL_AGENCY: :federal_agency
450
+
441
451
  def self?.values: -> ::Array[Increase::Models::Entity::GovernmentAuthority::category]
442
452
  end
443
453
  end
@@ -636,14 +636,24 @@ module Increase
636
636
  def to_hash: -> { name: String }
637
637
  end
638
638
 
639
- type category = :municipality
639
+ type category =
640
+ :municipality | :state_agency | :state_government | :federal_agency
640
641
 
641
642
  module Category
642
643
  extend Increase::Internal::Type::Enum
643
644
 
644
- # The Public Entity is a Municipality.
645
+ # A municipality.
645
646
  MUNICIPALITY: :municipality
646
647
 
648
+ # A state agency.
649
+ STATE_AGENCY: :state_agency
650
+
651
+ # A state government.
652
+ STATE_GOVERNMENT: :state_government
653
+
654
+ # A federal agency.
655
+ FEDERAL_AGENCY: :federal_agency
656
+
647
657
  def self?.values: -> ::Array[Increase::Models::EntityCreateParams::GovernmentAuthority::category]
648
658
  end
649
659
  end
@@ -6,7 +6,8 @@ module Increase
6
6
  contact_phone: String,
7
7
  description: String,
8
8
  front_image_file_id: String,
9
- front_text: Increase::PhysicalCardProfileCloneParams::FrontText
9
+ front_text: Increase::PhysicalCardProfileCloneParams::FrontText,
10
+ program_id: String
10
11
  }
11
12
  & Increase::Internal::Type::request_parameters
12
13
 
@@ -36,12 +37,17 @@ module Increase
36
37
  Increase::PhysicalCardProfileCloneParams::FrontText
37
38
  ) -> Increase::PhysicalCardProfileCloneParams::FrontText
38
39
 
40
+ attr_reader program_id: String?
41
+
42
+ def program_id=: (String) -> String
43
+
39
44
  def initialize: (
40
45
  ?carrier_image_file_id: String,
41
46
  ?contact_phone: String,
42
47
  ?description: String,
43
48
  ?front_image_file_id: String,
44
49
  ?front_text: Increase::PhysicalCardProfileCloneParams::FrontText,
50
+ ?program_id: String,
45
51
  ?request_options: Increase::request_opts
46
52
  ) -> void
47
53
 
@@ -51,6 +57,7 @@ module Increase
51
57
  description: String,
52
58
  front_image_file_id: String,
53
59
  front_text: Increase::PhysicalCardProfileCloneParams::FrontText,
60
+ program_id: String,
54
61
  request_options: Increase::RequestOptions
55
62
  }
56
63
 
@@ -36,6 +36,7 @@ module Increase
36
36
  ?description: String,
37
37
  ?front_image_file_id: String,
38
38
  ?front_text: Increase::PhysicalCardProfileCloneParams::FrontText,
39
+ ?program_id: String,
39
40
  ?request_options: Increase::request_opts
40
41
  ) -> Increase::PhysicalCardProfile
41
42
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: increase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.21.0
4
+ version: 1.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Increase
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-07-29 00:00:00.000000000 Z
11
+ date: 2025-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool