wetaca-cli 0.0.0-stage → 0.2.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.
- package/LICENSE +21 -0
- package/README.md +93 -2
- package/bin/wetaca.js +248 -0
- package/docs/GUIA.md +118 -0
- package/docs/agent-guide.md +71 -0
- package/docs/api-operations/wetaca_bundle__Doc0.graphql +40 -0
- package/docs/api-operations/wetaca_bundle__Doc1.graphql +14 -0
- package/docs/api-operations/wetaca_bundle__Doc10.graphql +45 -0
- package/docs/api-operations/wetaca_bundle__Doc11.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__Doc2.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__Doc3.graphql +39 -0
- package/docs/api-operations/wetaca_bundle__Doc4.graphql +36 -0
- package/docs/api-operations/wetaca_bundle__Doc5.graphql +40 -0
- package/docs/api-operations/wetaca_bundle__Doc6.graphql +33 -0
- package/docs/api-operations/wetaca_bundle__Doc7.graphql +48 -0
- package/docs/api-operations/wetaca_bundle__Doc8.graphql +92 -0
- package/docs/api-operations/wetaca_bundle__Doc9.graphql +95 -0
- package/docs/api-operations/wetaca_bundle__SaveWeeklySurveyStep.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__StartWeeklySurvey.graphql +33 -0
- package/docs/api-operations/wetaca_bundle__SubmitWeeklySurvey.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__SubscriptionDeliveryChangePriceQueryV2.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__SuggestionDeliveryChangePriceQueryV2.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__activateSubscriptionAccount.graphql +45 -0
- package/docs/api-operations/wetaca_bundle__activeReferredReward.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__addProductsToProfileWhitelist.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__addProductsToSubscriptionProfileBlacklist.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__addProfileToSubscriptionAccount.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__addRecurrenceVoucherToCustomer.graphql +23 -0
- package/docs/api-operations/wetaca_bundle__addSubscriptionProfileSuggestionOverwrites.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__addresses.graphql +17 -0
- package/docs/api-operations/wetaca_bundle__addressesInManager.graphql +17 -0
- package/docs/api-operations/wetaca_bundle__allRecommenderIngredients.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__appendNewPaymentSubscriptionMethod.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__applyOrderVoucher.graphql +33 -0
- package/docs/api-operations/wetaca_bundle__articleQuery.graphql +22 -0
- package/docs/api-operations/wetaca_bundle__articlesByCategoryQuery.graphql +13 -0
- package/docs/api-operations/wetaca_bundle__assignNextSuggestionVoucher.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__authorizePaypalTokenGenerationPaymentIntention.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__authorizeRedsysAppApplePayPayment.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__authorizeRedsysAppGooglePayPayment.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__authorizeRedsysApplePayPayment.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__authorizeRedsysGooglePayPayment.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__authorizeRedsysPaymentIntention.graphql +17 -0
- package/docs/api-operations/wetaca_bundle__bypassSMSValidationConfigQuery.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__calculateNextProfileSuggestions.graphql +31 -0
- package/docs/api-operations/wetaca_bundle__cancelConfirmedOrder.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__cancelSubscriptionAccount.graphql +45 -0
- package/docs/api-operations/wetaca_bundle__categoriesQuery.graphql +15 -0
- package/docs/api-operations/wetaca_bundle__changeOptionsQuery.graphql +21 -0
- package/docs/api-operations/wetaca_bundle__changeOrderDelivery.graphql +27 -0
- package/docs/api-operations/wetaca_bundle__changePasswordInProfile.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__changeSubscriptionOptInMode.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__changeSubscriptionPaymentPaymentMethodsEdit.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__computeConfirmedOrderModificationPriceSummary.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__confirmDeliveryReschedule.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__confirmedOrderEditContext.graphql +95 -0
- package/docs/api-operations/wetaca_bundle__currentRecurrenceVouchers.graphql +23 -0
- package/docs/api-operations/wetaca_bundle__customer.graphql +11 -0
- package/docs/api-operations/wetaca_bundle__customerBillingAddresses.graphql +18 -0
- package/docs/api-operations/wetaca_bundle__customerFF.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__customerFeatureFlagBySlug.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__customerFeatureFlagForAnalytics.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__customerHasReferralVouchers.graphql +11 -0
- package/docs/api-operations/wetaca_bundle__customerPaymentMethods.graphql +23 -0
- package/docs/api-operations/wetaca_bundle__customerVouchers.graphql +224 -0
- package/docs/api-operations/wetaca_bundle__customerWalletScheduledDeposits.graphql +15 -0
- package/docs/api-operations/wetaca_bundle__customerWithSegment.graphql +61 -0
- package/docs/api-operations/wetaca_bundle__deleteCustomerAccount.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__deleteCustomerScheduledDeposit.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__deliveryOptionsByZipcode.graphql +27 -0
- package/docs/api-operations/wetaca_bundle__deliveryRescheduleWithAvailability.graphql +53 -0
- package/docs/api-operations/wetaca_bundle__dish.graphql +39 -0
- package/docs/api-operations/wetaca_bundle__editAccountBillingAddress.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__editDeliveryAccountInfo.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__editProfileSuggestionMenu.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionDelivery.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionProfileAllergens.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionProfileDislikes.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionProfileMenu.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionProfileMenuAndNutrition.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionProfileSpicy.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__editSubscriptionTastesProfile.graphql +38 -0
- package/docs/api-operations/wetaca_bundle__editSuggestionDelivery.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__featuredArticlesQuery.graphql +16 -0
- package/docs/api-operations/wetaca_bundle__getChargingSuggestionMetadata.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__getDeliveryConfigurationMaxQuantities.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__getDeliveryConfigurationProductAvailability.graphql +13 -0
- package/docs/api-operations/wetaca_bundle__getDeliveryConfigurationProductAvailabilityWithExceptions.graphql +28 -0
- package/docs/api-operations/wetaca_bundle__getSubscriptionAccountDeliveryConfigurationProductAvailability.graphql +38 -0
- package/docs/api-operations/wetaca_bundle__getUseGoogleSocialLoginInIosAppConfiguration.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__getWeeklySurveyConfig.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__giftCardsConfiguration.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__globalConfigurations.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__initNewRedsysPaymentIntention.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__initPaypalTokenGenerationPaymentIntention.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__initializePaymentProcessEvent.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__isNextSuggestionSkiped.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__landingTemplateCollectionQuery.graphql +157 -0
- package/docs/api-operations/wetaca_bundle__landingTemplateFloatingBarQuery.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__lastUsedOrderOptions.graphql +34 -0
- package/docs/api-operations/wetaca_bundle__linkGoogleAccountByPassword.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__linkGoogleAccountBySMS.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__linkGoogleAccountPhone.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__linkPhoneNumberToAccount.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__markSuggestionAsViewedInEditableState.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__menuProductIds.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__modifyConfirmedOrderProducts.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__mostRecentZipCode.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__myDetailsAccountWithProfiles.graphql +506 -0
- package/docs/api-operations/wetaca_bundle__newBlogLeadMutation.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__nextDeliveries.graphql +190 -0
- package/docs/api-operations/wetaca_bundle__nextSubscriptionStartOfChargeTimeQuery.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__nextSuggestion.graphql +231 -0
- package/docs/api-operations/wetaca_bundle__nextSuggestionAddVoucherPage.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__nextSuggestionIdAndVoucher.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__nextSuggestionVoucherAndPrice.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__orderDetails.graphql +124 -0
- package/docs/api-operations/wetaca_bundle__pauseProfile.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__pauseResumeProfile.graphql +56 -0
- package/docs/api-operations/wetaca_bundle__pauseSubscriptionQuery.graphql +17 -0
- package/docs/api-operations/wetaca_bundle__pauseSuggestion.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__pauseSuggestionProfile.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__paySubscriptionPendingOrderWithPaymentMethod.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__payTransactionalOrder.graphql +39 -0
- package/docs/api-operations/wetaca_bundle__pendingDeliveryOrders.graphql +473 -0
- package/docs/api-operations/wetaca_bundle__pendingPaymentOrderById.graphql +63 -0
- package/docs/api-operations/wetaca_bundle__pendingTransactionalDeliveryOrders.graphql +80 -0
- package/docs/api-operations/wetaca_bundle__previousDeliveries.graphql +33 -0
- package/docs/api-operations/wetaca_bundle__profileHasEditTastes.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__profileSuggestionBySuggestionId.graphql +190 -0
- package/docs/api-operations/wetaca_bundle__profileSuggestionWithProfileById.graphql +142 -0
- package/docs/api-operations/wetaca_bundle__purchaseGiftCard.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__rechargeCustomerWalletWithPaymentMethod.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__recommendedArticlesQuery.graphql +20 -0
- package/docs/api-operations/wetaca_bundle__recommenderIngredientsByNames.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__recoverPassword.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__recurrenceNextAssociatedVoucher.graphql +23 -0
- package/docs/api-operations/wetaca_bundle__redeemGiftCard.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__referralConfig.graphql +61 -0
- package/docs/api-operations/wetaca_bundle__registerLogout.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__registerPaymentProcessEvent.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__removeAddress.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__removeAddressInManager.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__removeCreditCard.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__removeCustomerBillingAddress.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__removeProfileWithSuggestions.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__requestDeliveryRescheduleSupport.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__resetPassword.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__resumeSuggestion.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__resumeSuggestionProfile.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__salesPlanCategory.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__saveAddress.graphql +13 -0
- package/docs/api-operations/wetaca_bundle__saveCustomerBillingAddress.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__saveSubscriptionShoppingCart.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__scheduleNewCustomerWalletRecharges.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__segmentBySlug.graphql +75 -0
- package/docs/api-operations/wetaca_bundle__segmentMenu.graphql +89 -0
- package/docs/api-operations/wetaca_bundle__sessionTokenByPassword.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__sessionTokenBySms.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__setPasswordInProfile.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__shoppingCart.graphql +18 -0
- package/docs/api-operations/wetaca_bundle__signUp.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__signUpWithGoogle.graphql +15 -0
- package/docs/api-operations/wetaca_bundle__someProfileHasEditTastes.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__subscribeCustomer.graphql +11 -0
- package/docs/api-operations/wetaca_bundle__subscribeToReactivationUrlVoucher.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__subscribeToVoucherAddVoucherPage.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__subscriberAccountStatus.graphql +8 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountByCustomerWithPayments.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountChangePricing.graphql +92 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricing.graphql +156 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricingForMenu.graphql +134 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricingFunnelCart.graphql +26 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountIntentPricingVoucher.graphql +9 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAccountProductsSubscriptionPricing.graphql +26 -0
- package/docs/api-operations/wetaca_bundle__subscriptionAvailability.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__subscriptionIntentMenuProductsPricing.graphql +26 -0
- package/docs/api-operations/wetaca_bundle__subscriptionMenuWithWelcomeVoucherQuery.graphql +66 -0
- package/docs/api-operations/wetaca_bundle__subscriptionSegmentMenu.graphql +48 -0
- package/docs/api-operations/wetaca_bundle__subscriptionVoucher.graphql +27 -0
- package/docs/api-operations/wetaca_bundle__subscriptionWelcomeVoucher.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__suggestioMenuProductsPricing.graphql +26 -0
- package/docs/api-operations/wetaca_bundle__suggestionById.graphql +52 -0
- package/docs/api-operations/wetaca_bundle__suggestionByIdData.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__suggestionChangePricing.graphql +122 -0
- package/docs/api-operations/wetaca_bundle__syncFeatureFlags.graphql +7 -0
- package/docs/api-operations/wetaca_bundle__tokenIsValid.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__totalOrdersSummaryByCustomer.graphql +21 -0
- package/docs/api-operations/wetaca_bundle__trackInternalEvent.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__trackInternalGEvent.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__trackInternalLPEvent.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__trackLoginInternalEvent.graphql +5 -0
- package/docs/api-operations/wetaca_bundle__transactionalSegmentMenu.graphql +47 -0
- package/docs/api-operations/wetaca_bundle__updateSubscriptionProfileCharacter.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__updateSubscriptionProfileName.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__updateUserProfile.graphql +10 -0
- package/docs/api-operations/wetaca_bundle__useCaptchaConfig.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__userSessionSubscription.graphql +20 -0
- package/docs/api-operations/wetaca_bundle__validateSegment.graphql +19 -0
- package/docs/api-operations/wetaca_bundle__validateSubscriptionIntent.graphql +6 -0
- package/docs/api-operations/wetaca_bundle__voucherCustomDisplay.graphql +22 -0
- package/docs/api-operations/wetaca_bundle__walletBalance.graphql +3 -0
- package/docs/api-operations/wetaca_bundle__walletOperations.graphql +11 -0
- package/docs/cli-spec.md +113 -0
- package/package.json +38 -4
- package/src/commands.js +700 -0
- package/src/guide.js +73 -0
- package/src/lib.js +371 -0
- package/src/queries.js +235 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
query articleQuery($slug: String!, $preview: Boolean!) {
|
|
2
|
+
articleCollection(where: {slug: $slug}, preview: $preview) {
|
|
3
|
+
items {
|
|
4
|
+
title
|
|
5
|
+
subtitle
|
|
6
|
+
imageUrl
|
|
7
|
+
slug
|
|
8
|
+
content
|
|
9
|
+
metaTitle
|
|
10
|
+
metaDescription
|
|
11
|
+
sys {
|
|
12
|
+
firstPublishedAt
|
|
13
|
+
publishedAt
|
|
14
|
+
}
|
|
15
|
+
categoriesCollection {
|
|
16
|
+
items {
|
|
17
|
+
name
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
query articlesByCategoryQuery($categoryId: String, $pageLimit: Int, $skip: Int) {
|
|
2
|
+
articleCollection(where: {categories: {sys: {id: $categoryId}}}, order: sys_firstPublishedAt_DESC, limit: $pageLimit, skip: $skip) {
|
|
3
|
+
total
|
|
4
|
+
skip
|
|
5
|
+
limit
|
|
6
|
+
items {
|
|
7
|
+
title
|
|
8
|
+
excerpt
|
|
9
|
+
slug
|
|
10
|
+
imageUrl
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
mutation assignNextSuggestionVoucher($voucherCode: String, $skipVoucher: Boolean!, $suggestionId: ModelId!) {
|
|
2
|
+
assignNextSuggestionVoucher(voucherCode: $voucherCode, skipVoucher: $skipVoucher, suggestionId: $suggestionId) {
|
|
3
|
+
appliedVoucher {
|
|
4
|
+
code
|
|
5
|
+
appliedDiscount
|
|
6
|
+
}
|
|
7
|
+
skipVoucher
|
|
8
|
+
}
|
|
9
|
+
}
|
package/docs/api-operations/wetaca_bundle__authorizePaypalTokenGenerationPaymentIntention.graphql
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
mutation authorizePaypalTokenGenerationPaymentIntention($paymentIntentionId: ModelId!, $paymentIntentionSliceId: ModelId!, $paypalInitTokenId: String!) {
|
|
2
|
+
authorizePaypalTokenGenerationPaymentIntention(paymentIntentionId: $paymentIntentionId, paymentIntentionSliceId: $paymentIntentionSliceId, paypalInitTokenId: $paypalInitTokenId) {
|
|
3
|
+
ok
|
|
4
|
+
error
|
|
5
|
+
storedPaymentToken
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
mutation authorizeRedsysAppApplePayPayment($newPaymentIntentionRequest: SimplePaymentIntentionInput!, $paymentAuthorization: String!, $paymentInterfaceBrowser: PaymentInterfaceBrowserInput!, $paymentReferenceAlternative: String!, $paymentMethodInfo: String) {
|
|
2
|
+
authorizeRedsysAppApplePayPayment(newPaymentIntentionRequest: $newPaymentIntentionRequest, paymentAuthorization: $paymentAuthorization, paymentInterfaceBrowser: $paymentInterfaceBrowser, paymentReferenceAlternative: $paymentReferenceAlternative, paymentMethodInfo: $paymentMethodInfo) {
|
|
3
|
+
ok
|
|
4
|
+
error
|
|
5
|
+
storedPaymentToken
|
|
6
|
+
redsysAuthorizationResponse {
|
|
7
|
+
isChallenge
|
|
8
|
+
PAReq
|
|
9
|
+
MD
|
|
10
|
+
acsURL
|
|
11
|
+
creq
|
|
12
|
+
notificationUrl
|
|
13
|
+
protocolVersion
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
mutation authorizeRedsysAppGooglePayPayment($newPaymentIntentionRequest: SimplePaymentIntentionInput!, $paymentAuthorization: String!, $paymentInterfaceBrowser: PaymentInterfaceBrowserInput!, $paymentReferenceAlternative: String!) {
|
|
2
|
+
authorizeRedsysAppGooglePayPayment(newPaymentIntentionRequest: $newPaymentIntentionRequest, paymentAuthorization: $paymentAuthorization, paymentInterfaceBrowser: $paymentInterfaceBrowser, paymentReferenceAlternative: $paymentReferenceAlternative) {
|
|
3
|
+
ok
|
|
4
|
+
error
|
|
5
|
+
storedPaymentToken
|
|
6
|
+
redsysAuthorizationResponse {
|
|
7
|
+
isChallenge
|
|
8
|
+
PAReq
|
|
9
|
+
MD
|
|
10
|
+
acsURL
|
|
11
|
+
creq
|
|
12
|
+
notificationUrl
|
|
13
|
+
protocolVersion
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
mutation authorizeRedsysApplePayPayment($newPaymentIntentionRequest: SimplePaymentIntentionInput!, $paymentAuthorization: String!, $paymentInterfaceBrowser: PaymentInterfaceBrowserInput!, $paymentReferenceAlternative: String!, $paymentMethodInfo: String) {
|
|
2
|
+
authorizeRedsysApplePayPayment(newPaymentIntentionRequest: $newPaymentIntentionRequest, paymentAuthorization: $paymentAuthorization, paymentInterfaceBrowser: $paymentInterfaceBrowser, paymentReferenceAlternative: $paymentReferenceAlternative, paymentMethodInfo: $paymentMethodInfo) {
|
|
3
|
+
ok
|
|
4
|
+
error
|
|
5
|
+
storedPaymentToken
|
|
6
|
+
redsysAuthorizationResponse {
|
|
7
|
+
isChallenge
|
|
8
|
+
PAReq
|
|
9
|
+
MD
|
|
10
|
+
acsURL
|
|
11
|
+
creq
|
|
12
|
+
notificationUrl
|
|
13
|
+
protocolVersion
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
mutation authorizeRedsysGooglePayPayment($newPaymentIntentionRequest: SimplePaymentIntentionInput!, $paymentAuthorization: String!, $paymentInterfaceBrowser: PaymentInterfaceBrowserInput!, $paymentReferenceAlternative: String!) {
|
|
2
|
+
authorizeRedsysGooglePayPayment(newPaymentIntentionRequest: $newPaymentIntentionRequest, paymentAuthorization: $paymentAuthorization, paymentInterfaceBrowser: $paymentInterfaceBrowser, paymentReferenceAlternative: $paymentReferenceAlternative) {
|
|
3
|
+
ok
|
|
4
|
+
error
|
|
5
|
+
storedPaymentToken
|
|
6
|
+
redsysAuthorizationResponse {
|
|
7
|
+
isChallenge
|
|
8
|
+
PAReq
|
|
9
|
+
MD
|
|
10
|
+
acsURL
|
|
11
|
+
creq
|
|
12
|
+
notificationUrl
|
|
13
|
+
protocolVersion
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
mutation authorizeRedsysPaymentIntention($paymentIntentionId: ModelId!, $paymentIntentionSliceId: ModelId!, $paymentOperationId: String!, $paymentInterfaceBrowser: PaymentInterfaceBrowserInput!, $threeDSCompInd: RedsysThreeDSCompInd!) {
|
|
2
|
+
authorizeRedsysPaymentIntention(paymentIntentionId: $paymentIntentionId, paymentIntentionSliceId: $paymentIntentionSliceId, paymentOperationId: $paymentOperationId, paymentInterfaceBrowser: $paymentInterfaceBrowser, threeDSCompInd: $threeDSCompInd) {
|
|
3
|
+
... on RedsysChallengeRequestAuthorizationResolution {
|
|
4
|
+
PAReq
|
|
5
|
+
MD
|
|
6
|
+
acsURL
|
|
7
|
+
creq
|
|
8
|
+
protocolVersion
|
|
9
|
+
notificationUrl
|
|
10
|
+
}
|
|
11
|
+
... on RedsysFrictionlessAuthorizationResolution {
|
|
12
|
+
ok
|
|
13
|
+
storedCardReference
|
|
14
|
+
error
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
query calculateNextProfileSuggestions($profileId: ModelId!, $suggestionsRequired: Int) {
|
|
2
|
+
calculateNextProfileSuggestions(profileId: $profileId, suggestionsRequired: $suggestionsRequired) {
|
|
3
|
+
menuId
|
|
4
|
+
productRelations {
|
|
5
|
+
quantity
|
|
6
|
+
id
|
|
7
|
+
name
|
|
8
|
+
slug
|
|
9
|
+
isPromoted
|
|
10
|
+
features
|
|
11
|
+
suggestedProduct {
|
|
12
|
+
id
|
|
13
|
+
name
|
|
14
|
+
slug
|
|
15
|
+
isPromoted
|
|
16
|
+
features
|
|
17
|
+
overwritten
|
|
18
|
+
category {
|
|
19
|
+
slug
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
otherProductRelations {
|
|
23
|
+
id
|
|
24
|
+
name
|
|
25
|
+
slug
|
|
26
|
+
isPromoted
|
|
27
|
+
features
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
mutation cancelSubscriptionAccount($subscriptionAccountId: ModelId!, $path: String!, $pausedWeeks: Int, $feedback: String) {
|
|
2
|
+
subscriptionAccount: cancelSubscriptionAccount(subscriptionAccountId: $subscriptionAccountId, path: $path, pausedWeeks: $pausedWeeks, feedback: $feedback) {
|
|
3
|
+
id
|
|
4
|
+
delivery {
|
|
5
|
+
address {
|
|
6
|
+
id
|
|
7
|
+
firstname
|
|
8
|
+
lastname
|
|
9
|
+
street
|
|
10
|
+
number
|
|
11
|
+
zipcode
|
|
12
|
+
city
|
|
13
|
+
phone
|
|
14
|
+
floor
|
|
15
|
+
notes
|
|
16
|
+
}
|
|
17
|
+
option {
|
|
18
|
+
start
|
|
19
|
+
end
|
|
20
|
+
price
|
|
21
|
+
customizedPrice
|
|
22
|
+
custom
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
billingAddress {
|
|
26
|
+
id
|
|
27
|
+
name
|
|
28
|
+
lastname
|
|
29
|
+
country
|
|
30
|
+
vat
|
|
31
|
+
street
|
|
32
|
+
number
|
|
33
|
+
floor
|
|
34
|
+
zipcode
|
|
35
|
+
city
|
|
36
|
+
}
|
|
37
|
+
payments {
|
|
38
|
+
provider
|
|
39
|
+
reference
|
|
40
|
+
}
|
|
41
|
+
isActive
|
|
42
|
+
pausedUntil
|
|
43
|
+
segmentId
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
query changeOptionsQuery($orderId: Int!, $addressId: Int, $zipcode: Int) {
|
|
2
|
+
changeOptions(orderId: $orderId, addressId: $addressId, zipcode: $zipcode) {
|
|
3
|
+
id
|
|
4
|
+
start
|
|
5
|
+
end
|
|
6
|
+
price
|
|
7
|
+
configurationDate {
|
|
8
|
+
start
|
|
9
|
+
end
|
|
10
|
+
}
|
|
11
|
+
exception {
|
|
12
|
+
start
|
|
13
|
+
end
|
|
14
|
+
from {
|
|
15
|
+
year
|
|
16
|
+
month
|
|
17
|
+
dayOfMonth
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
mutation changeOrderDelivery($orderId: Int!, $delivery: DeliveryInput!, $persistChanges: Boolean!) {
|
|
2
|
+
changeDelivery(orderId: $orderId, delivery: $delivery, persistChanges: $persistChanges) {
|
|
3
|
+
id
|
|
4
|
+
delivery {
|
|
5
|
+
address {
|
|
6
|
+
id
|
|
7
|
+
street
|
|
8
|
+
number
|
|
9
|
+
floor
|
|
10
|
+
city
|
|
11
|
+
zipcode
|
|
12
|
+
firstname
|
|
13
|
+
lastname
|
|
14
|
+
phone
|
|
15
|
+
notes
|
|
16
|
+
}
|
|
17
|
+
option {
|
|
18
|
+
id
|
|
19
|
+
start
|
|
20
|
+
end
|
|
21
|
+
price
|
|
22
|
+
custom
|
|
23
|
+
customizedPrice
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
package/docs/api-operations/wetaca_bundle__computeConfirmedOrderModificationPriceSummary.graphql
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
query computeConfirmedOrderModificationPriceSummary($orderId: Int!, $productModifications: [ProductModificationInput!]!) {
|
|
2
|
+
computeConfirmedOrderModificationPriceSummary(orderId: $orderId, productModifications: $productModifications) {
|
|
3
|
+
priceDifference
|
|
4
|
+
newPrice
|
|
5
|
+
totalBeforeDiscount
|
|
6
|
+
}
|
|
7
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
query confirmedOrderEditContext($orderId: Int!) {
|
|
2
|
+
confirmedOrderEditContext(orderId: $orderId) {
|
|
3
|
+
minPrice
|
|
4
|
+
isMultiProfile
|
|
5
|
+
editability {
|
|
6
|
+
isModifiable
|
|
7
|
+
isCancellable
|
|
8
|
+
reason
|
|
9
|
+
}
|
|
10
|
+
order {
|
|
11
|
+
id
|
|
12
|
+
price
|
|
13
|
+
salesPlanDiscount {
|
|
14
|
+
appliedDiscount
|
|
15
|
+
discount {
|
|
16
|
+
price
|
|
17
|
+
percent
|
|
18
|
+
maximum
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
vouchers {
|
|
22
|
+
code
|
|
23
|
+
appliedDiscount
|
|
24
|
+
discount {
|
|
25
|
+
price
|
|
26
|
+
percent
|
|
27
|
+
maximum
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
products {
|
|
31
|
+
id
|
|
32
|
+
name
|
|
33
|
+
price
|
|
34
|
+
quantity
|
|
35
|
+
slug
|
|
36
|
+
}
|
|
37
|
+
delivery {
|
|
38
|
+
option {
|
|
39
|
+
id
|
|
40
|
+
start
|
|
41
|
+
end
|
|
42
|
+
configurationDate {
|
|
43
|
+
start
|
|
44
|
+
end
|
|
45
|
+
}
|
|
46
|
+
exception {
|
|
47
|
+
start
|
|
48
|
+
end
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
deliveryWeekMenu {
|
|
54
|
+
dishes {
|
|
55
|
+
datePublished
|
|
56
|
+
id
|
|
57
|
+
name
|
|
58
|
+
slug
|
|
59
|
+
price
|
|
60
|
+
subscriptionPrice
|
|
61
|
+
category {
|
|
62
|
+
_id
|
|
63
|
+
id: slug
|
|
64
|
+
name
|
|
65
|
+
slug
|
|
66
|
+
description
|
|
67
|
+
order
|
|
68
|
+
subscriptionPrice
|
|
69
|
+
}
|
|
70
|
+
tags
|
|
71
|
+
ingredients
|
|
72
|
+
ingredientsBreakdown
|
|
73
|
+
allergens
|
|
74
|
+
suitableForProfile
|
|
75
|
+
isNew
|
|
76
|
+
features
|
|
77
|
+
specialTemplate
|
|
78
|
+
isPromoted
|
|
79
|
+
speciality
|
|
80
|
+
frontPage
|
|
81
|
+
weight
|
|
82
|
+
nutritionFacts {
|
|
83
|
+
energy
|
|
84
|
+
totalFat
|
|
85
|
+
saturatedFat
|
|
86
|
+
proteins
|
|
87
|
+
hydrates
|
|
88
|
+
sugars
|
|
89
|
+
fiber
|
|
90
|
+
salt
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
query currentRecurrenceVouchers {
|
|
2
|
+
currentRecurrenceVouchers {
|
|
3
|
+
recurrenceVoucher {
|
|
4
|
+
code
|
|
5
|
+
dateTo
|
|
6
|
+
subscriptionDiscount {
|
|
7
|
+
price
|
|
8
|
+
percent
|
|
9
|
+
maximum
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
nextAssociatedVoucher {
|
|
13
|
+
code
|
|
14
|
+
dateTo
|
|
15
|
+
dateFrom
|
|
16
|
+
subscriptionDiscount {
|
|
17
|
+
price
|
|
18
|
+
percent
|
|
19
|
+
maximum
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
query customerHasReferralVouchers($limit: Int, $offset: Int, $skipExpired: Boolean, $skipFuture: Boolean) {
|
|
2
|
+
vouchers(limit: $limit, offset: $offset, skipExpired: $skipExpired, skipFuture: $skipFuture) {
|
|
3
|
+
referredCustomer
|
|
4
|
+
isReferral
|
|
5
|
+
code
|
|
6
|
+
}
|
|
7
|
+
customer {
|
|
8
|
+
id
|
|
9
|
+
referralCode
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
query customerPaymentMethods($provider: PaymentMethodProvider) {
|
|
2
|
+
customerPaymentMethods(provider: $provider) {
|
|
3
|
+
... on CreditCard {
|
|
4
|
+
id
|
|
5
|
+
provider
|
|
6
|
+
number
|
|
7
|
+
expirationMonth
|
|
8
|
+
expirationYear
|
|
9
|
+
cardType
|
|
10
|
+
isSubscription
|
|
11
|
+
isScheduledDeposit
|
|
12
|
+
supplier
|
|
13
|
+
supplierOriginalDisplay
|
|
14
|
+
}
|
|
15
|
+
... on PaypalPaymentMethod {
|
|
16
|
+
id
|
|
17
|
+
provider
|
|
18
|
+
accountEmail
|
|
19
|
+
isSubscription
|
|
20
|
+
isScheduledDeposit
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|