מפרט תשלום
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
// Parameters to specify how the partner will process payment for a given// booking.//// A sample request when using the deprecated PaymentProcessorConfig in// Merchant:// processor: PROCESSOR_STRIPE// payment_method_token: "some token"// version: "2017-06-15"//// A sample request when using the TokenizationConfig in Merchant:// payment_processor: "stripe"// unparsed_payment_method_token: "some token"// version: "2017-06-15"messagePaymentProcessingParameters{optionfeatures.(pb.java).nest_in_file_class=YES;enumPaymentProcessor{PAYMENT_PROCESSOR_UNSPECIFIED=0;PROCESSOR_STRIPE=1;PROCESSOR_BRAINTREE=2;}// Replaced by the payment_processor field.PaymentProcessorprocessor=1[deprecated=true];// The token representing the payment method that will be used to pay// for this booking. This token can be only used once. This token can be// only used for the merchant associated with this booking.//// Each processor may choose its own format for this field.// An example of Stripe's token is "tok_1C3orL2eZvKYlo2CxReMgS4K"//// Replaced by unparsed_payment_method_token, which contains// payment_method_token as one of its fields.// For example, for Stripe, unparsed_payment_method_token is a serialized// JSON object documented at https://stripe.com/docs/api#token_object.// payment_method_token is the 'id' field parsed out of that.stringpayment_method_token=2[deprecated=true];// The full token received from Google Payments. This is typically a// serialized JSON object. See documentation from Google Payments and your// payment processor for the JSON format of the token for your processor.// https://developers.google.com/pay/api/#participating-google-pay-processors//// This token can only be used once, and only for the merchant associated with// this booking.stringunparsed_payment_method_token=5[(datapol.semantic_type)=ST_PAYMENTS_INFO];// The payment processor API version that the given payment token is valid// for.//// Each processor may choose its own format for this field.// Stripe uses a date (e.g. "2017-06-15"). This is deprecated in favor of// tokenization_config.stringversion=3[deprecated=true];// The payment processor whose configuration was used to generate this token.// This is deprecated in favor of tokenization_config.stringpayment_processor=4[deprecated=true];// The tokenization_config supplied in the Merchant feed that was used// to generate unparsed_payment_method_token.TokenizationConfigtokenization_config=6;}
// This describes a payment option, such as a pack, membership, or// single-session pass after it has been purchased by a user. It includes an// identifier for the user payment option, as well as some information about// the payment option with which it is associated.messageUserPaymentOption{optionfeatures.(pb.java).nest_in_file_class=YES;// A unique identifier for the user payment option. This Id MUST be unique// for all UserPaymentOptions across all merchants and users.stringuser_payment_option_id=1;// The user payment option will be valid (usable) between start_time and// end_time. Attempts to use a user payment option to make a booking outside// of this interval will fail.google.protobuf.Timestampvalid_start_time=2;google.protobuf.Timestampvalid_end_time=3;// The type of the payment option associated with this user payment option.// This can be unlimited for a membership or subscription, multi-use for a// pack, or single-use.PaymentOptionTypetype=4;// The original number of uses for this user payment option when it was// purchased. This value is ignored for unlimited payment options.int32original_count=5;// The number of uses remaining for this user payment option. If this number// is 0 for a pack, attempts to use this payment option to make a booking will// fail.int32current_count=6;// The id of the payment option that has been used to purchase this user// payment option.stringpayment_option_id=7;}
// Payment details that are sent when creating a new booking.messagePaymentInformation{optionfeatures.(pb.java).nest_in_file_class=YES;// Prepayment status of the booking.// If the prepayment_status is PREPAYMENT_PROVIDED, then// payment_transaction_id contains the associated unique transaction id for// the purchase.// If the prepayment status is PREPAYMENT_REFUNDED, then// payment_transaction_id contains the associated unique transaction id for// the refund.PrepaymentStatusprepayment_status=1;// Unique identifier for a payment transaction associated with the booking.// Empty if not applicable.stringpayment_transaction_id=2;reserved3;// These fields must match the service price (specified in the Services feed)// or the PaymentOption corresponding with this service.// They are included in the booking request and response to verify that// the price indicated in the feed has not changed since the last feed// update.//// The price of the booking, exclusive of any taxes.// Existence of price or taxes does not imply that they have been paid,// prepayment_state should be used for that purpose.Priceprice=4;// Taxes that are calculated to be paid for this booking.// If this field is absent the price is assumed to be exempt from or already// inclusive of applicable taxes.Pricetax_amount=5;// Who handles payment processing?// If payment is processed by the partner, CreateBooking request will// include additional parameters (PaymentProcessingParameters) indicating// the payment method to be used to process the payment.enumPaymentProcessedBy{PAYMENT_PROCESSED_BY_UNSPECIFIED=0;PROCESSED_BY_GOOGLE=1;PROCESSED_BY_PARTNER=2;}PaymentProcessedBypayment_processed_by=6;// The id of the payment option or user payment option associated with the// booking.// If a payment option is purchased as part of a booking, payment_option_id// will be set with the id of that payment option.// If an already purchased user payment option is being used to pay for a// booking, user_payment_option_id will be set with the id of that user// payment option.// When included as part of a response proto, the user_payment_option_id// should be set and must match the UserPaymentOption that is returned in the// RPC response (e.g. the user_payment_option returned in// CreateBookingResponse).oneofpayment_id{// The id of the payment option associated with this booking. If this field// is populated, price (and tax_amount, if applicable) must be populated as// well.stringpayment_option_id=7;// The id of the user payment option used to pay for this booking.stringuser_payment_option_id=8;}// Defines how a deposit may be charged to the user. If there is a deposit,// this field should be set. (optional)Depositdeposit=9;// Defines a no show fee that may be charged to the user. If the user can be// charged a no show fee, this field should be set. (optional)NoShowFeeno_show_fee=10;}
// Prepayment status of a booking.// Updating payment status will trigger an update on the payment status of the// associated booking (if applicable).// Currently, the only supported transition is from PREPAYMENT_PROVIDED to// PREPAYMENT_REFUNDED, which will initiate a non-reversible refund on the// associated payment transaction.enumPrepaymentStatus{optionfeatures.(pb.java).nest_in_file_class=YES;// Not specified, defaults to PREPAYMENT_NOT_PROVIDED.PREPAYMENT_STATUS_UNSPECIFIED=0;// The fee for the booking has been paid in advance.PREPAYMENT_PROVIDED=1;// The fee for the booking has not been paid in advance.PREPAYMENT_NOT_PROVIDED=2;// The fee was previously PREPAYMENT_PROVIDED but has now been refunded.PREPAYMENT_REFUNDED=3;// The fee was previously PREPAYMENT_PROVIDED but now has been credited// (user given a UserPaymentOption as a voucher for the booking).// If this is set, the response should also include the updated// UserPaymentOption.PREPAYMENT_CREDITED=4;}
messagePrice{optionfeatures.(pb.java).nest_in_file_class=YES;// The price in micro-units of the currency.// Fractions of smallest currency unit will be rounded using nearest even// rounding. (e.g. For USD 2.5 cents rounded to 2 cents, 3.5 cents rounded to// 4 cents, 0.5 cents rounded to 0 cents, 2.51 cents rounded to 3 cents).int64price_micros=1;// The currency of the price that is defined in ISO 4217.stringcurrency_code=2;}
// Defines how a total price is determined from an availability.enumPriceType{optionfeatures.(pb.java).nest_in_file_class=YES;// The price is for a fixed amount. This is the default value if the field is// not set.FIXED_RATE_DEFAULT=0;// The price specified is per person, and the total price is calculated// according to the party size specified in Resources as// price_micros * party_size. A PER_PERSON price must be accompanied by a// party size in the availability resources. If it is not, a party size of one// is used.PER_PERSON=1;}
// A fee that a user may be charged if they have made a booking but do not// show up.messageNoShowFee{optionfeatures.(pb.java).nest_in_file_class=YES;// The amount the user may be charged if they do not show up for their// reservation.Pricefee=1;// Defines how the fee is determined from the availability.PriceTypefee_type=3;}
// A deposit that the user may be charged or have a hold on their credit card// for.messageDeposit{optionfeatures.(pb.java).nest_in_file_class=YES;// Deposit amount.Pricedeposit=1;// Minimum advance cancellation for the deposit.int64min_advance_cancellation_sec=2;// Defines how the deposit is determined from the availability.PriceTypedeposit_type=3;}
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2026-03-26 (שעון UTC)."],[],["Payment processing involves parameters like `PaymentProcessor` (e.g., Stripe, Braintree) and `unparsed_payment_method_token`, along with a version. `UserPaymentOption` details a purchased payment option, with fields for ID, validity period, type (single, multi, unlimited), original/current use counts, and linked payment option ID. `PaymentInformation` specifies transaction ID, price, tax, handling by Google or partner, payment/user option ID, and potential deposit/no-show fees. `PrepaymentStatus` tracks if payment is provided, not provided, refunded, or credited."]]