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,53 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingEntrySets#list
|
|
6
|
-
class BookkeepingEntrySetListParams < Increase::Internal::Type::BaseModel
|
|
7
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Increase::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute cursor
|
|
11
|
-
# Return the page of entries after this one.
|
|
12
|
-
#
|
|
13
|
-
# @return [String, nil]
|
|
14
|
-
optional :cursor, String
|
|
15
|
-
|
|
16
|
-
# @!attribute idempotency_key
|
|
17
|
-
# Filter records to the one with the specified `idempotency_key` you chose for
|
|
18
|
-
# that object. This value is unique across Increase and is used to ensure that a
|
|
19
|
-
# request is only processed once. Learn more about
|
|
20
|
-
# [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
21
|
-
#
|
|
22
|
-
# @return [String, nil]
|
|
23
|
-
optional :idempotency_key, String
|
|
24
|
-
|
|
25
|
-
# @!attribute limit
|
|
26
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
27
|
-
# objects.
|
|
28
|
-
#
|
|
29
|
-
# @return [Integer, nil]
|
|
30
|
-
optional :limit, Integer
|
|
31
|
-
|
|
32
|
-
# @!attribute transaction_id
|
|
33
|
-
# Filter to the Bookkeeping Entry Set that maps to this Transaction.
|
|
34
|
-
#
|
|
35
|
-
# @return [String, nil]
|
|
36
|
-
optional :transaction_id, String
|
|
37
|
-
|
|
38
|
-
# @!method initialize(cursor: nil, idempotency_key: nil, limit: nil, transaction_id: nil, request_options: {})
|
|
39
|
-
# Some parameter documentations has been truncated, see
|
|
40
|
-
# {Increase::Models::BookkeepingEntrySetListParams} for more details.
|
|
41
|
-
#
|
|
42
|
-
# @param cursor [String] Return the page of entries after this one.
|
|
43
|
-
#
|
|
44
|
-
# @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
|
|
45
|
-
#
|
|
46
|
-
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
47
|
-
#
|
|
48
|
-
# @param transaction_id [String] Filter to the Bookkeeping Entry Set that maps to this Transaction.
|
|
49
|
-
#
|
|
50
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingEntrySets#retrieve
|
|
6
|
-
class BookkeepingEntrySetRetrieveParams < Increase::Internal::Type::BaseModel
|
|
7
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Increase::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute bookkeeping_entry_set_id
|
|
11
|
-
# The identifier of the Bookkeeping Entry Set.
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :bookkeeping_entry_set_id, String
|
|
15
|
-
|
|
16
|
-
# @!method initialize(bookkeeping_entry_set_id:, request_options: {})
|
|
17
|
-
# @param bookkeeping_entry_set_id [String] The identifier of the Bookkeeping Entry Set.
|
|
18
|
-
#
|
|
19
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Resources
|
|
5
|
-
class BookkeepingAccounts
|
|
6
|
-
# Create a Bookkeeping Account
|
|
7
|
-
#
|
|
8
|
-
# @overload create(name:, account_id: nil, compliance_category: nil, entity_id: nil, request_options: {})
|
|
9
|
-
#
|
|
10
|
-
# @param name [String] The name you choose for the account.
|
|
11
|
-
#
|
|
12
|
-
# @param account_id [String] The account, if `compliance_category` is `commingled_cash`.
|
|
13
|
-
#
|
|
14
|
-
# @param compliance_category [Symbol, Increase::Models::BookkeepingAccountCreateParams::ComplianceCategory] The account compliance category.
|
|
15
|
-
#
|
|
16
|
-
# @param entity_id [String] The entity, if `compliance_category` is `customer_balance`.
|
|
17
|
-
#
|
|
18
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
19
|
-
#
|
|
20
|
-
# @return [Increase::Models::BookkeepingAccount]
|
|
21
|
-
#
|
|
22
|
-
# @see Increase::Models::BookkeepingAccountCreateParams
|
|
23
|
-
def create(params)
|
|
24
|
-
parsed, options = Increase::BookkeepingAccountCreateParams.dump_request(params)
|
|
25
|
-
@client.request(
|
|
26
|
-
method: :post,
|
|
27
|
-
path: "bookkeeping_accounts",
|
|
28
|
-
body: parsed,
|
|
29
|
-
model: Increase::BookkeepingAccount,
|
|
30
|
-
options: options
|
|
31
|
-
)
|
|
32
|
-
end
|
|
33
|
-
|
|
34
|
-
# Update a Bookkeeping Account
|
|
35
|
-
#
|
|
36
|
-
# @overload update(bookkeeping_account_id, name:, request_options: {})
|
|
37
|
-
#
|
|
38
|
-
# @param bookkeeping_account_id [String] The bookkeeping account you would like to update.
|
|
39
|
-
#
|
|
40
|
-
# @param name [String] The name you choose for the account.
|
|
41
|
-
#
|
|
42
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
43
|
-
#
|
|
44
|
-
# @return [Increase::Models::BookkeepingAccount]
|
|
45
|
-
#
|
|
46
|
-
# @see Increase::Models::BookkeepingAccountUpdateParams
|
|
47
|
-
def update(bookkeeping_account_id, params)
|
|
48
|
-
parsed, options = Increase::BookkeepingAccountUpdateParams.dump_request(params)
|
|
49
|
-
@client.request(
|
|
50
|
-
method: :patch,
|
|
51
|
-
path: ["bookkeeping_accounts/%1$s", bookkeeping_account_id],
|
|
52
|
-
body: parsed,
|
|
53
|
-
model: Increase::BookkeepingAccount,
|
|
54
|
-
options: options
|
|
55
|
-
)
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
# Some parameter documentations has been truncated, see
|
|
59
|
-
# {Increase::Models::BookkeepingAccountListParams} for more details.
|
|
60
|
-
#
|
|
61
|
-
# List Bookkeeping Accounts
|
|
62
|
-
#
|
|
63
|
-
# @overload list(cursor: nil, idempotency_key: nil, limit: nil, request_options: {})
|
|
64
|
-
#
|
|
65
|
-
# @param cursor [String] Return the page of entries after this one.
|
|
66
|
-
#
|
|
67
|
-
# @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
|
|
68
|
-
#
|
|
69
|
-
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
70
|
-
#
|
|
71
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
72
|
-
#
|
|
73
|
-
# @return [Increase::Internal::Page<Increase::Models::BookkeepingAccount>]
|
|
74
|
-
#
|
|
75
|
-
# @see Increase::Models::BookkeepingAccountListParams
|
|
76
|
-
def list(params = {})
|
|
77
|
-
parsed, options = Increase::BookkeepingAccountListParams.dump_request(params)
|
|
78
|
-
query = Increase::Internal::Util.encode_query_params(parsed)
|
|
79
|
-
@client.request(
|
|
80
|
-
method: :get,
|
|
81
|
-
path: "bookkeeping_accounts",
|
|
82
|
-
query: query,
|
|
83
|
-
page: Increase::Internal::Page,
|
|
84
|
-
model: Increase::BookkeepingAccount,
|
|
85
|
-
options: options
|
|
86
|
-
)
|
|
87
|
-
end
|
|
88
|
-
|
|
89
|
-
# Retrieve a Bookkeeping Account Balance
|
|
90
|
-
#
|
|
91
|
-
# @overload balance(bookkeeping_account_id, at_time: nil, request_options: {})
|
|
92
|
-
#
|
|
93
|
-
# @param bookkeeping_account_id [String] The identifier of the Bookkeeping Account to retrieve.
|
|
94
|
-
#
|
|
95
|
-
# @param at_time [Time] The moment to query the balance at. If not set, returns the current balances.
|
|
96
|
-
#
|
|
97
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
98
|
-
#
|
|
99
|
-
# @return [Increase::Models::BookkeepingBalanceLookup]
|
|
100
|
-
#
|
|
101
|
-
# @see Increase::Models::BookkeepingAccountBalanceParams
|
|
102
|
-
def balance(bookkeeping_account_id, params = {})
|
|
103
|
-
parsed, options = Increase::BookkeepingAccountBalanceParams.dump_request(params)
|
|
104
|
-
query = Increase::Internal::Util.encode_query_params(parsed)
|
|
105
|
-
@client.request(
|
|
106
|
-
method: :get,
|
|
107
|
-
path: ["bookkeeping_accounts/%1$s/balance", bookkeeping_account_id],
|
|
108
|
-
query: query,
|
|
109
|
-
model: Increase::BookkeepingBalanceLookup,
|
|
110
|
-
options: options
|
|
111
|
-
)
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
# @api private
|
|
115
|
-
#
|
|
116
|
-
# @param client [Increase::Client]
|
|
117
|
-
def initialize(client:)
|
|
118
|
-
@client = client
|
|
119
|
-
end
|
|
120
|
-
end
|
|
121
|
-
end
|
|
122
|
-
end
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Resources
|
|
5
|
-
class BookkeepingEntries
|
|
6
|
-
# Retrieve a Bookkeeping Entry
|
|
7
|
-
#
|
|
8
|
-
# @overload retrieve(bookkeeping_entry_id, request_options: {})
|
|
9
|
-
#
|
|
10
|
-
# @param bookkeeping_entry_id [String] The identifier of the Bookkeeping Entry.
|
|
11
|
-
#
|
|
12
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
13
|
-
#
|
|
14
|
-
# @return [Increase::Models::BookkeepingEntry]
|
|
15
|
-
#
|
|
16
|
-
# @see Increase::Models::BookkeepingEntryRetrieveParams
|
|
17
|
-
def retrieve(bookkeeping_entry_id, params = {})
|
|
18
|
-
@client.request(
|
|
19
|
-
method: :get,
|
|
20
|
-
path: ["bookkeeping_entries/%1$s", bookkeeping_entry_id],
|
|
21
|
-
model: Increase::BookkeepingEntry,
|
|
22
|
-
options: params[:request_options]
|
|
23
|
-
)
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
# Some parameter documentations has been truncated, see
|
|
27
|
-
# {Increase::Models::BookkeepingEntryListParams} for more details.
|
|
28
|
-
#
|
|
29
|
-
# List Bookkeeping Entries
|
|
30
|
-
#
|
|
31
|
-
# @overload list(account_id: nil, cursor: nil, limit: nil, request_options: {})
|
|
32
|
-
#
|
|
33
|
-
# @param account_id [String] The identifier for the Bookkeeping Account to filter by.
|
|
34
|
-
#
|
|
35
|
-
# @param cursor [String] Return the page of entries after this one.
|
|
36
|
-
#
|
|
37
|
-
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
38
|
-
#
|
|
39
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
40
|
-
#
|
|
41
|
-
# @return [Increase::Internal::Page<Increase::Models::BookkeepingEntry>]
|
|
42
|
-
#
|
|
43
|
-
# @see Increase::Models::BookkeepingEntryListParams
|
|
44
|
-
def list(params = {})
|
|
45
|
-
parsed, options = Increase::BookkeepingEntryListParams.dump_request(params)
|
|
46
|
-
query = Increase::Internal::Util.encode_query_params(parsed)
|
|
47
|
-
@client.request(
|
|
48
|
-
method: :get,
|
|
49
|
-
path: "bookkeeping_entries",
|
|
50
|
-
query: query,
|
|
51
|
-
page: Increase::Internal::Page,
|
|
52
|
-
model: Increase::BookkeepingEntry,
|
|
53
|
-
options: options
|
|
54
|
-
)
|
|
55
|
-
end
|
|
56
|
-
|
|
57
|
-
# @api private
|
|
58
|
-
#
|
|
59
|
-
# @param client [Increase::Client]
|
|
60
|
-
def initialize(client:)
|
|
61
|
-
@client = client
|
|
62
|
-
end
|
|
63
|
-
end
|
|
64
|
-
end
|
|
65
|
-
end
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Resources
|
|
5
|
-
class BookkeepingEntrySets
|
|
6
|
-
# Some parameter documentations has been truncated, see
|
|
7
|
-
# {Increase::Models::BookkeepingEntrySetCreateParams} for more details.
|
|
8
|
-
#
|
|
9
|
-
# Create a Bookkeeping Entry Set
|
|
10
|
-
#
|
|
11
|
-
# @overload create(entries:, date: nil, transaction_id: nil, request_options: {})
|
|
12
|
-
#
|
|
13
|
-
# @param entries [Array<Increase::Models::BookkeepingEntrySetCreateParams::Entry>] The bookkeeping entries.
|
|
14
|
-
#
|
|
15
|
-
# @param date [Time] The date of the transaction. Optional if `transaction_id` is provided, in which
|
|
16
|
-
#
|
|
17
|
-
# @param transaction_id [String] The identifier of the Transaction related to this entry set, if any.
|
|
18
|
-
#
|
|
19
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
20
|
-
#
|
|
21
|
-
# @return [Increase::Models::BookkeepingEntrySet]
|
|
22
|
-
#
|
|
23
|
-
# @see Increase::Models::BookkeepingEntrySetCreateParams
|
|
24
|
-
def create(params)
|
|
25
|
-
parsed, options = Increase::BookkeepingEntrySetCreateParams.dump_request(params)
|
|
26
|
-
@client.request(
|
|
27
|
-
method: :post,
|
|
28
|
-
path: "bookkeeping_entry_sets",
|
|
29
|
-
body: parsed,
|
|
30
|
-
model: Increase::BookkeepingEntrySet,
|
|
31
|
-
options: options
|
|
32
|
-
)
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
# Retrieve a Bookkeeping Entry Set
|
|
36
|
-
#
|
|
37
|
-
# @overload retrieve(bookkeeping_entry_set_id, request_options: {})
|
|
38
|
-
#
|
|
39
|
-
# @param bookkeeping_entry_set_id [String] The identifier of the Bookkeeping Entry Set.
|
|
40
|
-
#
|
|
41
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
|
-
#
|
|
43
|
-
# @return [Increase::Models::BookkeepingEntrySet]
|
|
44
|
-
#
|
|
45
|
-
# @see Increase::Models::BookkeepingEntrySetRetrieveParams
|
|
46
|
-
def retrieve(bookkeeping_entry_set_id, params = {})
|
|
47
|
-
@client.request(
|
|
48
|
-
method: :get,
|
|
49
|
-
path: ["bookkeeping_entry_sets/%1$s", bookkeeping_entry_set_id],
|
|
50
|
-
model: Increase::BookkeepingEntrySet,
|
|
51
|
-
options: params[:request_options]
|
|
52
|
-
)
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# Some parameter documentations has been truncated, see
|
|
56
|
-
# {Increase::Models::BookkeepingEntrySetListParams} for more details.
|
|
57
|
-
#
|
|
58
|
-
# List Bookkeeping Entry Sets
|
|
59
|
-
#
|
|
60
|
-
# @overload list(cursor: nil, idempotency_key: nil, limit: nil, transaction_id: nil, request_options: {})
|
|
61
|
-
#
|
|
62
|
-
# @param cursor [String] Return the page of entries after this one.
|
|
63
|
-
#
|
|
64
|
-
# @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
|
|
65
|
-
#
|
|
66
|
-
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
67
|
-
#
|
|
68
|
-
# @param transaction_id [String] Filter to the Bookkeeping Entry Set that maps to this Transaction.
|
|
69
|
-
#
|
|
70
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
71
|
-
#
|
|
72
|
-
# @return [Increase::Internal::Page<Increase::Models::BookkeepingEntrySet>]
|
|
73
|
-
#
|
|
74
|
-
# @see Increase::Models::BookkeepingEntrySetListParams
|
|
75
|
-
def list(params = {})
|
|
76
|
-
parsed, options = Increase::BookkeepingEntrySetListParams.dump_request(params)
|
|
77
|
-
query = Increase::Internal::Util.encode_query_params(parsed)
|
|
78
|
-
@client.request(
|
|
79
|
-
method: :get,
|
|
80
|
-
path: "bookkeeping_entry_sets",
|
|
81
|
-
query: query,
|
|
82
|
-
page: Increase::Internal::Page,
|
|
83
|
-
model: Increase::BookkeepingEntrySet,
|
|
84
|
-
options: options
|
|
85
|
-
)
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
# @api private
|
|
89
|
-
#
|
|
90
|
-
# @param client [Increase::Client]
|
|
91
|
-
def initialize(client:)
|
|
92
|
-
@client = client
|
|
93
|
-
end
|
|
94
|
-
end
|
|
95
|
-
end
|
|
96
|
-
end
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
class BookkeepingAccount < Increase::Internal::Type::BaseModel
|
|
6
|
-
OrHash =
|
|
7
|
-
T.type_alias do
|
|
8
|
-
T.any(Increase::BookkeepingAccount, Increase::Internal::AnyHash)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
# The account identifier.
|
|
12
|
-
sig { returns(String) }
|
|
13
|
-
attr_accessor :id
|
|
14
|
-
|
|
15
|
-
# The API Account associated with this bookkeeping account.
|
|
16
|
-
sig { returns(T.nilable(String)) }
|
|
17
|
-
attr_accessor :account_id
|
|
18
|
-
|
|
19
|
-
# The compliance category of the account.
|
|
20
|
-
sig do
|
|
21
|
-
returns(
|
|
22
|
-
T.nilable(
|
|
23
|
-
Increase::BookkeepingAccount::ComplianceCategory::TaggedSymbol
|
|
24
|
-
)
|
|
25
|
-
)
|
|
26
|
-
end
|
|
27
|
-
attr_accessor :compliance_category
|
|
28
|
-
|
|
29
|
-
# The Entity associated with this bookkeeping account.
|
|
30
|
-
sig { returns(T.nilable(String)) }
|
|
31
|
-
attr_accessor :entity_id
|
|
32
|
-
|
|
33
|
-
# The idempotency key you chose for this object. This value is unique across
|
|
34
|
-
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
35
|
-
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
36
|
-
sig { returns(T.nilable(String)) }
|
|
37
|
-
attr_accessor :idempotency_key
|
|
38
|
-
|
|
39
|
-
# The name you choose for the account.
|
|
40
|
-
sig { returns(String) }
|
|
41
|
-
attr_accessor :name
|
|
42
|
-
|
|
43
|
-
# A constant representing the object's type. For this resource it will always be
|
|
44
|
-
# `bookkeeping_account`.
|
|
45
|
-
sig { returns(Increase::BookkeepingAccount::Type::TaggedSymbol) }
|
|
46
|
-
attr_accessor :type
|
|
47
|
-
|
|
48
|
-
# Accounts are T-accounts. They can store accounting entries. Your compliance
|
|
49
|
-
# setup might require annotating money movements using this API. Learn more in our
|
|
50
|
-
# [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
|
|
51
|
-
sig do
|
|
52
|
-
params(
|
|
53
|
-
id: String,
|
|
54
|
-
account_id: T.nilable(String),
|
|
55
|
-
compliance_category:
|
|
56
|
-
T.nilable(
|
|
57
|
-
Increase::BookkeepingAccount::ComplianceCategory::OrSymbol
|
|
58
|
-
),
|
|
59
|
-
entity_id: T.nilable(String),
|
|
60
|
-
idempotency_key: T.nilable(String),
|
|
61
|
-
name: String,
|
|
62
|
-
type: Increase::BookkeepingAccount::Type::OrSymbol
|
|
63
|
-
).returns(T.attached_class)
|
|
64
|
-
end
|
|
65
|
-
def self.new(
|
|
66
|
-
# The account identifier.
|
|
67
|
-
id:,
|
|
68
|
-
# The API Account associated with this bookkeeping account.
|
|
69
|
-
account_id:,
|
|
70
|
-
# The compliance category of the account.
|
|
71
|
-
compliance_category:,
|
|
72
|
-
# The Entity associated with this bookkeeping account.
|
|
73
|
-
entity_id:,
|
|
74
|
-
# The idempotency key you chose for this object. This value is unique across
|
|
75
|
-
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
76
|
-
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
77
|
-
idempotency_key:,
|
|
78
|
-
# The name you choose for the account.
|
|
79
|
-
name:,
|
|
80
|
-
# A constant representing the object's type. For this resource it will always be
|
|
81
|
-
# `bookkeeping_account`.
|
|
82
|
-
type:
|
|
83
|
-
)
|
|
84
|
-
end
|
|
85
|
-
|
|
86
|
-
sig do
|
|
87
|
-
override.returns(
|
|
88
|
-
{
|
|
89
|
-
id: String,
|
|
90
|
-
account_id: T.nilable(String),
|
|
91
|
-
compliance_category:
|
|
92
|
-
T.nilable(
|
|
93
|
-
Increase::BookkeepingAccount::ComplianceCategory::TaggedSymbol
|
|
94
|
-
),
|
|
95
|
-
entity_id: T.nilable(String),
|
|
96
|
-
idempotency_key: T.nilable(String),
|
|
97
|
-
name: String,
|
|
98
|
-
type: Increase::BookkeepingAccount::Type::TaggedSymbol
|
|
99
|
-
}
|
|
100
|
-
)
|
|
101
|
-
end
|
|
102
|
-
def to_hash
|
|
103
|
-
end
|
|
104
|
-
|
|
105
|
-
# The compliance category of the account.
|
|
106
|
-
module ComplianceCategory
|
|
107
|
-
extend Increase::Internal::Type::Enum
|
|
108
|
-
|
|
109
|
-
TaggedSymbol =
|
|
110
|
-
T.type_alias do
|
|
111
|
-
T.all(Symbol, Increase::BookkeepingAccount::ComplianceCategory)
|
|
112
|
-
end
|
|
113
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
114
|
-
|
|
115
|
-
# A cash in an commingled Increase Account.
|
|
116
|
-
COMMINGLED_CASH =
|
|
117
|
-
T.let(
|
|
118
|
-
:commingled_cash,
|
|
119
|
-
Increase::BookkeepingAccount::ComplianceCategory::TaggedSymbol
|
|
120
|
-
)
|
|
121
|
-
|
|
122
|
-
# A customer balance.
|
|
123
|
-
CUSTOMER_BALANCE =
|
|
124
|
-
T.let(
|
|
125
|
-
:customer_balance,
|
|
126
|
-
Increase::BookkeepingAccount::ComplianceCategory::TaggedSymbol
|
|
127
|
-
)
|
|
128
|
-
|
|
129
|
-
sig do
|
|
130
|
-
override.returns(
|
|
131
|
-
T::Array[
|
|
132
|
-
Increase::BookkeepingAccount::ComplianceCategory::TaggedSymbol
|
|
133
|
-
]
|
|
134
|
-
)
|
|
135
|
-
end
|
|
136
|
-
def self.values
|
|
137
|
-
end
|
|
138
|
-
end
|
|
139
|
-
|
|
140
|
-
# A constant representing the object's type. For this resource it will always be
|
|
141
|
-
# `bookkeeping_account`.
|
|
142
|
-
module Type
|
|
143
|
-
extend Increase::Internal::Type::Enum
|
|
144
|
-
|
|
145
|
-
TaggedSymbol =
|
|
146
|
-
T.type_alias { T.all(Symbol, Increase::BookkeepingAccount::Type) }
|
|
147
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
148
|
-
|
|
149
|
-
BOOKKEEPING_ACCOUNT =
|
|
150
|
-
T.let(
|
|
151
|
-
:bookkeeping_account,
|
|
152
|
-
Increase::BookkeepingAccount::Type::TaggedSymbol
|
|
153
|
-
)
|
|
154
|
-
|
|
155
|
-
sig do
|
|
156
|
-
override.returns(
|
|
157
|
-
T::Array[Increase::BookkeepingAccount::Type::TaggedSymbol]
|
|
158
|
-
)
|
|
159
|
-
end
|
|
160
|
-
def self.values
|
|
161
|
-
end
|
|
162
|
-
end
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
|
-
end
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
# typed: strong
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
class BookkeepingAccountBalanceParams < 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::BookkeepingAccountBalanceParams,
|
|
13
|
-
Increase::Internal::AnyHash
|
|
14
|
-
)
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
# The identifier of the Bookkeeping Account to retrieve.
|
|
18
|
-
sig { returns(String) }
|
|
19
|
-
attr_accessor :bookkeeping_account_id
|
|
20
|
-
|
|
21
|
-
# The moment to query the balance at. If not set, returns the current balances.
|
|
22
|
-
sig { returns(T.nilable(Time)) }
|
|
23
|
-
attr_reader :at_time
|
|
24
|
-
|
|
25
|
-
sig { params(at_time: Time).void }
|
|
26
|
-
attr_writer :at_time
|
|
27
|
-
|
|
28
|
-
sig do
|
|
29
|
-
params(
|
|
30
|
-
bookkeeping_account_id: String,
|
|
31
|
-
at_time: Time,
|
|
32
|
-
request_options: Increase::RequestOptions::OrHash
|
|
33
|
-
).returns(T.attached_class)
|
|
34
|
-
end
|
|
35
|
-
def self.new(
|
|
36
|
-
# The identifier of the Bookkeeping Account to retrieve.
|
|
37
|
-
bookkeeping_account_id:,
|
|
38
|
-
# The moment to query the balance at. If not set, returns the current balances.
|
|
39
|
-
at_time: nil,
|
|
40
|
-
request_options: {}
|
|
41
|
-
)
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
sig do
|
|
45
|
-
override.returns(
|
|
46
|
-
{
|
|
47
|
-
bookkeeping_account_id: String,
|
|
48
|
-
at_time: Time,
|
|
49
|
-
request_options: Increase::RequestOptions
|
|
50
|
-
}
|
|
51
|
-
)
|
|
52
|
-
end
|
|
53
|
-
def to_hash
|
|
54
|
-
end
|
|
55
|
-
end
|
|
56
|
-
end
|
|
57
|
-
end
|