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,375 @@
|
|
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 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for OrderCloud::OrderApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'OrderApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = OrderCloud::OrderApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of OrderApi' do
|
41
|
+
it 'should create an instact of OrderApi' do
|
42
|
+
expect(@instance).to be_instance_of(OrderCloud::OrderApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for add_promotion
|
47
|
+
#
|
48
|
+
#
|
49
|
+
# @param buyer_id ID of the buyer.
|
50
|
+
# @param order_id ID of the order.
|
51
|
+
# @param promo_code Promo code of the order.
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [Promotion]
|
54
|
+
describe 'add_promotion test' do
|
55
|
+
it "should work" do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for approve
|
61
|
+
#
|
62
|
+
#
|
63
|
+
# @param buyer_id ID of the buyer.
|
64
|
+
# @param order_id ID of the order.
|
65
|
+
# @param [Hash] opts the optional parameters
|
66
|
+
# @option opts [String] :comments Comments to be saved with the order approval.
|
67
|
+
# @return [Order]
|
68
|
+
describe 'approve test' do
|
69
|
+
it "should work" do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# unit tests for cancel
|
75
|
+
#
|
76
|
+
#
|
77
|
+
# @param buyer_id ID of the buyer.
|
78
|
+
# @param order_id ID of the order.
|
79
|
+
# @param [Hash] opts the optional parameters
|
80
|
+
# @return [Order]
|
81
|
+
describe 'cancel test' do
|
82
|
+
it "should work" do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
# unit tests for create
|
88
|
+
#
|
89
|
+
#
|
90
|
+
# @param buyer_id ID of the buyer.
|
91
|
+
# @param order
|
92
|
+
# @param [Hash] opts the optional parameters
|
93
|
+
# @return [Order]
|
94
|
+
describe 'create test' do
|
95
|
+
it "should work" do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# unit tests for decline
|
101
|
+
#
|
102
|
+
#
|
103
|
+
# @param buyer_id ID of the buyer.
|
104
|
+
# @param order_id ID of the order.
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @option opts [String] :comments Comments to be saved with the order denial.
|
107
|
+
# @return [Order]
|
108
|
+
describe 'decline test' do
|
109
|
+
it "should work" do
|
110
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
111
|
+
end
|
112
|
+
end
|
113
|
+
|
114
|
+
# unit tests for delete
|
115
|
+
#
|
116
|
+
#
|
117
|
+
# @param buyer_id ID of the buyer.
|
118
|
+
# @param order_id ID of the order.
|
119
|
+
# @param [Hash] opts the optional parameters
|
120
|
+
# @return [nil]
|
121
|
+
describe 'delete test' do
|
122
|
+
it "should work" do
|
123
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
124
|
+
end
|
125
|
+
end
|
126
|
+
|
127
|
+
# unit tests for get
|
128
|
+
#
|
129
|
+
#
|
130
|
+
# @param buyer_id ID of the buyer.
|
131
|
+
# @param order_id ID of the order.
|
132
|
+
# @param [Hash] opts the optional parameters
|
133
|
+
# @return [Order]
|
134
|
+
describe 'get test' do
|
135
|
+
it "should work" do
|
136
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
# unit tests for list_approvals
|
141
|
+
#
|
142
|
+
#
|
143
|
+
# @param buyer_id ID of the buyer.
|
144
|
+
# @param order_id ID of the order.
|
145
|
+
# @param [Hash] opts the optional parameters
|
146
|
+
# @option opts [String] :search Word or phrase to search for.
|
147
|
+
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
148
|
+
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
149
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
150
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
151
|
+
# @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.???'
|
152
|
+
# @return [ListOrderApproval]
|
153
|
+
describe 'list_approvals test' do
|
154
|
+
it "should work" do
|
155
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
# unit tests for list_eligible_approvers
|
160
|
+
#
|
161
|
+
#
|
162
|
+
# @param buyer_id ID of the buyer.
|
163
|
+
# @param order_id ID of the order.
|
164
|
+
# @param [Hash] opts the optional parameters
|
165
|
+
# @option opts [String] :search Word or phrase to search for.
|
166
|
+
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
167
|
+
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
168
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
169
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
170
|
+
# @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.???'
|
171
|
+
# @return [ListUser]
|
172
|
+
describe 'list_eligible_approvers test' do
|
173
|
+
it "should work" do
|
174
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# unit tests for list_incoming
|
179
|
+
#
|
180
|
+
#
|
181
|
+
# @param [Hash] opts the optional parameters
|
182
|
+
# @option opts [String] :buyer_id ID of the buyer.
|
183
|
+
# @option opts [String] :from Lower bound of date range that the order was submitted.
|
184
|
+
# @option opts [String] :to Upper bound of date range that the order was submitted.
|
185
|
+
# @option opts [String] :search Word or phrase to search for.
|
186
|
+
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
187
|
+
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
188
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
189
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
190
|
+
# @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.???'
|
191
|
+
# @return [ListOrder]
|
192
|
+
describe 'list_incoming test' do
|
193
|
+
it "should work" do
|
194
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# unit tests for list_outgoing
|
199
|
+
#
|
200
|
+
#
|
201
|
+
# @param [Hash] opts the optional parameters
|
202
|
+
# @option opts [String] :buyer_id ID of the buyer.
|
203
|
+
# @option opts [String] :from Lower bound of date range that the order was created.
|
204
|
+
# @option opts [String] :to Upper bound of date range that the order was created.
|
205
|
+
# @option opts [String] :search Word or phrase to search for.
|
206
|
+
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
207
|
+
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
208
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
209
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
210
|
+
# @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.???'
|
211
|
+
# @return [ListOrder]
|
212
|
+
describe 'list_outgoing test' do
|
213
|
+
it "should work" do
|
214
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
215
|
+
end
|
216
|
+
end
|
217
|
+
|
218
|
+
# unit tests for list_promotions
|
219
|
+
#
|
220
|
+
#
|
221
|
+
# @param buyer_id ID of the buyer.
|
222
|
+
# @param order_id ID of the order.
|
223
|
+
# @param [Hash] opts the optional parameters
|
224
|
+
# @option opts [String] :search Word or phrase to search for.
|
225
|
+
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
226
|
+
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
227
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
228
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
229
|
+
# @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.???'
|
230
|
+
# @return [ListOrderPromotion]
|
231
|
+
describe 'list_promotions test' do
|
232
|
+
it "should work" do
|
233
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
234
|
+
end
|
235
|
+
end
|
236
|
+
|
237
|
+
# unit tests for patch
|
238
|
+
#
|
239
|
+
#
|
240
|
+
# @param buyer_id ID of the buyer.
|
241
|
+
# @param order_id ID of the order.
|
242
|
+
# @param partial_order
|
243
|
+
# @param [Hash] opts the optional parameters
|
244
|
+
# @return [Order]
|
245
|
+
describe 'patch test' do
|
246
|
+
it "should work" do
|
247
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
248
|
+
end
|
249
|
+
end
|
250
|
+
|
251
|
+
# unit tests for patch_billing_address
|
252
|
+
#
|
253
|
+
#
|
254
|
+
# @param buyer_id ID of the buyer.
|
255
|
+
# @param order_id ID of the order.
|
256
|
+
# @param address
|
257
|
+
# @param [Hash] opts the optional parameters
|
258
|
+
# @return [Order]
|
259
|
+
describe 'patch_billing_address test' do
|
260
|
+
it "should work" do
|
261
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
262
|
+
end
|
263
|
+
end
|
264
|
+
|
265
|
+
# unit tests for patch_shipping_address
|
266
|
+
#
|
267
|
+
#
|
268
|
+
# @param buyer_id ID of the buyer.
|
269
|
+
# @param order_id ID of the order.
|
270
|
+
# @param address
|
271
|
+
# @param [Hash] opts the optional parameters
|
272
|
+
# @return [Order]
|
273
|
+
describe 'patch_shipping_address test' do
|
274
|
+
it "should work" do
|
275
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
# unit tests for remove_promotion
|
280
|
+
#
|
281
|
+
#
|
282
|
+
# @param buyer_id ID of the buyer.
|
283
|
+
# @param order_id ID of the order.
|
284
|
+
# @param promo_code Promo code of the order.
|
285
|
+
# @param [Hash] opts the optional parameters
|
286
|
+
# @return [Order]
|
287
|
+
describe 'remove_promotion test' do
|
288
|
+
it "should work" do
|
289
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
290
|
+
end
|
291
|
+
end
|
292
|
+
|
293
|
+
# unit tests for set_billing_address
|
294
|
+
#
|
295
|
+
#
|
296
|
+
# @param buyer_id ID of the buyer.
|
297
|
+
# @param order_id ID of the order.
|
298
|
+
# @param address
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @return [Order]
|
301
|
+
describe 'set_billing_address test' do
|
302
|
+
it "should work" do
|
303
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
304
|
+
end
|
305
|
+
end
|
306
|
+
|
307
|
+
# unit tests for set_shipping_address
|
308
|
+
#
|
309
|
+
#
|
310
|
+
# @param buyer_id ID of the buyer.
|
311
|
+
# @param order_id ID of the order.
|
312
|
+
# @param address
|
313
|
+
# @param [Hash] opts the optional parameters
|
314
|
+
# @return [Order]
|
315
|
+
describe 'set_shipping_address test' do
|
316
|
+
it "should work" do
|
317
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
# unit tests for ship
|
322
|
+
#
|
323
|
+
#
|
324
|
+
# @param buyer_id ID of the buyer.
|
325
|
+
# @param order_id ID of the order.
|
326
|
+
# @param shipment
|
327
|
+
# @param [Hash] opts the optional parameters
|
328
|
+
# @return [Order]
|
329
|
+
describe 'ship test' do
|
330
|
+
it "should work" do
|
331
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
332
|
+
end
|
333
|
+
end
|
334
|
+
|
335
|
+
# unit tests for submit
|
336
|
+
#
|
337
|
+
#
|
338
|
+
# @param buyer_id ID of the buyer.
|
339
|
+
# @param order_id ID of the order.
|
340
|
+
# @param [Hash] opts the optional parameters
|
341
|
+
# @return [Order]
|
342
|
+
describe 'submit test' do
|
343
|
+
it "should work" do
|
344
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
345
|
+
end
|
346
|
+
end
|
347
|
+
|
348
|
+
# unit tests for transfer_temp_user_order
|
349
|
+
#
|
350
|
+
#
|
351
|
+
# @param buyer_id ID of the buyer.
|
352
|
+
# @param temp_user_token Temp user token of the order.
|
353
|
+
# @param [Hash] opts the optional parameters
|
354
|
+
# @return [nil]
|
355
|
+
describe 'transfer_temp_user_order test' do
|
356
|
+
it "should work" do
|
357
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
358
|
+
end
|
359
|
+
end
|
360
|
+
|
361
|
+
# unit tests for update
|
362
|
+
#
|
363
|
+
#
|
364
|
+
# @param buyer_id ID of the buyer.
|
365
|
+
# @param order_id ID of the order.
|
366
|
+
# @param order
|
367
|
+
# @param [Hash] opts the optional parameters
|
368
|
+
# @return [Order]
|
369
|
+
describe 'update test' do
|
370
|
+
it "should work" do
|
371
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
372
|
+
end
|
373
|
+
end
|
374
|
+
|
375
|
+
end
|
@@ -0,0 +1,71 @@
|
|
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 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for OrderCloud::PasswordResetApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'PasswordResetApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = OrderCloud::PasswordResetApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of PasswordResetApi' do
|
41
|
+
it 'should create an instact of PasswordResetApi' do
|
42
|
+
expect(@instance).to be_instance_of(OrderCloud::PasswordResetApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for reset_password
|
47
|
+
#
|
48
|
+
#
|
49
|
+
# @param verification_code Verification code of the forgotten password.
|
50
|
+
# @param password_reset
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [nil]
|
53
|
+
describe 'reset_password test' do
|
54
|
+
it "should work" do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for send_verification_code
|
60
|
+
#
|
61
|
+
#
|
62
|
+
# @param password_reset_request
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @return [nil]
|
65
|
+
describe 'send_verification_code test' do
|
66
|
+
it "should work" do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
end
|
@@ -0,0 +1,199 @@
|
|
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 'spec_helper'
|
25
|
+
require 'json'
|
26
|
+
|
27
|
+
# Unit tests for OrderCloud::PaymentApi
|
28
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
29
|
+
# Please update as you see appropriate
|
30
|
+
describe 'PaymentApi' do
|
31
|
+
before do
|
32
|
+
# run before each test
|
33
|
+
@instance = OrderCloud::PaymentApi.new
|
34
|
+
end
|
35
|
+
|
36
|
+
after do
|
37
|
+
# run after each test
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test an instance of PaymentApi' do
|
41
|
+
it 'should create an instact of PaymentApi' do
|
42
|
+
expect(@instance).to be_instance_of(OrderCloud::PaymentApi)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for create
|
47
|
+
#
|
48
|
+
#
|
49
|
+
# @param buyer_id ID of the buyer.
|
50
|
+
# @param order_id ID of the order.
|
51
|
+
# @param payment
|
52
|
+
# @param [Hash] opts the optional parameters
|
53
|
+
# @return [Payment]
|
54
|
+
describe 'create test' do
|
55
|
+
it "should work" do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
# unit tests for create_transaction
|
61
|
+
#
|
62
|
+
#
|
63
|
+
# @param buyer_id ID of the buyer.
|
64
|
+
# @param order_id ID of the order.
|
65
|
+
# @param payment_id ID of the payment.
|
66
|
+
# @param transaction
|
67
|
+
# @param [Hash] opts the optional parameters
|
68
|
+
# @return [Payment]
|
69
|
+
describe 'create_transaction test' do
|
70
|
+
it "should work" do
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# unit tests for delete
|
76
|
+
#
|
77
|
+
#
|
78
|
+
# @param buyer_id ID of the buyer.
|
79
|
+
# @param order_id ID of the order.
|
80
|
+
# @param payment_id ID of the payment.
|
81
|
+
# @param [Hash] opts the optional parameters
|
82
|
+
# @return [nil]
|
83
|
+
describe 'delete test' do
|
84
|
+
it "should work" do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# unit tests for delete_transaction
|
90
|
+
#
|
91
|
+
#
|
92
|
+
# @param buyer_id ID of the buyer.
|
93
|
+
# @param order_id ID of the order.
|
94
|
+
# @param payment_id ID of the payment.
|
95
|
+
# @param transaction_id ID of the transaction.
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @return [nil]
|
98
|
+
describe 'delete_transaction test' do
|
99
|
+
it "should work" do
|
100
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# unit tests for get
|
105
|
+
#
|
106
|
+
#
|
107
|
+
# @param buyer_id ID of the buyer.
|
108
|
+
# @param order_id ID of the order.
|
109
|
+
# @param payment_id ID of the payment.
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @return [Payment]
|
112
|
+
describe 'get test' do
|
113
|
+
it "should work" do
|
114
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
# unit tests for list
|
119
|
+
#
|
120
|
+
#
|
121
|
+
# @param buyer_id ID of the buyer.
|
122
|
+
# @param order_id ID of the order.
|
123
|
+
# @param [Hash] opts the optional parameters
|
124
|
+
# @option opts [String] :search Word or phrase to search for.
|
125
|
+
# @option opts [String] :search_on Comma-delimited list of fields to search on.
|
126
|
+
# @option opts [String] :sort_by Comma-delimited list of fields to sort by.
|
127
|
+
# @option opts [Integer] :page Page of results to return. Default: 1
|
128
|
+
# @option opts [Integer] :page_size Number of results to return per page. Default: 20, max: 100.
|
129
|
+
# @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.???'
|
130
|
+
# @return [ListPayment]
|
131
|
+
describe 'list test' do
|
132
|
+
it "should work" do
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
# unit tests for patch
|
138
|
+
#
|
139
|
+
#
|
140
|
+
# @param buyer_id ID of the buyer.
|
141
|
+
# @param order_id ID of the order.
|
142
|
+
# @param payment_id ID of the payment.
|
143
|
+
# @param partial_payment
|
144
|
+
# @param [Hash] opts the optional parameters
|
145
|
+
# @return [Payment]
|
146
|
+
describe 'patch test' do
|
147
|
+
it "should work" do
|
148
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
149
|
+
end
|
150
|
+
end
|
151
|
+
|
152
|
+
# unit tests for patch_transaction
|
153
|
+
#
|
154
|
+
#
|
155
|
+
# @param buyer_id ID of the buyer.
|
156
|
+
# @param order_id ID of the order.
|
157
|
+
# @param payment_id ID of the payment.
|
158
|
+
# @param transaction_id ID of the transaction.
|
159
|
+
# @param partial_transaction
|
160
|
+
# @param [Hash] opts the optional parameters
|
161
|
+
# @return [Payment]
|
162
|
+
describe 'patch_transaction test' do
|
163
|
+
it "should work" do
|
164
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
168
|
+
# unit tests for update
|
169
|
+
#
|
170
|
+
#
|
171
|
+
# @param buyer_id ID of the buyer.
|
172
|
+
# @param order_id ID of the order.
|
173
|
+
# @param payment_id ID of the payment.
|
174
|
+
# @param payment
|
175
|
+
# @param [Hash] opts the optional parameters
|
176
|
+
# @return [Payment]
|
177
|
+
describe 'update test' do
|
178
|
+
it "should work" do
|
179
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
183
|
+
# unit tests for update_transaction
|
184
|
+
#
|
185
|
+
#
|
186
|
+
# @param buyer_id ID of the buyer.
|
187
|
+
# @param order_id ID of the order.
|
188
|
+
# @param payment_id ID of the payment.
|
189
|
+
# @param transaction_id ID of the transaction.
|
190
|
+
# @param transaction
|
191
|
+
# @param [Hash] opts the optional parameters
|
192
|
+
# @return [Payment]
|
193
|
+
describe 'update_transaction test' do
|
194
|
+
it "should work" do
|
195
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
end
|