merge_accounting_client 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +16 -0
  3. data/README.md +10 -5
  4. data/docs/Account.md +1 -1
  5. data/docs/AccountDetails.md +3 -1
  6. data/docs/AccountDetailsAndActions.md +2 -0
  7. data/docs/AccountingAttachment.md +1 -1
  8. data/docs/AccountsApi.md +7 -3
  9. data/docs/AddressesApi.md +3 -1
  10. data/docs/AttachmentsApi.md +2 -2
  11. data/docs/BalanceSheet.md +1 -1
  12. data/docs/BalanceSheetsApi.md +2 -2
  13. data/docs/CashFlowStatement.md +1 -1
  14. data/docs/CashFlowStatementsApi.md +2 -2
  15. data/docs/CompanyInfo.md +1 -1
  16. data/docs/CompanyInfoApi.md +2 -2
  17. data/docs/Contact.md +1 -1
  18. data/docs/ContactsApi.md +7 -3
  19. data/docs/CreditNote.md +7 -1
  20. data/docs/CreditNoteLineItem.md +38 -0
  21. data/docs/CreditNotesApi.md +7 -3
  22. data/docs/DataPassthroughRequest.md +3 -1
  23. data/docs/EndUserDetailsRequest.md +9 -7
  24. data/docs/Expense.md +1 -1
  25. data/docs/ExpensesApi.md +2 -2
  26. data/docs/IncomeStatement.md +1 -1
  27. data/docs/IncomeStatementsApi.md +2 -2
  28. data/docs/InvoiceLineItem.md +0 -2
  29. data/docs/InvoicesApi.md +8 -4
  30. data/docs/Item.md +1 -1
  31. data/docs/ItemsApi.md +7 -3
  32. data/docs/JournalEntriesApi.md +2 -2
  33. data/docs/LinkToken.md +3 -1
  34. data/docs/LinkedAccountsApi.md +2 -0
  35. data/docs/PaginatedTransactionList.md +22 -0
  36. data/docs/Payment.md +1 -1
  37. data/docs/PaymentsApi.md +2 -2
  38. data/docs/PurchaseOrder.md +8 -2
  39. data/docs/PurchaseOrderLineItem.md +9 -1
  40. data/docs/PurchaseOrdersApi.md +7 -3
  41. data/docs/RemoteResponse.md +2 -0
  42. data/docs/SyncStatusApi.md +1 -1
  43. data/docs/TaxRate.md +1 -1
  44. data/docs/TaxRatesApi.md +2 -2
  45. data/docs/TrackingCategoriesApi.md +7 -3
  46. data/docs/TrackingCategory.md +1 -1
  47. data/docs/Transaction.md +40 -0
  48. data/docs/TransactionLineItem.md +34 -0
  49. data/docs/TransactionsApi.md +181 -0
  50. data/docs/VendorCredit.md +1 -1
  51. data/docs/VendorCreditsApi.md +2 -2
  52. data/lib/merge_accounting_client/api/accounts_api.rb +16 -2
  53. data/lib/merge_accounting_client/api/addresses_api.rb +7 -0
  54. data/lib/merge_accounting_client/api/attachments_api.rb +2 -2
  55. data/lib/merge_accounting_client/api/balance_sheets_api.rb +2 -2
  56. data/lib/merge_accounting_client/api/cash_flow_statements_api.rb +2 -2
  57. data/lib/merge_accounting_client/api/company_info_api.rb +2 -2
  58. data/lib/merge_accounting_client/api/contacts_api.rb +16 -2
  59. data/lib/merge_accounting_client/api/credit_notes_api.rb +16 -2
  60. data/lib/merge_accounting_client/api/expenses_api.rb +2 -2
  61. data/lib/merge_accounting_client/api/income_statements_api.rb +2 -2
  62. data/lib/merge_accounting_client/api/invoices_api.rb +17 -3
  63. data/lib/merge_accounting_client/api/items_api.rb +16 -2
  64. data/lib/merge_accounting_client/api/journal_entries_api.rb +2 -2
  65. data/lib/merge_accounting_client/api/linked_accounts_api.rb +3 -0
  66. data/lib/merge_accounting_client/api/payments_api.rb +2 -2
  67. data/lib/merge_accounting_client/api/purchase_orders_api.rb +16 -2
  68. data/lib/merge_accounting_client/api/sync_status_api.rb +2 -2
  69. data/lib/merge_accounting_client/api/tax_rates_api.rb +2 -2
  70. data/lib/merge_accounting_client/api/tracking_categories_api.rb +16 -2
  71. data/lib/merge_accounting_client/api/transactions_api.rb +196 -0
  72. data/lib/merge_accounting_client/api/vendor_credits_api.rb +2 -2
  73. data/lib/merge_accounting_client/models/account.rb +1 -1
  74. data/lib/merge_accounting_client/models/account_details.rb +15 -4
  75. data/lib/merge_accounting_client/models/account_details_and_actions.rb +12 -1
  76. data/lib/merge_accounting_client/models/account_details_and_actions_status_enum.rb +17 -7
  77. data/lib/merge_accounting_client/models/account_status_enum.rb +17 -7
  78. data/lib/merge_accounting_client/models/accounting_attachment.rb +1 -1
  79. data/lib/merge_accounting_client/models/address_type_enum.rb +17 -7
  80. data/lib/merge_accounting_client/models/balance_sheet.rb +1 -1
  81. data/lib/merge_accounting_client/models/cash_flow_statement.rb +1 -1
  82. data/lib/merge_accounting_client/models/categories_enum.rb +17 -7
  83. data/lib/merge_accounting_client/models/category_enum.rb +17 -7
  84. data/lib/merge_accounting_client/models/classification_enum.rb +17 -7
  85. data/lib/merge_accounting_client/models/company_info.rb +1 -1
  86. data/lib/merge_accounting_client/models/contact.rb +1 -1
  87. data/lib/merge_accounting_client/models/country_enum.rb +17 -7
  88. data/lib/merge_accounting_client/models/credit_note.rb +35 -2
  89. data/lib/merge_accounting_client/models/credit_note_line_item.rb +380 -0
  90. data/lib/merge_accounting_client/models/credit_note_status_enum.rb +17 -7
  91. data/lib/merge_accounting_client/models/currency_enum.rb +17 -7
  92. data/lib/merge_accounting_client/models/data_passthrough_request.rb +14 -5
  93. data/lib/merge_accounting_client/models/encoding_enum.rb +18 -7
  94. data/lib/merge_accounting_client/models/end_user_details_request.rb +28 -11
  95. data/lib/merge_accounting_client/models/expense.rb +1 -1
  96. data/lib/merge_accounting_client/models/income_statement.rb +1 -1
  97. data/lib/merge_accounting_client/models/invoice_line_item.rb +1 -13
  98. data/lib/merge_accounting_client/models/invoice_type_enum.rb +17 -7
  99. data/lib/merge_accounting_client/models/issue_status_enum.rb +17 -7
  100. data/lib/merge_accounting_client/models/item.rb +1 -1
  101. data/lib/merge_accounting_client/models/link_token.rb +13 -4
  102. data/lib/merge_accounting_client/models/method_enum.rb +17 -7
  103. data/lib/merge_accounting_client/models/paginated_transaction_list.rb +240 -0
  104. data/lib/merge_accounting_client/models/payment.rb +1 -1
  105. data/lib/merge_accounting_client/models/purchase_order.rb +35 -2
  106. data/lib/merge_accounting_client/models/purchase_order_line_item.rb +83 -5
  107. data/lib/merge_accounting_client/models/purchase_order_status_enum.rb +17 -7
  108. data/lib/merge_accounting_client/models/remote_response.rb +13 -2
  109. data/lib/merge_accounting_client/models/request_format_enum.rb +17 -7
  110. data/lib/merge_accounting_client/models/state_enum.rb +17 -7
  111. data/lib/merge_accounting_client/models/status7d1_enum.rb +17 -7
  112. data/lib/merge_accounting_client/models/sync_status_status_enum.rb +18 -7
  113. data/lib/merge_accounting_client/models/tax_rate.rb +1 -1
  114. data/lib/merge_accounting_client/models/tracking_category.rb +1 -1
  115. data/lib/merge_accounting_client/models/transaction.rb +356 -0
  116. data/lib/merge_accounting_client/models/transaction_line_item.rb +358 -0
  117. data/lib/merge_accounting_client/models/vendor_credit.rb +1 -1
  118. data/lib/merge_accounting_client/version.rb +1 -1
  119. data/lib/merge_accounting_client.rb +5 -1
  120. data/merge_accounting_client.gemspec +1 -1
  121. data/spec/api/accounts_api_spec.rb +3 -1
  122. data/spec/api/addresses_api_spec.rb +1 -0
  123. data/spec/api/attachments_api_spec.rb +1 -1
  124. data/spec/api/balance_sheets_api_spec.rb +1 -1
  125. data/spec/api/cash_flow_statements_api_spec.rb +1 -1
  126. data/spec/api/company_info_api_spec.rb +1 -1
  127. data/spec/api/contacts_api_spec.rb +3 -1
  128. data/spec/api/credit_notes_api_spec.rb +3 -1
  129. data/spec/api/expenses_api_spec.rb +1 -1
  130. data/spec/api/income_statements_api_spec.rb +1 -1
  131. data/spec/api/invoices_api_spec.rb +3 -1
  132. data/spec/api/items_api_spec.rb +3 -1
  133. data/spec/api/journal_entries_api_spec.rb +1 -1
  134. data/spec/api/linked_accounts_api_spec.rb +1 -0
  135. data/spec/api/payments_api_spec.rb +1 -1
  136. data/spec/api/purchase_orders_api_spec.rb +3 -1
  137. data/spec/api/sync_status_api_spec.rb +1 -1
  138. data/spec/api/tax_rates_api_spec.rb +1 -1
  139. data/spec/api/tracking_categories_api_spec.rb +3 -1
  140. data/spec/api/transactions_api_spec.rb +70 -0
  141. data/spec/api/vendor_credits_api_spec.rb +1 -1
  142. data/spec/models/account_details_and_actions_spec.rb +6 -0
  143. data/spec/models/account_details_spec.rb +6 -0
  144. data/spec/models/credit_note_line_item_spec.rb +94 -0
  145. data/spec/models/credit_note_spec.rb +18 -0
  146. data/spec/models/data_passthrough_request_spec.rb +6 -0
  147. data/spec/models/end_user_details_request_spec.rb +6 -0
  148. data/spec/models/invoice_line_item_spec.rb +0 -6
  149. data/spec/models/link_token_spec.rb +6 -0
  150. data/spec/models/paginated_transaction_list_spec.rb +46 -0
  151. data/spec/models/purchase_order_line_item_spec.rb +24 -0
  152. data/spec/models/purchase_order_spec.rb +18 -0
  153. data/spec/models/remote_response_spec.rb +6 -0
  154. data/spec/models/transaction_line_item_spec.rb +82 -0
  155. data/spec/models/transaction_spec.rb +100 -0
  156. metadata +132 -111
