@paynow-gg/typescript-sdk 1.0.21 → 1.0.23

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/client.js CHANGED
@@ -41,7 +41,7 @@ function createClient(operationMappings, defaultHeaders, pathReplacements, optio
41
41
  ...config,
42
42
  url,
43
43
  method: mapping.method,
44
- data: config.data ?? {}
44
+ data: config?.data ?? {},
45
45
  });
46
46
  };
47
47
  },
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;AAyFA,oCAmEC;AA5JD,kDAIe;AAqFf,SAAgB,YAAY,CAC1B,iBAAmE,EACnE,cAAuC,EACvC,gBAAyC,EACzC,OAA6B;IAE7B,MAAM,MAAM,GAAG,eAAK,CAAC,MAAM,CAAC;QAC1B,OAAO,EAAE,uBAAuB;QAChC,GAAG,OAAO;QACV,OAAO,EAAE;YACP,cAAc,EAAE,kBAAkB;YAClC,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,EAAE,OAAO;YACnB,GAAG,cAAc;SAClB;KACF,CAAC,CAAC;IAEH,OAAO,IAAI,KAAK,CAAC,EAA0B,EAAE;QAC3C,GAAG,EAAE,CAAC,CAAC,EAAE,IAAY,EAAE,EAAE;YACvB,OAAO,IAAI,KAAK,CACd,EAAE,EACF;gBACE,GAAG,EAAE,CAAC,CAAC,EAAE,UAAkB,EAAE,EAAE;oBAC7B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;oBAE5D,MAAM,MAAM,GACV,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;oBAE3D,MAAM,WAAW,GAAG,GAAG,MAAM,IAAI,MAAM,EAAE,CAAC;oBAE1C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K,CAAC,CAAC;4BACxD,CAAC;wBACH,CAAC;wBAED,IAAI,MAAM,EAAE,IAAI,EAAE,CAAC;4BACjB,GAAG,GAAG,GAAG,CAAC,OAAO,CACf,UAAU,EACV,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,GAAG,GAAG,CAC3C,CAAC;wBACJ,CAAC;wBAED,OAAO,MAAM,CAAC,OAAO,CAAC;4BACpB,GAAG,MAAM;4BACT,GAAG;4BACH,MAAM,EAAE,OAAO,CAAC,MAAM;4BACtB,IAAI,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE;yBACzB,CAAC,CAAC;oBACL,CAAC,CAAC;gBACJ,CAAC;aACF,CACF,CAAC;QACJ,CAAC;KACF,CAAC,CAAC;AACL,CAAC"}
@@ -2063,7 +2063,7 @@ export interface components {
2063
2063
  CreateCheckoutSessionLineDto: {
2064
2064
  product_id: components["schemas"]["FlakeId"];
2065
2065
  /** @description Determines whether this line should create a subscription */
2066
- subscription: boolean;
2066
+ subscription?: boolean | null;
2067
2067
  /** @description Indicates whether the product should be trialed */
2068
2068
  trial?: boolean | null;
2069
2069
  gift_to?: components["schemas"]["CustomerPlatformAccountDto"];
@@ -2090,7 +2090,7 @@ export interface components {
2090
2090
  * and allows for creating inline products (which is subject to special approval) */
2091
2091
  CreateCheckoutSessionLineManagementDto: {
2092
2092
  /** @description Determines whether this line should create a subscription */
2093
- subscription: boolean;
2093
+ subscription?: boolean | null;
2094
2094
  /** @description Indicates whether the product should be trialed */
2095
2095
  trial?: boolean | null;
2096
2096
  gift_to?: components["schemas"]["CustomerPlatformAccountDto"];
@@ -2227,6 +2227,7 @@ export interface components {
2227
2227
  CreateStorePaymentSettingsDto: {
2228
2228
  show_all_payment_methods_for_subscriptions: boolean;
2229
2229
  store_tax_inclusive_pricing: boolean;
2230
+ block_prepaid_cards: components["schemas"]["PrepaidCardsBlockingTypeDto"];
2230
2231
  };
2231
2232
  CreateTrialEligibilityOverrideDto: {
2232
2233
  product_id: components["schemas"]["FlakeId"];
@@ -3380,7 +3381,7 @@ export interface components {
3380
3381
  * @description A payment decline reason code.
3381
3382
  * @enum {string}
3382
3383
  */
3383
- PaymentDeclineCode: "unknown" | "generic_decline" | "call_issuer" | "authentication_required" | "currency_not_supported" | "duplicate_transaction" | "expired_card" | "fraudulent" | "incorrect_number" | "incorrect_cvc" | "incorrect_pin" | "incorrect_zip" | "insufficient_funds" | "invalid_account" | "invalid_amount" | "invalid_expiry_month" | "invalid_expiry_year" | "issuer_not_available" | "lost_card" | "merchant_blacklist" | "new_account_information_available" | "no_action_taken" | "pickup_card" | "pin_try_exceeded" | "restricted_card" | "stolen_card" | "testmode_decline" | "try_again_later" | "security_violation" | "card_velocity_exceeded" | "do_not_honor" | "processing_error" | "card_not_supported" | "transaction_not_allowed" | "authorization_revoked";
3384
+ PaymentDeclineCode: "unknown" | "generic_decline" | "call_issuer" | "authentication_required" | "currency_not_supported" | "duplicate_transaction" | "expired_card" | "fraudulent" | "incorrect_number" | "incorrect_cvc" | "incorrect_pin" | "incorrect_zip" | "insufficient_funds" | "invalid_account" | "invalid_amount" | "invalid_expiry_month" | "invalid_expiry_year" | "issuer_not_available" | "lost_card" | "merchant_blacklist" | "new_account_information_available" | "no_action_taken" | "pickup_card" | "pin_try_exceeded" | "restricted_card" | "stolen_card" | "testmode_decline" | "try_again_later" | "security_violation" | "card_velocity_exceeded" | "do_not_honor" | "processing_error" | "card_not_supported" | "transaction_not_allowed" | "authorization_revoked" | "store_blocked";
3384
3385
  /** @description Represents a payment transaction */
3385
3386
  PaymentDto: {
3386
3387
  id: components["schemas"]["FlakeId"];
@@ -3672,6 +3673,11 @@ export interface components {
3672
3673
  */
3673
3674
  payer_name?: string | null;
3674
3675
  };
3676
+ /**
3677
+ * @description Defines when prepaid cards should be blocked from use.
3678
+ * @enum {string}
3679
+ */
3680
+ PrepaidCardsBlockingTypeDto: "unspecified" | "none" | "trials" | "all_recurring";
3675
3681
  ProductCommandDto: {
3676
3682
  stage: components["schemas"]["ProductCommandStage"];
3677
3683
  /** @description Content of the command. */
@@ -4347,6 +4353,7 @@ export interface components {
4347
4353
  show_all_payment_methods_for_subscriptions: boolean;
4348
4354
  /** @description Whether store pricing is tax-inclusive. */
4349
4355
  store_tax_inclusive_pricing: boolean;
4356
+ block_prepaid_cards: components["schemas"]["PrepaidCardsBlockingTypeDto"];
4350
4357
  /**
4351
4358
  * Format: int64
4352
4359
  * @description Maximum checkout amount allowed in cents.
@@ -4873,6 +4880,7 @@ export interface components {
4873
4880
  UpdateStorePaymentSettingsDto: {
4874
4881
  show_all_payment_methods_for_subscriptions?: boolean;
4875
4882
  store_tax_inclusive_pricing?: boolean;
4883
+ block_prepaid_cards?: components["schemas"]["PrepaidCardsBlockingTypeDto"];
4876
4884
  };
4877
4885
  UpdateTrialEligibilityOverrideDto: {
4878
4886
  product_id?: components["schemas"]["FlakeId"];