growwer 1.0.0
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/Gemfile +9 -0
- data/README.md +306 -0
- data/Rakefile +10 -0
- data/docs/AccountApi.md +213 -0
- data/docs/Balance.md +20 -0
- data/docs/BuyerMoneyApi.md +362 -0
- data/docs/CatalogueApi.md +731 -0
- data/docs/CatalogueMedia.md +46 -0
- data/docs/CatalogueMediaFlashOffer.md +20 -0
- data/docs/CatalogueMediaMetrics.md +26 -0
- data/docs/CatalogueOffer.md +24 -0
- data/docs/CatalogueOfferOrNull.md +24 -0
- data/docs/CataloguePostOffer.md +30 -0
- data/docs/CataloguePostOfferAllOfExtras.md +20 -0
- data/docs/CataloguePostOfferAllOfExtrasSensitiveTopic.md +20 -0
- data/docs/CodeName.md +20 -0
- data/docs/CountSavedFilterMedias200Response.md +18 -0
- data/docs/CreateProjectRequest.md +32 -0
- data/docs/CreateSavedFilterRequest.md +22 -0
- data/docs/Error.md +24 -0
- data/docs/FilesApi.md +79 -0
- data/docs/GetBuyerWallet200Response.md +20 -0
- data/docs/GetMe200Response.md +34 -0
- data/docs/GetMe200ResponseBuyer.md +18 -0
- data/docs/GetMe200ResponseCatalogue.md +18 -0
- data/docs/GetMe200ResponseManagedService.md +18 -0
- data/docs/GetMe200ResponseSeller.md +24 -0
- data/docs/GetSellerWallet200Response.md +20 -0
- data/docs/GetVocabulary200Response.md +28 -0
- data/docs/GetVocabulary200ResponseTopicsInner.md +20 -0
- data/docs/Invoice.md +24 -0
- data/docs/LinkAdditionOrderBriefing.md +22 -0
- data/docs/LinkAdditionOrderBriefingRequest.md +22 -0
- data/docs/ListBuyerTransactions200Response.md +20 -0
- data/docs/ListFlashOffers200Response.md +20 -0
- data/docs/ListInvoices200Response.md +20 -0
- data/docs/ListManagedServiceCampaigns200Response.md +20 -0
- data/docs/ListManagedServiceProposals200Response.md +20 -0
- data/docs/ListOrders200Response.md +20 -0
- data/docs/ListProjects200Response.md +20 -0
- data/docs/ListSavedFilters200Response.md +20 -0
- data/docs/ListSellerMedias200Response.md +20 -0
- data/docs/ListSellerOrders200Response.md +20 -0
- data/docs/ListSellerTransactions200Response.md +20 -0
- data/docs/ListWithdrawals200Response.md +20 -0
- data/docs/ManagedServiceCampaign.md +40 -0
- data/docs/ManagedServiceCampaignProject.md +20 -0
- data/docs/ManagedServiceCampaignProposalCounts.md +26 -0
- data/docs/ManagedServiceCampaignStrategy.md +26 -0
- data/docs/ManagedServiceProposal.md +40 -0
- data/docs/ManagedServiceProposalBriefing.md +24 -0
- data/docs/ManagedServiceProposalBriefingLinksInner.md +22 -0
- data/docs/ManagedServiceProposalMedia.md +24 -0
- data/docs/ManagedServiceProposalReview.md +20 -0
- data/docs/ManagedServiceProposalReviewRequest.md +18 -0
- data/docs/ManagedServiceProposalReviewRequestReviewsInner.md +22 -0
- data/docs/ManagedServiceProposalsEstimate.md +28 -0
- data/docs/ManagedServiceProposalsEstimateRequest.md +18 -0
- data/docs/ManagedServiceRequest.md +28 -0
- data/docs/ManagedServiceRequestSent.md +18 -0
- data/docs/ManagedServicesApi.md +593 -0
- data/docs/Money.md +20 -0
- data/docs/MoneyOrNull.md +20 -0
- data/docs/Order.md +48 -0
- data/docs/OrderActionReason.md +18 -0
- data/docs/OrderBriefing.md +49 -0
- data/docs/OrderChannel.md +18 -0
- data/docs/OrderCreateRequest.md +32 -0
- data/docs/OrderDelivery.md +20 -0
- data/docs/OrderDraft.md +22 -0
- data/docs/OrderEstimate.md +24 -0
- data/docs/OrderEstimateRequest.md +30 -0
- data/docs/OrderEstimateRequestBriefing.md +49 -0
- data/docs/OrderLink.md +22 -0
- data/docs/OrderLinkRequest.md +22 -0
- data/docs/OrderMedia.md +20 -0
- data/docs/OrderProject.md +20 -0
- data/docs/OrderStateHistoryInner.md +22 -0
- data/docs/OrderStateHistoryInnerReason.md +20 -0
- data/docs/OrdersApi.md +809 -0
- data/docs/PostOrderBriefing.md +28 -0
- data/docs/PostOrderBriefingRequest.md +24 -0
- data/docs/Project.md +38 -0
- data/docs/ProjectCatalogueMedia.md +48 -0
- data/docs/ProjectCatalogueMediaAllOfProject.md +28 -0
- data/docs/ProjectsApi.md +368 -0
- data/docs/PutSellerHoliday200Response.md +20 -0
- data/docs/PutSellerHolidayRequest.md +20 -0
- data/docs/RequestMedias201Response.md +18 -0
- data/docs/RequestMediasRequest.md +18 -0
- data/docs/SavedFilter.md +26 -0
- data/docs/SavedFilterNotifications.md +20 -0
- data/docs/SavedFiltersApi.md +296 -0
- data/docs/SellerFees.md +20 -0
- data/docs/SellerFeesOrNull.md +20 -0
- data/docs/SellerMedia.md +54 -0
- data/docs/SellerMediaFlashOffer.md +20 -0
- data/docs/SellerMediaLinkAdditionOffer.md +18 -0
- data/docs/SellerMediaLinkAdditionOfferPricingOptionsInner.md +22 -0
- data/docs/SellerMediaPostOffer.md +20 -0
- data/docs/SellerMediaPostOfferPricingOptionsInner.md +24 -0
- data/docs/SellerMediasApi.md +301 -0
- data/docs/SellerMoneyApi.md +364 -0
- data/docs/SellerOrder.md +50 -0
- data/docs/SellerOrderBriefing.md +49 -0
- data/docs/SellerOrderChannel.md +20 -0
- data/docs/SellerOrderDraft.md +20 -0
- data/docs/SellerOrderDraftFile.md +18 -0
- data/docs/SellerOrderPostDelivery.md +20 -0
- data/docs/SellerOrderProject.md +18 -0
- data/docs/SellerOrderRefutation.md +18 -0
- data/docs/SellerOrderRejection.md +18 -0
- data/docs/SellerOrderRejectionReason.md +20 -0
- data/docs/SellerOrdersApi.md +893 -0
- data/docs/SellerPostOrderBriefing.md +30 -0
- data/docs/SellerTransaction.md +38 -0
- data/docs/Transaction.md +40 -0
- data/docs/UpdateProjectRequest.md +30 -0
- data/docs/UpdateSellerMediaRequest.md +22 -0
- data/docs/UpdateSellerMediaRequestExtraServicesInner.md +20 -0
- data/docs/UpdateSellerMediaRequestLinkAdditionOffer.md +18 -0
- data/docs/UpdateSellerMediaRequestLinkAdditionOfferPricingOptionsInner.md +20 -0
- data/docs/UpdateSellerMediaRequestPostOffer.md +18 -0
- data/docs/UpdateSellerMediaRequestPostOfferPricingOptionsInner.md +22 -0
- data/docs/UploadFile201Response.md +24 -0
- data/docs/Withdrawal.md +28 -0
- data/git_push.sh +57 -0
- data/growwer.gemspec +41 -0
- data/lib/growwer/api/account_api.rb +215 -0
- data/lib/growwer/api/buyer_money_api.rb +355 -0
- data/lib/growwer/api/catalogue_api.rb +881 -0
- data/lib/growwer/api/files_api.rb +102 -0
- data/lib/growwer/api/managed_services_api.rb +625 -0
- data/lib/growwer/api/orders_api.rb +855 -0
- data/lib/growwer/api/projects_api.rb +398 -0
- data/lib/growwer/api/saved_filters_api.rb +319 -0
- data/lib/growwer/api/seller_medias_api.rb +329 -0
- data/lib/growwer/api/seller_money_api.rb +358 -0
- data/lib/growwer/api/seller_orders_api.rb +963 -0
- data/lib/growwer/api_client.rb +441 -0
- data/lib/growwer/api_error.rb +58 -0
- data/lib/growwer/api_model_base.rb +88 -0
- data/lib/growwer/configuration.rb +392 -0
- data/lib/growwer/models/balance.rb +192 -0
- data/lib/growwer/models/catalogue_media.rb +491 -0
- data/lib/growwer/models/catalogue_media_flash_offer.rb +191 -0
- data/lib/growwer/models/catalogue_media_metrics.rb +200 -0
- data/lib/growwer/models/catalogue_offer.rb +254 -0
- data/lib/growwer/models/catalogue_offer_or_null.rb +254 -0
- data/lib/growwer/models/catalogue_post_offer.rb +333 -0
- data/lib/growwer/models/catalogue_post_offer_all_of_extras.rb +177 -0
- data/lib/growwer/models/catalogue_post_offer_all_of_extras_sensitive_topic.rb +178 -0
- data/lib/growwer/models/code_name.rb +190 -0
- data/lib/growwer/models/count_saved_filter_medias200_response.rb +173 -0
- data/lib/growwer/models/create_project_request.rb +402 -0
- data/lib/growwer/models/create_saved_filter_request.rb +247 -0
- data/lib/growwer/models/error.rb +231 -0
- data/lib/growwer/models/get_buyer_wallet200_response.rb +191 -0
- data/lib/growwer/models/get_me200_response.rb +373 -0
- data/lib/growwer/models/get_me200_response_buyer.rb +164 -0
- data/lib/growwer/models/get_me200_response_catalogue.rb +165 -0
- data/lib/growwer/models/get_me200_response_managed_service.rb +165 -0
- data/lib/growwer/models/get_me200_response_seller.rb +231 -0
- data/lib/growwer/models/get_seller_wallet200_response.rb +191 -0
- data/lib/growwer/models/get_vocabulary200_response.rb +311 -0
- data/lib/growwer/models/get_vocabulary200_response_topics_inner.rb +190 -0
- data/lib/growwer/models/invoice.rb +243 -0
- data/lib/growwer/models/link_addition_order_briefing.rb +204 -0
- data/lib/growwer/models/link_addition_order_briefing_request.rb +201 -0
- data/lib/growwer/models/list_buyer_transactions200_response.rb +192 -0
- data/lib/growwer/models/list_flash_offers200_response.rb +192 -0
- data/lib/growwer/models/list_invoices200_response.rb +192 -0
- data/lib/growwer/models/list_managed_service_campaigns200_response.rb +192 -0
- data/lib/growwer/models/list_managed_service_proposals200_response.rb +192 -0
- data/lib/growwer/models/list_orders200_response.rb +192 -0
- data/lib/growwer/models/list_projects200_response.rb +192 -0
- data/lib/growwer/models/list_saved_filters200_response.rb +192 -0
- data/lib/growwer/models/list_seller_medias200_response.rb +192 -0
- data/lib/growwer/models/list_seller_orders200_response.rb +192 -0
- data/lib/growwer/models/list_seller_transactions200_response.rb +192 -0
- data/lib/growwer/models/list_withdrawals200_response.rb +192 -0
- data/lib/growwer/models/managed_service_campaign.rb +451 -0
- data/lib/growwer/models/managed_service_campaign_project.rb +190 -0
- data/lib/growwer/models/managed_service_campaign_proposal_counts.rb +269 -0
- data/lib/growwer/models/managed_service_campaign_strategy.rb +300 -0
- data/lib/growwer/models/managed_service_proposal.rb +428 -0
- data/lib/growwer/models/managed_service_proposal_briefing.rb +244 -0
- data/lib/growwer/models/managed_service_proposal_briefing_links_inner.rb +226 -0
- data/lib/growwer/models/managed_service_proposal_media.rb +214 -0
- data/lib/growwer/models/managed_service_proposal_review.rb +193 -0
- data/lib/growwer/models/managed_service_proposal_review_request.rb +176 -0
- data/lib/growwer/models/managed_service_proposal_review_request_reviews_inner.rb +240 -0
- data/lib/growwer/models/managed_service_proposals_estimate.rb +300 -0
- data/lib/growwer/models/managed_service_proposals_estimate_request.rb +150 -0
- data/lib/growwer/models/managed_service_request.rb +331 -0
- data/lib/growwer/models/managed_service_request_sent.rb +188 -0
- data/lib/growwer/models/money.rb +192 -0
- data/lib/growwer/models/money_or_null.rb +192 -0
- data/lib/growwer/models/order.rb +541 -0
- data/lib/growwer/models/order_action_reason.rb +183 -0
- data/lib/growwer/models/order_briefing.rb +102 -0
- data/lib/growwer/models/order_channel.rb +189 -0
- data/lib/growwer/models/order_create_request.rb +333 -0
- data/lib/growwer/models/order_delivery.rb +179 -0
- data/lib/growwer/models/order_draft.rb +220 -0
- data/lib/growwer/models/order_estimate.rb +246 -0
- data/lib/growwer/models/order_estimate_request.rb +299 -0
- data/lib/growwer/models/order_estimate_request_briefing.rb +102 -0
- data/lib/growwer/models/order_link.rb +214 -0
- data/lib/growwer/models/order_link_request.rb +209 -0
- data/lib/growwer/models/order_media.rb +178 -0
- data/lib/growwer/models/order_project.rb +178 -0
- data/lib/growwer/models/order_state_history_inner.rb +202 -0
- data/lib/growwer/models/order_state_history_inner_reason.rb +200 -0
- data/lib/growwer/models/post_order_briefing.rb +285 -0
- data/lib/growwer/models/post_order_briefing_request.rb +220 -0
- data/lib/growwer/models/project.rb +437 -0
- data/lib/growwer/models/project_catalogue_media.rb +524 -0
- data/lib/growwer/models/project_catalogue_media_all_of_project.rb +298 -0
- data/lib/growwer/models/put_seller_holiday200_response.rb +177 -0
- data/lib/growwer/models/put_seller_holiday_request.rb +174 -0
- data/lib/growwer/models/request_medias201_response.rb +166 -0
- data/lib/growwer/models/request_medias_request.rb +167 -0
- data/lib/growwer/models/saved_filter.rb +269 -0
- data/lib/growwer/models/saved_filter_notifications.rb +211 -0
- data/lib/growwer/models/seller_fees.rb +164 -0
- data/lib/growwer/models/seller_fees_or_null.rb +164 -0
- data/lib/growwer/models/seller_media.rb +573 -0
- data/lib/growwer/models/seller_media_flash_offer.rb +191 -0
- data/lib/growwer/models/seller_media_link_addition_offer.rb +167 -0
- data/lib/growwer/models/seller_media_link_addition_offer_pricing_options_inner.rb +228 -0
- data/lib/growwer/models/seller_media_post_offer.rb +195 -0
- data/lib/growwer/models/seller_media_post_offer_pricing_options_inner.rb +234 -0
- data/lib/growwer/models/seller_order.rb +563 -0
- data/lib/growwer/models/seller_order_briefing.rb +102 -0
- data/lib/growwer/models/seller_order_channel.rb +214 -0
- data/lib/growwer/models/seller_order_draft.rb +193 -0
- data/lib/growwer/models/seller_order_draft_file.rb +165 -0
- data/lib/growwer/models/seller_order_post_delivery.rb +193 -0
- data/lib/growwer/models/seller_order_project.rb +165 -0
- data/lib/growwer/models/seller_order_refutation.rb +183 -0
- data/lib/growwer/models/seller_order_rejection.rb +164 -0
- data/lib/growwer/models/seller_order_rejection_reason.rb +224 -0
- data/lib/growwer/models/seller_post_order_briefing.rb +314 -0
- data/lib/growwer/models/seller_transaction.rb +415 -0
- data/lib/growwer/models/transaction.rb +427 -0
- data/lib/growwer/models/update_project_request.rb +339 -0
- data/lib/growwer/models/update_seller_media_request.rb +168 -0
- data/lib/growwer/models/update_seller_media_request_extra_services_inner.rb +215 -0
- data/lib/growwer/models/update_seller_media_request_link_addition_offer.rb +166 -0
- data/lib/growwer/models/update_seller_media_request_link_addition_offer_pricing_options_inner.rb +215 -0
- data/lib/growwer/models/update_seller_media_request_post_offer.rb +175 -0
- data/lib/growwer/models/update_seller_media_request_post_offer_pricing_options_inner.rb +210 -0
- data/lib/growwer/models/upload_file201_response.rb +244 -0
- data/lib/growwer/models/withdrawal.rb +322 -0
- data/lib/growwer/version.rb +15 -0
- data/lib/growwer.rb +163 -0
- data/spec/api/account_api_spec.rb +70 -0
- data/spec/api/buyer_money_api_spec.rb +96 -0
- data/spec/api/catalogue_api_spec.rb +213 -0
- data/spec/api/files_api_spec.rb +48 -0
- data/spec/api/managed_services_api_spec.rb +140 -0
- data/spec/api/orders_api_spec.rb +182 -0
- data/spec/api/projects_api_spec.rb +100 -0
- data/spec/api/saved_filters_api_spec.rb +88 -0
- data/spec/api/seller_medias_api_spec.rb +89 -0
- data/spec/api/seller_money_api_spec.rb +97 -0
- data/spec/api/seller_orders_api_spec.rb +199 -0
- data/spec/models/balance_spec.rb +42 -0
- data/spec/models/catalogue_media_flash_offer_spec.rb +42 -0
- data/spec/models/catalogue_media_metrics_spec.rb +60 -0
- data/spec/models/catalogue_media_spec.rb +124 -0
- data/spec/models/catalogue_offer_or_null_spec.rb +58 -0
- data/spec/models/catalogue_offer_spec.rb +58 -0
- data/spec/models/catalogue_post_offer_all_of_extras_sensitive_topic_spec.rb +42 -0
- data/spec/models/catalogue_post_offer_all_of_extras_spec.rb +42 -0
- data/spec/models/catalogue_post_offer_spec.rb +80 -0
- data/spec/models/code_name_spec.rb +42 -0
- data/spec/models/count_saved_filter_medias200_response_spec.rb +36 -0
- data/spec/models/create_project_request_spec.rb +82 -0
- data/spec/models/create_saved_filter_request_spec.rb +52 -0
- data/spec/models/error_spec.rb +54 -0
- data/spec/models/get_buyer_wallet200_response_spec.rb +42 -0
- data/spec/models/get_me200_response_buyer_spec.rb +36 -0
- data/spec/models/get_me200_response_catalogue_spec.rb +36 -0
- data/spec/models/get_me200_response_managed_service_spec.rb +36 -0
- data/spec/models/get_me200_response_seller_spec.rb +54 -0
- data/spec/models/get_me200_response_spec.rb +84 -0
- data/spec/models/get_seller_wallet200_response_spec.rb +42 -0
- data/spec/models/get_vocabulary200_response_spec.rb +74 -0
- data/spec/models/get_vocabulary200_response_topics_inner_spec.rb +42 -0
- data/spec/models/invoice_spec.rb +54 -0
- data/spec/models/link_addition_order_briefing_request_spec.rb +48 -0
- data/spec/models/link_addition_order_briefing_spec.rb +48 -0
- data/spec/models/list_buyer_transactions200_response_spec.rb +42 -0
- data/spec/models/list_flash_offers200_response_spec.rb +42 -0
- data/spec/models/list_invoices200_response_spec.rb +42 -0
- data/spec/models/list_managed_service_campaigns200_response_spec.rb +42 -0
- data/spec/models/list_managed_service_proposals200_response_spec.rb +42 -0
- data/spec/models/list_orders200_response_spec.rb +42 -0
- data/spec/models/list_projects200_response_spec.rb +42 -0
- data/spec/models/list_saved_filters200_response_spec.rb +42 -0
- data/spec/models/list_seller_medias200_response_spec.rb +42 -0
- data/spec/models/list_seller_orders200_response_spec.rb +42 -0
- data/spec/models/list_seller_transactions200_response_spec.rb +42 -0
- data/spec/models/list_withdrawals200_response_spec.rb +42 -0
- data/spec/models/managed_service_campaign_project_spec.rb +42 -0
- data/spec/models/managed_service_campaign_proposal_counts_spec.rb +60 -0
- data/spec/models/managed_service_campaign_spec.rb +106 -0
- data/spec/models/managed_service_campaign_strategy_spec.rb +64 -0
- data/spec/models/managed_service_proposal_briefing_links_inner_spec.rb +52 -0
- data/spec/models/managed_service_proposal_briefing_spec.rb +54 -0
- data/spec/models/managed_service_proposal_media_spec.rb +54 -0
- data/spec/models/managed_service_proposal_review_request_reviews_inner_spec.rb +52 -0
- data/spec/models/managed_service_proposal_review_request_spec.rb +36 -0
- data/spec/models/managed_service_proposal_review_spec.rb +42 -0
- data/spec/models/managed_service_proposal_spec.rb +110 -0
- data/spec/models/managed_service_proposals_estimate_request_spec.rb +36 -0
- data/spec/models/managed_service_proposals_estimate_spec.rb +66 -0
- data/spec/models/managed_service_request_sent_spec.rb +40 -0
- data/spec/models/managed_service_request_spec.rb +74 -0
- data/spec/models/money_or_null_spec.rb +42 -0
- data/spec/models/money_spec.rb +42 -0
- data/spec/models/order_action_reason_spec.rb +36 -0
- data/spec/models/order_briefing_spec.rb +32 -0
- data/spec/models/order_channel_spec.rb +40 -0
- data/spec/models/order_create_request_spec.rb +82 -0
- data/spec/models/order_delivery_spec.rb +42 -0
- data/spec/models/order_draft_spec.rb +48 -0
- data/spec/models/order_estimate_request_briefing_spec.rb +32 -0
- data/spec/models/order_estimate_request_spec.rb +76 -0
- data/spec/models/order_estimate_spec.rb +54 -0
- data/spec/models/order_link_request_spec.rb +52 -0
- data/spec/models/order_link_spec.rb +52 -0
- data/spec/models/order_media_spec.rb +42 -0
- data/spec/models/order_project_spec.rb +42 -0
- data/spec/models/order_spec.rb +134 -0
- data/spec/models/order_state_history_inner_reason_spec.rb +46 -0
- data/spec/models/order_state_history_inner_spec.rb +48 -0
- data/spec/models/post_order_briefing_request_spec.rb +58 -0
- data/spec/models/post_order_briefing_spec.rb +70 -0
- data/spec/models/project_catalogue_media_all_of_project_spec.rb +66 -0
- data/spec/models/project_catalogue_media_spec.rb +130 -0
- data/spec/models/project_spec.rb +104 -0
- data/spec/models/put_seller_holiday200_response_spec.rb +42 -0
- data/spec/models/put_seller_holiday_request_spec.rb +42 -0
- data/spec/models/request_medias201_response_spec.rb +36 -0
- data/spec/models/request_medias_request_spec.rb +36 -0
- data/spec/models/saved_filter_notifications_spec.rb +46 -0
- data/spec/models/saved_filter_spec.rb +60 -0
- data/spec/models/seller_fees_or_null_spec.rb +42 -0
- data/spec/models/seller_fees_spec.rb +42 -0
- data/spec/models/seller_media_flash_offer_spec.rb +42 -0
- data/spec/models/seller_media_link_addition_offer_pricing_options_inner_spec.rb +52 -0
- data/spec/models/seller_media_link_addition_offer_spec.rb +36 -0
- data/spec/models/seller_media_post_offer_pricing_options_inner_spec.rb +58 -0
- data/spec/models/seller_media_post_offer_spec.rb +42 -0
- data/spec/models/seller_media_spec.rb +148 -0
- data/spec/models/seller_order_briefing_spec.rb +32 -0
- data/spec/models/seller_order_channel_spec.rb +50 -0
- data/spec/models/seller_order_draft_file_spec.rb +36 -0
- data/spec/models/seller_order_draft_spec.rb +42 -0
- data/spec/models/seller_order_post_delivery_spec.rb +42 -0
- data/spec/models/seller_order_project_spec.rb +36 -0
- data/spec/models/seller_order_refutation_spec.rb +36 -0
- data/spec/models/seller_order_rejection_reason_spec.rb +46 -0
- data/spec/models/seller_order_rejection_spec.rb +36 -0
- data/spec/models/seller_order_spec.rb +140 -0
- data/spec/models/seller_post_order_briefing_spec.rb +80 -0
- data/spec/models/seller_transaction_spec.rb +104 -0
- data/spec/models/transaction_spec.rb +110 -0
- data/spec/models/update_project_request_spec.rb +76 -0
- data/spec/models/update_seller_media_request_extra_services_inner_spec.rb +46 -0
- data/spec/models/update_seller_media_request_link_addition_offer_pricing_options_inner_spec.rb +46 -0
- data/spec/models/update_seller_media_request_link_addition_offer_spec.rb +36 -0
- data/spec/models/update_seller_media_request_post_offer_pricing_options_inner_spec.rb +52 -0
- data/spec/models/update_seller_media_request_post_offer_spec.rb +36 -0
- data/spec/models/update_seller_media_request_spec.rb +48 -0
- data/spec/models/upload_file201_response_spec.rb +54 -0
- data/spec/models/withdrawal_spec.rb +74 -0
- data/spec/spec_helper.rb +111 -0
- metadata +618 -0
|
@@ -0,0 +1,893 @@
|
|
|
1
|
+
# Growwer::SellerOrdersApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://tool.growwer.com*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**accept_seller_order**](SellerOrdersApi.md#accept_seller_order) | **POST** /api/v1/seller/orders/{id}/accept | Accept an order |
|
|
8
|
+
| [**deliver_seller_order**](SellerOrdersApi.md#deliver_seller_order) | **POST** /api/v1/seller/orders/{id}/deliver | Deliver an order |
|
|
9
|
+
| [**deliver_seller_order_draft**](SellerOrdersApi.md#deliver_seller_order_draft) | **POST** /api/v1/seller/orders/{id}/deliver-draft | Deliver a draft |
|
|
10
|
+
| [**deliver_seller_order_draft_update**](SellerOrdersApi.md#deliver_seller_order_draft_update) | **POST** /api/v1/seller/orders/{id}/deliver-draft-update | Deliver a draft update |
|
|
11
|
+
| [**deliver_seller_order_update**](SellerOrdersApi.md#deliver_seller_order_update) | **POST** /api/v1/seller/orders/{id}/deliver-update | Deliver an update |
|
|
12
|
+
| [**download_seller_order_briefing**](SellerOrdersApi.md#download_seller_order_briefing) | **GET** /api/v1/seller/orders/{id}/briefing | Download the draft the buyer attached to an order |
|
|
13
|
+
| [**download_seller_order_draft**](SellerOrdersApi.md#download_seller_order_draft) | **GET** /api/v1/seller/orders/{id}/draft | Download the draft of an order you sell |
|
|
14
|
+
| [**get_seller_order**](SellerOrdersApi.md#get_seller_order) | **GET** /api/v1/seller/orders/{id} | Get an order you sell |
|
|
15
|
+
| [**list_seller_orders**](SellerOrdersApi.md#list_seller_orders) | **GET** /api/v1/seller/orders | List the orders you sell |
|
|
16
|
+
| [**refute_seller_order_draft_update**](SellerOrdersApi.md#refute_seller_order_draft_update) | **POST** /api/v1/seller/orders/{id}/refute-draft-update | Refuse a draft update |
|
|
17
|
+
| [**refute_seller_order_update**](SellerOrdersApi.md#refute_seller_order_update) | **POST** /api/v1/seller/orders/{id}/refute-update | Refuse an update |
|
|
18
|
+
| [**reject_seller_order**](SellerOrdersApi.md#reject_seller_order) | **POST** /api/v1/seller/orders/{id}/reject | Reject an order |
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
## accept_seller_order
|
|
22
|
+
|
|
23
|
+
> <SellerOrder> accept_seller_order(id, idempotency_key)
|
|
24
|
+
|
|
25
|
+
Accept an order
|
|
26
|
+
|
|
27
|
+
Accepts an order placed on one of your medias (`state` `pending_acceptance`), as the web does. A post order whose draft is still to be written (by you or by Growwer) moves to `pending_draft`; any other order moves to `pending_order_delivery`. The buyer is told. Takes no body.
|
|
28
|
+
|
|
29
|
+
### Examples
|
|
30
|
+
|
|
31
|
+
```ruby
|
|
32
|
+
require 'time'
|
|
33
|
+
require 'growwer'
|
|
34
|
+
# setup authorization
|
|
35
|
+
Growwer.configure do |config|
|
|
36
|
+
# Configure Bearer authorization: apiKey
|
|
37
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
41
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
42
|
+
idempotency_key = 'idempotency_key_example' # String | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
43
|
+
|
|
44
|
+
begin
|
|
45
|
+
# Accept an order
|
|
46
|
+
result = api_instance.accept_seller_order(id, idempotency_key)
|
|
47
|
+
p result
|
|
48
|
+
rescue Growwer::ApiError => e
|
|
49
|
+
puts "Error when calling SellerOrdersApi->accept_seller_order: #{e}"
|
|
50
|
+
end
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
#### Using the accept_seller_order_with_http_info variant
|
|
54
|
+
|
|
55
|
+
This returns an Array which contains the response data, status code and headers.
|
|
56
|
+
|
|
57
|
+
> <Array(<SellerOrder>, Integer, Hash)> accept_seller_order_with_http_info(id, idempotency_key)
|
|
58
|
+
|
|
59
|
+
```ruby
|
|
60
|
+
begin
|
|
61
|
+
# Accept an order
|
|
62
|
+
data, status_code, headers = api_instance.accept_seller_order_with_http_info(id, idempotency_key)
|
|
63
|
+
p status_code # => 2xx
|
|
64
|
+
p headers # => { ... }
|
|
65
|
+
p data # => <SellerOrder>
|
|
66
|
+
rescue Growwer::ApiError => e
|
|
67
|
+
puts "Error when calling SellerOrdersApi->accept_seller_order_with_http_info: #{e}"
|
|
68
|
+
end
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Parameters
|
|
72
|
+
|
|
73
|
+
| Name | Type | Description | Notes |
|
|
74
|
+
| ---- | ---- | ----------- | ----- |
|
|
75
|
+
| **id** | **String** | | |
|
|
76
|
+
| **idempotency_key** | **String** | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`. | |
|
|
77
|
+
|
|
78
|
+
### Return type
|
|
79
|
+
|
|
80
|
+
[**SellerOrder**](SellerOrder.md)
|
|
81
|
+
|
|
82
|
+
### Authorization
|
|
83
|
+
|
|
84
|
+
[apiKey](../README.md#apiKey)
|
|
85
|
+
|
|
86
|
+
### HTTP request headers
|
|
87
|
+
|
|
88
|
+
- **Content-Type**: Not defined
|
|
89
|
+
- **Accept**: application/json
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
## deliver_seller_order
|
|
93
|
+
|
|
94
|
+
> <SellerOrder> deliver_seller_order(id, idempotency_key, opts)
|
|
95
|
+
|
|
96
|
+
Deliver an order
|
|
97
|
+
|
|
98
|
+
Delivers an order placed on one of your medias (`state` `pending_order_delivery`), as the web does. A post order takes the URL of the published post and the confirmation of its publication date; a link addition order takes no body, and any field is refused. The order moves to `pending_order_delivery_review` and the buyer is asked to review it, or, for a post order whose scheduled publication date is still to come, to `scheduled` without telling the buyer yet. The URL is checked to be a URL only, as the web does.
|
|
99
|
+
|
|
100
|
+
### Examples
|
|
101
|
+
|
|
102
|
+
```ruby
|
|
103
|
+
require 'time'
|
|
104
|
+
require 'growwer'
|
|
105
|
+
# setup authorization
|
|
106
|
+
Growwer.configure do |config|
|
|
107
|
+
# Configure Bearer authorization: apiKey
|
|
108
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
112
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
113
|
+
idempotency_key = 'idempotency_key_example' # String | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
114
|
+
opts = {
|
|
115
|
+
seller_order_post_delivery: Growwer::SellerOrderPostDelivery.new({url: 'url_example', publication_date_confirmed: false}) # SellerOrderPostDelivery |
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
begin
|
|
119
|
+
# Deliver an order
|
|
120
|
+
result = api_instance.deliver_seller_order(id, idempotency_key, opts)
|
|
121
|
+
p result
|
|
122
|
+
rescue Growwer::ApiError => e
|
|
123
|
+
puts "Error when calling SellerOrdersApi->deliver_seller_order: #{e}"
|
|
124
|
+
end
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
#### Using the deliver_seller_order_with_http_info variant
|
|
128
|
+
|
|
129
|
+
This returns an Array which contains the response data, status code and headers.
|
|
130
|
+
|
|
131
|
+
> <Array(<SellerOrder>, Integer, Hash)> deliver_seller_order_with_http_info(id, idempotency_key, opts)
|
|
132
|
+
|
|
133
|
+
```ruby
|
|
134
|
+
begin
|
|
135
|
+
# Deliver an order
|
|
136
|
+
data, status_code, headers = api_instance.deliver_seller_order_with_http_info(id, idempotency_key, opts)
|
|
137
|
+
p status_code # => 2xx
|
|
138
|
+
p headers # => { ... }
|
|
139
|
+
p data # => <SellerOrder>
|
|
140
|
+
rescue Growwer::ApiError => e
|
|
141
|
+
puts "Error when calling SellerOrdersApi->deliver_seller_order_with_http_info: #{e}"
|
|
142
|
+
end
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
### Parameters
|
|
146
|
+
|
|
147
|
+
| Name | Type | Description | Notes |
|
|
148
|
+
| ---- | ---- | ----------- | ----- |
|
|
149
|
+
| **id** | **String** | | |
|
|
150
|
+
| **idempotency_key** | **String** | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`. | |
|
|
151
|
+
| **seller_order_post_delivery** | [**SellerOrderPostDelivery**](SellerOrderPostDelivery.md) | | [optional] |
|
|
152
|
+
|
|
153
|
+
### Return type
|
|
154
|
+
|
|
155
|
+
[**SellerOrder**](SellerOrder.md)
|
|
156
|
+
|
|
157
|
+
### Authorization
|
|
158
|
+
|
|
159
|
+
[apiKey](../README.md#apiKey)
|
|
160
|
+
|
|
161
|
+
### HTTP request headers
|
|
162
|
+
|
|
163
|
+
- **Content-Type**: application/json
|
|
164
|
+
- **Accept**: application/json
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
## deliver_seller_order_draft
|
|
168
|
+
|
|
169
|
+
> <SellerOrder> deliver_seller_order_draft(id, idempotency_key, seller_order_draft_file)
|
|
170
|
+
|
|
171
|
+
Deliver a draft
|
|
172
|
+
|
|
173
|
+
Delivers the draft of a post order placed on one of your medias whose draft you write (`state` `pending_draft`), as the web does, from a file you uploaded with POST /files. The order moves to `pending_draft_review` when the buyer reviews drafts, otherwise to `pending_order_delivery`. The file is used up once the draft is delivered; a refused request leaves it usable.
|
|
174
|
+
|
|
175
|
+
### Examples
|
|
176
|
+
|
|
177
|
+
```ruby
|
|
178
|
+
require 'time'
|
|
179
|
+
require 'growwer'
|
|
180
|
+
# setup authorization
|
|
181
|
+
Growwer.configure do |config|
|
|
182
|
+
# Configure Bearer authorization: apiKey
|
|
183
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
187
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
188
|
+
idempotency_key = 'idempotency_key_example' # String | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
189
|
+
seller_order_draft_file = Growwer::SellerOrderDraftFile.new({file_id: 'file_id_example'}) # SellerOrderDraftFile |
|
|
190
|
+
|
|
191
|
+
begin
|
|
192
|
+
# Deliver a draft
|
|
193
|
+
result = api_instance.deliver_seller_order_draft(id, idempotency_key, seller_order_draft_file)
|
|
194
|
+
p result
|
|
195
|
+
rescue Growwer::ApiError => e
|
|
196
|
+
puts "Error when calling SellerOrdersApi->deliver_seller_order_draft: #{e}"
|
|
197
|
+
end
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
#### Using the deliver_seller_order_draft_with_http_info variant
|
|
201
|
+
|
|
202
|
+
This returns an Array which contains the response data, status code and headers.
|
|
203
|
+
|
|
204
|
+
> <Array(<SellerOrder>, Integer, Hash)> deliver_seller_order_draft_with_http_info(id, idempotency_key, seller_order_draft_file)
|
|
205
|
+
|
|
206
|
+
```ruby
|
|
207
|
+
begin
|
|
208
|
+
# Deliver a draft
|
|
209
|
+
data, status_code, headers = api_instance.deliver_seller_order_draft_with_http_info(id, idempotency_key, seller_order_draft_file)
|
|
210
|
+
p status_code # => 2xx
|
|
211
|
+
p headers # => { ... }
|
|
212
|
+
p data # => <SellerOrder>
|
|
213
|
+
rescue Growwer::ApiError => e
|
|
214
|
+
puts "Error when calling SellerOrdersApi->deliver_seller_order_draft_with_http_info: #{e}"
|
|
215
|
+
end
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### Parameters
|
|
219
|
+
|
|
220
|
+
| Name | Type | Description | Notes |
|
|
221
|
+
| ---- | ---- | ----------- | ----- |
|
|
222
|
+
| **id** | **String** | | |
|
|
223
|
+
| **idempotency_key** | **String** | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`. | |
|
|
224
|
+
| **seller_order_draft_file** | [**SellerOrderDraftFile**](SellerOrderDraftFile.md) | | |
|
|
225
|
+
|
|
226
|
+
### Return type
|
|
227
|
+
|
|
228
|
+
[**SellerOrder**](SellerOrder.md)
|
|
229
|
+
|
|
230
|
+
### Authorization
|
|
231
|
+
|
|
232
|
+
[apiKey](../README.md#apiKey)
|
|
233
|
+
|
|
234
|
+
### HTTP request headers
|
|
235
|
+
|
|
236
|
+
- **Content-Type**: application/json
|
|
237
|
+
- **Accept**: application/json
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
## deliver_seller_order_draft_update
|
|
241
|
+
|
|
242
|
+
> <SellerOrder> deliver_seller_order_draft_update(id, idempotency_key, seller_order_draft_file)
|
|
243
|
+
|
|
244
|
+
Deliver a draft update
|
|
245
|
+
|
|
246
|
+
Delivers the draft update the buyer asked for on a post order placed on one of your medias whose draft you write (`state` `pending_draft_update`), as the web does, from a file you uploaded with POST /files. The order moves back to `pending_draft_review`. The file is used up once the draft is delivered; a refused request leaves it usable.
|
|
247
|
+
|
|
248
|
+
### Examples
|
|
249
|
+
|
|
250
|
+
```ruby
|
|
251
|
+
require 'time'
|
|
252
|
+
require 'growwer'
|
|
253
|
+
# setup authorization
|
|
254
|
+
Growwer.configure do |config|
|
|
255
|
+
# Configure Bearer authorization: apiKey
|
|
256
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
260
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
261
|
+
idempotency_key = 'idempotency_key_example' # String | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
262
|
+
seller_order_draft_file = Growwer::SellerOrderDraftFile.new({file_id: 'file_id_example'}) # SellerOrderDraftFile |
|
|
263
|
+
|
|
264
|
+
begin
|
|
265
|
+
# Deliver a draft update
|
|
266
|
+
result = api_instance.deliver_seller_order_draft_update(id, idempotency_key, seller_order_draft_file)
|
|
267
|
+
p result
|
|
268
|
+
rescue Growwer::ApiError => e
|
|
269
|
+
puts "Error when calling SellerOrdersApi->deliver_seller_order_draft_update: #{e}"
|
|
270
|
+
end
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
#### Using the deliver_seller_order_draft_update_with_http_info variant
|
|
274
|
+
|
|
275
|
+
This returns an Array which contains the response data, status code and headers.
|
|
276
|
+
|
|
277
|
+
> <Array(<SellerOrder>, Integer, Hash)> deliver_seller_order_draft_update_with_http_info(id, idempotency_key, seller_order_draft_file)
|
|
278
|
+
|
|
279
|
+
```ruby
|
|
280
|
+
begin
|
|
281
|
+
# Deliver a draft update
|
|
282
|
+
data, status_code, headers = api_instance.deliver_seller_order_draft_update_with_http_info(id, idempotency_key, seller_order_draft_file)
|
|
283
|
+
p status_code # => 2xx
|
|
284
|
+
p headers # => { ... }
|
|
285
|
+
p data # => <SellerOrder>
|
|
286
|
+
rescue Growwer::ApiError => e
|
|
287
|
+
puts "Error when calling SellerOrdersApi->deliver_seller_order_draft_update_with_http_info: #{e}"
|
|
288
|
+
end
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
### Parameters
|
|
292
|
+
|
|
293
|
+
| Name | Type | Description | Notes |
|
|
294
|
+
| ---- | ---- | ----------- | ----- |
|
|
295
|
+
| **id** | **String** | | |
|
|
296
|
+
| **idempotency_key** | **String** | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`. | |
|
|
297
|
+
| **seller_order_draft_file** | [**SellerOrderDraftFile**](SellerOrderDraftFile.md) | | |
|
|
298
|
+
|
|
299
|
+
### Return type
|
|
300
|
+
|
|
301
|
+
[**SellerOrder**](SellerOrder.md)
|
|
302
|
+
|
|
303
|
+
### Authorization
|
|
304
|
+
|
|
305
|
+
[apiKey](../README.md#apiKey)
|
|
306
|
+
|
|
307
|
+
### HTTP request headers
|
|
308
|
+
|
|
309
|
+
- **Content-Type**: application/json
|
|
310
|
+
- **Accept**: application/json
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
## deliver_seller_order_update
|
|
314
|
+
|
|
315
|
+
> <SellerOrder> deliver_seller_order_update(id, idempotency_key, opts)
|
|
316
|
+
|
|
317
|
+
Deliver an update
|
|
318
|
+
|
|
319
|
+
Delivers the update the buyer asked for on an order placed on one of your medias (`state` `pending_order_delivery_update`), as the web does. A post order takes the URL of the published post, which may be the same as before, and the confirmation of its publication date; both must be sent. A link addition order takes no body, and any field is refused. The order moves back to `pending_order_delivery_review` and the buyer is asked to review it.
|
|
320
|
+
|
|
321
|
+
### Examples
|
|
322
|
+
|
|
323
|
+
```ruby
|
|
324
|
+
require 'time'
|
|
325
|
+
require 'growwer'
|
|
326
|
+
# setup authorization
|
|
327
|
+
Growwer.configure do |config|
|
|
328
|
+
# Configure Bearer authorization: apiKey
|
|
329
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
333
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
334
|
+
idempotency_key = 'idempotency_key_example' # String | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
335
|
+
opts = {
|
|
336
|
+
seller_order_post_delivery: Growwer::SellerOrderPostDelivery.new({url: 'url_example', publication_date_confirmed: false}) # SellerOrderPostDelivery |
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
begin
|
|
340
|
+
# Deliver an update
|
|
341
|
+
result = api_instance.deliver_seller_order_update(id, idempotency_key, opts)
|
|
342
|
+
p result
|
|
343
|
+
rescue Growwer::ApiError => e
|
|
344
|
+
puts "Error when calling SellerOrdersApi->deliver_seller_order_update: #{e}"
|
|
345
|
+
end
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
#### Using the deliver_seller_order_update_with_http_info variant
|
|
349
|
+
|
|
350
|
+
This returns an Array which contains the response data, status code and headers.
|
|
351
|
+
|
|
352
|
+
> <Array(<SellerOrder>, Integer, Hash)> deliver_seller_order_update_with_http_info(id, idempotency_key, opts)
|
|
353
|
+
|
|
354
|
+
```ruby
|
|
355
|
+
begin
|
|
356
|
+
# Deliver an update
|
|
357
|
+
data, status_code, headers = api_instance.deliver_seller_order_update_with_http_info(id, idempotency_key, opts)
|
|
358
|
+
p status_code # => 2xx
|
|
359
|
+
p headers # => { ... }
|
|
360
|
+
p data # => <SellerOrder>
|
|
361
|
+
rescue Growwer::ApiError => e
|
|
362
|
+
puts "Error when calling SellerOrdersApi->deliver_seller_order_update_with_http_info: #{e}"
|
|
363
|
+
end
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
### Parameters
|
|
367
|
+
|
|
368
|
+
| Name | Type | Description | Notes |
|
|
369
|
+
| ---- | ---- | ----------- | ----- |
|
|
370
|
+
| **id** | **String** | | |
|
|
371
|
+
| **idempotency_key** | **String** | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`. | |
|
|
372
|
+
| **seller_order_post_delivery** | [**SellerOrderPostDelivery**](SellerOrderPostDelivery.md) | | [optional] |
|
|
373
|
+
|
|
374
|
+
### Return type
|
|
375
|
+
|
|
376
|
+
[**SellerOrder**](SellerOrder.md)
|
|
377
|
+
|
|
378
|
+
### Authorization
|
|
379
|
+
|
|
380
|
+
[apiKey](../README.md#apiKey)
|
|
381
|
+
|
|
382
|
+
### HTTP request headers
|
|
383
|
+
|
|
384
|
+
- **Content-Type**: application/json
|
|
385
|
+
- **Accept**: application/json
|
|
386
|
+
|
|
387
|
+
|
|
388
|
+
## download_seller_order_briefing
|
|
389
|
+
|
|
390
|
+
> File download_seller_order_briefing(id)
|
|
391
|
+
|
|
392
|
+
Download the draft the buyer attached to an order
|
|
393
|
+
|
|
394
|
+
The file the buyer attached to the briefing of a post order you sell. 404 when the order has none (`briefing.hasProposedDraft` is false) or the file cannot be read.
|
|
395
|
+
|
|
396
|
+
### Examples
|
|
397
|
+
|
|
398
|
+
```ruby
|
|
399
|
+
require 'time'
|
|
400
|
+
require 'growwer'
|
|
401
|
+
# setup authorization
|
|
402
|
+
Growwer.configure do |config|
|
|
403
|
+
# Configure Bearer authorization: apiKey
|
|
404
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
408
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
409
|
+
|
|
410
|
+
begin
|
|
411
|
+
# Download the draft the buyer attached to an order
|
|
412
|
+
result = api_instance.download_seller_order_briefing(id)
|
|
413
|
+
p result
|
|
414
|
+
rescue Growwer::ApiError => e
|
|
415
|
+
puts "Error when calling SellerOrdersApi->download_seller_order_briefing: #{e}"
|
|
416
|
+
end
|
|
417
|
+
```
|
|
418
|
+
|
|
419
|
+
#### Using the download_seller_order_briefing_with_http_info variant
|
|
420
|
+
|
|
421
|
+
This returns an Array which contains the response data, status code and headers.
|
|
422
|
+
|
|
423
|
+
> <Array(File, Integer, Hash)> download_seller_order_briefing_with_http_info(id)
|
|
424
|
+
|
|
425
|
+
```ruby
|
|
426
|
+
begin
|
|
427
|
+
# Download the draft the buyer attached to an order
|
|
428
|
+
data, status_code, headers = api_instance.download_seller_order_briefing_with_http_info(id)
|
|
429
|
+
p status_code # => 2xx
|
|
430
|
+
p headers # => { ... }
|
|
431
|
+
p data # => File
|
|
432
|
+
rescue Growwer::ApiError => e
|
|
433
|
+
puts "Error when calling SellerOrdersApi->download_seller_order_briefing_with_http_info: #{e}"
|
|
434
|
+
end
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
### Parameters
|
|
438
|
+
|
|
439
|
+
| Name | Type | Description | Notes |
|
|
440
|
+
| ---- | ---- | ----------- | ----- |
|
|
441
|
+
| **id** | **String** | | |
|
|
442
|
+
|
|
443
|
+
### Return type
|
|
444
|
+
|
|
445
|
+
**File**
|
|
446
|
+
|
|
447
|
+
### Authorization
|
|
448
|
+
|
|
449
|
+
[apiKey](../README.md#apiKey)
|
|
450
|
+
|
|
451
|
+
### HTTP request headers
|
|
452
|
+
|
|
453
|
+
- **Content-Type**: Not defined
|
|
454
|
+
- **Accept**: application/octet-stream, application/json
|
|
455
|
+
|
|
456
|
+
|
|
457
|
+
## download_seller_order_draft
|
|
458
|
+
|
|
459
|
+
> File download_seller_order_draft(id)
|
|
460
|
+
|
|
461
|
+
Download the draft of an order you sell
|
|
462
|
+
|
|
463
|
+
The file of the current draft of a post order you sell. 404 when the order has no draft file (`draft.hasFile` is false) or the file cannot be read. Earlier drafts are not available.
|
|
464
|
+
|
|
465
|
+
### Examples
|
|
466
|
+
|
|
467
|
+
```ruby
|
|
468
|
+
require 'time'
|
|
469
|
+
require 'growwer'
|
|
470
|
+
# setup authorization
|
|
471
|
+
Growwer.configure do |config|
|
|
472
|
+
# Configure Bearer authorization: apiKey
|
|
473
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
474
|
+
end
|
|
475
|
+
|
|
476
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
477
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
478
|
+
|
|
479
|
+
begin
|
|
480
|
+
# Download the draft of an order you sell
|
|
481
|
+
result = api_instance.download_seller_order_draft(id)
|
|
482
|
+
p result
|
|
483
|
+
rescue Growwer::ApiError => e
|
|
484
|
+
puts "Error when calling SellerOrdersApi->download_seller_order_draft: #{e}"
|
|
485
|
+
end
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
#### Using the download_seller_order_draft_with_http_info variant
|
|
489
|
+
|
|
490
|
+
This returns an Array which contains the response data, status code and headers.
|
|
491
|
+
|
|
492
|
+
> <Array(File, Integer, Hash)> download_seller_order_draft_with_http_info(id)
|
|
493
|
+
|
|
494
|
+
```ruby
|
|
495
|
+
begin
|
|
496
|
+
# Download the draft of an order you sell
|
|
497
|
+
data, status_code, headers = api_instance.download_seller_order_draft_with_http_info(id)
|
|
498
|
+
p status_code # => 2xx
|
|
499
|
+
p headers # => { ... }
|
|
500
|
+
p data # => File
|
|
501
|
+
rescue Growwer::ApiError => e
|
|
502
|
+
puts "Error when calling SellerOrdersApi->download_seller_order_draft_with_http_info: #{e}"
|
|
503
|
+
end
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
### Parameters
|
|
507
|
+
|
|
508
|
+
| Name | Type | Description | Notes |
|
|
509
|
+
| ---- | ---- | ----------- | ----- |
|
|
510
|
+
| **id** | **String** | | |
|
|
511
|
+
|
|
512
|
+
### Return type
|
|
513
|
+
|
|
514
|
+
**File**
|
|
515
|
+
|
|
516
|
+
### Authorization
|
|
517
|
+
|
|
518
|
+
[apiKey](../README.md#apiKey)
|
|
519
|
+
|
|
520
|
+
### HTTP request headers
|
|
521
|
+
|
|
522
|
+
- **Content-Type**: Not defined
|
|
523
|
+
- **Accept**: application/octet-stream, application/json
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
## get_seller_order
|
|
527
|
+
|
|
528
|
+
> <SellerOrder> get_seller_order(id)
|
|
529
|
+
|
|
530
|
+
Get an order you sell
|
|
531
|
+
|
|
532
|
+
One order placed on one of your medias, with its briefing, its draft and its state history. An order you only bought is not found here; it is under GET /orders/{id}.
|
|
533
|
+
|
|
534
|
+
### Examples
|
|
535
|
+
|
|
536
|
+
```ruby
|
|
537
|
+
require 'time'
|
|
538
|
+
require 'growwer'
|
|
539
|
+
# setup authorization
|
|
540
|
+
Growwer.configure do |config|
|
|
541
|
+
# Configure Bearer authorization: apiKey
|
|
542
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
546
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
547
|
+
|
|
548
|
+
begin
|
|
549
|
+
# Get an order you sell
|
|
550
|
+
result = api_instance.get_seller_order(id)
|
|
551
|
+
p result
|
|
552
|
+
rescue Growwer::ApiError => e
|
|
553
|
+
puts "Error when calling SellerOrdersApi->get_seller_order: #{e}"
|
|
554
|
+
end
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
#### Using the get_seller_order_with_http_info variant
|
|
558
|
+
|
|
559
|
+
This returns an Array which contains the response data, status code and headers.
|
|
560
|
+
|
|
561
|
+
> <Array(<SellerOrder>, Integer, Hash)> get_seller_order_with_http_info(id)
|
|
562
|
+
|
|
563
|
+
```ruby
|
|
564
|
+
begin
|
|
565
|
+
# Get an order you sell
|
|
566
|
+
data, status_code, headers = api_instance.get_seller_order_with_http_info(id)
|
|
567
|
+
p status_code # => 2xx
|
|
568
|
+
p headers # => { ... }
|
|
569
|
+
p data # => <SellerOrder>
|
|
570
|
+
rescue Growwer::ApiError => e
|
|
571
|
+
puts "Error when calling SellerOrdersApi->get_seller_order_with_http_info: #{e}"
|
|
572
|
+
end
|
|
573
|
+
```
|
|
574
|
+
|
|
575
|
+
### Parameters
|
|
576
|
+
|
|
577
|
+
| Name | Type | Description | Notes |
|
|
578
|
+
| ---- | ---- | ----------- | ----- |
|
|
579
|
+
| **id** | **String** | | |
|
|
580
|
+
|
|
581
|
+
### Return type
|
|
582
|
+
|
|
583
|
+
[**SellerOrder**](SellerOrder.md)
|
|
584
|
+
|
|
585
|
+
### Authorization
|
|
586
|
+
|
|
587
|
+
[apiKey](../README.md#apiKey)
|
|
588
|
+
|
|
589
|
+
### HTTP request headers
|
|
590
|
+
|
|
591
|
+
- **Content-Type**: Not defined
|
|
592
|
+
- **Accept**: application/json
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
## list_seller_orders
|
|
596
|
+
|
|
597
|
+
> <ListSellerOrders200Response> list_seller_orders(opts)
|
|
598
|
+
|
|
599
|
+
List the orders you sell
|
|
600
|
+
|
|
601
|
+
The orders placed on your medias, newest first by default. To follow them, poll with `sort=updatedAt` and `updatedSince` set to the `updatedAt` of the last order you saw: an order moves to the end of that list each time it changes state. The orders you bought are under GET /orders.
|
|
602
|
+
|
|
603
|
+
### Examples
|
|
604
|
+
|
|
605
|
+
```ruby
|
|
606
|
+
require 'time'
|
|
607
|
+
require 'growwer'
|
|
608
|
+
# setup authorization
|
|
609
|
+
Growwer.configure do |config|
|
|
610
|
+
# Configure Bearer authorization: apiKey
|
|
611
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
612
|
+
end
|
|
613
|
+
|
|
614
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
615
|
+
opts = {
|
|
616
|
+
media_id: '38400000-8cf0-11bd-b23e-10b96e4ef00d', # String | Only the orders on this media of yours.
|
|
617
|
+
state: 'pending_acceptance,pending_order_delivery', # String | Only the orders in one of these states, comma-separated. An unknown state is refused with 422 and the list of valid ones.
|
|
618
|
+
updated_since: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Only the orders whose `updatedAt` is at or after this instant, an ISO-8601 date-time with its offset (send `+` as `%2B`).
|
|
619
|
+
sort: '-createdAt', # String | `-createdAt`, newest first, or `updatedAt`, least recently changed first. Orders of the same instant come in id order.
|
|
620
|
+
limit: 56, # Integer | Orders per page, 1 to 100.
|
|
621
|
+
offset: 56 # Integer | Orders to skip.
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
begin
|
|
625
|
+
# List the orders you sell
|
|
626
|
+
result = api_instance.list_seller_orders(opts)
|
|
627
|
+
p result
|
|
628
|
+
rescue Growwer::ApiError => e
|
|
629
|
+
puts "Error when calling SellerOrdersApi->list_seller_orders: #{e}"
|
|
630
|
+
end
|
|
631
|
+
```
|
|
632
|
+
|
|
633
|
+
#### Using the list_seller_orders_with_http_info variant
|
|
634
|
+
|
|
635
|
+
This returns an Array which contains the response data, status code and headers.
|
|
636
|
+
|
|
637
|
+
> <Array(<ListSellerOrders200Response>, Integer, Hash)> list_seller_orders_with_http_info(opts)
|
|
638
|
+
|
|
639
|
+
```ruby
|
|
640
|
+
begin
|
|
641
|
+
# List the orders you sell
|
|
642
|
+
data, status_code, headers = api_instance.list_seller_orders_with_http_info(opts)
|
|
643
|
+
p status_code # => 2xx
|
|
644
|
+
p headers # => { ... }
|
|
645
|
+
p data # => <ListSellerOrders200Response>
|
|
646
|
+
rescue Growwer::ApiError => e
|
|
647
|
+
puts "Error when calling SellerOrdersApi->list_seller_orders_with_http_info: #{e}"
|
|
648
|
+
end
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
### Parameters
|
|
652
|
+
|
|
653
|
+
| Name | Type | Description | Notes |
|
|
654
|
+
| ---- | ---- | ----------- | ----- |
|
|
655
|
+
| **media_id** | **String** | Only the orders on this media of yours. | [optional] |
|
|
656
|
+
| **state** | **String** | Only the orders in one of these states, comma-separated. An unknown state is refused with 422 and the list of valid ones. | [optional] |
|
|
657
|
+
| **updated_since** | **Time** | Only the orders whose `updatedAt` is at or after this instant, an ISO-8601 date-time with its offset (send `+` as `%2B`). | [optional] |
|
|
658
|
+
| **sort** | **String** | `-createdAt`, newest first, or `updatedAt`, least recently changed first. Orders of the same instant come in id order. | [optional][default to '-createdAt'] |
|
|
659
|
+
| **limit** | **Integer** | Orders per page, 1 to 100. | [optional][default to 20] |
|
|
660
|
+
| **offset** | **Integer** | Orders to skip. | [optional][default to 0] |
|
|
661
|
+
|
|
662
|
+
### Return type
|
|
663
|
+
|
|
664
|
+
[**ListSellerOrders200Response**](ListSellerOrders200Response.md)
|
|
665
|
+
|
|
666
|
+
### Authorization
|
|
667
|
+
|
|
668
|
+
[apiKey](../README.md#apiKey)
|
|
669
|
+
|
|
670
|
+
### HTTP request headers
|
|
671
|
+
|
|
672
|
+
- **Content-Type**: Not defined
|
|
673
|
+
- **Accept**: application/json
|
|
674
|
+
|
|
675
|
+
|
|
676
|
+
## refute_seller_order_draft_update
|
|
677
|
+
|
|
678
|
+
> <SellerOrder> refute_seller_order_draft_update(id, idempotency_key, seller_order_refutation)
|
|
679
|
+
|
|
680
|
+
Refuse a draft update
|
|
681
|
+
|
|
682
|
+
Refuses the draft update the buyer asked for on a post order placed on one of your medias whose draft you write (`state` `pending_draft_update`), as the web does. The order moves back to `pending_draft_review` and the buyer is told your reason. A draft Growwer or the buyer writes cannot be refused here.
|
|
683
|
+
|
|
684
|
+
### Examples
|
|
685
|
+
|
|
686
|
+
```ruby
|
|
687
|
+
require 'time'
|
|
688
|
+
require 'growwer'
|
|
689
|
+
# setup authorization
|
|
690
|
+
Growwer.configure do |config|
|
|
691
|
+
# Configure Bearer authorization: apiKey
|
|
692
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
693
|
+
end
|
|
694
|
+
|
|
695
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
696
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
697
|
+
idempotency_key = 'idempotency_key_example' # String | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
698
|
+
seller_order_refutation = Growwer::SellerOrderRefutation.new({reason: 'reason_example'}) # SellerOrderRefutation |
|
|
699
|
+
|
|
700
|
+
begin
|
|
701
|
+
# Refuse a draft update
|
|
702
|
+
result = api_instance.refute_seller_order_draft_update(id, idempotency_key, seller_order_refutation)
|
|
703
|
+
p result
|
|
704
|
+
rescue Growwer::ApiError => e
|
|
705
|
+
puts "Error when calling SellerOrdersApi->refute_seller_order_draft_update: #{e}"
|
|
706
|
+
end
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
#### Using the refute_seller_order_draft_update_with_http_info variant
|
|
710
|
+
|
|
711
|
+
This returns an Array which contains the response data, status code and headers.
|
|
712
|
+
|
|
713
|
+
> <Array(<SellerOrder>, Integer, Hash)> refute_seller_order_draft_update_with_http_info(id, idempotency_key, seller_order_refutation)
|
|
714
|
+
|
|
715
|
+
```ruby
|
|
716
|
+
begin
|
|
717
|
+
# Refuse a draft update
|
|
718
|
+
data, status_code, headers = api_instance.refute_seller_order_draft_update_with_http_info(id, idempotency_key, seller_order_refutation)
|
|
719
|
+
p status_code # => 2xx
|
|
720
|
+
p headers # => { ... }
|
|
721
|
+
p data # => <SellerOrder>
|
|
722
|
+
rescue Growwer::ApiError => e
|
|
723
|
+
puts "Error when calling SellerOrdersApi->refute_seller_order_draft_update_with_http_info: #{e}"
|
|
724
|
+
end
|
|
725
|
+
```
|
|
726
|
+
|
|
727
|
+
### Parameters
|
|
728
|
+
|
|
729
|
+
| Name | Type | Description | Notes |
|
|
730
|
+
| ---- | ---- | ----------- | ----- |
|
|
731
|
+
| **id** | **String** | | |
|
|
732
|
+
| **idempotency_key** | **String** | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`. | |
|
|
733
|
+
| **seller_order_refutation** | [**SellerOrderRefutation**](SellerOrderRefutation.md) | | |
|
|
734
|
+
|
|
735
|
+
### Return type
|
|
736
|
+
|
|
737
|
+
[**SellerOrder**](SellerOrder.md)
|
|
738
|
+
|
|
739
|
+
### Authorization
|
|
740
|
+
|
|
741
|
+
[apiKey](../README.md#apiKey)
|
|
742
|
+
|
|
743
|
+
### HTTP request headers
|
|
744
|
+
|
|
745
|
+
- **Content-Type**: application/json
|
|
746
|
+
- **Accept**: application/json
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
## refute_seller_order_update
|
|
750
|
+
|
|
751
|
+
> <SellerOrder> refute_seller_order_update(id, idempotency_key, seller_order_refutation)
|
|
752
|
+
|
|
753
|
+
Refuse an update
|
|
754
|
+
|
|
755
|
+
Refuses the update the buyer asked for on an order placed on one of your medias (`state` `pending_order_delivery_update`), as the web does. The order moves back to `pending_order_delivery_review` and the buyer is told your reason.
|
|
756
|
+
|
|
757
|
+
### Examples
|
|
758
|
+
|
|
759
|
+
```ruby
|
|
760
|
+
require 'time'
|
|
761
|
+
require 'growwer'
|
|
762
|
+
# setup authorization
|
|
763
|
+
Growwer.configure do |config|
|
|
764
|
+
# Configure Bearer authorization: apiKey
|
|
765
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
766
|
+
end
|
|
767
|
+
|
|
768
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
769
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
770
|
+
idempotency_key = 'idempotency_key_example' # String | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
771
|
+
seller_order_refutation = Growwer::SellerOrderRefutation.new({reason: 'reason_example'}) # SellerOrderRefutation |
|
|
772
|
+
|
|
773
|
+
begin
|
|
774
|
+
# Refuse an update
|
|
775
|
+
result = api_instance.refute_seller_order_update(id, idempotency_key, seller_order_refutation)
|
|
776
|
+
p result
|
|
777
|
+
rescue Growwer::ApiError => e
|
|
778
|
+
puts "Error when calling SellerOrdersApi->refute_seller_order_update: #{e}"
|
|
779
|
+
end
|
|
780
|
+
```
|
|
781
|
+
|
|
782
|
+
#### Using the refute_seller_order_update_with_http_info variant
|
|
783
|
+
|
|
784
|
+
This returns an Array which contains the response data, status code and headers.
|
|
785
|
+
|
|
786
|
+
> <Array(<SellerOrder>, Integer, Hash)> refute_seller_order_update_with_http_info(id, idempotency_key, seller_order_refutation)
|
|
787
|
+
|
|
788
|
+
```ruby
|
|
789
|
+
begin
|
|
790
|
+
# Refuse an update
|
|
791
|
+
data, status_code, headers = api_instance.refute_seller_order_update_with_http_info(id, idempotency_key, seller_order_refutation)
|
|
792
|
+
p status_code # => 2xx
|
|
793
|
+
p headers # => { ... }
|
|
794
|
+
p data # => <SellerOrder>
|
|
795
|
+
rescue Growwer::ApiError => e
|
|
796
|
+
puts "Error when calling SellerOrdersApi->refute_seller_order_update_with_http_info: #{e}"
|
|
797
|
+
end
|
|
798
|
+
```
|
|
799
|
+
|
|
800
|
+
### Parameters
|
|
801
|
+
|
|
802
|
+
| Name | Type | Description | Notes |
|
|
803
|
+
| ---- | ---- | ----------- | ----- |
|
|
804
|
+
| **id** | **String** | | |
|
|
805
|
+
| **idempotency_key** | **String** | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`. | |
|
|
806
|
+
| **seller_order_refutation** | [**SellerOrderRefutation**](SellerOrderRefutation.md) | | |
|
|
807
|
+
|
|
808
|
+
### Return type
|
|
809
|
+
|
|
810
|
+
[**SellerOrder**](SellerOrder.md)
|
|
811
|
+
|
|
812
|
+
### Authorization
|
|
813
|
+
|
|
814
|
+
[apiKey](../README.md#apiKey)
|
|
815
|
+
|
|
816
|
+
### HTTP request headers
|
|
817
|
+
|
|
818
|
+
- **Content-Type**: application/json
|
|
819
|
+
- **Accept**: application/json
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
## reject_seller_order
|
|
823
|
+
|
|
824
|
+
> <SellerOrder> reject_seller_order(id, idempotency_key, seller_order_rejection)
|
|
825
|
+
|
|
826
|
+
Reject an order
|
|
827
|
+
|
|
828
|
+
Rejects an order placed on one of your medias that you have not accepted yet (`state` `pending_acceptance`), as the web does. The order moves to `rejected_by_seller`, its price returns to the buyer, and the buyer is told your reason.
|
|
829
|
+
|
|
830
|
+
### Examples
|
|
831
|
+
|
|
832
|
+
```ruby
|
|
833
|
+
require 'time'
|
|
834
|
+
require 'growwer'
|
|
835
|
+
# setup authorization
|
|
836
|
+
Growwer.configure do |config|
|
|
837
|
+
# Configure Bearer authorization: apiKey
|
|
838
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
839
|
+
end
|
|
840
|
+
|
|
841
|
+
api_instance = Growwer::SellerOrdersApi.new
|
|
842
|
+
id = '38400000-8cf0-11bd-b23e-10b96e4ef00d' # String |
|
|
843
|
+
idempotency_key = 'idempotency_key_example' # String | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`.
|
|
844
|
+
seller_order_rejection = Growwer::SellerOrderRejection.new({reason: Growwer::SellerOrderRejectionReason.new({name: 'media_is_competition'})}) # SellerOrderRejection |
|
|
845
|
+
|
|
846
|
+
begin
|
|
847
|
+
# Reject an order
|
|
848
|
+
result = api_instance.reject_seller_order(id, idempotency_key, seller_order_rejection)
|
|
849
|
+
p result
|
|
850
|
+
rescue Growwer::ApiError => e
|
|
851
|
+
puts "Error when calling SellerOrdersApi->reject_seller_order: #{e}"
|
|
852
|
+
end
|
|
853
|
+
```
|
|
854
|
+
|
|
855
|
+
#### Using the reject_seller_order_with_http_info variant
|
|
856
|
+
|
|
857
|
+
This returns an Array which contains the response data, status code and headers.
|
|
858
|
+
|
|
859
|
+
> <Array(<SellerOrder>, Integer, Hash)> reject_seller_order_with_http_info(id, idempotency_key, seller_order_rejection)
|
|
860
|
+
|
|
861
|
+
```ruby
|
|
862
|
+
begin
|
|
863
|
+
# Reject an order
|
|
864
|
+
data, status_code, headers = api_instance.reject_seller_order_with_http_info(id, idempotency_key, seller_order_rejection)
|
|
865
|
+
p status_code # => 2xx
|
|
866
|
+
p headers # => { ... }
|
|
867
|
+
p data # => <SellerOrder>
|
|
868
|
+
rescue Growwer::ApiError => e
|
|
869
|
+
puts "Error when calling SellerOrdersApi->reject_seller_order_with_http_info: #{e}"
|
|
870
|
+
end
|
|
871
|
+
```
|
|
872
|
+
|
|
873
|
+
### Parameters
|
|
874
|
+
|
|
875
|
+
| Name | Type | Description | Notes |
|
|
876
|
+
| ---- | ---- | ----------- | ----- |
|
|
877
|
+
| **id** | **String** | | |
|
|
878
|
+
| **idempotency_key** | **String** | A new key for each write, reused only to retry that same write. 1 to 255 printable ASCII characters without spaces (`!` to `~`); any other value answers 400 `invalid_idempotency_key`. | |
|
|
879
|
+
| **seller_order_rejection** | [**SellerOrderRejection**](SellerOrderRejection.md) | | |
|
|
880
|
+
|
|
881
|
+
### Return type
|
|
882
|
+
|
|
883
|
+
[**SellerOrder**](SellerOrder.md)
|
|
884
|
+
|
|
885
|
+
### Authorization
|
|
886
|
+
|
|
887
|
+
[apiKey](../README.md#apiKey)
|
|
888
|
+
|
|
889
|
+
### HTTP request headers
|
|
890
|
+
|
|
891
|
+
- **Content-Type**: application/json
|
|
892
|
+
- **Accept**: application/json
|
|
893
|
+
|