increase 1.303.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 +13 -0
- data/README.md +1 -1
- data/lib/increase/client.rb +0 -12
- data/lib/increase/models.rb +0 -26
- data/lib/increase/version.rb +1 -1
- data/lib/increase.rb +0 -16
- data/rbi/increase/client.rbi +0 -9
- data/rbi/increase/models.rbi +0 -33
- data/sig/increase/client.rbs +0 -6
- data/sig/increase/models.rbs +0 -26
- 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,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
|
|
@@ -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
|