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,104 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingAccounts#create
|
|
6
|
-
class BookkeepingAccount < Increase::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute id
|
|
8
|
-
# The account identifier.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :id, String
|
|
12
|
-
|
|
13
|
-
# @!attribute account_id
|
|
14
|
-
# The API Account associated with this bookkeeping account.
|
|
15
|
-
#
|
|
16
|
-
# @return [String, nil]
|
|
17
|
-
required :account_id, String, nil?: true
|
|
18
|
-
|
|
19
|
-
# @!attribute compliance_category
|
|
20
|
-
# The compliance category of the account.
|
|
21
|
-
#
|
|
22
|
-
# @return [Symbol, Increase::Models::BookkeepingAccount::ComplianceCategory, nil]
|
|
23
|
-
required :compliance_category, enum: -> { Increase::BookkeepingAccount::ComplianceCategory }, nil?: true
|
|
24
|
-
|
|
25
|
-
# @!attribute entity_id
|
|
26
|
-
# The Entity associated with this bookkeeping account.
|
|
27
|
-
#
|
|
28
|
-
# @return [String, nil]
|
|
29
|
-
required :entity_id, String, nil?: true
|
|
30
|
-
|
|
31
|
-
# @!attribute idempotency_key
|
|
32
|
-
# The idempotency key you chose for this object. This value is unique across
|
|
33
|
-
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
34
|
-
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
35
|
-
#
|
|
36
|
-
# @return [String, nil]
|
|
37
|
-
required :idempotency_key, String, nil?: true
|
|
38
|
-
|
|
39
|
-
# @!attribute name
|
|
40
|
-
# The name you choose for the account.
|
|
41
|
-
#
|
|
42
|
-
# @return [String]
|
|
43
|
-
required :name, String
|
|
44
|
-
|
|
45
|
-
# @!attribute type
|
|
46
|
-
# A constant representing the object's type. For this resource it will always be
|
|
47
|
-
# `bookkeeping_account`.
|
|
48
|
-
#
|
|
49
|
-
# @return [Symbol, Increase::Models::BookkeepingAccount::Type]
|
|
50
|
-
required :type, enum: -> { Increase::BookkeepingAccount::Type }
|
|
51
|
-
|
|
52
|
-
# @!method initialize(id:, account_id:, compliance_category:, entity_id:, idempotency_key:, name:, type:)
|
|
53
|
-
# Some parameter documentations has been truncated, see
|
|
54
|
-
# {Increase::Models::BookkeepingAccount} for more details.
|
|
55
|
-
#
|
|
56
|
-
# Accounts are T-accounts. They can store accounting entries. Your compliance
|
|
57
|
-
# setup might require annotating money movements using this API. Learn more in our
|
|
58
|
-
# [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
|
|
59
|
-
#
|
|
60
|
-
# @param id [String] The account identifier.
|
|
61
|
-
#
|
|
62
|
-
# @param account_id [String, nil] The API Account associated with this bookkeeping account.
|
|
63
|
-
#
|
|
64
|
-
# @param compliance_category [Symbol, Increase::Models::BookkeepingAccount::ComplianceCategory, nil] The compliance category of the account.
|
|
65
|
-
#
|
|
66
|
-
# @param entity_id [String, nil] The Entity associated with this bookkeeping account.
|
|
67
|
-
#
|
|
68
|
-
# @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
|
|
69
|
-
#
|
|
70
|
-
# @param name [String] The name you choose for the account.
|
|
71
|
-
#
|
|
72
|
-
# @param type [Symbol, Increase::Models::BookkeepingAccount::Type] A constant representing the object's type. For this resource it will always be `
|
|
73
|
-
|
|
74
|
-
# The compliance category of the account.
|
|
75
|
-
#
|
|
76
|
-
# @see Increase::Models::BookkeepingAccount#compliance_category
|
|
77
|
-
module ComplianceCategory
|
|
78
|
-
extend Increase::Internal::Type::Enum
|
|
79
|
-
|
|
80
|
-
# A cash in an commingled Increase Account.
|
|
81
|
-
COMMINGLED_CASH = :commingled_cash
|
|
82
|
-
|
|
83
|
-
# A customer balance.
|
|
84
|
-
CUSTOMER_BALANCE = :customer_balance
|
|
85
|
-
|
|
86
|
-
# @!method self.values
|
|
87
|
-
# @return [Array<Symbol>]
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
# A constant representing the object's type. For this resource it will always be
|
|
91
|
-
# `bookkeeping_account`.
|
|
92
|
-
#
|
|
93
|
-
# @see Increase::Models::BookkeepingAccount#type
|
|
94
|
-
module Type
|
|
95
|
-
extend Increase::Internal::Type::Enum
|
|
96
|
-
|
|
97
|
-
BOOKKEEPING_ACCOUNT = :bookkeeping_account
|
|
98
|
-
|
|
99
|
-
# @!method self.values
|
|
100
|
-
# @return [Array<Symbol>]
|
|
101
|
-
end
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingAccounts#balance
|
|
6
|
-
class BookkeepingAccountBalanceParams < Increase::Internal::Type::BaseModel
|
|
7
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Increase::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute bookkeeping_account_id
|
|
11
|
-
# The identifier of the Bookkeeping Account to retrieve.
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :bookkeeping_account_id, String
|
|
15
|
-
|
|
16
|
-
# @!attribute at_time
|
|
17
|
-
# The moment to query the balance at. If not set, returns the current balances.
|
|
18
|
-
#
|
|
19
|
-
# @return [Time, nil]
|
|
20
|
-
optional :at_time, Time
|
|
21
|
-
|
|
22
|
-
# @!method initialize(bookkeeping_account_id:, at_time: nil, request_options: {})
|
|
23
|
-
# @param bookkeeping_account_id [String] The identifier of the Bookkeeping Account to retrieve.
|
|
24
|
-
#
|
|
25
|
-
# @param at_time [Time] The moment to query the balance at. If not set, returns the current balances.
|
|
26
|
-
#
|
|
27
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingAccounts#create
|
|
6
|
-
class BookkeepingAccountCreateParams < Increase::Internal::Type::BaseModel
|
|
7
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Increase::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute name
|
|
11
|
-
# The name you choose for the account.
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :name, String
|
|
15
|
-
|
|
16
|
-
# @!attribute account_id
|
|
17
|
-
# The account, if `compliance_category` is `commingled_cash`.
|
|
18
|
-
#
|
|
19
|
-
# @return [String, nil]
|
|
20
|
-
optional :account_id, String
|
|
21
|
-
|
|
22
|
-
# @!attribute compliance_category
|
|
23
|
-
# The account compliance category.
|
|
24
|
-
#
|
|
25
|
-
# @return [Symbol, Increase::Models::BookkeepingAccountCreateParams::ComplianceCategory, nil]
|
|
26
|
-
optional :compliance_category, enum: -> { Increase::BookkeepingAccountCreateParams::ComplianceCategory }
|
|
27
|
-
|
|
28
|
-
# @!attribute entity_id
|
|
29
|
-
# The entity, if `compliance_category` is `customer_balance`.
|
|
30
|
-
#
|
|
31
|
-
# @return [String, nil]
|
|
32
|
-
optional :entity_id, String
|
|
33
|
-
|
|
34
|
-
# @!method initialize(name:, account_id: nil, compliance_category: nil, entity_id: nil, request_options: {})
|
|
35
|
-
# @param name [String] The name you choose for the account.
|
|
36
|
-
#
|
|
37
|
-
# @param account_id [String] The account, if `compliance_category` is `commingled_cash`.
|
|
38
|
-
#
|
|
39
|
-
# @param compliance_category [Symbol, Increase::Models::BookkeepingAccountCreateParams::ComplianceCategory] The account compliance category.
|
|
40
|
-
#
|
|
41
|
-
# @param entity_id [String] The entity, if `compliance_category` is `customer_balance`.
|
|
42
|
-
#
|
|
43
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
44
|
-
|
|
45
|
-
# The account compliance category.
|
|
46
|
-
module ComplianceCategory
|
|
47
|
-
extend Increase::Internal::Type::Enum
|
|
48
|
-
|
|
49
|
-
# A cash in an commingled Increase Account.
|
|
50
|
-
COMMINGLED_CASH = :commingled_cash
|
|
51
|
-
|
|
52
|
-
# A customer balance.
|
|
53
|
-
CUSTOMER_BALANCE = :customer_balance
|
|
54
|
-
|
|
55
|
-
# @!method self.values
|
|
56
|
-
# @return [Array<Symbol>]
|
|
57
|
-
end
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingAccounts#list
|
|
6
|
-
class BookkeepingAccountListParams < 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
|
-
# @!method initialize(cursor: nil, idempotency_key: nil, limit: nil, request_options: {})
|
|
33
|
-
# Some parameter documentations has been truncated, see
|
|
34
|
-
# {Increase::Models::BookkeepingAccountListParams} for more details.
|
|
35
|
-
#
|
|
36
|
-
# @param cursor [String] Return the page of entries after this one.
|
|
37
|
-
#
|
|
38
|
-
# @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
|
|
39
|
-
#
|
|
40
|
-
# @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
|
|
41
|
-
#
|
|
42
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
43
|
-
end
|
|
44
|
-
end
|
|
45
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingAccounts#update
|
|
6
|
-
class BookkeepingAccountUpdateParams < Increase::Internal::Type::BaseModel
|
|
7
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Increase::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute bookkeeping_account_id
|
|
11
|
-
# The bookkeeping account you would like to update.
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :bookkeeping_account_id, String
|
|
15
|
-
|
|
16
|
-
# @!attribute name
|
|
17
|
-
# The name you choose for the account.
|
|
18
|
-
#
|
|
19
|
-
# @return [String]
|
|
20
|
-
required :name, String
|
|
21
|
-
|
|
22
|
-
# @!method initialize(bookkeeping_account_id:, name:, request_options: {})
|
|
23
|
-
# @param bookkeeping_account_id [String] The bookkeeping account you would like to update.
|
|
24
|
-
#
|
|
25
|
-
# @param name [String] The name you choose for the account.
|
|
26
|
-
#
|
|
27
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingAccounts#balance
|
|
6
|
-
class BookkeepingBalanceLookup < Increase::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute balance
|
|
8
|
-
# The Bookkeeping Account's current balance, representing the sum of all
|
|
9
|
-
# Bookkeeping Entries on the Bookkeeping Account.
|
|
10
|
-
#
|
|
11
|
-
# @return [Integer]
|
|
12
|
-
required :balance, Integer
|
|
13
|
-
|
|
14
|
-
# @!attribute bookkeeping_account_id
|
|
15
|
-
# The identifier for the account for which the balance was queried.
|
|
16
|
-
#
|
|
17
|
-
# @return [String]
|
|
18
|
-
required :bookkeeping_account_id, String
|
|
19
|
-
|
|
20
|
-
# @!attribute type
|
|
21
|
-
# A constant representing the object's type. For this resource it will always be
|
|
22
|
-
# `bookkeeping_balance_lookup`.
|
|
23
|
-
#
|
|
24
|
-
# @return [Symbol, Increase::Models::BookkeepingBalanceLookup::Type]
|
|
25
|
-
required :type, enum: -> { Increase::BookkeepingBalanceLookup::Type }
|
|
26
|
-
|
|
27
|
-
# @!method initialize(balance:, bookkeeping_account_id:, type:)
|
|
28
|
-
# Some parameter documentations has been truncated, see
|
|
29
|
-
# {Increase::Models::BookkeepingBalanceLookup} for more details.
|
|
30
|
-
#
|
|
31
|
-
# Represents a request to lookup the balance of a Bookkeeping Account at a given
|
|
32
|
-
# point in time.
|
|
33
|
-
#
|
|
34
|
-
# @param balance [Integer] The Bookkeeping Account's current balance, representing the sum of all Bookkeepi
|
|
35
|
-
#
|
|
36
|
-
# @param bookkeeping_account_id [String] The identifier for the account for which the balance was queried.
|
|
37
|
-
#
|
|
38
|
-
# @param type [Symbol, Increase::Models::BookkeepingBalanceLookup::Type] A constant representing the object's type. For this resource it will always be `
|
|
39
|
-
|
|
40
|
-
# A constant representing the object's type. For this resource it will always be
|
|
41
|
-
# `bookkeeping_balance_lookup`.
|
|
42
|
-
#
|
|
43
|
-
# @see Increase::Models::BookkeepingBalanceLookup#type
|
|
44
|
-
module Type
|
|
45
|
-
extend Increase::Internal::Type::Enum
|
|
46
|
-
|
|
47
|
-
BOOKKEEPING_BALANCE_LOOKUP = :bookkeeping_balance_lookup
|
|
48
|
-
|
|
49
|
-
# @!method self.values
|
|
50
|
-
# @return [Array<Symbol>]
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|
|
54
|
-
end
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingEntries#retrieve
|
|
6
|
-
class BookkeepingEntry < Increase::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute id
|
|
8
|
-
# The entry identifier.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :id, String
|
|
12
|
-
|
|
13
|
-
# @!attribute account_id
|
|
14
|
-
# The identifier for the Account the Entry belongs to.
|
|
15
|
-
#
|
|
16
|
-
# @return [String]
|
|
17
|
-
required :account_id, String
|
|
18
|
-
|
|
19
|
-
# @!attribute amount
|
|
20
|
-
# The Entry amount in the minor unit of its currency. For dollars, for example,
|
|
21
|
-
# this is cents.
|
|
22
|
-
#
|
|
23
|
-
# @return [Integer]
|
|
24
|
-
required :amount, Integer
|
|
25
|
-
|
|
26
|
-
# @!attribute created_at
|
|
27
|
-
# When the entry set was created.
|
|
28
|
-
#
|
|
29
|
-
# @return [Time]
|
|
30
|
-
required :created_at, Time
|
|
31
|
-
|
|
32
|
-
# @!attribute entry_set_id
|
|
33
|
-
# The identifier for the Entry Set the Entry belongs to.
|
|
34
|
-
#
|
|
35
|
-
# @return [String]
|
|
36
|
-
required :entry_set_id, String
|
|
37
|
-
|
|
38
|
-
# @!attribute type
|
|
39
|
-
# A constant representing the object's type. For this resource it will always be
|
|
40
|
-
# `bookkeeping_entry`.
|
|
41
|
-
#
|
|
42
|
-
# @return [Symbol, Increase::Models::BookkeepingEntry::Type]
|
|
43
|
-
required :type, enum: -> { Increase::BookkeepingEntry::Type }
|
|
44
|
-
|
|
45
|
-
# @!method initialize(id:, account_id:, amount:, created_at:, entry_set_id:, type:)
|
|
46
|
-
# Some parameter documentations has been truncated, see
|
|
47
|
-
# {Increase::Models::BookkeepingEntry} for more details.
|
|
48
|
-
#
|
|
49
|
-
# Entries are T-account entries recording debits and credits. Your compliance
|
|
50
|
-
# setup might require annotating money movements using this API. Learn more in our
|
|
51
|
-
# [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
|
|
52
|
-
#
|
|
53
|
-
# @param id [String] The entry identifier.
|
|
54
|
-
#
|
|
55
|
-
# @param account_id [String] The identifier for the Account the Entry belongs to.
|
|
56
|
-
#
|
|
57
|
-
# @param amount [Integer] The Entry amount in the minor unit of its currency. For dollars, for example, th
|
|
58
|
-
#
|
|
59
|
-
# @param created_at [Time] When the entry set was created.
|
|
60
|
-
#
|
|
61
|
-
# @param entry_set_id [String] The identifier for the Entry Set the Entry belongs to.
|
|
62
|
-
#
|
|
63
|
-
# @param type [Symbol, Increase::Models::BookkeepingEntry::Type] A constant representing the object's type. For this resource it will always be `
|
|
64
|
-
|
|
65
|
-
# A constant representing the object's type. For this resource it will always be
|
|
66
|
-
# `bookkeeping_entry`.
|
|
67
|
-
#
|
|
68
|
-
# @see Increase::Models::BookkeepingEntry#type
|
|
69
|
-
module Type
|
|
70
|
-
extend Increase::Internal::Type::Enum
|
|
71
|
-
|
|
72
|
-
BOOKKEEPING_ENTRY = :bookkeeping_entry
|
|
73
|
-
|
|
74
|
-
# @!method self.values
|
|
75
|
-
# @return [Array<Symbol>]
|
|
76
|
-
end
|
|
77
|
-
end
|
|
78
|
-
end
|
|
79
|
-
end
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingEntries#list
|
|
6
|
-
class BookkeepingEntryListParams < Increase::Internal::Type::BaseModel
|
|
7
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Increase::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute account_id
|
|
11
|
-
# The identifier for the Bookkeeping Account to filter by.
|
|
12
|
-
#
|
|
13
|
-
# @return [String, nil]
|
|
14
|
-
optional :account_id, String
|
|
15
|
-
|
|
16
|
-
# @!attribute cursor
|
|
17
|
-
# Return the page of entries after this one.
|
|
18
|
-
#
|
|
19
|
-
# @return [String, nil]
|
|
20
|
-
optional :cursor, String
|
|
21
|
-
|
|
22
|
-
# @!attribute limit
|
|
23
|
-
# Limit the size of the list that is returned. The default (and maximum) is 100
|
|
24
|
-
# objects.
|
|
25
|
-
#
|
|
26
|
-
# @return [Integer, nil]
|
|
27
|
-
optional :limit, Integer
|
|
28
|
-
|
|
29
|
-
# @!method initialize(account_id: nil, cursor: nil, limit: nil, request_options: {})
|
|
30
|
-
# Some parameter documentations has been truncated, see
|
|
31
|
-
# {Increase::Models::BookkeepingEntryListParams} for more details.
|
|
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}]
|
|
40
|
-
end
|
|
41
|
-
end
|
|
42
|
-
end
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingEntries#retrieve
|
|
6
|
-
class BookkeepingEntryRetrieveParams < Increase::Internal::Type::BaseModel
|
|
7
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Increase::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute bookkeeping_entry_id
|
|
11
|
-
# The identifier of the Bookkeeping Entry.
|
|
12
|
-
#
|
|
13
|
-
# @return [String]
|
|
14
|
-
required :bookkeeping_entry_id, String
|
|
15
|
-
|
|
16
|
-
# @!method initialize(bookkeeping_entry_id:, request_options: {})
|
|
17
|
-
# @param bookkeeping_entry_id [String] The identifier of the Bookkeeping Entry.
|
|
18
|
-
#
|
|
19
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
20
|
-
end
|
|
21
|
-
end
|
|
22
|
-
end
|
|
@@ -1,116 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingEntrySets#create
|
|
6
|
-
class BookkeepingEntrySet < Increase::Internal::Type::BaseModel
|
|
7
|
-
# @!attribute id
|
|
8
|
-
# The entry set identifier.
|
|
9
|
-
#
|
|
10
|
-
# @return [String]
|
|
11
|
-
required :id, String
|
|
12
|
-
|
|
13
|
-
# @!attribute created_at
|
|
14
|
-
# When the entry set was created.
|
|
15
|
-
#
|
|
16
|
-
# @return [Time]
|
|
17
|
-
required :created_at, Time
|
|
18
|
-
|
|
19
|
-
# @!attribute date
|
|
20
|
-
# The timestamp of the entry set.
|
|
21
|
-
#
|
|
22
|
-
# @return [Time]
|
|
23
|
-
required :date, Time
|
|
24
|
-
|
|
25
|
-
# @!attribute entries
|
|
26
|
-
# The entries.
|
|
27
|
-
#
|
|
28
|
-
# @return [Array<Increase::Models::BookkeepingEntrySet::Entry>]
|
|
29
|
-
required :entries, -> { Increase::Internal::Type::ArrayOf[Increase::BookkeepingEntrySet::Entry] }
|
|
30
|
-
|
|
31
|
-
# @!attribute idempotency_key
|
|
32
|
-
# The idempotency key you chose for this object. This value is unique across
|
|
33
|
-
# Increase and is used to ensure that a request is only processed once. Learn more
|
|
34
|
-
# about [idempotency](https://increase.com/documentation/idempotency-keys).
|
|
35
|
-
#
|
|
36
|
-
# @return [String, nil]
|
|
37
|
-
required :idempotency_key, String, nil?: true
|
|
38
|
-
|
|
39
|
-
# @!attribute transaction_id
|
|
40
|
-
# The transaction identifier, if any.
|
|
41
|
-
#
|
|
42
|
-
# @return [String, nil]
|
|
43
|
-
required :transaction_id, String, nil?: true
|
|
44
|
-
|
|
45
|
-
# @!attribute type
|
|
46
|
-
# A constant representing the object's type. For this resource it will always be
|
|
47
|
-
# `bookkeeping_entry_set`.
|
|
48
|
-
#
|
|
49
|
-
# @return [Symbol, Increase::Models::BookkeepingEntrySet::Type]
|
|
50
|
-
required :type, enum: -> { Increase::BookkeepingEntrySet::Type }
|
|
51
|
-
|
|
52
|
-
# @!method initialize(id:, created_at:, date:, entries:, idempotency_key:, transaction_id:, type:)
|
|
53
|
-
# Some parameter documentations has been truncated, see
|
|
54
|
-
# {Increase::Models::BookkeepingEntrySet} for more details.
|
|
55
|
-
#
|
|
56
|
-
# Entry Sets are accounting entries that are transactionally applied. Your
|
|
57
|
-
# compliance setup might require annotating money movements using this API. Learn
|
|
58
|
-
# more in our
|
|
59
|
-
# [guide to Bookkeeping](https://increase.com/documentation/bookkeeping#bookkeeping).
|
|
60
|
-
#
|
|
61
|
-
# @param id [String] The entry set identifier.
|
|
62
|
-
#
|
|
63
|
-
# @param created_at [Time] When the entry set was created.
|
|
64
|
-
#
|
|
65
|
-
# @param date [Time] The timestamp of the entry set.
|
|
66
|
-
#
|
|
67
|
-
# @param entries [Array<Increase::Models::BookkeepingEntrySet::Entry>] The entries.
|
|
68
|
-
#
|
|
69
|
-
# @param idempotency_key [String, nil] The idempotency key you chose for this object. This value is unique across Incre
|
|
70
|
-
#
|
|
71
|
-
# @param transaction_id [String, nil] The transaction identifier, if any.
|
|
72
|
-
#
|
|
73
|
-
# @param type [Symbol, Increase::Models::BookkeepingEntrySet::Type] A constant representing the object's type. For this resource it will always be `
|
|
74
|
-
|
|
75
|
-
class Entry < Increase::Internal::Type::BaseModel
|
|
76
|
-
# @!attribute id
|
|
77
|
-
# The entry identifier.
|
|
78
|
-
#
|
|
79
|
-
# @return [String]
|
|
80
|
-
required :id, String
|
|
81
|
-
|
|
82
|
-
# @!attribute account_id
|
|
83
|
-
# The bookkeeping account impacted by the entry.
|
|
84
|
-
#
|
|
85
|
-
# @return [String]
|
|
86
|
-
required :account_id, String
|
|
87
|
-
|
|
88
|
-
# @!attribute amount
|
|
89
|
-
# The amount of the entry in minor units.
|
|
90
|
-
#
|
|
91
|
-
# @return [Integer]
|
|
92
|
-
required :amount, Integer
|
|
93
|
-
|
|
94
|
-
# @!method initialize(id:, account_id:, amount:)
|
|
95
|
-
# @param id [String] The entry identifier.
|
|
96
|
-
#
|
|
97
|
-
# @param account_id [String] The bookkeeping account impacted by the entry.
|
|
98
|
-
#
|
|
99
|
-
# @param amount [Integer] The amount of the entry in minor units.
|
|
100
|
-
end
|
|
101
|
-
|
|
102
|
-
# A constant representing the object's type. For this resource it will always be
|
|
103
|
-
# `bookkeeping_entry_set`.
|
|
104
|
-
#
|
|
105
|
-
# @see Increase::Models::BookkeepingEntrySet#type
|
|
106
|
-
module Type
|
|
107
|
-
extend Increase::Internal::Type::Enum
|
|
108
|
-
|
|
109
|
-
BOOKKEEPING_ENTRY_SET = :bookkeeping_entry_set
|
|
110
|
-
|
|
111
|
-
# @!method self.values
|
|
112
|
-
# @return [Array<Symbol>]
|
|
113
|
-
end
|
|
114
|
-
end
|
|
115
|
-
end
|
|
116
|
-
end
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
|
|
3
|
-
module Increase
|
|
4
|
-
module Models
|
|
5
|
-
# @see Increase::Resources::BookkeepingEntrySets#create
|
|
6
|
-
class BookkeepingEntrySetCreateParams < Increase::Internal::Type::BaseModel
|
|
7
|
-
extend Increase::Internal::Type::RequestParameters::Converter
|
|
8
|
-
include Increase::Internal::Type::RequestParameters
|
|
9
|
-
|
|
10
|
-
# @!attribute entries
|
|
11
|
-
# The bookkeeping entries.
|
|
12
|
-
#
|
|
13
|
-
# @return [Array<Increase::Models::BookkeepingEntrySetCreateParams::Entry>]
|
|
14
|
-
required :entries,
|
|
15
|
-
-> { Increase::Internal::Type::ArrayOf[Increase::BookkeepingEntrySetCreateParams::Entry] }
|
|
16
|
-
|
|
17
|
-
# @!attribute date
|
|
18
|
-
# The date of the transaction. Optional if `transaction_id` is provided, in which
|
|
19
|
-
# case we use the `date` of that transaction. Required otherwise.
|
|
20
|
-
#
|
|
21
|
-
# @return [Time, nil]
|
|
22
|
-
optional :date, Time
|
|
23
|
-
|
|
24
|
-
# @!attribute transaction_id
|
|
25
|
-
# The identifier of the Transaction related to this entry set, if any.
|
|
26
|
-
#
|
|
27
|
-
# @return [String, nil]
|
|
28
|
-
optional :transaction_id, String
|
|
29
|
-
|
|
30
|
-
# @!method initialize(entries:, date: nil, transaction_id: nil, request_options: {})
|
|
31
|
-
# Some parameter documentations has been truncated, see
|
|
32
|
-
# {Increase::Models::BookkeepingEntrySetCreateParams} for more details.
|
|
33
|
-
#
|
|
34
|
-
# @param entries [Array<Increase::Models::BookkeepingEntrySetCreateParams::Entry>] The bookkeeping entries.
|
|
35
|
-
#
|
|
36
|
-
# @param date [Time] The date of the transaction. Optional if `transaction_id` is provided, in which
|
|
37
|
-
#
|
|
38
|
-
# @param transaction_id [String] The identifier of the Transaction related to this entry set, if any.
|
|
39
|
-
#
|
|
40
|
-
# @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}]
|
|
41
|
-
|
|
42
|
-
class Entry < Increase::Internal::Type::BaseModel
|
|
43
|
-
# @!attribute account_id
|
|
44
|
-
# The identifier for the Bookkeeping Account impacted by this entry.
|
|
45
|
-
#
|
|
46
|
-
# @return [String]
|
|
47
|
-
required :account_id, String
|
|
48
|
-
|
|
49
|
-
# @!attribute amount
|
|
50
|
-
# The entry amount in the minor unit of the account currency. For dollars, for
|
|
51
|
-
# example, this is cents. Debit entries have positive amounts; credit entries have
|
|
52
|
-
# negative amounts.
|
|
53
|
-
#
|
|
54
|
-
# @return [Integer]
|
|
55
|
-
required :amount, Integer
|
|
56
|
-
|
|
57
|
-
# @!method initialize(account_id:, amount:)
|
|
58
|
-
# Some parameter documentations has been truncated, see
|
|
59
|
-
# {Increase::Models::BookkeepingEntrySetCreateParams::Entry} for more details.
|
|
60
|
-
#
|
|
61
|
-
# @param account_id [String] The identifier for the Bookkeeping Account impacted by this entry.
|
|
62
|
-
#
|
|
63
|
-
# @param amount [Integer] The entry amount in the minor unit of the account currency. For dollars, for exa
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
end
|
|
67
|
-
end
|