@@ -27,13 +27,29 @@ module MergeAccountingClient
27
27
 
28
28
  attr_accessor :item
29
29
 
30
+ # The purchase order line item's account.
31
+ attr_accessor :account
32
+
33
+ # The purchase order line item's associated tracking category.
34
+ attr_accessor :tracking_category
35
+
36
+ # The purchase order line item's tax amount.
37
+ attr_accessor :tax_amount
38
+
39
+ # The purchase order line item's total amount.
40
+ attr_accessor :total_line_amount
41
+
30
42
  # Attribute mapping from ruby-style variable name to JSON key.
31
43
  def self.attribute_map
32
44
  {
33
45
  :'description' => :'description',
34
46
  :'unit_price' => :'unit_price',
35
47
  :'quantity' => :'quantity',
36
- :'item' => :'item'
48
+ :'item' => :'item',
49
+ :'account' => :'account',
50
+ :'tracking_category' => :'tracking_category',
51
+ :'tax_amount' => :'tax_amount',
52
+ :'total_line_amount' => :'total_line_amount'
37
53
  }
38
54
  end
39
55
 
@@ -48,7 +64,11 @@ module MergeAccountingClient
48
64
  :'description' => :'String',
49
65
  :'unit_price' => :'Float',
50
66
  :'quantity' => :'Float',
