View netsuite_generate_stripe_payment_link.js
View netsuite_adjust_credit_memo_for_dispute.js
/*
Author: <mike@suitesync.io>
Description: Modifies data on a credit memo if the credit memo represents a dispute
Link: TODO
Installation:
1. https://system.sandbox.netsuite.com/app/common/scripting/uploadScriptFile.nl
2. User Event
3. Name: Modify Credit Memo for Dispute
4. ID: _modify_dispute_credit_memo
View netsuite_autobill_sales_order.js
/*
Author: <mike@suitesync.io>
Description: Automatically bills sales orders (creates invoices) when the deposit
total is enough to pay the order.
Installation:
TODO!
*/
// Start Utilities
View stripe_create_subscription_with_avalara.rb
# Michael Bianco <mike@suitesync.io>
# Description: Create a Stripe Subscription with required information for Avalara's
# Stripe Subscription integration.
# Learn more: https://gist.github.com/iloveitaly/7b9b288d203f6ac7f75d8eda14e07c18
# Usage:
#
# export STRIPE_KEY=sk_test
# gem install stripe
# ruby stripe_create_subscription_with_avalara.rb
View netsuite_payment_auto_apply_after_creation.js
/*
Author: <mike@suitesync.io>
Description: When is invoice is created or edited, any unapplied payments on the customer
are auto-applied to the invoice.
Link: https://gist.github.com/iloveitaly/a35d460b0fb744a290dce3db95873e41
Installation:
1. https://system.sandbox.netsuite.com/app/common/scripting/uploadScriptFile.nl
2. User Event
3. Name: Auto-apply Unapplied Customer Payments
View create_stripe_subscription_with_checkout.rb
# Michael Bianco <mike@suitesync.io>
# Description: Example of collecting a card and creating a subscription with Stripe
# this subscription can integrated directly into NetSuite using http://suitesync.io/
# Usage:
#
# export STRIPE_KEY=sk_test STRIPE_PUBLIC_KEY=pk_test_
# gem install sinatra stripe pry
# ruby create_stripe_subscription_with_checkout.rb
# open http://localhost:4567
View classify_netsuite_revenue_using_stripe.rb
# Michael Bianco <mike@suitesync.io>
# Description: Classify NetSuite income and revenue by passing a department or location
# into Stripe using metadata.
# Usage:
#
# export STRIPE_KEY=sk_test
# gem install stripe
# ruby classify_netsuite_revenue_using_stripe.rb
#
View netsuite_copy_transaction_fields_to_payment.js
/*
Author: <mike@suitesync.io>
Description: Copies department, class, and location from the order (SalesOrder, Invoice)
to the transaction (customer deposit, customer refund, and customer payment).
This can be customized to copy custom
Installation:
1. https://system.sandbox.netsuite.com/app/common/scripting/uploadScriptFile.nl
2. User Event
3. Name: Copy Order Fields to Transaction
View stripe_simple_netsuite_ecommerce_with_relay.rb
# Michael Bianco <mike@suitesync.io>
# Description: Example of how to create a NetSuite SalesOrder (or Invoice) with an
# associated payment using the Stripe Relay API
# Usage:
# gem install stripe
# export STRIPE_KEY=sk_test_
# ruby stripe_simple_netsuite_ecommerce_with_relay.rb
require 'stripe'
View suitesync_detect_capture_or_scheduled_payment_failures.js
function isWebServicesContext() {
var context = nlapiGetContext();
var executionContext = context.getExecutionContext();
return executionContext == 'webservices';
}
function isEmpty(obj) {
return obj === undefined || obj === null || obj === "";
}