@shopware/api-client 1.2.1 → 1.3.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/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as hookable from 'hookable';
2
- import { FetchOptions, ResponseType, FetchResponse } from 'ofetch';
2
+ import { FetchOptions, ResponseType, FetchResponse, FetchContext } from 'ofetch';
3
3
 
4
4
  /**
5
5
  * Source: https://github.com/shopware/shopware/blob/trunk/src/Core/PlatformRequest.php#L16
@@ -30,7 +30,7 @@ type ClientHeadersProxy = ClientHeaders & {
30
30
  * This file is auto-generated. Do not make direct changes to the file.
31
31
  * Instead override it in your shopware.d.ts file.
32
32
  *
33
- * Shopware API version: 6.6.8.0
33
+ * Shopware API version: 6.6.10.0
34
34
  *
35
35
  */
36
36
  type GenericRecord$1 =
@@ -521,6 +521,8 @@ type Schemas$1 = {
521
521
  /** Format: date-time */
522
522
  readonly createdAt?: string;
523
523
  customFields?: GenericRecord$1;
524
+ /** Runtime field, cannot be used as part of the criteria. */
525
+ default?: boolean;
524
526
  id: string;
525
527
  name: string;
526
528
  permissions?: GenericRecord$1[];
@@ -663,6 +665,7 @@ type Schemas$1 = {
663
665
  languageId: string;
664
666
  lastName: string;
665
667
  role?: components$1["schemas"]["B2bComponentsRole"];
668
+ status?: string;
666
669
  /** Format: date-time */
667
670
  readonly updatedAt?: string;
668
671
  };
@@ -1303,22 +1306,12 @@ type Schemas$1 = {
1303
1306
  };
1304
1307
  id?: string;
1305
1308
  mobileBehavior?: string;
1309
+ name?: string;
1306
1310
  page?: components$1["schemas"]["CmsPage"];
1307
1311
  pageId: string;
1308
1312
  /** Format: int64 */
1309
1313
  position: number;
1310
1314
  sizingMode?: string;
1311
- translated: {
1312
- backgroundColor: string;
1313
- backgroundMediaId: string;
1314
- backgroundMediaMode: string;
1315
- cmsPageVersionId: string;
1316
- cssClass: string;
1317
- mobileBehavior: string;
1318
- pageId: string;
1319
- sizingMode: string;
1320
- type: string;
1321
- };
1322
1315
  /** @enum {string} */
1323
1316
  type: "default" | "sidebar";
1324
1317
  /** Format: date-time */
@@ -1981,6 +1974,8 @@ type Schemas$1 = {
1981
1974
  customFields?: GenericRecord$1;
1982
1975
  deepLinkCode: string;
1983
1976
  dependentDocuments?: components$1["schemas"]["Document"][];
1977
+ documentA11yMediaFile?: components$1["schemas"]["Media"];
1978
+ documentA11yMediaFileId?: string;
1984
1979
  documentMediaFile?: components$1["schemas"]["Media"];
1985
1980
  documentMediaFileId?: string;
1986
1981
  documentNumber?: string;
@@ -2120,6 +2115,24 @@ type Schemas$1 = {
2120
2115
  /** Format: date-time */
2121
2116
  readonly updatedAt?: string;
2122
2117
  };
2118
+ DsrCmsSlide: {
2119
+ cmsSection?: components$1["schemas"]["CmsSection"];
2120
+ cmsSectionId: string;
2121
+ cmsSectionVersionId?: string;
2122
+ /** Format: date-time */
2123
+ readonly createdAt?: string;
2124
+ id: string;
2125
+ slideName: string;
2126
+ translated: {
2127
+ cmsSectionId: string;
2128
+ cmsSectionVersionId: string;
2129
+ slideName: string;
2130
+ versionId: string;
2131
+ };
2132
+ /** Format: date-time */
2133
+ readonly updatedAt?: string;
2134
+ versionId?: string;
2135
+ };
2123
2136
  DsrInteraction: {
2124
2137
  /** Format: date-time */
2125
2138
  readonly createdAt?: string;
@@ -2999,6 +3012,21 @@ type Schemas$1 = {
2999
3012
  deliveries?: components$1["schemas"]["OrderDelivery"][];
3000
3013
  documents: components$1["schemas"]["Document"][];
3001
3014
  extensions?: {
3015
+ orderEmployee?: {
3016
+ data?: {
3017
+ /** @example 5ea451c08a87db806089c4031601c29a */
3018
+ id?: string;
3019
+ /** @example b2b_order_employee */
3020
+ type?: string;
3021
+ }[];
3022
+ links?: {
3023
+ /**
3024
+ * Format: uri-reference
3025
+ * @example /order/a240fa27925a635b08dc28c9e4f9216d/orderEmployee
3026
+ */
3027
+ related?: string;
3028
+ };
3029
+ };
3002
3030
  quote?: {
3003
3031
  data?: {
3004
3032
  /** @example 7a674c327bfa07f7c1204fb38ca6ef3b */
@@ -5738,6 +5766,10 @@ type Schemas$1 = {
5738
5766
  displayGross?: boolean;
5739
5767
  name?: string;
5740
5768
  };
5769
+ languageInfo: {
5770
+ localeCode: string;
5771
+ name: string;
5772
+ };
5741
5773
  paymentMethod?: components$1["schemas"]["PaymentMethod"];
5742
5774
  salesChannel: components$1["schemas"]["SalesChannel"];
5743
5775
  shippingLocation?: {
@@ -7784,6 +7816,1390 @@ type Schemas$1 = {
7784
7816
  components$1["schemas"]["pagination"];
7785
7817
  meta?: components$1["schemas"]["meta"];
7786
7818
  };
7819
+ swag_paypal_v1_capture: {
7820
+ amount: components$1["schemas"]["swag_paypal_v1_common_amount"];
7821
+ create_time: string;
7822
+ id: string;
7823
+ is_final_capture: boolean;
7824
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
7825
+ parent_payment: string;
7826
+ reason_code: string;
7827
+ state: string;
7828
+ transaction_fee: components$1["schemas"]["swag_paypal_v1_capture_transaction_fee"];
7829
+ update_time: string;
7830
+ };
7831
+ swag_paypal_v1_capture_transaction_fee: components$1["schemas"]["swag_paypal_v1_common_value"];
7832
+ swag_paypal_v1_client_token: {
7833
+ client_token: string;
7834
+ /**
7835
+ * Format: date-time
7836
+ * Calculated expiration date
7837
+ */
7838
+ expire_date_time: string;
7839
+ /** The lifetime of the access token, in seconds. */
7840
+ expires_in: number;
7841
+ };
7842
+ swag_paypal_v1_common_address: {
7843
+ city: string;
7844
+ country_code: string;
7845
+ line1: string;
7846
+ line2: string | null;
7847
+ phone: string | null;
7848
+ postal_code: string;
7849
+ state: string | null;
7850
+ };
7851
+ swag_paypal_v1_common_amount: {
7852
+ currency: string;
7853
+ details: components$1["schemas"]["swag_paypal_v1_common_details"];
7854
+ total: string;
7855
+ };
7856
+ swag_paypal_v1_common_details: {
7857
+ discount: string;
7858
+ handling_fee: string;
7859
+ insurance: string;
7860
+ shipping: string;
7861
+ shipping_discount: string;
7862
+ subtotal: string;
7863
+ tax: string;
7864
+ };
7865
+ swag_paypal_v1_common_link: {
7866
+ enc_type: string | null;
7867
+ href: string;
7868
+ method: string;
7869
+ rel: string;
7870
+ };
7871
+ swag_paypal_v1_common_money: {
7872
+ currency_code: string;
7873
+ value: string;
7874
+ };
7875
+ swag_paypal_v1_common_value: {
7876
+ currency: string;
7877
+ value: string;
7878
+ };
7879
+ swag_paypal_v1_create_webhooks: {
7880
+ event_types: components$1["schemas"]["swag_paypal_v1_create_webhooks_event_type"][];
7881
+ url: string;
7882
+ };
7883
+ swag_paypal_v1_create_webhooks_event_type: {
7884
+ name: string;
7885
+ };
7886
+ swag_paypal_v1_disputes: {
7887
+ items: components$1["schemas"]["swag_paypal_v1_disputes_item"][] | null;
7888
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
7889
+ };
7890
+ swag_paypal_v1_disputes_common_buyer: {
7891
+ name: string;
7892
+ };
7893
+ swag_paypal_v1_disputes_common_item: {
7894
+ dispute_amount: components$1["schemas"]["swag_paypal_v1_common_money"];
7895
+ item_description: string;
7896
+ item_id: string;
7897
+ item_quantity: string;
7898
+ notes: string;
7899
+ partner_transaction_id: string;
7900
+ reason: string;
7901
+ };
7902
+ swag_paypal_v1_disputes_common_product_details: {
7903
+ product_received: string;
7904
+ product_received_time: string;
7905
+ purchase_url: string;
7906
+ return_details: components$1["schemas"]["swag_paypal_v1_disputes_common_return_details"];
7907
+ sub_reasons: components$1["schemas"]["swag_paypal_v1_disputes_common_sub_reason"][];
7908
+ };
7909
+ swag_paypal_v1_disputes_common_return_details: {
7910
+ mode: string;
7911
+ receipt: boolean;
7912
+ return_confirmation_number: string;
7913
+ return_time: string;
7914
+ returned: boolean;
7915
+ };
7916
+ swag_paypal_v1_disputes_common_seller: {
7917
+ email: string;
7918
+ merchant_id: string;
7919
+ name: string;
7920
+ };
7921
+ swag_paypal_v1_disputes_common_service_details: {
7922
+ description: string;
7923
+ note: string;
7924
+ purchase_url: string;
7925
+ service_started: string;
7926
+ sub_reasons: components$1["schemas"]["swag_paypal_v1_disputes_common_sub_reason"][];
7927
+ };
7928
+ swag_paypal_v1_disputes_common_sub_reason: {
7929
+ sub_reason: string;
7930
+ };
7931
+ swag_paypal_v1_disputes_common_transaction: {
7932
+ buyer: components$1["schemas"]["swag_paypal_v1_disputes_common_buyer"];
7933
+ buyer_transaction_id: string;
7934
+ create_time: string;
7935
+ custom: string;
7936
+ gross_amount: components$1["schemas"]["swag_paypal_v1_common_money"];
7937
+ invoice_number: string;
7938
+ items: components$1["schemas"]["swag_paypal_v1_disputes_common_item"][];
7939
+ reference_id: string;
7940
+ seller: components$1["schemas"]["swag_paypal_v1_disputes_common_seller"];
7941
+ seller_transaction_id: string;
7942
+ transaction_status: string;
7943
+ };
7944
+ swag_paypal_v1_disputes_item: {
7945
+ adjudications: components$1["schemas"]["swag_paypal_v1_disputes_item_adjudication"][];
7946
+ buyer_response_due_date: string | null;
7947
+ communication_details:
7948
+ | components$1["schemas"]["swag_paypal_v1_disputes_item_communication_details"]
7949
+ | null;
7950
+ create_time: string;
7951
+ dispute_amount: components$1["schemas"]["swag_paypal_v1_disputes_item_dispute_amount"];
7952
+ dispute_channel: string | null;
7953
+ dispute_id: string;
7954
+ dispute_life_cycle_stage: string;
7955
+ dispute_outcome:
7956
+ | components$1["schemas"]["swag_paypal_v1_disputes_item_dispute_outcome"]
7957
+ | null;
7958
+ /** @enum {string|null} */
7959
+ dispute_state:
7960
+ | "REQUIRED_ACTION"
7961
+ | "REQUIRED_OTHER_PARTY_ACTION"
7962
+ | "UNDER_PAYPAL_REVIEW"
7963
+ | "RESOLVED"
7964
+ | "OPEN_INQUIRIES"
7965
+ | "APPEALABLE"
7966
+ | null;
7967
+ disputed_transactions:
7968
+ | components$1["schemas"]["swag_paypal_v1_disputes_item_disputed_transaction"][]
7969
+ | null;
7970
+ evidences:
7971
+ | components$1["schemas"]["swag_paypal_v1_disputes_item_evidence"][]
7972
+ | null;
7973
+ extensions: components$1["schemas"]["swag_paypal_v1_disputes_item_extensions"];
7974
+ external_reason_code: string | null;
7975
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
7976
+ messages:
7977
+ | components$1["schemas"]["swag_paypal_v1_disputes_item_message"][]
7978
+ | null;
7979
+ money_movements: components$1["schemas"]["swag_paypal_v1_disputes_item_money_movement"][];
7980
+ offer: components$1["schemas"]["swag_paypal_v1_disputes_item_offer"] | null;
7981
+ partner_actions:
7982
+ | components$1["schemas"]["swag_paypal_v1_disputes_item_partner_action"][]
7983
+ | null;
7984
+ reason: string;
7985
+ refund_details:
7986
+ | components$1["schemas"]["swag_paypal_v1_disputes_item_refund_details"]
7987
+ | null;
7988
+ seller_response_due_date: string | null;
7989
+ status: string;
7990
+ supporting_info:
7991
+ | components$1["schemas"]["swag_paypal_v1_disputes_item_supporting_info"][]
7992
+ | null;
7993
+ update_time: string;
7994
+ };
7995
+ swag_paypal_v1_disputes_item_adjudication: {
7996
+ adjudication_time: string;
7997
+ dispute_life_cycle_stage: string;
7998
+ reason: string;
7999
+ type: string;
8000
+ };
8001
+ swag_paypal_v1_disputes_item_communication_details: {
8002
+ email: string;
8003
+ note: string;
8004
+ time_posted: string;
8005
+ };
8006
+ swag_paypal_v1_disputes_item_dispute_amount: components$1["schemas"]["swag_paypal_v1_common_money"];
8007
+ swag_paypal_v1_disputes_item_dispute_outcome: {
8008
+ amount_refunded: components$1["schemas"]["swag_paypal_v1_common_money"];
8009
+ outcome_code: string;
8010
+ };
8011
+ swag_paypal_v1_disputes_item_disputed_transaction: components$1["schemas"]["swag_paypal_v1_disputes_common_transaction"] & {
8012
+ seller_protection_eligible: boolean;
8013
+ };
8014
+ swag_paypal_v1_disputes_item_evidence: {
8015
+ documents: components$1["schemas"]["swag_paypal_v1_disputes_item_evidence_document"][];
8016
+ evidence_info: components$1["schemas"]["swag_paypal_v1_disputes_item_evidence_evidence_info"];
8017
+ evidence_type: string;
8018
+ item_id: string;
8019
+ notes: string;
8020
+ };
8021
+ swag_paypal_v1_disputes_item_evidence_document: {
8022
+ name: string;
8023
+ };
8024
+ swag_paypal_v1_disputes_item_evidence_evidence_info: {
8025
+ refund_ids: components$1["schemas"]["swag_paypal_v1_disputes_item_evidence_evidence_info_refund_id"][];
8026
+ tracking_info: components$1["schemas"]["swag_paypal_v1_disputes_item_evidence_evidence_info_tracking_info"][];
8027
+ };
8028
+ swag_paypal_v1_disputes_item_evidence_evidence_info_refund_id: {
8029
+ refund_id: string;
8030
+ };
8031
+ swag_paypal_v1_disputes_item_evidence_evidence_info_tracking_info: {
8032
+ carrier_name: string;
8033
+ carrier_name_other: string;
8034
+ tracking_number: string;
8035
+ tracking_url: string;
8036
+ };
8037
+ swag_paypal_v1_disputes_item_extensions: {
8038
+ billing_dispute_properties: components$1["schemas"]["swag_paypal_v1_disputes_item_extensions_billing_dispute_properties"];
8039
+ buyer_contacted_channel: string;
8040
+ buyer_contacted_time: string;
8041
+ merchandize_dispute_properties: components$1["schemas"]["swag_paypal_v1_disputes_item_extensions_merchandize_dispute_properties"];
8042
+ merchant_contacted: boolean;
8043
+ merchant_contacted_mode: string;
8044
+ merchant_contacted_outcome: string;
8045
+ merchant_contacted_time: string;
8046
+ };
8047
+ swag_paypal_v1_disputes_item_extensions_billing_dispute_properties: {
8048
+ canceled_recurring_billing: components$1["schemas"]["swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_canceled_recurring_billing"];
8049
+ credit_not_processed: components$1["schemas"]["swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_credit_not_processed"];
8050
+ duplicate_transaction: components$1["schemas"]["swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_duplicate_transaction"];
8051
+ incorrect_transaction_amount: components$1["schemas"]["swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_incorrect_transaction_amount"];
8052
+ payment_by_other_means: components$1["schemas"]["swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_payment_by_other_means"];
8053
+ };
8054
+ swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_canceled_recurring_billing: {
8055
+ cancellation_details: components$1["schemas"]["swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_common_cancellation_details"];
8056
+ expected_refund: components$1["schemas"]["swag_paypal_v1_common_money"];
8057
+ };
8058
+ swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_common_agreed_refund_details: {
8059
+ merchant_agreed_refund: boolean;
8060
+ merchant_agreed_refund_time: string;
8061
+ };
8062
+ swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_common_cancellation_details: {
8063
+ cancellation_date: string;
8064
+ cancellation_mode: string;
8065
+ cancellation_number: string;
8066
+ cancelled: boolean;
8067
+ };
8068
+ swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_credit_not_processed: {
8069
+ agreed_refund_details: components$1["schemas"]["swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_common_agreed_refund_details"];
8070
+ cancellation_details: components$1["schemas"]["swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_common_cancellation_details"];
8071
+ expected_refund: components$1["schemas"]["swag_paypal_v1_common_money"];
8072
+ issue_type: string;
8073
+ product_details: components$1["schemas"]["swag_paypal_v1_disputes_common_product_details"];
8074
+ service_details: components$1["schemas"]["swag_paypal_v1_disputes_common_service_details"];
8075
+ };
8076
+ swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_duplicate_transaction: {
8077
+ original_transaction: components$1["schemas"]["swag_paypal_v1_disputes_common_transaction"];
8078
+ received_duplicate: boolean;
8079
+ };
8080
+ swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_incorrect_transaction_amount: {
8081
+ correct_transaction_amount: components$1["schemas"]["swag_paypal_v1_common_money"];
8082
+ correct_transaction_time: string;
8083
+ };
8084
+ swag_paypal_v1_disputes_item_extensions_billing_dispute_properties_payment_by_other_means: {
8085
+ charge_different_from_original: boolean;
8086
+ payment_instrument_suffix: string;
8087
+ payment_method: string;
8088
+ received_duplicate: boolean;
8089
+ };
8090
+ swag_paypal_v1_disputes_item_extensions_merchandize_dispute_properties: {
8091
+ issue_type: string;
8092
+ product_details: components$1["schemas"]["swag_paypal_v1_disputes_common_product_details"];
8093
+ service_details: components$1["schemas"]["swag_paypal_v1_disputes_common_service_details"];
8094
+ };
8095
+ swag_paypal_v1_disputes_item_message: {
8096
+ content: string;
8097
+ posted_by: string;
8098
+ time_posted: string;
8099
+ };
8100
+ swag_paypal_v1_disputes_item_money_movement: {
8101
+ affected_party: string;
8102
+ amount: components$1["schemas"]["swag_paypal_v1_common_amount"];
8103
+ initiated_time: string;
8104
+ reason: string;
8105
+ type: string;
8106
+ };
8107
+ swag_paypal_v1_disputes_item_offer: {
8108
+ buyer_requested_amount: components$1["schemas"]["swag_paypal_v1_common_money"];
8109
+ history:
8110
+ | components$1["schemas"]["swag_paypal_v1_disputes_item_offer_history"][]
8111
+ | null;
8112
+ offer_type: string;
8113
+ seller_offered_amount: components$1["schemas"]["swag_paypal_v1_common_money"];
8114
+ };
8115
+ swag_paypal_v1_disputes_item_offer_history: {
8116
+ actor: string;
8117
+ event_type: string;
8118
+ offer_time: string;
8119
+ offer_type: string;
8120
+ };
8121
+ swag_paypal_v1_disputes_item_partner_action: {
8122
+ amount: components$1["schemas"]["swag_paypal_v1_common_money"];
8123
+ create_time: string;
8124
+ due_time: string;
8125
+ id: string;
8126
+ name: string;
8127
+ status: string;
8128
+ update_time: string;
8129
+ };
8130
+ swag_paypal_v1_disputes_item_refund_details: {
8131
+ allowed_refund_amount: components$1["schemas"]["swag_paypal_v1_common_money"];
8132
+ };
8133
+ swag_paypal_v1_disputes_item_supporting_info: {
8134
+ notes: string;
8135
+ provided_time: string;
8136
+ source: string;
8137
+ };
8138
+ swag_paypal_v1_do_void: {
8139
+ amount: components$1["schemas"]["swag_paypal_v1_common_amount"];
8140
+ create_time: string;
8141
+ id: string;
8142
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8143
+ parent_payment: string;
8144
+ state: string;
8145
+ update_time: string;
8146
+ };
8147
+ swag_paypal_v1_merchant_integrations: {
8148
+ capabilities:
8149
+ | components$1["schemas"]["swag_paypal_v1_merchant_integrations_capability"][]
8150
+ | null;
8151
+ granted_permissions: string[];
8152
+ legal_name: string;
8153
+ merchant_id: string;
8154
+ oauth_integrations: components$1["schemas"]["swag_paypal_v1_merchant_integrations_oauth_integration"][];
8155
+ payments_receivable: boolean;
8156
+ primary_email: string;
8157
+ primary_email_confirmed: boolean;
8158
+ products: components$1["schemas"]["swag_paypal_v1_merchant_integrations_product"][];
8159
+ tracking_id: string;
8160
+ };
8161
+ swag_paypal_v1_merchant_integrations_capability: {
8162
+ name: string;
8163
+ status: string;
8164
+ };
8165
+ swag_paypal_v1_merchant_integrations_oauth_integration: {
8166
+ integration_method?: string;
8167
+ integration_type?: string;
8168
+ oauth_third_party?: components$1["schemas"]["swag_paypal_v1_merchant_integrations_oauth_integration_oauth_third_party"][];
8169
+ status?: string;
8170
+ };
8171
+ swag_paypal_v1_merchant_integrations_oauth_integration_oauth_third_party: {
8172
+ access_token?: string;
8173
+ merchant_client_id?: string;
8174
+ partner_client_id?: string;
8175
+ refresh_token?: string;
8176
+ scopes: string[];
8177
+ };
8178
+ swag_paypal_v1_merchant_integrations_product: {
8179
+ capabilities?: string[];
8180
+ name: string;
8181
+ vetting_status?: string;
8182
+ };
8183
+ swag_paypal_v1_oauth_credentials: {
8184
+ restId: string;
8185
+ restSecret: string;
8186
+ url: string;
8187
+ };
8188
+ swag_paypal_v1_patch: {
8189
+ /** @enum {string} */
8190
+ op: "add" | "replace";
8191
+ path: string;
8192
+ value: string | Record<string, never>[];
8193
+ };
8194
+ swag_paypal_v1_payment: {
8195
+ application_context: components$1["schemas"]["swag_paypal_v1_payment_application_context"];
8196
+ cart: string;
8197
+ create_time: string;
8198
+ id: string;
8199
+ /**
8200
+ * @default sale
8201
+ * @enum {string}
8202
+ */
8203
+ intent?: "sale" | "authorize" | "order";
8204
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8205
+ payer: components$1["schemas"]["swag_paypal_v1_payment_payer"];
8206
+ payment_instruction:
8207
+ | components$1["schemas"]["swag_paypal_v1_payment_payment_instruction"]
8208
+ | null;
8209
+ redirect_urls: components$1["schemas"]["swag_paypal_v1_payment_redirect_urls"];
8210
+ state: string;
8211
+ transactions: components$1["schemas"]["swag_paypal_v1_payment_transaction"][];
8212
+ update_time: string;
8213
+ };
8214
+ swag_paypal_v1_payment_application_context: {
8215
+ brand_name: string;
8216
+ /** @enum {string} */
8217
+ landing_page: "Login" | "Billing";
8218
+ locale: string;
8219
+ /** @default SET_PROVIDED_ADDRESS */
8220
+ shipping_preference?: string;
8221
+ /** @default commit */
8222
+ user_action?: string;
8223
+ };
8224
+ swag_paypal_v1_payment_payer: {
8225
+ external_selected_funding_instrument_type: string;
8226
+ payer_info: components$1["schemas"]["swag_paypal_v1_payment_payer_payer_info"];
8227
+ payment_method: string;
8228
+ status: string;
8229
+ };
8230
+ swag_paypal_v1_payment_payer_execute_payer_info: {
8231
+ payer_id: string;
8232
+ };
8233
+ swag_paypal_v1_payment_payer_payer_info: components$1["schemas"]["swag_paypal_v1_payment_payer_execute_payer_info"] & {
8234
+ billing_address:
8235
+ | components$1["schemas"]["swag_paypal_v1_common_address"]
8236
+ | null;
8237
+ country_code: string;
8238
+ email: string;
8239
+ first_name: string;
8240
+ last_name: string;
8241
+ phone: string;
8242
+ shipping_address: components$1["schemas"]["swag_paypal_v1_payment_transaction_item_list_shipping_address"];
8243
+ };
8244
+ swag_paypal_v1_payment_payment_instruction: {
8245
+ amount: components$1["schemas"]["swag_paypal_v1_common_value"];
8246
+ instruction_type: string;
8247
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8248
+ payment_due_date: string;
8249
+ recipient_banking_instruction: components$1["schemas"]["swag_paypal_v1_payment_payment_instruction_recipient_banking_instruction"];
8250
+ reference_number: string;
8251
+ };
8252
+ swag_paypal_v1_payment_payment_instruction_recipient_banking_instruction: {
8253
+ account_holder_name: string;
8254
+ bank_identifier_code: string;
8255
+ bank_name: string;
8256
+ international_bank_account_number: string;
8257
+ };
8258
+ swag_paypal_v1_payment_redirect_urls: {
8259
+ cancel_url: string;
8260
+ return_url: string;
8261
+ };
8262
+ swag_paypal_v1_payment_transaction: {
8263
+ amount: components$1["schemas"]["swag_paypal_v1_common_amount"];
8264
+ custom: string;
8265
+ description: string;
8266
+ invoice_number: string | null;
8267
+ item_list:
8268
+ | components$1["schemas"]["swag_paypal_v1_payment_transaction_item_list"]
8269
+ | null;
8270
+ payee: components$1["schemas"]["swag_paypal_v1_payment_transaction_payee"];
8271
+ related_resources: components$1["schemas"]["swag_paypal_v1_payment_transaction_related_resource"][];
8272
+ soft_descriptor: string;
8273
+ };
8274
+ swag_paypal_v1_payment_transaction_item_list: {
8275
+ items: components$1["schemas"]["swag_paypal_v1_payment_transaction_item_list_item"][];
8276
+ shipping_address: components$1["schemas"]["swag_paypal_v1_payment_transaction_item_list_shipping_address"];
8277
+ shipping_options: components$1["schemas"]["swag_paypal_v1_payment_transaction_item_list_shipping_option"][];
8278
+ shipping_phone_number: string;
8279
+ };
8280
+ swag_paypal_v1_payment_transaction_item_list_item: {
8281
+ currency: string;
8282
+ name: string;
8283
+ price: string;
8284
+ quantity: number;
8285
+ sku: string | null;
8286
+ tax: string;
8287
+ };
8288
+ swag_paypal_v1_payment_transaction_item_list_shipping_address: components$1["schemas"]["swag_paypal_v1_common_address"] & {
8289
+ recipient_name: string;
8290
+ };
8291
+ swag_paypal_v1_payment_transaction_item_list_shipping_option: unknown;
8292
+ swag_paypal_v1_payment_transaction_payee: {
8293
+ email: string;
8294
+ merchant_id: string;
8295
+ };
8296
+ swag_paypal_v1_payment_transaction_related_resource: {
8297
+ authorization:
8298
+ | components$1["schemas"]["swag_paypal_v1_payment_transaction_related_resource_authorization"]
8299
+ | null;
8300
+ capture:
8301
+ | components$1["schemas"]["swag_paypal_v1_payment_transaction_related_resource_capture"]
8302
+ | null;
8303
+ order:
8304
+ | components$1["schemas"]["swag_paypal_v1_payment_transaction_related_resource_order"]
8305
+ | null;
8306
+ refund:
8307
+ | components$1["schemas"]["swag_paypal_v1_payment_transaction_related_resource_refund"]
8308
+ | null;
8309
+ sale:
8310
+ | components$1["schemas"]["swag_paypal_v1_payment_transaction_related_resource_sale"]
8311
+ | null;
8312
+ };
8313
+ swag_paypal_v1_payment_transaction_related_resource_authorization: {
8314
+ amount: components$1["schemas"]["swag_paypal_v1_common_amount"];
8315
+ create_time: string;
8316
+ id: string;
8317
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8318
+ parent_payment: string;
8319
+ payment_mode: string;
8320
+ protection_eligibility: string;
8321
+ protection_eligibility_type: string;
8322
+ reason_code: string;
8323
+ receipt_id: string;
8324
+ state: string;
8325
+ update_time: string;
8326
+ valid_until: string;
8327
+ };
8328
+ swag_paypal_v1_payment_transaction_related_resource_capture: {
8329
+ amount: components$1["schemas"]["swag_paypal_v1_common_amount"];
8330
+ create_time: string;
8331
+ custom: string;
8332
+ id: string;
8333
+ invoice_number: string;
8334
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8335
+ parent_payment: string;
8336
+ payment_mode: string;
8337
+ protection_eligibility: string;
8338
+ protection_eligibility_type: string;
8339
+ receipt_id: string;
8340
+ state: string;
8341
+ transaction_fee: components$1["schemas"]["swag_paypal_v1_common_value"];
8342
+ update_time: string;
8343
+ };
8344
+ swag_paypal_v1_payment_transaction_related_resource_order: {
8345
+ amount: components$1["schemas"]["swag_paypal_v1_common_amount"];
8346
+ create_time: string;
8347
+ id: string;
8348
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8349
+ parent_payment: string;
8350
+ payment_mode: string;
8351
+ protection_eligibility: string;
8352
+ protection_eligibility_type: string;
8353
+ reason_code: string;
8354
+ receipt_id: string;
8355
+ state: string;
8356
+ update_time: string;
8357
+ };
8358
+ swag_paypal_v1_payment_transaction_related_resource_refund: {
8359
+ amount: components$1["schemas"]["swag_paypal_v1_common_amount"];
8360
+ capture_id: string;
8361
+ create_time: string;
8362
+ id: string;
8363
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8364
+ parent_payment: string;
8365
+ payment_mode: string;
8366
+ protection_eligibility: string;
8367
+ protection_eligibility_type: string;
8368
+ receipt_id: string;
8369
+ sale_id: string;
8370
+ state: string;
8371
+ update_time: string;
8372
+ };
8373
+ swag_paypal_v1_payment_transaction_related_resource_sale: {
8374
+ amount: components$1["schemas"]["swag_paypal_v1_common_amount"];
8375
+ create_time: string;
8376
+ id: string;
8377
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8378
+ parent_payment: string;
8379
+ payment_mode: string;
8380
+ protection_eligibility: string;
8381
+ protection_eligibility_type: string;
8382
+ receipt_id: string;
8383
+ state: string;
8384
+ transaction_fee: components$1["schemas"]["swag_paypal_v1_common_value"];
8385
+ update_time: string;
8386
+ };
8387
+ swag_paypal_v1_plan: {
8388
+ billing_cycles: components$1["schemas"]["swag_paypal_v1_plan_billing_cycle"][];
8389
+ description: string | null;
8390
+ name: string;
8391
+ payment_preferences: components$1["schemas"]["swag_paypal_v1_plan_payment_preferences"];
8392
+ product_id: string;
8393
+ status: string;
8394
+ taxes: components$1["schemas"]["swag_paypal_v1_plan_taxes"];
8395
+ };
8396
+ swag_paypal_v1_plan_billing_cycle: {
8397
+ frequency: components$1["schemas"]["swag_paypal_v1_plan_billing_cycle_frequency"];
8398
+ pricing_scheme: components$1["schemas"]["swag_paypal_v1_plan_billing_cycle_pricing_scheme"];
8399
+ sequence: number;
8400
+ tenure_type: string;
8401
+ total_cycles: number;
8402
+ };
8403
+ swag_paypal_v1_plan_billing_cycle_frequency: {
8404
+ interval_count: number;
8405
+ interval_unit: string;
8406
+ };
8407
+ swag_paypal_v1_plan_billing_cycle_pricing_scheme: {
8408
+ fixed_price: components$1["schemas"]["swag_paypal_v1_common_money"];
8409
+ };
8410
+ swag_paypal_v1_plan_payment_preferences: {
8411
+ auto_bill_outstanding: boolean;
8412
+ payment_failure_threshold: number;
8413
+ };
8414
+ swag_paypal_v1_plan_taxes: {
8415
+ inclusive: boolean;
8416
+ percentage: string;
8417
+ };
8418
+ swag_paypal_v1_product: {
8419
+ description: string;
8420
+ name: string;
8421
+ type: string;
8422
+ };
8423
+ swag_paypal_v1_refund: {
8424
+ amount: components$1["schemas"]["swag_paypal_v1_common_amount"];
8425
+ capture_id: string;
8426
+ create_time: string;
8427
+ description: string;
8428
+ id: string;
8429
+ invoice_number: string;
8430
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8431
+ parent_payment: string;
8432
+ reason: string;
8433
+ refund_from_received_amount: components$1["schemas"]["swag_paypal_v1_common_value"];
8434
+ refund_from_transaction_fee: components$1["schemas"]["swag_paypal_v1_common_value"];
8435
+ sale_id: string;
8436
+ state: string;
8437
+ total_refunded_amount: components$1["schemas"]["swag_paypal_v1_common_value"];
8438
+ update_time: string;
8439
+ };
8440
+ swag_paypal_v1_shipping: {
8441
+ trackers: components$1["schemas"]["swag_paypal_v1_shipping_tracker"][];
8442
+ };
8443
+ swag_paypal_v1_shipping_tracker: {
8444
+ carrier: string;
8445
+ notify_buyer: boolean;
8446
+ /** Pattern: '2022-08-15' */
8447
+ shipment_date: string;
8448
+ status: string;
8449
+ tracking_number: string;
8450
+ transaction_id: string;
8451
+ };
8452
+ swag_paypal_v1_subscription: {
8453
+ application_context: components$1["schemas"]["swag_paypal_v1_subscription_application_context"];
8454
+ billing_info:
8455
+ | components$1["schemas"]["swag_paypal_v1_subscription_billing_info"]
8456
+ | null;
8457
+ create_time: string;
8458
+ id: string;
8459
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8460
+ plan_id: string;
8461
+ quantity: string;
8462
+ shipping_amount: components$1["schemas"]["swag_paypal_v1_common_money"];
8463
+ start_time: string;
8464
+ status: string;
8465
+ status_update_time: string;
8466
+ subscriber: components$1["schemas"]["swag_paypal_v1_subscription_subscriber"];
8467
+ update_time: string;
8468
+ };
8469
+ swag_paypal_v1_subscription_application_context: {
8470
+ brand_name: string;
8471
+ cancel_url: string;
8472
+ locale: string;
8473
+ return_url: string;
8474
+ /** @default SET_PROVIDED_ADDRESS */
8475
+ shipping_preference?: string;
8476
+ /** @default SUBSCRIBE_NOW */
8477
+ user_action?: string;
8478
+ };
8479
+ swag_paypal_v1_subscription_billing_info: {
8480
+ cycle_executions: components$1["schemas"]["swag_paypal_v1_subscription_billing_info_cycle_execution"][];
8481
+ failed_payments_count: number;
8482
+ last_payment: components$1["schemas"]["swag_paypal_v1_subscription_billing_info_last_payment"];
8483
+ next_billing_time: string | null;
8484
+ outstanding_balance: components$1["schemas"]["swag_paypal_v1_subscription_billing_info_outstanding_balance"];
8485
+ };
8486
+ swag_paypal_v1_subscription_billing_info_cycle_execution: {
8487
+ cycles_completed: number;
8488
+ cycles_remaining: number;
8489
+ sequence: number;
8490
+ tenure_type: string;
8491
+ total_cycles: number;
8492
+ };
8493
+ swag_paypal_v1_subscription_billing_info_last_payment: {
8494
+ amount: components$1["schemas"]["swag_paypal_v1_common_money"];
8495
+ time: string;
8496
+ };
8497
+ swag_paypal_v1_subscription_billing_info_outstanding_balance: components$1["schemas"]["swag_paypal_v1_common_money"];
8498
+ swag_paypal_v1_subscription_subscriber: {
8499
+ email_address: string;
8500
+ name: components$1["schemas"]["swag_paypal_v1_subscription_subscriber_name"];
8501
+ payer_id: string;
8502
+ shipping_address:
8503
+ | components$1["schemas"]["swag_paypal_v1_subscription_subscriber_shipping_address"]
8504
+ | null;
8505
+ };
8506
+ swag_paypal_v1_subscription_subscriber_name: {
8507
+ given_name: string;
8508
+ surname: string;
8509
+ };
8510
+ swag_paypal_v1_subscription_subscriber_shipping_address: {
8511
+ address:
8512
+ | components$1["schemas"]["swag_paypal_v1_subscription_subscriber_shipping_address_address"]
8513
+ | null;
8514
+ name:
8515
+ | components$1["schemas"]["swag_paypal_v1_subscription_subscriber_shipping_address_name"]
8516
+ | null;
8517
+ };
8518
+ swag_paypal_v1_subscription_subscriber_shipping_address_address: {
8519
+ address_line_1: string | null;
8520
+ address_line_2: string | null;
8521
+ admin_area_1: string | null;
8522
+ admin_area_2: string | null;
8523
+ country_code: string;
8524
+ postal_code: string | null;
8525
+ };
8526
+ swag_paypal_v1_subscription_subscriber_shipping_address_name: {
8527
+ full_name: string;
8528
+ };
8529
+ swag_paypal_v1_token: {
8530
+ /** The access token issued by PayPal. After the access token
8531
+ * expires (see $expiresIn), you must request a new access token. */
8532
+ access_token: string;
8533
+ app_id: string;
8534
+ /**
8535
+ * Format: date-time
8536
+ * Calculated expiration date
8537
+ */
8538
+ expire_date_time: string;
8539
+ /** The lifetime of the access token, in seconds. */
8540
+ expires_in: number;
8541
+ id_token: string | null;
8542
+ nonce: string;
8543
+ /** Scopes expressed in the form of resource URL endpoints. The value of the scope parameter
8544
+ * is expressed as a list of space-delimited, case-sensitive strings. */
8545
+ scope: string;
8546
+ /** The type of the token issued as described in OAuth2.0 RFC6749,
8547
+ * Section 7.1. Value is case insensitive. */
8548
+ token_type: string;
8549
+ };
8550
+ swag_paypal_v1_webhook: {
8551
+ create_time: string;
8552
+ event_type: string;
8553
+ event_version: string;
8554
+ id: string;
8555
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8556
+ resource:
8557
+ | (
8558
+ | components$1["schemas"]["swag_paypal_v3_payment_token"]
8559
+ | components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments_authorization"]
8560
+ | components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments_capture"]
8561
+ | components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments_refund"]
8562
+ | components$1["schemas"]["swag_paypal_v1_webhook_resource"]
8563
+ | components$1["schemas"]["swag_paypal_v1_subscription"]
8564
+ )
8565
+ | null;
8566
+ resource_type: string;
8567
+ resource_version: string;
8568
+ summary: string;
8569
+ };
8570
+ swag_paypal_v1_webhook_resource: {
8571
+ amount: components$1["schemas"]["swag_paypal_v1_common_amount"];
8572
+ billing_agreement_id: string | null;
8573
+ clearing_time: string;
8574
+ create_time: string;
8575
+ id: string;
8576
+ invoice_number: string;
8577
+ links: components$1["schemas"]["swag_paypal_v1_common_link"][];
8578
+ merchant_id: string | null;
8579
+ parent_payment: string | null;
8580
+ payment_mode: string;
8581
+ protection_eligibility: string;
8582
+ protection_eligibility_type: string;
8583
+ refund_reason_code: string | null;
8584
+ sale_id: string | null;
8585
+ state: string;
8586
+ transaction_fee: components$1["schemas"]["swag_paypal_v1_common_value"];
8587
+ update_time: string;
8588
+ };
8589
+ swag_paypal_v2_common_address: {
8590
+ /** The first line of the address. For example, number or street. For example, 173 Drury Lane.
8591
+ * Required for data entry and compliance and risk checks. Must contain the full address. */
8592
+ address_line_1: string | null;
8593
+ /** The second line of the address. For example, suite or apartment number. */
8594
+ address_line_2: string | null;
8595
+ /** The highest level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision.
8596
+ * Format for postal delivery. For example, CA and not California. */
8597
+ admin_area_1: string | null;
8598
+ /** A city, town, or village. Smaller than $adminArea1 */
8599
+ admin_area_2: string | null;
8600
+ country_code: string;
8601
+ postal_code: string | null;
8602
+ };
8603
+ swag_paypal_v2_common_link: {
8604
+ enc_type: string | null;
8605
+ href: string;
8606
+ method: string;
8607
+ rel: string;
8608
+ };
8609
+ swag_paypal_v2_common_money: {
8610
+ currency_code: string;
8611
+ value: string;
8612
+ };
8613
+ swag_paypal_v2_common_name: {
8614
+ given_name: string;
8615
+ surname: string;
8616
+ };
8617
+ swag_paypal_v2_common_phone_number: {
8618
+ country_code: string;
8619
+ national_number: string;
8620
+ };
8621
+ swag_paypal_v2_order: {
8622
+ application_context: components$1["schemas"]["swag_paypal_v2_order_application_context"];
8623
+ create_time: string;
8624
+ id: string;
8625
+ intent: string;
8626
+ links: components$1["schemas"]["swag_paypal_v2_common_link"][];
8627
+ payer: components$1["schemas"]["swag_paypal_v2_order_payer"];
8628
+ payment_source:
8629
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source"]
8630
+ | null;
8631
+ processing_instruction: string;
8632
+ purchase_units:
8633
+ | components$1["schemas"]["swag_paypal_v2_order_purchase_unit"][]
8634
+ | null;
8635
+ status: string;
8636
+ update_time: string;
8637
+ };
8638
+ swag_paypal_v2_order_application_context: {
8639
+ brand_name: string;
8640
+ cancel_url: string;
8641
+ /**
8642
+ * @default NO_PREFERENCE
8643
+ * @enum {string}
8644
+ */
8645
+ landing_page?: "LOGIN" | "BILLING" | "NO_PREFERENCE";
8646
+ return_url: string;
8647
+ /**
8648
+ * @default SET_PROVIDED_ADDRESS
8649
+ * @enum {string}
8650
+ */
8651
+ shipping_preference?:
8652
+ | "SET_PROVIDED_ADDRESS"
8653
+ | "NO_SHIPPING"
8654
+ | "GET_FROM_FILE";
8655
+ /**
8656
+ * @default PAY_NOW
8657
+ * @enum {string}
8658
+ */
8659
+ user_action?: "CONTINUE" | "PAY_NOW";
8660
+ };
8661
+ swag_paypal_v2_order_payer: {
8662
+ address: components$1["schemas"]["swag_paypal_v2_common_address"];
8663
+ email_address: string;
8664
+ name: components$1["schemas"]["swag_paypal_v2_common_name"];
8665
+ payer_id: string;
8666
+ phone:
8667
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_common_phone"]
8668
+ | null;
8669
+ };
8670
+ swag_paypal_v2_order_payment_source: {
8671
+ apple_pay: components$1["schemas"]["swag_paypal_v2_order_payment_source_apple_pay"];
8672
+ bancontact:
8673
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_bancontact"]
8674
+ | null;
8675
+ blik:
8676
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_blik"]
8677
+ | null;
8678
+ boletobancario:
8679
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_boletobancario"]
8680
+ | null;
8681
+ card:
8682
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_card"]
8683
+ | null;
8684
+ eps:
8685
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_eps"]
8686
+ | null;
8687
+ giropay:
8688
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_giropay"]
8689
+ | null;
8690
+ google_pay:
8691
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_google_pay"]
8692
+ | null;
8693
+ ideal:
8694
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_ideal"]
8695
+ | null;
8696
+ multibanco:
8697
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_multibanco"]
8698
+ | null;
8699
+ my_bank:
8700
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_my_bank"]
8701
+ | null;
8702
+ oxxo:
8703
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_oxxo"]
8704
+ | null;
8705
+ p24:
8706
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_p24"]
8707
+ | null;
8708
+ pay_upon_invoice:
8709
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_pay_upon_invoice"]
8710
+ | null;
8711
+ paypal:
8712
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_paypal"]
8713
+ | null;
8714
+ sofort:
8715
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_sofort"]
8716
+ | null;
8717
+ token:
8718
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_token"]
8719
+ | null;
8720
+ trustly:
8721
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_trustly"]
8722
+ | null;
8723
+ venmo:
8724
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_venmo"]
8725
+ | null;
8726
+ };
8727
+ swag_paypal_v2_order_payment_source_apple_pay: {
8728
+ attributes:
8729
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_common_attributes"]
8730
+ | null;
8731
+ card:
8732
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_card"]
8733
+ | null;
8734
+ country_code: string;
8735
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8736
+ name: string;
8737
+ };
8738
+ swag_paypal_v2_order_payment_source_bancontact: {
8739
+ country_code: string;
8740
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8741
+ name: string;
8742
+ };
8743
+ swag_paypal_v2_order_payment_source_blik: {
8744
+ country_code: string;
8745
+ email: string;
8746
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8747
+ name: string;
8748
+ };
8749
+ swag_paypal_v2_order_payment_source_boletobancario: {
8750
+ billing_address: components$1["schemas"]["swag_paypal_v2_common_address"];
8751
+ country_code: string;
8752
+ email: string;
8753
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8754
+ expiry_date: string;
8755
+ name: string;
8756
+ tax_info: components$1["schemas"]["swag_paypal_v2_order_payment_source_boletobancario_tax_info"];
8757
+ };
8758
+ swag_paypal_v2_order_payment_source_boletobancario_tax_info: {
8759
+ tax_id: string;
8760
+ tax_id_type: string;
8761
+ };
8762
+ swag_paypal_v2_order_payment_source_card: {
8763
+ attributes:
8764
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_common_attributes"]
8765
+ | null;
8766
+ authentication_result:
8767
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_card_authentication_result"]
8768
+ | null;
8769
+ billing_address:
8770
+ | components$1["schemas"]["swag_paypal_v2_common_address"]
8771
+ | null;
8772
+ brand: string;
8773
+ country_code: string;
8774
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8775
+ last_digits: string;
8776
+ name: string;
8777
+ stored_credential:
8778
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_card_stored_credential"]
8779
+ | null;
8780
+ type: string;
8781
+ vault_id: string;
8782
+ };
8783
+ swag_paypal_v2_order_payment_source_card_authentication_result: {
8784
+ liability_shift: string;
8785
+ three_d_secure:
8786
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_card_authentication_result_3d_secure"]
8787
+ | null;
8788
+ };
8789
+ swag_paypal_v2_order_payment_source_card_authentication_result_3d_secure: {
8790
+ authentication_status: string;
8791
+ enrollment_status: string;
8792
+ };
8793
+ swag_paypal_v2_order_payment_source_card_stored_credential: {
8794
+ /** @enum {string} */
8795
+ payment_initiator: "MERCHANT" | "CUSTOMER";
8796
+ /** @enum {string} */
8797
+ payment_type: "RECURRING" | "ONE_TIME" | "UNSCHEDULED";
8798
+ previous_network_transaction_reference: string;
8799
+ /** @enum {string} */
8800
+ usage: "DERIVED" | "FIRST" | "SUBSEQUENT";
8801
+ };
8802
+ swag_paypal_v2_order_payment_source_common_attributes: {
8803
+ customer: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_attributes_customer"];
8804
+ vault: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_attributes_vault"];
8805
+ verification: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_attributes_verification"];
8806
+ };
8807
+ swag_paypal_v2_order_payment_source_common_attributes_customer: {
8808
+ id: string;
8809
+ };
8810
+ swag_paypal_v2_order_payment_source_common_attributes_vault: {
8811
+ confirm_payment_token: string;
8812
+ customer:
8813
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_common_attributes_customer"]
8814
+ | null;
8815
+ id: string | null;
8816
+ links: components$1["schemas"]["swag_paypal_v2_common_link"][];
8817
+ permit_multiple_payment_tokens: boolean;
8818
+ status: string;
8819
+ store_in_vault: string;
8820
+ usage_type: string;
8821
+ };
8822
+ swag_paypal_v2_order_payment_source_common_attributes_verification: {
8823
+ method: string;
8824
+ };
8825
+ swag_paypal_v2_order_payment_source_common_experience_context: {
8826
+ brand_name: string;
8827
+ cancel_url: string;
8828
+ /** Only: PUI */
8829
+ customer_service_instructions: string[];
8830
+ /**
8831
+ * @default NO_PREFERENCE
8832
+ * @enum {string}
8833
+ */
8834
+ landing_page?: "LOGIN" | "GUEST_CHECKOUT" | "NO_PREFERENCE";
8835
+ locale: string;
8836
+ logo_url: string;
8837
+ /**
8838
+ * Only: PayPal Wallet
8839
+ * @enum {string}
8840
+ */
8841
+ payment_method_preference: "UNRESTRICTED" | "IMMEDIATE_PAYMENT_REQUIRED";
8842
+ return_url: string;
8843
+ /**
8844
+ * @default SET_PROVIDED_ADDRESS
8845
+ * @enum {string}
8846
+ */
8847
+ shipping_preference?:
8848
+ | "SET_PROVIDED_ADDRESS"
8849
+ | "NO_SHIPPING"
8850
+ | "GET_FROM_FILE";
8851
+ /**
8852
+ * @default PAY_NOW
8853
+ * @enum {string}
8854
+ */
8855
+ user_action?: "CONTINUE" | "PAY_NOW";
8856
+ };
8857
+ swag_paypal_v2_order_payment_source_common_phone: {
8858
+ phone_number: components$1["schemas"]["swag_paypal_v2_common_phone_number"];
8859
+ phone_type: string;
8860
+ };
8861
+ swag_paypal_v2_order_payment_source_eps: {
8862
+ country_code: string;
8863
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8864
+ name: string;
8865
+ };
8866
+ swag_paypal_v2_order_payment_source_giropay: {
8867
+ country_code: string;
8868
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8869
+ name: string;
8870
+ };
8871
+ swag_paypal_v2_order_payment_source_google_pay: {
8872
+ attributes:
8873
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_common_attributes"]
8874
+ | null;
8875
+ card:
8876
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_card"]
8877
+ | null;
8878
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8879
+ };
8880
+ swag_paypal_v2_order_payment_source_ideal: {
8881
+ country_code: string;
8882
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8883
+ name: string;
8884
+ };
8885
+ swag_paypal_v2_order_payment_source_multibanco: {
8886
+ country_code: string;
8887
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8888
+ name: string;
8889
+ };
8890
+ swag_paypal_v2_order_payment_source_my_bank: {
8891
+ country_code: string;
8892
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8893
+ name: string;
8894
+ };
8895
+ swag_paypal_v2_order_payment_source_oxxo: {
8896
+ country_code: string;
8897
+ email: string;
8898
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8899
+ name: string;
8900
+ };
8901
+ swag_paypal_v2_order_payment_source_p24: {
8902
+ country_code: string;
8903
+ email: string;
8904
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8905
+ name: string;
8906
+ };
8907
+ swag_paypal_v2_order_payment_source_pay_upon_invoice: {
8908
+ billing_address: components$1["schemas"]["swag_paypal_v2_common_address"];
8909
+ birth_date: string;
8910
+ deposit_bank_details: components$1["schemas"]["swag_paypal_v2_order_payment_source_pay_upon_invoice_deposit_bank_details"];
8911
+ email: string;
8912
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8913
+ name: components$1["schemas"]["swag_paypal_v2_common_name"];
8914
+ payment_reference: string;
8915
+ phone: components$1["schemas"]["swag_paypal_v2_common_phone_number"];
8916
+ };
8917
+ swag_paypal_v2_order_payment_source_pay_upon_invoice_deposit_bank_details: {
8918
+ account_holder_name: string;
8919
+ bank_name: string;
8920
+ bic: string;
8921
+ iban: string;
8922
+ };
8923
+ swag_paypal_v2_order_payment_source_paypal: {
8924
+ account_id: string;
8925
+ address: components$1["schemas"]["swag_paypal_v2_common_address"];
8926
+ attributes:
8927
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_common_attributes"]
8928
+ | null;
8929
+ billing_agreement_id: string;
8930
+ birth_date: string;
8931
+ email_address: string;
8932
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8933
+ name: components$1["schemas"]["swag_paypal_v2_common_name"];
8934
+ phone_number:
8935
+ | components$1["schemas"]["swag_paypal_v2_common_phone_number"]
8936
+ | null;
8937
+ phone_type: string;
8938
+ vault_id: string;
8939
+ };
8940
+ swag_paypal_v2_order_payment_source_sofort: {
8941
+ country_code: string;
8942
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8943
+ name: string;
8944
+ };
8945
+ swag_paypal_v2_order_payment_source_token: {
8946
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8947
+ id: string;
8948
+ stored_payment_source: components$1["schemas"]["swag_paypal_v2_order_payment_source_token_stored_payment_source"];
8949
+ type: string;
8950
+ };
8951
+ swag_paypal_v2_order_payment_source_token_stored_payment_source: {
8952
+ payment_initiator: string;
8953
+ payment_type: string;
8954
+ usage: string;
8955
+ };
8956
+ swag_paypal_v2_order_payment_source_trustly: {
8957
+ country_code: string;
8958
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8959
+ name: string;
8960
+ };
8961
+ swag_paypal_v2_order_payment_source_venmo: {
8962
+ account_id: string;
8963
+ address: components$1["schemas"]["swag_paypal_v2_common_address"];
8964
+ attributes:
8965
+ | components$1["schemas"]["swag_paypal_v2_order_payment_source_common_attributes"]
8966
+ | null;
8967
+ email_address: string;
8968
+ experience_context: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_experience_context"];
8969
+ name: components$1["schemas"]["swag_paypal_v2_common_name"];
8970
+ phone_number:
8971
+ | components$1["schemas"]["swag_paypal_v2_common_phone_number"]
8972
+ | null;
8973
+ user_name: string;
8974
+ vault_id: string;
8975
+ };
8976
+ swag_paypal_v2_order_purchase_unit: {
8977
+ amount: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_amount"];
8978
+ custom_id: string | null;
8979
+ description: string;
8980
+ invoice_id: string | null;
8981
+ items:
8982
+ | components$1["schemas"]["swag_paypal_v2_order_purchase_unit_item"][]
8983
+ | null;
8984
+ payee: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payee"];
8985
+ payments:
8986
+ | components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments"]
8987
+ | null;
8988
+ reference_id: string;
8989
+ shipping: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_shipping"];
8990
+ };
8991
+ swag_paypal_v2_order_purchase_unit_amount: components$1["schemas"]["swag_paypal_v2_common_money"] & {
8992
+ breakdown:
8993
+ | components$1["schemas"]["swag_paypal_v2_order_purchase_unit_amount_breakdown"]
8994
+ | null;
8995
+ };
8996
+ swag_paypal_v2_order_purchase_unit_amount_breakdown: {
8997
+ discount: components$1["schemas"]["swag_paypal_v2_common_money"];
8998
+ handling: components$1["schemas"]["swag_paypal_v2_common_money"];
8999
+ insurance: components$1["schemas"]["swag_paypal_v2_common_money"];
9000
+ item_total: components$1["schemas"]["swag_paypal_v2_common_money"];
9001
+ shipping: components$1["schemas"]["swag_paypal_v2_common_money"];
9002
+ shipping_discount: components$1["schemas"]["swag_paypal_v2_common_money"];
9003
+ tax_total: components$1["schemas"]["swag_paypal_v2_common_money"] | null;
9004
+ };
9005
+ swag_paypal_v2_order_purchase_unit_item: {
9006
+ /** @enum {string} */
9007
+ category: "PHYSICAL_GOODS" | "DIGITAL_GOODS" | "DONATION";
9008
+ name: string;
9009
+ quantity: number;
9010
+ sku: string | null;
9011
+ tax: components$1["schemas"]["swag_paypal_v2_common_money"];
9012
+ tax_rate: string | number | Record<string, never>;
9013
+ unit_amount: components$1["schemas"]["swag_paypal_v2_common_money"];
9014
+ };
9015
+ swag_paypal_v2_order_purchase_unit_payee: {
9016
+ display_data: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payee_display_data"];
9017
+ email_address: string;
9018
+ merchant_id: string;
9019
+ };
9020
+ swag_paypal_v2_order_purchase_unit_payee_display_data: {
9021
+ brand_name: string;
9022
+ };
9023
+ swag_paypal_v2_order_purchase_unit_payments: {
9024
+ authorizations:
9025
+ | components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments_authorization"][]
9026
+ | null;
9027
+ captures:
9028
+ | components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments_capture"][]
9029
+ | null;
9030
+ refunds:
9031
+ | components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments_refund"][]
9032
+ | null;
9033
+ };
9034
+ swag_paypal_v2_order_purchase_unit_payments_authorization: {
9035
+ amount: components$1["schemas"]["swag_paypal_v2_common_money"] | null;
9036
+ create_time: string;
9037
+ custom_id: string | null;
9038
+ expiration_time: string;
9039
+ id: string;
9040
+ links: components$1["schemas"]["swag_paypal_v2_common_link"][];
9041
+ seller_protection: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments_common_seller_protection"];
9042
+ status: string;
9043
+ update_time: string;
9044
+ };
9045
+ swag_paypal_v2_order_purchase_unit_payments_authorization_seller_protection: {
9046
+ dispute_categories: string[];
9047
+ status: string;
9048
+ };
9049
+ swag_paypal_v2_order_purchase_unit_payments_capture: {
9050
+ amount: components$1["schemas"]["swag_paypal_v2_common_money"] | null;
9051
+ create_time: string;
9052
+ custom_id: string | null;
9053
+ disbursement_mode: string;
9054
+ final_capture: boolean;
9055
+ id: string;
9056
+ invoice_id: string | null;
9057
+ links: components$1["schemas"]["swag_paypal_v2_common_link"][];
9058
+ note_to_payer: string | null;
9059
+ processor_response: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments_capture_processor_response"];
9060
+ seller_protection: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments_common_seller_protection"];
9061
+ seller_receivable_breakdown: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments_capture_seller_receivable_breakdown"];
9062
+ status: string;
9063
+ update_time: string;
9064
+ };
9065
+ swag_paypal_v2_order_purchase_unit_payments_capture_processor_response: {
9066
+ avs_code: string | null;
9067
+ cvv_code: string | null;
9068
+ response_code: string | null;
9069
+ };
9070
+ swag_paypal_v2_order_purchase_unit_payments_capture_seller_receivable_breakdown: {
9071
+ gross_amount: components$1["schemas"]["swag_paypal_v2_common_money"];
9072
+ net_amount: components$1["schemas"]["swag_paypal_v2_common_money"];
9073
+ paypal_fee: components$1["schemas"]["swag_paypal_v2_common_money"];
9074
+ };
9075
+ swag_paypal_v2_order_purchase_unit_payments_common_seller_protection: {
9076
+ dispute_categories: string[];
9077
+ status: string;
9078
+ };
9079
+ swag_paypal_v2_order_purchase_unit_payments_refund: {
9080
+ amount: components$1["schemas"]["swag_paypal_v2_common_money"] | null;
9081
+ create_time: string;
9082
+ custom_id: string | null;
9083
+ id: string;
9084
+ invoice_id: string | null;
9085
+ links: components$1["schemas"]["swag_paypal_v2_common_link"][];
9086
+ note_to_payer: string | null;
9087
+ seller_payable_breakdown: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_payments_refund_seller_payable_breakdown"];
9088
+ status: string;
9089
+ update_time: string;
9090
+ };
9091
+ swag_paypal_v2_order_purchase_unit_payments_refund_seller_payable_breakdown: {
9092
+ gross_amount: components$1["schemas"]["swag_paypal_v2_common_money"];
9093
+ net_amount: components$1["schemas"]["swag_paypal_v2_common_money"];
9094
+ paypal_fee: components$1["schemas"]["swag_paypal_v2_common_money"];
9095
+ total_refunded_amount: components$1["schemas"]["swag_paypal_v2_common_money"];
9096
+ };
9097
+ swag_paypal_v2_order_purchase_unit_shipping: {
9098
+ address: components$1["schemas"]["swag_paypal_v2_common_address"];
9099
+ name: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_shipping_name"];
9100
+ trackers:
9101
+ | components$1["schemas"]["swag_paypal_v2_order_purchase_unit_shipping_tracker"][]
9102
+ | null;
9103
+ };
9104
+ swag_paypal_v2_order_purchase_unit_shipping_name: {
9105
+ full_name: string;
9106
+ };
9107
+ swag_paypal_v2_order_purchase_unit_shipping_tracker: {
9108
+ id: string;
9109
+ items: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_item"][];
9110
+ links: components$1["schemas"]["swag_paypal_v2_common_link"][];
9111
+ notify_payer: boolean;
9112
+ status: string;
9113
+ };
9114
+ swag_paypal_v2_order_purchase_unit_shipping_tracker_item: {
9115
+ image_url: string | null;
9116
+ name: string;
9117
+ quantity: number;
9118
+ sku: string | null;
9119
+ url: string | null;
9120
+ };
9121
+ swag_paypal_v2_order_tracker: {
9122
+ capture_id: string;
9123
+ carrier: string;
9124
+ carrier_name_other: string | null;
9125
+ items: components$1["schemas"]["swag_paypal_v2_order_purchase_unit_shipping_tracker_item"][];
9126
+ /** @default false */
9127
+ notify_payer?: boolean;
9128
+ tracking_number: string;
9129
+ };
9130
+ swag_paypal_v2_patch: {
9131
+ from: string;
9132
+ op: string;
9133
+ path: string;
9134
+ value:
9135
+ | (
9136
+ | number
9137
+ | Record<string, never>
9138
+ | string
9139
+ | boolean
9140
+ | Record<string, never>[]
9141
+ )
9142
+ | null;
9143
+ };
9144
+ swag_paypal_v2_referral: {
9145
+ business_entity: components$1["schemas"]["swag_paypal_v2_referral_business_entity"];
9146
+ capabilities: string[];
9147
+ legal_consents: components$1["schemas"]["swag_paypal_v2_referral_legal_consent"][];
9148
+ links: components$1["schemas"]["swag_paypal_v2_common_link"][];
9149
+ operations: components$1["schemas"]["swag_paypal_v2_referral_operation"][];
9150
+ partner_config_override: components$1["schemas"]["swag_paypal_v2_referral_partner_config_override"];
9151
+ preferred_language_code: string;
9152
+ products: string[];
9153
+ tracking_id: string;
9154
+ };
9155
+ swag_paypal_v2_referral_business_entity: {
9156
+ addresses: components$1["schemas"]["swag_paypal_v2_referral_business_entity_address"][];
9157
+ };
9158
+ swag_paypal_v2_referral_business_entity_address: {
9159
+ country_code: string;
9160
+ /** @default WORK */
9161
+ type?: string;
9162
+ };
9163
+ swag_paypal_v2_referral_legal_consent: {
9164
+ granted: boolean;
9165
+ /** @default SHARE_DATA_CONSENT */
9166
+ type?: string;
9167
+ };
9168
+ swag_paypal_v2_referral_operation: {
9169
+ api_integration_preference: components$1["schemas"]["swag_paypal_v2_referral_operation_integration_preference"];
9170
+ /** @default API_INTEGRATION */
9171
+ operation?: string;
9172
+ };
9173
+ swag_paypal_v2_referral_operation_integration_preference: {
9174
+ rest_api_integration: components$1["schemas"]["swag_paypal_v2_referral_operation_integration_preference_integration"];
9175
+ };
9176
+ swag_paypal_v2_referral_operation_integration_preference_integration: {
9177
+ /** @default PAYPAL */
9178
+ integration_method?: string;
9179
+ /** @default THIRD_PARTY */
9180
+ integration_type?: string;
9181
+ third_party_details: components$1["schemas"]["swag_paypal_v2_referral_operation_integration_preference_integration_third_party_details"];
9182
+ };
9183
+ swag_paypal_v2_referral_operation_integration_preference_integration_third_party_details: {
9184
+ features: string[];
9185
+ };
9186
+ swag_paypal_v2_referral_partner_config_override: {
9187
+ partner_logo_url: string;
9188
+ return_url: string;
9189
+ };
9190
+ swag_paypal_v3_payment_token: {
9191
+ customer: components$1["schemas"]["swag_paypal_v2_order_payment_source_common_attributes_customer"];
9192
+ id: string;
9193
+ links: components$1["schemas"]["swag_paypal_v2_common_link"][];
9194
+ metadata:
9195
+ | components$1["schemas"]["swag_paypal_v3_payment_token_metadata"]
9196
+ | null;
9197
+ payment_source: components$1["schemas"]["swag_paypal_v2_order_payment_source"];
9198
+ status: string;
9199
+ };
9200
+ swag_paypal_v3_payment_token_metadata: {
9201
+ order_id: string;
9202
+ };
7787
9203
  };
7788
9204
  type operations$1 = {
7789
9205
  "api-info get /_info/openapi3.json": {
@@ -8990,17 +10406,7 @@ type operations$1 = {
8990
10406
  } & components$1["schemas"]["EntitySearchResult"];
8991
10407
  responseCode: 200;
8992
10408
  };
8993
- "readB2bEmployee get /employee/{id}": {
8994
- contentType?: "application/json";
8995
- accept?: "application/json";
8996
- pathParams: {
8997
- /** Identifier of the employee to be read */
8998
- id: string;
8999
- };
9000
- response: components$1["schemas"]["B2bEmployee"];
9001
- responseCode: 200;
9002
- };
9003
- "readEmployee post /employee/{id}": {
10409
+ "readEmployee get /employee/{id}": {
9004
10410
  contentType?: "application/json";
9005
10411
  accept?: "application/json";
9006
10412
  pathParams: {
@@ -9289,6 +10695,79 @@ type operations$1 = {
9289
10695
  };
9290
10696
  responseCode: 200;
9291
10697
  };
10698
+ "createPayPalOrder post /paypal/create-order": {
10699
+ contentType?: "application/json";
10700
+ accept?: "application/json";
10701
+ body: {
10702
+ /** Use an existing order id to create PayPal order */
10703
+ orderId?: string;
10704
+ /**
10705
+ * Use an existing order id to create PayPal order
10706
+ * @default ppcp
10707
+ */
10708
+ product?: string;
10709
+ };
10710
+ response: {
10711
+ token?: string;
10712
+ };
10713
+ responseCode: 200;
10714
+ };
10715
+ "createPayPalExpressOrder post /paypal/express/create-order": {
10716
+ contentType?: "application/json";
10717
+ accept?: "application/json";
10718
+ response: never;
10719
+ responseCode: 200;
10720
+ };
10721
+ "preparePayPalExpressCheckout post /paypal/express/prepare-checkout": {
10722
+ contentType?: "application/json";
10723
+ accept?: "application/json";
10724
+ body: {
10725
+ /** ID of the paypal order */
10726
+ token?: string;
10727
+ };
10728
+ response: {
10729
+ redirectUrl?: string;
10730
+ };
10731
+ responseCode: 200;
10732
+ };
10733
+ "setPaymentMethodEligibility post /paypal/payment-method-eligibility": {
10734
+ contentType?: "application/json";
10735
+ accept?: "application/json";
10736
+ body: {
10737
+ /** List of PayPal payment method identifiers according to constant REMOVABLE_PAYMENT_HANDLERS */
10738
+ paymentMethods?: string[];
10739
+ };
10740
+ response: never;
10741
+ responseCode: 204;
10742
+ };
10743
+ "getPUIPaymentInstructions get /paypal/pui/payment-instructions/{transactionId}": {
10744
+ contentType?: "application/json";
10745
+ accept?: "application/json";
10746
+ pathParams: {
10747
+ /** Identifier of the order transaction to be fetched */
10748
+ transactionId: string;
10749
+ };
10750
+ response: never;
10751
+ responseCode: 200;
10752
+ };
10753
+ "getPayPalCustomerVaultToken get /paypal/vault-token": {
10754
+ contentType?: "application/json";
10755
+ accept?: "application/json";
10756
+ response: {
10757
+ token?: string;
10758
+ };
10759
+ responseCode: 200;
10760
+ };
10761
+ "paypalVaultClear post /paypal/vault/clear": {
10762
+ contentType?: "application/json";
10763
+ accept?: "application/json";
10764
+ body: {
10765
+ /** @enum {string} */
10766
+ type?: "cancel" | "browser" | "error";
10767
+ };
10768
+ response: never;
10769
+ responseCode: 204;
10770
+ };
9292
10771
  "fetchPendingOrder post /pending-order/{id}": {
9293
10772
  contentType?: "application/json";
9294
10773
  accept?: "application/json";
@@ -9595,6 +11074,20 @@ type operations$1 = {
9595
11074
  response: never;
9596
11075
  responseCode: 204;
9597
11076
  };
11077
+ "sendMessageInQuote post /quote/{id}/send-message": {
11078
+ contentType?: "application/json";
11079
+ accept?: "application/json";
11080
+ pathParams: {
11081
+ /** Identifier of the quote to be reinvited */
11082
+ id: string;
11083
+ };
11084
+ body?: {
11085
+ /** Message content */
11086
+ comment?: string;
11087
+ };
11088
+ response: never;
11089
+ responseCode: 204;
11090
+ };
9598
11091
  "readQuote post /quote/detail/{id}": {
9599
11092
  contentType?: "application/json";
9600
11093
  accept?: "application/json";
@@ -10128,6 +11621,7 @@ type ApiClientHooks = {
10128
11621
  onResponseError: (response: FetchResponse<ResponseType>) => void;
10129
11622
  onSuccessResponse: <T>(response: FetchResponse<T>) => void;
10130
11623
  onDefaultHeaderChanged: <T>(headerName: string, value?: T) => void;
11624
+ onRequest: (context: FetchContext) => void;
10131
11625
  };
10132
11626
  declare function createAPIClient<OPERATIONS extends Record<string, any> = operations$1, PATHS extends string | number | symbol = keyof OPERATIONS>(params: {
10133
11627
  baseURL?: string;
@@ -10152,6 +11646,20 @@ declare function createAPIClient<OPERATIONS extends Record<string, any> = operat
10152
11646
  hook: <NameT extends hookable.HookKeys<ApiClientHooks>>(name: NameT, function_: ApiClientHooks[NameT] extends hookable.HookCallback ? ApiClientHooks[NameT] : never, options?: {
10153
11647
  allowDeprecated?: boolean;
10154
11648
  }) => () => void;
11649
+ /**
11650
+ * Update the base configuration for API client
11651
+ */
11652
+ updateBaseConfig: (config: {
11653
+ baseURL?: string;
11654
+ accessToken?: string;
11655
+ }) => void;
11656
+ /**
11657
+ * Get the current base configuration
11658
+ */
11659
+ getBaseConfig: () => {
11660
+ baseURL: string | undefined;
11661
+ accessToken: string | undefined;
11662
+ };
10155
11663
  };
10156
11664
 
10157
11665
  /**