51
- :'item' => :'String'
67
+ :'item' => :'String',
68
+ :'account' => :'String',
69
+ :'tracking_category' => :'String',
70
+ :'tax_amount' => :'String',
71
+ :'total_line_amount' => :'String'
52
72
  }
53
73
  end
54
74
 
@@ -58,7 +78,11 @@ module MergeAccountingClient
58
78
  :'description',
59
79
  :'unit_price',
60
80
  :'quantity',
61
- :'item'
81
+ :'item',
82
+ :'account',
83
+ :'tracking_category',
84
+ :'tax_amount',
85
+ :'total_line_amount'
62
86
  ])
63
87
  end
64
88
 
@@ -92,21 +116,71 @@ module MergeAccountingClient
92
116
  if attributes.key?(:'item')
93
117
  self.item = attributes[:'item']
94
118
  end
119
+
120
+ if attributes.key?(:'account')
121
+ self.account = attributes[:'account']
122
+ end
123
+
124
+ if attributes.key?(:'tracking_category')
125
+ self.tracking_category = attributes[:'tracking_category']
126
+ end
127
+
128
+ if attributes.key?(:'tax_amount')
129
+ self.tax_amount = attributes[:'tax_amount']
130
+ end
131
+
132
+ if attributes.key?(:'total_line_amount')
133
+ self.total_line_amount = attributes[:'total_line_amount']
134
+ end
95
135
  end
