increase 1.86.0 → 1.88.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.
@@ -8,16 +8,16 @@ module Increase
8
8
  T.any(Increase::AccountTransfer, Increase::Internal::AnyHash)
9
9
  end
10
10
 
11
- # The account transfer's identifier.
11
+ # The Account Transfer's identifier.
12
12
  sig { returns(String) }
13
13
  attr_accessor :id
14
14
 
15
- # The Account to which the transfer belongs.
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 the minor unit of the destination account currency. For
20
- # dollars, for example, this is cents.
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 destination
66
- # account currency.
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
- # The description that will show on the transactions.
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 account's identifier.
75
+ # The destination Account's identifier.
75
76
  sig { returns(String) }
76
77
  attr_accessor :destination_account_id
77
78
 
78
- # The ID for the transaction receiving the transfer.
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 ID for the transaction funding the transfer.
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 account transfer's identifier.
139
+ # The Account Transfer's identifier.
137
140
  id:,
138
- # The Account to which the transfer belongs.
141
+ # The Account from which the transfer originated.
139
142
  account_id:,
140
- # The transfer amount in the minor unit of the destination account currency. For
141
- # dollars, for example, this is cents.
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 destination
155
- # account currency.
157
+ # The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's
158
+ # currency.
156
159
  currency:,
157
- # The description that will show on the transactions.
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 account's identifier.
163
+ # The destination Account's identifier.
160
164
  destination_account_id:,
161
- # The ID for the transaction receiving the transfer.
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 ID for the transaction funding the transfer.
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 destination
522
- # account currency.
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 account that will send the transfer.
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
- # The description you choose to give the transfer.
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 account that will receive the transfer.
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 requires explicit approval via the dashboard or API.
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 account that will send the transfer.
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
- # The description you choose to give the transfer.
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 account that will receive the transfer.
63
+ # The identifier for the destination Account that will receive the transfer.
60
64
  destination_account_id:,
61
- # Whether the transfer requires explicit approval via the dashboard or API.
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
  )