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.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +0 -12
  5. data/lib/increase/models.rb +0 -26
  6. data/lib/increase/version.rb +1 -1
  7. data/lib/increase.rb +0 -16
  8. data/rbi/increase/client.rbi +0 -9
  9. data/rbi/increase/models.rbi +0 -33
  10. data/sig/increase/client.rbs +0 -6
  11. data/sig/increase/models.rbs +0 -26
  12. metadata +2 -50
  13. data/lib/increase/models/bookkeeping_account.rb +0 -104
  14. data/lib/increase/models/bookkeeping_account_balance_params.rb +0 -30
  15. data/lib/increase/models/bookkeeping_account_create_params.rb +0 -60
  16. data/lib/increase/models/bookkeeping_account_list_params.rb +0 -45
  17. data/lib/increase/models/bookkeeping_account_update_params.rb +0 -30
  18. data/lib/increase/models/bookkeeping_balance_lookup.rb +0 -54
  19. data/lib/increase/models/bookkeeping_entry.rb +0 -79
  20. data/lib/increase/models/bookkeeping_entry_list_params.rb +0 -42
  21. data/lib/increase/models/bookkeeping_entry_retrieve_params.rb +0 -22
  22. data/lib/increase/models/bookkeeping_entry_set.rb +0 -116
  23. data/lib/increase/models/bookkeeping_entry_set_create_params.rb +0 -67
  24. data/lib/increase/models/bookkeeping_entry_set_list_params.rb +0 -53
  25. data/lib/increase/models/bookkeeping_entry_set_retrieve_params.rb +0 -22
  26. data/lib/increase/resources/bookkeeping_accounts.rb +0 -122
  27. data/lib/increase/resources/bookkeeping_entries.rb +0 -65
  28. data/lib/increase/resources/bookkeeping_entry_sets.rb +0 -96
  29. data/rbi/increase/models/bookkeeping_account.rbi +0 -165
  30. data/rbi/increase/models/bookkeeping_account_balance_params.rbi +0 -57
  31. data/rbi/increase/models/bookkeeping_account_create_params.rbi +0 -130
  32. data/rbi/increase/models/bookkeeping_account_list_params.rbi +0 -79
  33. data/rbi/increase/models/bookkeeping_account_update_params.rbi +0 -54
  34. data/rbi/increase/models/bookkeeping_balance_lookup.rbi +0 -85
  35. data/rbi/increase/models/bookkeeping_entry.rbi +0 -108
  36. data/rbi/increase/models/bookkeeping_entry_list_params.rbi +0 -73
  37. data/rbi/increase/models/bookkeeping_entry_retrieve_params.rbi +0 -46
  38. data/rbi/increase/models/bookkeeping_entry_set.rbi +0 -162
  39. data/rbi/increase/models/bookkeeping_entry_set_create_params.rbi +0 -110
  40. data/rbi/increase/models/bookkeeping_entry_set_list_params.rbi +0 -90
  41. data/rbi/increase/models/bookkeeping_entry_set_retrieve_params.rbi +0 -46
  42. data/rbi/increase/resources/bookkeeping_accounts.rbi +0 -94
  43. data/rbi/increase/resources/bookkeeping_entries.rbi +0 -47
  44. data/rbi/increase/resources/bookkeeping_entry_sets.rbi +0 -75
  45. data/sig/increase/models/bookkeeping_account.rbs +0 -74
  46. data/sig/increase/models/bookkeeping_account_balance_params.rbs +0 -30
  47. data/sig/increase/models/bookkeeping_account_create_params.rbs +0 -63
  48. data/sig/increase/models/bookkeeping_account_list_params.rbs +0 -38
  49. data/sig/increase/models/bookkeeping_account_update_params.rbs +0 -28
  50. data/sig/increase/models/bookkeeping_balance_lookup.rbs +0 -40
  51. data/sig/increase/models/bookkeeping_entry.rbs +0 -55
  52. data/sig/increase/models/bookkeeping_entry_list_params.rbs +0 -38
  53. data/sig/increase/models/bookkeeping_entry_retrieve_params.rbs +0 -24
  54. data/sig/increase/models/bookkeeping_entry_set.rbs +0 -78
  55. data/sig/increase/models/bookkeeping_entry_set_create_params.rbs +0 -52
  56. data/sig/increase/models/bookkeeping_entry_set_list_params.rbs +0 -49
  57. data/sig/increase/models/bookkeeping_entry_set_retrieve_params.rbs +0 -24
  58. data/sig/increase/resources/bookkeeping_accounts.rbs +0 -34
  59. data/sig/increase/resources/bookkeeping_entries.rbs +0 -19
  60. data/sig/increase/resources/bookkeeping_entry_sets.rbs +0 -27
