netsuite 0.8.10 → 0.8.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/.github/FUNDING.yml +1 -0
  3. data/.github/dependabot.yml +14 -0
  4. data/.github/workflows/codeql-analysis.yml +70 -0
  5. data/.github/workflows/main.yml +7 -4
  6. data/Gemfile +5 -3
  7. data/HISTORY.md +27 -2
  8. data/README.md +13 -18
  9. data/lib/netsuite/actions/add.rb +5 -1
  10. data/lib/netsuite/actions/attach_file.rb +87 -0
  11. data/lib/netsuite/actions/search.rb +19 -6
  12. data/lib/netsuite/records/account.rb +0 -1
  13. data/lib/netsuite/records/accounting_period.rb +1 -1
  14. data/lib/netsuite/records/assembly_component.rb +0 -2
  15. data/lib/netsuite/records/assembly_item.rb +0 -1
  16. data/lib/netsuite/records/assembly_unbuild.rb +0 -1
  17. data/lib/netsuite/records/cash_refund.rb +0 -1
  18. data/lib/netsuite/records/cash_sale.rb +1 -2
  19. data/lib/netsuite/records/contact.rb +0 -1
  20. data/lib/netsuite/records/credit_memo.rb +0 -1
  21. data/lib/netsuite/records/currency_rate.rb +0 -1
  22. data/lib/netsuite/records/custom_record.rb +1 -1
  23. data/lib/netsuite/records/customer.rb +0 -1
  24. data/lib/netsuite/records/customer_deposit.rb +0 -1
  25. data/lib/netsuite/records/customer_payment.rb +0 -1
  26. data/lib/netsuite/records/customer_refund.rb +0 -1
  27. data/lib/netsuite/records/deposit.rb +0 -1
  28. data/lib/netsuite/records/deposit_application.rb +0 -1
  29. data/lib/netsuite/records/description_item.rb +1 -1
  30. data/lib/netsuite/records/estimate.rb +0 -1
  31. data/lib/netsuite/records/inbound_shipment.rb +0 -1
  32. data/lib/netsuite/records/inventory_item.rb +236 -37
  33. data/lib/netsuite/records/inventory_number.rb +0 -1
  34. data/lib/netsuite/records/invoice.rb +1 -2
  35. data/lib/netsuite/records/item_fulfillment.rb +0 -1
  36. data/lib/netsuite/records/item_group.rb +1 -1
  37. data/lib/netsuite/records/item_option_custom_field.rb +52 -0
  38. data/lib/netsuite/records/item_receipt.rb +0 -1
  39. data/lib/netsuite/records/item_vendor.rb +10 -1
  40. data/lib/netsuite/records/job.rb +0 -1
  41. data/lib/netsuite/records/kit_item.rb +1 -1
  42. data/lib/netsuite/records/location.rb +0 -1
  43. data/lib/netsuite/records/lot_numbered_inventory_item.rb +225 -81
  44. data/lib/netsuite/records/matrix_option_list.rb +16 -0
  45. data/lib/netsuite/records/non_inventory_resale_item.rb +156 -20
  46. data/lib/netsuite/records/non_inventory_sale_item.rb +133 -21
  47. data/lib/netsuite/records/opportunity.rb +0 -1
  48. data/lib/netsuite/records/other_charge_sale_item.rb +1 -1
  49. data/lib/netsuite/records/payment_item.rb +1 -1
  50. data/lib/netsuite/records/payroll_item.rb +0 -1
  51. data/lib/netsuite/records/purchase_order.rb +0 -1
  52. data/lib/netsuite/records/return_authorization.rb +1 -0
  53. data/lib/netsuite/records/sales_order.rb +1 -2
  54. data/lib/netsuite/records/serialized_inventory_item.rb +1 -1
  55. data/lib/netsuite/records/serialized_inventory_item_location.rb +0 -1
  56. data/lib/netsuite/records/service_resale_item.rb +123 -19
  57. data/lib/netsuite/records/service_sale_item.rb +0 -1
  58. data/lib/netsuite/records/subsidiary.rb +0 -1
  59. data/lib/netsuite/records/subtotal_item.rb +1 -1
  60. data/lib/netsuite/records/transfer_order.rb +0 -1
  61. data/lib/netsuite/records/translation.rb +17 -0
  62. data/lib/netsuite/records/translation_list.rb +11 -0
  63. data/lib/netsuite/records/vendor.rb +0 -1
  64. data/lib/netsuite/records/vendor_bill.rb +0 -1
  65. data/lib/netsuite/records/work_order.rb +0 -1
  66. data/lib/netsuite/records/work_order_item.rb +0 -1
  67. data/lib/netsuite/support/actions.rb +2 -0
  68. data/lib/netsuite/support/fields.rb +2 -0
  69. data/lib/netsuite/support/records.rb +9 -1
  70. data/lib/netsuite/utilities.rb +5 -0
  71. data/lib/netsuite/version.rb +1 -1
  72. data/lib/netsuite.rb +4 -0
  73. data/netsuite.gemspec +2 -2
  74. data/spec/netsuite/actions/add_spec.rb +36 -0
  75. data/spec/netsuite/actions/attach_file_spec.rb +59 -0
  76. data/spec/netsuite/actions/search_spec.rb +205 -0
  77. data/spec/netsuite/records/inventory_item_spec.rb +239 -22
  78. data/spec/netsuite/records/invoice_spec.rb +29 -0
  79. data/spec/netsuite/records/item_option_custom_field_spec.rb +27 -0
  80. data/spec/netsuite/records/item_vendor_list_spec.rb +2 -5
  81. data/spec/netsuite/records/item_vendor_spec.rb +14 -2
  82. data/spec/netsuite/records/lot_numbered_inventory_item_spec.rb +247 -0
  83. data/spec/netsuite/records/matrix_option_list_spec.rb +26 -0
  84. data/spec/netsuite/records/non_inventory_resale_item_spec.rb +159 -24
  85. data/spec/netsuite/records/non_inventory_sale_item_spec.rb +135 -22
  86. data/spec/netsuite/records/return_authorization_spec.rb +62 -0
  87. data/spec/netsuite/records/sales_order_spec.rb +29 -0
  88. data/spec/netsuite/records/service_resale_item_spec.rb +122 -17
  89. data/spec/netsuite/records/translation_list_spec.rb +34 -0
  90. data/spec/netsuite/records/translation_spec.rb +28 -0
  91. data/spec/netsuite/support/fields_spec.rb +16 -4
  92. data/spec/netsuite/support/search_result_spec.rb +12 -0
  93. data/spec/netsuite/utilities_spec.rb +10 -2
  94. data/spec/support/fixtures/add/add_file.xml +20 -0
  95. data/spec/support/fixtures/attach/attach_file_to_sales_order.xml +16 -0
  96. data/spec/support/fixtures/attach/attach_file_to_sales_order_error.xml +20 -0
  97. data/spec/support/fixtures/search/basic_search_contact.xml +39 -0
  98. data/spec/support/fixtures/search/single_search_result.xml +46 -0
  99. metadata +37 -8
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netsuite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.10
4
+ version: 0.8.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Moran
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-11-16 00:00:00.000000000 Z
12
+ date: 2022-03-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -31,28 +31,28 @@ dependencies:
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 3.10.0
34
+ version: 3.11.0
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 3.10.0
41
+ version: 3.11.0
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">="
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: '13'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ">="
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: '13'
56
56
  description: NetSuite SuiteTalk API Wrapper
