This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://soap.vindicia.com/v3_9/AutoBill"> | |
<soap:Header/> | |
<soap:Body> | |
<tns:changeBillingDayOfMonth xmlns:tns="http://soap.vindicia.com/v3_9/AutoBill"> | |
<autobill> | |
<VID>8da41285dc7df60405895435420e600faa41fb0d</VID> | |
</autobill> | |
<dayOfMonth>31</dayOfMonth> | |
</tns:changeBillingDayOfMonth> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://soap.vindicia.com/v3_9/AutoBill"> | |
<soap:Header/> | |
<soap:Body> | |
<tns:changeBillingDayOfMonth xmlns:tns="http://soap.vindicia.com/v3_9/AutoBill"> | |
<dayOfMonth>31</dayOfMonth> | |
<autobill> | |
<VID>8da41285dc7df60405895435420e600faa41fb0d</VID> | |
</autobill> | |
</tns:changeBillingDayOfMonth> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<definitions name="AutoBill" targetNamespace="http://soap.vindicia.com/v3_9/AutoBill" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://soap.vindicia.com/v3_9/AutoBill" xmlns:vin="http://soap.vindicia.com/v3_9/Vindicia" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsdl="http://soap.vindicia.com/v3_9/AutoBill" > | |
<documentation>WSDL Specification for AutoBill</documentation> | |
<types> | |
<xsd:schema targetNamespace="http://soap.vindicia.com/v3_9/AutoBill"> | |
<xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/" /> | |
<xsd:import namespace="http://soap.vindicia.com/v3_9/Vindicia" schemaLocation="Vindicia.xsd" /> | |
<xsd:element name="changeBillingDayOfMonth"> | |
<xsd:complexType> | |
<xsd:sequence> | |
<xsd:element name="auth" type="vin:Authentication" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'); | |
var soap = require('soap'); | |
soap.createClient('./test.wsdl', function(err, client) { | |
var args; | |
args = {dayOfMonth: 31, autobill: {VID: '8da41285dc7df60405895435420e600faa41fb0d'}}; | |
client.changeBillingDayOfMonth(args, function(err, result) { | |
console.log(arguments); | |
}); | |
args = {autobill: {VID: '8da41285dc7df60405895435420e600faa41fb0d'}, dayOfMonth: 31}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class @Api | |
@request: (cities, cb) -> | |
requestQueue = [] | |
for (i = 0; i++; i < cities.length) | |
city = cities[i] | |
requestQueue[i] = city: city, ended: false | |
$.get "/city", {name: city}, fnCB(city) | |
fnCB = (city) -> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assert = require "assert" | |
pigLatin = (s) -> | |
words = s.split " " | |
words.map(doTranslate).join " " | |
doTranslate = (w) -> | |
latin = "ay" | |
remainingWord = w.substring(1) | |
firstChar = w[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def update_info | |
record.login_count = (record.login_count.blank? ? 1 : record.login_count + 1) if record.respond_to?(:login_count) | |
record.failed_login_count = 0 if record.respond_to?(:failed_login_count) | |
if record.respond_to?(:current_login_at) | |
record.last_login_at = record.current_login_at if record.respond_to?(:last_login_at) | |
record.current_login_at = klass.default_timezone == :utc ? Time.now.utc : Time.now | |
end | |
if record.respond_to?(:current_login_ip) |