@ikas/storefront-api 5.0.36 → 5.0.38

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.
@@ -18,6 +18,7 @@ export declare class CheckoutSettingsData extends BaseModelData {
18
18
  postalCodeRequirement: CheckoutRequirementEnum | null;
19
19
  showCheckoutNote: boolean | null;
20
20
  showCompanyInfoInShippingAddress: boolean | null;
21
+ showBillingAddressOnShippingStep: boolean | null;
21
22
  showTermsAndConditionsCheckbox: boolean;
22
23
  storefrontId: string;
23
24
  constructor(data?: Partial<CheckoutSettingsData>);
@@ -0,0 +1,12 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ export declare class UpdatePaypalOrderAddressInputData {
3
+ city: string | null;
4
+ country: string | null;
5
+ postalCode: string | null;
6
+ state: string | null;
7
+ constructor(data?: Partial<UpdatePaypalOrderAddressInputData>);
8
+ }
9
+ export declare class UpdatePaypalOrderAddressInput extends UpdatePaypalOrderAddressInputData {
10
+ }
11
+ export declare type PartialUpdatePaypalOrderAddressInput = Partial<UpdatePaypalOrderAddressInput>;
12
+ export declare type ReadOnlyUpdatePaypalOrderAddressInput = DeepReadonly<UpdatePaypalOrderAddressInput>;
@@ -0,0 +1,12 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ export declare class UpdatePaypalOrderCustomerInputData {
3
+ email: string | null;
4
+ firstName: string | null;
5
+ id: string | null;
6
+ lastName: string | null;
7
+ constructor(data?: Partial<UpdatePaypalOrderCustomerInputData>);
8
+ }
9
+ export declare class UpdatePaypalOrderCustomerInput extends UpdatePaypalOrderCustomerInputData {
10
+ }
11
+ export declare type PartialUpdatePaypalOrderCustomerInput = Partial<UpdatePaypalOrderCustomerInput>;
12
+ export declare type ReadOnlyUpdatePaypalOrderCustomerInput = DeepReadonly<UpdatePaypalOrderCustomerInput>;
@@ -0,0 +1,16 @@
1
+ import { DeepReadonly } from "ts-essentials";
2
+ import { UpdatePaypalOrderAddressInputData } from "./UpdatePaypalOrderAddressInput";
3
+ import { UpdatePaypalOrderCustomerInputData } from "./UpdatePaypalOrderCustomerInput";
4
+ export declare class UpdatePaypalOrderInputData {
5
+ address: UpdatePaypalOrderAddressInputData | null;
6
+ cartId: string;
7
+ customer: UpdatePaypalOrderCustomerInputData | null;
8
+ shippingSettingsId: string | null;
9
+ shippingZoneRateId: string | null;
10
+ transactionId: string;
11
+ constructor(data?: Partial<UpdatePaypalOrderInputData>);
12
+ }
13
+ export declare class UpdatePaypalOrderInput extends UpdatePaypalOrderInputData {
14
+ }
15
+ export declare type PartialUpdatePaypalOrderInput = Partial<UpdatePaypalOrderInput>;
16
+ export declare type ReadOnlyUpdatePaypalOrderInput = DeepReadonly<UpdatePaypalOrderInput>;
@@ -1,9 +1,11 @@
1
+ /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
1
2
  import { ConfigType, APIResponse } from "@ikas/fe-api-client";
2
3
  import { CreateSaleTransactionWithCartInput, CreatePaypalOrderResponse } from "../types";
3
4
  declare const createPaypalOrder: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<CreatePaypalOrderResponse> | APIResponse<undefined>>;
4
5
  export default createPaypalOrder;
5
6
  export declare type QueryParams = {
6
7
  input: CreateSaleTransactionWithCartInput;
8
+ isPayNow?: boolean | null;
7
9
  };
8
10
  export declare enum ResponseField {
9
11
  FAIL_URL = "failUrl",
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as r}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as n,APIResponse as e,fetchQuery as a}from"@ikas/fe-api-client";var i,s=function(i,s,l){return t(void 0,void 0,void 0,(function(){var t,u,c,d;return r(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,a({operationName:"createPaypalOrder",config:l,variables:i,allReturnFields:o,fields:s,query:function(t){return"\n\t\t\t\tmutation createPaypalOrder (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t) {\n\t\t\t\t\tcreatePaypalOrder (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=r.sent(),u=t.data,c=t.errors,[2,new e(null==u?void 0:u.createPaypalOrder,c)];case 2:return d=r.sent(),[2,n(d)];case 3:return[2]}}))}))},o="{failUrl returnUrl sessionToken transactionId }";!function(t){t.FAIL_URL="failUrl",t.RETURN_URL="returnUrl",t.SESSION_TOKEN="sessionToken",t.TRANSACTION_ID="transactionId"}(i||(i={}));export{i as ResponseField,s as default};
1
+ import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as e,fetchQuery as a}from"@ikas/fe-api-client";var i,o=function(i,o,l){return t(void 0,void 0,void 0,(function(){var t,u,c,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,a({operationName:"createPaypalOrder",config:l,variables:i,allReturnFields:s,fields:o,query:function(t){return"\n\t\t\t\tmutation createPaypalOrder (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t\t$isPayNow: Boolean,\n\t\t\t\t) {\n\t\t\t\t\tcreatePaypalOrder (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t\tisPayNow: $isPayNow,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=n.sent(),u=t.data,c=t.errors,[2,new e(null==u?void 0:u.createPaypalOrder,c)];case 2:return d=n.sent(),[2,r(d)];case 3:return[2]}}))}))},s="{failUrl returnUrl sessionToken transactionId }";!function(t){t.FAIL_URL="failUrl",t.RETURN_URL="returnUrl",t.SESSION_TOKEN="sessionToken",t.TRANSACTION_ID="transactionId"}(i||(i={}));export{i as ResponseField,o as default};
@@ -3,7 +3,7 @@ import { CreateSaleTransactionWithCartInput, GetPaypalClientIdResponse } from ".
3
3
  declare const getPaypalClientId: (variables: QueryParams, fields?: string[], config?: ConfigType) => Promise<APIResponse<GetPaypalClientIdResponse> | APIResponse<undefined>>;
4
4
  export default getPaypalClientId;
5
5
  export declare type QueryParams = {
6
- input: CreateSaleTransactionWithCartInput;
6
+ input?: CreateSaleTransactionWithCartInput | null;
7
7
  };
8
8
  export declare enum ResponseField {
9
9
  CLIENT_ID = "clientId",
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as a,fetchQuery as i}from"@ikas/fe-api-client";var r,l=function(r,l,u){return t(void 0,void 0,void 0,(function(){var t,s,c,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i({operationName:"getPaypalClientId",config:u,variables:r,allReturnFields:o,fields:l,query:function(t){return"\n\t\t\t\tmutation getPaypalClientId (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput!,\n\t\t\t\t) {\n\t\t\t\t\tgetPaypalClientId (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=n.sent(),s=t.data,c=t.errors,[2,new a(null==s?void 0:s.getPaypalClientId,c)];case 2:return d=n.sent(),[2,e(d)];case 3:return[2]}}))}))},o="{clientId merchantClientId merchantId }";!function(t){t.CLIENT_ID="clientId",t.MERCHANT_CLIENT_ID="merchantClientId",t.MERCHANT_ID="merchantId"}(r||(r={}));export{r as ResponseField,l as default};
1
+ import{__awaiter as t,__generator as n}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as e,APIResponse as a,fetchQuery as i}from"@ikas/fe-api-client";var r,l=function(r,l,u){return t(void 0,void 0,void 0,(function(){var t,s,c,d;return n(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i({operationName:"getPaypalClientId",config:u,variables:r,allReturnFields:o,fields:l,query:function(t){return"\n\t\t\t\tmutation getPaypalClientId (\n\t\t\t\t\t$input: CreateSaleTransactionWithCartInput,\n\t\t\t\t) {\n\t\t\t\t\tgetPaypalClientId (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=n.sent(),s=t.data,c=t.errors,[2,new a(null==s?void 0:s.getPaypalClientId,c)];case 2:return d=n.sent(),[2,e(d)];case 3:return[2]}}))}))},o="{clientId merchantClientId merchantId }";!function(t){t.CLIENT_ID="clientId",t.MERCHANT_CLIENT_ID="merchantClientId",t.MERCHANT_ID="merchantId"}(r||(r={}));export{r as ResponseField,l as default};
@@ -0,0 +1,8 @@
1
+ /** DO NOT EDIT - GENERATED AUTO BY IKAS API-CLIENT **/
2
+ import { ConfigType, APIResponse } from "@ikas/fe-api-client";
3
+ import { UpdatePaypalOrderInput } from "../types";
4
+ declare const updatePaypalOrder: (variables: QueryParams, config?: ConfigType) => Promise<APIResponse<boolean> | APIResponse<undefined>>;
5
+ export default updatePaypalOrder;
6
+ export declare type QueryParams = {
7
+ input: UpdatePaypalOrderInput;
8
+ };
@@ -0,0 +1 @@
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as r,APIResponse as a,fetchQuery as n}from"@ikas/fe-api-client";var i=function(i,u){return t(void 0,void 0,void 0,(function(){var t,p,o,s;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,n({operationName:"updatePaypalOrder",config:u,variables:i,query:"\n\t\t\t\tmutation updatePaypalOrder (\n\t\t\t\t\t$input: UpdatePaypalOrderInput!,\n\t\t\t\t) {\n\t\t\t\t\tupdatePaypalOrder (\n\t\t\t\t\t\tinput: $input,\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t"})];case 1:return t=e.sent(),p=t.data,o=t.errors,[2,new a(null==p?void 0:p.updatePaypalOrder,o)];case 2:return s=e.sent(),[2,r(s)];case 3:return[2]}}))}))};export{i as default};
@@ -27,6 +27,7 @@ export declare enum ResponseField {
27
27
  OPTIONS__REQUIRED = "options.required",
28
28
  PHONE_REQUIREMENT = "phoneRequirement",
29
29
  POSTAL_CODE_REQUIREMENT = "postalCodeRequirement",
30
+ SHOW_BILLING_ADDRESS_ON_SHIPPING_STEP = "showBillingAddressOnShippingStep",
30
31
  SHOW_CHECKOUT_NOTE = "showCheckoutNote",
31
32
  SHOW_COMPANY_INFO_IN_SHIPPING_ADDRESS = "showCompanyInfoInShippingAddress",
32
33
  SHOW_TERMS_AND_CONDITIONS_CHECKBOX = "showTermsAndConditionsCheckbox",
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as i,APIResponse as n,fetchQuery as o}from"@ikas/fe-api-client";var r,s=function(r,s,_){return t(void 0,void 0,void 0,(function(){var t,E,c,I;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o({operationName:"listCheckoutSettings",config:_,variables:r,allReturnFields:d,fields:s,query:function(t){return"\n\t\t\t\tquery listCheckoutSettings (\n\t\t\t\t\t$id: StringFilterInput,\n\t\t\t\t\t$includeDeleted: Boolean,\n\t\t\t\t\t$storefrontId: StringFilterInput,\n\t\t\t\t) {\n\t\t\t\t\tlistCheckoutSettings (\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t\tincludeDeleted: $includeDeleted,\n\t\t\t\t\t\tstorefrontId: $storefrontId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),E=t.data,c=t.errors,[2,new n(null==E?void 0:E.listCheckoutSettings,c)];case 2:return I=e.sent(),[2,i(I)];case 3:return[2]}}))}))},d="{corporateInvoiceRequirement couponCodeRequirement createdAt deleted giftPackagePriceList {currencyCode currencySymbol price priceListId } id identityNumberRequirement isAccountRequired isGiftPackageEnabled isQuickRegistrationEnabled isShowPostalCode isTermsAndConditionsDefaultChecked options {name required } phoneRequirement postalCodeRequirement showCheckoutNote showCompanyInfoInShippingAddress showTermsAndConditionsCheckbox storefrontId updatedAt }";!function(t){t.CORPORATE_INVOICE_REQUIREMENT="corporateInvoiceRequirement",t.COUPON_CODE_REQUIREMENT="couponCodeRequirement",t.CREATED_AT="createdAt",t.DELETED="deleted",t.GIFT_PACKAGE_PRICE_LIST__CURRENCY_CODE="giftPackagePriceList.currencyCode",t.GIFT_PACKAGE_PRICE_LIST__CURRENCY_SYMBOL="giftPackagePriceList.currencySymbol",t.GIFT_PACKAGE_PRICE_LIST__PRICE="giftPackagePriceList.price",t.GIFT_PACKAGE_PRICE_LIST__PRICE_LIST_ID="giftPackagePriceList.priceListId",t.ID="id",t.IDENTITY_NUMBER_REQUIREMENT="identityNumberRequirement",t.IS_ACCOUNT_REQUIRED="isAccountRequired",t.IS_GIFT_PACKAGE_ENABLED="isGiftPackageEnabled",t.IS_QUICK_REGISTRATION_ENABLED="isQuickRegistrationEnabled",t.IS_SHOW_POSTAL_CODE="isShowPostalCode",t.IS_TERMS_AND_CONDITIONS_DEFAULT_CHECKED="isTermsAndConditionsDefaultChecked",t.OPTIONS__NAME="options.name",t.OPTIONS__REQUIRED="options.required",t.PHONE_REQUIREMENT="phoneRequirement",t.POSTAL_CODE_REQUIREMENT="postalCodeRequirement",t.SHOW_CHECKOUT_NOTE="showCheckoutNote",t.SHOW_COMPANY_INFO_IN_SHIPPING_ADDRESS="showCompanyInfoInShippingAddress",t.SHOW_TERMS_AND_CONDITIONS_CHECKBOX="showTermsAndConditionsCheckbox",t.STOREFRONT_ID="storefrontId",t.UPDATED_AT="updatedAt"}(r||(r={}));export{r as ResponseField,s as default};
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{handleAPIError as i,APIResponse as n,fetchQuery as o}from"@ikas/fe-api-client";var r,s=function(r,s,_){return t(void 0,void 0,void 0,(function(){var t,E,I,c;return e(this,(function(e){switch(e.label){case 0:return e.trys.push([0,2,,3]),[4,o({operationName:"listCheckoutSettings",config:_,variables:r,allReturnFields:d,fields:s,query:function(t){return"\n\t\t\t\tquery listCheckoutSettings (\n\t\t\t\t\t$id: StringFilterInput,\n\t\t\t\t\t$includeDeleted: Boolean,\n\t\t\t\t\t$storefrontId: StringFilterInput,\n\t\t\t\t) {\n\t\t\t\t\tlistCheckoutSettings (\n\t\t\t\t\t\tid: $id,\n\t\t\t\t\t\tincludeDeleted: $includeDeleted,\n\t\t\t\t\t\tstorefrontId: $storefrontId,\n\t\t\t\t\t) ".concat(t,"\n\t\t\t\t}\n\t\t\t")}})];case 1:return t=e.sent(),E=t.data,I=t.errors,[2,new n(null==E?void 0:E.listCheckoutSettings,I)];case 2:return c=e.sent(),[2,i(c)];case 3:return[2]}}))}))},d="{corporateInvoiceRequirement couponCodeRequirement createdAt deleted giftPackagePriceList {currencyCode currencySymbol price priceListId } id identityNumberRequirement isAccountRequired isGiftPackageEnabled isQuickRegistrationEnabled isShowPostalCode isTermsAndConditionsDefaultChecked options {name required } phoneRequirement postalCodeRequirement showBillingAddressOnShippingStep showCheckoutNote showCompanyInfoInShippingAddress showTermsAndConditionsCheckbox storefrontId updatedAt }";!function(t){t.CORPORATE_INVOICE_REQUIREMENT="corporateInvoiceRequirement",t.COUPON_CODE_REQUIREMENT="couponCodeRequirement",t.CREATED_AT="createdAt",t.DELETED="deleted",t.GIFT_PACKAGE_PRICE_LIST__CURRENCY_CODE="giftPackagePriceList.currencyCode",t.GIFT_PACKAGE_PRICE_LIST__CURRENCY_SYMBOL="giftPackagePriceList.currencySymbol",t.GIFT_PACKAGE_PRICE_LIST__PRICE="giftPackagePriceList.price",t.GIFT_PACKAGE_PRICE_LIST__PRICE_LIST_ID="giftPackagePriceList.priceListId",t.ID="id",t.IDENTITY_NUMBER_REQUIREMENT="identityNumberRequirement",t.IS_ACCOUNT_REQUIRED="isAccountRequired",t.IS_GIFT_PACKAGE_ENABLED="isGiftPackageEnabled",t.IS_QUICK_REGISTRATION_ENABLED="isQuickRegistrationEnabled",t.IS_SHOW_POSTAL_CODE="isShowPostalCode",t.IS_TERMS_AND_CONDITIONS_DEFAULT_CHECKED="isTermsAndConditionsDefaultChecked",t.OPTIONS__NAME="options.name",t.OPTIONS__REQUIRED="options.required",t.PHONE_REQUIREMENT="phoneRequirement",t.POSTAL_CODE_REQUIREMENT="postalCodeRequirement",t.SHOW_BILLING_ADDRESS_ON_SHIPPING_STEP="showBillingAddressOnShippingStep",t.SHOW_CHECKOUT_NOTE="showCheckoutNote",t.SHOW_COMPANY_INFO_IN_SHIPPING_ADDRESS="showCompanyInfoInShippingAddress",t.SHOW_TERMS_AND_CONDITIONS_CHECKBOX="showTermsAndConditionsCheckbox",t.STOREFRONT_ID="storefrontId",t.UPDATED_AT="updatedAt"}(r||(r={}));export{r as ResponseField,s as default};
@@ -1088,6 +1088,7 @@ export interface CheckoutSettings {
1088
1088
  options: CheckoutOption[] | null;
1089
1089
  phoneRequirement: CheckoutRequirementEnum;
1090
1090
  postalCodeRequirement: CheckoutRequirementEnum | null;
1091
+ showBillingAddressOnShippingStep: boolean | null;
1091
1092
  showCheckoutNote: boolean | null;
1092
1093
  showCompanyInfoInShippingAddress: boolean | null;
1093
1094
  showTermsAndConditionsCheckbox: boolean;
@@ -3521,6 +3522,26 @@ export interface UpdateCartCampaignOfferInput {
3521
3522
  quantity?: number | null;
3522
3523
  variantId: string;
3523
3524
  }
3525
+ export interface UpdatePaypalOrderAddressInput {
3526
+ city?: string | null;
3527
+ country?: string | null;
3528
+ postalCode?: string | null;
3529
+ state?: string | null;
3530
+ }
3531
+ export interface UpdatePaypalOrderCustomerInput {
3532
+ email?: string | null;
3533
+ firstName?: string | null;
3534
+ id?: string | null;
3535
+ lastName?: string | null;
3536
+ }
3537
+ export interface UpdatePaypalOrderInput {
3538
+ address?: UpdatePaypalOrderAddressInput | null;
3539
+ cartId: string;
3540
+ customer?: UpdatePaypalOrderCustomerInput | null;
3541
+ shippingSettingsId?: string | null;
3542
+ shippingZoneRateId?: string | null;
3543
+ transactionId: string;
3544
+ }
3524
3545
  export declare enum StorefrontPopupDeviceTypeEnum {
3525
3546
  ALL = "ALL",
3526
3547
  DESKTOP = "DESKTOP",
@@ -11,11 +11,12 @@ import { QueryParams as CreateStripePaymentIntentParams } from "../../__api/muta
11
11
  import { QueryParams as CreateKlarnaClientTokenParams } from "../../__api/mutations/createKlarnaClientToken";
12
12
  import { QueryParams as GetPayPalClientIdTokenParams } from "../../__api/mutations/getPaypalClientId";
13
13
  import { QueryParams as CreatePayPalOrderParams } from "../../__api/mutations/createPaypalOrder";
14
+ import { QueryParams as UpdatePayPalOrderParams } from "../../__api/mutations/updatePaypalOrder";
14
15
  import { QueryParams as ListProductFileQueryParams } from "../../__api/queries/listProductFile";
15
16
  import { QueryParams as CheckCartStocksQueryParams } from "../../__api/queries/checkCartStocks";
16
17
  import { QueryParams as CreateAdyenBalancePlatformPaymentParams } from "../../__api/mutations/createAdyenBalancePlatformPaymentSession";
17
18
  import { IkasAvailableStockLocation, IkasCheckoutSettings, IkasPaymentGateway, IkasStockLocation } from "@ikas/storefront-models";
18
- export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams, GetPayPalClientIdTokenParams, CreatePayPalOrderParams, ListProductFileQueryParams, CheckCartStocksQueryParams, CreateAdyenBalancePlatformPaymentParams, };
19
+ export type { CreateSaleTransactionQueryParams, ListPaymentGatewayQueryParams, RetrieveInstallmentInfoQueryParams, CheckStocksQueryParams, ListCheckoutSettingsQueryParams, GetAvailableShippingCountriesQueryParams, ListStockLocationQueryParams, GetAvailableStockLocationQueryParams, CreateStripePaymentIntentParams, CreateKlarnaClientTokenParams, GetPayPalClientIdTokenParams, CreatePayPalOrderParams, UpdatePayPalOrderParams, ListProductFileQueryParams, CheckCartStocksQueryParams, CreateAdyenBalancePlatformPaymentParams, };
19
20
  export declare function createSaleTransactionWithCart(params: CreateSaleTransactionQueryParams): Promise<APIResponse<import("../..").TransactionResponse> | APIResponse<undefined>>;
20
21
  export declare function listPaymentGateway(params: ListPaymentGatewayQueryParams): Promise<APIResponse<IkasPaymentGateway[]>>;
21
22
  export declare function listProductFile(params: ListProductFileQueryParams): Promise<APIResponse<undefined> | APIResponse<import("../../__api/types").ProductFile[]>>;
@@ -31,3 +32,4 @@ export declare function createKlarnaClientToken(params: CreateKlarnaClientTokenP
31
32
  export declare function createAdyenBalancePlatformPaymentSession(params: CreateAdyenBalancePlatformPaymentParams): Promise<APIResponse<import("../..").CreateAdyenPlatformSessionResponse>>;
32
33
  export declare function getPayPalClientId(params: GetPayPalClientIdTokenParams): Promise<APIResponse<import("../..").GetPaypalClientIdResponse>>;
33
34
  export declare function createPayPalOrder(params: CreatePayPalOrderParams): Promise<APIResponse<import("../..").CreatePaypalOrderResponse>>;
35
+ export declare function updatePaypalOrder(params: UpdatePayPalOrderParams): Promise<APIResponse<boolean>>;
@@ -1 +1 @@
1
- import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as n}from"@ikas/fe-api-client";function r(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/createSaleTransactionWithCart.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function i(r){return t(this,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listPaymentGateway.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),i=t.data||[],[2,new n(i,t.graphQLErrors)]}}))}))}function s(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listProductFile.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function a(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/retrieveInstallmentInfo.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function u(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkStocks.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function o(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkCartStocks.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function c(r){return t(this,void 0,void 0,(function(){var t,i,s,a,u;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().default,s=t,a=[r],[4,w()];case 2:return[4,s.apply(void 0,a.concat([e.sent()]))];case 3:return i=e.sent(),u=i.data||[],[2,new n(u,i.graphQLErrors)]}}))}))}function l(n){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/getAvailableShippingCountries.js")];case 1:return[4,(0,t.sent().default)(n)];case 2:return[2,t.sent()]}}))}))}function f(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listStockLocation.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function d(r){var i;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getAvailableStockLocations.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(null===(i=t.data)||void 0===i?void 0:i.stockLocations,t.graphQLErrors)]}}))}))}function h(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createStripePaymentIntent.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function p(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createKlarnaClientToken.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function v(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createAdyenBalancePlatformPaymentSession.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function _(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/getPaypalClientId.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function m(r){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createPaypalOrder.js")];case 1:return[4,(0,e.sent().default)(r)];case 2:return t=e.sent(),[2,new n(t.data,t.graphQLErrors)]}}))}))}function w(){return t(this,void 0,void 0,(function(){var t,n;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().ResponseField,n=["IS_SHOW_POSTAL_CODE"],[2,Object.entries(t).filter((function(t){var e=t[0];return!n.includes(e)})).map((function(t){return t[1]}))]}}))}))}export{o as checkCartStocks,u as checkStocks,v as createAdyenBalancePlatformPaymentSession,p as createKlarnaClientToken,m as createPayPalOrder,r as createSaleTransactionWithCart,h as createStripePaymentIntent,l as getAvailableShippingCountries,d as getAvailableStockLocations,_ as getPayPalClientId,c as listCheckoutSettings,i as listPaymentGateway,s as listProductFile,f as listStockLocations,a as retrieveInstallmentInfo};
1
+ import{__awaiter as t,__generator as e}from'./../../ext/tslib/tslib.es6.js';import{APIResponse as r}from"@ikas/fe-api-client";function n(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/createSaleTransactionWithCart.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function i(n){return t(this,void 0,void 0,(function(){var t,i;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listPaymentGateway.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),i=t.data||[],[2,new r(i,t.graphQLErrors)]}}))}))}function s(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/listProductFile.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function a(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/mutations/retrieveInstallmentInfo.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function u(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkStocks.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function o(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/checkCartStocks.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function c(n){return t(this,void 0,void 0,(function(){var t,i,s,a,u;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().default,s=t,a=[n],[4,b()];case 2:return[4,s.apply(void 0,a.concat([e.sent()]))];case 3:return i=e.sent(),u=i.data||[],[2,new r(u,i.graphQLErrors)]}}))}))}function l(r){return t(this,void 0,void 0,(function(){return e(this,(function(t){switch(t.label){case 0:return[4,import("../../__api/queries/getAvailableShippingCountries.js")];case 1:return[4,(0,t.sent().default)(r)];case 2:return[2,t.sent()]}}))}))}function f(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listStockLocation.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function d(n){var i;return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/getAvailableStockLocations.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(null===(i=t.data)||void 0===i?void 0:i.stockLocations,t.graphQLErrors)]}}))}))}function h(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createStripePaymentIntent.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function p(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createKlarnaClientToken.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function v(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createAdyenBalancePlatformPaymentSession.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function _(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/getPaypalClientId.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function m(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/createPaypalOrder.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function w(n){return t(this,void 0,void 0,(function(){var t;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/mutations/updatePaypalOrder.js")];case 1:return[4,(0,e.sent().default)(n)];case 2:return t=e.sent(),[2,new r(t.data,t.graphQLErrors)]}}))}))}function b(){return t(this,void 0,void 0,(function(){var t,r;return e(this,(function(e){switch(e.label){case 0:return[4,import("../../__api/queries/listCheckoutSettings.js")];case 1:return t=e.sent().ResponseField,r=["IS_SHOW_POSTAL_CODE"],[2,Object.entries(t).filter((function(t){var e=t[0];return!r.includes(e)})).map((function(t){return t[1]}))]}}))}))}export{o as checkCartStocks,u as checkStocks,v as createAdyenBalancePlatformPaymentSession,p as createKlarnaClientToken,m as createPayPalOrder,n as createSaleTransactionWithCart,h as createStripePaymentIntent,l as getAvailableShippingCountries,d as getAvailableStockLocations,_ as getPayPalClientId,c as listCheckoutSettings,i as listPaymentGateway,s as listProductFile,f as listStockLocations,a as retrieveInstallmentInfo,w as updatePaypalOrder};
@@ -13,4 +13,9 @@ export declare type IkasStorefrontSettings = {
13
13
  merchantSettings: IkasMerchantSettings;
14
14
  customerSettings?: IkasCustomerSettings;
15
15
  storefrontPopups: IkasStorefrontPopup[];
16
+ paypalSettings: IkasPaypalSettings[] | null;
17
+ };
18
+ export declare type IkasPaypalSettings = {
19
+ label: string;
20
+ value: string | null;
16
21
  };
package/build/index.js CHANGED
@@ -1 +1 @@
1
- export{setAPIClientConfig}from"./index2.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{CampaignOfferTargetPageTypeEnum,GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,TransactionCardAssociationEnum}from"./__api/types/index.js";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,createCart,getCartById,removeGiftCardFromCart,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,createAdyenBalancePlatformPaymentSession,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo}from"./api/checkout/index.js";export{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,deactivateCustomer,exportCustomerPersonelData,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,listOrderTransactionsWithPrices,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode}from"./api/customer/index.js";export{getDigitalProductFileDownloadUrl,getProductOptionFileUrl,uploadFile}from"./api/file-upload/index.js";export{listHTMLMetaData}from"./api/html-meta-data/index.js";export{getAvailableShippingZones,getMyCountry,listCity,listCountry,listDistrict,listState}from"./api/location/index.js";export{getMasterPassRequestToken}from"./api/masterpass/index.js";export{listMerchantSettings}from"./api/merchant/index.js";export{getOrderLineFile,getProductCampaigns,getProductFilterData,getRelatedProducts,getSuggestedProducts,getVariantStockLocations,listCampaignOffer,listProductAttribute,listProductBackInStockRemind,listProductOptionSet,saveProductBackInStockRemind,searchProducts}from"./api/product/index.js";export{listRaffleMetaData,listRaffleParticipants,listStorefrontRaffle,saveRaffleParticipant}from"./api/raffle/index.js";export{getStorefrontSettings}from"./api/storefront/index.js";export{listStorefrontPopup}from"./api/storefront-popup/index.js";
1
+ export{setAPIClientConfig}from"./index2.js";export{SaveMyCustomerInput}from"./__api/models/SaveMyCustomerInput.js";export{SaveCartInput}from"./__api/models/SaveCartInput.js";export{CheckStocksLineInput}from"./__api/models/CheckStocksLineInput.js";export{CampaignOfferTargetPageTypeEnum,GetSuggestedProductsMethodEnum,MasterPassOperationTypeEnum,SortByDirectionEnum,SortByTypeEnum,TransactionCardAssociationEnum}from"./__api/types/index.js";export{APIResponse,Config as IkasAPIClientConfig}from"@ikas/fe-api-client";export{listBlog,listBlogCategory,listBlogMetaData}from"./api/blog/index.js";export{listProductBrand}from"./api/brand/index.js";export{addItemToCart,createCart,getCartById,removeGiftCardFromCart,saveCart,saveCartCouponCode,updateCartCampaignOffer}from"./api/cart/index.js";export{listCategory}from"./api/category/index.js";export{checkCartStocks,checkStocks,createAdyenBalancePlatformPaymentSession,createKlarnaClientToken,createPayPalOrder,createSaleTransactionWithCart,createStripePaymentIntent,getAvailableShippingCountries,getAvailableStockLocations,getPayPalClientId,listCheckoutSettings,listPaymentGateway,listProductFile,listStockLocations,retrieveInstallmentInfo,updatePaypalOrder}from"./api/checkout/index.js";export{IkasLoginError,IkasRegisterError,activateCustomer,checkEmail,createCustomerReview,createOrderRefundRequest,deactivateCustomer,exportCustomerPersonelData,forgotPassword,getCustomer,getLastViewedProducts,getOrderByEmail,getOrders,isFavoriteProduct,listCustomerAttribute,listCustomerReviewSummary,listCustomerReviews,listCustomerSettings,listFavoriteProducts,listOrderRefundSettings,listOrderTransactions,listOrderTransactionsWithPrices,login,recoverPassword,refreshToken,register,resendCustomerActivationMail,resendCustomerPhoneVerificationCode,saveCustomer,saveCustomerFormData,saveFavoriteProduct,saveLastViewedProducts,sendContactFormToMerchant,socialLogin,subscribeToMarketingNotifications,validateCustomerPhoneVerificationCode}from"./api/customer/index.js";export{getDigitalProductFileDownloadUrl,getProductOptionFileUrl,uploadFile}from"./api/file-upload/index.js";export{listHTMLMetaData}from"./api/html-meta-data/index.js";export{getAvailableShippingZones,getMyCountry,listCity,listCountry,listDistrict,listState}from"./api/location/index.js";export{getMasterPassRequestToken}from"./api/masterpass/index.js";export{listMerchantSettings}from"./api/merchant/index.js";export{getOrderLineFile,getProductCampaigns,getProductFilterData,getRelatedProducts,getSuggestedProducts,getVariantStockLocations,listCampaignOffer,listProductAttribute,listProductBackInStockRemind,listProductOptionSet,saveProductBackInStockRemind,searchProducts}from"./api/product/index.js";export{listRaffleMetaData,listRaffleParticipants,listStorefrontRaffle,saveRaffleParticipant}from"./api/raffle/index.js";export{getStorefrontSettings}from"./api/storefront/index.js";export{listStorefrontPopup}from"./api/storefront-popup/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront-api",
3
- "version": "5.0.36",
3
+ "version": "5.0.38",
4
4
  "author": "ikas",
5
5
  "license": "ISC",
6
6
  "description": "API functions that returns models from the ikas-storefront-models package.",
@@ -17,8 +17,8 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@rollup/plugin-commonjs": "^22.0.0",
20
- "@ikas/storefront-config": "^5.0.36",
21
- "@ikas/storefront-models": "^5.0.36",
20
+ "@ikas/storefront-config": "^5.0.38",
21
+ "@ikas/storefront-models": "^5.0.38",
22
22
  "@rollup/plugin-node-resolve": "^13.3.0",
23
23
  "rollup-plugin-rename-node-modules": "^1.2.0",
24
24
  "prettier": "^2.2.1",
@@ -34,8 +34,8 @@
34
34
  "@ikas/fe-api-client": "^1.0.19"
35
35
  },
36
36
  "peerDependencies": {
37
- "@ikas/storefront-config": "^5.0.36",
38
- "@ikas/storefront-models": "^5.0.36",
37
+ "@ikas/storefront-config": "^5.0.38",
38
+ "@ikas/storefront-models": "^5.0.38",
39
39
  "@ikas/fe-api-client": "^1.0.18",
40
40
  "axios": "^0.26.0",
41
41
  "ts-essentials": "^7.0.1"