increase 1.303.0 → 1.305.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 (131) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -0
  3. data/README.md +1 -1
  4. data/lib/increase/client.rb +7 -15
  5. data/lib/increase/models/card_push_transfer.rb +3 -0
  6. data/lib/increase/models/card_token_capabilities.rb +3 -0
  7. data/lib/increase/models/card_validation.rb +3 -0
  8. data/lib/increase/models/check_deposit.rb +7 -6
  9. data/lib/increase/models/inbound_mail_item.rb +22 -7
  10. data/lib/increase/models/inbound_mail_item_list_params.rb +13 -5
  11. data/lib/increase/models/lockbox_address.rb +162 -0
  12. data/lib/increase/models/lockbox_address_create_params.rb +22 -0
  13. data/lib/increase/models/{lockbox_list_params.rb → lockbox_address_list_params.rb} +8 -16
  14. data/lib/increase/models/lockbox_address_retrieve_params.rb +22 -0
  15. data/lib/increase/models/lockbox_address_update_params.rb +55 -0
  16. data/lib/increase/models/lockbox_recipient.rb +135 -0
  17. data/lib/increase/models/lockbox_recipient_create_params.rb +49 -0
  18. data/lib/increase/models/lockbox_recipient_list_params.rb +110 -0
  19. data/lib/increase/models/lockbox_recipient_retrieve_params.rb +22 -0
  20. data/lib/increase/models/lockbox_recipient_update_params.rb +63 -0
  21. data/lib/increase/models/simulations/card_token_create_params.rb +3 -0
  22. data/lib/increase/models/simulations/inbound_mail_item_create_params.rb +17 -9
  23. data/lib/increase/models.rb +15 -31
  24. data/lib/increase/resources/inbound_mail_items.rb +4 -2
  25. data/lib/increase/resources/lockbox_addresses.rb +115 -0
  26. data/lib/increase/resources/lockbox_recipients.rb +130 -0
  27. data/lib/increase/resources/simulations/inbound_mail_items.rb +5 -3
  28. data/lib/increase/version.rb +1 -1
  29. data/lib/increase.rb +12 -22
  30. data/rbi/increase/client.rbi +5 -11
  31. data/rbi/increase/models/card_push_transfer.rbi +3 -0
  32. data/rbi/increase/models/card_token_capabilities.rbi +7 -0
  33. data/rbi/increase/models/card_validation.rbi +3 -0
  34. data/rbi/increase/models/check_deposit.rbi +10 -8
  35. data/rbi/increase/models/inbound_mail_item.rbi +32 -9
  36. data/rbi/increase/models/inbound_mail_item_list_params.rbi +19 -8
  37. data/rbi/increase/models/lockbox_address.rbi +228 -0
  38. data/rbi/increase/models/lockbox_address_create_params.rbi +46 -0
  39. data/rbi/increase/models/{lockbox_list_params.rbi → lockbox_address_list_params.rbi} +9 -18
  40. data/rbi/increase/models/{bookkeeping_entry_set_retrieve_params.rbi → lockbox_address_retrieve_params.rbi} +8 -8
  41. data/rbi/increase/models/lockbox_address_update_params.rbi +116 -0
  42. data/rbi/increase/models/lockbox_recipient.rbi +182 -0
  43. data/rbi/increase/models/{lockbox_create_params.rbi → lockbox_recipient_create_params.rbi} +19 -8
  44. data/rbi/increase/models/lockbox_recipient_list_params.rbi +190 -0
  45. data/rbi/increase/models/{bookkeeping_entry_retrieve_params.rbi → lockbox_recipient_retrieve_params.rbi} +8 -8
  46. data/rbi/increase/models/lockbox_recipient_update_params.rbi +129 -0
  47. data/rbi/increase/models/simulations/card_token_create_params.rbi +7 -0
  48. data/rbi/increase/models/simulations/inbound_mail_item_create_params.rbi +22 -8
  49. data/rbi/increase/models.rbi +16 -38
  50. data/rbi/increase/resources/inbound_mail_items.rbi +6 -3
  51. data/rbi/increase/resources/{bookkeeping_entry_sets.rbi → lockbox_addresses.rbi} +35 -24
  52. data/rbi/increase/resources/{lockboxes.rbi → lockbox_recipients.rbi} +31 -26
  53. data/rbi/increase/resources/simulations/inbound_mail_items.rbi +6 -3
  54. data/sig/increase/client.rbs +3 -7
  55. data/sig/increase/models/card_push_transfer.rbs +4 -1
  56. data/sig/increase/models/card_token_capabilities.rbs +4 -1
  57. data/sig/increase/models/card_validation.rbs +4 -1
  58. data/sig/increase/models/check_deposit.rbs +4 -4
  59. data/sig/increase/models/inbound_mail_item.rbs +20 -5
  60. data/sig/increase/models/inbound_mail_item_list_params.rbs +12 -5
  61. data/sig/increase/models/lockbox_address.rbs +117 -0
  62. data/sig/increase/models/{lockbox_retrieve_params.rbs → lockbox_address_create_params.rbs} +8 -6
  63. data/sig/increase/models/{lockbox_list_params.rbs → lockbox_address_list_params.rbs} +8 -15
  64. data/sig/increase/models/{bookkeeping_entry_set_retrieve_params.rbs → lockbox_address_retrieve_params.rbs} +6 -6
  65. data/sig/increase/models/lockbox_address_update_params.rbs +59 -0
  66. data/sig/increase/models/lockbox_recipient.rbs +92 -0
  67. data/sig/increase/models/{lockbox_create_params.rbs → lockbox_recipient_create_params.rbs} +12 -3
  68. data/sig/increase/models/lockbox_recipient_list_params.rbs +100 -0
  69. data/sig/increase/models/{bookkeeping_entry_retrieve_params.rbs → lockbox_recipient_retrieve_params.rbs} +6 -6
  70. data/sig/increase/models/lockbox_recipient_update_params.rbs +66 -0
  71. data/sig/increase/models/simulations/card_token_create_params.rbs +4 -1
  72. data/sig/increase/models/simulations/inbound_mail_item_create_params.rbs +18 -5
  73. data/sig/increase/models.rbs +15 -31
  74. data/sig/increase/resources/inbound_mail_items.rbs +2 -1
  75. data/sig/increase/resources/lockbox_addresses.rbs +32 -0
  76. data/sig/increase/resources/{lockboxes.rbs → lockbox_recipients.rbs} +11 -9
  77. data/sig/increase/resources/simulations/inbound_mail_items.rbs +2 -1
  78. metadata +38 -68
  79. data/lib/increase/models/bookkeeping_account.rb +0 -104
  80. data/lib/increase/models/bookkeeping_account_balance_params.rb +0 -30
  81. data/lib/increase/models/bookkeeping_account_create_params.rb +0 -60
  82. data/lib/increase/models/bookkeeping_account_list_params.rb +0 -45
  83. data/lib/increase/models/bookkeeping_account_update_params.rb +0 -30
  84. data/lib/increase/models/bookkeeping_balance_lookup.rb +0 -54
  85. data/lib/increase/models/bookkeeping_entry.rb +0 -79
  86. data/lib/increase/models/bookkeeping_entry_list_params.rb +0 -42
  87. data/lib/increase/models/bookkeeping_entry_retrieve_params.rb +0 -22
  88. data/lib/increase/models/bookkeeping_entry_set.rb +0 -116
  89. data/lib/increase/models/bookkeeping_entry_set_create_params.rb +0 -67
  90. data/lib/increase/models/bookkeeping_entry_set_list_params.rb +0 -53
  91. data/lib/increase/models/bookkeeping_entry_set_retrieve_params.rb +0 -22
  92. data/lib/increase/models/lockbox.rb +0 -185
  93. data/lib/increase/models/lockbox_create_params.rb +0 -38
  94. data/lib/increase/models/lockbox_retrieve_params.rb +0 -22
  95. data/lib/increase/models/lockbox_update_params.rb +0 -63
  96. data/lib/increase/resources/bookkeeping_accounts.rb +0 -122
  97. data/lib/increase/resources/bookkeeping_entries.rb +0 -65
  98. data/lib/increase/resources/bookkeeping_entry_sets.rb +0 -96
  99. data/lib/increase/resources/lockboxes.rb +0 -123
  100. data/rbi/increase/models/bookkeeping_account.rbi +0 -165
  101. data/rbi/increase/models/bookkeeping_account_balance_params.rbi +0 -57
  102. data/rbi/increase/models/bookkeeping_account_create_params.rbi +0 -130
  103. data/rbi/increase/models/bookkeeping_account_list_params.rbi +0 -79
  104. data/rbi/increase/models/bookkeeping_account_update_params.rbi +0 -54
  105. data/rbi/increase/models/bookkeeping_balance_lookup.rbi +0 -85
  106. data/rbi/increase/models/bookkeeping_entry.rbi +0 -108
  107. data/rbi/increase/models/bookkeeping_entry_list_params.rbi +0 -73
  108. data/rbi/increase/models/bookkeeping_entry_set.rbi +0 -162
  109. data/rbi/increase/models/bookkeeping_entry_set_create_params.rbi +0 -110
  110. data/rbi/increase/models/bookkeeping_entry_set_list_params.rbi +0 -90
  111. data/rbi/increase/models/lockbox.rbi +0 -251
  112. data/rbi/increase/models/lockbox_retrieve_params.rbi +0 -40
  113. data/rbi/increase/models/lockbox_update_params.rbi +0 -131
  114. data/rbi/increase/resources/bookkeeping_accounts.rbi +0 -94
  115. data/rbi/increase/resources/bookkeeping_entries.rbi +0 -47
  116. data/sig/increase/models/bookkeeping_account.rbs +0 -74
  117. data/sig/increase/models/bookkeeping_account_balance_params.rbs +0 -30
  118. data/sig/increase/models/bookkeeping_account_create_params.rbs +0 -63
  119. data/sig/increase/models/bookkeeping_account_list_params.rbs +0 -38
  120. data/sig/increase/models/bookkeeping_account_update_params.rbs +0 -28
  121. data/sig/increase/models/bookkeeping_balance_lookup.rbs +0 -40
  122. data/sig/increase/models/bookkeeping_entry.rbs +0 -55
  123. data/sig/increase/models/bookkeeping_entry_list_params.rbs +0 -38
  124. data/sig/increase/models/bookkeeping_entry_set.rbs +0 -78
  125. data/sig/increase/models/bookkeeping_entry_set_create_params.rbs +0 -52
  126. data/sig/increase/models/bookkeeping_entry_set_list_params.rbs +0 -49
  127. data/sig/increase/models/lockbox.rbs +0 -129
  128. data/sig/increase/models/lockbox_update_params.rbs +0 -66
  129. data/sig/increase/resources/bookkeeping_accounts.rbs +0 -34
  130. data/sig/increase/resources/bookkeeping_entries.rbs +0 -19
  131. data/sig/increase/resources/bookkeeping_entry_sets.rbs +0 -27
