modern_treasury 0.1.0.pre.alpha.21 → 0.1.0.pre.alpha.22
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 +27 -0
- data/README.md +1 -1
- data/lib/modern_treasury/errors.rb +22 -0
- data/lib/modern_treasury/internal/transport/base_client.rb +10 -2
- data/lib/modern_treasury/internal/type/array_of.rb +6 -1
- data/lib/modern_treasury/internal/type/base_model.rb +77 -23
- data/lib/modern_treasury/internal/type/boolean.rb +7 -1
- data/lib/modern_treasury/internal/type/converter.rb +42 -34
- data/lib/modern_treasury/internal/type/enum.rb +10 -2
- data/lib/modern_treasury/internal/type/file_input.rb +6 -1
- data/lib/modern_treasury/internal/type/hash_of.rb +6 -1
- data/lib/modern_treasury/internal/type/union.rb +12 -7
- data/lib/modern_treasury/internal/type/unknown.rb +7 -1
- data/lib/modern_treasury/models/bulk_request_create_params.rb +143 -18
- data/lib/modern_treasury/models/bulk_result.rb +5 -3
- data/lib/modern_treasury/models/counterparty_create_params.rb +1 -0
- data/lib/modern_treasury/models/external_account_create_params.rb +1 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -0
- data/lib/modern_treasury/models/internal_account.rb +146 -3
- data/lib/modern_treasury/models/internal_account_create_params.rb +138 -1
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +23 -0
- data/lib/modern_treasury/models/invoice.rb +10 -1
- data/lib/modern_treasury/models/ledger_account.rb +9 -1
- data/lib/modern_treasury/models/ledger_account_category.rb +9 -1
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +8 -1
- data/lib/modern_treasury/models/ledger_account_list_params.rb +15 -1
- data/lib/modern_treasury/models/payment_order.rb +21 -9
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +8 -7
- data/lib/modern_treasury/models/payment_order_create_params.rb +8 -7
- data/lib/modern_treasury/models/payment_order_list_params.rb +9 -1
- data/lib/modern_treasury/models/payment_order_update_params.rb +9 -7
- data/lib/modern_treasury/models/payment_reference.rb +4 -1
- data/lib/modern_treasury/models/return_create_params.rb +75 -1
- data/lib/modern_treasury/models/return_object.rb +80 -2
- data/lib/modern_treasury/models/routing_detail.rb +1 -0
- data/lib/modern_treasury/models/routing_detail_create_params.rb +1 -0
- data/lib/modern_treasury/models/transaction.rb +1 -0
- data/lib/modern_treasury/models/transaction_create_params.rb +9 -1
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +9 -1
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +1 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +1 -0
- data/lib/modern_treasury/models.rb +0 -18
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +2 -2
- data/lib/modern_treasury/resources/internal_accounts.rb +3 -1
- data/lib/modern_treasury/resources/ledger_account_categories.rb +3 -1
- data/lib/modern_treasury/resources/ledger_accounts.rb +5 -1
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -111
- data/lib/modern_treasury/resources/ledgerable_events.rb +0 -51
- data/lib/modern_treasury/resources/payment_orders.rb +6 -4
- data/lib/modern_treasury/resources/returns.rb +3 -1
- data/lib/modern_treasury/resources/transactions.rb +3 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +0 -9
- data/rbi/modern_treasury/errors.rbi +16 -0
- data/rbi/modern_treasury/internal/type/boolean.rbi +2 -0
- data/rbi/modern_treasury/internal/type/converter.rbi +15 -15
- data/rbi/modern_treasury/internal/type/union.rbi +5 -0
- data/rbi/modern_treasury/internal/type/unknown.rbi +2 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +234 -18
- data/rbi/modern_treasury/models/bulk_result.rbi +2 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account.rbi +328 -5
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +333 -0
- data/rbi/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +37 -0
- data/rbi/modern_treasury/models/invoice.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_account.rbi +8 -0
- data/rbi/modern_treasury/models/ledger_account_category.rbi +8 -0
- data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +9 -0
- data/rbi/modern_treasury/models/ledger_account_list_params.rbi +22 -0
- data/rbi/modern_treasury/models/payment_order.rbi +39 -14
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +14 -9
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +14 -9
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +14 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +19 -9
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -5
- data/rbi/modern_treasury/models/return_create_params.rbi +114 -0
- data/rbi/modern_treasury/models/return_object.rbi +131 -5
- data/rbi/modern_treasury/models/routing_detail.rbi +5 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/transaction.rbi +5 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +8 -0
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +8 -0
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +5 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +5 -0
- data/rbi/modern_treasury/models.rbi +0 -25
- data/rbi/modern_treasury/resources/bulk_requests.rbi +1 -0
- data/rbi/modern_treasury/resources/internal_accounts/balance_reports.rbi +7 -3
- data/rbi/modern_treasury/resources/internal_accounts.rbi +7 -0
- data/rbi/modern_treasury/resources/ledger_account_categories.rbi +2 -0
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +4 -0
- data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -97
- data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -38
- data/rbi/modern_treasury/resources/payment_orders.rbi +11 -9
- data/rbi/modern_treasury/resources/returns.rbi +6 -0
- data/rbi/modern_treasury/resources/transactions.rbi +3 -0
- data/sig/modern_treasury/errors.rbs +9 -0
- data/sig/modern_treasury/internal/type/converter.rbs +7 -1
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +101 -0
- data/sig/modern_treasury/models/bulk_result.rbs +1 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +2 -0
- data/sig/modern_treasury/models/internal_account.rbs +147 -3
- data/sig/modern_treasury/models/internal_account_create_params.rbs +143 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +10 -0
- data/sig/modern_treasury/models/invoice.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +16 -0
- data/sig/modern_treasury/models/payment_order.rbs +15 -2
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_create_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_list_params.rbs +9 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +4 -0
- data/sig/modern_treasury/models/payment_reference.rbs +8 -2
- data/sig/modern_treasury/models/return_create_params.rbs +47 -0
- data/sig/modern_treasury/models/return_object.rbs +55 -2
- data/sig/modern_treasury/models/routing_detail.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction.rbs +2 -0
- data/sig/modern_treasury/models/transaction_create_params.rbs +5 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +5 -0
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +2 -0
- data/sig/modern_treasury/models.rbs +0 -18
- data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +1 -1
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -0
- data/sig/modern_treasury/resources/ledger_accounts.rbs +2 -0
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -30
- data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -13
- data/sig/modern_treasury/resources/payment_orders.rbs +1 -0
- data/sig/modern_treasury/resources/returns.rbs +1 -0
- data/sig/modern_treasury/resources/transactions.rbs +1 -0
- metadata +2 -29
- data/lib/modern_treasury/models/ledger_event_handler.rb +0 -222
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +0 -177
- data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +0 -14
- data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +0 -58
- data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +0 -14
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +0 -59
- data/lib/modern_treasury/models/ledgerable_event.rb +0 -92
- data/lib/modern_treasury/models/ledgerable_event_create_params.rb +0 -50
- data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +0 -14
- data/rbi/modern_treasury/models/ledger_event_handler.rbi +0 -322
- data/rbi/modern_treasury/models/ledger_event_handler_create_params.rbi +0 -303
- data/rbi/modern_treasury/models/ledger_event_handler_delete_params.rbi +0 -32
- data/rbi/modern_treasury/models/ledger_event_handler_list_params.rbi +0 -92
- data/rbi/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/models/ledger_event_handler_variable.rbi +0 -98
- data/rbi/modern_treasury/models/ledgerable_event.rbi +0 -108
- data/rbi/modern_treasury/models/ledgerable_event_create_params.rbi +0 -75
- data/rbi/modern_treasury/models/ledgerable_event_retrieve_params.rbi +0 -32
- data/sig/modern_treasury/models/ledger_event_handler.rbs +0 -149
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +0 -127
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +0 -15
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +0 -54
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +0 -36
- data/sig/modern_treasury/models/ledgerable_event.rbs +0 -65
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +0 -43
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +0 -15
@@ -1,177 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ModernTreasury
|
4
|
-
module Models
|
5
|
-
# @see ModernTreasury::Resources::LedgerEventHandlers#create
|
6
|
-
class LedgerEventHandlerCreateParams < ModernTreasury::Internal::Type::BaseModel
|
7
|
-
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
8
|
-
include ModernTreasury::Internal::Type::RequestParameters
|
9
|
-
|
10
|
-
# @!attribute ledger_transaction_template
|
11
|
-
# @deprecated
|
12
|
-
#
|
13
|
-
# @return [ModernTreasury::Models::LedgerEventHandlerCreateParams::LedgerTransactionTemplate]
|
14
|
-
required :ledger_transaction_template,
|
15
|
-
-> { ModernTreasury::LedgerEventHandlerCreateParams::LedgerTransactionTemplate }
|
16
|
-
|
17
|
-
# @!attribute name
|
18
|
-
# Name of the ledger event handler.
|
19
|
-
#
|
20
|
-
# @return [String]
|
21
|
-
required :name, String
|
22
|
-
|
23
|
-
# @!attribute conditions
|
24
|
-
# @deprecated
|
25
|
-
#
|
26
|
-
# @return [ModernTreasury::Models::LedgerEventHandlerCreateParams::Conditions, nil]
|
27
|
-
optional :conditions, -> { ModernTreasury::LedgerEventHandlerCreateParams::Conditions }, nil?: true
|
28
|
-
|
29
|
-
# @!attribute description
|
30
|
-
# An optional description.
|
31
|
-
#
|
32
|
-
# @return [String, nil]
|
33
|
-
optional :description, String, nil?: true
|
34
|
-
|
35
|
-
# @!attribute ledger_id
|
36
|
-
# The id of the ledger that this account belongs to.
|
37
|
-
#
|
38
|
-
# @return [String, nil]
|
39
|
-
optional :ledger_id, String
|
40
|
-
|
41
|
-
# @!attribute metadata
|
42
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
43
|
-
# strings.
|
44
|
-
#
|
45
|
-
# @return [Hash{Symbol=>String}, nil]
|
46
|
-
optional :metadata, ModernTreasury::Internal::Type::HashOf[String], nil?: true
|
47
|
-
|
48
|
-
# @!attribute variables
|
49
|
-
# @deprecated
|
50
|
-
#
|
51
|
-
# @return [Hash{Symbol=>ModernTreasury::Models::LedgerEventHandlerVariable}, nil]
|
52
|
-
optional :variables,
|
53
|
-
-> { ModernTreasury::Internal::Type::HashOf[ModernTreasury::LedgerEventHandlerVariable] },
|
54
|
-
nil?: true
|
55
|
-
|
56
|
-
# @!method initialize(ledger_transaction_template:, name:, conditions: nil, description: nil, ledger_id: nil, metadata: nil, variables: nil, request_options: {})
|
57
|
-
# Some parameter documentations has been truncated, see
|
58
|
-
# {ModernTreasury::Models::LedgerEventHandlerCreateParams} for more details.
|
59
|
-
#
|
60
|
-
# @param ledger_transaction_template [ModernTreasury::Models::LedgerEventHandlerCreateParams::LedgerTransactionTemplate]
|
61
|
-
#
|
62
|
-
# @param name [String] Name of the ledger event handler.
|
63
|
-
#
|
64
|
-
# @param conditions [ModernTreasury::Models::LedgerEventHandlerCreateParams::Conditions, nil]
|
65
|
-
#
|
66
|
-
# @param description [String, nil] An optional description.
|
67
|
-
#
|
68
|
-
# @param ledger_id [String] The id of the ledger that this account belongs to.
|
69
|
-
#
|
70
|
-
# @param metadata [Hash{Symbol=>String}, nil] Additional data represented as key-value pairs. Both the key and value must be s
|
71
|
-
#
|
72
|
-
# @param variables [Hash{Symbol=>ModernTreasury::Models::LedgerEventHandlerVariable}, nil]
|
73
|
-
#
|
74
|
-
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
75
|
-
|
76
|
-
# @deprecated
|
77
|
-
class LedgerTransactionTemplate < ModernTreasury::Internal::Type::BaseModel
|
78
|
-
# @!attribute description
|
79
|
-
# An optional description for internal use.
|
80
|
-
#
|
81
|
-
# @return [String, nil]
|
82
|
-
required :description, String, nil?: true
|
83
|
-
|
84
|
-
# @!attribute effective_at
|
85
|
-
# The timestamp (ISO8601 format) at which the ledger transaction happened for
|
86
|
-
# reporting purposes.
|
87
|
-
#
|
88
|
-
# @return [String, nil]
|
89
|
-
required :effective_at, String, nil?: true
|
90
|
-
|
91
|
-
# @!attribute ledger_entries
|
92
|
-
# An array of ledger entry objects.
|
93
|
-
#
|
94
|
-
# @return [Array<ModernTreasury::Models::LedgerEventHandlerCreateParams::LedgerTransactionTemplate::LedgerEntry>]
|
95
|
-
required :ledger_entries,
|
96
|
-
-> {
|
97
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LedgerEventHandlerCreateParams::LedgerTransactionTemplate::LedgerEntry]
|
98
|
-
}
|
99
|
-
|
100
|
-
# @!attribute status
|
101
|
-
# To post a ledger transaction at creation, use `posted`.
|
102
|
-
#
|
103
|
-
# @return [String, nil]
|
104
|
-
required :status, String, nil?: true
|
105
|
-
|
106
|
-
# @!method initialize(description:, effective_at:, ledger_entries:, status:)
|
107
|
-
# Some parameter documentations has been truncated, see
|
108
|
-
# {ModernTreasury::Models::LedgerEventHandlerCreateParams::LedgerTransactionTemplate}
|
109
|
-
# for more details.
|
110
|
-
#
|
111
|
-
# @param description [String, nil] An optional description for internal use.
|
112
|
-
#
|
113
|
-
# @param effective_at [String, nil] The timestamp (ISO8601 format) at which the ledger transaction happened for repo
|
114
|
-
#
|
115
|
-
# @param ledger_entries [Array<ModernTreasury::Models::LedgerEventHandlerCreateParams::LedgerTransactionTemplate::LedgerEntry>] An array of ledger entry objects.
|
116
|
-
#
|
117
|
-
# @param status [String, nil] To post a ledger transaction at creation, use `posted`.
|
118
|
-
|
119
|
-
# @deprecated
|
120
|
-
class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
|
121
|
-
# @!attribute amount
|
122
|
-
# The LHS of the conditional.
|
123
|
-
#
|
124
|
-
# @return [String]
|
125
|
-
required :amount, String
|
126
|
-
|
127
|
-
# @!attribute direction
|
128
|
-
# What the operator between the `field` and `value` is.
|
129
|
-
#
|
130
|
-
# @return [String]
|
131
|
-
required :direction, String
|
132
|
-
|
133
|
-
# @!attribute ledger_account_id
|
134
|
-
# The RHS of the conditional.
|
135
|
-
#
|
136
|
-
# @return [String]
|
137
|
-
required :ledger_account_id, String
|
138
|
-
|
139
|
-
# @!method initialize(amount:, direction:, ledger_account_id:)
|
140
|
-
# @param amount [String] The LHS of the conditional.
|
141
|
-
#
|
142
|
-
# @param direction [String] What the operator between the `field` and `value` is.
|
143
|
-
#
|
144
|
-
# @param ledger_account_id [String] The RHS of the conditional.
|
145
|
-
end
|
146
|
-
end
|
147
|
-
|
148
|
-
# @deprecated
|
149
|
-
class Conditions < ModernTreasury::Internal::Type::BaseModel
|
150
|
-
# @!attribute field
|
151
|
-
# The LHS of the conditional.
|
152
|
-
#
|
153
|
-
# @return [String]
|
154
|
-
required :field, String
|
155
|
-
|
156
|
-
# @!attribute operator
|
157
|
-
# What the operator between the `field` and `value` is.
|
158
|
-
#
|
159
|
-
# @return [String]
|
160
|
-
required :operator, String
|
161
|
-
|
162
|
-
# @!attribute value
|
163
|
-
# The RHS of the conditional.
|
164
|
-
#
|
165
|
-
# @return [String]
|
166
|
-
required :value, String
|
167
|
-
|
168
|
-
# @!method initialize(field:, operator:, value:)
|
169
|
-
# @param field [String] The LHS of the conditional.
|
170
|
-
#
|
171
|
-
# @param operator [String] What the operator between the `field` and `value` is.
|
172
|
-
#
|
173
|
-
# @param value [String] The RHS of the conditional.
|
174
|
-
end
|
175
|
-
end
|
176
|
-
end
|
177
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ModernTreasury
|
4
|
-
module Models
|
5
|
-
# @see ModernTreasury::Resources::LedgerEventHandlers#delete
|
6
|
-
class LedgerEventHandlerDeleteParams < ModernTreasury::Internal::Type::BaseModel
|
7
|
-
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
8
|
-
include ModernTreasury::Internal::Type::RequestParameters
|
9
|
-
|
10
|
-
# @!method initialize(request_options: {})
|
11
|
-
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ModernTreasury
|
4
|
-
module Models
|
5
|
-
# @see ModernTreasury::Resources::LedgerEventHandlers#list
|
6
|
-
class LedgerEventHandlerListParams < ModernTreasury::Internal::Type::BaseModel
|
7
|
-
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
8
|
-
include ModernTreasury::Internal::Type::RequestParameters
|
9
|
-
|
10
|
-
# @!attribute after_cursor
|
11
|
-
#
|
12
|
-
# @return [String, nil]
|
13
|
-
optional :after_cursor, String, nil?: true
|
14
|
-
|
15
|
-
# @!attribute created_at
|
16
|
-
# Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the
|
17
|
-
# posted at timestamp. For example, for all times after Jan 1 2000 12:00 UTC, use
|
18
|
-
# created_at%5Bgt%5D=2000-01-01T12:00:00Z.
|
19
|
-
#
|
20
|
-
# @return [Hash{Symbol=>Time}, nil]
|
21
|
-
optional :created_at, ModernTreasury::Internal::Type::HashOf[Time]
|
22
|
-
|
23
|
-
# @!attribute metadata
|
24
|
-
# For example, if you want to query for records with metadata key `Type` and value
|
25
|
-
# `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query
|
26
|
-
# parameters.
|
27
|
-
#
|
28
|
-
# @return [Hash{Symbol=>String}, nil]
|
29
|
-
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
30
|
-
|
31
|
-
# @!attribute name
|
32
|
-
#
|
33
|
-
# @return [String, nil]
|
34
|
-
optional :name, String
|
35
|
-
|
36
|
-
# @!attribute per_page
|
37
|
-
#
|
38
|
-
# @return [Integer, nil]
|
39
|
-
optional :per_page, Integer
|
40
|
-
|
41
|
-
# @!method initialize(after_cursor: nil, created_at: nil, metadata: nil, name: nil, per_page: nil, request_options: {})
|
42
|
-
# Some parameter documentations has been truncated, see
|
43
|
-
# {ModernTreasury::Models::LedgerEventHandlerListParams} for more details.
|
44
|
-
#
|
45
|
-
# @param after_cursor [String, nil]
|
46
|
-
#
|
47
|
-
# @param created_at [Hash{Symbol=>Time}] Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the pos
|
48
|
-
#
|
49
|
-
# @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
|
50
|
-
#
|
51
|
-
# @param name [String]
|
52
|
-
#
|
53
|
-
# @param per_page [Integer]
|
54
|
-
#
|
55
|
-
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ModernTreasury
|
4
|
-
module Models
|
5
|
-
# @see ModernTreasury::Resources::LedgerEventHandlers#retrieve
|
6
|
-
class LedgerEventHandlerRetrieveParams < ModernTreasury::Internal::Type::BaseModel
|
7
|
-
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
8
|
-
include ModernTreasury::Internal::Type::RequestParameters
|
9
|
-
|
10
|
-
# @!method initialize(request_options: {})
|
11
|
-
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ModernTreasury
|
4
|
-
module Models
|
5
|
-
# @deprecated
|
6
|
-
class LedgerEventHandlerVariable < ModernTreasury::Internal::Type::BaseModel
|
7
|
-
# @!attribute query
|
8
|
-
# @deprecated
|
9
|
-
#
|
10
|
-
# @return [ModernTreasury::Models::LedgerEventHandlerVariable::Query]
|
11
|
-
required :query, -> { ModernTreasury::LedgerEventHandlerVariable::Query }
|
12
|
-
|
13
|
-
# @!attribute type
|
14
|
-
# The type of object this variable is. Currently, only "ledger_account" is
|
15
|
-
# supported.
|
16
|
-
#
|
17
|
-
# @return [String]
|
18
|
-
required :type, String
|
19
|
-
|
20
|
-
# @!method initialize(query:, type:)
|
21
|
-
# Some parameter documentations has been truncated, see
|
22
|
-
# {ModernTreasury::Models::LedgerEventHandlerVariable} for more details.
|
23
|
-
#
|
24
|
-
# @param query [ModernTreasury::Models::LedgerEventHandlerVariable::Query]
|
25
|
-
#
|
26
|
-
# @param type [String] The type of object this variable is. Currently, only "ledger_account" is support
|
27
|
-
|
28
|
-
# @deprecated
|
29
|
-
#
|
30
|
-
# @see ModernTreasury::Models::LedgerEventHandlerVariable#query
|
31
|
-
class Query < ModernTreasury::Internal::Type::BaseModel
|
32
|
-
# @!attribute field
|
33
|
-
# The LHS of the conditional.
|
34
|
-
#
|
35
|
-
# @return [String]
|
36
|
-
required :field, String
|
37
|
-
|
38
|
-
# @!attribute operator
|
39
|
-
# What the operator between the `field` and `value` is.
|
40
|
-
#
|
41
|
-
# @return [String]
|
42
|
-
required :operator, String
|
43
|
-
|
44
|
-
# @!attribute value
|
45
|
-
# The RHS of the conditional.
|
46
|
-
#
|
47
|
-
# @return [String]
|
48
|
-
required :value, String
|
49
|
-
|
50
|
-
# @!method initialize(field:, operator:, value:)
|
51
|
-
# @param field [String] The LHS of the conditional.
|
52
|
-
#
|
53
|
-
# @param operator [String] What the operator between the `field` and `value` is.
|
54
|
-
#
|
55
|
-
# @param value [String] The RHS of the conditional.
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
@@ -1,92 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ModernTreasury
|
4
|
-
module Models
|
5
|
-
# @deprecated
|
6
|
-
#
|
7
|
-
# @see ModernTreasury::Resources::LedgerableEvents#create
|
8
|
-
class LedgerableEvent < ModernTreasury::Internal::Type::BaseModel
|
9
|
-
# @!attribute id
|
10
|
-
#
|
11
|
-
# @return [String]
|
12
|
-
required :id, String
|
13
|
-
|
14
|
-
# @!attribute created_at
|
15
|
-
#
|
16
|
-
# @return [Time]
|
17
|
-
required :created_at, Time
|
18
|
-
|
19
|
-
# @!attribute custom_data
|
20
|
-
# Additionally data to be used by the Ledger Event Handler.
|
21
|
-
#
|
22
|
-
# @return [Object, nil]
|
23
|
-
required :custom_data, ModernTreasury::Internal::Type::Unknown, nil?: true
|
24
|
-
|
25
|
-
# @!attribute description
|
26
|
-
# Description of the ledgerable event.
|
27
|
-
#
|
28
|
-
# @return [String, nil]
|
29
|
-
required :description, String, nil?: true
|
30
|
-
|
31
|
-
# @!attribute ledger_event_handler_id
|
32
|
-
# Id of the ledger event handler that is used to create a ledger transaction.
|
33
|
-
#
|
34
|
-
# @return [String]
|
35
|
-
required :ledger_event_handler_id, String
|
36
|
-
|
37
|
-
# @!attribute live_mode
|
38
|
-
# This field will be true if this object exists in the live environment or false
|
39
|
-
# if it exists in the test environment.
|
40
|
-
#
|
41
|
-
# @return [Boolean]
|
42
|
-
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
43
|
-
|
44
|
-
# @!attribute metadata
|
45
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
46
|
-
# strings.
|
47
|
-
#
|
48
|
-
# @return [Hash{Symbol=>String}, nil]
|
49
|
-
required :metadata, ModernTreasury::Internal::Type::HashOf[String], nil?: true
|
50
|
-
|
51
|
-
# @!attribute name
|
52
|
-
# Name of the ledgerable event.
|
53
|
-
#
|
54
|
-
# @return [String]
|
55
|
-
required :name, String
|
56
|
-
|
57
|
-
# @!attribute object
|
58
|
-
#
|
59
|
-
# @return [String]
|
60
|
-
required :object, String
|
61
|
-
|
62
|
-
# @!attribute updated_at
|
63
|
-
#
|
64
|
-
# @return [Time]
|
65
|
-
required :updated_at, Time
|
66
|
-
|
67
|
-
# @!method initialize(id:, created_at:, custom_data:, description:, ledger_event_handler_id:, live_mode:, metadata:, name:, object:, updated_at:)
|
68
|
-
# Some parameter documentations has been truncated, see
|
69
|
-
# {ModernTreasury::Models::LedgerableEvent} for more details.
|
70
|
-
#
|
71
|
-
# @param id [String]
|
72
|
-
#
|
73
|
-
# @param created_at [Time]
|
74
|
-
#
|
75
|
-
# @param custom_data [Object, nil] Additionally data to be used by the Ledger Event Handler.
|
76
|
-
#
|
77
|
-
# @param description [String, nil] Description of the ledgerable event.
|
78
|
-
#
|
79
|
-
# @param ledger_event_handler_id [String] Id of the ledger event handler that is used to create a ledger transaction.
|
80
|
-
#
|
81
|
-
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
82
|
-
#
|
83
|
-
# @param metadata [Hash{Symbol=>String}, nil] Additional data represented as key-value pairs. Both the key and value must be s
|
84
|
-
#
|
85
|
-
# @param name [String] Name of the ledgerable event.
|
86
|
-
#
|
87
|
-
# @param object [String]
|
88
|
-
#
|
89
|
-
# @param updated_at [Time]
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
@@ -1,50 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ModernTreasury
|
4
|
-
module Models
|
5
|
-
# @see ModernTreasury::Resources::LedgerableEvents#create
|
6
|
-
class LedgerableEventCreateParams < ModernTreasury::Internal::Type::BaseModel
|
7
|
-
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
8
|
-
include ModernTreasury::Internal::Type::RequestParameters
|
9
|
-
|
10
|
-
# @!attribute name
|
11
|
-
# Name of the ledgerable event.
|
12
|
-
#
|
13
|
-
# @return [String]
|
14
|
-
required :name, String
|
15
|
-
|
16
|
-
# @!attribute custom_data
|
17
|
-
# Additionally data to be used by the Ledger Event Handler.
|
18
|
-
#
|
19
|
-
# @return [Object, nil]
|
20
|
-
optional :custom_data, ModernTreasury::Internal::Type::Unknown, nil?: true
|
21
|
-
|
22
|
-
# @!attribute description
|
23
|
-
# Description of the ledgerable event.
|
24
|
-
#
|
25
|
-
# @return [String, nil]
|
26
|
-
optional :description, String, nil?: true
|
27
|
-
|
28
|
-
# @!attribute metadata
|
29
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
30
|
-
# strings.
|
31
|
-
#
|
32
|
-
# @return [Hash{Symbol=>String}, nil]
|
33
|
-
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
34
|
-
|
35
|
-
# @!method initialize(name:, custom_data: nil, description: nil, metadata: nil, request_options: {})
|
36
|
-
# Some parameter documentations has been truncated, see
|
37
|
-
# {ModernTreasury::Models::LedgerableEventCreateParams} for more details.
|
38
|
-
#
|
39
|
-
# @param name [String] Name of the ledgerable event.
|
40
|
-
#
|
41
|
-
# @param custom_data [Object, nil] Additionally data to be used by the Ledger Event Handler.
|
42
|
-
#
|
43
|
-
# @param description [String, nil] Description of the ledgerable event.
|
44
|
-
#
|
45
|
-
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
46
|
-
#
|
47
|
-
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
48
|
-
end
|
49
|
-
end
|
50
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module ModernTreasury
|
4
|
-
module Models
|
5
|
-
# @see ModernTreasury::Resources::LedgerableEvents#retrieve
|
6
|
-
class LedgerableEventRetrieveParams < ModernTreasury::Internal::Type::BaseModel
|
7
|
-
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
8
|
-
include ModernTreasury::Internal::Type::RequestParameters
|
9
|
-
|
10
|
-
# @!method initialize(request_options: {})
|
11
|
-
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|