increase 1.39.0 → 1.41.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 +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +1 -1
- data/lib/increase/models/card_create_details_iframe_params.rb +22 -0
- data/lib/increase/models/card_iframe_url.rb +52 -0
- data/lib/increase/models/transaction.rb +30 -1
- data/lib/increase/models/transaction_list_params.rb +3 -0
- data/lib/increase/models.rb +4 -0
- data/lib/increase/resources/cards.rb +28 -1
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +2 -0
- data/rbi/increase/models/card_create_details_iframe_params.rbi +49 -0
- data/rbi/increase/models/card_iframe_url.rbi +77 -0
- data/rbi/increase/models/transaction.rbi +63 -0
- data/rbi/increase/models/transaction_list_params.rbi +7 -0
- data/rbi/increase/models.rbi +5 -0
- data/rbi/increase/resources/cards.rbi +21 -1
- data/sig/increase/models/card_create_details_iframe_params.rbs +26 -0
- data/sig/increase/models/card_iframe_url.rbs +40 -0
- data/sig/increase/models/transaction.rbs +19 -0
- data/sig/increase/models/transaction_list_params.rbs +4 -0
- data/sig/increase/models.rbs +4 -0
- data/sig/increase/resources/cards.rbs +6 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad2109026838ecd009f8f585a9d78d811a54ea51119a6ee90d58591e6971073c
|
4
|
+
data.tar.gz: b2d38b611af5a6aefb3fffd696dc6ce1b8c52caf1f5c0f4b9e01c0eddf3c3a4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3152036589ca7ce8ca66c18df6527b70e83041006fb5759819debebfe45c769c9bb9b5ee55f86e0fac76b9d1297c379d94f0798d2a1a40eb5c9d1e0bf97c41bc
|
7
|
+
data.tar.gz: 9e8ab6d12ab52ee63af4d16053696bab16b9a7812830533fa892b741b1de898f5e2fc9c592c15fb3178a62f9c45e05d342f169efbcac4d896d277e9ea1958c9c
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.41.0 (2025-08-20)
|
4
|
+
|
5
|
+
Full Changelog: [v1.40.0...v1.41.0](https://github.com/Increase/increase-ruby/compare/v1.40.0...v1.41.0)
|
6
|
+
|
7
|
+
### Features
|
8
|
+
|
9
|
+
* **api:** api update ([94299db](https://github.com/Increase/increase-ruby/commit/94299db1b856eb40e9a504c7e0cbd582bdf1936b))
|
10
|
+
|
11
|
+
## 1.40.0 (2025-08-20)
|
12
|
+
|
13
|
+
Full Changelog: [v1.39.0...v1.40.0](https://github.com/Increase/increase-ruby/compare/v1.39.0...v1.40.0)
|
14
|
+
|
15
|
+
### Features
|
16
|
+
|
17
|
+
* **api:** api update ([6f2b4ab](https://github.com/Increase/increase-ruby/commit/6f2b4ab35ffbb974911ac85740af55836f9609e1))
|
18
|
+
|
3
19
|
## 1.39.0 (2025-08-20)
|
4
20
|
|
5
21
|
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
@@ -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
|
@@ -484,6 +484,14 @@ module Increase
|
|
484
484
|
-> { Increase::Transaction::Source::SwiftTransferIntention },
|
485
485
|
nil?: true
|
486
486
|
|
487
|
+
# @!attribute swift_transfer_return
|
488
|
+
# A Swift Transfer Return object. This field will be present in the JSON response
|
489
|
+
# if and only if `category` is equal to `swift_transfer_return`. A Swift Transfer
|
490
|
+
# Return is created when a Swift Transfer is returned by the receiving bank.
|
491
|
+
#
|
492
|
+
# @return [Increase::Models::Transaction::Source::SwiftTransferReturn, nil]
|
493
|
+
required :swift_transfer_return, -> { Increase::Transaction::Source::SwiftTransferReturn }, nil?: true
|
494
|
+
|
487
495
|
# @!attribute wire_transfer_intention
|
488
496
|
# A Wire Transfer Intention object. This field will be present in the JSON
|
489
497
|
# response if and only if `category` is equal to `wire_transfer_intention`. A Wire
|
@@ -496,7 +504,7 @@ module Increase
|
|
496
504
|
},
|
497
505
|
nil?: true
|
498
506
|
|
499
|
-
# @!method initialize(account_transfer_intention:, ach_transfer_intention:, ach_transfer_rejection:, ach_transfer_return:, card_dispute_acceptance:, card_dispute_financial:, card_dispute_loss:, card_push_transfer_acceptance:, card_refund:, card_revenue_payment:, card_settlement:, cashback_payment:, category:, check_deposit_acceptance:, check_deposit_return:, check_transfer_deposit:, fee_payment:, inbound_ach_transfer:, inbound_ach_transfer_return_intention:, inbound_check_adjustment:, inbound_check_deposit_return_intention:, inbound_real_time_payments_transfer_confirmation:, inbound_real_time_payments_transfer_decline:, inbound_wire_reversal:, inbound_wire_transfer:, inbound_wire_transfer_reversal:, interest_payment:, internal_source:, other:, real_time_payments_transfer_acknowledgement:, sample_funds:, swift_transfer_intention:, wire_transfer_intention:)
|
507
|
+
# @!method initialize(account_transfer_intention:, ach_transfer_intention:, ach_transfer_rejection:, ach_transfer_return:, card_dispute_acceptance:, card_dispute_financial:, card_dispute_loss:, card_push_transfer_acceptance:, card_refund:, card_revenue_payment:, card_settlement:, cashback_payment:, category:, check_deposit_acceptance:, check_deposit_return:, check_transfer_deposit:, fee_payment:, inbound_ach_transfer:, inbound_ach_transfer_return_intention:, inbound_check_adjustment:, inbound_check_deposit_return_intention:, inbound_real_time_payments_transfer_confirmation:, inbound_real_time_payments_transfer_decline:, inbound_wire_reversal:, inbound_wire_transfer:, inbound_wire_transfer_reversal:, interest_payment:, internal_source:, other:, real_time_payments_transfer_acknowledgement:, sample_funds:, swift_transfer_intention:, swift_transfer_return:, wire_transfer_intention:)
|
500
508
|
# Some parameter documentations has been truncated, see
|
501
509
|
# {Increase::Models::Transaction::Source} for more details.
|
502
510
|
#
|
@@ -569,6 +577,8 @@ module Increase
|
|
569
577
|
#
|
570
578
|
# @param swift_transfer_intention [Increase::Models::Transaction::Source::SwiftTransferIntention, nil] A Swift Transfer Intention object. This field will be present in the JSON respon
|
571
579
|
#
|
580
|
+
# @param swift_transfer_return [Increase::Models::Transaction::Source::SwiftTransferReturn, nil] A Swift Transfer Return object. This field will be present in the JSON response
|
581
|
+
#
|
572
582
|
# @param wire_transfer_intention [Increase::Models::Transaction::Source::WireTransferIntention, nil] A Wire Transfer Intention object. This field will be present in the JSON respons
|
573
583
|
|
574
584
|
# @see Increase::Models::Transaction::Source#account_transfer_intention
|
@@ -4231,6 +4241,9 @@ module Increase
|
|
4231
4241
|
# Swift Transfer Intention: details will be under the `swift_transfer_intention` object.
|
4232
4242
|
SWIFT_TRANSFER_INTENTION = :swift_transfer_intention
|
4233
4243
|
|
4244
|
+
# Swift Transfer Return: details will be under the `swift_transfer_return` object.
|
4245
|
+
SWIFT_TRANSFER_RETURN = :swift_transfer_return
|
4246
|
+
|
4234
4247
|
# Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object.
|
4235
4248
|
CARD_PUSH_TRANSFER_ACCEPTANCE = :card_push_transfer_acceptance
|
4236
4249
|
|
@@ -5873,6 +5886,22 @@ module Increase
|
|
5873
5886
|
# @param transfer_id [String] The identifier of the Swift Transfer that led to this Transaction.
|
5874
5887
|
end
|
5875
5888
|
|
5889
|
+
# @see Increase::Models::Transaction::Source#swift_transfer_return
|
5890
|
+
class SwiftTransferReturn < Increase::Internal::Type::BaseModel
|
5891
|
+
# @!attribute transfer_id
|
5892
|
+
# The identifier of the Swift Transfer that led to this Transaction.
|
5893
|
+
#
|
5894
|
+
# @return [String]
|
5895
|
+
required :transfer_id, String
|
5896
|
+
|
5897
|
+
# @!method initialize(transfer_id:)
|
5898
|
+
# A Swift Transfer Return object. This field will be present in the JSON response
|
5899
|
+
# if and only if `category` is equal to `swift_transfer_return`. A Swift Transfer
|
5900
|
+
# Return is created when a Swift Transfer is returned by the receiving bank.
|
5901
|
+
#
|
5902
|
+
# @param transfer_id [String] The identifier of the Swift Transfer that led to this Transaction.
|
5903
|
+
end
|
5904
|
+
|
5876
5905
|
# @see Increase::Models::Transaction::Source#wire_transfer_intention
|
5877
5906
|
class WireTransferIntention < Increase::Internal::Type::BaseModel
|
5878
5907
|
# @!attribute account_number
|
@@ -172,6 +172,9 @@ module Increase
|
|
172
172
|
# Swift Transfer Intention: details will be under the `swift_transfer_intention` object.
|
173
173
|
SWIFT_TRANSFER_INTENTION = :swift_transfer_intention
|
174
174
|
|
175
|
+
# Swift Transfer Return: details will be under the `swift_transfer_return` object.
|
176
|
+
SWIFT_TRANSFER_RETURN = :swift_transfer_return
|
177
|
+
|
175
178
|
# Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object.
|
176
179
|
CARD_PUSH_TRANSFER_ACCEPTANCE = :card_push_transfer_acceptance
|
177
180
|
|
data/lib/increase/models.rb
CHANGED
@@ -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
|
-
#
|
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
|
#
|
data/lib/increase/version.rb
CHANGED
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
|
@@ -811,6 +811,24 @@ module Increase
|
|
811
811
|
end
|
812
812
|
attr_writer :swift_transfer_intention
|
813
813
|
|
814
|
+
# A Swift Transfer Return object. This field will be present in the JSON response
|
815
|
+
# if and only if `category` is equal to `swift_transfer_return`. A Swift Transfer
|
816
|
+
# Return is created when a Swift Transfer is returned by the receiving bank.
|
817
|
+
sig do
|
818
|
+
returns(T.nilable(Increase::Transaction::Source::SwiftTransferReturn))
|
819
|
+
end
|
820
|
+
attr_reader :swift_transfer_return
|
821
|
+
|
822
|
+
sig do
|
823
|
+
params(
|
824
|
+
swift_transfer_return:
|
825
|
+
T.nilable(
|
826
|
+
Increase::Transaction::Source::SwiftTransferReturn::OrHash
|
827
|
+
)
|
828
|
+
).void
|
829
|
+
end
|
830
|
+
attr_writer :swift_transfer_return
|
831
|
+
|
814
832
|
# A Wire Transfer Intention object. This field will be present in the JSON
|
815
833
|
# response if and only if `category` is equal to `wire_transfer_intention`. A Wire
|
816
834
|
# Transfer initiated via Increase and sent to a different bank.
|
@@ -943,6 +961,10 @@ module Increase
|
|
943
961
|
T.nilable(
|
944
962
|
Increase::Transaction::Source::SwiftTransferIntention::OrHash
|
945
963
|
),
|
964
|
+
swift_transfer_return:
|
965
|
+
T.nilable(
|
966
|
+
Increase::Transaction::Source::SwiftTransferReturn::OrHash
|
967
|
+
),
|
946
968
|
wire_transfer_intention:
|
947
969
|
T.nilable(
|
948
970
|
Increase::Transaction::Source::WireTransferIntention::OrHash
|
@@ -1110,6 +1132,10 @@ module Increase
|
|
1110
1132
|
# response if and only if `category` is equal to `swift_transfer_intention`. A
|
1111
1133
|
# Swift Transfer initiated via Increase.
|
1112
1134
|
swift_transfer_intention:,
|
1135
|
+
# A Swift Transfer Return object. This field will be present in the JSON response
|
1136
|
+
# if and only if `category` is equal to `swift_transfer_return`. A Swift Transfer
|
1137
|
+
# Return is created when a Swift Transfer is returned by the receiving bank.
|
1138
|
+
swift_transfer_return:,
|
1113
1139
|
# A Wire Transfer Intention object. This field will be present in the JSON
|
1114
1140
|
# response if and only if `category` is equal to `wire_transfer_intention`. A Wire
|
1115
1141
|
# Transfer initiated via Increase and sent to a different bank.
|
@@ -1202,6 +1228,8 @@ module Increase
|
|
1202
1228
|
T.nilable(
|
1203
1229
|
Increase::Transaction::Source::SwiftTransferIntention
|
1204
1230
|
),
|
1231
|
+
swift_transfer_return:
|
1232
|
+
T.nilable(Increase::Transaction::Source::SwiftTransferReturn),
|
1205
1233
|
wire_transfer_intention:
|
1206
1234
|
T.nilable(Increase::Transaction::Source::WireTransferIntention)
|
1207
1235
|
}
|
@@ -7883,6 +7911,13 @@ module Increase
|
|
7883
7911
|
Increase::Transaction::Source::Category::TaggedSymbol
|
7884
7912
|
)
|
7885
7913
|
|
7914
|
+
# Swift Transfer Return: details will be under the `swift_transfer_return` object.
|
7915
|
+
SWIFT_TRANSFER_RETURN =
|
7916
|
+
T.let(
|
7917
|
+
:swift_transfer_return,
|
7918
|
+
Increase::Transaction::Source::Category::TaggedSymbol
|
7919
|
+
)
|
7920
|
+
|
7886
7921
|
# Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object.
|
7887
7922
|
CARD_PUSH_TRANSFER_ACCEPTANCE =
|
7888
7923
|
T.let(
|
@@ -10655,6 +10690,34 @@ module Increase
|
|
10655
10690
|
end
|
10656
10691
|
end
|
10657
10692
|
|
10693
|
+
class SwiftTransferReturn < Increase::Internal::Type::BaseModel
|
10694
|
+
OrHash =
|
10695
|
+
T.type_alias do
|
10696
|
+
T.any(
|
10697
|
+
Increase::Transaction::Source::SwiftTransferReturn,
|
10698
|
+
Increase::Internal::AnyHash
|
10699
|
+
)
|
10700
|
+
end
|
10701
|
+
|
10702
|
+
# The identifier of the Swift Transfer that led to this Transaction.
|
10703
|
+
sig { returns(String) }
|
10704
|
+
attr_accessor :transfer_id
|
10705
|
+
|
10706
|
+
# A Swift Transfer Return object. This field will be present in the JSON response
|
10707
|
+
# if and only if `category` is equal to `swift_transfer_return`. A Swift Transfer
|
10708
|
+
# Return is created when a Swift Transfer is returned by the receiving bank.
|
10709
|
+
sig { params(transfer_id: String).returns(T.attached_class) }
|
10710
|
+
def self.new(
|
10711
|
+
# The identifier of the Swift Transfer that led to this Transaction.
|
10712
|
+
transfer_id:
|
10713
|
+
)
|
10714
|
+
end
|
10715
|
+
|
10716
|
+
sig { override.returns({ transfer_id: String }) }
|
10717
|
+
def to_hash
|
10718
|
+
end
|
10719
|
+
end
|
10720
|
+
|
10658
10721
|
class WireTransferIntention < Increase::Internal::Type::BaseModel
|
10659
10722
|
OrHash =
|
10660
10723
|
T.type_alias do
|
@@ -376,6 +376,13 @@ module Increase
|
|
376
376
|
Increase::TransactionListParams::Category::In::TaggedSymbol
|
377
377
|
)
|
378
378
|
|
379
|
+
# Swift Transfer Return: details will be under the `swift_transfer_return` object.
|
380
|
+
SWIFT_TRANSFER_RETURN =
|
381
|
+
T.let(
|
382
|
+
:swift_transfer_return,
|
383
|
+
Increase::TransactionListParams::Category::In::TaggedSymbol
|
384
|
+
)
|
385
|
+
|
379
386
|
# Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object.
|
380
387
|
CARD_PUSH_TRANSFER_ACCEPTANCE =
|
381
388
|
T.let(
|
data/rbi/increase/models.rbi
CHANGED
@@ -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
|
-
#
|
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
|
@@ -138,6 +138,7 @@ module Increase
|
|
138
138
|
real_time_payments_transfer_acknowledgement: Increase::Transaction::Source::RealTimePaymentsTransferAcknowledgement?,
|
139
139
|
sample_funds: Increase::Transaction::Source::SampleFunds?,
|
140
140
|
swift_transfer_intention: Increase::Transaction::Source::SwiftTransferIntention?,
|
141
|
+
swift_transfer_return: Increase::Transaction::Source::SwiftTransferReturn?,
|
141
142
|
wire_transfer_intention: Increase::Transaction::Source::WireTransferIntention?
|
142
143
|
}
|
143
144
|
|
@@ -206,6 +207,8 @@ module Increase
|
|
206
207
|
|
207
208
|
attr_accessor swift_transfer_intention: Increase::Transaction::Source::SwiftTransferIntention?
|
208
209
|
|
210
|
+
attr_accessor swift_transfer_return: Increase::Transaction::Source::SwiftTransferReturn?
|
211
|
+
|
209
212
|
attr_accessor wire_transfer_intention: Increase::Transaction::Source::WireTransferIntention?
|
210
213
|
|
211
214
|
def initialize: (
|
@@ -241,6 +244,7 @@ module Increase
|
|
241
244
|
real_time_payments_transfer_acknowledgement: Increase::Transaction::Source::RealTimePaymentsTransferAcknowledgement?,
|
242
245
|
sample_funds: Increase::Transaction::Source::SampleFunds?,
|
243
246
|
swift_transfer_intention: Increase::Transaction::Source::SwiftTransferIntention?,
|
247
|
+
swift_transfer_return: Increase::Transaction::Source::SwiftTransferReturn?,
|
244
248
|
wire_transfer_intention: Increase::Transaction::Source::WireTransferIntention?
|
245
249
|
) -> void
|
246
250
|
|
@@ -277,6 +281,7 @@ module Increase
|
|
277
281
|
real_time_payments_transfer_acknowledgement: Increase::Transaction::Source::RealTimePaymentsTransferAcknowledgement?,
|
278
282
|
sample_funds: Increase::Transaction::Source::SampleFunds?,
|
279
283
|
swift_transfer_intention: Increase::Transaction::Source::SwiftTransferIntention?,
|
284
|
+
swift_transfer_return: Increase::Transaction::Source::SwiftTransferReturn?,
|
280
285
|
wire_transfer_intention: Increase::Transaction::Source::WireTransferIntention?
|
281
286
|
}
|
282
287
|
|
@@ -3113,6 +3118,7 @@ module Increase
|
|
3113
3118
|
| :sample_funds
|
3114
3119
|
| :wire_transfer_intention
|
3115
3120
|
| :swift_transfer_intention
|
3121
|
+
| :swift_transfer_return
|
3116
3122
|
| :card_push_transfer_acceptance
|
3117
3123
|
| :other
|
3118
3124
|
|
@@ -3209,6 +3215,9 @@ module Increase
|
|
3209
3215
|
# Swift Transfer Intention: details will be under the `swift_transfer_intention` object.
|
3210
3216
|
SWIFT_TRANSFER_INTENTION: :swift_transfer_intention
|
3211
3217
|
|
3218
|
+
# Swift Transfer Return: details will be under the `swift_transfer_return` object.
|
3219
|
+
SWIFT_TRANSFER_RETURN: :swift_transfer_return
|
3220
|
+
|
3212
3221
|
# Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object.
|
3213
3222
|
CARD_PUSH_TRANSFER_ACCEPTANCE: :card_push_transfer_acceptance
|
3214
3223
|
|
@@ -4463,6 +4472,16 @@ module Increase
|
|
4463
4472
|
def to_hash: -> { transfer_id: String }
|
4464
4473
|
end
|
4465
4474
|
|
4475
|
+
type swift_transfer_return = { transfer_id: String }
|
4476
|
+
|
4477
|
+
class SwiftTransferReturn < Increase::Internal::Type::BaseModel
|
4478
|
+
attr_accessor transfer_id: String
|
4479
|
+
|
4480
|
+
def initialize: (transfer_id: String) -> void
|
4481
|
+
|
4482
|
+
def to_hash: -> { transfer_id: String }
|
4483
|
+
end
|
4484
|
+
|
4466
4485
|
type wire_transfer_intention =
|
4467
4486
|
{
|
4468
4487
|
account_number: String,
|
@@ -112,6 +112,7 @@ module Increase
|
|
112
112
|
| :sample_funds
|
113
113
|
| :wire_transfer_intention
|
114
114
|
| :swift_transfer_intention
|
115
|
+
| :swift_transfer_return
|
115
116
|
| :card_push_transfer_acceptance
|
116
117
|
| :other
|
117
118
|
|
@@ -208,6 +209,9 @@ module Increase
|
|
208
209
|
# Swift Transfer Intention: details will be under the `swift_transfer_intention` object.
|
209
210
|
SWIFT_TRANSFER_INTENTION: :swift_transfer_intention
|
210
211
|
|
212
|
+
# Swift Transfer Return: details will be under the `swift_transfer_return` object.
|
213
|
+
SWIFT_TRANSFER_RETURN: :swift_transfer_return
|
214
|
+
|
211
215
|
# Card Push Transfer Acceptance: details will be under the `card_push_transfer_acceptance` object.
|
212
216
|
CARD_PUSH_TRANSFER_ACCEPTANCE: :card_push_transfer_acceptance
|
213
217
|
|
data/sig/increase/models.rbs
CHANGED
@@ -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.
|
4
|
+
version: 1.41.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
|