96
136
 
97
137
  # Show invalid properties with the reasons. Usually used together with valid?
98
138
  # @return Array for valid properties with the reasons
99
139
  def list_invalid_properties
100
140
  invalid_properties = Array.new
141
+ pattern = Regexp.new(/^\d{0,32}(?:\.\d{0,16})?$/)
142
+ if !@tax_amount.nil? && @tax_amount !~ pattern
143
+ invalid_properties.push("invalid value for \"tax_amount\", must conform to the pattern #{pattern}.")
144
+ end
145
+
146
+ pattern = Regexp.new(/^\d{0,32}(?:\.\d{0,16})?$/)
147
+ if !@total_line_amount.nil? && @total_line_amount !~ pattern
148
+ invalid_properties.push("invalid value for \"total_line_amount\", must conform to the pattern #{pattern}.")
149
+ end
150
+
101
151
  invalid_properties
102
152
  end
103
153
 
104
154
  # Check to see if the all the properties in the model are valid
105
155
  # @return true if the model is valid
106
156
  def valid?
157
+ return false if !@tax_amount.nil? && @tax_amount !~ Regexp.new(/^\d{0,32}(?:\.\d{0,16})?$/)
158
+ return false if !@total_line_amount.nil? && @total_line_amount !~ Regexp.new(/^\d{0,32}(?:\.\d{0,16})?$/)
107
159
  true
108
160
  end
109
161
 
162
+ # Custom attribute writer method with validation
163
+ # @param [Object] tax_amount Value to be assigned
164
+ def tax_amount=(tax_amount)
165
+ pattern = Regexp.new(/^\d{0,32}(?:\.\d{0,16})?$/)
166
+ if !tax_amount.nil? && tax_amount !~ pattern
167
+ fail ArgumentError, "invalid value for \"tax_amount\", must conform to the pattern #{pattern}."
168
+ end
169
+
170
+ @tax_amount = tax_amount
171
+ end
172
+
173
+ # Custom attribute writer method with validation
174
+ # @param [Object] total_line_amount Value to be assigned
175
+ def total_line_amount=(total_line_amount)
176
+ pattern = Regexp.new(/^\d{0,32}(?:\.\d{0,16})?$/)
177
+ if !total_line_amount.nil? && total_line_amount !~ pattern
178
+ fail ArgumentError, "invalid value for \"total_line_amount\", must conform to the pattern #{pattern}."
179
+ end
180
+
181
+ @total_line_amount = total_line_amount
182
+ end
183
+
110
184
  # Checks equality by comparing each attribute.
111
185
  # @param [Object] Object to be compared
112
186
  def ==(o)
@@ -115,7 +189,11 @@ module MergeAccountingClient
115
189
  description == o.description &&
116
190
  unit_price == o.unit_price &&
117
191
  quantity == o.quantity &&
118
- item == o.item
192
+ item == o.item &&
193
+ account == o.account &&
194
+ tracking_category == o.tracking_category &&
195
+ tax_amount == o.tax_amount &&
196
+ total_line_amount == o.total_line_amount
119
197
  end
120
198
 
121
199
  # @see the `==` method
@@ -127,7 +205,7 @@ module MergeAccountingClient
127
205
  # Calculates hash code according to all attributes.
128
206
  # @return [Integer] Hash code
129
207
  def hash
130
- [description, unit_price, quantity, item].hash
208
+ [description, unit_price, quantity, item, account, tracking_category, tax_amount, total_line_amount].hash
131
209
  end
132
210
 
133
211
  # Builds the object from hash