57
57
  email:
58
58
  - ryan.moran@gmail.com
@@ -61,6 +61,9 @@ executables: []
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
+ - ".github/FUNDING.yml"
65
+ - ".github/dependabot.yml"
66
+ - ".github/workflows/codeql-analysis.yml"
64
67
  - ".github/workflows/main.yml"
65
68
  - ".gitignore"
66
69
  - ".rspec"
@@ -73,6 +76,7 @@ files:
73
76
  - Rakefile
74
77
  - lib/netsuite.rb
75
78
  - lib/netsuite/actions/add.rb
79
+ - lib/netsuite/actions/attach_file.rb
76
80
  - lib/netsuite/actions/delete.rb
77
81
  - lib/netsuite/actions/delete_list.rb
78
82
  - lib/netsuite/actions/get.rb
@@ -244,6 +248,7 @@ files:
244
248
  - lib/netsuite/records/item_group.rb
245
249
  - lib/netsuite/records/item_member.rb
246
250
  - lib/netsuite/records/item_member_list.rb
251
+ - lib/netsuite/records/item_option_custom_field.rb
247
252
  - lib/netsuite/records/item_receipt.rb
248
253
  - lib/netsuite/records/item_receipt_item.rb
249
254
  - lib/netsuite/records/item_receipt_item_list.rb
@@ -327,6 +332,8 @@ files:
327
332
  - lib/netsuite/records/transfer_order.rb
328
333
  - lib/netsuite/records/transfer_order_item.rb
329
334
  - lib/netsuite/records/transfer_order_item_list.rb
335
+ - lib/netsuite/records/translation.rb
336
+ - lib/netsuite/records/translation_list.rb
330
337
  - lib/netsuite/records/units_type.rb
