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
data/lib/netsuite.rb
ADDED
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
require 'set'
|
|
2
|
+
|
|
3
|
+
require 'savon'
|
|
4
|
+
require 'netsuite/version'
|
|
5
|
+
require 'netsuite/errors'
|
|
6
|
+
require 'netsuite/utilities'
|
|
7
|
+
require 'netsuite/utilities/data_center'
|
|
8
|
+
require 'netsuite/utilities/strings'
|
|
9
|
+
require 'netsuite/rest/utilities/roles'
|
|
10
|
+
require 'netsuite/rest/utilities/request'
|
|
11
|
+
|
|
12
|
+
module NetSuite
|
|
13
|
+
autoload :Client, 'netsuite/client'
|
|
14
|
+
autoload :Configuration, 'netsuite/configuration'
|
|
15
|
+
autoload :Response, 'netsuite/response'
|
|
16
|
+
|
|
17
|
+
module Namespaces
|
|
18
|
+
autoload :ActSched, 'netsuite/namespaces/act_sched'
|
|
19
|
+
autoload :FileCabinet, 'netsuite/namespaces/file_cabinet'
|
|
20
|
+
autoload :ListAcct, 'netsuite/namespaces/list_acct'
|
|
21
|
+
autoload :ListRel, 'netsuite/namespaces/list_rel'
|
|
22
|
+
autoload :ListSupport, 'netsuite/namespaces/list_support'
|
|
23
|
+
autoload :ListWebsite, 'netsuite/namespaces/list_website'
|
|
24
|
+
autoload :PlatformCommon, 'netsuite/namespaces/platform_common'
|
|
25
|
+
autoload :PlatformCore, 'netsuite/namespaces/platform_core'
|
|
26
|
+
autoload :TranBank, 'netsuite/namespaces/tran_bank'
|
|
27
|
+
autoload :TranCust, 'netsuite/namespaces/tran_cust'
|
|
28
|
+
autoload :TranEmp, 'netsuite/namespaces/tran_emp'
|
|
29
|
+
autoload :TranGeneral, 'netsuite/namespaces/tran_general'
|
|
30
|
+
autoload :CommGeneral, 'netsuite/namespaces/comm_general'
|
|
31
|
+
autoload :TranInvt, 'netsuite/namespaces/tran_invt'
|
|
32
|
+
autoload :TranSales, 'netsuite/namespaces/tran_sales'
|
|
33
|
+
autoload :TranPurch, 'netsuite/namespaces/tran_purch'
|
|
34
|
+
autoload :SetupCustom, 'netsuite/namespaces/setup_custom'
|
|
35
|
+
autoload :ListEmp, 'netsuite/namespaces/list_emp'
|
|
36
|
+
autoload :ListMkt, 'netsuite/namespaces/list_mkt'
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
module Support
|
|
40
|
+
autoload :Actions, 'netsuite/support/actions'
|
|
41
|
+
autoload :Attributes, 'netsuite/support/attributes'
|
|
42
|
+
autoload :Fields, 'netsuite/support/fields'
|
|
43
|
+
autoload :Sublist, 'netsuite/support/sublist'
|
|
44
|
+
autoload :RecordRefs, 'netsuite/support/record_refs'
|
|
45
|
+
autoload :Records, 'netsuite/support/records'
|
|
46
|
+
autoload :Requests, 'netsuite/support/requests'
|
|
47
|
+
autoload :SearchResult, 'netsuite/support/search_result'
|
|
48
|
+
autoload :Country, 'netsuite/support/country'
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
module Actions
|
|
52
|
+
autoload :AbstractAction, 'netsuite/actions/abstract_action'
|
|
53
|
+
autoload :Add, 'netsuite/actions/add'
|
|
54
|
+
autoload :AsyncAddList, 'netsuite/actions/async_add_list'
|
|
55
|
+
autoload :AsyncDeleteList, 'netsuite/actions/async_delete_list'
|
|
56
|
+
autoload :AsyncGetList, 'netsuite/actions/async_get_list'
|
|
57
|
+
autoload :AsyncInitializeList, 'netsuite/actions/async_initialize_list'
|
|
58
|
+
autoload :AsyncResponse, 'netsuite/actions/async_response'
|
|
59
|
+
autoload :AsyncSearch, 'netsuite/actions/async_search'
|
|
60
|
+
autoload :AsyncUpsertList, 'netsuite/actions/async_upsert_list'
|
|
61
|
+
autoload :AsyncUpdateList, 'netsuite/actions/async_update_list'
|
|
62
|
+
autoload :AttachFile, 'netsuite/actions/attach_file'
|
|
63
|
+
autoload :CheckAsyncStatus, 'netsuite/actions/check_async_status'
|
|
64
|
+
autoload :Delete, 'netsuite/actions/delete'
|
|
65
|
+
autoload :DeleteList, 'netsuite/actions/delete_list'
|
|
66
|
+
autoload :GetAsyncResult, 'netsuite/actions/get_async_result'
|
|
67
|
+
autoload :Get, 'netsuite/actions/get'
|
|
68
|
+
autoload :GetDeleted, 'netsuite/actions/get_deleted'
|
|
69
|
+
autoload :GetAll, 'netsuite/actions/get_all'
|
|
70
|
+
autoload :GetList, 'netsuite/actions/get_list'
|
|
71
|
+
autoload :GetSelectValue, 'netsuite/actions/get_select_value'
|
|
72
|
+
autoload :Initialize, 'netsuite/actions/initialize'
|
|
73
|
+
autoload :Update, 'netsuite/actions/update'
|
|
74
|
+
autoload :UpdateList, 'netsuite/actions/update_list'
|
|
75
|
+
autoload :Upsert, 'netsuite/actions/upsert'
|
|
76
|
+
autoload :UpsertList, 'netsuite/actions/upsert_list'
|
|
77
|
+
autoload :Search, 'netsuite/actions/search'
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
module Records
|
|
81
|
+
autoload :AssemblyItem, 'netsuite/records/assembly_item'
|
|
82
|
+
autoload :AssemblyBuild, 'netsuite/records/assembly_build'
|
|
83
|
+
autoload :AssemblyComponent, 'netsuite/records/assembly_component'
|
|
84
|
+
autoload :AssemblyComponentList, 'netsuite/records/assembly_component_list'
|
|
85
|
+
autoload :AssemblyUnbuild, 'netsuite/records/assembly_unbuild'
|
|
86
|
+
autoload :Account, 'netsuite/records/account'
|
|
87
|
+
autoload :AccountingPeriod, 'netsuite/records/accounting_period'
|
|
88
|
+
autoload :Address, 'netsuite/records/address'
|
|
89
|
+
autoload :BaseRefList, 'netsuite/records/base_ref_list'
|
|
90
|
+
autoload :BillAddress, 'netsuite/records/bill_address'
|
|
91
|
+
autoload :BillingSchedule, 'netsuite/records/billing_schedule'
|
|
92
|
+
autoload :BillingScheduleMilestone, 'netsuite/records/billing_schedule_milestone'
|
|
93
|
+
autoload :BillingScheduleMilestoneList, 'netsuite/records/billing_schedule_milestone_list'
|
|
94
|
+
autoload :BillingScheduleRecurrence, 'netsuite/records/billing_schedule_recurrence'
|
|
95
|
+
autoload :BillingScheduleRecurrenceList, 'netsuite/records/billing_schedule_recurrence_list'
|
|
96
|
+
autoload :Bin, 'netsuite/records/bin'
|
|
97
|
+
autoload :BinNumber, 'netsuite/records/bin_number'
|
|
98
|
+
autoload :BinNumberList, 'netsuite/records/bin_number_list'
|
|
99
|
+
autoload :BinTransfer, 'netsuite/records/bin_transfer'
|
|
100
|
+
autoload :BinTransferInventory, 'netsuite/records/bin_transfer_inventory'
|
|
101
|
+
autoload :BinTransferInventoryList, 'netsuite/records/bin_transfer_inventory_list'
|
|
102
|
+
autoload :CashSale, 'netsuite/records/cash_sale'
|
|
103
|
+
autoload :CashSaleItem, 'netsuite/records/cash_sale_item'
|
|
104
|
+
autoload :CashSaleItemList, 'netsuite/records/cash_sale_item_list'
|
|
105
|
+
autoload :CashRefund, 'netsuite/records/cash_refund'
|
|
106
|
+
autoload :CashRefundItem, 'netsuite/records/cash_refund_item'
|
|
107
|
+
autoload :CashRefundItemList, 'netsuite/records/cash_refund_item_list'
|
|
108
|
+
autoload :Campaign, 'netsuite/records/campaign'
|
|
109
|
+
autoload :Classification, 'netsuite/records/classification'
|
|
110
|
+
autoload :CostCategory, 'netsuite/records/cost_category'
|
|
111
|
+
autoload :CreditMemo, 'netsuite/records/credit_memo'
|
|
112
|
+
autoload :CreditMemoApply, 'netsuite/records/credit_memo_apply'
|
|
113
|
+
autoload :CreditMemoApplyList, 'netsuite/records/credit_memo_apply_list'
|
|
114
|
+
autoload :CreditMemoItem, 'netsuite/records/credit_memo_item'
|
|
115
|
+
autoload :CreditMemoItemList, 'netsuite/records/credit_memo_item_list'
|
|
116
|
+
autoload :CustomField, 'netsuite/records/custom_field'
|
|
117
|
+
autoload :CustomFieldList, 'netsuite/records/custom_field_list'
|
|
118
|
+
autoload :CustomList, 'netsuite/records/custom_list'
|
|
119
|
+
autoload :CustomRecord, 'netsuite/records/custom_record'
|
|
120
|
+
autoload :CustomRecordRef, 'netsuite/records/custom_record_ref'
|
|
121
|
+
autoload :CustomRecordType, 'netsuite/records/custom_record_type'
|
|
122
|
+
autoload :CustomListCustomValue, 'netsuite/records/custom_list_custom_value'
|
|
123
|
+
autoload :CustomListCustomValueList, 'netsuite/records/custom_list_custom_value_list'
|
|
124
|
+
autoload :Customer, 'netsuite/records/customer'
|
|
125
|
+
autoload :CustomerAddressbook, 'netsuite/records/customer_addressbook'
|
|
126
|
+
autoload :CustomerAddressbookList, 'netsuite/records/customer_addressbook_list'
|
|
127
|
+
autoload :CustomerCategory, 'netsuite/records/customer_category'
|
|
128
|
+
autoload :CustomerCreditCards, 'netsuite/records/customer_credit_cards'
|
|
129
|
+
autoload :CustomerCreditCardsList, 'netsuite/records/customer_credit_cards_list'
|
|
130
|
+
autoload :CustomerCurrency, 'netsuite/records/customer_currency'
|
|
131
|
+
autoload :CustomerCurrencyList, 'netsuite/records/customer_currency_list'
|
|
132
|
+
autoload :CustomerDeposit, 'netsuite/records/customer_deposit'
|
|
133
|
+
autoload :CustomerDepositApplyList, 'netsuite/records/customer_deposit_apply_list'
|
|
134
|
+
autoload :CustomerDepositApply, 'netsuite/records/customer_deposit_apply'
|
|
135
|
+
autoload :CustomerPartnersList, 'netsuite/records/customer_partners_list'
|
|
136
|
+
autoload :CustomerPayment, 'netsuite/records/customer_payment'
|
|
137
|
+
autoload :CustomerPaymentApply, 'netsuite/records/customer_payment_apply'
|
|
138
|
+
autoload :CustomerPaymentApplyList, 'netsuite/records/customer_payment_apply_list'
|
|
139
|
+
autoload :CustomerPaymentCredit, 'netsuite/records/customer_payment_credit'
|
|
140
|
+
autoload :CustomerPaymentCreditList, 'netsuite/records/customer_payment_credit_list'
|
|
141
|
+
autoload :CustomerPartner, 'netsuite/records/customer_partner'
|
|
142
|
+
autoload :CustomerRefund, 'netsuite/records/customer_refund'
|
|
143
|
+
autoload :CustomerRefundApply, 'netsuite/records/customer_refund_apply'
|
|
144
|
+
autoload :CustomerRefundApplyList, 'netsuite/records/customer_refund_apply_list'
|
|
145
|
+
autoload :CustomerRefundDeposit, 'netsuite/records/customer_refund_deposit'
|
|
146
|
+
autoload :CustomerRefundDepositList, 'netsuite/records/customer_refund_deposit_list'
|
|
147
|
+
autoload :CustomerStatus, 'netsuite/records/customer_status'
|
|
148
|
+
autoload :CustomerPartner, 'netsuite/records/customer_partner'
|
|
149
|
+
autoload :CustomerSalesTeam, 'netsuite/records/customer_sales_team'
|
|
150
|
+
autoload :CustomerSalesTeamList, 'netsuite/records/customer_sales_team_list'
|
|
151
|
+
autoload :ContactList, 'netsuite/records/contact_list'
|
|
152
|
+
autoload :Contact, 'netsuite/records/contact'
|
|
153
|
+
autoload :ContactAddressbook, 'netsuite/records/contact_addressbook'
|
|
154
|
+
autoload :ContactAddressbookList, 'netsuite/records/contact_addressbook_list'
|
|
155
|
+
autoload :ContactRole, 'netsuite/records/contact_role'
|
|
156
|
+
autoload :ContactAccessRoles, 'netsuite/records/contact_access_roles'
|
|
157
|
+
autoload :ContactAccessRolesList, 'netsuite/records/contact_access_roles_list'
|
|
158
|
+
autoload :Currency, 'netsuite/records/currency'
|
|
159
|
+
autoload :CurrencyRate, 'netsuite/records/currency_rate'
|
|
160
|
+
autoload :Department, 'netsuite/records/department'
|
|
161
|
+
autoload :Deposit, 'netsuite/records/deposit'
|
|
162
|
+
autoload :DepositApplication, 'netsuite/records/deposit_application'
|
|
163
|
+
autoload :DepositPayment, 'netsuite/records/deposit_payment'
|
|
164
|
+
autoload :DepositPaymentList, 'netsuite/records/deposit_payment_list'
|
|
165
|
+
autoload :DepositOther, 'netsuite/records/deposit_other'
|
|
166
|
+
autoload :DepositOtherList, 'netsuite/records/deposit_other_list'
|
|
167
|
+
autoload :DepositCashBack, 'netsuite/records/deposit_cash_back'
|
|
168
|
+
autoload :DepositCashBackList, 'netsuite/records/deposit_cash_back_list'
|
|
169
|
+
autoload :DescriptionItem, 'netsuite/records/description_item'
|
|
170
|
+
autoload :DiscountItem, 'netsuite/records/discount_item'
|
|
171
|
+
autoload :Duration, 'netsuite/records/duration'
|
|
172
|
+
autoload :Employee, 'netsuite/records/employee'
|
|
173
|
+
autoload :EntityCustomField, 'netsuite/records/entity_custom_field'
|
|
174
|
+
autoload :Estimate, 'netsuite/records/estimate'
|
|
175
|
+
autoload :EstimateItem, 'netsuite/records/estimate_item'
|
|
176
|
+
autoload :EstimateItemList, 'netsuite/records/estimate_item_list'
|
|
177
|
+
autoload :File, 'netsuite/records/file'
|
|
178
|
+
autoload :GiftCertificate, 'netsuite/records/gift_certificate'
|
|
179
|
+
autoload :GiftCertificateItem, 'netsuite/records/gift_certificate_item'
|
|
180
|
+
autoload :GiftCertRedemption, 'netsuite/records/gift_cert_redemption'
|
|
181
|
+
autoload :GiftCertRedemptionList, 'netsuite/records/gift_cert_redemption_list'
|
|
182
|
+
autoload :Folder, 'netsuite/records/folder'
|
|
183
|
+
autoload :InboundShipment, 'netsuite/records/inbound_shipment'
|
|
184
|
+
autoload :InboundShipmentItem, 'netsuite/records/inbound_shipment_item'
|
|
185
|
+
autoload :InboundShipmentItemList, 'netsuite/records/inbound_shipment_item_list'
|
|
186
|
+
autoload :InterCompanyJournalEntry, 'netsuite/records/inter_company_journal_entry'
|
|
187
|
+
autoload :InterCompanyJournalEntryLine, 'netsuite/records/inter_company_journal_entry_line'
|
|
188
|
+
autoload :InterCompanyJournalEntryLineList, 'netsuite/records/inter_company_journal_entry_line_list'
|
|
189
|
+
autoload :InventoryAdjustment, 'netsuite/records/inventory_adjustment'
|
|
190
|
+
autoload :InventoryAdjustmentInventory, 'netsuite/records/inventory_adjustment_inventory'
|
|
191
|
+
autoload :InventoryAdjustmentInventoryList, 'netsuite/records/inventory_adjustment_inventory_list'
|
|
192
|
+
autoload :InventoryAssignment, 'netsuite/records/inventory_assignment'
|
|
193
|
+
autoload :InventoryAssignmentList, 'netsuite/records/inventory_assignment_list'
|
|
194
|
+
autoload :InventoryDetail, 'netsuite/records/inventory_detail'
|
|
195
|
+
autoload :InventoryItem, 'netsuite/records/inventory_item'
|
|
196
|
+
autoload :InventoryNumber, 'netsuite/records/inventory_number'
|
|
197
|
+
autoload :InventoryNumberLocations, 'netsuite/records/inventory_number_locations'
|
|
198
|
+
autoload :InventoryNumberLocationsList, 'netsuite/records/inventory_number_locations_list'
|
|
199
|
+
autoload :InventoryTransfer, 'netsuite/records/inventory_transfer'
|
|
200
|
+
autoload :InventoryTransferInventory, 'netsuite/records/inventory_transfer_inventory'
|
|
201
|
+
autoload :InventoryTransferInventoryList, 'netsuite/records/inventory_transfer_inventory_list'
|
|
202
|
+
autoload :Invoice, 'netsuite/records/invoice'
|
|
203
|
+
autoload :InvoiceItem, 'netsuite/records/invoice_item'
|
|
204
|
+
autoload :InvoiceItemList, 'netsuite/records/invoice_item_list'
|
|
205
|
+
autoload :ItemAvailability, 'netsuite/records/item_availability'
|
|
206
|
+
autoload :ItemFulfillment, 'netsuite/records/item_fulfillment'
|
|
207
|
+
autoload :ItemFulfillmentItem, 'netsuite/records/item_fulfillment_item'
|
|
208
|
+
autoload :ItemFulfillmentItemList, 'netsuite/records/item_fulfillment_item_list'
|
|
209
|
+
autoload :ItemFulfillmentPackage, 'netsuite/records/item_fulfillment_package'
|
|
210
|
+
autoload :ItemFulfillmentPackageList, 'netsuite/records/item_fulfillment_package_list'
|
|
211
|
+
autoload :ItemFulfillmentPackageFedEx, 'netsuite/records/item_fulfillment_package_fed_ex'
|
|
212
|
+
autoload :ItemFulfillmentPackageUps, 'netsuite/records/item_fulfillment_package_ups'
|
|
213
|
+
autoload :ItemFulfillmentPackageUsps, 'netsuite/records/item_fulfillment_package_usps'
|
|
214
|
+
autoload :ItemFulfillmentPackageFedExList, 'netsuite/records/item_fulfillment_package_fed_ex_list'
|
|
215
|
+
autoload :ItemFulfillmentPackageUpsList, 'netsuite/records/item_fulfillment_package_ups_list'
|
|
216
|
+
autoload :ItemFulfillmentPackageUspsList, 'netsuite/records/item_fulfillment_package_usps_list'
|
|
217
|
+
autoload :ItemGroup, 'netsuite/records/item_group'
|
|
218
|
+
autoload :ItemMember, 'netsuite/records/item_member'
|
|
219
|
+
autoload :ItemMemberList, 'netsuite/records/item_member_list'
|
|
220
|
+
autoload :ItemOptionCustomField, 'netsuite/records/item_option_custom_field'
|
|
221
|
+
autoload :ItemReceipt, 'netsuite/records/item_receipt'
|
|
222
|
+
autoload :ItemReceiptItemList, 'netsuite/records/item_receipt_item_list'
|
|
223
|
+
autoload :ItemReceiptItem, 'netsuite/records/item_receipt_item'
|
|
224
|
+
autoload :ItemVendor, 'netsuite/records/item_vendor'
|
|
225
|
+
autoload :ItemVendorList, 'netsuite/records/item_vendor_list'
|
|
226
|
+
autoload :Job, 'netsuite/records/job'
|
|
227
|
+
autoload :JobStatus, 'netsuite/records/job_status'
|
|
228
|
+
autoload :JournalEntry, 'netsuite/records/journal_entry'
|
|
229
|
+
autoload :JournalEntryLine, 'netsuite/records/journal_entry_line'
|
|
230
|
+
autoload :JournalEntryLineList, 'netsuite/records/journal_entry_line_list'
|
|
231
|
+
autoload :KitItem, 'netsuite/records/kit_item'
|
|
232
|
+
autoload :Location, 'netsuite/records/location'
|
|
233
|
+
autoload :LocationsList, 'netsuite/records/locations_list'
|
|
234
|
+
autoload :LotNumberedAssemblyItem, 'netsuite/records/lot_numbered_assembly_item'
|
|
235
|
+
autoload :LotNumberedInventoryItem, 'netsuite/records/lot_numbered_inventory_item'
|
|
236
|
+
autoload :MatrixOptionList, 'netsuite/records/matrix_option_list'
|
|
237
|
+
autoload :MemberList, 'netsuite/records/member_list'
|
|
238
|
+
autoload :Message, 'netsuite/records/message'
|
|
239
|
+
autoload :NonInventorySaleItem, 'netsuite/records/non_inventory_sale_item'
|
|
240
|
+
autoload :NonInventoryPurchaseItem, 'netsuite/records/non_inventory_purchase_item'
|
|
241
|
+
autoload :NonInventoryResaleItem, 'netsuite/records/non_inventory_resale_item'
|
|
242
|
+
autoload :Note, 'netsuite/records/note'
|
|
243
|
+
autoload :NoteType, 'netsuite/records/note_type'
|
|
244
|
+
autoload :NullFieldList, 'netsuite/records/null_field_list'
|
|
245
|
+
autoload :Opportunity, 'netsuite/records/opportunity'
|
|
246
|
+
autoload :OpportunityItem, 'netsuite/records/opportunity_item'
|
|
247
|
+
autoload :OpportunityItemList, 'netsuite/records/opportunity_item_list'
|
|
248
|
+
autoload :OtherChargeSaleItem, 'netsuite/records/other_charge_sale_item'
|
|
249
|
+
autoload :Partner, 'netsuite/records/partner'
|
|
250
|
+
autoload :PaymentItem, 'netsuite/records/payment_item'
|
|
251
|
+
autoload :PaymentMethod, 'netsuite/records/payment_method'
|
|
252
|
+
autoload :PayrollItem, 'netsuite/records/payroll_item'
|
|
253
|
+
autoload :PhoneCall, 'netsuite/records/phone_call'
|
|
254
|
+
autoload :Price, 'netsuite/records/price'
|
|
255
|
+
autoload :PriceLevel, 'netsuite/records/price_level'
|
|
256
|
+
autoload :PriceList, 'netsuite/records/price_list'
|
|
257
|
+
autoload :Pricing, 'netsuite/records/pricing'
|
|
258
|
+
autoload :PricingMatrix, 'netsuite/records/pricing_matrix'
|
|
259
|
+
autoload :PromotionCode, 'netsuite/records/promotion_code'
|
|
260
|
+
autoload :PromotionsList, 'netsuite/records/promotions_list'
|
|
261
|
+
autoload :Promotions, 'netsuite/records/promotions'
|
|
262
|
+
autoload :PurchaseOrder, 'netsuite/records/purchase_order'
|
|
263
|
+
autoload :PurchaseOrderItemList, 'netsuite/records/purchase_order_item_list'
|
|
264
|
+
autoload :PurchaseOrderItem, 'netsuite/records/purchase_order_item'
|
|
265
|
+
autoload :Roles, 'netsuite/records/roles'
|
|
266
|
+
autoload :RecordRef, 'netsuite/records/record_ref'
|
|
267
|
+
autoload :RecordRefList, 'netsuite/records/record_ref_list'
|
|
268
|
+
autoload :RevRecTemplate, 'netsuite/records/rev_rec_template'
|
|
269
|
+
autoload :RevRecSchedule, 'netsuite/records/rev_rec_schedule'
|
|
270
|
+
autoload :RoleList, 'netsuite/records/role_list'
|
|
271
|
+
autoload :ReturnAuthorization, 'netsuite/records/return_authorization'
|
|
272
|
+
autoload :ReturnAuthorizationItem, 'netsuite/records/return_authorization_item'
|
|
273
|
+
autoload :ReturnAuthorizationItemList, 'netsuite/records/return_authorization_item_list'
|
|
274
|
+
autoload :SalesOrder, 'netsuite/records/sales_order'
|
|
275
|
+
autoload :SalesOrderShipGroupList, 'netsuite/records/sales_order_ship_group_list'
|
|
276
|
+
autoload :SalesOrderItem, 'netsuite/records/sales_order_item'
|
|
277
|
+
autoload :SalesOrderItemList, 'netsuite/records/sales_order_item_list'
|
|
278
|
+
autoload :SalesRole, 'netsuite/records/sales_role'
|
|
279
|
+
autoload :SalesTaxItem, 'netsuite/records/sales_tax_item'
|
|
280
|
+
autoload :ServiceResaleItem, 'netsuite/records/service_resale_item'
|
|
281
|
+
autoload :ServiceSaleItem, 'netsuite/records/service_sale_item'
|
|
282
|
+
autoload :SerializedAssemblyItem, 'netsuite/records/serialized_assembly_item'
|
|
283
|
+
autoload :SerializedInventoryItem, 'netsuite/records/serialized_inventory_item'
|
|
284
|
+
autoload :SerializedInventoryItemNumbers, 'netsuite/records/serialized_inventory_item_numbers'
|
|
285
|
+
autoload :SerializedInventoryItemNumbersList, 'netsuite/records/serialized_inventory_item_numbers_list'
|
|
286
|
+
autoload :SerializedInventoryItemLocation, 'netsuite/records/serialized_inventory_item_location'
|
|
287
|
+
autoload :SerializedInventoryItemLocationsList, 'netsuite/records/serialized_inventory_item_locations_list'
|
|
288
|
+
autoload :ShipAddress, 'netsuite/records/ship_address'
|
|
289
|
+
autoload :SiteCategory, 'netsuite/records/site_category'
|
|
290
|
+
autoload :Subscription, 'netsuite/records/subscription'
|
|
291
|
+
autoload :SubscriptionsList, 'netsuite/records/subscriptions_list'
|
|
292
|
+
autoload :Subsidiary, 'netsuite/records/subsidiary'
|
|
293
|
+
autoload :SubtotalItem, 'netsuite/records/subtotal_item'
|
|
294
|
+
autoload :SupportCase, 'netsuite/records/support_case'
|
|
295
|
+
autoload :SupportCaseType, 'netsuite/records/support_case_type'
|
|
296
|
+
autoload :TaxType, 'netsuite/records/tax_type'
|
|
297
|
+
autoload :TaxGroup, 'netsuite/records/tax_group'
|
|
298
|
+
autoload :Task, 'netsuite/records/task'
|
|
299
|
+
autoload :Term, 'netsuite/records/term'
|
|
300
|
+
autoload :TimeBill, 'netsuite/records/time_bill'
|
|
301
|
+
autoload :TransactionBodyCustomField, 'netsuite/records/transaction_body_custom_field'
|
|
302
|
+
autoload :TransactionColumnCustomField, 'netsuite/records/transaction_column_custom_field'
|
|
303
|
+
autoload :TransactionShipGroup, 'netsuite/records/transaction_ship_group'
|
|
304
|
+
autoload :TransferOrder, 'netsuite/records/transfer_order'
|
|
305
|
+
autoload :TransferOrderItemList, 'netsuite/records/transfer_order_item_list'
|
|
306
|
+
autoload :TransferOrderItem, 'netsuite/records/transfer_order_item'
|
|
307
|
+
autoload :Translation, 'netsuite/records/translation'
|
|
308
|
+
autoload :TranslationList, 'netsuite/records/translation_list'
|
|
309
|
+
autoload :UnitsType, 'netsuite/records/units_type'
|
|
310
|
+
autoload :UnitsTypeUomList, 'netsuite/records/units_type_uom_list'
|
|
311
|
+
autoload :UnitsTypeUom, 'netsuite/records/units_type_uom'
|
|
312
|
+
autoload :Vendor, 'netsuite/records/vendor'
|
|
313
|
+
autoload :VendorBill, 'netsuite/records/vendor_bill'
|
|
314
|
+
autoload :VendorBillExpense, 'netsuite/records/vendor_bill_expense'
|
|
315
|
+
autoload :VendorBillExpenseList, 'netsuite/records/vendor_bill_expense_list'
|
|
316
|
+
autoload :VendorBillItem, 'netsuite/records/vendor_bill_item'
|
|
317
|
+
autoload :VendorBillItemList, 'netsuite/records/vendor_bill_item_list'
|
|
318
|
+
autoload :VendorCategory, 'netsuite/records/vendor_category'
|
|
319
|
+
autoload :VendorCredit, 'netsuite/records/vendor_credit'
|
|
320
|
+
autoload :VendorCreditApply, 'netsuite/records/vendor_credit_apply'
|
|
321
|
+
autoload :VendorCreditApplyList, 'netsuite/records/vendor_credit_apply_list'
|
|
322
|
+
autoload :VendorCreditItem, 'netsuite/records/vendor_credit_item'
|
|
323
|
+
autoload :VendorCreditItemList, 'netsuite/records/vendor_credit_item_list'
|
|
324
|
+
autoload :VendorCreditExpense, 'netsuite/records/vendor_credit_expense'
|
|
325
|
+
autoload :VendorCreditExpenseList, 'netsuite/records/vendor_credit_expense_list'
|
|
326
|
+
autoload :VendorCurrencyList, 'netsuite/records/vendor_currency_list'
|
|
327
|
+
autoload :VendorCurrency, 'netsuite/records/vendor_currency'
|
|
328
|
+
autoload :VendorReturnAuthorization, 'netsuite/records/vendor_return_authorization'
|
|
329
|
+
autoload :VendorReturnAuthorizationItem, 'netsuite/records/vendor_return_authorization_item'
|
|
330
|
+
autoload :VendorReturnAuthorizationItemList, 'netsuite/records/vendor_return_authorization_item_list'
|
|
331
|
+
autoload :VendorPayment, 'netsuite/records/vendor_payment'
|
|
332
|
+
autoload :VendorPaymentApply, 'netsuite/records/vendor_payment_apply'
|
|
333
|
+
autoload :VendorPaymentApplyList, 'netsuite/records/vendor_payment_apply_list'
|
|
334
|
+
autoload :WorkOrder, 'netsuite/records/work_order'
|
|
335
|
+
autoload :WorkOrderItem, 'netsuite/records/work_order_item'
|
|
336
|
+
autoload :WorkOrderItemList, 'netsuite/records/work_order_item_list'
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
module Passports
|
|
340
|
+
autoload :User, 'netsuite/passports/user'
|
|
341
|
+
autoload :Token, 'netsuite/passports/token'
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
def self.configure(&block)
|
|
345
|
+
NetSuite::Configuration.instance_eval(&block)
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
end
|
data/netsuite.gemspec
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
require File.expand_path('../lib/netsuite/version', __FILE__)
|
|
3
|
+
|
|
4
|
+
Gem::Specification.new do |gem|
|
|
5
|
+
gem.licenses = ['MIT']
|
|
6
|
+
gem.authors = ['Robert DeLanghe']
|
|
7
|
+
gem.email = ['dev@robertdelanghe.com']
|
|
8
|
+
gem.description = %q{Ruby wrapper for the NetSuite SuiteTalk SOAP Web Services API (v2025.2). Targets the final supported SOAP endpoint (removed 2028.2). Includes async bulk operations (asyncAddList, asyncUpdateList, asyncUpsertList, asyncDeleteList, asyncGetList).}
|
|
9
|
+
gem.summary = %q{NetSuite SuiteTalk SOAP v2025.2 wrapper with async list operations}
|
|
10
|
+
gem.homepage = 'https://github.com/bdelanghe/netsuite'
|
|
11
|
+
|
|
12
|
+
gem.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
13
|
+
gem.files = `git ls-files`.split("\n")
|
|
14
|
+
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
15
|
+
gem.name = 'netsuite-soap'
|
|
16
|
+
gem.require_paths = ['lib']
|
|
17
|
+
gem.version = NetSuite::VERSION
|
|
18
|
+
gem.required_ruby_version = '~> 3.4'
|
|
19
|
+
gem.metadata['changelog_uri'] = 'https://github.com/bdelanghe/netsuite/blob/main/HISTORY.md'
|
|
20
|
+
gem.metadata['mailing_list_uri'] = 'https://github.com/bdelanghe/netsuite/issues'
|
|
21
|
+
gem.metadata['rubygems_mfa_required'] = 'true'
|
|
22
|
+
gem.metadata['github_repo'] = 'https://github.com/bdelanghe/netsuite'
|
|
23
|
+
|
|
24
|
+
gem.add_dependency 'savon', '>= 2.3.0', '!= 2.13.0'
|
|
25
|
+
gem.add_dependency 'rack', '< 4'
|
|
26
|
+
gem.add_dependency 'tzinfo', '~> 2.0'
|
|
27
|
+
|
|
28
|
+
gem.add_development_dependency 'rspec', '~> 3.13.0'
|
|
29
|
+
gem.add_development_dependency 'webmock', '~> 3.19'
|
|
30
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
# WebMock-based integration tests: exercises the full Savon stack (request
|
|
4
|
+
# serialization + real HTTP POST stub + response XML parsing) without using
|
|
5
|
+
# savon.mock!. This differs from the unit specs in that Savon builds the real
|
|
6
|
+
# SOAP envelope and processes the real HTTP response bytes.
|
|
7
|
+
#
|
|
8
|
+
# Tagged :webmock_integration so WebMockSoapHelper is included automatically.
|
|
9
|
+
describe 'SOAP HTTP Integration', :webmock_integration do
|
|
10
|
+
let(:job_id) { 'ASYNCWEBSERVICES_563214_053120061943428686160042948_4bee0685' }
|
|
11
|
+
|
|
12
|
+
describe 'AsyncAddList via HTTP' do
|
|
13
|
+
let(:customers) do
|
|
14
|
+
[NetSuite::Records::Customer.new(external_id: 'ext2', entity_id: 'Target', company_name: 'Target')]
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
before do
|
|
18
|
+
stub_soap_response(fixture('async_add_list/async_add_list_pending.xml'))
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
it 'builds a real SOAP envelope and parses the response' do
|
|
22
|
+
response = NetSuite::Actions::AsyncAddList.call(customers)
|
|
23
|
+
expect(response).to be_kind_of(NetSuite::Response)
|
|
24
|
+
expect(response).to be_success
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
it 'returns the job_id from the parsed XML body' do
|
|
28
|
+
response = NetSuite::Actions::AsyncAddList.call(customers)
|
|
29
|
+
expect(response.body[:job_id]).to be_a(String).and eq(job_id)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
it 'returns pending status from the parsed XML body' do
|
|
33
|
+
response = NetSuite::Actions::AsyncAddList.call(customers)
|
|
34
|
+
expect(response.body[:status]).to be_a(String).and eq('pending')
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
describe 'CheckAsyncStatus via HTTP' do
|
|
39
|
+
before do
|
|
40
|
+
stub_soap_response(fixture('check_async_status/check_async_status_pending.xml'))
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
it 'builds a real SOAP envelope and parses the response' do
|
|
44
|
+
response = NetSuite::Actions::CheckAsyncStatus.call([job_id])
|
|
45
|
+
expect(response).to be_kind_of(NetSuite::Response)
|
|
46
|
+
expect(response).to be_success
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
it 'returns job_id and pending status from the parsed XML body' do
|
|
50
|
+
response = NetSuite::Actions::CheckAsyncStatus.call([job_id])
|
|
51
|
+
expect(response.body[:job_id]).to be_a(String).and eq(job_id)
|
|
52
|
+
expect(response.body[:status]).to be_a(String).and eq('pending')
|
|
53
|
+
expect(response.body[:percent_completed]).to be_a(String).and eq('0.0')
|
|
54
|
+
expect(response.body[:est_remaining_duration]).to be_a(String).and eq('0.0')
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
describe 'GetAsyncResult via HTTP' do
|
|
59
|
+
before do
|
|
60
|
+
stub_soap_response(fixture('get_async_result/get_async_result_finished.xml'))
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
it 'builds a real SOAP envelope and parses the response' do
|
|
64
|
+
response = NetSuite::Actions::GetAsyncResult.call([job_id, 1])
|
|
65
|
+
expect(response).to be_kind_of(NetSuite::Response)
|
|
66
|
+
expect(response).to be_success
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
it 'returns finished status and write_response_list from the parsed XML body' do
|
|
70
|
+
response = NetSuite::Actions::GetAsyncResult.call([job_id, 1])
|
|
71
|
+
expect(response.body[:job_id]).to be_a(String).and eq(job_id)
|
|
72
|
+
expect(response.body[:status]).to be_a(String).and eq('finished')
|
|
73
|
+
expect(response.body[:write_response_list]).to be_a(Hash)
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
require 'spec_helper'
|
|
2
|
+
|
|
3
|
+
describe NetSuite::Actions::Add do
|
|
4
|
+
before(:all) { savon.mock! }
|
|
5
|
+
after(:all) { savon.unmock! }
|
|
6
|
+
|
|
7
|
+
context 'Customer' do
|
|
8
|
+
let(:customer) do
|
|
9
|
+
NetSuite::Records::Customer.new(:entity_id => 'Shutter Fly', :company_name => 'Shutter Fly, Inc.')
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
before do
|
|
13
|
+
savon.expects(:add).with(:message => {
|
|
14
|
+
'platformMsgs:record' => {
|
|
15
|
+
:content! => {
|
|
16
|
+
'listRel:entityId' => 'Shutter Fly',
|
|
17
|
+
'listRel:companyName' => 'Shutter Fly, Inc.'
|
|
18
|
+
},
|
|
19
|
+
'@xsi:type' => 'listRel:Customer'
|
|
20
|
+
},
|
|
21
|
+
}).returns(File.read('spec/support/fixtures/add/add_customer.xml'))
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it 'makes a valid request to the NetSuite API' do
|
|
25
|
+
NetSuite::Actions::Add.call([customer])
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
it 'returns a valid Response object' do
|
|
29
|
+
response = NetSuite::Actions::Add.call([customer])
|
|
30
|
+
expect(response).to be_kind_of(NetSuite::Response)
|
|
31
|
+
expect(response).to be_success
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
context 'Invoice' do
|
|
36
|
+
let(:invoice) do
|
|
37
|
+
NetSuite::Records::Invoice.new(:source => 'Google', :total => 100.0)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
context 'when successful' do
|
|
41
|
+
before do
|
|
42
|
+
savon.expects(:add).with(:message => {
|
|
43
|
+
'platformMsgs:record' => {
|
|
44
|
+
:content! => {
|
|
45
|
+
'tranSales:source' => 'Google'
|
|
46
|
+
},
|
|
47
|
+
'@xsi:type' => 'tranSales:Invoice'
|
|
48
|
+
},
|
|
49
|
+
}).returns(File.read('spec/support/fixtures/add/add_invoice.xml'))
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
it 'makes a valid request to the NetSuite API' do
|
|
53
|
+
NetSuite::Actions::Add.call([invoice])
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
it 'returns a valid Response object with no errors' do
|
|
57
|
+
response = NetSuite::Actions::Add.call([invoice])
|
|
58
|
+
expect(response).to be_kind_of(NetSuite::Response)
|
|
59
|
+
expect(response).to be_success
|
|
60
|
+
expect(response.errors).to be_empty
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
context 'when not successful' do
|
|
65
|
+
before do
|
|
66
|
+
savon.expects(:add).with(:message => {
|
|
67
|
+
'platformMsgs:record' => {
|
|
68
|
+
:content! => {
|
|
69
|
+
'tranSales:source' => 'Google'
|
|
70
|
+
},
|
|
71
|
+
'@xsi:type' => 'tranSales:Invoice'
|
|
72
|
+
},
|
|
73
|
+
}).returns(File.read('spec/support/fixtures/add/add_invoice_error.xml'))
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
it 'provides an error method on the object with details about the error' do
|
|
77
|
+
invoice.add
|
|
78
|
+
error = invoice.errors.first
|
|
79
|
+
|
|
80
|
+
expect(error).to be_kind_of(NetSuite::Error)
|
|
81
|
+
expect(error.type).to eq('ERROR')
|
|
82
|
+
expect(error.code).to eq('INVALID_INITIALIZE_REF')
|
|
83
|
+
expect(error.message).to eq('You can not initialize invoice: invalid reference 7281.')
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
it 'provides an error method on the response' do
|
|
87
|
+
response = NetSuite::Actions::Add.call([invoice])
|
|
88
|
+
expect(response.errors.first).to be_kind_of(NetSuite::Error)
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
context 'when not successful with multiple errors' do
|
|
93
|
+
before do
|
|
94
|
+
savon.expects(:add).with(:message => {
|
|
95
|
+
'platformMsgs:record' => {
|
|
96
|
+
:content! => {
|
|
97
|
+
'tranSales:source' => 'Google'
|
|
98
|
+
},
|
|
99
|
+
'@xsi:type' => 'tranSales:Invoice'
|
|
100
|
+
},
|
|
101
|
+
}).returns(File.read('spec/support/fixtures/add/add_invoice_multiple_errors.xml'))
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
it 'provides an error method on the object with details about the error' do
|
|
105
|
+
invoice.add
|
|
106
|
+
expect(invoice.errors.length).to eq(2)
|
|
107
|
+
|
|
108
|
+
error = invoice.errors.first
|
|
109
|
+
|
|
110
|
+
expect(error).to be_kind_of(NetSuite::Error)
|
|
111
|
+
expect(error.type).to eq('ERROR')
|
|
112
|
+
expect(error.code).to eq('ERROR')
|
|
113
|
+
expect(error.message).to eq('Some message')
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
context 'File' do
|
|
119
|
+
let(:file) do
|
|
120
|
+
NetSuite::Records::File.new(name: 'foo.pdf', content: 'abc123')
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
context 'when successful' do
|
|
124
|
+
before do
|
|
125
|
+
savon.expects(:add).with(:message => {
|
|
126
|
+
'platformMsgs:record' => {
|
|
127
|
+
:content! => {
|
|
128
|
+
'fileCabinet:name' => 'foo.pdf',
|
|
129
|
+
'fileCabinet:content' => 'abc123',
|
|
130
|
+
},
|
|
131
|
+
'@xsi:type' => 'fileCabinet:File'
|
|
132
|
+
},
|
|
133
|
+
}).returns(File.read('spec/support/fixtures/add/add_file.xml'))
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
it 'makes a valid request to the NetSuite API' do
|
|
137
|
+
NetSuite::Actions::Add.call([file])
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
it 'returns a valid Response object with no errors' do
|
|
141
|
+
response = NetSuite::Actions::Add.call([file])
|
|
142
|
+
expect(response).to be_kind_of(NetSuite::Response)
|
|
143
|
+
expect(response).to be_success
|
|
144
|
+
expect(response.errors).to be_empty
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
it 'properly extracts internal ID from response' do
|
|
148
|
+
file.add
|
|
149
|
+
|
|
150
|
+
expect(file.internal_id).to eq('23556')
|
|
151
|
+
end
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
end
|