@@ -21,18 +21,28 @@ module MergeAccountingClient
21
21
  BILLED = "BILLED".freeze
22
22
  DELETED = "DELETED".freeze
23
23
 
24
- # Builds the enum from string
25
- # @param [String] The enum value in the form of the string
26
- # @return [String] The enum value
27
- def self.build_from_hash(value)
28
- new.build_from_hash(value)
29
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
30
28
 
31
29
  # Builds the enum from string
32
30
  # @param [String] The enum value in the form of the string
33
31
  # @return [String] The enum value
34
32
  def build_from_hash(value)
35
- value
33
+ @raw_value = value
34
+ if ["DRAFT", "SUBMITTED", "AUTHORIZED", "BILLED", "DELETED", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ IssueStatusEnum.new.build_from_hash(value)
36
45
  end
37
46
  end
47
+
38
48
  end
@@ -24,6 +24,8 @@ module MergeAccountingClient
24
24
 
25
25
  attr_accessor :response
26
26
 
27
+ attr_accessor :response_headers
28
+
27
29
  attr_accessor :headers
28
30
 
29
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -33,6 +35,7 @@ module MergeAccountingClient
33
35
  :'path' => :'path',
34
36
  :'status' => :'status',
35
37
  :'response' => :'response',
38
+ :'response_headers' => :'response_headers',
36
39
  :'headers' => :'headers'
37
40
  }
38
41
  end
@@ -49,7 +52,8 @@ module MergeAccountingClient
49
52
  :'path' => :'String',
50
53
  :'status' => :'Integer',
51
54
  :'response' => :'Hash<String, Object>',
52
- :'headers' => :'Hash<String, Object>'
55
+ :'response_headers' => :'Hash<String, Object>',
56
+ :'headers' => :'Hash<String, AnyType>'
53
57
  }
54
58
  end
55
59
 
@@ -92,6 +96,12 @@ module MergeAccountingClient
92
96
  end
93
97
  end
94
98
 
99
+ if attributes.key?(:'response_headers')
100
+ if (value = attributes[:'response_headers']).is_a?(Hash)
101
+ self.response_headers = value
102
+ end
103
+ end
104
+
95
105
  if attributes.key?(:'headers')
96
106
  if (value = attributes[:'headers']).is_a?(Hash)
97
107
  self.headers = value
@@ -141,6 +151,7 @@ module MergeAccountingClient
141
151
  path == o.path &&
142
152
  status == o.status &&
143
153
  response == o.response &&
154
+ response_headers == o.response_headers &&
144
155
  headers == o.headers
145
156
  end
146
157
 
@@ -153,7 +164,7 @@ module MergeAccountingClient
153
164
  # Calculates hash code according to all attributes.
154
165
  # @return [Integer] Hash code
155
166
  def hash
156
- [method, path, status, response, headers].hash
167
+ [method, path, status, response, response_headers, headers].hash
157
168
  end
158
169
 
159
170
  # Builds the object from hash
@@ -19,18 +19,28 @@ module MergeAccountingClient
19
19
  XML = "XML".freeze
20
20
  MULTIPART = "MULTIPART".freeze
21
21
 
22
- # Builds the enum from string
23
- # @param [String] The enum value in the form of the string
24
- # @return [String] The enum value
25
- def self.build_from_hash(value)
26
- new.build_from_hash(value)
27
- end
22
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
23
+
24
+ attr_accessor :value
25
+ attr_accessor :raw_value
28
26
 
29
27
  # Builds the enum from string
30
28
  # @param [String] The enum value in the form of the string
31
29
  # @return [String] The enum value
32
30
  def build_from_hash(value)
33
- value
31
+ @raw_value = value
32
+ if ["JSON", "XML", "MULTIPART", ].include? value
33
+ @value = value
34
+ else
35
+ @value = MERGE_NONSTANDARD_VALUE
36
+ end
37
+
38
+ self
39
+ end
40
+
41
+ def self.build_from_hash(value)
42
+ IssueStatusEnum.new.build_from_hash(value)
34
43
  end
35
44
  end
45
+
36
46
  end
@@ -75,18 +75,28 @@ module MergeAccountingClient
75
75
  WI = "WI".freeze
76
76
  WY = "WY".freeze
77
77
 