@@ -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,123 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Increase
4
- module Resources
5
- class Lockboxes
6
- # Create a Lockbox
7
- #
8
- # @overload create(account_id:, description: nil, recipient_name: nil, request_options: {})
9
- #
10
- # @param account_id [String] The Account checks sent to this Lockbox should be deposited into.
11
- #
12
- # @param description [String] The description you choose for the Lockbox, for display purposes.
13
- #
14
- # @param recipient_name [String] The name of the recipient that will receive mail at this location.
15
- #
16
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
17
- #
18
- # @return [Increase::Models::Lockbox]
19
- #
20
- # @see Increase::Models::LockboxCreateParams
21
- def create(params)
22
- parsed, options = Increase::LockboxCreateParams.dump_request(params)
23
- @client.request(
24
- method: :post,
25
- path: "lockboxes",
26
- body: parsed,
27
- model: Increase::Lockbox,
28
- options: options
29
- )
30
- end
31
-
32
- # Retrieve a Lockbox
33
- #
34
- # @overload retrieve(lockbox_id, request_options: {})
35
- #
36
- # @param lockbox_id [String] The identifier of the Lockbox to retrieve.
37
- #
38
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
39
- #
40
- # @return [Increase::Models::Lockbox]
41
- #
42
- # @see Increase::Models::LockboxRetrieveParams
43
- def retrieve(lockbox_id, params = {})
44
- @client.request(
45
- method: :get,
46
- path: ["lockboxes/%1$s", lockbox_id],
47
- model: Increase::Lockbox,
48
- options: params[:request_options]
49
- )
50
- end
51
-
52
- # Update a Lockbox
53
- #
54
- # @overload update(lockbox_id, check_deposit_behavior: nil, description: nil, recipient_name: nil, request_options: {})
55
- #
56
- # @param lockbox_id [String] The identifier of the Lockbox.
57
- #
58
- # @param check_deposit_behavior [Symbol, Increase::Models::LockboxUpdateParams::CheckDepositBehavior] This indicates if checks mailed to this lockbox will be deposited.
59
- #
60
- # @param description [String] The description you choose for the Lockbox.
61
- #
62
- # @param recipient_name [String] The recipient name you choose for the Lockbox.
63
- #
64
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
65
- #
66
- # @return [Increase::Models::Lockbox]
67
- #
68
- # @see Increase::Models::LockboxUpdateParams
69
- def update(lockbox_id, params = {})
70
- parsed, options = Increase::LockboxUpdateParams.dump_request(params)
71
- @client.request(
72
- method: :patch,
73
- path: ["lockboxes/%1$s", lockbox_id],
74
- body: parsed,
75
- model: Increase::Lockbox,
76
- options: options
77
- )
78
- end
79
-
80
- # Some parameter documentations has been truncated, see
81
- # {Increase::Models::LockboxListParams} for more details.
82
- #
83
- # List Lockboxes
84
- #
85
- # @overload list(account_id: nil, created_at: nil, cursor: nil, idempotency_key: nil, limit: nil, request_options: {})
86
- #
87
- # @param account_id [String] Filter Lockboxes to those associated with the provided Account.
88
- #
89
- # @param created_at [Increase::Models::LockboxListParams::CreatedAt]
90
- #
91
- # @param cursor [String] Return the page of entries after this one.
92
- #
93
- # @param idempotency_key [String] Filter records to the one with the specified `idempotency_key` you chose for tha
94
- #
95
- # @param limit [Integer] Limit the size of the list that is returned. The default (and maximum) is 100 ob
96
- #
97
- # @param request_options [Increase::RequestOptions, Hash{Symbol=>Object}, nil]
98
- #
99
- # @return [Increase::Internal::Page<Increase::Models::Lockbox>]
100
- #
101
- # @see Increase::Models::LockboxListParams
102
- def list(params = {})
103
- parsed, options = Increase::LockboxListParams.dump_request(params)
104
- query = Increase::Internal::Util.encode_query_params(parsed)
105
- @client.request(
106
- method: :get,
107
- path: "lockboxes",
108
- query: query,
109
- page: Increase::Internal::Page,
110
- model: Increase::Lockbox,
111
- options: options
112
- )
113
- end
114
-
115
- # @api private
116
- #
117
- # @param client [Increase::Client]
118
- def initialize(client:)
119
- @client = client
120
- end
121
- end
122
- end
123
- 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
@@ -1,130 +0,0 @@
1
- # typed: strong
2
-
3
- module Increase
4
- module Models
5
- class BookkeepingAccountCreateParams < 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::BookkeepingAccountCreateParams,
13
- Increase::Internal::AnyHash
14
- )
15
- end
16
-
17
- # The name you choose for the account.
18
- sig { returns(String) }
19
- attr_accessor :name
20
-
21
- # The account, if `compliance_category` is `commingled_cash`.
22
- sig { returns(T.nilable(String)) }
23
- attr_reader :account_id
24
-
25
- sig { params(account_id: String).void }
26
- attr_writer :account_id
27
-
28
- # The account compliance category.
29
- sig do
30
- returns(
31
- T.nilable(
32
- Increase::BookkeepingAccountCreateParams::ComplianceCategory::OrSymbol
33
- )
34
- )
35
- end
36
- attr_reader :compliance_category
37
-
38
- sig do
39
- params(
40
- compliance_category:
41
- Increase::BookkeepingAccountCreateParams::ComplianceCategory::OrSymbol
42
- ).void
43
- end
44
- attr_writer :compliance_category
45
-
46
- # The entity, if `compliance_category` is `customer_balance`.
47
- sig { returns(T.nilable(String)) }
48
- attr_reader :entity_id
49
-
50
- sig { params(entity_id: String).void }
51
- attr_writer :entity_id
52
-
53
- sig do
54
- params(
55
- name: String,
56
- account_id: String,
57
- compliance_category:
58
- Increase::BookkeepingAccountCreateParams::ComplianceCategory::OrSymbol,
59
- entity_id: String,
60
- request_options: Increase::RequestOptions::OrHash
61
- ).returns(T.attached_class)
62
- end
63
- def self.new(
64
- # The name you choose for the account.
65
- name:,
66
- # The account, if `compliance_category` is `commingled_cash`.
67
- account_id: nil,
68
- # The account compliance category.
69
- compliance_category: nil,
70
- # The entity, if `compliance_category` is `customer_balance`.
71
- entity_id: nil,
72
- request_options: {}
73
- )
74
- end
75
-
76
- sig do
77
- override.returns(
78
- {
79
- name: String,
80
- account_id: String,
81
- compliance_category:
82
- Increase::BookkeepingAccountCreateParams::ComplianceCategory::OrSymbol,
83
- entity_id: String,
84
- request_options: Increase::RequestOptions
85
- }
86
- )
87
- end
88
- def to_hash
89
- end
90
-
91
- # The account compliance category.
92
- module ComplianceCategory
93
- extend Increase::Internal::Type::Enum
94
-
95
- TaggedSymbol =
96
- T.type_alias do
97
- T.all(
98
- Symbol,
99
- Increase::BookkeepingAccountCreateParams::ComplianceCategory
100
- )
101
- end
102
- OrSymbol = T.type_alias { T.any(Symbol, String) }
103
-
104
- # A cash in an commingled Increase Account.
105
- COMMINGLED_CASH =
106
- T.let(
107
- :commingled_cash,
108
- Increase::BookkeepingAccountCreateParams::ComplianceCategory::TaggedSymbol
109
- )
110
-
111
- # A customer balance.
112
- CUSTOMER_BALANCE =
113
- T.let(
114
- :customer_balance,
115
- Increase::BookkeepingAccountCreateParams::ComplianceCategory::TaggedSymbol
116
- )
117
-
118
- sig do
119
- override.returns(
120
- T::Array[
121
- Increase::BookkeepingAccountCreateParams::ComplianceCategory::TaggedSymbol
122
- ]
123
- )
124
- end
125
- def self.values
126
- end
127
- end
128
- end
129
- end
130
- end