netsuite-soap 2025.2.3
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 +7 -0
- data/.envrc +9 -0
- data/.github/FUNDING.yml +1 -0
- data/.github/dependabot.yml +14 -0
- data/.github/workflows/codeql-analysis.yml +70 -0
- data/.github/workflows/main.yml +55 -0
- data/.github/workflows/publish.yml +53 -0
- data/.gitignore +23 -0
- data/.rspec +6 -0
- data/.ruby-version +1 -0
- data/.tool-versions +1 -0
- data/AGENTS.md +150 -0
- data/CLAUDE.md +111 -0
- data/DEVELOPMENT.md +34 -0
- data/Gemfile +10 -0
- data/HISTORY.md +171 -0
- data/LICENSE +22 -0
- data/README.md +87 -0
- data/Rakefile +130 -0
- data/docs/async.md +46 -0
- data/docs/configuration.md +88 -0
- data/docs/contributing.md +36 -0
- data/docs/usage.md +149 -0
- data/lib/netsuite/actions/abstract_action.rb +32 -0
- data/lib/netsuite/actions/add.rb +93 -0
- data/lib/netsuite/actions/async_add_list.rb +74 -0
- data/lib/netsuite/actions/async_delete_list.rb +40 -0
- data/lib/netsuite/actions/async_get_list.rb +46 -0
- data/lib/netsuite/actions/async_initialize_list.rb +85 -0
- data/lib/netsuite/actions/async_response.rb +52 -0
- data/lib/netsuite/actions/async_search.rb +36 -0
- data/lib/netsuite/actions/async_update_list.rb +53 -0
- data/lib/netsuite/actions/async_upsert_list.rb +53 -0
- data/lib/netsuite/actions/attach_file.rb +87 -0
- data/lib/netsuite/actions/check_async_status.rb +29 -0
- data/lib/netsuite/actions/delete.rb +102 -0
- data/lib/netsuite/actions/delete_list.rb +108 -0
- data/lib/netsuite/actions/get.rb +87 -0
- data/lib/netsuite/actions/get_all.rb +78 -0
- data/lib/netsuite/actions/get_async_result.rb +35 -0
- data/lib/netsuite/actions/get_deleted.rb +92 -0
- data/lib/netsuite/actions/get_list.rb +98 -0
- data/lib/netsuite/actions/get_select_value.rb +80 -0
- data/lib/netsuite/actions/initialize.rb +86 -0
- data/lib/netsuite/actions/search.rb +265 -0
- data/lib/netsuite/actions/update.rb +86 -0
- data/lib/netsuite/actions/update_list.rb +113 -0
- data/lib/netsuite/actions/upsert.rb +86 -0
- data/lib/netsuite/actions/upsert_list.rb +118 -0
- data/lib/netsuite/client.rb +19 -0
- data/lib/netsuite/configuration.rb +470 -0
- data/lib/netsuite/errors.rb +18 -0
- data/lib/netsuite/namespaces/act_sched.rb +11 -0
- data/lib/netsuite/namespaces/comm_general.rb +11 -0
- data/lib/netsuite/namespaces/file_cabinet.rb +11 -0
- data/lib/netsuite/namespaces/list_acct.rb +11 -0
- data/lib/netsuite/namespaces/list_emp.rb +12 -0
- data/lib/netsuite/namespaces/list_mkt.rb +12 -0
- data/lib/netsuite/namespaces/list_rel.rb +11 -0
- data/lib/netsuite/namespaces/list_support.rb +11 -0
- data/lib/netsuite/namespaces/list_website.rb +11 -0
- data/lib/netsuite/namespaces/platform_common.rb +11 -0
- data/lib/netsuite/namespaces/platform_core.rb +11 -0
- data/lib/netsuite/namespaces/setup_custom.rb +11 -0
- data/lib/netsuite/namespaces/tran_bank.rb +11 -0
- data/lib/netsuite/namespaces/tran_cust.rb +11 -0
- data/lib/netsuite/namespaces/tran_emp.rb +11 -0
- data/lib/netsuite/namespaces/tran_general.rb +11 -0
- data/lib/netsuite/namespaces/tran_invt.rb +11 -0
- data/lib/netsuite/namespaces/tran_purch.rb +11 -0
- data/lib/netsuite/namespaces/tran_sales.rb +11 -0
- data/lib/netsuite/passports/token.rb +55 -0
- data/lib/netsuite/passports/user.rb +25 -0
- data/lib/netsuite/records/account.rb +30 -0
- data/lib/netsuite/records/accounting_period.rb +25 -0
- data/lib/netsuite/records/address.rb +46 -0
- data/lib/netsuite/records/assembly_build.rb +39 -0
- data/lib/netsuite/records/assembly_component.rb +26 -0
- data/lib/netsuite/records/assembly_component_list.rb +12 -0
- data/lib/netsuite/records/assembly_item.rb +66 -0
- data/lib/netsuite/records/assembly_unbuild.rb +37 -0
- data/lib/netsuite/records/base_ref_list.rb +17 -0
- data/lib/netsuite/records/bill_address.rb +17 -0
- data/lib/netsuite/records/billing_schedule.rb +33 -0
- data/lib/netsuite/records/billing_schedule_milestone.rb +28 -0
- data/lib/netsuite/records/billing_schedule_milestone_list.rb +14 -0
- data/lib/netsuite/records/billing_schedule_recurrence.rb +28 -0
- data/lib/netsuite/records/billing_schedule_recurrence_list.rb +14 -0
- data/lib/netsuite/records/bin.rb +30 -0
- data/lib/netsuite/records/bin_number.rb +18 -0
- data/lib/netsuite/records/bin_number_list.rb +11 -0
- data/lib/netsuite/records/bin_transfer.rb +38 -0
- data/lib/netsuite/records/bin_transfer_inventory.rb +20 -0
- data/lib/netsuite/records/bin_transfer_inventory_list.rb +10 -0
- data/lib/netsuite/records/campaign.rb +28 -0
- data/lib/netsuite/records/cash_refund.rb +135 -0
- data/lib/netsuite/records/cash_refund_item.rb +32 -0
- data/lib/netsuite/records/cash_refund_item_list.rb +13 -0
- data/lib/netsuite/records/cash_sale.rb +51 -0
- data/lib/netsuite/records/cash_sale_item.rb +40 -0
- data/lib/netsuite/records/cash_sale_item_list.rb +13 -0
- data/lib/netsuite/records/classification.rb +30 -0
- data/lib/netsuite/records/contact.rb +44 -0
- data/lib/netsuite/records/contact_access_roles.rb +23 -0
- data/lib/netsuite/records/contact_access_roles_list.rb +9 -0
- data/lib/netsuite/records/contact_addressbook.rb +64 -0
- data/lib/netsuite/records/contact_addressbook_list.rb +11 -0
- data/lib/netsuite/records/contact_list.rb +49 -0
- data/lib/netsuite/records/contact_role.rb +23 -0
- data/lib/netsuite/records/cost_category.rb +28 -0
- data/lib/netsuite/records/credit_memo.rb +59 -0
- data/lib/netsuite/records/credit_memo_apply.rb +16 -0
- data/lib/netsuite/records/credit_memo_apply_list.rb +15 -0
- data/lib/netsuite/records/credit_memo_item.rb +34 -0
- data/lib/netsuite/records/credit_memo_item_list.rb +11 -0
- data/lib/netsuite/records/currency.rb +30 -0
- data/lib/netsuite/records/currency_rate.rb +34 -0
- data/lib/netsuite/records/custom_field.rb +23 -0
- data/lib/netsuite/records/custom_field_list.rb +186 -0
- data/lib/netsuite/records/custom_list.rb +27 -0
- data/lib/netsuite/records/custom_list_custom_value.rb +22 -0
- data/lib/netsuite/records/custom_list_custom_value_list.rb +13 -0
- data/lib/netsuite/records/custom_record.rb +56 -0
- data/lib/netsuite/records/custom_record_ref.rb +50 -0
- data/lib/netsuite/records/custom_record_type.rb +30 -0
- data/lib/netsuite/records/customer.rb +265 -0
- data/lib/netsuite/records/customer_addressbook.rb +64 -0
- data/lib/netsuite/records/customer_addressbook_list.rb +11 -0
- data/lib/netsuite/records/customer_category.rb +26 -0
- data/lib/netsuite/records/customer_credit_cards.rb +36 -0
- data/lib/netsuite/records/customer_credit_cards_list.rb +10 -0
- data/lib/netsuite/records/customer_currency.rb +28 -0
- data/lib/netsuite/records/customer_currency_list.rb +9 -0
- data/lib/netsuite/records/customer_deposit.rb +47 -0
- data/lib/netsuite/records/customer_deposit_apply.rb +17 -0
- data/lib/netsuite/records/customer_deposit_apply_list.rb +12 -0
- data/lib/netsuite/records/customer_partner.rb +24 -0
- data/lib/netsuite/records/customer_partners_list.rb +9 -0
- data/lib/netsuite/records/customer_payment.rb +56 -0
- data/lib/netsuite/records/customer_payment_apply.rb +17 -0
- data/lib/netsuite/records/customer_payment_apply_list.rb +12 -0
- data/lib/netsuite/records/customer_payment_credit.rb +17 -0
- data/lib/netsuite/records/customer_payment_credit_list.rb +12 -0
- data/lib/netsuite/records/customer_refund.rb +52 -0
- data/lib/netsuite/records/customer_refund_apply.rb +16 -0
- data/lib/netsuite/records/customer_refund_apply_list.rb +12 -0
- data/lib/netsuite/records/customer_refund_deposit.rb +16 -0
- data/lib/netsuite/records/customer_refund_deposit_list.rb +11 -0
- data/lib/netsuite/records/customer_sales_team.rb +24 -0
- data/lib/netsuite/records/customer_sales_team_list.rb +9 -0
- data/lib/netsuite/records/customer_status.rb +29 -0
- data/lib/netsuite/records/department.rb +27 -0
- data/lib/netsuite/records/deposit.rb +40 -0
- data/lib/netsuite/records/deposit_application.rb +64 -0
- data/lib/netsuite/records/deposit_cash_back.rb +42 -0
- data/lib/netsuite/records/deposit_cash_back_list.rb +9 -0
- data/lib/netsuite/records/deposit_other.rb +35 -0
- data/lib/netsuite/records/deposit_other_list.rb +9 -0
- data/lib/netsuite/records/deposit_payment.rb +48 -0
- data/lib/netsuite/records/deposit_payment_list.rb +14 -0
- data/lib/netsuite/records/description_item.rb +34 -0
- data/lib/netsuite/records/discount_item.rb +37 -0
- data/lib/netsuite/records/duration.rb +15 -0
- data/lib/netsuite/records/employee.rb +42 -0
- data/lib/netsuite/records/entity_custom_field.rb +53 -0
- data/lib/netsuite/records/estimate.rb +122 -0
- data/lib/netsuite/records/estimate_item.rb +47 -0
- data/lib/netsuite/records/estimate_item_list.rb +11 -0
- data/lib/netsuite/records/file.rb +31 -0
- data/lib/netsuite/records/folder.rb +26 -0
- data/lib/netsuite/records/gift_cert_redemption.rb +22 -0
- data/lib/netsuite/records/gift_cert_redemption_list.rb +11 -0
- data/lib/netsuite/records/gift_certificate.rb +30 -0
- data/lib/netsuite/records/gift_certificate_item.rb +84 -0
- data/lib/netsuite/records/inbound_shipment.rb +32 -0
- data/lib/netsuite/records/inbound_shipment_item.rb +39 -0
- data/lib/netsuite/records/inbound_shipment_item_list.rb +11 -0
- data/lib/netsuite/records/inter_company_journal_entry.rb +48 -0
- data/lib/netsuite/records/inter_company_journal_entry_line.rb +28 -0
- data/lib/netsuite/records/inter_company_journal_entry_line_list.rb +12 -0
- data/lib/netsuite/records/inventory_adjustment.rb +30 -0
- data/lib/netsuite/records/inventory_adjustment_inventory.rb +21 -0
- data/lib/netsuite/records/inventory_adjustment_inventory_list.rb +10 -0
- data/lib/netsuite/records/inventory_assignment.rb +24 -0
- data/lib/netsuite/records/inventory_assignment_list.rb +35 -0
- data/lib/netsuite/records/inventory_detail.rb +18 -0
- data/lib/netsuite/records/inventory_item.rb +341 -0
- data/lib/netsuite/records/inventory_number.rb +34 -0
- data/lib/netsuite/records/inventory_number_locations.rb +16 -0
- data/lib/netsuite/records/inventory_number_locations_list.rb +10 -0
- data/lib/netsuite/records/inventory_transfer.rb +30 -0
- data/lib/netsuite/records/inventory_transfer_inventory.rb +21 -0
- data/lib/netsuite/records/inventory_transfer_inventory_list.rb +10 -0
- data/lib/netsuite/records/invoice.rb +167 -0
- data/lib/netsuite/records/invoice_item.rb +46 -0
- data/lib/netsuite/records/invoice_item_list.rb +15 -0
- data/lib/netsuite/records/item_availability.rb +45 -0
- data/lib/netsuite/records/item_fulfillment.rb +62 -0
- data/lib/netsuite/records/item_fulfillment_item.rb +45 -0
- data/lib/netsuite/records/item_fulfillment_item_list.rb +14 -0
- data/lib/netsuite/records/item_fulfillment_package.rb +24 -0
- data/lib/netsuite/records/item_fulfillment_package_fed_ex.rb +28 -0
- data/lib/netsuite/records/item_fulfillment_package_fed_ex_list.rb +32 -0
- data/lib/netsuite/records/item_fulfillment_package_list.rb +37 -0
- data/lib/netsuite/records/item_fulfillment_package_ups.rb +27 -0
- data/lib/netsuite/records/item_fulfillment_package_ups_list.rb +32 -0
- data/lib/netsuite/records/item_fulfillment_package_usps.rb +26 -0
- data/lib/netsuite/records/item_fulfillment_package_usps_list.rb +32 -0
- data/lib/netsuite/records/item_group.rb +37 -0
- data/lib/netsuite/records/item_member.rb +26 -0
- data/lib/netsuite/records/item_member_list.rb +12 -0
- data/lib/netsuite/records/item_option_custom_field.rb +52 -0
- data/lib/netsuite/records/item_receipt.rb +46 -0
- data/lib/netsuite/records/item_receipt_item.rb +43 -0
- data/lib/netsuite/records/item_receipt_item_list.rb +11 -0
- data/lib/netsuite/records/item_vendor.rb +24 -0
- data/lib/netsuite/records/item_vendor_list.rb +11 -0
- data/lib/netsuite/records/job.rb +41 -0
- data/lib/netsuite/records/job_status.rb +25 -0
- data/lib/netsuite/records/journal_entry.rb +48 -0
- data/lib/netsuite/records/journal_entry_line.rb +27 -0
- data/lib/netsuite/records/journal_entry_line_list.rb +12 -0
- data/lib/netsuite/records/kit_item.rb +71 -0
- data/lib/netsuite/records/location.rb +40 -0
- data/lib/netsuite/records/locations_list.rb +15 -0
- data/lib/netsuite/records/lot_numbered_assembly_item.rb +64 -0
- data/lib/netsuite/records/lot_numbered_inventory_item.rb +260 -0
- data/lib/netsuite/records/matrix_option_list.rb +71 -0
- data/lib/netsuite/records/member_list.rb +10 -0
- data/lib/netsuite/records/message.rb +30 -0
- data/lib/netsuite/records/non_inventory_purchase_item.rb +52 -0
- data/lib/netsuite/records/non_inventory_resale_item.rb +189 -0
- data/lib/netsuite/records/non_inventory_sale_item.rb +165 -0
- data/lib/netsuite/records/note.rb +33 -0
- data/lib/netsuite/records/note_type.rb +27 -0
- data/lib/netsuite/records/null_field_list.rb +15 -0
- data/lib/netsuite/records/opportunity.rb +45 -0
- data/lib/netsuite/records/opportunity_item.rb +41 -0
- data/lib/netsuite/records/opportunity_item_list.rb +9 -0
- data/lib/netsuite/records/other_charge_sale_item.rb +73 -0
- data/lib/netsuite/records/partner.rb +35 -0
- data/lib/netsuite/records/payment_item.rb +36 -0
- data/lib/netsuite/records/payment_method.rb +28 -0
- data/lib/netsuite/records/payroll_item.rb +36 -0
- data/lib/netsuite/records/phone_call.rb +29 -0
- data/lib/netsuite/records/price.rb +17 -0
- data/lib/netsuite/records/price_level.rb +26 -0
- data/lib/netsuite/records/price_list.rb +9 -0
- data/lib/netsuite/records/pricing.rb +20 -0
- data/lib/netsuite/records/pricing_matrix.rb +11 -0
- data/lib/netsuite/records/promotion_code.rb +38 -0
- data/lib/netsuite/records/promotions.rb +26 -0
- data/lib/netsuite/records/promotions_list.rb +9 -0
- data/lib/netsuite/records/purchase_order.rb +52 -0
- data/lib/netsuite/records/purchase_order_item.rb +42 -0
- data/lib/netsuite/records/purchase_order_item_list.rb +11 -0
- data/lib/netsuite/records/record_ref.rb +38 -0
- data/lib/netsuite/records/record_ref_list.rb +22 -0
- data/lib/netsuite/records/return_authorization.rb +135 -0
- data/lib/netsuite/records/return_authorization_item.rb +43 -0
- data/lib/netsuite/records/return_authorization_item_list.rb +11 -0
- data/lib/netsuite/records/rev_rec_schedule.rb +32 -0
- data/lib/netsuite/records/rev_rec_template.rb +25 -0
- data/lib/netsuite/records/role_list.rb +24 -0
- data/lib/netsuite/records/roles.rb +17 -0
- data/lib/netsuite/records/sales_order.rb +61 -0
- data/lib/netsuite/records/sales_order_item.rb +49 -0
- data/lib/netsuite/records/sales_order_item_list.rb +11 -0
- data/lib/netsuite/records/sales_order_ship_group_list.rb +11 -0
- data/lib/netsuite/records/sales_role.rb +26 -0
- data/lib/netsuite/records/sales_tax_item.rb +34 -0
- data/lib/netsuite/records/serialized_assembly_item.rb +240 -0
- data/lib/netsuite/records/serialized_inventory_item.rb +248 -0
- data/lib/netsuite/records/serialized_inventory_item_location.rb +36 -0
- data/lib/netsuite/records/serialized_inventory_item_locations_list.rb +10 -0
- data/lib/netsuite/records/serialized_inventory_item_numbers.rb +15 -0
- data/lib/netsuite/records/serialized_inventory_item_numbers_list.rb +10 -0
- data/lib/netsuite/records/service_resale_item.rb +154 -0
- data/lib/netsuite/records/service_sale_item.rb +50 -0
- data/lib/netsuite/records/ship_address.rb +17 -0
- data/lib/netsuite/records/site_category.rb +33 -0
- data/lib/netsuite/records/subscription.rb +18 -0
- data/lib/netsuite/records/subscriptions_list.rb +10 -0
- data/lib/netsuite/records/subsidiary.rb +38 -0
- data/lib/netsuite/records/subtotal_item.rb +34 -0
- data/lib/netsuite/records/support_case.rb +32 -0
- data/lib/netsuite/records/support_case_type.rb +26 -0
- data/lib/netsuite/records/task.rb +31 -0
- data/lib/netsuite/records/tax_group.rb +35 -0
- data/lib/netsuite/records/tax_type.rb +22 -0
- data/lib/netsuite/records/term.rb +27 -0
- data/lib/netsuite/records/time_bill.rb +32 -0
- data/lib/netsuite/records/transaction_body_custom_field.rb +61 -0
- data/lib/netsuite/records/transaction_column_custom_field.rb +59 -0
- data/lib/netsuite/records/transaction_ship_group.rb +40 -0
- data/lib/netsuite/records/transfer_order.rb +45 -0
- data/lib/netsuite/records/transfer_order_item.rb +43 -0
- data/lib/netsuite/records/transfer_order_item_list.rb +11 -0
- data/lib/netsuite/records/translation.rb +17 -0
- data/lib/netsuite/records/translation_list.rb +11 -0
- data/lib/netsuite/records/units_type.rb +25 -0
- data/lib/netsuite/records/units_type_uom.rb +20 -0
- data/lib/netsuite/records/units_type_uom_list.rb +12 -0
- data/lib/netsuite/records/vendor.rb +46 -0
- data/lib/netsuite/records/vendor_bill.rb +53 -0
- data/lib/netsuite/records/vendor_bill_expense.rb +40 -0
- data/lib/netsuite/records/vendor_bill_expense_list.rb +13 -0
- data/lib/netsuite/records/vendor_bill_item.rb +46 -0
- data/lib/netsuite/records/vendor_bill_item_list.rb +12 -0
- data/lib/netsuite/records/vendor_category.rb +26 -0
- data/lib/netsuite/records/vendor_credit.rb +54 -0
- data/lib/netsuite/records/vendor_credit_apply.rb +18 -0
- data/lib/netsuite/records/vendor_credit_apply_list.rb +12 -0
- data/lib/netsuite/records/vendor_credit_expense.rb +31 -0
- data/lib/netsuite/records/vendor_credit_expense_list.rb +12 -0
- data/lib/netsuite/records/vendor_credit_item.rb +34 -0
- data/lib/netsuite/records/vendor_credit_item_list.rb +12 -0
- data/lib/netsuite/records/vendor_currency.rb +26 -0
- data/lib/netsuite/records/vendor_currency_list.rb +9 -0
- data/lib/netsuite/records/vendor_payment.rb +52 -0
- data/lib/netsuite/records/vendor_payment_apply.rb +16 -0
- data/lib/netsuite/records/vendor_payment_apply_list.rb +12 -0
- data/lib/netsuite/records/vendor_return_authorization.rb +30 -0
- data/lib/netsuite/records/vendor_return_authorization_item.rb +23 -0
- data/lib/netsuite/records/vendor_return_authorization_item_list.rb +12 -0
- data/lib/netsuite/records/work_order.rb +45 -0
- data/lib/netsuite/records/work_order_item.rb +30 -0
- data/lib/netsuite/records/work_order_item_list.rb +11 -0
- data/lib/netsuite/response.rb +20 -0
- data/lib/netsuite/rest/utilities/request.rb +62 -0
- data/lib/netsuite/rest/utilities/roles.rb +47 -0
- data/lib/netsuite/support/actions.rb +74 -0
- data/lib/netsuite/support/attributes.rb +22 -0
- data/lib/netsuite/support/country.rb +289 -0
- data/lib/netsuite/support/fields.rb +86 -0
- data/lib/netsuite/support/record_refs.rb +30 -0
- data/lib/netsuite/support/records.rb +89 -0
- data/lib/netsuite/support/requests.rb +56 -0
- data/lib/netsuite/support/search_result.rb +150 -0
- data/lib/netsuite/support/sublist.rb +71 -0
- data/lib/netsuite/utilities/data_center.rb +53 -0
- data/lib/netsuite/utilities/strings.rb +15 -0
- data/lib/netsuite/utilities.rb +324 -0
- data/lib/netsuite/version.rb +3 -0
- data/lib/netsuite.rb +348 -0
- data/netsuite.gemspec +30 -0
- data/spec/integration/soap_http_spec.rb +76 -0
- data/spec/netsuite/actions/add_spec.rb +155 -0
- data/spec/netsuite/actions/async_add_list_spec.rb +123 -0
- data/spec/netsuite/actions/async_delete_list_spec.rb +60 -0
- data/spec/netsuite/actions/async_get_list_spec.rb +78 -0
- data/spec/netsuite/actions/async_initialize_list_spec.rb +106 -0
- data/spec/netsuite/actions/async_lifecycle_spec.rb +51 -0
- data/spec/netsuite/actions/async_response_spec.rb +187 -0
- data/spec/netsuite/actions/async_search_spec.rb +27 -0
- data/spec/netsuite/actions/async_update_list_spec.rb +80 -0
- data/spec/netsuite/actions/async_upsert_list_spec.rb +157 -0
- data/spec/netsuite/actions/attach_file_spec.rb +59 -0
- data/spec/netsuite/actions/check_async_status_spec.rb +29 -0
- data/spec/netsuite/actions/delete_list_spec.rb +86 -0
- data/spec/netsuite/actions/delete_spec.rb +93 -0
- data/spec/netsuite/actions/get_all_spec.rb +100 -0
- data/spec/netsuite/actions/get_async_result_spec.rb +78 -0
- data/spec/netsuite/actions/get_deleted_spec.rb +60 -0
- data/spec/netsuite/actions/get_list_spec.rb +157 -0
- data/spec/netsuite/actions/get_select_value_spec.rb +43 -0
- data/spec/netsuite/actions/get_spec.rb +72 -0
- data/spec/netsuite/actions/initialize_spec.rb +34 -0
- data/spec/netsuite/actions/search_spec.rb +387 -0
- data/spec/netsuite/actions/update_list_spec.rb +107 -0
- data/spec/netsuite/actions/update_spec.rb +133 -0
- data/spec/netsuite/actions/upsert_list_spec.rb +112 -0
- data/spec/netsuite/actions/upsert_spec.rb +117 -0
- data/spec/netsuite/configuration_spec.rb +661 -0
- data/spec/netsuite/records/account_spec.rb +107 -0
- data/spec/netsuite/records/accounting_period_spec.rb +138 -0
- data/spec/netsuite/records/address_spec.rb +139 -0
- data/spec/netsuite/records/assembly_item_spec.rb +64 -0
- data/spec/netsuite/records/basic_record_spec.rb +128 -0
- data/spec/netsuite/records/bill_address_spec.rb +52 -0
- data/spec/netsuite/records/billing_schedule_milestone_list_spec.rb +24 -0
- data/spec/netsuite/records/billing_schedule_milestone_spec.rb +51 -0
- data/spec/netsuite/records/billing_schedule_recurrence_list_spec.rb +24 -0
- data/spec/netsuite/records/billing_schedule_recurrence_spec.rb +49 -0
- data/spec/netsuite/records/billing_schedule_spec.rb +164 -0
- data/spec/netsuite/records/bin_number_spec.rb +23 -0
- data/spec/netsuite/records/campaign_spec.rb +43 -0
- data/spec/netsuite/records/cash_refund_item_list_spec.rb +27 -0
- data/spec/netsuite/records/cash_refund_item_spec.rb +27 -0
- data/spec/netsuite/records/cash_refund_spec.rb +152 -0
- data/spec/netsuite/records/cash_sale_item_list_spec.rb +27 -0
- data/spec/netsuite/records/cash_sale_item_spec.rb +23 -0
- data/spec/netsuite/records/cash_sale_spec.rb +34 -0
- data/spec/netsuite/records/classification_spec.rb +77 -0
- data/spec/netsuite/records/cost_category_spec.rb +105 -0
- data/spec/netsuite/records/credit_memo_apply_list_spec.rb +27 -0
- data/spec/netsuite/records/credit_memo_apply_spec.rb +14 -0
- data/spec/netsuite/records/credit_memo_item_list_spec.rb +26 -0
- data/spec/netsuite/records/credit_memo_item_spec.rb +29 -0
- data/spec/netsuite/records/credit_memo_spec.rb +213 -0
- data/spec/netsuite/records/currency_rate_spec.rb +45 -0
- data/spec/netsuite/records/custom_field_list_spec.rb +276 -0
- data/spec/netsuite/records/custom_list_spec.rb +21 -0
- data/spec/netsuite/records/custom_record_spec.rb +125 -0
- data/spec/netsuite/records/custom_record_type_spec.rb +114 -0
- data/spec/netsuite/records/customer_addressbook_list_spec.rb +41 -0
- data/spec/netsuite/records/customer_addressbook_spec.rb +105 -0
- data/spec/netsuite/records/customer_credit_cards_list_spec.rb +23 -0
- data/spec/netsuite/records/customer_payment_apply_list_spec.rb +25 -0
- data/spec/netsuite/records/customer_payment_credit_list_spec.rb +26 -0
- data/spec/netsuite/records/customer_payment_spec.rb +168 -0
- data/spec/netsuite/records/customer_refund_apply_list_spec.rb +25 -0
- data/spec/netsuite/records/customer_refund_apply_spec.rb +14 -0
- data/spec/netsuite/records/customer_refund_deposit_list_spec.rb +25 -0
- data/spec/netsuite/records/customer_refund_deposit_spec.rb +14 -0
- data/spec/netsuite/records/customer_refund_spec.rb +205 -0
- data/spec/netsuite/records/customer_sales_team_list_spec.rb +41 -0
- data/spec/netsuite/records/customer_spec.rb +561 -0
- data/spec/netsuite/records/department_spec.rb +103 -0
- data/spec/netsuite/records/deposit_spec.rb +165 -0
- data/spec/netsuite/records/discount_item_spec.rb +125 -0
- data/spec/netsuite/records/duration_spec.rb +14 -0
- data/spec/netsuite/records/employee_spec.rb +148 -0
- data/spec/netsuite/records/entity_custom_field_spec.rb +34 -0
- data/spec/netsuite/records/estimate_item_list_spec.rb +26 -0
- data/spec/netsuite/records/estimate_item_spec.rb +35 -0
- data/spec/netsuite/records/estimate_spec.rb +274 -0
- data/spec/netsuite/records/file_spec.rb +11 -0
- data/spec/netsuite/records/folder_spec.rb +33 -0
- data/spec/netsuite/records/gift_cert_redemption_list_spec.rb +26 -0
- data/spec/netsuite/records/gift_cert_redemption_spec.rb +21 -0
- data/spec/netsuite/records/inter_company_journal_entry_line_list_spec.rb +26 -0
- data/spec/netsuite/records/inter_company_journal_entry_line_spec.rb +60 -0
- data/spec/netsuite/records/inter_company_journal_entry_spec.rb +156 -0
- data/spec/netsuite/records/inventory_assignment_list_spec.rb +59 -0
- data/spec/netsuite/records/inventory_assignment_spec.rb +21 -0
- data/spec/netsuite/records/inventory_detail_spec.rb +13 -0
- data/spec/netsuite/records/inventory_item_spec.rb +532 -0
- data/spec/netsuite/records/inventory_transfer_spec.rb +79 -0
- data/spec/netsuite/records/invoice_item_list_spec.rb +24 -0
- data/spec/netsuite/records/invoice_item_spec.rb +79 -0
- data/spec/netsuite/records/invoice_spec.rb +494 -0
- data/spec/netsuite/records/item_availability_spec.rb +59 -0
- data/spec/netsuite/records/item_fulfillment_package_fed_ex_list_spec.rb +27 -0
- data/spec/netsuite/records/item_fulfillment_package_list_spec.rb +27 -0
- data/spec/netsuite/records/item_fulfillment_package_ups_list_spec.rb +27 -0
- data/spec/netsuite/records/item_fulfillment_package_usps_list_spec.rb +27 -0
- data/spec/netsuite/records/item_fulfillment_spec.rb +49 -0
- data/spec/netsuite/records/item_group_spec.rb +117 -0
- data/spec/netsuite/records/item_member_list_spec.rb +26 -0
- data/spec/netsuite/records/item_option_custom_field_spec.rb +27 -0
- data/spec/netsuite/records/item_vendor_list_spec.rb +27 -0
- data/spec/netsuite/records/item_vendor_spec.rb +27 -0
- data/spec/netsuite/records/job_spec.rb +201 -0
- data/spec/netsuite/records/journal_entry_line_list_spec.rb +26 -0
- data/spec/netsuite/records/journal_entry_line_spec.rb +59 -0
- data/spec/netsuite/records/journal_entry_spec.rb +156 -0
- data/spec/netsuite/records/kit_item_spec.rb +117 -0
- data/spec/netsuite/records/location_spec.rb +51 -0
- data/spec/netsuite/records/lot_numbered_inventory_item_spec.rb +247 -0
- data/spec/netsuite/records/matrix_option_list_spec.rb +61 -0
- data/spec/netsuite/records/message_spec.rb +49 -0
- data/spec/netsuite/records/non_inventory_resale_item_spec.rb +300 -0
- data/spec/netsuite/records/non_inventory_sale_item_spec.rb +278 -0
- data/spec/netsuite/records/note_spec.rb +134 -0
- data/spec/netsuite/records/note_type_spec.rb +88 -0
- data/spec/netsuite/records/null_field_list_spec.rb +30 -0
- data/spec/netsuite/records/partner_spec.rb +143 -0
- data/spec/netsuite/records/payment_item_spec.rb +117 -0
- data/spec/netsuite/records/payment_method_spec.rb +49 -0
- data/spec/netsuite/records/phone_call_spec.rb +17 -0
- data/spec/netsuite/records/pomo_code_spec.rb +40 -0
- data/spec/netsuite/records/price_level_spec.rb +16 -0
- data/spec/netsuite/records/pricing_matrix_spec.rb +27 -0
- data/spec/netsuite/records/record_ref_spec.rb +87 -0
- data/spec/netsuite/records/return_authorization_item_list_spec.rb +26 -0
- data/spec/netsuite/records/return_authorization_item_spec.rb +31 -0
- data/spec/netsuite/records/return_authorization_spec.rb +62 -0
- data/spec/netsuite/records/rev_rec_template_spec.rb +39 -0
- data/spec/netsuite/records/sales_order_item_list_spec.rb +26 -0
- data/spec/netsuite/records/sales_order_item_spec.rb +36 -0
- data/spec/netsuite/records/sales_order_spec.rb +250 -0
- data/spec/netsuite/records/sales_tax_item_spec.rb +26 -0
- data/spec/netsuite/records/service_resale_item_spec.rb +239 -0
- data/spec/netsuite/records/service_sale_item_spec.rb +135 -0
- data/spec/netsuite/records/ship_address_spec.rb +36 -0
- data/spec/netsuite/records/site_category_spec.rb +51 -0
- data/spec/netsuite/records/subscription_spec.rb +37 -0
- data/spec/netsuite/records/subscriptions_list_spec.rb +19 -0
- data/spec/netsuite/records/subsidiary_spec.rb +25 -0
- data/spec/netsuite/records/support_case_spec.rb +157 -0
- data/spec/netsuite/records/support_case_type_spec.rb +22 -0
- data/spec/netsuite/records/tax_type_spec.rb +11 -0
- data/spec/netsuite/records/term_spec.rb +96 -0
- data/spec/netsuite/records/transaction_body_custom_field_spec.rb +32 -0
- data/spec/netsuite/records/transaction_column_custom_field_spec.rb +32 -0
- data/spec/netsuite/records/translation_list_spec.rb +34 -0
- data/spec/netsuite/records/translation_spec.rb +28 -0
- data/spec/netsuite/records/units_type_spec.rb +33 -0
- data/spec/netsuite/records/units_type_uom_list_spec.rb +23 -0
- data/spec/netsuite/records/units_type_uom_spec.rb +14 -0
- data/spec/netsuite/records/vendor_bill_expense_list_spec.rb +36 -0
- data/spec/netsuite/records/vendor_bill_expense_spec.rb +72 -0
- data/spec/netsuite/records/vendor_bill_item_list_spec.rb +36 -0
- data/spec/netsuite/records/vendor_bill_item_spec.rb +118 -0
- data/spec/netsuite/records/vendor_bill_spec.rb +187 -0
- data/spec/netsuite/records/vendor_credit_spec.rb +29 -0
- data/spec/netsuite/records/vendor_payment_apply_list_spec.rb +25 -0
- data/spec/netsuite/records/vendor_payment_apply_spec.rb +15 -0
- data/spec/netsuite/records/vendor_payment_spec.rb +164 -0
- data/spec/netsuite/records/vendor_spec.rb +145 -0
- data/spec/netsuite/records/work_order_item_list_spec.rb +26 -0
- data/spec/netsuite/records/work_order_item_spec.rb +45 -0
- data/spec/netsuite/records/work_order_spec.rb +92 -0
- data/spec/netsuite/response_spec.rb +34 -0
- data/spec/netsuite/support/fields_spec.rb +107 -0
- data/spec/netsuite/support/record_refs_spec.rb +14 -0
- data/spec/netsuite/support/records_spec.rb +60 -0
- data/spec/netsuite/support/refresh_spec.rb +28 -0
- data/spec/netsuite/support/requests_spec.rb +38 -0
- data/spec/netsuite/support/search_result_spec.rb +53 -0
- data/spec/netsuite/support/sublist_spec.rb +42 -0
- data/spec/netsuite/utilities/data_center_spec.rb +110 -0
- data/spec/netsuite/utilities/request_spec.rb +29 -0
- data/spec/netsuite/utilities/roles_spec.rb +145 -0
- data/spec/netsuite/utilities_spec.rb +140 -0
- data/spec/netsuite_spec.rb +41 -0
- data/spec/spec_helper.rb +50 -0
- data/spec/support/configuration.rb +23 -0
- data/spec/support/field_matcher.rb +21 -0
- data/spec/support/fixtures/add/add_customer.xml +16 -0
- data/spec/support/fixtures/add/add_file.xml +20 -0
- data/spec/support/fixtures/add/add_invoice.xml +20 -0
- data/spec/support/fixtures/add/add_invoice_error.xml +19 -0
- data/spec/support/fixtures/add/add_invoice_multiple_errors.xml +24 -0
- data/spec/support/fixtures/async_add_list/async_add_list_pending.xml +18 -0
- data/spec/support/fixtures/async_delete_list/async_delete_list_pending.xml +18 -0
- data/spec/support/fixtures/async_get_list/async_get_list_pending.xml +18 -0
- data/spec/support/fixtures/async_initialize_list/async_initialize_list_pending.xml +18 -0
- data/spec/support/fixtures/async_search/async_search_pending.xml +18 -0
- data/spec/support/fixtures/async_update_list/async_update_list_pending.xml +18 -0
- data/spec/support/fixtures/async_upsert_list/async_upsert_list_customers.xml +16 -0
- data/spec/support/fixtures/async_upsert_list/async_upsert_list_one_customer.xml +16 -0
- data/spec/support/fixtures/async_upsert_list/async_upsert_list_with_errors.xml +21 -0
- data/spec/support/fixtures/attach/attach_file_to_sales_order.xml +16 -0
- data/spec/support/fixtures/attach/attach_file_to_sales_order_error.xml +20 -0
- data/spec/support/fixtures/check_async_status/check_async_status_pending.xml +18 -0
- data/spec/support/fixtures/custom_fields/multi_select.xml +47 -0
- data/spec/support/fixtures/delete/delete_customer.xml +16 -0
- data/spec/support/fixtures/delete/delete_customer_error.xml +21 -0
- data/spec/support/fixtures/delete/delete_customer_multiple_errors.xml +25 -0
- data/spec/support/fixtures/delete_list/delete_list_customers.xml +26 -0
- data/spec/support/fixtures/delete_list/delete_list_customers_with_errors.xml +31 -0
- data/spec/support/fixtures/get/get_customer.xml +61 -0
- data/spec/support/fixtures/get/get_invoice.xml +101 -0
- data/spec/support/fixtures/get_all/get_all_currencies.xml +24 -0
- data/spec/support/fixtures/get_all/get_all_error.xml +15 -0
- data/spec/support/fixtures/get_async_result/get_async_result_finished.xml +22 -0
- data/spec/support/fixtures/get_async_result/get_async_result_upsert_list_finished.xml +26 -0
- data/spec/support/fixtures/get_async_result/get_async_result_write_list_multiple.xml +34 -0
- data/spec/support/fixtures/get_deleted/get_deleted_invoices.xml +38 -0
- data/spec/support/fixtures/get_item_availability/get_item_availability.xml +46 -0
- data/spec/support/fixtures/get_list/get_list_customer_error.xml +22 -0
- data/spec/support/fixtures/get_list/get_list_customers.xml +21 -0
- data/spec/support/fixtures/get_list/get_list_customers_multiple.xml +28 -0
- data/spec/support/fixtures/get_select_value/empty_result.xml +22 -0
- data/spec/support/fixtures/get_select_value/item_fulfillment_ship_method.xml +43 -0
- data/spec/support/fixtures/initialize/initialize_invoice_from_customer.xml +69 -0
- data/spec/support/fixtures/login/failure_concurrent_requests.xml +15 -0
- data/spec/support/fixtures/login/failure_invalid_credentials.xml +15 -0
- data/spec/support/fixtures/login/success.xml +35 -0
- data/spec/support/fixtures/search/basic_search_contact.xml +39 -0
- data/spec/support/fixtures/search/saved_search_customer.xml +54 -0
- data/spec/support/fixtures/search/saved_search_item.xml +55 -0
- data/spec/support/fixtures/search/saved_search_joined_custom_customer.xml +101 -0
- data/spec/support/fixtures/search/single_search_result.xml +46 -0
- data/spec/support/fixtures/soap/v2025_2_0/wsdl/netsuite.wsdl +2531 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/activities/scheduling.xsd +603 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/activities/schedulingTypes.xsd +198 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/documents/fileCabinet.xsd +159 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/documents/fileCabinetTypes.xsd +110 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/general/communication.xsd +210 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/general/communicationTypes.xsd +20 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/accounting.xsd +6768 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/accountingTypes.xsd +1043 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/employeeTypes.xsd +344 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/employees.xsd +518 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/marketing.xsd +528 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/marketingTypes.xsd +145 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/relationshipTypes.xsd +190 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/relationships.xsd +1658 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/supplyChain.xsd +282 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/supplyChainTypes.xsd +26 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/support.xsd +534 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/supportTypes.xsd +74 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/website.xsd +99 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/lists/websiteTypes.xsd +2 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/platform/common.xsd +8411 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/platform/commonTypes.xsd +1371 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/platform/core.xsd +1096 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/platform/coreTypes.xsd +877 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/platform/faultTypes.xsd +1446 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/platform/faults.xsd +82 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/platform/messages.xsd +664 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/setup/customization.xsd +1604 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/setup/customizationTypes.xsd +119 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/bank.xsd +212 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/bankTypes.xsd +2 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/customerTypes.xsd +99 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/customers.xsd +1131 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/demandPlanning.xsd +173 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/demandPlanningTypes.xsd +52 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/employeeTypes.xsd +10 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/employees.xsd +723 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/financial.xsd +88 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/financialTypes.xsd +9 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/general.xsd +364 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/inventory.xsd +780 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/inventoryTypes.xsd +49 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/purchaseTypes.xsd +44 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/purchases.xsd +986 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/saleTypes.xsd +754 -0
- data/spec/support/fixtures/soap/v2025_2_0/xsd/transactions/sales.xsd +2025 -0
- data/spec/support/fixtures/update/update_customer.xml +16 -0
- data/spec/support/fixtures/update/update_customer_error.xml +21 -0
- data/spec/support/fixtures/update/update_customer_multiple_errors.xml +25 -0
- data/spec/support/fixtures/update/update_invoice.xml +16 -0
- data/spec/support/fixtures/update_list/update_list_items.xml +22 -0
- data/spec/support/fixtures/update_list/update_list_one_item.xml +18 -0
- data/spec/support/fixtures/update_list/update_list_with_errors.xml +32 -0
- data/spec/support/fixtures/upsert/upsert_customer.xml +16 -0
- data/spec/support/fixtures/upsert/upsert_invoice.xml +16 -0
- data/spec/support/fixtures/upsert/upsert_invoice_error.xml +20 -0
- data/spec/support/fixtures/upsert/upsert_invoice_multiple_errors.xml +24 -0
- data/spec/support/fixtures/upsert_list/upsert_list_customers.xml +21 -0
- data/spec/support/fixtures/upsert_list/upsert_list_one_customer.xml +17 -0
- data/spec/support/fixtures/upsert_list/upsert_list_with_errors.xml +32 -0
- data/spec/support/read_only_field_matcher.rb +7 -0
- data/spec/support/record_ref_matcher.rb +25 -0
- data/spec/support/savon.rb +5 -0
- data/spec/support/search_only_field_matcher.rb +7 -0
- data/spec/support/webmock_soap_helper.rb +15 -0
- data/workflow.md +368 -0
- metadata +764 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
module NetSuite
|
|
2
|
+
module Records
|
|
3
|
+
class SalesRole
|
|
4
|
+
include Support::Records
|
|
5
|
+
include Support::Fields
|
|
6
|
+
include Support::Actions
|
|
7
|
+
include Support::RecordRefs
|
|
8
|
+
include Namespaces::ListEmp
|
|
9
|
+
|
|
10
|
+
# https://system.netsuite.com/help/helpcenter/en_US/srbrowser/Browser2017_1/script/record/sales_role.html
|
|
11
|
+
|
|
12
|
+
actions :get, :get_list, :add, :update, :upsert, :upsert_list, :delete, :search
|
|
13
|
+
|
|
14
|
+
fields :name
|
|
15
|
+
|
|
16
|
+
attr_reader :internal_id
|
|
17
|
+
attr_accessor :external_id
|
|
18
|
+
|
|
19
|
+
def initialize(attributes = {})
|
|
20
|
+
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
|
21
|
+
@external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
|
|
22
|
+
initialize_from_attributes_hash(attributes)
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
module NetSuite
|
|
2
|
+
module Records
|
|
3
|
+
class SalesTaxItem
|
|
4
|
+
include Support::Fields
|
|
5
|
+
include Support::RecordRefs
|
|
6
|
+
include Support::Records
|
|
7
|
+
include Support::Actions
|
|
8
|
+
include Namespaces::ListAcct
|
|
9
|
+
|
|
10
|
+
# NOTE `get_all` is not available in recent API versions ~2017_2
|
|
11
|
+
# `search` is only available in recent API versions
|
|
12
|
+
actions :get, :get_list, :get_all, :get_select_value, :add, :delete,
|
|
13
|
+
:update, :upsert, :search
|
|
14
|
+
|
|
15
|
+
fields :item_id, :display_name, :description, :rate, :is_inactive,
|
|
16
|
+
:effective_from, :valid_until, :include_children, :eccode,
|
|
17
|
+
:reverse_charge, :service, :exempt, :is_default,
|
|
18
|
+
:exclude_from_tax_reports, :available, :export, :county, :city, :state,
|
|
19
|
+
:zip
|
|
20
|
+
|
|
21
|
+
record_refs :tax_type, :tax_agency, :tax_account, :purchase_account,
|
|
22
|
+
:sale_account, :parent, :nexus_country
|
|
23
|
+
|
|
24
|
+
attr_reader :internal_id
|
|
25
|
+
attr_accessor :external_id
|
|
26
|
+
|
|
27
|
+
def initialize(attributes = {})
|
|
28
|
+
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
|
29
|
+
@external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
|
|
30
|
+
initialize_from_attributes_hash(attributes)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
module NetSuite
|
|
2
|
+
module Records
|
|
3
|
+
class SerializedAssemblyItem
|
|
4
|
+
include Support::Fields
|
|
5
|
+
include Support::RecordRefs
|
|
6
|
+
include Support::Records
|
|
7
|
+
include Support::Actions
|
|
8
|
+
include Namespaces::ListAcct
|
|
9
|
+
|
|
10
|
+
actions :get, :get_deleted, :get_list, :add, :delete, :search, :update, :update_list, :upsert
|
|
11
|
+
|
|
12
|
+
fields :alternate_demand_source_item,
|
|
13
|
+
:asset_account,
|
|
14
|
+
:auto_lead_time,
|
|
15
|
+
:auto_preferred_stock_level,
|
|
16
|
+
:auto_reorder_point,
|
|
17
|
+
:available_to_partners,
|
|
18
|
+
:average_cost,
|
|
19
|
+
:bill_exch_rate_variance_acct,
|
|
20
|
+
:billing_schedule,
|
|
21
|
+
:bill_price_variance_acct,
|
|
22
|
+
:bill_qty_variance_acct,
|
|
23
|
+
:build_entire_assembly,
|
|
24
|
+
:build_time,
|
|
25
|
+
:klass,
|
|
26
|
+
:cogs_account,
|
|
27
|
+
:cost,
|
|
28
|
+
:cost_category,
|
|
29
|
+
:cost_estimate,
|
|
30
|
+
:cost_estimate_type,
|
|
31
|
+
:costing_method,
|
|
32
|
+
:costing_method_display,
|
|
33
|
+
:country_of_manufacture,
|
|
34
|
+
:created_date,
|
|
35
|
+
:create_revenue_plans_on,
|
|
36
|
+
:custom_form,
|
|
37
|
+
:default_item_ship_method,
|
|
38
|
+
:default_return_cost,
|
|
39
|
+
:default_revision,
|
|
40
|
+
:deferred_revenue_account,
|
|
41
|
+
:demand_modifier,
|
|
42
|
+
:demand_source,
|
|
43
|
+
:demand_time_fence,
|
|
44
|
+
:department,
|
|
45
|
+
:description,
|
|
46
|
+
:display_name,
|
|
47
|
+
:dont_show_price,
|
|
48
|
+
:dropship_expense_account,
|
|
49
|
+
:effective_bom_control,
|
|
50
|
+
:enforce_min_qty_internally,
|
|
51
|
+
:exclude_from_sitemap,
|
|
52
|
+
:featured_description,
|
|
53
|
+
:fixed_lot_size,
|
|
54
|
+
:gain_loss_account,
|
|
55
|
+
:handling_cost,
|
|
56
|
+
:handling_cost_units,
|
|
57
|
+
:hazmat_hazard_class,
|
|
58
|
+
:hazmat_id,
|
|
59
|
+
:hazmat_item_units,
|
|
60
|
+
:hazmat_item_units_qty,
|
|
61
|
+
:hazmat_packing_group,
|
|
62
|
+
:hazmat_shipping_name,
|
|
63
|
+
:include_children,
|
|
64
|
+
:interco_cogs_account,
|
|
65
|
+
:interco_income_account,
|
|
66
|
+
:invt_classification,
|
|
67
|
+
:invt_count_interval,
|
|
68
|
+
:is_donation_item,
|
|
69
|
+
:is_gco_compliant,
|
|
70
|
+
:is_hazmat_item,
|
|
71
|
+
:is_inactive,
|
|
72
|
+
:is_online,
|
|
73
|
+
:is_phantom,
|
|
74
|
+
:is_special_work_order_item,
|
|
75
|
+
:issue_product,
|
|
76
|
+
:is_taxable,
|
|
77
|
+
:item_carrier,
|
|
78
|
+
:item_id,
|
|
79
|
+
:item_number_options_list,
|
|
80
|
+
:item_revenue_category,
|
|
81
|
+
:last_invt_count_date,
|
|
82
|
+
:last_modified_date,
|
|
83
|
+
:last_purchase_price,
|
|
84
|
+
:lead_time,
|
|
85
|
+
:location,
|
|
86
|
+
:locations_list,
|
|
87
|
+
:manufacturer,
|
|
88
|
+
:manufactureraddr1,
|
|
89
|
+
:manufacturer_city,
|
|
90
|
+
:manufacturer_state,
|
|
91
|
+
:manufacturer_tariff,
|
|
92
|
+
:manufacturer_tax_id,
|
|
93
|
+
:manufacturer_zip,
|
|
94
|
+
:match_bill_to_receipt,
|
|
95
|
+
:matrix_item_name_template,
|
|
96
|
+
:max_donation_amount,
|
|
97
|
+
:meta_tag_html,
|
|
98
|
+
:minimum_quantity,
|
|
99
|
+
:minimum_quantity_units,
|
|
100
|
+
:mpn,
|
|
101
|
+
:mult_manufacture_addr,
|
|
102
|
+
:nex_tag_category,
|
|
103
|
+
:next_invt_count_date,
|
|
104
|
+
:no_price_message,
|
|
105
|
+
:offer_support,
|
|
106
|
+
:on_special,
|
|
107
|
+
:out_of_stock_behavior,
|
|
108
|
+
:out_of_stock_message,
|
|
109
|
+
:overall_quantity_pricing_type,
|
|
110
|
+
:page_title,
|
|
111
|
+
:parent,
|
|
112
|
+
:preference_criterion,
|
|
113
|
+
:preferred_location,
|
|
114
|
+
:preferred_stock_level,
|
|
115
|
+
:preferred_stock_level_days,
|
|
116
|
+
:preferred_stock_level_units,
|
|
117
|
+
:prices_include_tax,
|
|
118
|
+
:pricing_group,
|
|
119
|
+
:pricing_matrix,
|
|
120
|
+
:print_items,
|
|
121
|
+
:prod_price_variance_acct,
|
|
122
|
+
:prod_qty_variance_acct,
|
|
123
|
+
:producer,
|
|
124
|
+
:product_feed_list,
|
|
125
|
+
:purchase_description,
|
|
126
|
+
:purchase_order_amount,
|
|
127
|
+
:purchase_order_quantity,
|
|
128
|
+
:purchase_order_quantity_diff,
|
|
129
|
+
:purchase_price_variance_acct,
|
|
130
|
+
:purchase_tax_code,
|
|
131
|
+
:purchase_unit,
|
|
132
|
+
:quantity_available,
|
|
133
|
+
:quantity_back_ordered,
|
|
134
|
+
:quantity_committed,
|
|
135
|
+
:quantity_on_hand,
|
|
136
|
+
:quantity_on_hand_units,
|
|
137
|
+
:quantity_on_order,
|
|
138
|
+
:quantity_pricing_schedule,
|
|
139
|
+
:rate,
|
|
140
|
+
:receipt_amount,
|
|
141
|
+
:receipt_quantity,
|
|
142
|
+
:receipt_quantity_diff,
|
|
143
|
+
:related_items_description,
|
|
144
|
+
:reorder_multiple,
|
|
145
|
+
:reorder_point,
|
|
146
|
+
:reorder_point_units,
|
|
147
|
+
:reschedule_in_days,
|
|
148
|
+
:reschedule_out_days,
|
|
149
|
+
:revenue_allocation_group,
|
|
150
|
+
:revenue_recognition_rule,
|
|
151
|
+
:rev_rec_schedule,
|
|
152
|
+
:round_up_as_component,
|
|
153
|
+
:safety_stock_level,
|
|
154
|
+
:safety_stock_level_days,
|
|
155
|
+
:safety_stock_level_units,
|
|
156
|
+
:sales_tax_code,
|
|
157
|
+
:sale_unit,
|
|
158
|
+
:schedule_b_code,
|
|
159
|
+
:schedule_b_number,
|
|
160
|
+
:schedule_b_quantity,
|
|
161
|
+
:scrap_acct,
|
|
162
|
+
:search_keywords,
|
|
163
|
+
:seasonal_demand,
|
|
164
|
+
:serial_numbers,
|
|
165
|
+
:ship_individually,
|
|
166
|
+
:ship_package,
|
|
167
|
+
:shipping_cost,
|
|
168
|
+
:shipping_cost_units,
|
|
169
|
+
:shopping_dot_com_category,
|
|
170
|
+
:shopzilla_category_id,
|
|
171
|
+
:show_default_donation_amount,
|
|
172
|
+
:sitemap_priority,
|
|
173
|
+
:soft_descriptor,
|
|
174
|
+
:specials_description,
|
|
175
|
+
:stock_description,
|
|
176
|
+
:stock_unit,
|
|
177
|
+
:store_description,
|
|
178
|
+
:store_detailed_description,
|
|
179
|
+
:store_display_image,
|
|
180
|
+
:store_display_name,
|
|
181
|
+
:store_display_thumbnail,
|
|
182
|
+
:store_item_template,
|
|
183
|
+
:supply_lot_sizing_method,
|
|
184
|
+
:supply_replenishment_method,
|
|
185
|
+
:supply_time_fence,
|
|
186
|
+
:supply_type,
|
|
187
|
+
:tax_schedule,
|
|
188
|
+
:total_value,
|
|
189
|
+
:track_landed_cost,
|
|
190
|
+
:transfer_price,
|
|
191
|
+
:unbuild_variance_account,
|
|
192
|
+
:units_type,
|
|
193
|
+
:upc_code,
|
|
194
|
+
:url_component,
|
|
195
|
+
:use_bins,
|
|
196
|
+
:use_component_yield,
|
|
197
|
+
:use_marginal_rates,
|
|
198
|
+
:vendor_name,
|
|
199
|
+
:vsoe_deferral,
|
|
200
|
+
:vsoe_delivered,
|
|
201
|
+
:vsoe_permit_discount,
|
|
202
|
+
:vsoe_price,
|
|
203
|
+
:vsoe_sop_group,
|
|
204
|
+
:weight,
|
|
205
|
+
:weight_unit,
|
|
206
|
+
:weight_units,
|
|
207
|
+
:wip_acct,
|
|
208
|
+
:wip_variance_acct
|
|
209
|
+
|
|
210
|
+
record_refs :income_account
|
|
211
|
+
|
|
212
|
+
# accountingBookDetailList ItemAccountingBookDetailList
|
|
213
|
+
# binNumberList InventoryItemBinNumberList
|
|
214
|
+
# itemOptionsList ItemOptionsList
|
|
215
|
+
# itemShipMethodList RecordRefList
|
|
216
|
+
# itemVendorList ItemVendorList
|
|
217
|
+
# memberList ItemMemberList
|
|
218
|
+
# numbersList SerializedInventoryItemNumbersList
|
|
219
|
+
# presentationItemList PresentationItemList
|
|
220
|
+
# siteCategoryList SiteCategoryList
|
|
221
|
+
# translationsList TranslationList
|
|
222
|
+
|
|
223
|
+
field :subsidiary_list, RecordRefList
|
|
224
|
+
field :custom_field_list, CustomFieldList
|
|
225
|
+
|
|
226
|
+
attr_reader :internal_id
|
|
227
|
+
attr_accessor :external_id
|
|
228
|
+
|
|
229
|
+
def initialize(attributes = {})
|
|
230
|
+
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
|
231
|
+
@external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
|
|
232
|
+
initialize_from_attributes_hash(attributes)
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
def self.search_class_name
|
|
236
|
+
"Item"
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
end
|
|
240
|
+
end
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
module NetSuite
|
|
2
|
+
module Records
|
|
3
|
+
class SerializedInventoryItem
|
|
4
|
+
include Support::Fields
|
|
5
|
+
include Support::RecordRefs
|
|
6
|
+
include Support::Records
|
|
7
|
+
include Support::Actions
|
|
8
|
+
include Namespaces::ListAcct
|
|
9
|
+
|
|
10
|
+
actions :get, :get_deleted, :get_list, :add, :delete, :search, :update, :update_list, :upsert
|
|
11
|
+
|
|
12
|
+
record_refs :soft_descriptor,
|
|
13
|
+
:stock_unit,
|
|
14
|
+
:store_display_image,
|
|
15
|
+
:store_display_thumbnail,
|
|
16
|
+
:store_item_template,
|
|
17
|
+
:supply_lot_sizing_method,
|
|
18
|
+
:supply_replenishment_method,
|
|
19
|
+
:supply_type,
|
|
20
|
+
:tax_schedule,
|
|
21
|
+
:units_type,
|
|
22
|
+
:vendor,
|
|
23
|
+
:alternate_demand_source_item,
|
|
24
|
+
:asset_account,
|
|
25
|
+
:bill_exch_rate_variance_acct,
|
|
26
|
+
:billing_schedule,
|
|
27
|
+
:bill_price_variance_acct,
|
|
28
|
+
:bill_qty_variance_acct,
|
|
29
|
+
:klass,
|
|
30
|
+
:cogs_account,
|
|
31
|
+
:cost_category,
|
|
32
|
+
:custom_form,
|
|
33
|
+
:deferred_revenue_account,
|
|
34
|
+
:demand_source,
|
|
35
|
+
:department,
|
|
36
|
+
:dropship_expense_account,
|
|
37
|
+
:gain_loss_account,
|
|
38
|
+
:income_account,
|
|
39
|
+
:interco_cogs_account,
|
|
40
|
+
:interco_income_account,
|
|
41
|
+
:issue_product,
|
|
42
|
+
:location,
|
|
43
|
+
:parent,
|
|
44
|
+
:preferred_location,
|
|
45
|
+
:pricing_group,
|
|
46
|
+
:purchase_price_variance_acct,
|
|
47
|
+
:purchase_tax_code,
|
|
48
|
+
:purchase_unit,
|
|
49
|
+
:quantity_pricing_schedule,
|
|
50
|
+
:sales_tax_code,
|
|
51
|
+
:sale_unit,
|
|
52
|
+
:ship_package,
|
|
53
|
+
:revenue_allocation_group,
|
|
54
|
+
:revenue_recognition_rule,
|
|
55
|
+
:rev_rec_schedule
|
|
56
|
+
|
|
57
|
+
# bin_number_list InventoryItemBinNumberList
|
|
58
|
+
# custom_field_list CustomFieldList
|
|
59
|
+
# hazmat_packing_group HazmatPackingGroup
|
|
60
|
+
# invt_classification ItemInvtClassification
|
|
61
|
+
# item_carrier ItemCarrier
|
|
62
|
+
# item_number_options_list RecordRefList
|
|
63
|
+
# item_options_list ItemOptionsList
|
|
64
|
+
# item_revenue_category RecordRef
|
|
65
|
+
# item_ship_method_list RecordRefList
|
|
66
|
+
# item_vendor_list ItemVendorList
|
|
67
|
+
# locations_list SerializedInventoryItemLocationsList
|
|
68
|
+
# matrix_option_list MatrixOptionList
|
|
69
|
+
# matrix_type ItemMatrixType
|
|
70
|
+
# out_of_stock_behavior ItemOutOfStockBehavior
|
|
71
|
+
# overall_quantity_pricing_type ItemOverallQuantityPricingType
|
|
72
|
+
# periodic_lot_size_type PeriodicLotSizeType
|
|
73
|
+
# preference_criterion ItemPreferenceCriterion
|
|
74
|
+
# presentation_item_list PresentationItemList
|
|
75
|
+
# pricing_matrix PricingMatrix
|
|
76
|
+
# product_feed_list ProductFeedList
|
|
77
|
+
# accounting_book_detail_list ItemAccountingBookDetailList
|
|
78
|
+
|
|
79
|
+
fields :auto_lead_time,
|
|
80
|
+
:auto_preferred_stock_level,
|
|
81
|
+
:auto_reorder_point,
|
|
82
|
+
:available_to_partners,
|
|
83
|
+
:average_cost,
|
|
84
|
+
:backward_consumption_days,
|
|
85
|
+
:copy_description,
|
|
86
|
+
:cost,
|
|
87
|
+
:cost_estimate,
|
|
88
|
+
:costing_method_display,
|
|
89
|
+
:cost_units,
|
|
90
|
+
:created_date,
|
|
91
|
+
:currency,
|
|
92
|
+
:default_item_ship_method,
|
|
93
|
+
:default_return_cost,
|
|
94
|
+
:demand_modifier,
|
|
95
|
+
:demand_time_fence,
|
|
96
|
+
:display_name,
|
|
97
|
+
:dont_show_price,
|
|
98
|
+
:enforce_min_qty_internally,
|
|
99
|
+
:exclude_from_sitemap,
|
|
100
|
+
:featured_description,
|
|
101
|
+
:fixed_lot_size,
|
|
102
|
+
:forward_consumption_days,
|
|
103
|
+
:handling_cost,
|
|
104
|
+
:handling_cost_units,
|
|
105
|
+
:hazmat_hazard_class,
|
|
106
|
+
:hazmat_id,
|
|
107
|
+
:hazmat_item_units,
|
|
108
|
+
:hazmat_item_units_qty,
|
|
109
|
+
:hazmat_shipping_name,
|
|
110
|
+
:include_children,
|
|
111
|
+
:invt_count_interval,
|
|
112
|
+
:is_donation_item,
|
|
113
|
+
:is_drop_ship_item,
|
|
114
|
+
:is_gco_compliant,
|
|
115
|
+
:is_hazmat_item,
|
|
116
|
+
:is_inactive,
|
|
117
|
+
:is_online,
|
|
118
|
+
:is_special_order_item,
|
|
119
|
+
:is_taxable,
|
|
120
|
+
:item_id,
|
|
121
|
+
:last_invt_count_date,
|
|
122
|
+
:last_modified_date,
|
|
123
|
+
:last_purchase_price,
|
|
124
|
+
:lead_time,
|
|
125
|
+
:manufacturer,
|
|
126
|
+
:manufacturer_addr1,
|
|
127
|
+
:manufacturer_city,
|
|
128
|
+
:manufacturer_state,
|
|
129
|
+
:manufacturer_tariff,
|
|
130
|
+
:manufacturer_tax_id,
|
|
131
|
+
:manufacturer_zip,
|
|
132
|
+
:match_bill_to_receipt,
|
|
133
|
+
:max_donation_amount,
|
|
134
|
+
:meta_tag_html,
|
|
135
|
+
:minimum_quantity,
|
|
136
|
+
:minimum_quantity_units,
|
|
137
|
+
:mpn,
|
|
138
|
+
:mult_manufacture_addr,
|
|
139
|
+
:nex_tag_category,
|
|
140
|
+
:next_invt_count_date,
|
|
141
|
+
:no_price_message,
|
|
142
|
+
:offer_support,
|
|
143
|
+
:on_hand_value_mli,
|
|
144
|
+
:on_special,
|
|
145
|
+
:out_of_stock_message,
|
|
146
|
+
:page_title,
|
|
147
|
+
:periodic_lot_size_days,
|
|
148
|
+
:preferred_stock_level,
|
|
149
|
+
:preferred_stock_level_days,
|
|
150
|
+
:preferred_stock_level_units,
|
|
151
|
+
:prices_include_tax,
|
|
152
|
+
:producer,
|
|
153
|
+
:purchase_description,
|
|
154
|
+
:purchase_order_amount,
|
|
155
|
+
:purchase_order_quantity,
|
|
156
|
+
:purchase_order_quantity_diff,
|
|
157
|
+
:quantity_available,
|
|
158
|
+
:quantity_back_ordered,
|
|
159
|
+
:quantity_committed,
|
|
160
|
+
:quantity_on_hand,
|
|
161
|
+
:quantity_on_hand_units,
|
|
162
|
+
:quantity_on_order,
|
|
163
|
+
:quantity_reorder_units,
|
|
164
|
+
:rate,
|
|
165
|
+
:receipt_amount,
|
|
166
|
+
:receipt_quantity,
|
|
167
|
+
:receipt_quantity_diff,
|
|
168
|
+
:related_items_description,
|
|
169
|
+
:reorder_multiple,
|
|
170
|
+
:reorder_point,
|
|
171
|
+
:reorder_point_units,
|
|
172
|
+
:reschedule_in_days,
|
|
173
|
+
:reschedule_out_days,
|
|
174
|
+
:round_up_as_component,
|
|
175
|
+
:safety_stock_level,
|
|
176
|
+
:safety_stock_level_days,
|
|
177
|
+
:safety_stock_level_units,
|
|
178
|
+
:sales_description,
|
|
179
|
+
:schedule_b_code,
|
|
180
|
+
:schedule_b_number,
|
|
181
|
+
:schedule_b_quantity,
|
|
182
|
+
:search_keywords,
|
|
183
|
+
:seasonal_demand,
|
|
184
|
+
:serial_numbers,
|
|
185
|
+
:ship_individually,
|
|
186
|
+
:shipping_cost,
|
|
187
|
+
:shipping_cost_units,
|
|
188
|
+
:shopping_dot_com_category,
|
|
189
|
+
:shopzilla_category_id,
|
|
190
|
+
:show_default_donation_amount,
|
|
191
|
+
:specials_description,
|
|
192
|
+
:stock_description,
|
|
193
|
+
:store_description,
|
|
194
|
+
:store_detailed_description,
|
|
195
|
+
:store_display_name,
|
|
196
|
+
:supply_time_fence,
|
|
197
|
+
:total_value,
|
|
198
|
+
:track_landed_cost,
|
|
199
|
+
:transfer_price,
|
|
200
|
+
:upc_code,
|
|
201
|
+
:url_component,
|
|
202
|
+
:use_bins,
|
|
203
|
+
:use_marginal_rates,
|
|
204
|
+
:vendor_name,
|
|
205
|
+
:vsoe_delivered,
|
|
206
|
+
:vsoe_price,
|
|
207
|
+
:weight,
|
|
208
|
+
:weight_units
|
|
209
|
+
|
|
210
|
+
# cost_estimate_type ItemCostEstimateType
|
|
211
|
+
# costing_method ItemCostingMethod
|
|
212
|
+
# country_of_manufacture Country
|
|
213
|
+
# create_revenue_plans_on ItemCreateRevenuePlansOn
|
|
214
|
+
# site_category_list SiteCategoryList
|
|
215
|
+
# sitemap_priority SitemapPriority
|
|
216
|
+
# subsidiary_list RecordRefList
|
|
217
|
+
field :translations_list, TranslationList
|
|
218
|
+
# vsoe_deferral VsoeDeferral
|
|
219
|
+
# vsoe_permit_discount VsoePermitDiscount
|
|
220
|
+
# vsoe_sop_group VsoeSopGroup
|
|
221
|
+
# weight_unit ItemWeightUnit
|
|
222
|
+
|
|
223
|
+
field :custom_field_list, CustomFieldList
|
|
224
|
+
field :locations_list, SerializedInventoryItemLocationsList
|
|
225
|
+
field :subsidiary_list, RecordRefList
|
|
226
|
+
field :numbers_list, SerializedInventoryItemNumbersList
|
|
227
|
+
|
|
228
|
+
# TODO from standard copied item record; may need to be deleted
|
|
229
|
+
# field :pricing_matrix, PricingMatrix
|
|
230
|
+
# field :bin_number_list, BinNumberList
|
|
231
|
+
# field :item_vendor_list, ItemVendorList
|
|
232
|
+
# field :matrix_option_list, MatrixOptionList
|
|
233
|
+
|
|
234
|
+
attr_reader :internal_id
|
|
235
|
+
attr_accessor :external_id
|
|
236
|
+
|
|
237
|
+
def initialize(attributes = {})
|
|
238
|
+
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
|
239
|
+
@external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
|
|
240
|
+
initialize_from_attributes_hash(attributes)
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
def self.search_class_name
|
|
244
|
+
"Item"
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
end
|
|
248
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
module NetSuite
|
|
2
|
+
module Records
|
|
3
|
+
class SerializedInventoryItemLocation
|
|
4
|
+
include Support::Fields
|
|
5
|
+
include Support::RecordRefs
|
|
6
|
+
include Support::Records
|
|
7
|
+
include Namespaces::ListAcct
|
|
8
|
+
|
|
9
|
+
fields :average_cost_mil, :backward_consumption_days, :build_time,
|
|
10
|
+
:cost, :costing_lot_size, :default_return_cost, :demand_time_force,
|
|
11
|
+
:fixed_lot_size, :forward_consumption_days, :invt_count_interval,
|
|
12
|
+
:is_wip, :last_invt_count_date, :last_purchase_price_mli, :lead_time,
|
|
13
|
+
:location, :next_invt_count_date, :on_hand_value_mli,
|
|
14
|
+
:periodic_lot_size_days, :preferred_stock_level, :quantity_available,
|
|
15
|
+
:quantity_back_ordered, :quantity_committed, :quantity_on_hand,
|
|
16
|
+
:quantity_on_order, :reorder_point, :reschedule_in_days,
|
|
17
|
+
:reschedule_out_days, :safety_stock_level, :serial_numbers
|
|
18
|
+
|
|
19
|
+
# field :invt_classification, ItemInvtClassification
|
|
20
|
+
# field :periodic_lot_size_type, PeriodicLotSizeType
|
|
21
|
+
|
|
22
|
+
record_refs :alternate_demand_source_item, :demand_source, :inventory_cost_template,
|
|
23
|
+
:location_id, :supply_lot_sizing_method, :supply_replenishment_method, :supply_type
|
|
24
|
+
|
|
25
|
+
attr_reader :internal_id
|
|
26
|
+
attr_accessor :external_id
|
|
27
|
+
|
|
28
|
+
def initialize(attributes = {})
|
|
29
|
+
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
|
|
30
|
+
@external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
|
|
31
|
+
initialize_from_attributes_hash(attributes)
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module NetSuite
|
|
2
|
+
module Records
|
|
3
|
+
class SerializedInventoryItemNumbers
|
|
4
|
+
include Support::Fields
|
|
5
|
+
include Support::Records
|
|
6
|
+
include Namespaces::ListAcct
|
|
7
|
+
|
|
8
|
+
fields :serial_number
|
|
9
|
+
|
|
10
|
+
def initialize(attributes = {})
|
|
11
|
+
initialize_from_attributes_hash(attributes)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|