module Taxamo

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at [apache.org/licenses/LICENSE-2.0](www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Constants

VERSION

Public Class Methods

calculate_simple_tax(product_type,invoice_address_city,buyer_credit_card_prefix,currency_code,invoice_address_region,unit_price,quantity,buyer_tax_number,force_country_code,order_date,amount,billing_country_code,invoice_address_postal_code,total_amount,tax_deducted,b2b_number_service_on_error=nil,b2b_number_service_timeoutms=nil,b2b_number_service_cache_expiry_days=nil,opts={}) click to toggle source
# File lib/taxamo.rb, line 612
def calculate_simple_tax (product_type,invoice_address_city,buyer_credit_card_prefix,currency_code,invoice_address_region,unit_price,quantity,buyer_tax_number,force_country_code,order_date,amount,billing_country_code,invoice_address_postal_code,total_amount,tax_deducted,b2b_number_service_on_error=nil,b2b_number_service_timeoutms=nil,b2b_number_service_cache_expiry_days=nil,opts={})
  query_param_keys = [:product_type,:invoice_address_city,:buyer_credit_card_prefix,:currency_code,:invoice_address_region,:unit_price,:quantity,:buyer_tax_number,:force_country_code,:order_date,:amount,:billing_country_code,:invoice_address_postal_code,:total_amount,:tax_deducted,:b2b_number_service_on_error,:b2b_number_service_timeoutms,:b2b_number_service_cache_expiry_days]

  # verify existence of params
  raise "currency_code is required" if currency_code.nil?
  # set default values and merge with input
  options = {
      :product_type => product_type,
      :invoice_address_city => invoice_address_city,
      :buyer_credit_card_prefix => buyer_credit_card_prefix,
      :currency_code => currency_code,
      :invoice_address_region => invoice_address_region,
      :unit_price => unit_price,
      :quantity => quantity,
      :buyer_tax_number => buyer_tax_number,
      :force_country_code => force_country_code,
      :order_date => order_date,
      :amount => amount,
      :billing_country_code => billing_country_code,
      :invoice_address_postal_code => invoice_address_postal_code,
      :total_amount => total_amount,
      :tax_deducted => tax_deducted,
      :b2b_number_service_on_error => b2b_number_service_on_error,
      :b2b_number_service_timeoutms => b2b_number_service_timeoutms,
      :b2b_number_service_cache_expiry_days => b2b_number_service_cache_expiry_days}.merge(opts)

  #resource path
  path = "/api/v1/tax/calculate".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  CalculateSimpleTaxOut.new(response)

end
calculate_tax(body,opts={}) click to toggle source
# File lib/taxamo.rb, line 567
def calculate_tax (body,opts={})
  query_param_keys = []

  # verify existence of params
  raise "body is required" if body.nil?
  # set default values and merge with input
  options = {
      :body => body}.merge(opts)

  #resource path
  path = "/api/v1/tax/calculate".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  if body != nil
    if body.is_a?(Array)
      array = Array.new
      body.each do |item|
        if item.respond_to?("to_body".to_sym)
          array.push item.to_body
        else
          array.push item
        end
      end
      post_body = array

    else
      if body.respond_to?("to_body".to_sym)
        post_body = body.to_body
      else
        post_body = body
      end
    end
  end
  response = Swagger::Request.new(:POST, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  CalculateTaxOut.new(response)

end
calculate_tax_location(billing_country_code,buyer_credit_card_prefix,opts={}) click to toggle source
# File lib/taxamo.rb, line 680
def calculate_tax_location (billing_country_code,buyer_credit_card_prefix,opts={})
  query_param_keys = [:billing_country_code,:buyer_credit_card_prefix]

  # set default values and merge with input
  options = {
      :billing_country_code => billing_country_code,
      :buyer_credit_card_prefix => buyer_credit_card_prefix}.merge(opts)

  #resource path
  path = "/api/v1/tax/location/calculate".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  CalculateTaxLocationOut.new(response)

end
cancel_transaction(key,opts={}) click to toggle source
# File lib/taxamo.rb, line 456
def cancel_transaction (key,opts={})
  query_param_keys = []

  # verify existence of params
  raise "key is required" if key.nil?
  # set default values and merge with input
  options = {
      :key => key}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:DELETE, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  CancelTransactionOut.new(response)

end
capture_payment(key,opts={}) click to toggle source
# File lib/taxamo.rb, line 171
def capture_payment (key,opts={})
  query_param_keys = []

  # verify existence of params
  raise "key is required" if key.nil?
  # set default values and merge with input
  options = {
      :key => key}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}/payments/capture".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:POST, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  CapturePaymentOut.new(response)

end
confirm_transaction(key,body,opts={}) click to toggle source
# File lib/taxamo.rb, line 409
def confirm_transaction (key,body,opts={})
  query_param_keys = []

  # verify existence of params
  raise "key is required" if key.nil?
  raise "body is required" if body.nil?
  # set default values and merge with input
  options = {
      :key => key,
      :body => body}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}/confirm".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  if body != nil
    if body.is_a?(Array)
      array = Array.new
      body.each do |item|
        if item.respond_to?("to_body".to_sym)
          array.push item.to_body
        else
          array.push item
        end
      end
      post_body = array

    else
      if body.respond_to?("to_body".to_sym)
        post_body = body.to_body
      else
        post_body = body
      end
    end
  end
  response = Swagger::Request.new(:POST, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  ConfirmTransactionOut.new(response)

end
create_payment(key,body,opts={}) click to toggle source
# File lib/taxamo.rb, line 97
def create_payment (key,body,opts={})
  query_param_keys = []

  # verify existence of params
  raise "key is required" if key.nil?
  raise "body is required" if body.nil?
  # set default values and merge with input
  options = {
      :key => key,
      :body => body}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}/payments".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  if body != nil
    if body.is_a?(Array)
      array = Array.new
      body.each do |item|
        if item.respond_to?("to_body".to_sym)
          array.push item.to_body
        else
          array.push item
        end
      end
      post_body = array

    else
      if body.respond_to?("to_body".to_sym)
        post_body = body.to_body
      else
        post_body = body
      end
    end
  end
  response = Swagger::Request.new(:POST, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  CreatePaymentOut.new(response)

end
create_refund(key,body,opts={}) click to toggle source
# File lib/taxamo.rb, line 25
def create_refund (key,body,opts={})
  query_param_keys = []

  # verify existence of params
  raise "key is required" if key.nil?
  raise "body is required" if body.nil?
  # set default values and merge with input
  options = {
      :key => key,
      :body => body}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}/refunds".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  if body != nil
    if body.is_a?(Array)
      array = Array.new
      body.each do |item|
        if item.respond_to?("to_body".to_sym)
          array.push item.to_body
        else
          array.push item
        end
      end
      post_body = array

    else
      if body.respond_to?("to_body".to_sym)
        post_body = body.to_body
      else
        post_body = body
      end
    end
  end
  response = Swagger::Request.new(:POST, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  CreateRefundOut.new(response)

end
create_s_m_s_token(body,opts={}) click to toggle source
# File lib/taxamo.rb, line 1078
def create_s_m_s_token (body,opts={})
  query_param_keys = []

  # verify existence of params
  raise "body is required" if body.nil?
  # set default values and merge with input
  options = {
      :body => body}.merge(opts)

  #resource path
  path = "/api/v1/verification/sms".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  if body != nil
    if body.is_a?(Array)
      array = Array.new
      body.each do |item|
        if item.respond_to?("to_body".to_sym)
          array.push item.to_body
        else
          array.push item
        end
      end
      post_body = array

    else
      if body.respond_to?("to_body".to_sym)
        post_body = body.to_body
      else
        post_body = body
      end
    end
  end
  response = Swagger::Request.new(:POST, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  CreateSMSTokenOut.new(response)

end
create_transaction(body,opts={}) click to toggle source
# File lib/taxamo.rb, line 292
def create_transaction (body,opts={})
  query_param_keys = []

  # verify existence of params
  raise "body is required" if body.nil?
  # set default values and merge with input
  options = {
      :body => body}.merge(opts)

  #resource path
  path = "/api/v1/transactions".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  if body != nil
    if body.is_a?(Array)
      array = Array.new
      body.each do |item|
        if item.respond_to?("to_body".to_sym)
          array.push item.to_body
        else
          array.push item
        end
      end
      post_body = array

    else
      if body.respond_to?("to_body".to_sym)
        post_body = body.to_body
      else
        post_body = body
      end
    end
  end
  response = Swagger::Request.new(:POST, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  CreateTransactionOut.new(response)

end
email_invoice(key,body,opts={}) click to toggle source
# File lib/taxamo.rb, line 196
def email_invoice (key,body,opts={})
  query_param_keys = []

  # verify existence of params
  raise "key is required" if key.nil?
  raise "body is required" if body.nil?
  # set default values and merge with input
  options = {
      :key => key,
      :body => body}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}/invoice/send_email".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  if body != nil
    if body.is_a?(Array)
      array = Array.new
      body.each do |item|
        if item.respond_to?("to_body".to_sym)
          array.push item.to_body
        else
          array.push item
        end
      end
      post_body = array

    else
      if body.respond_to?("to_body".to_sym)
        post_body = body.to_body
      else
        post_body = body
      end
    end
  end
  response = Swagger::Request.new(:POST, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  EmailInvoiceOut.new(response)

end
email_refund(key,refund_note_number,body,opts={}) click to toggle source
# File lib/taxamo.rb, line 243
def email_refund (key,refund_note_number,body,opts={})
  query_param_keys = []

  # verify existence of params
  raise "key is required" if key.nil?
  raise "refund_note_number is required" if refund_note_number.nil?
  raise "body is required" if body.nil?
  # set default values and merge with input
  options = {
      :key => key,
      :refund_note_number => refund_note_number,
      :body => body}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}/invoice/refunds/{refund_note_number}/send_email".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key)).sub('{' + 'refund_note_number' + '}', escapeString(refund_note_number))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  if body != nil
    if body.is_a?(Array)
      array = Array.new
      body.each do |item|
        if item.respond_to?("to_body".to_sym)
          array.push item.to_body
        else
          array.push item
        end
      end
      post_body = array

    else
      if body.respond_to?("to_body".to_sym)
        post_body = body.to_body
      else
        post_body = body
      end
    end
  end
  response = Swagger::Request.new(:POST, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  EmailRefundOut.new(response)

end
escapeString(string) click to toggle source
# File lib/taxamo.rb, line 21
def escapeString(string)
  URI.encode(string.to_s)
end
get_countries_dict(tax_supported,opts={}) click to toggle source
# File lib/taxamo.rb, line 1194
def get_countries_dict (tax_supported,opts={})
  query_param_keys = [:tax_supported]

  # set default values and merge with input
  options = {
      :tax_supported => tax_supported}.merge(opts)

  #resource path
  path = "/api/v1/dictionaries/countries".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetCountriesDictOut.new(response)

end
get_currencies_dict(opts={}) click to toggle source
# File lib/taxamo.rb, line 1148
def get_currencies_dict (opts={})
  query_param_keys = []

  # set default values and merge with input
  options = {
      }.merge(opts)

  #resource path
  path = "/api/v1/dictionaries/currencies".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetCurrenciesDictOut.new(response)

end
get_daily_settlement_stats(interval,date_from,date_to,opts={}) click to toggle source
# File lib/taxamo.rb, line 862
def get_daily_settlement_stats (interval,date_from,date_to,opts={})
  query_param_keys = [:interval,:date_from,:date_to]

  # verify existence of params
  raise "interval is required" if interval.nil?
  raise "date_from is required" if date_from.nil?
  raise "date_to is required" if date_to.nil?
  # set default values and merge with input
  options = {
      :interval => interval,
      :date_from => date_from,
      :date_to => date_to}.merge(opts)

  #resource path
  path = "/api/v1/stats/settlement/daily".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetDailySettlementStatsOut.new(response)

end
get_detailed_refunds(format,country_codes,date_from,date_to,limit,offset,opts={}) click to toggle source
# File lib/taxamo.rb, line 959
def get_detailed_refunds (format,country_codes,date_from,date_to,limit,offset,opts={})
  query_param_keys = [:format,:country_codes,:date_from,:date_to,:limit,:offset]

  # set default values and merge with input
  options = {
      :format => format,
      :country_codes => country_codes,
      :date_from => date_from,
      :date_to => date_to,
      :limit => limit,
      :offset => offset}.merge(opts)

  #resource path
  path = "/api/v1/settlement/detailed_refunds".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetDetailedRefundsOut.new(response)

end
get_domestic_summary_report(format,country_code,currency_code,start_month,end_month,fx_date_type,opts={}) click to toggle source
# File lib/taxamo.rb, line 927
def get_domestic_summary_report (format,country_code,currency_code,start_month,end_month,fx_date_type,opts={})
  query_param_keys = [:format,:country_code,:currency_code,:start_month,:end_month,:fx_date_type]

  # verify existence of params
  raise "country_code is required" if country_code.nil?
  raise "start_month is required" if start_month.nil?
  raise "end_month is required" if end_month.nil?
  # set default values and merge with input
  options = {
      :format => format,
      :country_code => country_code,
      :currency_code => currency_code,
      :start_month => start_month,
      :end_month => end_month,
      :fx_date_type => fx_date_type}.merge(opts)

  #resource path
  path = "/api/v1/reports/domestic/summary".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetDomesticSummaryReportOut.new(response)

end
get_eu_vies_report(period_length,lff_sequence_number,transformation,currency_code,end_month,tax_id,start_month,eu_country_code,fx_date_type,format,opts={}) click to toggle source
# File lib/taxamo.rb, line 891
def get_eu_vies_report (period_length,lff_sequence_number,transformation,currency_code,end_month,tax_id,start_month,eu_country_code,fx_date_type,format,opts={})
  query_param_keys = [:period_length,:lff_sequence_number,:transformation,:currency_code,:end_month,:tax_id,:start_month,:eu_country_code,:fx_date_type,:format]

  # verify existence of params
  raise "end_month is required" if end_month.nil?
  raise "start_month is required" if start_month.nil?
  raise "eu_country_code is required" if eu_country_code.nil?
  # set default values and merge with input
  options = {
      :period_length => period_length,
      :lff_sequence_number => lff_sequence_number,
      :transformation => transformation,
      :currency_code => currency_code,
      :end_month => end_month,
      :tax_id => tax_id,
      :start_month => start_month,
      :eu_country_code => eu_country_code,
      :fx_date_type => fx_date_type,
      :format => format}.merge(opts)

  #resource path
  path = "/api/v1/reports/eu/vies".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetEuViesReportOut.new(response)

end
get_product_types_dict(opts={}) click to toggle source
# File lib/taxamo.rb, line 1171
def get_product_types_dict (opts={})
  query_param_keys = []

  # set default values and merge with input
  options = {
      }.merge(opts)

  #resource path
  path = "/api/v1/dictionaries/product_types".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetProductTypesDictOut.new(response)

end
get_refunds(format,moss_country_code,tax_region,date_from,opts={}) click to toggle source
# File lib/taxamo.rb, line 987
def get_refunds (format,moss_country_code,tax_region,date_from,opts={})
  query_param_keys = [:format,:moss_country_code,:tax_region,:date_from]

  # verify existence of params
  raise "date_from is required" if date_from.nil?
  # set default values and merge with input
  options = {
      :format => format,
      :moss_country_code => moss_country_code,
      :tax_region => tax_region,
      :date_from => date_from}.merge(opts)

  #resource path
  path = "/api/v1/settlement/refunds".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetRefundsOut.new(response)

end
get_settlement(moss_tax_id,currency_code,end_month,tax_id,refund_date_kind_override,start_month,moss_country_code,format,tax_country_code,quarter,opts={}) click to toggle source
# File lib/taxamo.rb, line 1015
def get_settlement (moss_tax_id,currency_code,end_month,tax_id,refund_date_kind_override,start_month,moss_country_code,format,tax_country_code,quarter,opts={})
  query_param_keys = [:moss_tax_id,:currency_code,:end_month,:tax_id,:refund_date_kind_override,:start_month,:moss_country_code,:format,:tax_country_code]

  # verify existence of params
  raise "quarter is required" if quarter.nil?
  # set default values and merge with input
  options = {
      :moss_tax_id => moss_tax_id,
      :currency_code => currency_code,
      :end_month => end_month,
      :tax_id => tax_id,
      :refund_date_kind_override => refund_date_kind_override,
      :start_month => start_month,
      :moss_country_code => moss_country_code,
      :format => format,
      :tax_country_code => tax_country_code,
      :quarter => quarter}.merge(opts)

  #resource path
  path = "/api/v1/settlement/{quarter}".sub('{format}','json').sub('{' + 'quarter' + '}', escapeString(quarter))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetSettlementOut.new(response)

end
get_settlement_stats_by_country(date_from,date_to,opts={}) click to toggle source
# File lib/taxamo.rb, line 808
def get_settlement_stats_by_country (date_from,date_to,opts={})
  query_param_keys = [:date_from,:date_to]

  # verify existence of params
  raise "date_from is required" if date_from.nil?
  raise "date_to is required" if date_to.nil?
  # set default values and merge with input
  options = {
      :date_from => date_from,
      :date_to => date_to}.merge(opts)

  #resource path
  path = "/api/v1/stats/settlement/by_country".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetSettlementStatsByCountryOut.new(response)

end
get_settlement_stats_by_taxation_type(date_from,date_to,opts={}) click to toggle source
# File lib/taxamo.rb, line 835
def get_settlement_stats_by_taxation_type (date_from,date_to,opts={})
  query_param_keys = [:date_from,:date_to]

  # verify existence of params
  raise "date_from is required" if date_from.nil?
  raise "date_to is required" if date_to.nil?
  # set default values and merge with input
  options = {
      :date_from => date_from,
      :date_to => date_to}.merge(opts)

  #resource path
  path = "/api/v1/stats/settlement/by_taxation_type".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetSettlementStatsByTaxationTypeOut.new(response)

end
get_settlement_summary(moss_country_code,tax_region,start_month,end_month,quarter,opts={}) click to toggle source
# File lib/taxamo.rb, line 1049
def get_settlement_summary (moss_country_code,tax_region,start_month,end_month,quarter,opts={})
  query_param_keys = [:moss_country_code,:tax_region,:start_month,:end_month]

  # verify existence of params
  raise "quarter is required" if quarter.nil?
  # set default values and merge with input
  options = {
      :moss_country_code => moss_country_code,
      :tax_region => tax_region,
      :start_month => start_month,
      :end_month => end_month,
      :quarter => quarter}.merge(opts)

  #resource path
  path = "/api/v1/settlement/summary/{quarter}".sub('{format}','json').sub('{' + 'quarter' + '}', escapeString(quarter))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetSettlementSummaryOut.new(response)

end
get_transaction(key,opts={}) click to toggle source
# File lib/taxamo.rb, line 337
def get_transaction (key,opts={})
  query_param_keys = []

  # verify existence of params
  raise "key is required" if key.nil?
  # set default values and merge with input
  options = {
      :key => key}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetTransactionOut.new(response)

end
get_transactions_stats(date_from,date_to,interval,opts={}) click to toggle source
# File lib/taxamo.rb, line 780
def get_transactions_stats (date_from,date_to,interval,opts={})
  query_param_keys = [:date_from,:date_to,:interval]

  # verify existence of params
  raise "date_from is required" if date_from.nil?
  raise "date_to is required" if date_to.nil?
  # set default values and merge with input
  options = {
      :date_from => date_from,
      :date_to => date_to,
      :interval => interval}.merge(opts)

  #resource path
  path = "/api/v1/stats/transactions".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetTransactionsStatsOut.new(response)

end
get_transactions_stats_by_country(global_currency_code,date_from,date_to,opts={}) click to toggle source
# File lib/taxamo.rb, line 752
def get_transactions_stats_by_country (global_currency_code,date_from,date_to,opts={})
  query_param_keys = [:global_currency_code,:date_from,:date_to]

  # verify existence of params
  raise "date_from is required" if date_from.nil?
  raise "date_to is required" if date_to.nil?
  # set default values and merge with input
  options = {
      :global_currency_code => global_currency_code,
      :date_from => date_from,
      :date_to => date_to}.merge(opts)

  #resource path
  path = "/api/v1/stats/transactions/by_country".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  GetTransactionsStatsByCountryOut.new(response)

end
list_payments(limit,offset,key,opts={}) click to toggle source
# File lib/taxamo.rb, line 144
def list_payments (limit,offset,key,opts={})
  query_param_keys = [:limit,:offset]

  # verify existence of params
  raise "key is required" if key.nil?
  # set default values and merge with input
  options = {
      :limit => limit,
      :offset => offset,
      :key => key}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}/payments".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  ListPaymentsOut.new(response)

end
list_refunds(key,opts={}) click to toggle source
# File lib/taxamo.rb, line 72
def list_refunds (key,opts={})
  query_param_keys = []

  # verify existence of params
  raise "key is required" if key.nil?
  # set default values and merge with input
  options = {
      :key => key}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}/refunds".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  ListRefundsOut.new(response)

end
list_transactions(filter_text,offset,key_or_custom_id,currency_code,order_date_to,sort_reverse,limit,invoice_number,statuses,order_date_from,total_amount_greater_than,format,total_amount_less_than,tax_country_code,original_transaction_key,has_note,tax_country_codes, opts={}) click to toggle source
# File lib/taxamo.rb, line 528
def list_transactions (filter_text,offset,key_or_custom_id,currency_code,order_date_to,sort_reverse,limit,invoice_number,statuses,order_date_from,total_amount_greater_than,format,total_amount_less_than,tax_country_code,original_transaction_key,has_note,tax_country_codes, opts={})
  query_param_keys = [:filter_text,:offset,:key_or_custom_id,:currency_code,:order_date_to,:sort_reverse,:limit,:invoice_number,:statuses,:original_transaction_key,:order_date_from,:total_amount_greater_than,:format,:total_amount_less_than,:tax_country_code,:has_note, :tax_country_codes]

  # set default values and merge with input
  options = {
      :filter_text => filter_text,
      :offset => offset,
      :has_note => has_note,
      :key_or_custom_id => key_or_custom_id,
      :currency_code => currency_code,
      :order_date_to => order_date_to,
      :sort_reverse => sort_reverse,
      :limit => limit,
      :invoice_number => invoice_number,
      :tax_country_codes => tax_country_codes,
      :statuses => statuses,
      :original_transaction_key => original_transaction_key,
      :order_date_from => order_date_from,
      :total_amount_greater_than => total_amount_greater_than,
      :format => format,
      :total_amount_less_than => total_amount_less_than,
      :tax_country_code => tax_country_code}.merge(opts)

  #resource path
  path = "/api/v1/transactions".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  ListTransactionsOut.new(response)

end
locate_given_i_p(ip,opts={}) click to toggle source
# File lib/taxamo.rb, line 727
def locate_given_i_p (ip,opts={})
  query_param_keys = []

  # verify existence of params
  raise "ip is required" if ip.nil?
  # set default values and merge with input
  options = {
      :ip => ip}.merge(opts)

  #resource path
  path = "/api/v1/geoip/{ip}".sub('{format}','json').sub('{' + 'ip' + '}', escapeString(ip))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  LocateGivenIPOut.new(response)

end
locate_my_i_p(opts={}) click to toggle source
# File lib/taxamo.rb, line 704
def locate_my_i_p (opts={})
  query_param_keys = []

  # set default values and merge with input
  options = {
      }.merge(opts)

  #resource path
  path = "/api/v1/geoip".sub('{format}','json')


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  LocateMyIPOut.new(response)

end
unconfirm_transaction(key,body,opts={}) click to toggle source
# File lib/taxamo.rb, line 481
def unconfirm_transaction (key,body,opts={})
  query_param_keys = []

  # verify existence of params
  raise "key is required" if key.nil?
  raise "body is required" if body.nil?
  # set default values and merge with input
  options = {
      :key => key,
      :body => body}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}/unconfirm".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  if body != nil
    if body.is_a?(Array)
      array = Array.new
      body.each do |item|
        if item.respond_to?("to_body".to_sym)
          array.push item.to_body
        else
          array.push item
        end
      end
      post_body = array

    else
      if body.respond_to?("to_body".to_sym)
        post_body = body.to_body
      else
        post_body = body
      end
    end
  end
  response = Swagger::Request.new(:POST, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  UnconfirmTransactionOut.new(response)

end
update_transaction(key,body,opts={}) click to toggle source
# File lib/taxamo.rb, line 362
def update_transaction (key,body,opts={})
  query_param_keys = []

  # verify existence of params
  raise "key is required" if key.nil?
  raise "body is required" if body.nil?
  # set default values and merge with input
  options = {
      :key => key,
      :body => body}.merge(opts)

  #resource path
  path = "/api/v1/transactions/{key}".sub('{format}','json').sub('{' + 'key' + '}', escapeString(key))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  if body != nil
    if body.is_a?(Array)
      array = Array.new
      body.each do |item|
        if item.respond_to?("to_body".to_sym)
          array.push item.to_body
        else
          array.push item
        end
      end
      post_body = array

    else
      if body.respond_to?("to_body".to_sym)
        post_body = body.to_body
      else
        post_body = body
      end
    end
  end
  response = Swagger::Request.new(:PUT, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  UpdateTransactionOut.new(response)

end
validate_tax_number(country_code,tax_number,opts={}) click to toggle source
# File lib/taxamo.rb, line 654
def validate_tax_number (country_code,tax_number,opts={})
  query_param_keys = [:country_code]

  # verify existence of params
  raise "tax_number is required" if tax_number.nil?
  # set default values and merge with input
  options = {
      :country_code => country_code,
      :tax_number => tax_number}.merge(opts)

  #resource path
  path = "/api/v1/tax/vat_numbers/{tax_number}/validate".sub('{format}','json').sub('{' + 'tax_number' + '}', escapeString(tax_number))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  ValidateTaxNumberOut.new(response)

end
verify_s_m_s_token(token,opts={}) click to toggle source
# File lib/taxamo.rb, line 1123
def verify_s_m_s_token (token,opts={})
  query_param_keys = []

  # verify existence of params
  raise "token is required" if token.nil?
  # set default values and merge with input
  options = {
      :token => token}.merge(opts)

  #resource path
  path = "/api/v1/verification/sms/{token}".sub('{format}','json').sub('{' + 'token' + '}', escapeString(token))


  # pull querystring keys from options
  queryopts = options.select do |key,value|
    query_param_keys.include? key
  end

  headers = nil
  post_body = nil
  response = Swagger::Request.new(:GET, path, {:params=>queryopts,:headers=>headers, :body=>post_body }, opts[:configuration]).make.body
  VerifySMSTokenOut.new(response)

end