netsuite 0.8.12 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/codeql-analysis.yml +3 -3
- data/HISTORY.md +21 -1
- data/lib/netsuite/actions/add.rb +2 -1
- data/lib/netsuite/actions/delete.rb +17 -0
- data/lib/netsuite/configuration.rb +16 -3
- data/lib/netsuite/records/assembly_item.rb +2 -1
- data/lib/netsuite/records/customer.rb +225 -23
- data/lib/netsuite/records/customer_refund.rb +1 -1
- data/lib/netsuite/records/description_item.rb +1 -1
- data/lib/netsuite/records/discount_item.rb +1 -1
- data/lib/netsuite/records/file.rb +1 -1
- data/lib/netsuite/records/gift_certificate_item.rb +1 -1
- data/lib/netsuite/records/item_availability.rb +46 -0
- data/lib/netsuite/records/item_fulfillment.rb +4 -1
- 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_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 +1 -1
- data/lib/netsuite/records/kit_item.rb +1 -1
- data/lib/netsuite/records/lot_numbered_assembly_item.rb +1 -1
- data/lib/netsuite/records/non_inventory_purchase_item.rb +1 -1
- data/lib/netsuite/records/non_inventory_resale_item.rb +1 -1
- data/lib/netsuite/records/non_inventory_sale_item.rb +1 -1
- data/lib/netsuite/records/other_charge_sale_item.rb +1 -1
- data/lib/netsuite/records/payment_item.rb +1 -1
- data/lib/netsuite/records/sales_order.rb +1 -0
- data/lib/netsuite/records/sales_order_item.rb +2 -1
- data/lib/netsuite/records/serialized_assembly_item.rb +1 -1
- data/lib/netsuite/records/serialized_inventory_item.rb +1 -1
- data/lib/netsuite/records/service_resale_item.rb +1 -1
- data/lib/netsuite/records/service_sale_item.rb +1 -1
- data/lib/netsuite/records/{customer_subscription.rb → subscription.rb} +1 -1
- data/lib/netsuite/records/subscriptions_list.rb +10 -0
- data/lib/netsuite/records/subtotal_item.rb +1 -1
- data/lib/netsuite/support/sublist.rb +1 -1
- data/lib/netsuite/utilities.rb +20 -13
- data/lib/netsuite/version.rb +1 -1
- data/lib/netsuite.rb +9 -2
- data/netsuite.gemspec +3 -0
- data/spec/netsuite/actions/add_spec.rb +4 -2
- data/spec/netsuite/actions/delete_spec.rb +74 -14
- data/spec/netsuite/actions/get_select_value_spec.rb +43 -0
- data/spec/netsuite/configuration_spec.rb +35 -0
- data/spec/netsuite/records/customer_spec.rb +287 -20
- 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_ups_list_spec.rb +27 -0
- data/spec/netsuite/records/item_fulfillment_package_usps_list_spec.rb +27 -0
- data/spec/netsuite/records/sales_order_item_spec.rb +4 -3
- data/spec/netsuite/records/sales_order_spec.rb +17 -0
- data/spec/netsuite/records/{customer_subscription_spec.rb → subscription_spec.rb} +2 -2
- data/spec/netsuite/records/{customer_subscriptions_list_spec.rb → subscriptions_list_spec.rb} +2 -2
- data/spec/support/fixtures/add/add_invoice.xml +9 -5
- 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/get_item_availability/get_item_availability.xml +46 -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
- metadata +39 -10
- data/lib/netsuite/records/customer_subscriptions_list.rb +0 -10
@@ -0,0 +1,22 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<soapenv:Header>
|
4
|
+
<platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2016_2.platform.webservices.netsuite.com">
|
5
|
+
<platformMsgs:nsId>REDACTED</platformMsgs:nsId>
|
6
|
+
</platformMsgs:documentInfo>
|
7
|
+
</soapenv:Header>
|
8
|
+
<soapenv:Body>
|
9
|
+
<getSelectValueResponse xmlns="urn:messages_2016_2.platform.webservices.netsuite.com">
|
10
|
+
<platformCore:getSelectValueResult xmlns:platformCore="urn:core_2016_2.platform.webservices.netsuite.com">
|
11
|
+
<platformCore:status isSuccess="true">
|
12
|
+
<platformCore:statusDetail type="WARN">
|
13
|
+
<platformCore:code>WARNING</platformCore:code>
|
14
|
+
<platformCore:message>Results are incomplete. You must provide a value for field entity.</platformCore:message>
|
15
|
+
</platformCore:statusDetail>
|
16
|
+
</platformCore:status>
|
17
|
+
<platformCore:totalRecords>0</platformCore:totalRecords>
|
18
|
+
<platformCore:totalPages>0</platformCore:totalPages>
|
19
|
+
</platformCore:getSelectValueResult>
|
20
|
+
</getSelectValueResponse>
|
21
|
+
</soapenv:Body>
|
22
|
+
</soapenv:Envelope>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
3
|
+
<soapenv:Header>
|
4
|
+
<platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2021_2.platform.webservices.netsuite.com">
|
5
|
+
<platformMsgs:nsId>REDACTED</platformMsgs:nsId>
|
6
|
+
</platformMsgs:documentInfo>
|
7
|
+
</soapenv:Header>
|
8
|
+
<soapenv:Body>
|
9
|
+
<getSelectValueResponse xmlns="urn:messages_2021_2.platform.webservices.netsuite.com">
|
10
|
+
<platformCore:getSelectValueResult xmlns:platformCore="urn:core_2021_2.platform.webservices.netsuite.com">
|
11
|
+
<platformCore:status isSuccess="true"/>
|
12
|
+
<platformCore:totalRecords>8</platformCore:totalRecords>
|
13
|
+
<platformCore:totalPages>1</platformCore:totalPages>
|
14
|
+
<platformCore:baseRefList>
|
15
|
+
<platformCore:baseRef internalId="94" xsi:type="platformCore:RecordRef">
|
16
|
+
<platformCore:name>Ground (Custom)</platformCore:name>
|
17
|
+
</platformCore:baseRef>
|
18
|
+
<platformCore:baseRef internalId="2" xsi:type="platformCore:RecordRef">
|
19
|
+
<platformCore:name>Pick-up</platformCore:name>
|
20
|
+
</platformCore:baseRef>
|
21
|
+
<platformCore:baseRef internalId="3" xsi:type="platformCore:RecordRef">
|
22
|
+
<platformCore:name>Special Delivery</platformCore:name>
|
23
|
+
</platformCore:baseRef>
|
24
|
+
<platformCore:baseRef internalId="91" xsi:type="platformCore:RecordRef">
|
25
|
+
<platformCore:name>UPS 2nd Day Air AM&#174;</platformCore:name>
|
26
|
+
</platformCore:baseRef>
|
27
|
+
<platformCore:baseRef internalId="92" xsi:type="platformCore:RecordRef">
|
28
|
+
<platformCore:name>UPS Ground</platformCore:name>
|
29
|
+
</platformCore:baseRef>
|
30
|
+
<platformCore:baseRef internalId="77" xsi:type="platformCore:RecordRef">
|
31
|
+
<platformCore:name>UPS Next Day Air?</platformCore:name>
|
32
|
+
</platformCore:baseRef>
|
33
|
+
<platformCore:baseRef internalId="96" xsi:type="platformCore:RecordRef">
|
34
|
+
<platformCore:name>UPS Next Day Air® Early A.M.®</platformCore:name>
|
35
|
+
</platformCore:baseRef>
|
36
|
+
<platformCore:baseRef internalId="95" xsi:type="platformCore:RecordRef">
|
37
|
+
<platformCore:name>UPS® Ground</platformCore:name>
|
38
|
+
</platformCore:baseRef>
|
39
|
+
</platformCore:baseRefList>
|
40
|
+
</platformCore:getSelectValueResult>
|
41
|
+
</getSelectValueResponse>
|
42
|
+
</soapenv:Body>
|
43
|
+
</soapenv:Envelope>
|
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.
|
4
|
+
version: 0.9.0
|
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: 2022-
|
12
|
+
date: 2022-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
@@ -192,8 +192,6 @@ files:
|
|
192
192
|
- lib/netsuite/records/customer_sales_team.rb
|
193
193
|
- lib/netsuite/records/customer_sales_team_list.rb
|
194
194
|
- lib/netsuite/records/customer_status.rb
|
195
|
-
- lib/netsuite/records/customer_subscription.rb
|
196
|
-
- lib/netsuite/records/customer_subscriptions_list.rb
|
197
195
|
- lib/netsuite/records/department.rb
|
198
196
|
- lib/netsuite/records/deposit.rb
|
199
197
|
- lib/netsuite/records/deposit_application.rb
|
@@ -239,11 +237,18 @@ files:
|
|
239
237
|
- lib/netsuite/records/invoice.rb
|
240
238
|
- lib/netsuite/records/invoice_item.rb
|
241
239
|
- lib/netsuite/records/invoice_item_list.rb
|
240
|
+
- lib/netsuite/records/item_availability.rb
|
242
241
|
- lib/netsuite/records/item_fulfillment.rb
|
243
242
|
- lib/netsuite/records/item_fulfillment_item.rb
|
244
243
|
- lib/netsuite/records/item_fulfillment_item_list.rb
|
245
244
|
- lib/netsuite/records/item_fulfillment_package.rb
|
245
|
+
- lib/netsuite/records/item_fulfillment_package_fed_ex.rb
|
246
|
+
- lib/netsuite/records/item_fulfillment_package_fed_ex_list.rb
|
246
247
|
- lib/netsuite/records/item_fulfillment_package_list.rb
|
248
|
+
- lib/netsuite/records/item_fulfillment_package_ups.rb
|
249
|
+
- lib/netsuite/records/item_fulfillment_package_ups_list.rb
|
250
|
+
- lib/netsuite/records/item_fulfillment_package_usps.rb
|
251
|
+
- lib/netsuite/records/item_fulfillment_package_usps_list.rb
|
247
252
|
- lib/netsuite/records/item_group.rb
|
248
253
|
- lib/netsuite/records/item_member.rb
|
249
254
|
- lib/netsuite/records/item_member_list.rb
|
@@ -317,6 +322,8 @@ files:
|
|
317
322
|
- lib/netsuite/records/service_sale_item.rb
|
318
323
|
- lib/netsuite/records/ship_address.rb
|
319
324
|
- lib/netsuite/records/site_category.rb
|
325
|
+
- lib/netsuite/records/subscription.rb
|
326
|
+
- lib/netsuite/records/subscriptions_list.rb
|
320
327
|
- lib/netsuite/records/subsidiary.rb
|
321
328
|
- lib/netsuite/records/subtotal_item.rb
|
322
329
|
- lib/netsuite/records/support_case.rb
|
@@ -385,6 +392,7 @@ files:
|
|
385
392
|
- spec/netsuite/actions/delete_spec.rb
|
386
393
|
- spec/netsuite/actions/get_deleted_spec.rb
|
387
394
|
- spec/netsuite/actions/get_list_spec.rb
|
395
|
+
- spec/netsuite/actions/get_select_value_spec.rb
|
388
396
|
- spec/netsuite/actions/get_spec.rb
|
389
397
|
- spec/netsuite/actions/initialize_spec.rb
|
390
398
|
- spec/netsuite/actions/login_spec.rb
|
@@ -441,8 +449,6 @@ files:
|
|
441
449
|
- spec/netsuite/records/customer_refund_spec.rb
|
442
450
|
- spec/netsuite/records/customer_sales_team_list_spec.rb
|
443
451
|
- spec/netsuite/records/customer_spec.rb
|
444
|
-
- spec/netsuite/records/customer_subscription_spec.rb
|
445
|
-
- spec/netsuite/records/customer_subscriptions_list_spec.rb
|
446
452
|
- spec/netsuite/records/department_spec.rb
|
447
453
|
- spec/netsuite/records/deposit_spec.rb
|
448
454
|
- spec/netsuite/records/discount_item_spec.rb
|
@@ -467,7 +473,11 @@ files:
|
|
467
473
|
- spec/netsuite/records/invoice_item_list_spec.rb
|
468
474
|
- spec/netsuite/records/invoice_item_spec.rb
|
469
475
|
- spec/netsuite/records/invoice_spec.rb
|
476
|
+
- spec/netsuite/records/item_availability_spec.rb
|
477
|
+
- spec/netsuite/records/item_fulfillment_package_fed_ex_list_spec.rb
|
470
478
|
- spec/netsuite/records/item_fulfillment_package_list_spec.rb
|
479
|
+
- spec/netsuite/records/item_fulfillment_package_ups_list_spec.rb
|
480
|
+
- spec/netsuite/records/item_fulfillment_package_usps_list_spec.rb
|
471
481
|
- spec/netsuite/records/item_fulfillment_spec.rb
|
472
482
|
- spec/netsuite/records/item_group_spec.rb
|
473
483
|
- spec/netsuite/records/item_member_list_spec.rb
|
@@ -508,6 +518,8 @@ files:
|
|
508
518
|
- spec/netsuite/records/service_sale_item_spec.rb
|
509
519
|
- spec/netsuite/records/ship_address_spec.rb
|
510
520
|
- spec/netsuite/records/site_category_spec.rb
|
521
|
+
- spec/netsuite/records/subscription_spec.rb
|
522
|
+
- spec/netsuite/records/subscriptions_list_spec.rb
|
511
523
|
- spec/netsuite/records/subsidiary_spec.rb
|
512
524
|
- spec/netsuite/records/support_case_spec.rb
|
513
525
|
- spec/netsuite/records/support_case_type_spec.rb
|
@@ -560,11 +572,16 @@ files:
|
|
560
572
|
- spec/support/fixtures/attach/attach_file_to_sales_order_error.xml
|
561
573
|
- spec/support/fixtures/custom_fields/multi_select.xml
|
562
574
|
- spec/support/fixtures/delete/delete_customer.xml
|
575
|
+
- spec/support/fixtures/delete/delete_customer_error.xml
|
576
|
+
- spec/support/fixtures/delete/delete_customer_multiple_errors.xml
|
563
577
|
- spec/support/fixtures/delete_list/delete_list_customers.xml
|
564
578
|
- spec/support/fixtures/delete_list/delete_list_customers_with_errors.xml
|
565
579
|
- spec/support/fixtures/get/get_customer.xml
|
566
580
|
- spec/support/fixtures/get/get_invoice.xml
|
567
581
|
- spec/support/fixtures/get_deleted/get_deleted_invoices.xml
|
582
|
+
- spec/support/fixtures/get_item_availability/get_item_availability.xml
|
583
|
+
- spec/support/fixtures/get_select_value/empty_result.xml
|
584
|
+
- spec/support/fixtures/get_select_value/item_fulfillment_ship_method.xml
|
568
585
|
- spec/support/fixtures/initialize/initialize_invoice_from_customer.xml
|
569
586
|
- spec/support/fixtures/login/failure_concurrent_requests.xml
|
570
587
|
- spec/support/fixtures/login/failure_invalid_credentials.xml
|
@@ -597,6 +614,8 @@ licenses:
|
|
597
614
|
- MIT
|
598
615
|
metadata:
|
599
616
|
changelog_uri: https://github.com/netsweet/netsuite/blob/master/HISTORY.md
|
617
|
+
mailing_list_uri: http://opensuite-slackin.herokuapp.com
|
618
|
+
rubygems_mfa_required: 'true'
|
600
619
|
post_install_message:
|
601
620
|
rdoc_options: []
|
602
621
|
require_paths:
|
@@ -605,14 +624,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
605
624
|
requirements:
|
606
625
|
- - ">="
|
607
626
|
- !ruby/object:Gem::Version
|
608
|
-
version: '
|
627
|
+
version: '2.1'
|
609
628
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
610
629
|
requirements:
|
611
630
|
- - ">="
|
612
631
|
- !ruby/object:Gem::Version
|
613
632
|
version: '0'
|
614
633
|
requirements: []
|
615
|
-
rubygems_version: 3.
|
634
|
+
rubygems_version: 3.3.11
|
616
635
|
signing_key:
|
617
636
|
specification_version: 4
|
618
637
|
summary: NetSuite SuiteTalk API (SOAP) Wrapper
|
@@ -623,6 +642,7 @@ test_files:
|
|
623
642
|
- spec/netsuite/actions/delete_spec.rb
|
624
643
|
- spec/netsuite/actions/get_deleted_spec.rb
|
625
644
|
- spec/netsuite/actions/get_list_spec.rb
|
645
|
+
- spec/netsuite/actions/get_select_value_spec.rb
|
626
646
|
- spec/netsuite/actions/get_spec.rb
|
627
647
|
- spec/netsuite/actions/initialize_spec.rb
|
628
648
|
- spec/netsuite/actions/login_spec.rb
|
@@ -679,8 +699,6 @@ test_files:
|
|
679
699
|
- spec/netsuite/records/customer_refund_spec.rb
|
680
700
|
- spec/netsuite/records/customer_sales_team_list_spec.rb
|
681
701
|
- spec/netsuite/records/customer_spec.rb
|
682
|
-
- spec/netsuite/records/customer_subscription_spec.rb
|
683
|
-
- spec/netsuite/records/customer_subscriptions_list_spec.rb
|
684
702
|
- spec/netsuite/records/department_spec.rb
|
685
703
|
- spec/netsuite/records/deposit_spec.rb
|
686
704
|
- spec/netsuite/records/discount_item_spec.rb
|
@@ -705,7 +723,11 @@ test_files:
|
|
705
723
|
- spec/netsuite/records/invoice_item_list_spec.rb
|
706
724
|
- spec/netsuite/records/invoice_item_spec.rb
|
707
725
|
- spec/netsuite/records/invoice_spec.rb
|
726
|
+
- spec/netsuite/records/item_availability_spec.rb
|
727
|
+
- spec/netsuite/records/item_fulfillment_package_fed_ex_list_spec.rb
|
708
728
|
- spec/netsuite/records/item_fulfillment_package_list_spec.rb
|
729
|
+
- spec/netsuite/records/item_fulfillment_package_ups_list_spec.rb
|
730
|
+
- spec/netsuite/records/item_fulfillment_package_usps_list_spec.rb
|
709
731
|
- spec/netsuite/records/item_fulfillment_spec.rb
|
710
732
|
- spec/netsuite/records/item_group_spec.rb
|
711
733
|
- spec/netsuite/records/item_member_list_spec.rb
|
@@ -746,6 +768,8 @@ test_files:
|
|
746
768
|
- spec/netsuite/records/service_sale_item_spec.rb
|
747
769
|
- spec/netsuite/records/ship_address_spec.rb
|
748
770
|
- spec/netsuite/records/site_category_spec.rb
|
771
|
+
- spec/netsuite/records/subscription_spec.rb
|
772
|
+
- spec/netsuite/records/subscriptions_list_spec.rb
|
749
773
|
- spec/netsuite/records/subsidiary_spec.rb
|
750
774
|
- spec/netsuite/records/support_case_spec.rb
|
751
775
|
- spec/netsuite/records/support_case_type_spec.rb
|
@@ -798,11 +822,16 @@ test_files:
|
|
798
822
|
- spec/support/fixtures/attach/attach_file_to_sales_order_error.xml
|
799
823
|
- spec/support/fixtures/custom_fields/multi_select.xml
|
800
824
|
- spec/support/fixtures/delete/delete_customer.xml
|
825
|
+
- spec/support/fixtures/delete/delete_customer_error.xml
|
826
|
+
- spec/support/fixtures/delete/delete_customer_multiple_errors.xml
|
801
827
|
- spec/support/fixtures/delete_list/delete_list_customers.xml
|
802
828
|
- spec/support/fixtures/delete_list/delete_list_customers_with_errors.xml
|
803
829
|
- spec/support/fixtures/get/get_customer.xml
|
804
830
|
- spec/support/fixtures/get/get_invoice.xml
|
805
831
|
- spec/support/fixtures/get_deleted/get_deleted_invoices.xml
|
832
|
+
- spec/support/fixtures/get_item_availability/get_item_availability.xml
|
833
|
+
- spec/support/fixtures/get_select_value/empty_result.xml
|
834
|
+
- spec/support/fixtures/get_select_value/item_fulfillment_ship_method.xml
|
806
835
|
- spec/support/fixtures/initialize/initialize_invoice_from_customer.xml
|
807
836
|
- spec/support/fixtures/login/failure_concurrent_requests.xml
|
808
837
|
- spec/support/fixtures/login/failure_invalid_credentials.xml
|