increase 1.302.0 → 1.304.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 +21 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +0 -12
- data/lib/increase/models/entity_update_params.rb +41 -1
- data/lib/increase/models.rb +0 -26
- data/lib/increase/resources/entities.rb +3 -1
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +0 -16
- data/rbi/increase/client.rbi +0 -9
- data/rbi/increase/models/entity_update_params.rbi +71 -0
- data/rbi/increase/models.rbi +0 -33
- data/rbi/increase/resources/entities.rbi +5 -0
- data/sig/increase/client.rbs +0 -6
- data/sig/increase/models/entity_update_params.rbs +32 -0
- data/sig/increase/models.rbs +0 -26
- data/sig/increase/resources/entities.rbs +1 -0
- metadata +2 -50
- data/lib/increase/models/bookkeeping_account.rb +0 -104
- data/lib/increase/models/bookkeeping_account_balance_params.rb +0 -30
- data/lib/increase/models/bookkeeping_account_create_params.rb +0 -60
- data/lib/increase/models/bookkeeping_account_list_params.rb +0 -45
- data/lib/increase/models/bookkeeping_account_update_params.rb +0 -30
- data/lib/increase/models/bookkeeping_balance_lookup.rb +0 -54
- data/lib/increase/models/bookkeeping_entry.rb +0 -79
- data/lib/increase/models/bookkeeping_entry_list_params.rb +0 -42
- data/lib/increase/models/bookkeeping_entry_retrieve_params.rb +0 -22
- data/lib/increase/models/bookkeeping_entry_set.rb +0 -116
- data/lib/increase/models/bookkeeping_entry_set_create_params.rb +0 -67
- data/lib/increase/models/bookkeeping_entry_set_list_params.rb +0 -53
- data/lib/increase/models/bookkeeping_entry_set_retrieve_params.rb +0 -22
- data/lib/increase/resources/bookkeeping_accounts.rb +0 -122
- data/lib/increase/resources/bookkeeping_entries.rb +0 -65
- data/lib/increase/resources/bookkeeping_entry_sets.rb +0 -96
- data/rbi/increase/models/bookkeeping_account.rbi +0 -165
- data/rbi/increase/models/bookkeeping_account_balance_params.rbi +0 -57
- data/rbi/increase/models/bookkeeping_account_create_params.rbi +0 -130
- data/rbi/increase/models/bookkeeping_account_list_params.rbi +0 -79
- data/rbi/increase/models/bookkeeping_account_update_params.rbi +0 -54
- data/rbi/increase/models/bookkeeping_balance_lookup.rbi +0 -85
- data/rbi/increase/models/bookkeeping_entry.rbi +0 -108
- data/rbi/increase/models/bookkeeping_entry_list_params.rbi +0 -73
- data/rbi/increase/models/bookkeeping_entry_retrieve_params.rbi +0 -46
- data/rbi/increase/models/bookkeeping_entry_set.rbi +0 -162
- data/rbi/increase/models/bookkeeping_entry_set_create_params.rbi +0 -110
- data/rbi/increase/models/bookkeeping_entry_set_list_params.rbi +0 -90
- data/rbi/increase/models/bookkeeping_entry_set_retrieve_params.rbi +0 -46
- data/rbi/increase/resources/bookkeeping_accounts.rbi +0 -94
- data/rbi/increase/resources/bookkeeping_entries.rbi +0 -47
- data/rbi/increase/resources/bookkeeping_entry_sets.rbi +0 -75
- data/sig/increase/models/bookkeeping_account.rbs +0 -74
- data/sig/increase/models/bookkeeping_account_balance_params.rbs +0 -30
- data/sig/increase/models/bookkeeping_account_create_params.rbs +0 -63
- data/sig/increase/models/bookkeeping_account_list_params.rbs +0 -38
- data/sig/increase/models/bookkeeping_account_update_params.rbs +0 -28
- data/sig/increase/models/bookkeeping_balance_lookup.rbs +0 -40
- data/sig/increase/models/bookkeeping_entry.rbs +0 -55
- data/sig/increase/models/bookkeeping_entry_list_params.rbs +0 -38
- data/sig/increase/models/bookkeeping_entry_retrieve_params.rbs +0 -24
- data/sig/increase/models/bookkeeping_entry_set.rbs +0 -78
- data/sig/increase/models/bookkeeping_entry_set_create_params.rbs +0 -52
- data/sig/increase/models/bookkeeping_entry_set_list_params.rbs +0 -49
- data/sig/increase/models/bookkeeping_entry_set_retrieve_params.rbs +0 -24
- data/sig/increase/resources/bookkeeping_accounts.rbs +0 -34
- data/sig/increase/resources/bookkeeping_entries.rbs +0 -19
- data/sig/increase/resources/bookkeeping_entry_sets.rbs +0 -27
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
class BookkeepingEntrySet < Increase::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Increase::BookkeepingEntrySet, Increase::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# The entry set identifier.
|
|
12
|
-
sig { returns(String) }
|
|
13
|
-
attr_accessor :id
|
|
14
|
-
|
|
15
|
-
# When the entry set was created.
|
|
16
|
-
sig { returns(Time) }
|
|
17
|
-
attr_accessor :created_at
|
|
18
|
-
|
|
19
|
-
# The timestamp of the entry set.
|
|
20
|
-
sig { returns(Time) }
|
|
21
|
-
attr_accessor :date
|
|
22
|
-
|
|
23
|
-
# The entries.
|
|
24
|
-
sig { returns(T::Array[Increase::BookkeepingEntrySet::Entry]) }
|
|
25
|
-
attr_accessor :entries
|
|
26
|
-
|
|
27
|
-
# The idempotency key you chose for this object. This value is unique across
|
|
28
|
-
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
29
|
-
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
30
|
-
sig { returns(T.nilable(String)) }
|
|
31
|
-
attr_accessor :idempotency_key
|
|
32
|
-
|
|
33
|
-
# The transaction identifier, if any.
|
|
34
|
-
sig { returns(T.nilable(String)) }
|
|
35
|
-
attr_accessor :transaction_id
|
|
36
|
-
|
|
37
|
-
# A constant representing the object's type. For this resource it will always be
|
|
38
|
-
# `bookkeeping_entry_set`.
|
|
39
|
-
sig { returns(Increase::BookkeepingEntrySet::Type::TaggedSymbol) }
|
|
40
|
-
attr_accessor :type
|
|
41
|
-
|
|
42
|
-
# Entry Sets are accounting entries that are transactionally applied. Your
|
|
43
|
-
# compliance setup might require annotating money movements using this API. Learn
|
|
44
|
-
# more in our
|
|
45
|
-
# [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
|
|
46
|
-
sig do
|
|
47
|
-
params(
|
|
48
|
-
id: String,
|
|
49
|
-
created_at: Time,
|
|
50
|
-
date: Time,
|
|
51
|
-
entries: T::Array[Increase::BookkeepingEntrySet::Entry::OrHash],
|
|
52
|
-
idempotency_key: T.nilable(String),
|
|
53
|
-
transaction_id: T.nilable(String),
|
|
54
|
-
type: Increase::BookkeepingEntrySet::Type::OrSymbol
|
|
55
|
-
).returns(T.attached_class)
|
|
56
|
-
end
|
|
57
|
-
def self.new(
|
|
58
|
-
# The entry set identifier.
|
|
59
|
-
id:,
|
|
60
|
-
# When the entry set was created.
|
|
61
|
-
created_at:,
|
|
62
|
-
# The timestamp of the entry set.
|
|
63
|
-
date:,
|
|
64
|
-
# The entries.
|
|
65
|
-
entries:,
|
|
66
|
-
# The idempotency key you chose for this object. This value is unique across
|
|
67
|
-
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
68
|
-
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
69
|
-
idempotency_key:,
|
|
70
|
-
# The transaction identifier, if any.
|
|
71
|
-
transaction_id:,
|
|
72
|
-
# A constant representing the object's type. For this resource it will always be
|
|
73
|
-
# `bookkeeping_entry_set`.
|
|
74
|
-
type:
|
|
75
|
-
)
|
|
76
|
-
end
|
|
77
|
-
|
|
78
|
-
sig do
|
|
79
|
-
override.returns(
|
|
80
|
-
{
|
|
81
|
-
id: String,
|
|
82
|
-
created_at: Time,
|
|
83
|
-
date: Time,
|
|
84
|
-
entries: T::Array[Increase::BookkeepingEntrySet::Entry],
|
|
85
|
-
idempotency_key: T.nilable(String),
|
|
86
|
-
transaction_id: T.nilable(String),
|
|
87
|
-
type: Increase::BookkeepingEntrySet::Type::TaggedSymbol
|
|
88
|
-
}
|
|
89
|
-
)
|
|
90
|
-
end
|
|
91
|
-
def to_hash
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
class Entry < Increase::Internal::Type::BaseModel
|
|
95
|
-
OrHash =
|
|
96
|
-
T.type_alias do
|
|
97
|
-
T.any(
|
|
98
|
-
Increase::BookkeepingEntrySet::Entry,
|
|
99
|
-
Increase::Internal::AnyHash
|
|
100
|
-
)
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
# The entry identifier.
|
|
104
|
-
sig { returns(String) }
|
|
105
|
-
attr_accessor :id
|
|
106
|
-
|
|
107
|
-
# The bookkeeping account impacted by the entry.
|
|
108
|
-
sig { returns(String) }
|
|
109
|
-
attr_accessor :account_id
|
|
110
|
-
|
|
111
|
-
# The amount of the entry in minor units.
|
|
112
|
-
sig { returns(Integer) }
|
|
113
|
-
attr_accessor :amount
|
|
114
|
-
|
|
115
|
-
sig do
|
|
116
|
-
params(id: String, account_id: String, amount: Integer).returns(
|
|
117
|
-
T.attached_class
|
|
118
|
-
)
|
|
119
|
-
end
|
|
120
|
-
def self.new(
|
|
121
|
-
# The entry identifier.
|
|
122
|
-
id:,
|
|
123
|
-
# The bookkeeping account impacted by the entry.
|
|
124
|
-
account_id:,
|
|
125
|
-
# The amount of the entry in minor units.
|
|
126
|
-
amount:
|
|
127
|
-
)
|
|
128
|
-
end
|
|
129
|
-
|
|
130
|
-
sig do
|
|
131
|
-
override.returns({ id: String, account_id: String, amount: Integer })
|
|
132
|
-
end
|
|
133
|
-
def to_hash
|
|
134
|
-
end
|
|
135
|
-
end
|
|
136
|
-
|
|
137
|
-
# A constant representing the object's type. For this resource it will always be
|
|
138
|
-
# `bookkeeping_entry_set`.
|
|
139
|
-
module Type
|
|
140
|
-
extend Increase::Internal::Type::Enum
|
|
141
|
-
|
|
142
|
-
TaggedSymbol =
|
|
143
|
-
T.type_alias { T.all(Symbol, Increase::BookkeepingEntrySet::Type) }
|
|
144
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
145
|
-
|
|
146
|
-
BOOKKEEPING_ENTRY_SET =
|
|
147
|
-
T.let(
|
|
148
|
-
:bookkeeping_entry_set,
|
|
149
|
-
Increase::BookkeepingEntrySet::Type::TaggedSymbol
|
|
150
|
-
)
|
|
151
|
-
|
|
152
|
-
sig do
|
|
153
|
-
override.returns(
|
|
154
|
-
T::Array[Increase::BookkeepingEntrySet::Type::TaggedSymbol]
|
|
155
|
-
)
|
|
156
|
-
end
|
|
157
|
-
def self.values
|
|
158
|
-
end
|
|
159
|
-
end
|
|
160
|
-
end
|
|
161
|
-
end
|
|
162
|
-
end
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
class BookkeepingEntrySetCreateParams < 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::BookkeepingEntrySetCreateParams,
|
|
13
|
-
Increase::Internal::AnyHash
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# The bookkeeping entries.
|
|
18
|
-
sig do
|
|
19
|
-
returns(T::Array[Increase::BookkeepingEntrySetCreateParams::Entry])
|
|
20
|
-
end
|
|
21
|
-
attr_accessor :entries
|
|
22
|
-
|
|
23
|
-
# The date of the transaction. Optional if `transaction_id` is provided, in which
|
|
24
|
-
# case we use the `date` of that transaction. Required otherwise.
|
|
25
|
-
sig { returns(T.nilable(Time)) }
|
|
26
|
-
attr_reader :date
|
|
27
|
-
|
|
28
|
-
sig { params(date: Time).void }
|
|
29
|
-
attr_writer :date
|
|
30
|
-
|
|
31
|
-
# The identifier of the Transaction related to this entry set, if any.
|
|
32
|
-
sig { returns(T.nilable(String)) }
|
|
33
|
-
attr_reader :transaction_id
|
|
34
|
-
|
|
35
|
-
sig { params(transaction_id: String).void }
|
|
36
|
-
attr_writer :transaction_id
|
|
37
|
-
|
|
38
|
-
sig do
|
|
39
|
-
params(
|
|
40
|
-
entries:
|
|
41
|
-
T::Array[Increase::BookkeepingEntrySetCreateParams::Entry::OrHash],
|
|
42
|
-
date: Time,
|
|
43
|
-
transaction_id: String,
|
|
44
|
-
request_options: Increase::RequestOptions::OrHash
|
|
45
|
-
).returns(T.attached_class)
|
|
46
|
-
end
|
|
47
|
-
def self.new(
|
|
48
|
-
# The bookkeeping entries.
|
|
49
|
-
entries:,
|
|
50
|
-
# The date of the transaction. Optional if `transaction_id` is provided, in which
|
|
51
|
-
# case we use the `date` of that transaction. Required otherwise.
|
|
52
|
-
date: nil,
|
|
53
|
-
# The identifier of the Transaction related to this entry set, if any.
|
|
54
|
-
transaction_id: nil,
|
|
55
|
-
request_options: {}
|
|
56
|
-
)
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
sig do
|
|
60
|
-
override.returns(
|
|
61
|
-
{
|
|
62
|
-
entries: T::Array[Increase::BookkeepingEntrySetCreateParams::Entry],
|
|
63
|
-
date: Time,
|
|
64
|
-
transaction_id: String,
|
|
65
|
-
request_options: Increase::RequestOptions
|
|
66
|
-
}
|
|
67
|
-
)
|
|
68
|
-
end
|
|
69
|
-
def to_hash
|
|
70
|
-
end
|
|
71
|
-
|
|
72
|
-
class Entry < Increase::Internal::Type::BaseModel
|
|
73
|
-
OrHash =
|
|
74
|
-
T.type_alias do
|
|
75
|
-
T.any(
|
|
76
|
-
Increase::BookkeepingEntrySetCreateParams::Entry,
|
|
77
|
-
Increase::Internal::AnyHash
|
|
78
|
-
)
|
|
79
|
-
end
|
|
80
|
-
|
|
81
|
-
# The identifier for the Bookkeeping Account impacted by this entry.
|
|
82
|
-
sig { returns(String) }
|
|
83
|
-
attr_accessor :account_id
|
|
84
|
-
|
|
85
|
-
# The entry amount in the minor unit of the account currency. For dollars, for
|
|
86
|
-
# example, this is cents. Debit entries have positive amounts; credit entries have
|
|
87
|
-
# negative amounts.
|
|
88
|
-
sig { returns(Integer) }
|
|
89
|
-
attr_accessor :amount
|
|
90
|
-
|
|
91
|
-
sig do
|
|
92
|
-
params(account_id: String, amount: Integer).returns(T.attached_class)
|
|
93
|
-
end
|
|
94
|
-
def self.new(
|
|
95
|
-
# The identifier for the Bookkeeping Account impacted by this entry.
|
|
96
|
-
account_id:,
|
|
97
|
-
# The entry amount in the minor unit of the account currency. For dollars, for
|
|
98
|
-
# example, this is cents. Debit entries have positive amounts; credit entries have
|
|
99
|
-
# negative amounts.
|
|
100
|
-
amount:
|
|
101
|
-
)
|
|
102
|
-
end
|
|
103
|
-
|
|
104
|
-
sig { override.returns({ account_id: String, amount: Integer }) }
|
|
105
|
-
def to_hash
|
|
106
|
-
end
|
|
107
|
-
end
|
|
108
|
-
end
|
|
109
|
-
end
|
|
110
|
-
end
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
class BookkeepingEntrySetListParams < 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::BookkeepingEntrySetListParams,
|
|
13
|
-
Increase::Internal::AnyHash
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# Return the page of entries after this one.
|
|
18
|
-
sig { returns(T.nilable(String)) }
|
|
19
|
-
attr_reader :cursor
|
|
20
|
-
|
|
21
|
-
sig { params(cursor: String).void }
|
|
22
|
-
attr_writer :cursor
|
|
23
|
-
|
|
24
|
-
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
25
|
-
# that object. This value is unique across Increase and is used to ensure that a
|
|
26
|
-
# request is only processed once. Learn more about
|
|
27
|
-
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
28
|
-
sig { returns(T.nilable(String)) }
|
|
29
|
-
attr_reader :idempotency_key
|
|
30
|
-
|
|
31
|
-
sig { params(idempotency_key: String).void }
|
|
32
|
-
attr_writer :idempotency_key
|
|
33
|
-
|
|
34
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
35
|
-
# objects.
|
|
36
|
-
sig { returns(T.nilable(Integer)) }
|
|
37
|
-
attr_reader :limit
|
|
38
|
-
|
|
39
|
-
sig { params(limit: Integer).void }
|
|
40
|
-
attr_writer :limit
|
|
41
|
-
|
|
42
|
-
# Filter to the Bookkeeping Entry Set that maps to this Transaction.
|
|
43
|
-
sig { returns(T.nilable(String)) }
|
|
44
|
-
attr_reader :transaction_id
|
|
45
|
-
|
|
46
|
-
sig { params(transaction_id: String).void }
|
|
47
|
-
attr_writer :transaction_id
|
|
48
|
-
|
|
49
|
-
sig do
|
|
50
|
-
params(
|
|
51
|
-
cursor: String,
|
|
52
|
-
idempotency_key: String,
|
|
53
|
-
limit: Integer,
|
|
54
|
-
transaction_id: String,
|
|
55
|
-
request_options: Increase::RequestOptions::OrHash
|
|
56
|
-
).returns(T.attached_class)
|
|
57
|
-
end
|
|
58
|
-
def self.new(
|
|
59
|
-
# Return the page of entries after this one.
|
|
60
|
-
cursor: nil,
|
|
61
|
-
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
62
|
-
# that object. This value is unique across Increase and is used to ensure that a
|
|
63
|
-
# request is only processed once. Learn more about
|
|
64
|
-
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
65
|
-
idempotency_key: nil,
|
|
66
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
67
|
-
# objects.
|
|
68
|
-
limit: nil,
|
|
69
|
-
# Filter to the Bookkeeping Entry Set that maps to this Transaction.
|
|
70
|
-
transaction_id: nil,
|
|
71
|
-
request_options: {}
|
|
72
|
-
)
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
sig do
|
|
76
|
-
override.returns(
|
|
77
|
-
{
|
|
78
|
-
cursor: String,
|
|
79
|
-
idempotency_key: String,
|
|
80
|
-
limit: Integer,
|
|
81
|
-
transaction_id: String,
|
|
82
|
-
request_options: Increase::RequestOptions
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
end
|
|
86
|
-
def to_hash
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
|
-
end
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
class BookkeepingEntrySetRetrieveParams < 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::BookkeepingEntrySetRetrieveParams,
|
|
13
|
-
Increase::Internal::AnyHash
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# The identifier of the Bookkeeping Entry Set.
|
|
18
|
-
sig { returns(String) }
|
|
19
|
-
attr_accessor :bookkeeping_entry_set_id
|
|
20
|
-
|
|
21
|
-
sig do
|
|
22
|
-
params(
|
|
23
|
-
bookkeeping_entry_set_id: String,
|
|
24
|
-
request_options: Increase::RequestOptions::OrHash
|
|
25
|
-
).returns(T.attached_class)
|
|
26
|
-
end
|
|
27
|
-
def self.new(
|
|
28
|
-
# The identifier of the Bookkeeping Entry Set.
|
|
29
|
-
bookkeeping_entry_set_id:,
|
|
30
|
-
request_options: {}
|
|
31
|
-
)
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
sig do
|
|
35
|
-
override.returns(
|
|
36
|
-
{
|
|
37
|
-
bookkeeping_entry_set_id: String,
|
|
38
|
-
request_options: Increase::RequestOptions
|
|
39
|
-
}
|
|
40
|
-
)
|
|
41
|
-
end
|
|
42
|
-
def to_hash
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Resources
|
|
5
|
-
class BookkeepingAccounts
|
|
6
|
-
# Create a Bookkeeping Account
|
|
7
|
-
sig do
|
|
8
|
-
params(
|
|
9
|
-
name: String,
|
|
10
|
-
account_id: String,
|
|
11
|
-
compliance_category:
|
|
12
|
-
Increase::BookkeepingAccountCreateParams::ComplianceCategory::OrSymbol,
|
|
13
|
-
entity_id: String,
|
|
14
|
-
request_options: Increase::RequestOptions::OrHash
|
|
15
|
-
).returns(Increase::BookkeepingAccount)
|
|
16
|
-
end
|
|
17
|
-
def create(
|
|
18
|
-
# The name you choose for the account.
|
|
19
|
-
name:,
|
|
20
|
-
# The account, if `compliance_category` is `commingled_cash`.
|
|
21
|
-
account_id: nil,
|
|
22
|
-
# The account compliance category.
|
|
23
|
-
compliance_category: nil,
|
|
24
|
-
# The entity, if `compliance_category` is `customer_balance`.
|
|
25
|
-
entity_id: nil,
|
|
26
|
-
request_options: {}
|
|
27
|
-
)
|
|
28
|
-
end
|
|
29
|
-
|
|
30
|
-
# Update a Bookkeeping Account
|
|
31
|
-
sig do
|
|
32
|
-
params(
|
|
33
|
-
bookkeeping_account_id: String,
|
|
34
|
-
name: String,
|
|
35
|
-
request_options: Increase::RequestOptions::OrHash
|
|
36
|
-
).returns(Increase::BookkeepingAccount)
|
|
37
|
-
end
|
|
38
|
-
def update(
|
|
39
|
-
# The bookkeeping account you would like to update.
|
|
40
|
-
bookkeeping_account_id,
|
|
41
|
-
# The name you choose for the account.
|
|
42
|
-
name:,
|
|
43
|
-
request_options: {}
|
|
44
|
-
)
|
|
45
|
-
end
|
|
46
|
-
|
|
47
|
-
# List Bookkeeping Accounts
|
|
48
|
-
sig do
|
|
49
|
-
params(
|
|
50
|
-
cursor: String,
|
|
51
|
-
idempotency_key: String,
|
|
52
|
-
limit: Integer,
|
|
53
|
-
request_options: Increase::RequestOptions::OrHash
|
|
54
|
-
).returns(Increase::Internal::Page[Increase::BookkeepingAccount])
|
|
55
|
-
end
|
|
56
|
-
def list(
|
|
57
|
-
# Return the page of entries after this one.
|
|
58
|
-
cursor: nil,
|
|
59
|
-
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
60
|
-
# that object. This value is unique across Increase and is used to ensure that a
|
|
61
|
-
# request is only processed once. Learn more about
|
|
62
|
-
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
63
|
-
idempotency_key: nil,
|
|
64
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
65
|
-
# objects.
|
|
66
|
-
limit: nil,
|
|
67
|
-
request_options: {}
|
|
68
|
-
)
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
# Retrieve a Bookkeeping Account Balance
|
|
72
|
-
sig do
|
|
73
|
-
params(
|
|
74
|
-
bookkeeping_account_id: String,
|
|
75
|
-
at_time: Time,
|
|
76
|
-
request_options: Increase::RequestOptions::OrHash
|
|
77
|
-
).returns(Increase::BookkeepingBalanceLookup)
|
|
78
|
-
end
|
|
79
|
-
def balance(
|
|
80
|
-
# The identifier of the Bookkeeping Account to retrieve.
|
|
81
|
-
bookkeeping_account_id,
|
|
82
|
-
# The moment to query the balance at. If not set, returns the current balances.
|
|
83
|
-
at_time: nil,
|
|
84
|
-
request_options: {}
|
|
85
|
-
)
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# @api private
|
|
89
|
-
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
90
|
-
def self.new(client:)
|
|
91
|
-
end
|
|
92
|
-
end
|
|
93
|
-
end
|
|
94
|
-
end
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Resources
|
|
5
|
-
class BookkeepingEntries
|
|
6
|
-
# Retrieve a Bookkeeping Entry
|
|
7
|
-
sig do
|
|
8
|
-
params(
|
|
9
|
-
bookkeeping_entry_id: String,
|
|
10
|
-
request_options: Increase::RequestOptions::OrHash
|
|
11
|
-
).returns(Increase::BookkeepingEntry)
|
|
12
|
-
end
|
|
13
|
-
def retrieve(
|
|
14
|
-
# The identifier of the Bookkeeping Entry.
|
|
15
|
-
bookkeeping_entry_id,
|
|
16
|
-
request_options: {}
|
|
17
|
-
)
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# List Bookkeeping Entries
|
|
21
|
-
sig do
|
|
22
|
-
params(
|
|
23
|
-
account_id: String,
|
|
24
|
-
cursor: String,
|
|
25
|
-
limit: Integer,
|
|
26
|
-
request_options: Increase::RequestOptions::OrHash
|
|
27
|
-
).returns(Increase::Internal::Page[Increase::BookkeepingEntry])
|
|
28
|
-
end
|
|
29
|
-
def list(
|
|
30
|
-
# The identifier for the Bookkeeping Account to filter by.
|
|
31
|
-
account_id: nil,
|
|
32
|
-
# Return the page of entries after this one.
|
|
33
|
-
cursor: nil,
|
|
34
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
35
|
-
# objects.
|
|
36
|
-
limit: nil,
|
|
37
|
-
request_options: {}
|
|
38
|
-
)
|
|
39
|
-
end
|
|
40
|
-
|
|
41
|
-
# @api private
|
|
42
|
-
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
43
|
-
def self.new(client:)
|
|
44
|
-
end
|
|
45
|
-
end
|
|
46
|
-
end
|
|
47
|
-
end
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Resources
|
|
5
|
-
class BookkeepingEntrySets
|
|
6
|
-
# Create a Bookkeeping Entry Set
|
|
7
|
-
sig do
|
|
8
|
-
params(
|
|
9
|
-
entries:
|
|
10
|
-
T::Array[Increase::BookkeepingEntrySetCreateParams::Entry::OrHash],
|
|
11
|
-
date: Time,
|
|
12
|
-
transaction_id: String,
|
|
13
|
-
request_options: Increase::RequestOptions::OrHash
|
|
14
|
-
).returns(Increase::BookkeepingEntrySet)
|
|
15
|
-
end
|
|
16
|
-
def create(
|
|
17
|
-
# The bookkeeping entries.
|
|
18
|
-
entries:,
|
|
19
|
-
# The date of the transaction. Optional if `transaction_id` is provided, in which
|
|
20
|
-
# case we use the `date` of that transaction. Required otherwise.
|
|
21
|
-
date: nil,
|
|
22
|
-
# The identifier of the Transaction related to this entry set, if any.
|
|
23
|
-
transaction_id: nil,
|
|
24
|
-
request_options: {}
|
|
25
|
-
)
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
# Retrieve a Bookkeeping Entry Set
|
|
29
|
-
sig do
|
|
30
|
-
params(
|
|
31
|
-
bookkeeping_entry_set_id: String,
|
|
32
|
-
request_options: Increase::RequestOptions::OrHash
|
|
33
|
-
).returns(Increase::BookkeepingEntrySet)
|
|
34
|
-
end
|
|
35
|
-
def retrieve(
|
|
36
|
-
# The identifier of the Bookkeeping Entry Set.
|
|
37
|
-
bookkeeping_entry_set_id,
|
|
38
|
-
request_options: {}
|
|
39
|
-
)
|
|
40
|
-
end
|
|
41
|
-
|
|
42
|
-
# List Bookkeeping Entry Sets
|
|
43
|
-
sig do
|
|
44
|
-
params(
|
|
45
|
-
cursor: String,
|
|
46
|
-
idempotency_key: String,
|
|
47
|
-
limit: Integer,
|
|
48
|
-
transaction_id: String,
|
|
49
|
-
request_options: Increase::RequestOptions::OrHash
|
|
50
|
-
).returns(Increase::Internal::Page[Increase::BookkeepingEntrySet])
|
|
51
|
-
end
|
|
52
|
-
def list(
|
|
53
|
-
# Return the page of entries after this one.
|
|
54
|
-
cursor: nil,
|
|
55
|
-
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
56
|
-
# that object. This value is unique across Increase and is used to ensure that a
|
|
57
|
-
# request is only processed once. Learn more about
|
|
58
|
-
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
59
|
-
idempotency_key: nil,
|
|
60
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
61
|
-
# objects.
|
|
62
|
-
limit: nil,
|
|
63
|
-
# Filter to the Bookkeeping Entry Set that maps to this Transaction.
|
|
64
|
-
transaction_id: nil,
|
|
65
|
-
request_options: {}
|
|
66
|
-
)
|
|
67
|
-
end
|
|
68
|
-
|
|
69
|
-
# @api private
|
|
70
|
-
sig { params(client: Increase::Client).returns(T.attached_class) }
|
|
71
|
-
def self.new(client:)
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|
|
75
|
-
end
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
module Increase
|
|
2
|
-
module Models
|
|
3
|
-
type bookkeeping_account =
|
|
4
|
-
{
|
|
5
|
-
id: String,
|
|
6
|
-
account_id: String?,
|
|
7
|
-
compliance_category: Increase::Models::BookkeepingAccount::compliance_category?,
|
|
8
|
-
entity_id: String?,
|
|
9
|
-
idempotency_key: String?,
|
|
10
|
-
name: String,
|
|
11
|
-
type: Increase::Models::BookkeepingAccount::type_
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class BookkeepingAccount < Increase::Internal::Type::BaseModel
|
|
15
|
-
attr_accessor id: String
|
|
16
|
-
|
|
17
|
-
attr_accessor account_id: String?
|
|
18
|
-
|
|
19
|
-
attr_accessor compliance_category: Increase::Models::BookkeepingAccount::compliance_category?
|
|
20
|
-
|
|
21
|
-
attr_accessor entity_id: String?
|
|
22
|
-
|
|
23
|
-
attr_accessor idempotency_key: String?
|
|
24
|
-
|
|
25
|
-
attr_accessor name: String
|
|
26
|
-
|
|
27
|
-
attr_accessor type: Increase::Models::BookkeepingAccount::type_
|
|
28
|
-
|
|
29
|
-
def initialize: (
|
|
30
|
-
id: String,
|
|
31
|
-
account_id: String?,
|
|
32
|
-
compliance_category: Increase::Models::BookkeepingAccount::compliance_category?,
|
|
33
|
-
entity_id: String?,
|
|
34
|
-
idempotency_key: String?,
|
|
35
|
-
name: String,
|
|
36
|
-
type: Increase::Models::BookkeepingAccount::type_
|
|
37
|
-
) -> void
|
|
38
|
-
|
|
39
|
-
def to_hash: -> {
|
|
40
|
-
id: String,
|
|
41
|
-
account_id: String?,
|
|
42
|
-
compliance_category: Increase::Models::BookkeepingAccount::compliance_category?,
|
|
43
|
-
entity_id: String?,
|
|
44
|
-
idempotency_key: String?,
|
|
45
|
-
name: String,
|
|
46
|
-
type: Increase::Models::BookkeepingAccount::type_
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
type compliance_category = :commingled_cash | :customer_balance
|
|
50
|
-
|
|
51
|
-
module ComplianceCategory
|
|
52
|
-
extend Increase::Internal::Type::Enum
|
|
53
|
-
|
|
54
|
-
# A cash in an commingled Increase Account.
|
|
55
|
-
COMMINGLED_CASH: :commingled_cash
|
|
56
|
-
|
|
57
|
-
# A customer balance.
|
|
58
|
-
CUSTOMER_BALANCE: :customer_balance
|
|
59
|
-
|
|
60
|
-
def self?.values: -> ::Array[Increase::Models::BookkeepingAccount::compliance_category]
|
|
61
|
-
end
|
|
62
|
-
|
|
63
|
-
type type_ = :bookkeeping_account
|
|
64
|
-
|
|
65
|
-
module Type
|
|
66
|
-
extend Increase::Internal::Type::Enum
|
|
67
|
-
|
|
68
|
-
BOOKKEEPING_ACCOUNT: :bookkeeping_account
|
|
69
|
-
|
|
70
|
-
def self?.values: -> ::Array[Increase::Models::BookkeepingAccount::type_]
|
|
71
|
-
end
|
|
72
|
-
end
|
|
73
|
-
end
|
|
74
|
-
end
|