331
338
  - lib/netsuite/records/units_type_uom.rb
332
339
  - lib/netsuite/records/units_type_uom_list.rb
@@ -372,6 +379,7 @@ files:
372
379
  - lib/netsuite/version.rb
373
380
  - netsuite.gemspec
374
381
  - spec/netsuite/actions/add_spec.rb
382
+ - spec/netsuite/actions/attach_file_spec.rb
375
383
  - spec/netsuite/actions/delete_list_spec.rb
376
384
  - spec/netsuite/actions/delete_spec.rb
377
385
  - spec/netsuite/actions/get_deleted_spec.rb
@@ -462,6 +470,7 @@ files:
462
470
  - spec/netsuite/records/item_fulfillment_spec.rb
463
471
  - spec/netsuite/records/item_group_spec.rb
464
472
  - spec/netsuite/records/item_member_list_spec.rb
473
+ - spec/netsuite/records/item_option_custom_field_spec.rb
465
474
  - spec/netsuite/records/item_vendor_list_spec.rb
466
475
  - spec/netsuite/records/item_vendor_spec.rb
467
476
  - spec/netsuite/records/job_spec.rb
@@ -470,6 +479,7 @@ files:
470
479
  - spec/netsuite/records/journal_entry_spec.rb
471
480
  - spec/netsuite/records/kit_item_spec.rb
472
481
  - spec/netsuite/records/location_spec.rb
482
+ - spec/netsuite/records/lot_numbered_inventory_item_spec.rb
473
483
  - spec/netsuite/records/matrix_option_list_spec.rb
474
484
  - spec/netsuite/records/message_spec.rb
475
485
  - spec/netsuite/records/non_inventory_resale_item_spec.rb
@@ -486,6 +496,7 @@ files:
486
496
  - spec/netsuite/records/record_ref_spec.rb
487
497
  - spec/netsuite/records/return_authorization_item_list_spec.rb
488
498
  - spec/netsuite/records/return_authorization_item_spec.rb
499
+ - spec/netsuite/records/return_authorization_spec.rb
489
500
  - spec/netsuite/records/rev_rec_template_spec.rb
490
501
  - spec/netsuite/records/sales_order_item_list_spec.rb
491
502
  - spec/netsuite/records/sales_order_item_spec.rb
@@ -502,6 +513,8 @@ files:
502
513
  - spec/netsuite/records/term_spec.rb
503
514
  - spec/netsuite/records/transaction_body_custom_field_spec.rb
504
515
  - spec/netsuite/records/transaction_column_custom_field_spec.rb
516
+ - spec/netsuite/records/translation_list_spec.rb
517
+ - spec/netsuite/records/translation_spec.rb
505
518
  - spec/netsuite/records/units_type_spec.rb
506
519
  - spec/netsuite/records/units_type_uom_list_spec.rb
507
520
  - spec/netsuite/records/units_type_uom_spec.rb
@@ -537,9 +550,12 @@ files:
537
550
  - spec/support/configuration.rb
538
551
  - spec/support/field_matcher.rb
539
552
  - spec/support/fixtures/add/add_customer.xml
553
+ - spec/support/fixtures/add/add_file.xml
540
554
  - spec/support/fixtures/add/add_invoice.xml
541
555
  - spec/support/fixtures/add/add_invoice_error.xml
542
556
  - spec/support/fixtures/add/add_invoice_multiple_errors.xml
557
+ - spec/support/fixtures/attach/attach_file_to_sales_order.xml
558
+ - spec/support/fixtures/attach/attach_file_to_sales_order_error.xml
543
559
  - spec/support/fixtures/custom_fields/multi_select.xml
544
560
  - spec/support/fixtures/delete/delete_customer.xml
545
561
  - spec/support/fixtures/delete_list/delete_list_customers.xml
@@ -551,9 +567,11 @@ files:
551
567
  - spec/support/fixtures/login/failure_concurrent_requests.xml
552
568
  - spec/support/fixtures/login/failure_invalid_credentials.xml
553
569
  - spec/support/fixtures/login/success.xml
570
+ - spec/support/fixtures/search/basic_search_contact.xml
554
571
  - spec/support/fixtures/search/saved_search_customer.xml
555
572
  - spec/support/fixtures/search/saved_search_item.xml
556
573
  - spec/support/fixtures/search/saved_search_joined_custom_customer.xml
574
+ - spec/support/fixtures/search/single_search_result.xml
557
575
  - spec/support/fixtures/update/update_customer.xml
558
576
  - spec/support/fixtures/update/update_customer_error.xml
