order_cloud 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE +201 -0
- data/README.md +476 -0
- data/Rakefile +31 -0
- data/docs/AccessToken.md +10 -0
- data/docs/Address.md +20 -0
- data/docs/AddressApi.md +520 -0
- data/docs/AddressAssignment.md +12 -0
- data/docs/AdminAddressApi.md +324 -0
- data/docs/AdminCompany.md +10 -0
- data/docs/AdminModelOnView.md +7 -0
- data/docs/AdminUserApi.md +323 -0
- data/docs/ApprovalRule.md +20 -0
- data/docs/ApprovalRuleApi.md +342 -0
- data/docs/BaseSpec.md +15 -0
- data/docs/Buyer.md +11 -0
- data/docs/BuyerAddress.md +11 -0
- data/docs/BuyerApi.md +324 -0
- data/docs/BuyerCreditCard.md +9 -0
- data/docs/BuyerProduct.md +9 -0
- data/docs/BuyerSpec.md +9 -0
- data/docs/Category.md +15 -0
- data/docs/CategoryApi.md +684 -0
- data/docs/CategoryAssignment.md +10 -0
- data/docs/CategoryProductAssignment.md +10 -0
- data/docs/CostCenter.md +11 -0
- data/docs/CostCenterApi.md +516 -0
- data/docs/CostCenterAssignment.md +10 -0
- data/docs/CreditCard.md +15 -0
- data/docs/CreditCardApi.md +516 -0
- data/docs/CreditCardAssignment.md +10 -0
- data/docs/EmailTemplate.md +12 -0
- data/docs/EmailTemplateApi.md +223 -0
- data/docs/File.md +10 -0
- data/docs/FileApi.md +162 -0
- data/docs/ImpersonateTokenRequest.md +9 -0
- data/docs/Inventory.md +12 -0
- data/docs/LineItem.md +23 -0
- data/docs/LineItemApi.md +478 -0
- data/docs/LineItemSpec.md +11 -0
- data/docs/ListAddress.md +9 -0
- data/docs/ListAddressAssignment.md +9 -0
- data/docs/ListAdminCompany.md +9 -0
- data/docs/ListApiClient.md +9 -0
- data/docs/ListApprovalRule.md +9 -0
- data/docs/ListBuyer.md +9 -0
- data/docs/ListBuyerAddress.md +9 -0
- data/docs/ListBuyerCreditCard.md +9 -0
- data/docs/ListBuyerProduct.md +9 -0
- data/docs/ListBuyerSpec.md +9 -0
- data/docs/ListCategory.md +9 -0
- data/docs/ListCategoryAssignment.md +9 -0
- data/docs/ListCategoryProductAssignment.md +9 -0
- data/docs/ListCostCenter.md +9 -0
- data/docs/ListCostCenterAssignment.md +9 -0
- data/docs/ListCreditCard.md +9 -0
- data/docs/ListCreditCardAssignment.md +9 -0
- data/docs/ListDevAccessibleCompany.md +9 -0
- data/docs/ListFile.md +9 -0
- data/docs/ListInventory.md +9 -0
- data/docs/ListLineItem.md +9 -0
- data/docs/ListOrder.md +9 -0
- data/docs/ListOrderApproval.md +9 -0
- data/docs/ListOrderPromotion.md +9 -0
- data/docs/ListPayment.md +9 -0
- data/docs/ListPriceSchedule.md +9 -0
- data/docs/ListProduct.md +9 -0
- data/docs/ListProductAssignment.md +9 -0
- data/docs/ListPromotion.md +9 -0
- data/docs/ListPromotionAssignment.md +9 -0
- data/docs/ListSecurityProfile.md +9 -0
- data/docs/ListSecurityProfileAssignment.md +9 -0
- data/docs/ListShipment.md +9 -0
- data/docs/ListSpec.md +9 -0
- data/docs/ListSpecOption.md +9 -0
- data/docs/ListSpecProductAssignment.md +9 -0
- data/docs/ListSpendingAccount.md +9 -0
- data/docs/ListSpendingAccountAssignment.md +9 -0
- data/docs/ListUser.md +9 -0
- data/docs/ListUserGroup.md +9 -0
- data/docs/ListUserGroupAssignment.md +9 -0
- data/docs/ListVariant.md +9 -0
- data/docs/ListWebHook.md +9 -0
- data/docs/ListWebHookRoute.md +9 -0
- data/docs/ListXpIndex.md +9 -0
- data/docs/MeApi.md +1488 -0
- data/docs/Meta.md +12 -0
- data/docs/Order.md +31 -0
- data/docs/OrderApi.md +1277 -0
- data/docs/OrderApproval.md +16 -0
- data/docs/OrderPromotion.md +8 -0
- data/docs/PasswordReset.md +10 -0
- data/docs/PasswordResetApi.md +109 -0
- data/docs/PasswordResetRequest.md +11 -0
- data/docs/Payment.md +16 -0
- data/docs/PaymentApi.md +601 -0
- data/docs/PaymentTransaction.md +15 -0
- data/docs/PingResponse.md +8 -0
- data/docs/PriceBreak.md +9 -0
- data/docs/PriceSchedule.md +18 -0
- data/docs/PriceScheduleApi.md +429 -0
- data/docs/Product.md +22 -0
- data/docs/ProductApi.md +1115 -0
- data/docs/ProductAssignment.md +13 -0
- data/docs/Promotion.md +21 -0
- data/docs/PromotionApi.md +495 -0
- data/docs/PromotionAssignment.md +11 -0
- data/docs/SecurityProfile.md +11 -0
- data/docs/SecurityProfileApi.md +290 -0
- data/docs/SecurityProfileAssignment.md +11 -0
- data/docs/Shipment.md +14 -0
- data/docs/ShipmentApi.md +459 -0
- data/docs/ShipmentItem.md +10 -0
- data/docs/Spec.md +8 -0
- data/docs/SpecApi.md +816 -0
- data/docs/SpecOption.md +14 -0
- data/docs/SpecProductAssignment.md +10 -0
- data/docs/SpendingAccount.md +15 -0
- data/docs/SpendingAccountApi.md +516 -0
- data/docs/SpendingAccountAssignment.md +11 -0
- data/docs/User.md +17 -0
- data/docs/UserApi.md +399 -0
- data/docs/UserGroup.md +11 -0
- data/docs/UserGroupApi.md +508 -0
- data/docs/UserGroupAssignment.md +9 -0
- data/docs/Variant.md +12 -0
- data/docs/WebHook.md +18 -0
- data/docs/WebHookRoute.md +10 -0
- data/docs/XpIndex.md +9 -0
- data/git_push.sh +67 -0
- data/lib/order_cloud.rb +176 -0
- data/lib/order_cloud/api/address_api.rb +628 -0
- data/lib/order_cloud/api/admin_address_api.rb +397 -0
- data/lib/order_cloud/api/admin_user_api.rb +396 -0
- data/lib/order_cloud/api/approval_rule_api.rb +421 -0
- data/lib/order_cloud/api/buyer_api.rb +397 -0
- data/lib/order_cloud/api/category_api.rb +817 -0
- data/lib/order_cloud/api/cost_center_api.rb +622 -0
- data/lib/order_cloud/api/credit_card_api.rb +622 -0
- data/lib/order_cloud/api/email_template_api.rb +283 -0
- data/lib/order_cloud/api/file_api.rb +206 -0
- data/lib/order_cloud/api/line_item_api.rb +583 -0
- data/lib/order_cloud/api/me_api.rb +1747 -0
- data/lib/order_cloud/api/order_api.rb +1509 -0
- data/lib/order_cloud/api/password_reset_api.rb +150 -0
- data/lib/order_cloud/api/payment_api.rb +728 -0
- data/lib/order_cloud/api/price_schedule_api.rb +519 -0
- data/lib/order_cloud/api/product_api.rb +1311 -0
- data/lib/order_cloud/api/promotion_api.rb +596 -0
- data/lib/order_cloud/api/security_profile_api.rb +361 -0
- data/lib/order_cloud/api/shipment_api.rb +558 -0
- data/lib/order_cloud/api/spec_api.rb +965 -0
- data/lib/order_cloud/api/spending_account_api.rb +622 -0
- data/lib/order_cloud/api/user_api.rb +488 -0
- data/lib/order_cloud/api/user_group_api.rb +613 -0
- data/lib/order_cloud/api_auth.rb +99 -0
- data/lib/order_cloud/api_client.rb +385 -0
- data/lib/order_cloud/api_error.rb +47 -0
- data/lib/order_cloud/configuration.rb +244 -0
- data/lib/order_cloud/models/access_token.rb +217 -0
- data/lib/order_cloud/models/address.rb +307 -0
- data/lib/order_cloud/models/address_assignment.rb +235 -0
- data/lib/order_cloud/models/admin_company.rb +217 -0
- data/lib/order_cloud/models/admin_model_on_view.rb +190 -0
- data/lib/order_cloud/models/approval_rule.rb +307 -0
- data/lib/order_cloud/models/base_spec.rb +262 -0
- data/lib/order_cloud/models/buyer.rb +226 -0
- data/lib/order_cloud/models/buyer_address.rb +226 -0
- data/lib/order_cloud/models/buyer_credit_card.rb +208 -0
- data/lib/order_cloud/models/buyer_product.rb +208 -0
- data/lib/order_cloud/models/buyer_spec.rb +210 -0
- data/lib/order_cloud/models/category.rb +262 -0
- data/lib/order_cloud/models/category_assignment.rb +217 -0
- data/lib/order_cloud/models/category_product_assignment.rb +217 -0
- data/lib/order_cloud/models/cost_center.rb +226 -0
- data/lib/order_cloud/models/cost_center_assignment.rb +217 -0
- data/lib/order_cloud/models/credit_card.rb +262 -0
- data/lib/order_cloud/models/credit_card_assignment.rb +217 -0
- data/lib/order_cloud/models/email_template.rb +235 -0
- data/lib/order_cloud/models/file.rb +217 -0
- data/lib/order_cloud/models/impersonate_token_request.rb +208 -0
- data/lib/order_cloud/models/inventory.rb +235 -0
- data/lib/order_cloud/models/line_item.rb +336 -0
- data/lib/order_cloud/models/line_item_spec.rb +226 -0
- data/lib/order_cloud/models/list_address.rb +210 -0
- data/lib/order_cloud/models/list_address_assignment.rb +210 -0
- data/lib/order_cloud/models/list_admin_company.rb +210 -0
- data/lib/order_cloud/models/list_api_client.rb +210 -0
- data/lib/order_cloud/models/list_approval_rule.rb +210 -0
- data/lib/order_cloud/models/list_buyer.rb +210 -0
- data/lib/order_cloud/models/list_buyer_address.rb +210 -0
- data/lib/order_cloud/models/list_buyer_credit_card.rb +210 -0
- data/lib/order_cloud/models/list_buyer_product.rb +210 -0
- data/lib/order_cloud/models/list_buyer_spec.rb +210 -0
- data/lib/order_cloud/models/list_category.rb +210 -0
- data/lib/order_cloud/models/list_category_assignment.rb +210 -0
- data/lib/order_cloud/models/list_category_product_assignment.rb +210 -0
- data/lib/order_cloud/models/list_cost_center.rb +210 -0
- data/lib/order_cloud/models/list_cost_center_assignment.rb +210 -0
- data/lib/order_cloud/models/list_credit_card.rb +210 -0
- data/lib/order_cloud/models/list_credit_card_assignment.rb +210 -0
- data/lib/order_cloud/models/list_dev_accessible_company.rb +210 -0
- data/lib/order_cloud/models/list_file.rb +210 -0
- data/lib/order_cloud/models/list_inventory.rb +210 -0
- data/lib/order_cloud/models/list_line_item.rb +210 -0
- data/lib/order_cloud/models/list_order.rb +210 -0
- data/lib/order_cloud/models/list_order_approval.rb +210 -0
- data/lib/order_cloud/models/list_order_promotion.rb +210 -0
- data/lib/order_cloud/models/list_payment.rb +210 -0
- data/lib/order_cloud/models/list_price_schedule.rb +210 -0
- data/lib/order_cloud/models/list_product.rb +210 -0
- data/lib/order_cloud/models/list_product_assignment.rb +210 -0
- data/lib/order_cloud/models/list_promotion.rb +210 -0
- data/lib/order_cloud/models/list_promotion_assignment.rb +210 -0
- data/lib/order_cloud/models/list_security_profile.rb +210 -0
- data/lib/order_cloud/models/list_security_profile_assignment.rb +210 -0
- data/lib/order_cloud/models/list_shipment.rb +210 -0
- data/lib/order_cloud/models/list_spec.rb +210 -0
- data/lib/order_cloud/models/list_spec_option.rb +210 -0
- data/lib/order_cloud/models/list_spec_product_assignment.rb +210 -0
- data/lib/order_cloud/models/list_spending_account.rb +210 -0
- data/lib/order_cloud/models/list_spending_account_assignment.rb +210 -0
- data/lib/order_cloud/models/list_user.rb +210 -0
- data/lib/order_cloud/models/list_user_group.rb +210 -0
- data/lib/order_cloud/models/list_user_group_assignment.rb +210 -0
- data/lib/order_cloud/models/list_variant.rb +210 -0
- data/lib/order_cloud/models/list_web_hook.rb +210 -0
- data/lib/order_cloud/models/list_web_hook_route.rb +210 -0
- data/lib/order_cloud/models/list_xp_index.rb +210 -0
- data/lib/order_cloud/models/meta.rb +237 -0
- data/lib/order_cloud/models/order.rb +406 -0
- data/lib/order_cloud/models/order_approval.rb +271 -0
- data/lib/order_cloud/models/order_promotion.rb +199 -0
- data/lib/order_cloud/models/password_reset.rb +217 -0
- data/lib/order_cloud/models/password_reset_request.rb +226 -0
- data/lib/order_cloud/models/payment.rb +273 -0
- data/lib/order_cloud/models/payment_transaction.rb +262 -0
- data/lib/order_cloud/models/ping_response.rb +199 -0
- data/lib/order_cloud/models/price_break.rb +208 -0
- data/lib/order_cloud/models/price_schedule.rb +291 -0
- data/lib/order_cloud/models/product.rb +325 -0
- data/lib/order_cloud/models/product_assignment.rb +244 -0
- data/lib/order_cloud/models/promotion.rb +316 -0
- data/lib/order_cloud/models/promotion_assignment.rb +226 -0
- data/lib/order_cloud/models/security_profile.rb +228 -0
- data/lib/order_cloud/models/security_profile_assignment.rb +226 -0
- data/lib/order_cloud/models/shipment.rb +255 -0
- data/lib/order_cloud/models/shipment_item.rb +217 -0
- data/lib/order_cloud/models/spec.rb +199 -0
- data/lib/order_cloud/models/spec_option.rb +253 -0
- data/lib/order_cloud/models/spec_product_assignment.rb +217 -0
- data/lib/order_cloud/models/spending_account.rb +262 -0
- data/lib/order_cloud/models/spending_account_assignment.rb +226 -0
- data/lib/order_cloud/models/user.rb +280 -0
- data/lib/order_cloud/models/user_group.rb +226 -0
- data/lib/order_cloud/models/user_group_assignment.rb +208 -0
- data/lib/order_cloud/models/variant.rb +235 -0
- data/lib/order_cloud/models/web_hook.rb +289 -0
- data/lib/order_cloud/models/web_hook_route.rb +217 -0
- data/lib/order_cloud/models/xp_index.rb +208 -0
- data/lib/order_cloud/version.rb +26 -0
- data/order_cloud.gemspec +56 -0
- data/spec/api/address_api_spec.rb +179 -0
- data/spec/api/admin_address_api_spec.rb +125 -0
- data/spec/api/admin_user_api_spec.rb +125 -0
- data/spec/api/approval_rule_api_spec.rb +131 -0
- data/spec/api/buyer_api_spec.rb +125 -0
- data/spec/api/category_api_spec.rb +221 -0
- data/spec/api/cost_center_api_spec.rb +177 -0
- data/spec/api/credit_card_api_spec.rb +177 -0
- data/spec/api/email_template_api_spec.rb +100 -0
- data/spec/api/file_api_spec.rb +83 -0
- data/spec/api/line_item_api_spec.rb +167 -0
- data/spec/api/me_api_spec.rb +431 -0
- data/spec/api/order_api_spec.rb +375 -0
- data/spec/api/password_reset_api_spec.rb +71 -0
- data/spec/api/payment_api_spec.rb +199 -0
- data/spec/api/price_schedule_api_spec.rb +151 -0
- data/spec/api/product_api_spec.rb +330 -0
- data/spec/api/promotion_api_spec.rb +170 -0
- data/spec/api/security_profile_api_spec.rb +120 -0
- data/spec/api/shipment_api_spec.rb +161 -0
- data/spec/api/spec_api_spec.rb +250 -0
- data/spec/api/spending_account_api_spec.rb +177 -0
- data/spec/api/user_api_spec.rb +146 -0
- data/spec/api/user_group_api_spec.rb +174 -0
- data/spec/api_auth_spec.rb +165 -0
- data/spec/api_client_spec.rb +237 -0
- data/spec/configuration_spec.rb +80 -0
- data/spec/models/access_token_spec.rb +65 -0
- data/spec/models/address_assignment_spec.rb +77 -0
- data/spec/models/address_spec.rb +125 -0
- data/spec/models/admin_company_spec.rb +65 -0
- data/spec/models/admin_model_on_view_spec.rb +47 -0
- data/spec/models/approval_rule_spec.rb +125 -0
- data/spec/models/base_spec_spec.rb +95 -0
- data/spec/models/buyer_address_spec.rb +71 -0
- data/spec/models/buyer_credit_card_spec.rb +59 -0
- data/spec/models/buyer_product_spec.rb +59 -0
- data/spec/models/buyer_spec.rb +71 -0
- data/spec/models/buyer_spec_spec.rb +59 -0
- data/spec/models/category_assignment_spec.rb +65 -0
- data/spec/models/category_product_assignment_spec.rb +65 -0
- data/spec/models/category_spec.rb +95 -0
- data/spec/models/cost_center_assignment_spec.rb +65 -0
- data/spec/models/cost_center_spec.rb +71 -0
- data/spec/models/credit_card_assignment_spec.rb +65 -0
- data/spec/models/credit_card_spec.rb +95 -0
- data/spec/models/email_template_spec.rb +77 -0
- data/spec/models/file_spec.rb +65 -0
- data/spec/models/impersonate_token_request_spec.rb +59 -0
- data/spec/models/inventory_spec.rb +77 -0
- data/spec/models/line_item_spec.rb +143 -0
- data/spec/models/line_item_spec_spec.rb +71 -0
- data/spec/models/list_address_assignment_spec.rb +59 -0
- data/spec/models/list_address_spec.rb +59 -0
- data/spec/models/list_admin_company_spec.rb +59 -0
- data/spec/models/list_api_client_spec.rb +59 -0
- data/spec/models/list_approval_rule_spec.rb +59 -0
- data/spec/models/list_buyer_address_spec.rb +59 -0
- data/spec/models/list_buyer_credit_card_spec.rb +59 -0
- data/spec/models/list_buyer_product_spec.rb +59 -0
- data/spec/models/list_buyer_spec.rb +59 -0
- data/spec/models/list_buyer_spec_spec.rb +59 -0
- data/spec/models/list_category_assignment_spec.rb +59 -0
- data/spec/models/list_category_product_assignment_spec.rb +59 -0
- data/spec/models/list_category_spec.rb +59 -0
- data/spec/models/list_cost_center_assignment_spec.rb +59 -0
- data/spec/models/list_cost_center_spec.rb +59 -0
- data/spec/models/list_credit_card_assignment_spec.rb +59 -0
- data/spec/models/list_credit_card_spec.rb +59 -0
- data/spec/models/list_dev_accessible_company_spec.rb +59 -0
- data/spec/models/list_file_spec.rb +59 -0
- data/spec/models/list_inventory_spec.rb +59 -0
- data/spec/models/list_line_item_spec.rb +59 -0
- data/spec/models/list_order_approval_spec.rb +59 -0
- data/spec/models/list_order_promotion_spec.rb +59 -0
- data/spec/models/list_order_spec.rb +59 -0
- data/spec/models/list_payment_spec.rb +59 -0
- data/spec/models/list_price_schedule_spec.rb +59 -0
- data/spec/models/list_product_assignment_spec.rb +59 -0
- data/spec/models/list_product_spec.rb +59 -0
- data/spec/models/list_promotion_assignment_spec.rb +59 -0
- data/spec/models/list_promotion_spec.rb +59 -0
- data/spec/models/list_security_profile_assignment_spec.rb +59 -0
- data/spec/models/list_security_profile_spec.rb +59 -0
- data/spec/models/list_shipment_spec.rb +59 -0
- data/spec/models/list_spec_option_spec.rb +59 -0
- data/spec/models/list_spec_product_assignment_spec.rb +59 -0
- data/spec/models/list_spec_spec.rb +59 -0
- data/spec/models/list_spending_account_assignment_spec.rb +59 -0
- data/spec/models/list_spending_account_spec.rb +59 -0
- data/spec/models/list_user_group_assignment_spec.rb +59 -0
- data/spec/models/list_user_group_spec.rb +59 -0
- data/spec/models/list_user_spec.rb +59 -0
- data/spec/models/list_variant_spec.rb +59 -0
- data/spec/models/list_web_hook_route_spec.rb +59 -0
- data/spec/models/list_web_hook_spec.rb +59 -0
- data/spec/models/list_xp_index_spec.rb +59 -0
- data/spec/models/meta_spec.rb +77 -0
- data/spec/models/order_approval_spec.rb +101 -0
- data/spec/models/order_promotion_spec.rb +53 -0
- data/spec/models/order_spec.rb +191 -0
- data/spec/models/password_reset_request_spec.rb +71 -0
- data/spec/models/password_reset_spec.rb +65 -0
- data/spec/models/payment_spec.rb +101 -0
- data/spec/models/payment_transaction_spec.rb +95 -0
- data/spec/models/ping_response_spec.rb +53 -0
- data/spec/models/price_break_spec.rb +59 -0
- data/spec/models/price_schedule_spec.rb +113 -0
- data/spec/models/product_assignment_spec.rb +83 -0
- data/spec/models/product_spec.rb +137 -0
- data/spec/models/promotion_assignment_spec.rb +71 -0
- data/spec/models/promotion_spec.rb +131 -0
- data/spec/models/security_profile_assignment_spec.rb +71 -0
- data/spec/models/security_profile_spec.rb +71 -0
- data/spec/models/shipment_item_spec.rb +65 -0
- data/spec/models/shipment_spec.rb +89 -0
- data/spec/models/spec_option_spec.rb +89 -0
- data/spec/models/spec_product_assignment_spec.rb +65 -0
- data/spec/models/spec_spec.rb +53 -0
- data/spec/models/spending_account_assignment_spec.rb +71 -0
- data/spec/models/spending_account_spec.rb +95 -0
- data/spec/models/user_group_assignment_spec.rb +59 -0
- data/spec/models/user_group_spec.rb +71 -0
- data/spec/models/user_spec.rb +107 -0
- data/spec/models/variant_spec.rb +77 -0
- data/spec/models/web_hook_route_spec.rb +65 -0
- data/spec/models/web_hook_spec.rb +113 -0
- data/spec/models/xp_index_spec.rb +59 -0
- data/spec/spec_helper.rb +122 -0
- metadata +757 -0
@@ -0,0 +1,150 @@
|
|
1
|
+
=begin
|
2
|
+
#OrderCloud
|
3
|
+
|
4
|
+
#A full ecommerce backend as a service.
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
Contact: ordercloud@four51.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require "uri"
|
25
|
+
|
26
|
+
module OrderCloud
|
27
|
+
class PasswordResetApi
|
28
|
+
attr_accessor :api_client
|
29
|
+
|
30
|
+
def initialize(api_client = ApiClient.default)
|
31
|
+
@api_client = api_client
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
#
|
36
|
+
# @param verification_code Verification code of the forgotten password.
|
37
|
+
# @param password_reset
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [nil]
|
40
|
+
def reset_password(verification_code, password_reset, opts = {})
|
41
|
+
reset_password_with_http_info(verification_code, password_reset, opts)
|
42
|
+
return nil
|
43
|
+
end
|
44
|
+
|
45
|
+
#
|
46
|
+
#
|
47
|
+
# @param verification_code Verification code of the forgotten password.
|
48
|
+
# @param password_reset
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
51
|
+
def reset_password_with_http_info(verification_code, password_reset, opts = {})
|
52
|
+
if @api_client.config.debugging
|
53
|
+
@api_client.config.logger.debug "Calling API: PasswordResetApi.reset_password ..."
|
54
|
+
end
|
55
|
+
# verify the required parameter 'verification_code' is set
|
56
|
+
fail ArgumentError, "Missing the required parameter 'verification_code' when calling PasswordResetApi.reset_password" if verification_code.nil?
|
57
|
+
# verify the required parameter 'password_reset' is set
|
58
|
+
fail ArgumentError, "Missing the required parameter 'password_reset' when calling PasswordResetApi.reset_password" if password_reset.nil?
|
59
|
+
# resource path
|
60
|
+
local_var_path = "/password/reset/{verificationCode}".sub('{format}','json').sub('{' + 'verificationCode' + '}', verification_code.to_s)
|
61
|
+
|
62
|
+
# query parameters
|
63
|
+
query_params = {}
|
64
|
+
|
65
|
+
# header parameters
|
66
|
+
header_params = {}
|
67
|
+
|
68
|
+
# HTTP header 'Accept' (if needed)
|
69
|
+
local_header_accept = ['application/json']
|
70
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
71
|
+
|
72
|
+
# HTTP header 'Content-Type'
|
73
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
74
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
75
|
+
|
76
|
+
# form parameters
|
77
|
+
form_params = {}
|
78
|
+
|
79
|
+
# http body (model)
|
80
|
+
post_body = @api_client.object_to_http_body(password_reset)
|
81
|
+
auth_names = ['oauth2']
|
82
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
83
|
+
:header_params => header_params,
|
84
|
+
:query_params => query_params,
|
85
|
+
:form_params => form_params,
|
86
|
+
:body => post_body,
|
87
|
+
:auth_names => auth_names)
|
88
|
+
if @api_client.config.debugging
|
89
|
+
@api_client.config.logger.debug "API called: PasswordResetApi#reset_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
|
+
end
|
91
|
+
return data, status_code, headers
|
92
|
+
end
|
93
|
+
|
94
|
+
#
|
95
|
+
#
|
96
|
+
# @param password_reset_request
|
97
|
+
# @param [Hash] opts the optional parameters
|
98
|
+
# @return [nil]
|
99
|
+
def send_verification_code(password_reset_request, opts = {})
|
100
|
+
send_verification_code_with_http_info(password_reset_request, opts)
|
101
|
+
return nil
|
102
|
+
end
|
103
|
+
|
104
|
+
#
|
105
|
+
#
|
106
|
+
# @param password_reset_request
|
107
|
+
# @param [Hash] opts the optional parameters
|
108
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
109
|
+
def send_verification_code_with_http_info(password_reset_request, opts = {})
|
110
|
+
if @api_client.config.debugging
|
111
|
+
@api_client.config.logger.debug "Calling API: PasswordResetApi.send_verification_code ..."
|
112
|
+
end
|
113
|
+
# verify the required parameter 'password_reset_request' is set
|
114
|
+
fail ArgumentError, "Missing the required parameter 'password_reset_request' when calling PasswordResetApi.send_verification_code" if password_reset_request.nil?
|
115
|
+
# resource path
|
116
|
+
local_var_path = "/password/reset".sub('{format}','json')
|
117
|
+
|
118
|
+
# query parameters
|
119
|
+
query_params = {}
|
120
|
+
|
121
|
+
# header parameters
|
122
|
+
header_params = {}
|
123
|
+
|
124
|
+
# HTTP header 'Accept' (if needed)
|
125
|
+
local_header_accept = ['application/json']
|
126
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
127
|
+
|
128
|
+
# HTTP header 'Content-Type'
|
129
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
130
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
131
|
+
|
132
|
+
# form parameters
|
133
|
+
form_params = {}
|
134
|
+
|
135
|
+
# http body (model)
|
136
|
+
post_body = @api_client.object_to_http_body(password_reset_request)
|
137
|
+
auth_names = ['oauth2']
|
138
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
139
|
+
:header_params => header_params,
|
140
|
+
:query_params => query_params,
|
141
|
+
:form_params => form_params,
|
142
|
+
:body => post_body,
|
143
|
+
:auth_names => auth_names)
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug "API called: PasswordResetApi#send_verification_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
146
|
+
end
|
147
|
+
return data, status_code, headers
|
148
|
+
end
|
149
|
+
end
|
150
|
+
end
|
@@ -0,0 +1,728 @@
|
|
1
|
+
=begin
|
2
|
+
#OrderCloud
|
3
|
+
|
4
|
+
#A full ecommerce backend as a service.
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
Contact: ordercloud@four51.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
|
10
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
11
|
+
you may not use this file except in compliance with the License.
|
12
|
+
You may obtain a copy of the License at
|
13
|
+
|
14
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
15
|
+
|
16
|
+
Unless required by applicable law or agreed to in writing, software
|
17
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
18
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
19
|
+
See the License for the specific language governing permissions and
|
20
|
+
limitations under the License.
|
21
|
+
|
22
|
+
=end
|
23
|
+
|
24
|
+
require "uri"
|
25
|
+
|
26
|
+
module OrderCloud
|
27
|
+
class PaymentApi
|
28
|
+
attr_accessor :api_client
|
29
|
+
|
30
|
+
def initialize(api_client = ApiClient.default)
|
31
|
+
@api_client = api_client
|
32
|
+
end
|
33
|
+
|
34
|
+
#
|
35
|
+
#
|
36
|
+
# @param buyer_id ID of the buyer.
|
37
|
+
# @param order_id ID of the order.
|
38
|
+
# @param payment
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [Payment]
|
41
|
+
def create(buyer_id, order_id, payment, opts = {})
|
42
|
+
data, _status_code, _headers = create_with_http_info(buyer_id, order_id, payment, opts)
|
43
|
+
return data
|
44
|
+
end
|
45
|
+
|
46
|
+
#
|
47
|
+
#
|
48
|
+
# @param buyer_id ID of the buyer.
|
49
|
+
# @param order_id ID of the order.
|
50
|
+
# @param payment
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
|
53
|
+
def create_with_http_info(buyer_id, order_id, payment, opts = {})
|
54
|
+
if @api_client.config.debugging
|
55
|
+
@api_client.config.logger.debug "Calling API: PaymentApi.create ..."
|
56
|
+
end
|
57
|
+
# verify the required parameter 'buyer_id' is set
|
58
|
+
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling PaymentApi.create" if buyer_id.nil?
|
59
|
+
# verify the required parameter 'order_id' is set
|
60
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentApi.create" if order_id.nil?
|
61
|
+
# verify the required parameter 'payment' is set
|
62
|
+
fail ArgumentError, "Missing the required parameter 'payment' when calling PaymentApi.create" if payment.nil?
|
63
|
+
# resource path
|
64
|
+
local_var_path = "/buyers/{buyerID}/orders/{orderID}/payments".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'orderID' + '}', order_id.to_s)
|
65
|
+
|
66
|
+
# query parameters
|
67
|
+
query_params = {}
|
68
|
+
|
69
|
+
# header parameters
|
70
|
+
header_params = {}
|
71
|
+
|
72
|
+
# HTTP header 'Accept' (if needed)
|
73
|
+
local_header_accept = ['application/json']
|
74
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
75
|
+
|
76
|
+
# HTTP header 'Content-Type'
|
77
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
78
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
79
|
+
|
80
|
+
# form parameters
|
81
|
+
form_params = {}
|
82
|
+
|
83
|
+
# http body (model)
|
84
|
+
post_body = @api_client.object_to_http_body(payment)
|
85
|
+
auth_names = ['oauth2']
|
86
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
87
|
+
:header_params => header_params,
|
88
|
+
:query_params => query_params,
|
89
|
+
:form_params => form_params,
|
90
|
+
:body => post_body,
|
91
|
+
:auth_names => auth_names,
|
92
|
+
:return_type => 'Payment')
|
93
|
+
if @api_client.config.debugging
|
94
|
+
@api_client.config.logger.debug "API called: PaymentApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
95
|
+
end
|
96
|
+
return data, status_code, headers
|
97
|
+
end
|
98
|
+
|
99
|
+
#
|
100
|
+
#
|
101
|
+
# @param buyer_id ID of the buyer.
|
102
|
+
# @param order_id ID of the order.
|
103
|
+
# @param payment_id ID of the payment.
|
104
|
+
# @param transaction
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Payment]
|
107
|
+
def create_transaction(buyer_id, order_id, payment_id, transaction, opts = {})
|
108
|
+
data, _status_code, _headers = create_transaction_with_http_info(buyer_id, order_id, payment_id, transaction, opts)
|
109
|
+
return data
|
110
|
+
end
|
111
|
+
|
112
|
+
#
|
113
|
+
#
|
114
|
+
# @param buyer_id ID of the buyer.
|
115
|
+
# @param order_id ID of the order.
|
116
|
+
# @param payment_id ID of the payment.
|
117
|
+
# @param transaction
|
118
|
+
# @param [Hash] opts the optional parameters
|
119
|
+
# @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
|
120
|
+
def create_transaction_with_http_info(buyer_id, order_id, payment_id, transaction, opts = {})
|
121
|
+
if @api_client.config.debugging
|
122
|
+
@api_client.config.logger.debug "Calling API: PaymentApi.create_transaction ..."
|
123
|
+
end
|
124
|
+
# verify the required parameter 'buyer_id' is set
|
125
|
+
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling PaymentApi.create_transaction" if buyer_id.nil?
|
126
|
+
# verify the required parameter 'order_id' is set
|
127
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentApi.create_transaction" if order_id.nil?
|
128
|
+
# verify the required parameter 'payment_id' is set
|
129
|
+
fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentApi.create_transaction" if payment_id.nil?
|
130
|
+
# verify the required parameter 'transaction' is set
|
131
|
+
fail ArgumentError, "Missing the required parameter 'transaction' when calling PaymentApi.create_transaction" if transaction.nil?
|
132
|
+
# resource path
|
133
|
+
local_var_path = "/buyers/{buyerID}/orders/{orderID}/payments/{paymentID}/transactions".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'orderID' + '}', order_id.to_s).sub('{' + 'paymentID' + '}', payment_id.to_s)
|
134
|
+
|
135
|
+
# query parameters
|
136
|
+
query_params = {}
|
137
|
+
|
138
|
+
# header parameters
|
139
|
+
header_params = {}
|
140
|
+
|
141
|
+
# HTTP header 'Accept' (if needed)
|
142
|
+
local_header_accept = ['application/json']
|
143
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
144
|
+
|
145
|
+
# HTTP header 'Content-Type'
|
146
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
147
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
148
|
+
|
149
|
+
# form parameters
|
150
|
+
form_params = {}
|
151
|
+
|
152
|
+
# http body (model)
|
153
|
+
post_body = @api_client.object_to_http_body(transaction)
|
154
|
+
auth_names = ['oauth2']
|
155
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
156
|
+
:header_params => header_params,
|
157
|
+
:query_params => query_params,
|
158
|
+
:form_params => form_params,
|
159
|
+
:body => post_body,
|
160
|
+
:auth_names => auth_names,
|
161
|
+
:return_type => 'Payment')
|
162
|
+
if @api_client.config.debugging
|
163
|
+
@api_client.config.logger.debug "API called: PaymentApi#create_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
164
|
+
end
|
165
|
+
return data, status_code, headers
|
166
|
+
end
|
167
|
+
|
168
|
+
#
|
169
|
+
#
|
170
|
+
# @param buyer_id ID of the buyer.
|
171
|
+
# @param order_id ID of the order.
|
172
|
+
# @param payment_id ID of the payment.
|
173
|
+
# @param [Hash] opts the optional parameters
|
174
|
+
# @return [nil]
|
175
|
+
def delete(buyer_id, order_id, payment_id, opts = {})
|
176
|
+
delete_with_http_info(buyer_id, order_id, payment_id, opts)
|
177
|
+
return nil
|
178
|
+
end
|
179
|
+
|
180
|
+
#
|
181
|
+
#
|
182
|
+
# @param buyer_id ID of the buyer.
|
183
|
+
# @param order_id ID of the order.
|
184
|
+
# @param payment_id ID of the payment.
|
185
|
+
# @param [Hash] opts the optional parameters
|
186
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
187
|
+
def delete_with_http_info(buyer_id, order_id, payment_id, opts = {})
|
188
|
+
if @api_client.config.debugging
|
189
|
+
@api_client.config.logger.debug "Calling API: PaymentApi.delete ..."
|
190
|
+
end
|
191
|
+
# verify the required parameter 'buyer_id' is set
|
192
|
+
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling PaymentApi.delete" if buyer_id.nil?
|
193
|
+
# verify the required parameter 'order_id' is set
|
194
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentApi.delete" if order_id.nil?
|
195
|
+
# verify the required parameter 'payment_id' is set
|
196
|
+
fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentApi.delete" if payment_id.nil?
|
197
|
+
# resource path
|
198
|
+
local_var_path = "/buyers/{buyerID}/orders/{orderID}/payments/{paymentID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'orderID' + '}', order_id.to_s).sub('{' + 'paymentID' + '}', payment_id.to_s)
|
199
|
+
|
200
|
+
# query parameters
|
201
|
+
query_params = {}
|
202
|
+
|
203
|
+
# header parameters
|
204
|
+
header_params = {}
|
205
|
+
|
206
|
+
# HTTP header 'Accept' (if needed)
|
207
|
+
local_header_accept = ['application/json']
|
208
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
209
|
+
|
210
|
+
# HTTP header 'Content-Type'
|
211
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
212
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
213
|
+
|
214
|
+
# form parameters
|
215
|
+
form_params = {}
|
216
|
+
|
217
|
+
# http body (model)
|
218
|
+
post_body = nil
|
219
|
+
auth_names = ['oauth2']
|
220
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
221
|
+
:header_params => header_params,
|
222
|
+
:query_params => query_params,
|
223
|
+
:form_params => form_params,
|
224
|
+
:body => post_body,
|
225
|
+
:auth_names => auth_names)
|
226
|
+
if @api_client.config.debugging
|
227
|
+
@api_client.config.logger.debug "API called: PaymentApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
228
|
+
end
|
229
|
+
return data, status_code, headers
|
230
|
+
end
|
231
|
+
|
232
|
+
#
|
233
|
+
#
|
234
|
+
# @param buyer_id ID of the buyer.
|
235
|
+
# @param order_id ID of the order.
|
236
|
+
# @param payment_id ID of the payment.
|
237
|
+
# @param transaction_id ID of the transaction.
|
238
|
+
# @param [Hash] opts the optional parameters
|
239
|
+
# @return [nil]
|
240
|
+
def delete_transaction(buyer_id, order_id, payment_id, transaction_id, opts = {})
|
241
|
+
delete_transaction_with_http_info(buyer_id, order_id, payment_id, transaction_id, opts)
|
242
|
+
return nil
|
243
|
+
end
|
244
|
+
|
245
|
+
#
|
246
|
+
#
|
247
|
+
# @param buyer_id ID of the buyer.
|
248
|
+
# @param order_id ID of the order.
|
249
|
+
# @param payment_id ID of the payment.
|
250
|
+
# @param transaction_id ID of the transaction.
|
251
|
+
# @param [Hash] opts the optional parameters
|
252
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
253
|
+
def delete_transaction_with_http_info(buyer_id, order_id, payment_id, transaction_id, opts = {})
|
254
|
+
if @api_client.config.debugging
|
255
|
+
@api_client.config.logger.debug "Calling API: PaymentApi.delete_transaction ..."
|
256
|
+
end
|
257
|
+
# verify the required parameter 'buyer_id' is set
|
258
|
+
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling PaymentApi.delete_transaction" if buyer_id.nil?
|
259
|
+
# verify the required parameter 'order_id' is set
|
260
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentApi.delete_transaction" if order_id.nil?
|
261
|
+
# verify the required parameter 'payment_id' is set
|
262
|
+
fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentApi.delete_transaction" if payment_id.nil?
|
263
|
+
# verify the required parameter 'transaction_id' is set
|
264
|
+
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling PaymentApi.delete_transaction" if transaction_id.nil?
|
265
|
+
# resource path
|
266
|
+
local_var_path = "/buyers/{buyerID}/orders/{orderID}/payments/{paymentID}/transactions/{transactionID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'orderID' + '}', order_id.to_s).sub('{' + 'paymentID' + '}', payment_id.to_s).sub('{' + 'transactionID' + '}', transaction_id.to_s)
|
267
|
+
|
268
|
+
# query parameters
|
269
|
+
query_params = {}
|
270
|
+
|
271
|
+
# header parameters
|
272
|
+
header_params = {}
|
273
|
+
|
274
|
+
# HTTP header 'Accept' (if needed)
|
275
|
+
local_header_accept = ['application/json']
|
276
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
277
|
+
|
278
|
+
# HTTP header 'Content-Type'
|
279
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
280
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
281
|
+
|
282
|
+
# form parameters
|
283
|
+
form_params = {}
|
284
|
+
|
285
|
+
# http body (model)
|
286
|
+
post_body = nil
|
287
|
+
auth_names = ['oauth2']
|
288
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
289
|
+
:header_params => header_params,
|
290
|
+
:query_params => query_params,
|
291
|
+
:form_params => form_params,
|
292
|
+
:body => post_body,
|
293
|
+
:auth_names => auth_names)
|
294
|
+
if @api_client.config.debugging
|
295
|
+
@api_client.config.logger.debug "API called: PaymentApi#delete_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
296
|
+
end
|
297
|
+
return data, status_code, headers
|
298
|
+
end
|
299
|
+
|
300
|
+
#
|
301
|
+
#
|
302
|
+
# @param buyer_id ID of the buyer.
|
303
|
+
# @param order_id ID of the order.
|
304
|
+
# @param payment_id ID of the payment.
|
305
|
+
# @param [Hash] opts the optional parameters
|
306
|
+
# @return [Payment]
|
307
|
+
def get(buyer_id, order_id, payment_id, opts = {})
|
308
|
+
data, _status_code, _headers = get_with_http_info(buyer_id, order_id, payment_id, opts)
|
309
|
+
return data
|
310
|
+
end
|
311
|
+
|
312
|
+
#
|
313
|
+
#
|
314
|
+
# @param buyer_id ID of the buyer.
|
315
|
+
# @param order_id ID of the order.
|
316
|
+
# @param payment_id ID of the payment.
|
317
|
+
# @param [Hash] opts the optional parameters
|
318
|
+
# @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
|
319
|
+
def get_with_http_info(buyer_id, order_id, payment_id, opts = {})
|
320
|
+
if @api_client.config.debugging
|
321
|
+
@api_client.config.logger.debug "Calling API: PaymentApi.get ..."
|
322
|
+
end
|
323
|
+
# verify the required parameter 'buyer_id' is set
|
324
|
+
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling PaymentApi.get" if buyer_id.nil?
|
325
|
+
# verify the required parameter 'order_id' is set
|
326
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentApi.get" if order_id.nil?
|
327
|
+
# verify the required parameter 'payment_id' is set
|
328
|
+
fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentApi.get" if payment_id.nil?
|
329
|
+
# resource path
|
330
|
+
local_var_path = "/buyers/{buyerID}/orders/{orderID}/payments/{paymentID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'orderID' + '}', order_id.to_s).sub('{' + 'paymentID' + '}', payment_id.to_s)
|
331
|
+
|
332
|
+
# query parameters
|
333
|
+
query_params = {}
|
334
|
+
|
335
|
+
# header parameters
|
336
|
+
header_params = {}
|
337
|
+
|
338
|
+
# HTTP header 'Accept' (if needed)
|
339
|
+
local_header_accept = ['application/json']
|
340
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
341
|
+
|
342
|
+
# HTTP header 'Content-Type'
|
343
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
344
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
345
|
+
|
346
|
+
# form parameters
|
347
|
+
form_params = {}
|
348
|
+
|
349
|
+
# http body (model)
|
350
|
+
post_body = nil
|
351
|
+
auth_names = ['oauth2']
|
352
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
353
|
+
:header_params => header_params,
|
354
|
+
:query_params => query_params,
|
355
|
+
:form_params => form_params,
|
356
|
+
:body => post_body,
|
357
|
+
:auth_names => auth_names,
|
358
|
+
:return_type => 'Payment')
|
359
|
+
if @api_client.config.debugging
|
360
|
+
@api_client.config.logger.debug "API called: PaymentApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
361
|
+
end
|
362
|
+
return data, status_code, headers
|
363
|
+
end
|
364
|
+
|
365
|
+
#
|
366
|
+
#
|
367
|
+
# @param buyer_id ID of the buyer.
|
368
|
+
# @param order_id ID of the order.
|
369
|
+
# @param [Hash] opts the optional parameters
|
370
|
+
# @option opts [String] :search Word or phrase to search for.
|
371
|
+
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
372
|
+
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
373
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
374
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
375
|
+
# @option opts [Hash<String, String>] :filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
|
376
|
+
# @return [ListPayment]
|
377
|
+
def list(buyer_id, order_id, opts = {})
|
378
|
+
data, _status_code, _headers = list_with_http_info(buyer_id, order_id, opts)
|
379
|
+
return data
|
380
|
+
end
|
381
|
+
|
382
|
+
#
|
383
|
+
#
|
384
|
+
# @param buyer_id ID of the buyer.
|
385
|
+
# @param order_id ID of the order.
|
386
|
+
# @param [Hash] opts the optional parameters
|
387
|
+
# @option opts [String] :search Word or phrase to search for.
|
388
|
+
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
389
|
+
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
390
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
391
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
392
|
+
# @option opts [Hash<String, String>] :filters Any additional key/value pairs passed in the query string are interpretted as filters. Valid keys are top-level properties of the returned model or 'xp.???'
|
393
|
+
# @return [Array<(ListPayment, Fixnum, Hash)>] ListPayment data, response status code and response headers
|
394
|
+
def list_with_http_info(buyer_id, order_id, opts = {})
|
395
|
+
if @api_client.config.debugging
|
396
|
+
@api_client.config.logger.debug "Calling API: PaymentApi.list ..."
|
397
|
+
end
|
398
|
+
# verify the required parameter 'buyer_id' is set
|
399
|
+
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling PaymentApi.list" if buyer_id.nil?
|
400
|
+
# verify the required parameter 'order_id' is set
|
401
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentApi.list" if order_id.nil?
|
402
|
+
# resource path
|
403
|
+
local_var_path = "/buyers/{buyerID}/orders/{orderID}/payments".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'orderID' + '}', order_id.to_s)
|
404
|
+
|
405
|
+
# query parameters
|
406
|
+
query_params = {}
|
407
|
+
query_params[:'search'] = opts[:'search'] if !opts[:'search'].nil?
|
408
|
+
query_params[:'searchOn'] = opts[:'search_on'] if !opts[:'search_on'].nil?
|
409
|
+
query_params[:'sortBy'] = opts[:'sort_by'] if !opts[:'sort_by'].nil?
|
410
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
411
|
+
query_params[:'pageSize'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
412
|
+
query_params[:'filters'] = opts[:'filters'] if !opts[:'filters'].nil?
|
413
|
+
|
414
|
+
# header parameters
|
415
|
+
header_params = {}
|
416
|
+
|
417
|
+
# HTTP header 'Accept' (if needed)
|
418
|
+
local_header_accept = ['application/json']
|
419
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
420
|
+
|
421
|
+
# HTTP header 'Content-Type'
|
422
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
423
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
424
|
+
|
425
|
+
# form parameters
|
426
|
+
form_params = {}
|
427
|
+
|
428
|
+
# http body (model)
|
429
|
+
post_body = nil
|
430
|
+
auth_names = ['oauth2']
|
431
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
432
|
+
:header_params => header_params,
|
433
|
+
:query_params => query_params,
|
434
|
+
:form_params => form_params,
|
435
|
+
:body => post_body,
|
436
|
+
:auth_names => auth_names,
|
437
|
+
:return_type => 'ListPayment')
|
438
|
+
if @api_client.config.debugging
|
439
|
+
@api_client.config.logger.debug "API called: PaymentApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
440
|
+
end
|
441
|
+
return data, status_code, headers
|
442
|
+
end
|
443
|
+
|
444
|
+
#
|
445
|
+
#
|
446
|
+
# @param buyer_id ID of the buyer.
|
447
|
+
# @param order_id ID of the order.
|
448
|
+
# @param payment_id ID of the payment.
|
449
|
+
# @param partial_payment
|
450
|
+
# @param [Hash] opts the optional parameters
|
451
|
+
# @return [Payment]
|
452
|
+
def patch(buyer_id, order_id, payment_id, partial_payment, opts = {})
|
453
|
+
data, _status_code, _headers = patch_with_http_info(buyer_id, order_id, payment_id, partial_payment, opts)
|
454
|
+
return data
|
455
|
+
end
|
456
|
+
|
457
|
+
#
|
458
|
+
#
|
459
|
+
# @param buyer_id ID of the buyer.
|
460
|
+
# @param order_id ID of the order.
|
461
|
+
# @param payment_id ID of the payment.
|
462
|
+
# @param partial_payment
|
463
|
+
# @param [Hash] opts the optional parameters
|
464
|
+
# @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
|
465
|
+
def patch_with_http_info(buyer_id, order_id, payment_id, partial_payment, opts = {})
|
466
|
+
if @api_client.config.debugging
|
467
|
+
@api_client.config.logger.debug "Calling API: PaymentApi.patch ..."
|
468
|
+
end
|
469
|
+
# verify the required parameter 'buyer_id' is set
|
470
|
+
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling PaymentApi.patch" if buyer_id.nil?
|
471
|
+
# verify the required parameter 'order_id' is set
|
472
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentApi.patch" if order_id.nil?
|
473
|
+
# verify the required parameter 'payment_id' is set
|
474
|
+
fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentApi.patch" if payment_id.nil?
|
475
|
+
# verify the required parameter 'partial_payment' is set
|
476
|
+
fail ArgumentError, "Missing the required parameter 'partial_payment' when calling PaymentApi.patch" if partial_payment.nil?
|
477
|
+
# resource path
|
478
|
+
local_var_path = "/buyers/{buyerID}/orders/{orderID}/payments/{paymentID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'orderID' + '}', order_id.to_s).sub('{' + 'paymentID' + '}', payment_id.to_s)
|
479
|
+
|
480
|
+
# query parameters
|
481
|
+
query_params = {}
|
482
|
+
|
483
|
+
# header parameters
|
484
|
+
header_params = {}
|
485
|
+
|
486
|
+
# HTTP header 'Accept' (if needed)
|
487
|
+
local_header_accept = ['application/json']
|
488
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
489
|
+
|
490
|
+
# HTTP header 'Content-Type'
|
491
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
492
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
493
|
+
|
494
|
+
# form parameters
|
495
|
+
form_params = {}
|
496
|
+
|
497
|
+
# http body (model)
|
498
|
+
post_body = @api_client.object_to_http_body(partial_payment)
|
499
|
+
auth_names = ['oauth2']
|
500
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
501
|
+
:header_params => header_params,
|
502
|
+
:query_params => query_params,
|
503
|
+
:form_params => form_params,
|
504
|
+
:body => post_body,
|
505
|
+
:auth_names => auth_names,
|
506
|
+
:return_type => 'Payment')
|
507
|
+
if @api_client.config.debugging
|
508
|
+
@api_client.config.logger.debug "API called: PaymentApi#patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
509
|
+
end
|
510
|
+
return data, status_code, headers
|
511
|
+
end
|
512
|
+
|
513
|
+
#
|
514
|
+
#
|
515
|
+
# @param buyer_id ID of the buyer.
|
516
|
+
# @param order_id ID of the order.
|
517
|
+
# @param payment_id ID of the payment.
|
518
|
+
# @param transaction_id ID of the transaction.
|
519
|
+
# @param partial_transaction
|
520
|
+
# @param [Hash] opts the optional parameters
|
521
|
+
# @return [Payment]
|
522
|
+
def patch_transaction(buyer_id, order_id, payment_id, transaction_id, partial_transaction, opts = {})
|
523
|
+
data, _status_code, _headers = patch_transaction_with_http_info(buyer_id, order_id, payment_id, transaction_id, partial_transaction, opts)
|
524
|
+
return data
|
525
|
+
end
|
526
|
+
|
527
|
+
#
|
528
|
+
#
|
529
|
+
# @param buyer_id ID of the buyer.
|
530
|
+
# @param order_id ID of the order.
|
531
|
+
# @param payment_id ID of the payment.
|
532
|
+
# @param transaction_id ID of the transaction.
|
533
|
+
# @param partial_transaction
|
534
|
+
# @param [Hash] opts the optional parameters
|
535
|
+
# @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
|
536
|
+
def patch_transaction_with_http_info(buyer_id, order_id, payment_id, transaction_id, partial_transaction, opts = {})
|
537
|
+
if @api_client.config.debugging
|
538
|
+
@api_client.config.logger.debug "Calling API: PaymentApi.patch_transaction ..."
|
539
|
+
end
|
540
|
+
# verify the required parameter 'buyer_id' is set
|
541
|
+
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling PaymentApi.patch_transaction" if buyer_id.nil?
|
542
|
+
# verify the required parameter 'order_id' is set
|
543
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentApi.patch_transaction" if order_id.nil?
|
544
|
+
# verify the required parameter 'payment_id' is set
|
545
|
+
fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentApi.patch_transaction" if payment_id.nil?
|
546
|
+
# verify the required parameter 'transaction_id' is set
|
547
|
+
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling PaymentApi.patch_transaction" if transaction_id.nil?
|
548
|
+
# verify the required parameter 'partial_transaction' is set
|
549
|
+
fail ArgumentError, "Missing the required parameter 'partial_transaction' when calling PaymentApi.patch_transaction" if partial_transaction.nil?
|
550
|
+
# resource path
|
551
|
+
local_var_path = "/buyers/{buyerID}/orders/{orderID}/payments/{paymentID}/transactions/{transactionID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'orderID' + '}', order_id.to_s).sub('{' + 'paymentID' + '}', payment_id.to_s).sub('{' + 'transactionID' + '}', transaction_id.to_s)
|
552
|
+
|
553
|
+
# query parameters
|
554
|
+
query_params = {}
|
555
|
+
|
556
|
+
# header parameters
|
557
|
+
header_params = {}
|
558
|
+
|
559
|
+
# HTTP header 'Accept' (if needed)
|
560
|
+
local_header_accept = ['application/json']
|
561
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
562
|
+
|
563
|
+
# HTTP header 'Content-Type'
|
564
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
565
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
566
|
+
|
567
|
+
# form parameters
|
568
|
+
form_params = {}
|
569
|
+
|
570
|
+
# http body (model)
|
571
|
+
post_body = @api_client.object_to_http_body(partial_transaction)
|
572
|
+
auth_names = ['oauth2']
|
573
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
574
|
+
:header_params => header_params,
|
575
|
+
:query_params => query_params,
|
576
|
+
:form_params => form_params,
|
577
|
+
:body => post_body,
|
578
|
+
:auth_names => auth_names,
|
579
|
+
:return_type => 'Payment')
|
580
|
+
if @api_client.config.debugging
|
581
|
+
@api_client.config.logger.debug "API called: PaymentApi#patch_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
582
|
+
end
|
583
|
+
return data, status_code, headers
|
584
|
+
end
|
585
|
+
|
586
|
+
#
|
587
|
+
#
|
588
|
+
# @param buyer_id ID of the buyer.
|
589
|
+
# @param order_id ID of the order.
|
590
|
+
# @param payment_id ID of the payment.
|
591
|
+
# @param payment
|
592
|
+
# @param [Hash] opts the optional parameters
|
593
|
+
# @return [Payment]
|
594
|
+
def update(buyer_id, order_id, payment_id, payment, opts = {})
|
595
|
+
data, _status_code, _headers = update_with_http_info(buyer_id, order_id, payment_id, payment, opts)
|
596
|
+
return data
|
597
|
+
end
|
598
|
+
|
599
|
+
#
|
600
|
+
#
|
601
|
+
# @param buyer_id ID of the buyer.
|
602
|
+
# @param order_id ID of the order.
|
603
|
+
# @param payment_id ID of the payment.
|
604
|
+
# @param payment
|
605
|
+
# @param [Hash] opts the optional parameters
|
606
|
+
# @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
|
607
|
+
def update_with_http_info(buyer_id, order_id, payment_id, payment, opts = {})
|
608
|
+
if @api_client.config.debugging
|
609
|
+
@api_client.config.logger.debug "Calling API: PaymentApi.update ..."
|
610
|
+
end
|
611
|
+
# verify the required parameter 'buyer_id' is set
|
612
|
+
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling PaymentApi.update" if buyer_id.nil?
|
613
|
+
# verify the required parameter 'order_id' is set
|
614
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentApi.update" if order_id.nil?
|
615
|
+
# verify the required parameter 'payment_id' is set
|
616
|
+
fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentApi.update" if payment_id.nil?
|
617
|
+
# verify the required parameter 'payment' is set
|
618
|
+
fail ArgumentError, "Missing the required parameter 'payment' when calling PaymentApi.update" if payment.nil?
|
619
|
+
# resource path
|
620
|
+
local_var_path = "/buyers/{buyerID}/orders/{orderID}/payments/{paymentID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'orderID' + '}', order_id.to_s).sub('{' + 'paymentID' + '}', payment_id.to_s)
|
621
|
+
|
622
|
+
# query parameters
|
623
|
+
query_params = {}
|
624
|
+
|
625
|
+
# header parameters
|
626
|
+
header_params = {}
|
627
|
+
|
628
|
+
# HTTP header 'Accept' (if needed)
|
629
|
+
local_header_accept = ['application/json']
|
630
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
631
|
+
|
632
|
+
# HTTP header 'Content-Type'
|
633
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
634
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
635
|
+
|
636
|
+
# form parameters
|
637
|
+
form_params = {}
|
638
|
+
|
639
|
+
# http body (model)
|
640
|
+
post_body = @api_client.object_to_http_body(payment)
|
641
|
+
auth_names = ['oauth2']
|
642
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
643
|
+
:header_params => header_params,
|
644
|
+
:query_params => query_params,
|
645
|
+
:form_params => form_params,
|
646
|
+
:body => post_body,
|
647
|
+
:auth_names => auth_names,
|
648
|
+
:return_type => 'Payment')
|
649
|
+
if @api_client.config.debugging
|
650
|
+
@api_client.config.logger.debug "API called: PaymentApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
651
|
+
end
|
652
|
+
return data, status_code, headers
|
653
|
+
end
|
654
|
+
|
655
|
+
#
|
656
|
+
#
|
657
|
+
# @param buyer_id ID of the buyer.
|
658
|
+
# @param order_id ID of the order.
|
659
|
+
# @param payment_id ID of the payment.
|
660
|
+
# @param transaction_id ID of the transaction.
|
661
|
+
# @param transaction
|
662
|
+
# @param [Hash] opts the optional parameters
|
663
|
+
# @return [Payment]
|
664
|
+
def update_transaction(buyer_id, order_id, payment_id, transaction_id, transaction, opts = {})
|
665
|
+
data, _status_code, _headers = update_transaction_with_http_info(buyer_id, order_id, payment_id, transaction_id, transaction, opts)
|
666
|
+
return data
|
667
|
+
end
|
668
|
+
|
669
|
+
#
|
670
|
+
#
|
671
|
+
# @param buyer_id ID of the buyer.
|
672
|
+
# @param order_id ID of the order.
|
673
|
+
# @param payment_id ID of the payment.
|
674
|
+
# @param transaction_id ID of the transaction.
|
675
|
+
# @param transaction
|
676
|
+
# @param [Hash] opts the optional parameters
|
677
|
+
# @return [Array<(Payment, Fixnum, Hash)>] Payment data, response status code and response headers
|
678
|
+
def update_transaction_with_http_info(buyer_id, order_id, payment_id, transaction_id, transaction, opts = {})
|
679
|
+
if @api_client.config.debugging
|
680
|
+
@api_client.config.logger.debug "Calling API: PaymentApi.update_transaction ..."
|
681
|
+
end
|
682
|
+
# verify the required parameter 'buyer_id' is set
|
683
|
+
fail ArgumentError, "Missing the required parameter 'buyer_id' when calling PaymentApi.update_transaction" if buyer_id.nil?
|
684
|
+
# verify the required parameter 'order_id' is set
|
685
|
+
fail ArgumentError, "Missing the required parameter 'order_id' when calling PaymentApi.update_transaction" if order_id.nil?
|
686
|
+
# verify the required parameter 'payment_id' is set
|
687
|
+
fail ArgumentError, "Missing the required parameter 'payment_id' when calling PaymentApi.update_transaction" if payment_id.nil?
|
688
|
+
# verify the required parameter 'transaction_id' is set
|
689
|
+
fail ArgumentError, "Missing the required parameter 'transaction_id' when calling PaymentApi.update_transaction" if transaction_id.nil?
|
690
|
+
# verify the required parameter 'transaction' is set
|
691
|
+
fail ArgumentError, "Missing the required parameter 'transaction' when calling PaymentApi.update_transaction" if transaction.nil?
|
692
|
+
# resource path
|
693
|
+
local_var_path = "/buyers/{buyerID}/orders/{orderID}/payments/{paymentID}/transactions/{transactionID}".sub('{format}','json').sub('{' + 'buyerID' + '}', buyer_id.to_s).sub('{' + 'orderID' + '}', order_id.to_s).sub('{' + 'paymentID' + '}', payment_id.to_s).sub('{' + 'transactionID' + '}', transaction_id.to_s)
|
694
|
+
|
695
|
+
# query parameters
|
696
|
+
query_params = {}
|
697
|
+
|
698
|
+
# header parameters
|
699
|
+
header_params = {}
|
700
|
+
|
701
|
+
# HTTP header 'Accept' (if needed)
|
702
|
+
local_header_accept = ['application/json']
|
703
|
+
local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
|
704
|
+
|
705
|
+
# HTTP header 'Content-Type'
|
706
|
+
local_header_content_type = ['application/json', 'text/plain; charset=utf-8']
|
707
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
|
708
|
+
|
709
|
+
# form parameters
|
710
|
+
form_params = {}
|
711
|
+
|
712
|
+
# http body (model)
|
713
|
+
post_body = @api_client.object_to_http_body(transaction)
|
714
|
+
auth_names = ['oauth2']
|
715
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
716
|
+
:header_params => header_params,
|
717
|
+
:query_params => query_params,
|
718
|
+
:form_params => form_params,
|
719
|
+
:body => post_body,
|
720
|
+
:auth_names => auth_names,
|
721
|
+
:return_type => 'Payment')
|
722
|
+
if @api_client.config.debugging
|
723
|
+
@api_client.config.logger.debug "API called: PaymentApi#update_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
724
|
+
end
|
725
|
+
return data, status_code, headers
|
726
|
+
end
|
727
|
+
end
|
728
|
+
end
|