@@ -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
@@ -1,30 +0,0 @@
1
- module Increase
2
- module Models
3
- type bookkeeping_account_balance_params =
4
- { bookkeeping_account_id: String, at_time: Time }
5
- & Increase::Internal::Type::request_parameters
6
-
7
- class BookkeepingAccountBalanceParams < Increase::Internal::Type::BaseModel
8
- extend Increase::Internal::Type::RequestParameters::Converter
9
- include Increase::Internal::Type::RequestParameters
10
-
11
- attr_accessor bookkeeping_account_id: String
12
-
13
- attr_reader at_time: Time?
14
-
15
- def at_time=: (Time) -> Time
16
-
17
- def initialize: (
18
- bookkeeping_account_id: String,
19
- ?at_time: Time,
20
- ?request_options: Increase::request_opts
21
- ) -> void
22
-
23
- def to_hash: -> {
24
- bookkeeping_account_id: String,
25
- at_time: Time,
26
- request_options: Increase::RequestOptions
27
- }
28
- end
29
- end
30
- end
@@ -1,63 +0,0 @@
1
- module Increase
2
- module Models
3
- type bookkeeping_account_create_params =
4
- {
5
- name: String,
6
- account_id: String,
7
- compliance_category: Increase::Models::BookkeepingAccountCreateParams::compliance_category,
8
- entity_id: String
9
- }
10
- & Increase::Internal::Type::request_parameters
11
-
12
- class BookkeepingAccountCreateParams < Increase::Internal::Type::BaseModel
13
- extend Increase::Internal::Type::RequestParameters::Converter
14
- include Increase::Internal::Type::RequestParameters
15
-
16
- attr_accessor name: String
17
-
18
- attr_reader account_id: String?
19
-
20
- def account_id=: (String) -> String
21
-
22
- attr_reader compliance_category: Increase::Models::BookkeepingAccountCreateParams::compliance_category?
23
-
24
- def compliance_category=: (
25
- Increase::Models::BookkeepingAccountCreateParams::compliance_category
26
- ) -> Increase::Models::BookkeepingAccountCreateParams::compliance_category
27
-
28
- attr_reader entity_id: String?
29
-
30
- def entity_id=: (String) -> String
31
-
32
- def initialize: (
33
- name: String,
34
- ?account_id: String,
35
- ?compliance_category: Increase::Models::BookkeepingAccountCreateParams::compliance_category,
36
- ?entity_id: String,
37
- ?request_options: Increase::request_opts
38
- ) -> void
39
-
40
- def to_hash: -> {
41
- name: String,
42
- account_id: String,
43
- compliance_category: Increase::Models::BookkeepingAccountCreateParams::compliance_category,
44
- entity_id: String,
45
- request_options: Increase::RequestOptions
46
- }
47
-
48
- type compliance_category = :commingled_cash | :customer_balance
49
-
50
- module ComplianceCategory
51
- extend Increase::Internal::Type::Enum
52
-
53
- # A cash in an commingled Increase Account.
54
- COMMINGLED_CASH: :commingled_cash
55
-
56
- # A customer balance.
57
- CUSTOMER_BALANCE: :customer_balance
58
-
59
- def self?.values: -> ::Array[Increase::Models::BookkeepingAccountCreateParams::compliance_category]
60
- end
61
- end
62
- end
63
- end
@@ -1,38 +0,0 @@
1
- module Increase
2
- module Models
3
- type bookkeeping_account_list_params =
4
- { cursor: String, idempotency_key: String, limit: Integer }
5
- & Increase::Internal::Type::request_parameters
6
-
7
- class BookkeepingAccountListParams < Increase::Internal::Type::BaseModel
8
- extend Increase::Internal::Type::RequestParameters::Converter
9
- include Increase::Internal::Type::RequestParameters
10
-
11
- attr_reader cursor: String?
12
-
13
- def cursor=: (String) -> String
14
-
15
- attr_reader idempotency_key: String?
16
-
17
- def idempotency_key=: (String) -> String
18
-
19
- attr_reader limit: Integer?
20
-
21
- def limit=: (Integer) -> Integer
22
-
23
- def initialize: (
24
- ?cursor: String,
25
- ?idempotency_key: String,
26
- ?limit: Integer,
27
- ?request_options: Increase::request_opts
28
- ) -> void
29
-
30
- def to_hash: -> {
31
- cursor: String,
32
- idempotency_key: String,
33
- limit: Integer,
34
- request_options: Increase::RequestOptions
35
- }
36
- end
37
- end
38
- end
@@ -1,28 +0,0 @@
1
- module Increase
2
- module Models
3
- type bookkeeping_account_update_params =
4
- { bookkeeping_account_id: String, name: String }
5
- & Increase::Internal::Type::request_parameters
6
-
7
- class BookkeepingAccountUpdateParams < Increase::Internal::Type::BaseModel
8
- extend Increase::Internal::Type::RequestParameters::Converter
9
- include Increase::Internal::Type::RequestParameters
10
-
11
- attr_accessor bookkeeping_account_id: String
12
-
13
- attr_accessor name: String
14
-
15
- def initialize: (
16
- bookkeeping_account_id: String,
17
- name: String,
18
- ?request_options: Increase::request_opts
19
- ) -> void
20
-
21
- def to_hash: -> {
22
- bookkeeping_account_id: String,
23
- name: String,
24
- request_options: Increase::RequestOptions
25
- }
26
- end
27
- end
28
- end
@@ -1,40 +0,0 @@
1
- module Increase
2
- module Models
3
- type bookkeeping_balance_lookup =
4
- {
5
- balance: Integer,
6
- bookkeeping_account_id: String,
7
- type: Increase::Models::BookkeepingBalanceLookup::type_
8
- }
9
-
10
- class BookkeepingBalanceLookup < Increase::Internal::Type::BaseModel
11
- attr_accessor balance: Integer
12
-
13
- attr_accessor bookkeeping_account_id: String
14
-
15
- attr_accessor type: Increase::Models::BookkeepingBalanceLookup::type_
16
-
17
- def initialize: (
18
- balance: Integer,
19
- bookkeeping_account_id: String,
20
- type: Increase::Models::BookkeepingBalanceLookup::type_
21
- ) -> void
22
-
23
- def to_hash: -> {
24
- balance: Integer,
25
- bookkeeping_account_id: String,
26
- type: Increase::Models::BookkeepingBalanceLookup::type_
27
- }
28
-
29
- type type_ = :bookkeeping_balance_lookup
30
-
31
- module Type
32
- extend Increase::Internal::Type::Enum
33
-
34
- BOOKKEEPING_BALANCE_LOOKUP: :bookkeeping_balance_lookup
35
-
36
- def self?.values: -> ::Array[Increase::Models::BookkeepingBalanceLookup::type_]
37
- end
38
- end
39
- end
40
- end
@@ -1,55 +0,0 @@
1
- module Increase
2
- module Models
3
- type bookkeeping_entry =
4
- {
5
- id: String,
6
- account_id: String,
7
- amount: Integer,
8
- created_at: Time,
9
- entry_set_id: String,
10
- type: Increase::Models::BookkeepingEntry::type_
11
- }
12
-
13
- class BookkeepingEntry < Increase::Internal::Type::BaseModel
14
- attr_accessor id: String
15
-
16
- attr_accessor account_id: String
17
-
18
- attr_accessor amount: Integer
19
-
20
- attr_accessor created_at: Time
21
-
22
- attr_accessor entry_set_id: String
23
-
24
- attr_accessor type: Increase::Models::BookkeepingEntry::type_
25
-
26
- def initialize: (
27
- id: String,
28
- account_id: String,
29
- amount: Integer,
30
- created_at: Time,
31
- entry_set_id: String,
32
- type: Increase::Models::BookkeepingEntry::type_
33
- ) -> void
34
-
35
- def to_hash: -> {
36
- id: String,
37
- account_id: String,
38
- amount: Integer,
39
- created_at: Time,
40
- entry_set_id: String,
41
- type: Increase::Models::BookkeepingEntry::type_
42
- }
43
-
44
- type type_ = :bookkeeping_entry
45
-
46
- module Type
47
- extend Increase::Internal::Type::Enum
48
-
49
- BOOKKEEPING_ENTRY: :bookkeeping_entry
50
-
51
- def self?.values: -> ::Array[Increase::Models::BookkeepingEntry::type_]
52
- end
53
- end
54
- end
55
- end
@@ -1,38 +0,0 @@
1
- module Increase
2
- module Models
3
- type bookkeeping_entry_list_params =
4
- { account_id: String, cursor: String, limit: Integer }
5
- & Increase::Internal::Type::request_parameters
6
-
7
- class BookkeepingEntryListParams < Increase::Internal::Type::BaseModel
8
- extend Increase::Internal::Type::RequestParameters::Converter
9
- include Increase::Internal::Type::RequestParameters
10
-
11
- attr_reader account_id: String?
12
-
13
- def account_id=: (String) -> String
14
-
15
- attr_reader cursor: String?
16
-
17
- def cursor=: (String) -> String
18
-
19
- attr_reader limit: Integer?
20
-
21
- def limit=: (Integer) -> Integer
22
-
23
- def initialize: (
24
- ?account_id: String,
25
- ?cursor: String,
26
- ?limit: Integer,
27
- ?request_options: Increase::request_opts
28
- ) -> void
29
-
30
- def to_hash: -> {
31
- account_id: String,
32
- cursor: String,
33
- limit: Integer,
34
- request_options: Increase::RequestOptions
35
- }
36
- end
37
- end
38
- end
@@ -1,24 +0,0 @@
1
- module Increase
2
- module Models
3
- type bookkeeping_entry_retrieve_params =
4
- { bookkeeping_entry_id: String }
5
- & Increase::Internal::Type::request_parameters
6
-
7
- class BookkeepingEntryRetrieveParams < Increase::Internal::Type::BaseModel
8
- extend Increase::Internal::Type::RequestParameters::Converter
9
- include Increase::Internal::Type::RequestParameters
10
-
11
- attr_accessor bookkeeping_entry_id: String
12
-
13
- def initialize: (
14
- bookkeeping_entry_id: String,
15
- ?request_options: Increase::request_opts
16
- ) -> void
17
-
18
- def to_hash: -> {
19
- bookkeeping_entry_id: String,
20
- request_options: Increase::RequestOptions
21
- }
22
- end
23
- end
24
- end
@@ -1,78 +0,0 @@
1
- module Increase
2
- module Models
3
- type bookkeeping_entry_set =
4
- {
5
- id: String,
6
- created_at: Time,
7
- date: Time,
8
- entries: ::Array[Increase::BookkeepingEntrySet::Entry],
9
- idempotency_key: String?,
10
- transaction_id: String?,
11
- type: Increase::Models::BookkeepingEntrySet::type_
12
- }
13
-
14
- class BookkeepingEntrySet < Increase::Internal::Type::BaseModel
15
- attr_accessor id: String
16
-
17
- attr_accessor created_at: Time
18
-
19
- attr_accessor date: Time
20
-
21
- attr_accessor entries: ::Array[Increase::BookkeepingEntrySet::Entry]
22
-
23
- attr_accessor idempotency_key: String?
24
-
25
- attr_accessor transaction_id: String?
26
-
27
- attr_accessor type: Increase::Models::BookkeepingEntrySet::type_
28
-
29
- def initialize: (
30
- id: String,
31
- created_at: Time,
32
- date: Time,
33
- entries: ::Array[Increase::BookkeepingEntrySet::Entry],
34
- idempotency_key: String?,
35
- transaction_id: String?,
36
- type: Increase::Models::BookkeepingEntrySet::type_
37
- ) -> void
38
-
39
- def to_hash: -> {
40
- id: String,
41
- created_at: Time,
42
- date: Time,
43
- entries: ::Array[Increase::BookkeepingEntrySet::Entry],
44
- idempotency_key: String?,
45
- transaction_id: String?,
46
- type: Increase::Models::BookkeepingEntrySet::type_
47
- }
48
-
49
- type entry = { id: String, account_id: String, amount: Integer }
50
-
51
- class Entry < Increase::Internal::Type::BaseModel
52
- attr_accessor id: String
53
-
54
- attr_accessor account_id: String
55
-
56
- attr_accessor amount: Integer
57
-
58
- def initialize: (
59
- id: String,
60
- account_id: String,
61
- amount: Integer
62
- ) -> void
63
-
64
- def to_hash: -> { id: String, account_id: String, amount: Integer }
65
- end
66
-
67
- type type_ = :bookkeeping_entry_set
68
-
69
- module Type
70
- extend Increase::Internal::Type::Enum
71
-
72
- BOOKKEEPING_ENTRY_SET: :bookkeeping_entry_set
73
-
74
- def self?.values: -> ::Array[Increase::Models::BookkeepingEntrySet::type_]
75
- end
76
- end
77
- end
78
- end