559
577
  - spec/support/fixtures/update/update_customer_multiple_errors.xml
@@ -598,6 +616,7 @@ specification_version: 4
598
616
  summary: NetSuite SuiteTalk API (SOAP) Wrapper
599
617
  test_files:
600
618
  - spec/netsuite/actions/add_spec.rb
619
+ - spec/netsuite/actions/attach_file_spec.rb
601
620
  - spec/netsuite/actions/delete_list_spec.rb
602
621
  - spec/netsuite/actions/delete_spec.rb
603
622
  - spec/netsuite/actions/get_deleted_spec.rb
@@ -688,6 +707,7 @@ test_files:
688
707
  - spec/netsuite/records/item_fulfillment_spec.rb
689
708
  - spec/netsuite/records/item_group_spec.rb
690
709
  - spec/netsuite/records/item_member_list_spec.rb
710
+ - spec/netsuite/records/item_option_custom_field_spec.rb
691
711
  - spec/netsuite/records/item_vendor_list_spec.rb
692
712
  - spec/netsuite/records/item_vendor_spec.rb
693
713
  - spec/netsuite/records/job_spec.rb
@@ -696,6 +716,7 @@ test_files:
696
716
  - spec/netsuite/records/journal_entry_spec.rb
697
717
  - spec/netsuite/records/kit_item_spec.rb
698
718
  - spec/netsuite/records/location_spec.rb
719
+ - spec/netsuite/records/lot_numbered_inventory_item_spec.rb
699
720
  - spec/netsuite/records/matrix_option_list_spec.rb
700
721
  - spec/netsuite/records/message_spec.rb
701
722
  - spec/netsuite/records/non_inventory_resale_item_spec.rb
@@ -712,6 +733,7 @@ test_files:
712
733
  - spec/netsuite/records/record_ref_spec.rb
713
734
  - spec/netsuite/records/return_authorization_item_list_spec.rb
714
735
  - spec/netsuite/records/return_authorization_item_spec.rb
736
+ - spec/netsuite/records/return_authorization_spec.rb
715
737
  - spec/netsuite/records/rev_rec_template_spec.rb
716
738
  - spec/netsuite/records/sales_order_item_list_spec.rb
717
739
  - spec/netsuite/records/sales_order_item_spec.rb
@@ -728,6 +750,8 @@ test_files:
728
750
  - spec/netsuite/records/term_spec.rb
729
751
  - spec/netsuite/records/transaction_body_custom_field_spec.rb
730
752
  - spec/netsuite/records/transaction_column_custom_field_spec.rb
753
+ - spec/netsuite/records/translation_list_spec.rb
754
+ - spec/netsuite/records/translation_spec.rb
731
755
  - spec/netsuite/records/units_type_spec.rb
732
756
  - spec/netsuite/records/units_type_uom_list_spec.rb
733
757
  - spec/netsuite/records/units_type_uom_spec.rb
@@ -763,9 +787,12 @@ test_files:
763
787
  - spec/support/configuration.rb
764
788
  - spec/support/field_matcher.rb
765
789
  - spec/support/fixtures/add/add_customer.xml
790
+ - spec/support/fixtures/add/add_file.xml
766
791
  - spec/support/fixtures/add/add_invoice.xml
767
792
  - spec/support/fixtures/add/add_invoice_error.xml
768
793
  - spec/support/fixtures/add/add_invoice_multiple_errors.xml
794
+ - spec/support/fixtures/attach/attach_file_to_sales_order.xml
795
+ - spec/support/fixtures/attach/attach_file_to_sales_order_error.xml
769
796
  - spec/support/fixtures/custom_fields/multi_select.xml
770
797
  - spec/support/fixtures/delete/delete_customer.xml
771
798
  - spec/support/fixtures/delete_list/delete_list_customers.xml
@@ -777,9 +804,11 @@ test_files:
777
804
  - spec/support/fixtures/login/failure_concurrent_requests.xml
778
805
  - spec/support/fixtures/login/failure_invalid_credentials.xml
779
806
  - spec/support/fixtures/login/success.xml
807
+ - spec/support/fixtures/search/basic_search_contact.xml
780
808
  - spec/support/fixtures/search/saved_search_customer.xml
781
809
  - spec/support/fixtures/search/saved_search_item.xml
782
810
  - spec/support/fixtures/search/saved_search_joined_custom_customer.xml
811
+ - spec/support/fixtures/search/single_search_result.xml
783
812
  - spec/support/fixtures/update/update_customer.xml
784
813
  - spec/support/fixtures/update/update_customer_error.xml
785
814
  - spec/support/fixtures/update/update_customer_multiple_errors.xml