increase 1.87.0 → 1.89.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/client.rb +0 -4
- data/lib/increase/models/account_transfer.rb +32 -44
- data/lib/increase/models/account_transfer_create_params.rb +11 -8
- data/lib/increase/models/{card_detail_create_details_iframe_params.rb → card_create_details_iframe_params.rb} +8 -4
- data/lib/increase/models/card_details.rb +7 -7
- data/lib/increase/models/{card_detail_details_params.rb → card_details_params.rb} +2 -2
- data/lib/increase/models/card_iframe_url.rb +1 -1
- data/lib/increase/models/card_update_params.rb +1 -9
- data/lib/increase/models/{card_detail_update_params.rb → card_update_pin_params.rb} +2 -2
- data/lib/increase/models.rb +6 -6
- data/lib/increase/resources/account_transfers.rb +6 -6
- data/lib/increase/resources/cards.rb +75 -3
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +3 -4
- data/rbi/increase/client.rbi +0 -3
- data/rbi/increase/models/account_transfer.rbi +36 -53
- data/rbi/increase/models/account_transfer_create_params.rbi +14 -8
- data/rbi/increase/models/{card_detail_create_details_iframe_params.rbi → card_create_details_iframe_params.rbi} +6 -4
- data/rbi/increase/models/card_details.rbi +8 -10
- data/rbi/increase/models/{card_detail_details_params.rbi → card_details_params.rbi} +2 -2
- data/rbi/increase/models/card_update_params.rbi +0 -11
- data/rbi/increase/models/{card_detail_update_params.rbi → card_update_pin_params.rbi} +2 -2
- data/rbi/increase/models.rbi +7 -7
- data/rbi/increase/resources/account_transfers.rbi +9 -6
- data/rbi/increase/resources/cards.rbi +52 -3
- data/sig/increase/client.rbs +0 -2
- data/sig/increase/models/account_transfer.rbs +2 -17
- data/sig/increase/models/{card_detail_create_details_iframe_params.rbs → card_create_details_iframe_params.rbs} +2 -2
- data/sig/increase/models/card_details.rbs +7 -7
- data/sig/increase/models/{card_detail_details_params.rbs → card_details_params.rbs} +2 -2
- data/sig/increase/models/card_update_params.rbs +0 -7
- data/sig/increase/models/{card_detail_update_params.rbs → card_update_pin_params.rbs} +2 -2
- data/sig/increase/models.rbs +6 -6
- data/sig/increase/resources/cards.rbs +17 -1
- metadata +11 -14
- data/lib/increase/resources/card_details.rb +0 -85
- data/rbi/increase/resources/card_details.rbi +0 -63
- data/sig/increase/resources/card_details.rbs +0 -24
@@ -8,16 +8,16 @@ module Increase
|
|
8
8
|
T.any(Increase::AccountTransfer, Increase::Internal::AnyHash)
|
9
9
|
end
|
10
10
|
|
11
|
-
# The
|
11
|
+
# The Account Transfer's identifier.
|
12
12
|
sig { returns(String) }
|
13
13
|
attr_accessor :id
|
14
14
|
|
15
|
-
# The Account
|
15
|
+
# The Account from which the transfer originated.
|
16
16
|
sig { returns(String) }
|
17
17
|
attr_accessor :account_id
|
18
18
|
|
19
|
-
# The transfer amount in
|
20
|
-
#
|
19
|
+
# The transfer amount in cents. This will always be positive and indicates the
|
20
|
+
# amount of money leaving the originating account.
|
21
21
|
sig { returns(Integer) }
|
22
22
|
attr_accessor :amount
|
23
23
|
|
@@ -62,20 +62,22 @@ module Increase
|
|
62
62
|
end
|
63
63
|
attr_writer :created_by
|
64
64
|
|
65
|
-
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
66
|
-
#
|
65
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
|
66
|
+
# currency.
|
67
67
|
sig { returns(Increase::AccountTransfer::Currency::TaggedSymbol) }
|
68
68
|
attr_accessor :currency
|
69
69
|
|
70
|
-
#
|
70
|
+
# An internal-facing description for the transfer for display in the API and
|
71
|
+
# dashboard. This will also show in the description of the created Transactions.
|
71
72
|
sig { returns(String) }
|
72
73
|
attr_accessor :description
|
73
74
|
|
74
|
-
# The destination
|
75
|
+
# The destination Account's identifier.
|
75
76
|
sig { returns(String) }
|
76
77
|
attr_accessor :destination_account_id
|
77
78
|
|
78
|
-
# The
|
79
|
+
# The identifier of the Transaction on the destination Account representing the
|
80
|
+
# received funds.
|
79
81
|
sig { returns(T.nilable(String)) }
|
80
82
|
attr_accessor :destination_transaction_id
|
81
83
|
|
@@ -85,10 +87,6 @@ module Increase
|
|
85
87
|
sig { returns(T.nilable(String)) }
|
86
88
|
attr_accessor :idempotency_key
|
87
89
|
|
88
|
-
# The transfer's network.
|
89
|
-
sig { returns(Increase::AccountTransfer::Network::TaggedSymbol) }
|
90
|
-
attr_accessor :network
|
91
|
-
|
92
90
|
# The ID for the pending transaction representing the transfer. A pending
|
93
91
|
# transaction is created when the transfer
|
94
92
|
# [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals)
|
@@ -100,7 +98,8 @@ module Increase
|
|
100
98
|
sig { returns(Increase::AccountTransfer::Status::TaggedSymbol) }
|
101
99
|
attr_accessor :status
|
102
100
|
|
103
|
-
# The
|
101
|
+
# The identifier of the Transaction on the originating account representing the
|
102
|
+
# transferred funds.
|
104
103
|
sig { returns(T.nilable(String)) }
|
105
104
|
attr_accessor :transaction_id
|
106
105
|
|
@@ -109,7 +108,12 @@ module Increase
|
|
109
108
|
sig { returns(Increase::AccountTransfer::Type::TaggedSymbol) }
|
110
109
|
attr_accessor :type
|
111
110
|
|
112
|
-
# Account transfers move funds between your own accounts at Increase
|
111
|
+
# Account transfers move funds between your own accounts at Increase (accounting
|
112
|
+
# systems often refer to these as Book Transfers). Account Transfers are free and
|
113
|
+
# synchronous. Upon creation they create two Transactions, one negative on the
|
114
|
+
# originating account and one positive on the destination account (unless the
|
115
|
+
# transfer requires approval, in which case the Transactions will be created when
|
116
|
+
# the transfer is approved).
|
113
117
|
sig do
|
114
118
|
params(
|
115
119
|
id: String,
|
@@ -125,7 +129,6 @@ module Increase
|
|
125
129
|
destination_account_id: String,
|
126
130
|
destination_transaction_id: T.nilable(String),
|
127
131
|
idempotency_key: T.nilable(String),
|
128
|
-
network: Increase::AccountTransfer::Network::OrSymbol,
|
129
132
|
pending_transaction_id: T.nilable(String),
|
130
133
|
status: Increase::AccountTransfer::Status::OrSymbol,
|
131
134
|
transaction_id: T.nilable(String),
|
@@ -133,12 +136,12 @@ module Increase
|
|
133
136
|
).returns(T.attached_class)
|
134
137
|
end
|
135
138
|
def self.new(
|
136
|
-
# The
|
139
|
+
# The Account Transfer's identifier.
|
137
140
|
id:,
|
138
|
-
# The Account
|
141
|
+
# The Account from which the transfer originated.
|
139
142
|
account_id:,
|
140
|
-
# The transfer amount in
|
141
|
-
#
|
143
|
+
# The transfer amount in cents. This will always be positive and indicates the
|
144
|
+
# amount of money leaving the originating account.
|
142
145
|
amount:,
|
143
146
|
# If your account requires approvals for transfers and the transfer was approved,
|
144
147
|
# this will contain details of the approval.
|
@@ -151,21 +154,21 @@ module Increase
|
|
151
154
|
created_at:,
|
152
155
|
# What object created the transfer, either via the API or the dashboard.
|
153
156
|
created_by:,
|
154
|
-
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
155
|
-
#
|
157
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
|
158
|
+
# currency.
|
156
159
|
currency:,
|
157
|
-
#
|
160
|
+
# An internal-facing description for the transfer for display in the API and
|
161
|
+
# dashboard. This will also show in the description of the created Transactions.
|
158
162
|
description:,
|
159
|
-
# The destination
|
163
|
+
# The destination Account's identifier.
|
160
164
|
destination_account_id:,
|
161
|
-
# The
|
165
|
+
# The identifier of the Transaction on the destination Account representing the
|
166
|
+
# received funds.
|
162
167
|
destination_transaction_id:,
|
163
168
|
# The idempotency key you chose for this object. This value is unique across
|
164
169
|
# Increase and is used to ensure that a request is only processed once. Learn more
|
165
170
|
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
166
171
|
idempotency_key:,
|
167
|
-
# The transfer's network.
|
168
|
-
network:,
|
169
172
|
# The ID for the pending transaction representing the transfer. A pending
|
170
173
|
# transaction is created when the transfer
|
171
174
|
# [requires approval](https://increase.com/documentation/transfer-approvals#transfer-approvals)
|
@@ -173,7 +176,8 @@ module Increase
|
|
173
176
|
pending_transaction_id:,
|
174
177
|
# The lifecycle status of the transfer.
|
175
178
|
status:,
|
176
|
-
# The
|
179
|
+
# The identifier of the Transaction on the originating account representing the
|
180
|
+
# transferred funds.
|
177
181
|
transaction_id:,
|
178
182
|
# A constant representing the object's type. For this resource it will always be
|
179
183
|
# `account_transfer`.
|
@@ -196,7 +200,6 @@ module Increase
|
|
196
200
|
destination_account_id: String,
|
197
201
|
destination_transaction_id: T.nilable(String),
|
198
202
|
idempotency_key: T.nilable(String),
|
199
|
-
network: Increase::AccountTransfer::Network::TaggedSymbol,
|
200
203
|
pending_transaction_id: T.nilable(String),
|
201
204
|
status: Increase::AccountTransfer::Status::TaggedSymbol,
|
202
205
|
transaction_id: T.nilable(String),
|
@@ -518,8 +521,8 @@ module Increase
|
|
518
521
|
end
|
519
522
|
end
|
520
523
|
|
521
|
-
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the
|
522
|
-
#
|
524
|
+
# The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
|
525
|
+
# currency.
|
523
526
|
module Currency
|
524
527
|
extend Increase::Internal::Type::Enum
|
525
528
|
|
@@ -554,26 +557,6 @@ module Increase
|
|
554
557
|
end
|
555
558
|
end
|
556
559
|
|
557
|
-
# The transfer's network.
|
558
|
-
module Network
|
559
|
-
extend Increase::Internal::Type::Enum
|
560
|
-
|
561
|
-
TaggedSymbol =
|
562
|
-
T.type_alias { T.all(Symbol, Increase::AccountTransfer::Network) }
|
563
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
564
|
-
|
565
|
-
ACCOUNT =
|
566
|
-
T.let(:account, Increase::AccountTransfer::Network::TaggedSymbol)
|
567
|
-
|
568
|
-
sig do
|
569
|
-
override.returns(
|
570
|
-
T::Array[Increase::AccountTransfer::Network::TaggedSymbol]
|
571
|
-
)
|
572
|
-
end
|
573
|
-
def self.values
|
574
|
-
end
|
575
|
-
end
|
576
|
-
|
577
560
|
# The lifecycle status of the transfer.
|
578
561
|
module Status
|
579
562
|
extend Increase::Internal::Type::Enum
|
@@ -582,14 +565,14 @@ module Increase
|
|
582
565
|
T.type_alias { T.all(Symbol, Increase::AccountTransfer::Status) }
|
583
566
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
584
567
|
|
585
|
-
# The transfer is pending approval.
|
568
|
+
# The transfer is pending approval from your team.
|
586
569
|
PENDING_APPROVAL =
|
587
570
|
T.let(
|
588
571
|
:pending_approval,
|
589
572
|
Increase::AccountTransfer::Status::TaggedSymbol
|
590
573
|
)
|
591
574
|
|
592
|
-
# The transfer has been canceled.
|
575
|
+
# The transfer was pending approval from your team and has been canceled.
|
593
576
|
CANCELED =
|
594
577
|
T.let(:canceled, Increase::AccountTransfer::Status::TaggedSymbol)
|
595
578
|
|
@@ -14,7 +14,7 @@ module Increase
|
|
14
14
|
)
|
15
15
|
end
|
16
16
|
|
17
|
-
# The identifier for the
|
17
|
+
# The identifier for the originating Account that will send the transfer.
|
18
18
|
sig { returns(String) }
|
19
19
|
attr_accessor :account_id
|
20
20
|
|
@@ -23,15 +23,18 @@ module Increase
|
|
23
23
|
sig { returns(Integer) }
|
24
24
|
attr_accessor :amount
|
25
25
|
|
26
|
-
#
|
26
|
+
# An internal-facing description for the transfer for display in the API and
|
27
|
+
# dashboard. This will also show in the description of the created Transactions.
|
27
28
|
sig { returns(String) }
|
28
29
|
attr_accessor :description
|
29
30
|
|
30
|
-
# The identifier for the
|
31
|
+
# The identifier for the destination Account that will receive the transfer.
|
31
32
|
sig { returns(String) }
|
32
33
|
attr_accessor :destination_account_id
|
33
34
|
|
34
|
-
# Whether the transfer
|
35
|
+
# Whether the transfer should require explicit approval via the dashboard or API.
|
36
|
+
# For more information, see
|
37
|
+
# [Transfer Approvals](/documentation/transfer-approvals).
|
35
38
|
sig { returns(T.nilable(T::Boolean)) }
|
36
39
|
attr_reader :require_approval
|
37
40
|
|
@@ -49,16 +52,19 @@ module Increase
|
|
49
52
|
).returns(T.attached_class)
|
50
53
|
end
|
51
54
|
def self.new(
|
52
|
-
# The identifier for the
|
55
|
+
# The identifier for the originating Account that will send the transfer.
|
53
56
|
account_id:,
|
54
57
|
# The transfer amount in the minor unit of the account currency. For dollars, for
|
55
58
|
# example, this is cents.
|
56
59
|
amount:,
|
57
|
-
#
|
60
|
+
# An internal-facing description for the transfer for display in the API and
|
61
|
+
# dashboard. This will also show in the description of the created Transactions.
|
58
62
|
description:,
|
59
|
-
# The identifier for the
|
63
|
+
# The identifier for the destination Account that will receive the transfer.
|
60
64
|
destination_account_id:,
|
61
|
-
# Whether the transfer
|
65
|
+
# Whether the transfer should require explicit approval via the dashboard or API.
|
66
|
+
# For more information, see
|
67
|
+
# [Transfer Approvals](/documentation/transfer-approvals).
|
62
68
|
require_approval: nil,
|
63
69
|
request_options: {}
|
64
70
|
)
|
@@ -2,19 +2,20 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
class
|
5
|
+
class CardCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
|
6
6
|
extend Increase::Internal::Type::RequestParameters::Converter
|
7
7
|
include Increase::Internal::Type::RequestParameters
|
8
8
|
|
9
9
|
OrHash =
|
10
10
|
T.type_alias do
|
11
11
|
T.any(
|
12
|
-
Increase::
|
12
|
+
Increase::CardCreateDetailsIframeParams,
|
13
13
|
Increase::Internal::AnyHash
|
14
14
|
)
|
15
15
|
end
|
16
16
|
|
17
|
-
# The identifier of the Physical Card to
|
17
|
+
# The identifier of the Physical Card to create an iframe for. This will inform
|
18
|
+
# the appearance of the card rendered in the iframe.
|
18
19
|
sig { returns(T.nilable(String)) }
|
19
20
|
attr_reader :physical_card_id
|
20
21
|
|
@@ -28,7 +29,8 @@ module Increase
|
|
28
29
|
).returns(T.attached_class)
|
29
30
|
end
|
30
31
|
def self.new(
|
31
|
-
# The identifier of the Physical Card to
|
32
|
+
# The identifier of the Physical Card to create an iframe for. This will inform
|
33
|
+
# the appearance of the card rendered in the iframe.
|
32
34
|
physical_card_id: nil,
|
33
35
|
request_options: {}
|
34
36
|
)
|
@@ -2,10 +2,10 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
class
|
5
|
+
class CardDetails < Increase::Internal::Type::BaseModel
|
6
6
|
OrHash =
|
7
7
|
T.type_alias do
|
8
|
-
T.any(Increase::
|
8
|
+
T.any(Increase::CardDetails, Increase::Internal::AnyHash)
|
9
9
|
end
|
10
10
|
|
11
11
|
# The identifier for the Card for which sensitive details have been returned.
|
@@ -30,7 +30,7 @@ module Increase
|
|
30
30
|
|
31
31
|
# A constant representing the object's type. For this resource it will always be
|
32
32
|
# `card_details`.
|
33
|
-
sig { returns(Increase::
|
33
|
+
sig { returns(Increase::CardDetails::Type::TaggedSymbol) }
|
34
34
|
attr_accessor :type
|
35
35
|
|
36
36
|
# The three-digit verification code for the card. It's also known as the Card
|
@@ -51,7 +51,7 @@ module Increase
|
|
51
51
|
expiration_year: Integer,
|
52
52
|
pin: String,
|
53
53
|
primary_account_number: String,
|
54
|
-
type: Increase::
|
54
|
+
type: Increase::CardDetails::Type::OrSymbol,
|
55
55
|
verification_code: String
|
56
56
|
).returns(T.attached_class)
|
57
57
|
end
|
@@ -84,7 +84,7 @@ module Increase
|
|
84
84
|
expiration_year: Integer,
|
85
85
|
pin: String,
|
86
86
|
primary_account_number: String,
|
87
|
-
type: Increase::
|
87
|
+
type: Increase::CardDetails::Type::TaggedSymbol,
|
88
88
|
verification_code: String
|
89
89
|
}
|
90
90
|
)
|
@@ -98,16 +98,14 @@ module Increase
|
|
98
98
|
extend Increase::Internal::Type::Enum
|
99
99
|
|
100
100
|
TaggedSymbol =
|
101
|
-
T.type_alias { T.all(Symbol, Increase::
|
101
|
+
T.type_alias { T.all(Symbol, Increase::CardDetails::Type) }
|
102
102
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
103
103
|
|
104
104
|
CARD_DETAILS =
|
105
|
-
T.let(:card_details, Increase::
|
105
|
+
T.let(:card_details, Increase::CardDetails::Type::TaggedSymbol)
|
106
106
|
|
107
107
|
sig do
|
108
|
-
override.returns(
|
109
|
-
T::Array[Increase::CardDetailsAPI::Type::TaggedSymbol]
|
110
|
-
)
|
108
|
+
override.returns(T::Array[Increase::CardDetails::Type::TaggedSymbol])
|
111
109
|
end
|
112
110
|
def self.values
|
113
111
|
end
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
class
|
5
|
+
class CardDetailsParams < Increase::Internal::Type::BaseModel
|
6
6
|
extend Increase::Internal::Type::RequestParameters::Converter
|
7
7
|
include Increase::Internal::Type::RequestParameters
|
8
8
|
|
9
9
|
OrHash =
|
10
10
|
T.type_alias do
|
11
|
-
T.any(Increase::
|
11
|
+
T.any(Increase::CardDetailsParams, Increase::Internal::AnyHash)
|
12
12
|
end
|
13
13
|
|
14
14
|
sig do
|
@@ -50,13 +50,6 @@ module Increase
|
|
50
50
|
sig { params(entity_id: String).void }
|
51
51
|
attr_writer :entity_id
|
52
52
|
|
53
|
-
# The 4-digit PIN for the card, for use with ATMs.
|
54
|
-
sig { returns(T.nilable(String)) }
|
55
|
-
attr_reader :pin
|
56
|
-
|
57
|
-
sig { params(pin: String).void }
|
58
|
-
attr_writer :pin
|
59
|
-
|
60
53
|
# The status to update the Card with.
|
61
54
|
sig { returns(T.nilable(Increase::CardUpdateParams::Status::OrSymbol)) }
|
62
55
|
attr_reader :status
|
@@ -70,7 +63,6 @@ module Increase
|
|
70
63
|
description: String,
|
71
64
|
digital_wallet: Increase::CardUpdateParams::DigitalWallet::OrHash,
|
72
65
|
entity_id: String,
|
73
|
-
pin: String,
|
74
66
|
status: Increase::CardUpdateParams::Status::OrSymbol,
|
75
67
|
request_options: Increase::RequestOptions::OrHash
|
76
68
|
).returns(T.attached_class)
|
@@ -87,8 +79,6 @@ module Increase
|
|
87
79
|
# The Entity the card belongs to. You only need to supply this in rare situations
|
88
80
|
# when the card is not for the Account holder.
|
89
81
|
entity_id: nil,
|
90
|
-
# The 4-digit PIN for the card, for use with ATMs.
|
91
|
-
pin: nil,
|
92
82
|
# The status to update the Card with.
|
93
83
|
status: nil,
|
94
84
|
request_options: {}
|
@@ -102,7 +92,6 @@ module Increase
|
|
102
92
|
description: String,
|
103
93
|
digital_wallet: Increase::CardUpdateParams::DigitalWallet,
|
104
94
|
entity_id: String,
|
105
|
-
pin: String,
|
106
95
|
status: Increase::CardUpdateParams::Status::OrSymbol,
|
107
96
|
request_options: Increase::RequestOptions
|
108
97
|
}
|
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
module Increase
|
4
4
|
module Models
|
5
|
-
class
|
5
|
+
class CardUpdatePinParams < Increase::Internal::Type::BaseModel
|
6
6
|
extend Increase::Internal::Type::RequestParameters::Converter
|
7
7
|
include Increase::Internal::Type::RequestParameters
|
8
8
|
|
9
9
|
OrHash =
|
10
10
|
T.type_alias do
|
11
|
-
T.any(Increase::
|
11
|
+
T.any(Increase::CardUpdatePinParams, Increase::Internal::AnyHash)
|
12
12
|
end
|
13
13
|
|
14
14
|
# The 4-digit PIN for the card, for use with ATMs.
|
data/rbi/increase/models.rbi
CHANGED
@@ -104,16 +104,14 @@ module Increase
|
|
104
104
|
|
105
105
|
Card = Increase::Models::Card
|
106
106
|
|
107
|
-
|
108
|
-
|
109
|
-
CardDetailCreateDetailsIframeParams =
|
110
|
-
Increase::Models::CardDetailCreateDetailsIframeParams
|
107
|
+
CardCreateDetailsIframeParams =
|
108
|
+
Increase::Models::CardCreateDetailsIframeParams
|
111
109
|
|
112
|
-
|
110
|
+
CardCreateParams = Increase::Models::CardCreateParams
|
113
111
|
|
114
|
-
|
112
|
+
CardDetails = Increase::Models::CardDetails
|
115
113
|
|
116
|
-
|
114
|
+
CardDetailsParams = Increase::Models::CardDetailsParams
|
117
115
|
|
118
116
|
CardIframeURL = Increase::Models::CardIframeURL
|
119
117
|
|
@@ -161,6 +159,8 @@ module Increase
|
|
161
159
|
|
162
160
|
CardUpdateParams = Increase::Models::CardUpdateParams
|
163
161
|
|
162
|
+
CardUpdatePinParams = Increase::Models::CardUpdatePinParams
|
163
|
+
|
164
164
|
CardValidation = Increase::Models::CardValidation
|
165
165
|
|
166
166
|
CardValidationCreateParams = Increase::Models::CardValidationCreateParams
|
@@ -15,16 +15,19 @@ module Increase
|
|
15
15
|
).returns(Increase::AccountTransfer)
|
16
16
|
end
|
17
17
|
def create(
|
18
|
-
# The identifier for the
|
18
|
+
# The identifier for the originating Account that will send the transfer.
|
19
19
|
account_id:,
|
20
20
|
# The transfer amount in the minor unit of the account currency. For dollars, for
|
21
21
|
# example, this is cents.
|
22
22
|
amount:,
|
23
|
-
#
|
23
|
+
# An internal-facing description for the transfer for display in the API and
|
24
|
+
# dashboard. This will also show in the description of the created Transactions.
|
24
25
|
description:,
|
25
|
-
# The identifier for the
|
26
|
+
# The identifier for the destination Account that will receive the transfer.
|
26
27
|
destination_account_id:,
|
27
|
-
# Whether the transfer
|
28
|
+
# Whether the transfer should require explicit approval via the dashboard or API.
|
29
|
+
# For more information, see
|
30
|
+
# [Transfer Approvals](/documentation/transfer-approvals).
|
28
31
|
require_approval: nil,
|
29
32
|
request_options: {}
|
30
33
|
)
|
@@ -73,7 +76,7 @@ module Increase
|
|
73
76
|
)
|
74
77
|
end
|
75
78
|
|
76
|
-
#
|
79
|
+
# Approves an Account Transfer in status `pending_approval`.
|
77
80
|
sig do
|
78
81
|
params(
|
79
82
|
account_transfer_id: String,
|
@@ -87,7 +90,7 @@ module Increase
|
|
87
90
|
)
|
88
91
|
end
|
89
92
|
|
90
|
-
#
|
93
|
+
# Cancels an Account Transfer in status `pending_approval`.
|
91
94
|
sig do
|
92
95
|
params(
|
93
96
|
account_transfer_id: String,
|
@@ -56,7 +56,6 @@ module Increase
|
|
56
56
|
description: String,
|
57
57
|
digital_wallet: Increase::CardUpdateParams::DigitalWallet::OrHash,
|
58
58
|
entity_id: String,
|
59
|
-
pin: String,
|
60
59
|
status: Increase::CardUpdateParams::Status::OrSymbol,
|
61
60
|
request_options: Increase::RequestOptions::OrHash
|
62
61
|
).returns(Increase::Card)
|
@@ -75,8 +74,6 @@ module Increase
|
|
75
74
|
# The Entity the card belongs to. You only need to supply this in rare situations
|
76
75
|
# when the card is not for the Account holder.
|
77
76
|
entity_id: nil,
|
78
|
-
# The 4-digit PIN for the card, for use with ATMs.
|
79
|
-
pin: nil,
|
80
77
|
# The status to update the Card with.
|
81
78
|
status: nil,
|
82
79
|
request_options: {}
|
@@ -114,6 +111,58 @@ module Increase
|
|
114
111
|
)
|
115
112
|
end
|
116
113
|
|
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 create an iframe for.
|
126
|
+
card_id,
|
127
|
+
# The identifier of the Physical Card to create an iframe for. This will inform
|
128
|
+
# the appearance of the card rendered in the iframe.
|
129
|
+
physical_card_id: nil,
|
130
|
+
request_options: {}
|
131
|
+
)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Sensitive details for a Card include the primary account number, expiry, card
|
135
|
+
# verification code, and PIN.
|
136
|
+
sig do
|
137
|
+
params(
|
138
|
+
card_id: String,
|
139
|
+
request_options: Increase::RequestOptions::OrHash
|
140
|
+
).returns(Increase::CardDetails)
|
141
|
+
end
|
142
|
+
def details(
|
143
|
+
# The identifier of the Card to retrieve details for.
|
144
|
+
card_id,
|
145
|
+
request_options: {}
|
146
|
+
)
|
147
|
+
end
|
148
|
+
|
149
|
+
# Update a Card's PIN
|
150
|
+
sig do
|
151
|
+
params(
|
152
|
+
card_id: String,
|
153
|
+
pin: String,
|
154
|
+
request_options: Increase::RequestOptions::OrHash
|
155
|
+
).returns(Increase::CardDetails)
|
156
|
+
end
|
157
|
+
def update_pin(
|
158
|
+
# The identifier of the Card to update the PIN for.
|
159
|
+
card_id,
|
160
|
+
# The 4-digit PIN for the card, for use with ATMs.
|
161
|
+
pin:,
|
162
|
+
request_options: {}
|
163
|
+
)
|
164
|
+
end
|
165
|
+
|
117
166
|
# @api private
|
118
167
|
sig { params(client: Increase::Client).returns(T.attached_class) }
|
119
168
|
def self.new(client:)
|
data/sig/increase/client.rbs
CHANGED
@@ -23,8 +23,6 @@ module Increase
|
|
23
23
|
|
24
24
|
attr_reader cards: Increase::Resources::Cards
|
25
25
|
|
26
|
-
attr_reader card_details: Increase::Resources::CardDetails
|
27
|
-
|
28
26
|
attr_reader card_payments: Increase::Resources::CardPayments
|
29
27
|
|
30
28
|
attr_reader card_purchase_supplements: Increase::Resources::CardPurchaseSupplements
|
@@ -14,7 +14,6 @@ module Increase
|
|
14
14
|
destination_account_id: String,
|
15
15
|
destination_transaction_id: String?,
|
16
16
|
idempotency_key: String?,
|
17
|
-
network: Increase::Models::AccountTransfer::network,
|
18
17
|
pending_transaction_id: String?,
|
19
18
|
status: Increase::Models::AccountTransfer::status,
|
20
19
|
transaction_id: String?,
|
@@ -46,8 +45,6 @@ module Increase
|
|
46
45
|
|
47
46
|
attr_accessor idempotency_key: String?
|
48
47
|
|
49
|
-
attr_accessor network: Increase::Models::AccountTransfer::network
|
50
|
-
|
51
48
|
attr_accessor pending_transaction_id: String?
|
52
49
|
|
53
50
|
attr_accessor status: Increase::Models::AccountTransfer::status
|
@@ -69,7 +66,6 @@ module Increase
|
|
69
66
|
destination_account_id: String,
|
70
67
|
destination_transaction_id: String?,
|
71
68
|
idempotency_key: String?,
|
72
|
-
network: Increase::Models::AccountTransfer::network,
|
73
69
|
pending_transaction_id: String?,
|
74
70
|
status: Increase::Models::AccountTransfer::status,
|
75
71
|
transaction_id: String?,
|
@@ -89,7 +85,6 @@ module Increase
|
|
89
85
|
destination_account_id: String,
|
90
86
|
destination_transaction_id: String?,
|
91
87
|
idempotency_key: String?,
|
92
|
-
network: Increase::Models::AccountTransfer::network,
|
93
88
|
pending_transaction_id: String?,
|
94
89
|
status: Increase::Models::AccountTransfer::status,
|
95
90
|
transaction_id: String?,
|
@@ -225,25 +220,15 @@ module Increase
|
|
225
220
|
def self?.values: -> ::Array[Increase::Models::AccountTransfer::currency]
|
226
221
|
end
|
227
222
|
|
228
|
-
type network = :account
|
229
|
-
|
230
|
-
module Network
|
231
|
-
extend Increase::Internal::Type::Enum
|
232
|
-
|
233
|
-
ACCOUNT: :account
|
234
|
-
|
235
|
-
def self?.values: -> ::Array[Increase::Models::AccountTransfer::network]
|
236
|
-
end
|
237
|
-
|
238
223
|
type status = :pending_approval | :canceled | :complete
|
239
224
|
|
240
225
|
module Status
|
241
226
|
extend Increase::Internal::Type::Enum
|
242
227
|
|
243
|
-
# The transfer is pending approval.
|
228
|
+
# The transfer is pending approval from your team.
|
244
229
|
PENDING_APPROVAL: :pending_approval
|
245
230
|
|
246
|
-
# The transfer has been canceled.
|
231
|
+
# The transfer was pending approval from your team and has been canceled.
|
247
232
|
CANCELED: :canceled
|
248
233
|
|
249
234
|
# The transfer has been completed.
|
@@ -1,10 +1,10 @@
|
|
1
1
|
module Increase
|
2
2
|
module Models
|
3
|
-
type
|
3
|
+
type card_create_details_iframe_params =
|
4
4
|
{ physical_card_id: String }
|
5
5
|
& Increase::Internal::Type::request_parameters
|
6
6
|
|
7
|
-
class
|
7
|
+
class CardCreateDetailsIframeParams < Increase::Internal::Type::BaseModel
|
8
8
|
extend Increase::Internal::Type::RequestParameters::Converter
|
9
9
|
include Increase::Internal::Type::RequestParameters
|
10
10
|
|