78
- # Builds the enum from string
79
- # @param [String] The enum value in the form of the string
80
- # @return [String] The enum value
81
- def self.build_from_hash(value)
82
- new.build_from_hash(value)
83
- end
78
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
79
+
80
+ attr_accessor :value
81
+ attr_accessor :raw_value
84
82
 
85
83
  # Builds the enum from string
86
84
  # @param [String] The enum value in the form of the string
87
85
  # @return [String] The enum value
88
86
  def build_from_hash(value)
89
- value
87
+ @raw_value = value
88
+ if ["AL", "AK", "AS", "AZ", "AR", "AA", "AE", "AP", "CA", "CO", "CT", "DE", "DC", "FL", "GA", "GU", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "MP", "OH", "OK", "OR", "PA", "PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VI", "VA", "WA", "WV", "WI", "WY", ].include? value
89
+ @value = value
90
+ else
91
+ @value = MERGE_NONSTANDARD_VALUE
92
+ end
93
+
94
+ self
95
+ end
96
+
97
+ def self.build_from_hash(value)
98
+ IssueStatusEnum.new.build_from_hash(value)
90
99
  end
91
100
  end
101
+
92
102
  end
@@ -18,18 +18,28 @@ module MergeAccountingClient
18
18
  ACTIVE = "ACTIVE".freeze
19
19
  ARCHIVED = "ARCHIVED".freeze
20
20
 
21
- # Builds the enum from string
22
- # @param [String] The enum value in the form of the string
23
- # @return [String] The enum value
24
- def self.build_from_hash(value)
25
- new.build_from_hash(value)
26
- end
21
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
22
+
23
+ attr_accessor :value
24
+ attr_accessor :raw_value
27
25
 
28
26
  # Builds the enum from string
29
27
  # @param [String] The enum value in the form of the string
30
28
  # @return [String] The enum value
31
29
  def build_from_hash(value)
32
- value
30
+ @raw_value = value
31
+ if ["ACTIVE", "ARCHIVED", ].include? value
32
+ @value = value
33
+ else
34
+ @value = MERGE_NONSTANDARD_VALUE
35
+ end
36
+
37
+ self
38
+ end
39
+
40
+ def self.build_from_hash(value)
41
+ IssueStatusEnum.new.build_from_hash(value)
33
42
  end
34
43
  end
44
+
35
45
  end
@@ -19,19 +19,30 @@ module MergeAccountingClient
19
19
  DONE = "DONE".freeze
20
20
  FAILED = "FAILED".freeze
21
21
  DISABLED = "DISABLED".freeze
22
+ PAUSED = "PAUSED".freeze
22
23
 
23
- # Builds the enum from string
24
- # @param [String] The enum value in the form of the string
25
- # @return [String] The enum value
26
- def self.build_from_hash(value)
27
- new.build_from_hash(value)
28
- end
24
+ MERGE_NONSTANDARD_VALUE = "MERGE_NONSTANDARD_VALUE".freeze
25
+
26
+ attr_accessor :value
27
+ attr_accessor :raw_value
29
28
 
30
29
  # Builds the enum from string
31
30
  # @param [String] The enum value in the form of the string
32
31
  # @return [String] The enum value
33
32
  def build_from_hash(value)
34
- value
33
+ @raw_value = value
34
+ if ["SYNCING", "DONE", "FAILED", "DISABLED", "PAUSED", ].include? value
35
+ @value = value
36
+ else
37
+ @value = MERGE_NONSTANDARD_VALUE
38
+ end
39
+
40
+ self
41
+ end
42
+
43
+ def self.build_from_hash(value)
44
+ IssueStatusEnum.new.build_from_hash(value)
35
45
  end
36
46
  end
47
+
37
48
  end
@@ -32,7 +32,7 @@ module MergeAccountingClient
32
32
  # The tax rate's effective tax rate.
33
33
  attr_accessor :effective_tax_rate
34
34
 
35
- # Indicates whether or not this object has been deleted on the third-party.
35
+ # Indicates whether or not this object has been deleted by third party webhooks.
36
36
  attr_accessor :remote_was_deleted
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -29,7 +29,7 @@ module MergeAccountingClient
29
29
  # The tracking category's status.
30
30
  attr_accessor :status
31
31
 
32
- # Indicates whether or not this object has been deleted on the third-party.
32
+ # Indicates whether or not this object has been deleted by third party webhooks.
33
33
  attr_accessor :remote_was_deleted
34
34
 
35
35
  # Attribute mapping from ruby-style variable name to JSON key.